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

« back to all changes in this revision

Viewing changes to .pc/07_ga_target_force_linux.patch/src/tools/ga-5-2/armci/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.69 for Aggregate Remote Memory Copy Interface (ARMCI) 1.5.
 
4
#
 
5
# Report bugs to <hpctools@pnl.gov>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
test \$(( 1 + 1 )) = 2 || exit 1
 
202
 
 
203
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
204
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
207
    PATH=/empty FPATH=/empty; export PATH FPATH
 
208
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
209
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and hpctools@pnl.gov
 
278
$0: about your system, including any error possibly output
 
279
$0: before this message. Then install a modern shell, or
 
280
$0: manually run the script under such a shell if you do
 
281
$0: have one."
 
282
  fi
 
283
  exit 1
 
284
fi
 
285
fi
 
286
fi
 
287
SHELL=${CONFIG_SHELL-/bin/sh}
 
288
export SHELL
 
289
# Unset more variables known to interfere with behavior of common tools.
 
290
CLICOLOR_FORCE= GREP_OPTIONS=
 
291
unset CLICOLOR_FORCE GREP_OPTIONS
 
292
 
 
293
## --------------------- ##
 
294
## M4sh Shell Functions. ##
 
295
## --------------------- ##
 
296
# as_fn_unset VAR
 
297
# ---------------
 
298
# Portably unset VAR.
 
299
as_fn_unset ()
 
300
{
 
301
  { eval $1=; unset $1;}
 
302
}
 
303
as_unset=as_fn_unset
 
304
 
 
305
# as_fn_set_status STATUS
 
306
# -----------------------
 
307
# Set $? to STATUS, without forking.
 
308
as_fn_set_status ()
 
309
{
 
310
  return $1
 
311
} # as_fn_set_status
 
312
 
 
313
# as_fn_exit STATUS
 
314
# -----------------
 
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
316
as_fn_exit ()
 
317
{
 
318
  set +e
 
319
  as_fn_set_status $1
 
320
  exit $1
 
321
} # as_fn_exit
 
322
 
 
323
# as_fn_mkdir_p
 
324
# -------------
 
325
# Create "$as_dir" as a directory, including parents if necessary.
 
326
as_fn_mkdir_p ()
 
327
{
 
328
 
 
329
  case $as_dir in #(
 
330
  -*) as_dir=./$as_dir;;
 
331
  esac
 
332
  test -d "$as_dir" || eval $as_mkdir_p || {
 
333
    as_dirs=
 
334
    while :; do
 
335
      case $as_dir in #(
 
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
337
      *) as_qdir=$as_dir;;
 
338
      esac
 
339
      as_dirs="'$as_qdir' $as_dirs"
 
340
      as_dir=`$as_dirname -- "$as_dir" ||
 
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
342
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
343
         X"$as_dir" : 'X\(//\)$' \| \
 
344
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
345
$as_echo X"$as_dir" |
 
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
347
            s//\1/
 
348
            q
 
349
          }
 
350
          /^X\(\/\/\)[^/].*/{
 
351
            s//\1/
 
352
            q
 
353
          }
 
354
          /^X\(\/\/\)$/{
 
355
            s//\1/
 
356
            q
 
357
          }
 
358
          /^X\(\/\).*/{
 
359
            s//\1/
 
360
            q
 
361
          }
 
362
          s/.*/./; q'`
 
363
      test -d "$as_dir" && break
 
364
    done
 
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
367
 
 
368
 
 
369
} # as_fn_mkdir_p
 
370
 
 
371
# as_fn_executable_p FILE
 
372
# -----------------------
 
373
# Test if FILE is an executable regular file.
 
374
as_fn_executable_p ()
 
375
{
 
376
  test -f "$1" && test -x "$1"
 
377
} # as_fn_executable_p
 
378
# as_fn_append VAR VALUE
 
379
# ----------------------
 
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
381
# advantage of any shell optimizations that allow amortized linear growth over
 
382
# repeated appends, instead of the typical quadratic growth present in naive
 
383
# implementations.
 
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
385
  eval 'as_fn_append ()
 
386
  {
 
387
    eval $1+=\$2
 
388
  }'
 
389
else
 
390
  as_fn_append ()
 
391
  {
 
392
    eval $1=\$$1\$2
 
393
  }
 
394
fi # as_fn_append
 
395
 
 
396
# as_fn_arith ARG...
 
397
# ------------------
 
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
400
# must be portable across $(()) and expr.
 
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
402
  eval 'as_fn_arith ()
 
403
  {
 
404
    as_val=$(( $* ))
 
405
  }'
 
406
else
 
407
  as_fn_arith ()
 
408
  {
 
409
    as_val=`expr "$@" || test $? -eq 1`
 
410
  }
 
411
fi # as_fn_arith
 
412
 
 
413
 
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
415
# ----------------------------------------
 
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
418
# script with STATUS, using 1 if that was 0.
 
419
as_fn_error ()
 
420
{
 
421
  as_status=$1; test $as_status -eq 0 && as_status=1
 
422
  if test "$4"; then
 
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
425
  fi
 
426
  $as_echo "$as_me: error: $2" >&2
 
427
  as_fn_exit $as_status
 
428
} # as_fn_error
 
429
 
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
432
  as_expr=expr
 
433
else
 
434
  as_expr=false
 
435
fi
 
436
 
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
438
  as_basename=basename
 
439
else
 
440
  as_basename=false
 
441
fi
 
442
 
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
444
  as_dirname=dirname
 
445
else
 
446
  as_dirname=false
 
447
fi
 
448
 
 
449
as_me=`$as_basename -- "$0" ||
 
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
451
         X"$0" : 'X\(//\)$' \| \
 
452
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
453
$as_echo X/"$0" |
 
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
455
            s//\1/
 
456
            q
 
457
          }
 
458
          /^X\/\(\/\/\)$/{
 
459
            s//\1/
 
460
            q
 
461
          }
 
462
          /^X\/\(\/\).*/{
 
463
            s//\1/
 
464
            q
 
465
          }
 
466
          s/.*/./; q'`
 
467
 
 
468
# Avoid depending upon Character Ranges.
 
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
472
as_cr_digits='0123456789'
 
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
474
 
 
475
 
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
481
  sed -n '
 
482
    p
 
483
    /[$]LINENO/=
 
484
  ' <$as_myself |
 
485
    sed '
 
486
      s/[$]LINENO.*/&-/
 
487
      t lineno
 
488
      b
 
489
      :lineno
 
490
      N
 
491
      :loop
 
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
493
      t loop
 
494
      s/-\n.*//
 
495
    ' >$as_me.lineno &&
 
496
  chmod +x "$as_me.lineno" ||
 
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
498
 
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
500
  # already done that, so ensure we don't try to do so again and fall
 
501
  # in an infinite loop.  This has already happened in practice.
 
502
  _as_can_reexec=no; export _as_can_reexec
 
503
  # Don't try to exec as it changes $[0], causing all sort of problems
 
504
  # (the dirname of $[0] is not the place where we might find the
 
505
  # original and so on.  Autoconf is especially sensitive to this).
 
506
  . "./$as_me.lineno"
 
507
  # Exit status is that of the last command.
 
508
  exit
 
509
}
 
510
 
 
511
ECHO_C= ECHO_N= ECHO_T=
 
512
case `echo -n x` in #(((((
 
513
-n*)
 
514
  case `echo 'xy\c'` in
 
515
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
516
  xy)  ECHO_C='\c';;
 
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
518
       ECHO_T=' ';;
 
519
  esac;;
 
520
*)
 
521
  ECHO_N='-n';;
 
522
esac
 
523
 
 
524
rm -f conf$$ conf$$.exe conf$$.file
 
525
if test -d conf$$.dir; then
 
526
  rm -f conf$$.dir/conf$$.file
 
527
else
 
528
  rm -f conf$$.dir
 
529
  mkdir conf$$.dir 2>/dev/null
 
530
fi
 
531
if (echo >conf$$.file) 2>/dev/null; then
 
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
533
    as_ln_s='ln -s'
 
534
    # ... but there are two gotchas:
 
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
537
    # In both cases, we have to default to `cp -pR'.
 
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
539
      as_ln_s='cp -pR'
 
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
541
    as_ln_s=ln
 
542
  else
 
543
    as_ln_s='cp -pR'
 
544
  fi
 
545
else
 
546
  as_ln_s='cp -pR'
 
547
fi
 
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
549
rmdir conf$$.dir 2>/dev/null
 
550
 
 
551
if mkdir -p . 2>/dev/null; then
 
552
  as_mkdir_p='mkdir -p "$as_dir"'
 
553
else
 
554
  test -d ./-p && rmdir ./-p
 
555
  as_mkdir_p=false
 
556
fi
 
557
 
 
558
as_test_x='test -x'
 
559
as_executable_p=as_fn_executable_p
 
560
 
 
561
# Sed expression to map a string onto a valid CPP name.
 
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
563
 
 
564
# Sed expression to map a string onto a valid variable name.
 
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
566
 
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
 
568
 
 
569
 
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
 
571
exec 6>&1
 
572
 
 
573
# Name of the host.
 
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
575
# so uname gets run too.
 
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
577
 
 
578
#
 
579
# Initializations.
 
580
#
 
581
ac_default_prefix=/usr/local
 
582
ac_clean_files=
 
583
ac_config_libobj_dir=.
 
584
LIBOBJS=
 
585
cross_compiling=no
 
586
subdirs=
 
587
MFLAGS=
 
588
MAKEFLAGS=
 
589
 
 
590
# Identity of this package.
 
591
PACKAGE_NAME='Aggregate Remote Memory Copy Interface (ARMCI)'
 
592
PACKAGE_TARNAME='armci'
 
593
PACKAGE_VERSION='1.5'
 
594
PACKAGE_STRING='Aggregate Remote Memory Copy Interface (ARMCI) 1.5'
 
595
PACKAGE_BUGREPORT='hpctools@pnl.gov'
 
596
PACKAGE_URL='http://www.emsl.pnl.gov/docs/parsoft/armci/'
 
597
 
 
598
ac_config_libobj_dir=compat
 
599
ac_unique_file="src/common/armci.c"
 
600
# Factoring default headers for most tests.
 
601
ac_includes_default="\
 
602
#include <stdio.h>
 
603
#ifdef HAVE_SYS_TYPES_H
 
604
# include <sys/types.h>
 
605
#endif
 
606
#ifdef HAVE_SYS_STAT_H
 
607
# include <sys/stat.h>
 
608
#endif
 
609
#ifdef STDC_HEADERS
 
610
# include <stdlib.h>
 
611
# include <stddef.h>
 
612
#else
 
613
# ifdef HAVE_STDLIB_H
 
614
#  include <stdlib.h>
 
615
# endif
 
616
#endif
 
617
#ifdef HAVE_STRING_H
 
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
619
#  include <memory.h>
 
620
# endif
 
621
# include <string.h>
 
622
#endif
 
623
#ifdef HAVE_STRINGS_H
 
624
# include <strings.h>
 
625
#endif
 
626
#ifdef HAVE_INTTYPES_H
 
627
# include <inttypes.h>
 
628
#endif
 
629
#ifdef HAVE_STDINT_H
 
630
# include <stdint.h>
 
631
#endif
 
632
#ifdef HAVE_UNISTD_H
 
633
# include <unistd.h>
 
634
#endif"
 
635
 
 
636
ac_header_list=
 
637
ac_subst_vars='am__EXEEXT_FALSE
 
638
am__EXEEXT_TRUE
 
639
LTLIBOBJS
 
640
LIBOBJS
 
641
TCGEXEC
 
642
MPIEXEC
 
643
NPROCS
 
644
ENABLE_SHARED_FALSE
 
645
ENABLE_SHARED_TRUE
 
646
RANDOM_ACCESS_FALSE
 
647
RANDOM_ACCESS_TRUE
 
648
ga_cv_path_rsh
 
649
CXXCPP
 
650
OTOOL64
 
651
OTOOL
 
652
LIPO
 
653
NMEDIT
 
654
DSYMUTIL
 
655
MANIFEST_TOOL
 
656
ac_ct_AR
 
657
DLLTOOL
 
658
OBJDUMP
 
659
LN_S
 
660
NM
 
661
ac_ct_DUMPBIN
 
662
DUMPBIN
 
663
LD
 
664
FGREP
 
665
LIBTOOL
 
666
RANLIB
 
667
AR_FLAGS
 
668
AR
 
669
SED
 
670
HAVE_LAPACK_FALSE
 
671
HAVE_LAPACK_TRUE
 
672
HAVE_BLAS_FALSE
 
673
HAVE_BLAS_TRUE
 
674
am__fastdepCCAS_FALSE
 
675
am__fastdepCCAS_TRUE
 
676
CCASDEPMODE
 
677
CCASFLAGS
 
678
CCAS
 
679
ARMCI_CXXOPT
 
680
GA_CXX_WARN
 
681
am__fastdepCXX_FALSE
 
682
am__fastdepCXX_TRUE
 
683
CXXDEPMODE
 
684
ac_ct_CXX
 
685
CXXFLAGS
 
686
CXX
 
687
MPICXX
 
688
ARMCI_COPT
 
689
C_POINTER_AS_INTEGER
 
690
HAVE_SYS_WEAK_ALIAS_PRAGMA_FALSE
 
691
HAVE_SYS_WEAK_ALIAS_PRAGMA_TRUE
 
692
SYSV_FALSE
 
693
SYSV_TRUE
 
694
CRAY_XT_NETWORKS_FALSE
 
695
CRAY_XT_NETWORKS_TRUE
 
696
ARMCI_SRC_DIR_SRC_FALSE
 
697
ARMCI_SRC_DIR_SRC_TRUE
 
698
ARMCI_SRC_DIR_COMEX_FALSE
 
699
ARMCI_SRC_DIR_COMEX_TRUE
 
700
ARMCI_SRC_DIR_GEMINI_FALSE
 
701
ARMCI_SRC_DIR_GEMINI_TRUE
 
702
ARMCI_SRC_DIR_PORTALS_FALSE
 
703
ARMCI_SRC_DIR_PORTALS_TRUE
 
704
ARMCI_SRC_DIR
 
705
DCMF_VER_0_3_FALSE
 
706
DCMF_VER_0_3_TRUE
 
707
DCMF_VER_0_2_FALSE
 
708
DCMF_VER_0_2_TRUE
 
709
DCMF_VER_2_FALSE
 
710
DCMF_VER_2_TRUE
 
711
ARMCI_NETWORK_CPPFLAGS
 
712
ARMCI_NETWORK_LIBS
 
713
ARMCI_NETWORK_LDFLAGS
 
714
ARMCI_NETWORK_SOCKETS_FALSE
 
715
ARMCI_NETWORK_SOCKETS_TRUE
 
716
ARMCI_NETWORK_PORTALS_FALSE
 
717
ARMCI_NETWORK_PORTALS_TRUE
 
718
ARMCI_NETWORK_GEMINI_FALSE
 
719
ARMCI_NETWORK_GEMINI_TRUE
 
720
ARMCI_NETWORK_OPENIB_FALSE
 
721
ARMCI_NETWORK_OPENIB_TRUE
 
722
ARMCI_NETWORK_OFA_FALSE
 
723
ARMCI_NETWORK_OFA_TRUE
 
724
ARMCI_NETWORK_MPI_SPAWN_FALSE
 
725
ARMCI_NETWORK_MPI_SPAWN_TRUE
 
726
ARMCI_NETWORK_MPI_MT_FALSE
 
727
ARMCI_NETWORK_MPI_MT_TRUE
 
728
ARMCI_NETWORK_MPI_TS_FALSE
 
729
ARMCI_NETWORK_MPI_TS_TRUE
 
730
ARMCI_NETWORK_LAPI_FALSE
 
731
ARMCI_NETWORK_LAPI_TRUE
 
732
ARMCI_NETWORK_DMAPP_FALSE
 
733
ARMCI_NETWORK_DMAPP_TRUE
 
734
ARMCI_NETWORK_DCMF_FALSE
 
735
ARMCI_NETWORK_DCMF_TRUE
 
736
ARMCI_NETWORK_CRAY_SHMEM_FALSE
 
737
ARMCI_NETWORK_CRAY_SHMEM_TRUE
 
738
ARMCI_NETWORK_BGML_FALSE
 
739
ARMCI_NETWORK_BGML_TRUE
 
740
ARMCI_NETWORK_ARMCI_FALSE
 
741
ARMCI_NETWORK_ARMCI_TRUE
 
742
HAVE_ARMCI_MSG_FINALIZE_FALSE
 
743
HAVE_ARMCI_MSG_FINALIZE_TRUE
 
744
HAVE_ARMCI_MSG_INIT_FALSE
 
745
HAVE_ARMCI_MSG_INIT_TRUE
 
746
HAVE_ARMCI_NOTIFY_FALSE
 
747
HAVE_ARMCI_NOTIFY_TRUE
 
748
HAVE_ARMCI_STRIDE_INFO_INIT_FALSE
 
749
HAVE_ARMCI_STRIDE_INFO_INIT_TRUE
 
750
HAVE_ARMCI_INITIALIZED_FALSE
 
751
HAVE_ARMCI_INITIALIZED_TRUE
 
752
HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE
 
753
HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE
 
754
HAVE_ARMCI_GROUP_COMM_FALSE
 
755
HAVE_ARMCI_GROUP_COMM_TRUE
 
756
PERL
 
757
GA_C_WARN
 
758
EGREP
 
759
GREP
 
760
CPP
 
761
am__fastdepCC_FALSE
 
762
am__fastdepCC_TRUE
 
763
CCDEPMODE
 
764
am__nodep
 
765
AMDEPBACKSLASH
 
766
AMDEP_FALSE
 
767
AMDEP_TRUE
 
768
am__quote
 
769
am__include
 
770
DEPDIR
 
771
OBJEXT
 
772
EXEEXT
 
773
ac_ct_CC
 
774
CPPFLAGS
 
775
LDFLAGS
 
776
CFLAGS
 
777
CC
 
778
MPICC
 
779
THREAD_LIBRARY
 
780
THREAD_SAFE_FALSE
 
781
THREAD_SAFE_TRUE
 
782
ENABLE_TRACE_FALSE
 
783
ENABLE_TRACE_TRUE
 
784
ENABLE_CHECKPOINT_FALSE
 
785
ENABLE_CHECKPOINT_TRUE
 
786
ENABLE_PROFILING_FALSE
 
787
ENABLE_PROFILING_TRUE
 
788
NB_NONCONT_FALSE
 
789
NB_NONCONT_TRUE
 
790
ARMCI_GROUP_FALSE
 
791
ARMCI_GROUP_TRUE
 
792
ARMCI_ENABLE_GPC_CALLS_FALSE
 
793
ARMCI_ENABLE_GPC_CALLS_TRUE
 
794
PORTALS_ENABLE_NEW_MALLOC_FALSE
 
795
PORTALS_ENABLE_NEW_MALLOC_TRUE
 
796
GA_MP_CPPFLAGS
 
797
GA_MP_LDFLAGS
 
798
GA_MP_LIBS
 
799
MSG_COMMS_TCGMSG5_FALSE
 
800
MSG_COMMS_TCGMSG5_TRUE
 
801
MSG_COMMS_TCGMSG4_FALSE
 
802
MSG_COMMS_TCGMSG4_TRUE
 
803
MSG_COMMS_MPI_FALSE
 
804
MSG_COMMS_MPI_TRUE
 
805
MAINT
 
806
MAINTAINER_MODE_FALSE
 
807
MAINTAINER_MODE_TRUE
 
808
AM_BACKSLASH
 
809
AM_DEFAULT_VERBOSITY
 
810
AM_DEFAULT_V
 
811
AM_V
 
812
am__untar
 
813
am__tar
 
814
AMTAR
 
815
am__leading_dot
 
816
SET_MAKE
 
817
AWK
 
818
mkdir_p
 
819
MKDIR_P
 
820
INSTALL_STRIP_PROGRAM
 
821
STRIP
 
822
install_sh
 
823
MAKEINFO
 
824
AUTOHEADER
 
825
AUTOMAKE
 
826
AUTOCONF
 
827
ACLOCAL
 
828
VERSION
 
829
PACKAGE
 
830
CYGPATH_W
 
831
am__isrc
 
832
INSTALL_DATA
 
833
INSTALL_SCRIPT
 
834
INSTALL_PROGRAM
 
835
CROSS_COMPILING_FALSE
 
836
CROSS_COMPILING_TRUE
 
837
SOLARIS_FALSE
 
838
SOLARIS_TRUE
 
839
SGITFP_FALSE
 
840
SGITFP_TRUE
 
841
SGI_N32_FALSE
 
842
SGI_N32_TRUE
 
843
SGI_FALSE
 
844
SGI_TRUE
 
845
NEC_FALSE
 
846
NEC_TRUE
 
847
MACX_FALSE
 
848
MACX_TRUE
 
849
LINUX_FALSE
 
850
LINUX_TRUE
 
851
LAPI_FALSE
 
852
LAPI_TRUE
 
853
INTERIX_FALSE
 
854
INTERIX_TRUE
 
855
IBM_FALSE
 
856
IBM_TRUE
 
857
HPUX_FALSE
 
858
HPUX_TRUE
 
859
HITACHI_FALSE
 
860
HITACHI_TRUE
 
861
FUJITSU_VPP_FALSE
 
862
FUJITSU_VPP_TRUE
 
863
DECOSF_FALSE
 
864
DECOSF_TRUE
 
865
CYGWIN_FALSE
 
866
CYGWIN_TRUE
 
867
CYGNUS_FALSE
 
868
CYGNUS_TRUE
 
869
CRAY_YMP_FALSE
 
870
CRAY_YMP_TRUE
 
871
CRAY_XT_FALSE
 
872
CRAY_XT_TRUE
 
873
CRAY_T3E_FALSE
 
874
CRAY_T3E_TRUE
 
875
CRAY_SV2_FALSE
 
876
CRAY_SV2_TRUE
 
877
CRAY_SV1_FALSE
 
878
CRAY_SV1_TRUE
 
879
CATAMOUNT_FALSE
 
880
CATAMOUNT_TRUE
 
881
BGP_FALSE
 
882
BGP_TRUE
 
883
BGL_FALSE
 
884
BGL_TRUE
 
885
host_os
 
886
host_vendor
 
887
host_cpu
 
888
host
 
889
build_os
 
890
build_vendor
 
891
build_cpu
 
892
build
 
893
target_alias
 
894
host_alias
 
895
build_alias
 
896
LIBS
 
897
ECHO_T
 
898
ECHO_N
 
899
ECHO_C
 
900
DEFS
 
901
mandir
 
902
localedir
 
903
libdir
 
904
psdir
 
905
pdfdir
 
906
dvidir
 
907
htmldir
 
908
infodir
 
909
docdir
 
910
oldincludedir
 
911
includedir
 
912
localstatedir
 
913
sharedstatedir
 
914
sysconfdir
 
915
datadir
 
916
datarootdir
 
917
libexecdir
 
918
sbindir
 
919
bindir
 
920
program_transform_name
 
921
prefix
 
922
exec_prefix
 
923
PACKAGE_URL
 
924
PACKAGE_BUGREPORT
 
925
PACKAGE_STRING
 
926
PACKAGE_VERSION
 
927
PACKAGE_TARNAME
 
928
PACKAGE_NAME
 
929
PATH_SEPARATOR
 
930
SHELL'
 
931
ac_subst_files=''
 
932
ac_user_opts='
 
933
enable_option_checking
 
934
enable_silent_rules
 
935
enable_maintainer_mode
 
936
with_PACKAGE
 
937
with_mpi
 
938
enable_portals_new_malloc
 
939
enable_gpc
 
940
enable_armci_group
 
941
enable_nb_noncont
 
942
enable_profiling
 
943
enable_mpi_tests
 
944
enable_warnings
 
945
enable_checkpoint
 
946
enable_opt
 
947
enable_trace
 
948
enable_thread_safety
 
949
enable_dependency_tracking
 
950
enable_autodetect
 
951
with_armci
 
952
with_bgml
 
953
with_cray_shmem
 
954
with_dcmf
 
955
with_dmapp
 
956
with_gemini
 
957
with_lapi
 
958
with_mpi_mt
 
959
with_mpi_spawn
 
960
with_mpi_ts
 
961
with_ofa
 
962
with_openib
 
963
with_portals
 
964
with_sockets
 
965
enable_assert
 
966
enable_weak
 
967
enable_shared
 
968
enable_static
 
969
with_pic
 
970
enable_fast_install
 
971
with_gnu_ld
 
972
with_sysroot
 
973
enable_libtool_lock
 
974
'
 
975
      ac_precious_vars='build_alias
 
976
host_alias
 
977
target_alias
 
978
THREAD_LIBRARY
 
979
MPICC
 
980
CC
 
981
CFLAGS
 
982
LDFLAGS
 
983
LIBS
 
984
CPPFLAGS
 
985
CPP
 
986
ARMCI_COPT
 
987
MPICXX
 
988
CXX
 
989
CXXFLAGS
 
990
CCC
 
991
ARMCI_CXXOPT
 
992
CCAS
 
993
CCASFLAGS
 
994
AR
 
995
AR_FLAGS
 
996
RANLIB
 
997
CXXCPP
 
998
NPROCS
 
999
MPIEXEC'
 
1000
 
 
1001
 
 
1002
# Initialize some variables set by options.
 
1003
ac_init_help=
 
1004
ac_init_version=false
 
1005
ac_unrecognized_opts=
 
1006
ac_unrecognized_sep=
 
1007
# The variables have the same names as the options, with
 
1008
# dashes changed to underlines.
 
1009
cache_file=/dev/null
 
1010
exec_prefix=NONE
 
1011
no_create=
 
1012
no_recursion=
 
1013
prefix=NONE
 
1014
program_prefix=NONE
 
1015
program_suffix=NONE
 
1016
program_transform_name=s,x,x,
 
1017
silent=
 
1018
site=
 
1019
srcdir=
 
1020
verbose=
 
1021
x_includes=NONE
 
1022
x_libraries=NONE
 
1023
 
 
1024
# Installation directory options.
 
1025
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1026
# and all the variables that are supposed to be based on exec_prefix
 
1027
# by default will actually change.
 
1028
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1029
# (The list follows the same order as the GNU Coding Standards.)
 
1030
bindir='${exec_prefix}/bin'
 
1031
sbindir='${exec_prefix}/sbin'
 
1032
libexecdir='${exec_prefix}/libexec'
 
1033
datarootdir='${prefix}/share'
 
1034
datadir='${datarootdir}'
 
1035
sysconfdir='${prefix}/etc'
 
1036
sharedstatedir='${prefix}/com'
 
1037
localstatedir='${prefix}/var'
 
1038
includedir='${prefix}/include'
 
1039
oldincludedir='/usr/include'
 
1040
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1041
infodir='${datarootdir}/info'
 
1042
htmldir='${docdir}'
 
1043
dvidir='${docdir}'
 
1044
pdfdir='${docdir}'
 
1045
psdir='${docdir}'
 
1046
libdir='${exec_prefix}/lib'
 
1047
localedir='${datarootdir}/locale'
 
1048
mandir='${datarootdir}/man'
 
1049
 
 
1050
ac_prev=
 
1051
ac_dashdash=
 
1052
for ac_option
 
1053
do
 
1054
  # If the previous option needs an argument, assign it.
 
1055
  if test -n "$ac_prev"; then
 
1056
    eval $ac_prev=\$ac_option
 
1057
    ac_prev=
 
1058
    continue
 
1059
  fi
 
1060
 
 
1061
  case $ac_option in
 
1062
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1063
  *=)   ac_optarg= ;;
 
1064
  *)    ac_optarg=yes ;;
 
1065
  esac
 
1066
 
 
1067
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1068
 
 
1069
  case $ac_dashdash$ac_option in
 
1070
  --)
 
1071
    ac_dashdash=yes ;;
 
1072
 
 
1073
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1074
    ac_prev=bindir ;;
 
1075
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1076
    bindir=$ac_optarg ;;
 
1077
 
 
1078
  -build | --build | --buil | --bui | --bu)
 
1079
    ac_prev=build_alias ;;
 
1080
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1081
    build_alias=$ac_optarg ;;
 
1082
 
 
1083
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1084
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1085
    ac_prev=cache_file ;;
 
1086
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1087
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1088
    cache_file=$ac_optarg ;;
 
1089
 
 
1090
  --config-cache | -C)
 
1091
    cache_file=config.cache ;;
 
1092
 
 
1093
  -datadir | --datadir | --datadi | --datad)
 
1094
    ac_prev=datadir ;;
 
1095
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1096
    datadir=$ac_optarg ;;
 
1097
 
 
1098
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1099
  | --dataroo | --dataro | --datar)
 
1100
    ac_prev=datarootdir ;;
 
1101
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1102
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1103
    datarootdir=$ac_optarg ;;
 
1104
 
 
1105
  -disable-* | --disable-*)
 
1106
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1107
    # Reject names that are not valid shell variable names.
 
1108
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1109
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1110
    ac_useropt_orig=$ac_useropt
 
1111
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1112
    case $ac_user_opts in
 
1113
      *"
 
1114
"enable_$ac_useropt"
 
1115
"*) ;;
 
1116
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1117
         ac_unrecognized_sep=', ';;
 
1118
    esac
 
1119
    eval enable_$ac_useropt=no ;;
 
1120
 
 
1121
  -docdir | --docdir | --docdi | --doc | --do)
 
1122
    ac_prev=docdir ;;
 
1123
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1124
    docdir=$ac_optarg ;;
 
1125
 
 
1126
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1127
    ac_prev=dvidir ;;
 
1128
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1129
    dvidir=$ac_optarg ;;
 
1130
 
 
1131
  -enable-* | --enable-*)
 
1132
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1133
    # Reject names that are not valid shell variable names.
 
1134
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1135
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1136
    ac_useropt_orig=$ac_useropt
 
1137
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1138
    case $ac_user_opts in
 
1139
      *"
 
1140
"enable_$ac_useropt"
 
1141
"*) ;;
 
1142
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1143
         ac_unrecognized_sep=', ';;
 
1144
    esac
 
1145
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1146
 
 
1147
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1148
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1149
  | --exec | --exe | --ex)
 
1150
    ac_prev=exec_prefix ;;
 
1151
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1152
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1153
  | --exec=* | --exe=* | --ex=*)
 
1154
    exec_prefix=$ac_optarg ;;
 
1155
 
 
1156
  -gas | --gas | --ga | --g)
 
1157
    # Obsolete; use --with-gas.
 
1158
    with_gas=yes ;;
 
1159
 
 
1160
  -help | --help | --hel | --he | -h)
 
1161
    ac_init_help=long ;;
 
1162
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1163
    ac_init_help=recursive ;;
 
1164
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1165
    ac_init_help=short ;;
 
1166
 
 
1167
  -host | --host | --hos | --ho)
 
1168
    ac_prev=host_alias ;;
 
1169
  -host=* | --host=* | --hos=* | --ho=*)
 
1170
    host_alias=$ac_optarg ;;
 
1171
 
 
1172
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1173
    ac_prev=htmldir ;;
 
1174
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1175
  | --ht=*)
 
1176
    htmldir=$ac_optarg ;;
 
1177
 
 
1178
  -includedir | --includedir | --includedi | --included | --include \
 
1179
  | --includ | --inclu | --incl | --inc)
 
1180
    ac_prev=includedir ;;
 
1181
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1182
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1183
    includedir=$ac_optarg ;;
 
1184
 
 
1185
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1186
    ac_prev=infodir ;;
 
1187
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1188
    infodir=$ac_optarg ;;
 
1189
 
 
1190
  -libdir | --libdir | --libdi | --libd)
 
1191
    ac_prev=libdir ;;
 
1192
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1193
    libdir=$ac_optarg ;;
 
1194
 
 
1195
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1196
  | --libexe | --libex | --libe)
 
1197
    ac_prev=libexecdir ;;
 
1198
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1199
  | --libexe=* | --libex=* | --libe=*)
 
1200
    libexecdir=$ac_optarg ;;
 
1201
 
 
1202
  -localedir | --localedir | --localedi | --localed | --locale)
 
1203
    ac_prev=localedir ;;
 
1204
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1205
    localedir=$ac_optarg ;;
 
1206
 
 
1207
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1208
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1209
    ac_prev=localstatedir ;;
 
1210
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1211
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1212
    localstatedir=$ac_optarg ;;
 
1213
 
 
1214
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1215
    ac_prev=mandir ;;
 
1216
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1217
    mandir=$ac_optarg ;;
 
1218
 
 
1219
  -nfp | --nfp | --nf)
 
1220
    # Obsolete; use --without-fp.
 
1221
    with_fp=no ;;
 
1222
 
 
1223
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1224
  | --no-cr | --no-c | -n)
 
1225
    no_create=yes ;;
 
1226
 
 
1227
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1228
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1229
    no_recursion=yes ;;
 
1230
 
 
1231
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1232
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1233
  | --oldin | --oldi | --old | --ol | --o)
 
1234
    ac_prev=oldincludedir ;;
 
1235
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1236
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1237
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1238
    oldincludedir=$ac_optarg ;;
 
1239
 
 
1240
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1241
    ac_prev=prefix ;;
 
1242
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1243
    prefix=$ac_optarg ;;
 
1244
 
 
1245
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1246
  | --program-pre | --program-pr | --program-p)
 
1247
    ac_prev=program_prefix ;;
 
1248
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1249
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1250
    program_prefix=$ac_optarg ;;
 
1251
 
 
1252
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1253
  | --program-suf | --program-su | --program-s)
 
1254
    ac_prev=program_suffix ;;
 
1255
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1256
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1257
    program_suffix=$ac_optarg ;;
 
1258
 
 
1259
  -program-transform-name | --program-transform-name \
 
1260
  | --program-transform-nam | --program-transform-na \
 
1261
  | --program-transform-n | --program-transform- \
 
1262
  | --program-transform | --program-transfor \
 
1263
  | --program-transfo | --program-transf \
 
1264
  | --program-trans | --program-tran \
 
1265
  | --progr-tra | --program-tr | --program-t)
 
1266
    ac_prev=program_transform_name ;;
 
1267
  -program-transform-name=* | --program-transform-name=* \
 
1268
  | --program-transform-nam=* | --program-transform-na=* \
 
1269
  | --program-transform-n=* | --program-transform-=* \
 
1270
  | --program-transform=* | --program-transfor=* \
 
1271
  | --program-transfo=* | --program-transf=* \
 
1272
  | --program-trans=* | --program-tran=* \
 
1273
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1274
    program_transform_name=$ac_optarg ;;
 
1275
 
 
1276
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1277
    ac_prev=pdfdir ;;
 
1278
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1279
    pdfdir=$ac_optarg ;;
 
1280
 
 
1281
  -psdir | --psdir | --psdi | --psd | --ps)
 
1282
    ac_prev=psdir ;;
 
1283
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1284
    psdir=$ac_optarg ;;
 
1285
 
 
1286
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1287
  | -silent | --silent | --silen | --sile | --sil)
 
1288
    silent=yes ;;
 
1289
 
 
1290
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1291
    ac_prev=sbindir ;;
 
1292
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1293
  | --sbi=* | --sb=*)
 
1294
    sbindir=$ac_optarg ;;
 
1295
 
 
1296
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1297
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1298
  | --sharedst | --shareds | --shared | --share | --shar \
 
1299
  | --sha | --sh)
 
1300
    ac_prev=sharedstatedir ;;
 
1301
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1302
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1303
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1304
  | --sha=* | --sh=*)
 
1305
    sharedstatedir=$ac_optarg ;;
 
1306
 
 
1307
  -site | --site | --sit)
 
1308
    ac_prev=site ;;
 
1309
  -site=* | --site=* | --sit=*)
 
1310
    site=$ac_optarg ;;
 
1311
 
 
1312
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1313
    ac_prev=srcdir ;;
 
1314
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1315
    srcdir=$ac_optarg ;;
 
1316
 
 
1317
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1318
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1319
    ac_prev=sysconfdir ;;
 
1320
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1321
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1322
    sysconfdir=$ac_optarg ;;
 
1323
 
 
1324
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1325
    ac_prev=target_alias ;;
 
1326
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1327
    target_alias=$ac_optarg ;;
 
1328
 
 
1329
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1330
    verbose=yes ;;
 
1331
 
 
1332
  -version | --version | --versio | --versi | --vers | -V)
 
1333
    ac_init_version=: ;;
 
1334
 
 
1335
  -with-* | --with-*)
 
1336
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1337
    # Reject names that are not valid shell variable names.
 
1338
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1339
      as_fn_error $? "invalid package name: $ac_useropt"
 
1340
    ac_useropt_orig=$ac_useropt
 
1341
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1342
    case $ac_user_opts in
 
1343
      *"
 
1344
"with_$ac_useropt"
 
1345
"*) ;;
 
1346
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1347
         ac_unrecognized_sep=', ';;
 
1348
    esac
 
1349
    eval with_$ac_useropt=\$ac_optarg ;;
 
1350
 
 
1351
  -without-* | --without-*)
 
1352
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1353
    # Reject names that are not valid shell variable names.
 
1354
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1355
      as_fn_error $? "invalid package name: $ac_useropt"
 
1356
    ac_useropt_orig=$ac_useropt
 
1357
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1358
    case $ac_user_opts in
 
1359
      *"
 
1360
"with_$ac_useropt"
 
1361
"*) ;;
 
1362
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1363
         ac_unrecognized_sep=', ';;
 
1364
    esac
 
1365
    eval with_$ac_useropt=no ;;
 
1366
 
 
1367
  --x)
 
1368
    # Obsolete; use --with-x.
 
1369
    with_x=yes ;;
 
1370
 
 
1371
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1372
  | --x-incl | --x-inc | --x-in | --x-i)
 
1373
    ac_prev=x_includes ;;
 
1374
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1375
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1376
    x_includes=$ac_optarg ;;
 
1377
 
 
1378
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1379
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1380
    ac_prev=x_libraries ;;
 
1381
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1382
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1383
    x_libraries=$ac_optarg ;;
 
1384
 
 
1385
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1386
Try \`$0 --help' for more information"
 
1387
    ;;
 
1388
 
 
1389
  *=*)
 
1390
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1391
    # Reject names that are not valid shell variable names.
 
1392
    case $ac_envvar in #(
 
1393
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1394
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1395
    esac
 
1396
    eval $ac_envvar=\$ac_optarg
 
1397
    export $ac_envvar ;;
 
1398
 
 
1399
  *)
 
1400
    # FIXME: should be removed in autoconf 3.0.
 
1401
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1402
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1403
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1404
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1405
    ;;
 
1406
 
 
1407
  esac
 
1408
done
 
1409
 
 
1410
if test -n "$ac_prev"; then
 
1411
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1412
  as_fn_error $? "missing argument to $ac_option"
 
1413
fi
 
1414
 
 
1415
if test -n "$ac_unrecognized_opts"; then
 
1416
  case $enable_option_checking in
 
1417
    no) ;;
 
1418
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1419
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1420
  esac
 
1421
fi
 
1422
 
 
1423
# Check all directory arguments for consistency.
 
1424
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1425
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1426
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1427
                libdir localedir mandir
 
1428
do
 
1429
  eval ac_val=\$$ac_var
 
1430
  # Remove trailing slashes.
 
1431
  case $ac_val in
 
1432
    */ )
 
1433
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1434
      eval $ac_var=\$ac_val;;
 
1435
  esac
 
1436
  # Be sure to have absolute directory names.
 
1437
  case $ac_val in
 
1438
    [\\/$]* | ?:[\\/]* )  continue;;
 
1439
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1440
  esac
 
1441
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1442
done
 
1443
 
 
1444
# There might be people who depend on the old broken behavior: `$host'
 
1445
# used to hold the argument of --host etc.
 
1446
# FIXME: To remove some day.
 
1447
build=$build_alias
 
1448
host=$host_alias
 
1449
target=$target_alias
 
1450
 
 
1451
# FIXME: To remove some day.
 
1452
if test "x$host_alias" != x; then
 
1453
  if test "x$build_alias" = x; then
 
1454
    cross_compiling=maybe
 
1455
  elif test "x$build_alias" != "x$host_alias"; then
 
1456
    cross_compiling=yes
 
1457
  fi
 
1458
fi
 
1459
 
 
1460
ac_tool_prefix=
 
1461
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1462
 
 
1463
test "$silent" = yes && exec 6>/dev/null
 
1464
 
 
1465
 
 
1466
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1467
ac_ls_di=`ls -di .` &&
 
1468
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1469
  as_fn_error $? "working directory cannot be determined"
 
1470
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1471
  as_fn_error $? "pwd does not report name of working directory"
 
1472
 
 
1473
 
 
1474
# Find the source files, if location was not specified.
 
1475
if test -z "$srcdir"; then
 
1476
  ac_srcdir_defaulted=yes
 
1477
  # Try the directory containing this script, then the parent directory.
 
1478
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1479
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1480
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1481
         X"$as_myself" : 'X\(//\)$' \| \
 
1482
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1483
$as_echo X"$as_myself" |
 
1484
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1485
            s//\1/
 
1486
            q
 
1487
          }
 
1488
          /^X\(\/\/\)[^/].*/{
 
1489
            s//\1/
 
1490
            q
 
1491
          }
 
1492
          /^X\(\/\/\)$/{
 
1493
            s//\1/
 
1494
            q
 
1495
          }
 
1496
          /^X\(\/\).*/{
 
1497
            s//\1/
 
1498
            q
 
1499
          }
 
1500
          s/.*/./; q'`
 
1501
  srcdir=$ac_confdir
 
1502
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1503
    srcdir=..
 
1504
  fi
 
1505
else
 
1506
  ac_srcdir_defaulted=no
 
1507
fi
 
1508
if test ! -r "$srcdir/$ac_unique_file"; then
 
1509
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1510
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1511
fi
 
1512
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1513
ac_abs_confdir=`(
 
1514
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1515
        pwd)`
 
1516
# When building in place, set srcdir=.
 
1517
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1518
  srcdir=.
 
1519
fi
 
1520
# Remove unnecessary trailing slashes from srcdir.
 
1521
# Double slashes in file names in object file debugging info
 
1522
# mess up M-x gdb in Emacs.
 
1523
case $srcdir in
 
1524
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1525
esac
 
1526
for ac_var in $ac_precious_vars; do
 
1527
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1528
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1529
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1530
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1531
done
 
1532
 
 
1533
#
 
1534
# Report the --help message.
 
1535
#
 
1536
if test "$ac_init_help" = "long"; then
 
1537
  # Omit some internal or obsolete options to make the list less imposing.
 
1538
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1539
  cat <<_ACEOF
 
1540
\`configure' configures Aggregate Remote Memory Copy Interface (ARMCI) 1.5 to adapt to many kinds of systems.
 
1541
 
 
1542
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1543
 
 
1544
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1545
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1546
 
 
1547
Defaults for the options are specified in brackets.
 
1548
 
 
1549
Configuration:
 
1550
  -h, --help              display this help and exit
 
1551
      --help=short        display options specific to this package
 
1552
      --help=recursive    display the short help of all the included packages
 
1553
  -V, --version           display version information and exit
 
1554
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1555
      --cache-file=FILE   cache test results in FILE [disabled]
 
1556
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1557
  -n, --no-create         do not create output files
 
1558
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1559
 
 
1560
Installation directories:
 
1561
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1562
                          [$ac_default_prefix]
 
1563
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1564
                          [PREFIX]
 
1565
 
 
1566
By default, \`make install' will install all the files in
 
1567
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1568
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1569
for instance \`--prefix=\$HOME'.
 
1570
 
 
1571
For better control, use the options below.
 
1572
 
 
1573
Fine tuning of the installation directories:
 
1574
  --bindir=DIR            user executables [EPREFIX/bin]
 
1575
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1576
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1577
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1578
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1579
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1580
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1581
  --includedir=DIR        C header files [PREFIX/include]
 
1582
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1583
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1584
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1585
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1586
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1587
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1588
  --docdir=DIR            documentation root [DATAROOTDIR/doc/armci]
 
1589
  --htmldir=DIR           html documentation [DOCDIR]
 
1590
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1591
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1592
  --psdir=DIR             ps documentation [DOCDIR]
 
1593
_ACEOF
 
1594
 
 
1595
  cat <<\_ACEOF
 
1596
 
 
1597
Program names:
 
1598
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1599
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1600
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1601
 
 
1602
System types:
 
1603
  --build=BUILD     configure for building on BUILD [guessed]
 
1604
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1605
_ACEOF
 
1606
fi
 
1607
 
 
1608
if test -n "$ac_init_help"; then
 
1609
  case $ac_init_help in
 
1610
     short | recursive ) echo "Configuration of Aggregate Remote Memory Copy Interface (ARMCI) 1.5:";;
 
1611
   esac
 
1612
  cat <<\_ACEOF
 
1613
 
 
1614
Optional Features:
 
1615
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1616
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1617
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1618
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1619
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1620
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1621
                          (and sometimes confusing) to the casual installer
 
1622
  --enable-portals-new-malloc
 
1623
                          add -DNEW_MALLOC to CPPFLAGS
 
1624
  --enable-gpc            enable GPC calls
 
1625
  --enable-armci-group    TODO
 
1626
  --enable-nb-noncont     TODO
 
1627
  --enable-profiling      enable profiling
 
1628
  --disable-mpi-tests     disable MPI linker tests
 
1629
  --enable-warnings       use compiler-specific warnings
 
1630
  --enable-checkpoint     enable checkpointing
 
1631
  --disable-opt           don't use hard-coded optimization flags
 
1632
  --enable-trace          enable tracing
 
1633
  --enable-thread-safety  **unsupported** turn on thread safety
 
1634
  --disable-dependency-tracking  speeds up one-time build
 
1635
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1636
  --enable-autodetect     attempt to locate ARMCI_NETWORK besides SOCKETS
 
1637
  --disable-assert        turn off assertions
 
1638
  --disable-weak          don't use weak symbols for profiling
 
1639
  --enable-shared[=PKGS]  build shared libraries [default=no]
 
1640
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1641
  --enable-fast-install[=PKGS]
 
1642
                          optimize for fast installation [default=yes]
 
1643
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1644
 
 
1645
Optional Packages:
 
1646
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1647
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1648
  --with-PACKAGE[=ARG]    for most of the external software packages, ARG can
 
1649
                          be one or more whitespace-separated directories,
 
1650
                          linker or preprocessor directives; for example,
 
1651
                          --with-PACKAGE="/path/to/PACKAGE -lmylib -I/mydir"
 
1652
  --with-mpi[=ARG]        select MPI as the messaging library (default); leave
 
1653
                          ARG blank to use MPI compiler wrappers
 
1654
  --with-armci[=ARG]      select armci network as external; path to external
 
1655
                          ARMCI library
 
1656
  --with-bgml[=ARG]       select armci network as IBM BG/L
 
1657
  --with-cray-shmem[=ARG] select armci network as Cray XT shmem
 
1658
  --with-dcmf[=ARG]       select armci network as IBM BG/P Deep Computing
 
1659
                          Message Framework
 
1660
  --with-dmapp[=ARG]      select armci network as (Comex) Cray DMAPP
 
1661
  --with-gemini[=ARG]     select armci network as Cray XE Gemini using
 
1662
                          libonesided
 
1663
  --with-lapi[=ARG]       select armci network as IBM LAPI
 
1664
  --with-mpi-mt[=ARG]     select armci network as MPI-2 multi-threading
 
1665
  --with-mpi-spawn[=ARG]  select armci network as MPI-2 dynamic process mgmt
 
1666
  --with-mpi-ts[=ARG]     select armci network as (Comex) MPI-1 two-sided
 
1667
  --with-ofa[=ARG]        select armci network as (Comex) Infiniband OpenIB
 
1668
  --with-openib[=ARG]     select armci network as Infiniband OpenIB
 
1669
  --with-portals[=ARG]    select armci network as Cray XT portals
 
1670
  --with-sockets[=ARG]    select armci network as Ethernet TCP/IP
 
1671
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1672
                          both]
 
1673
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1674
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1675
                        (or the compiler's sysroot if not specified).
 
1676
 
 
1677
Some influential environment variables:
 
1678
  THREAD_LIBRARY
 
1679
              See --enable-thread-safety
 
1680
  MPICC       MPI C compiler
 
1681
  CC          C compiler command
 
1682
  CFLAGS      C compiler flags
 
1683
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1684
              nonstandard directory <lib dir>
 
1685
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1686
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1687
              you have headers in a nonstandard directory <include dir>
 
1688
  CPP         C preprocessor
 
1689
  ARMCI_COPT  ARMCI C optimization flags
 
1690
  MPICXX      MPI C++ compiler
 
1691
  CXX         C++ compiler command
 
1692
  CXXFLAGS    C++ compiler flags
 
1693
  ARMCI_CXXOPT
 
1694
              ARMCI C++ optimization flags
 
1695
  CCAS        assembler compiler command (defaults to CC)
 
1696
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1697
  AR          archiver used by libtool (default: ar)
 
1698
  AR_FLAGS    archiver flags used by libtool (default: cru)
 
1699
  RANLIB      generates index to archive (default: ranlib)
 
1700
  CXXCPP      C++ preprocessor
 
1701
  NPROCS      number of procs to use for parallel tests (default 4)
 
1702
  MPIEXEC     how to run parallel tests if built with MPI e.g. "mpiexec -np
 
1703
              %NP%"
 
1704
 
 
1705
Use these variables to override the choices made by `configure' or to help
 
1706
it to find libraries and programs with nonstandard names/locations.
 
1707
 
 
1708
Report bugs to <hpctools@pnl.gov>.
 
1709
Aggregate Remote Memory Copy Interface (ARMCI) home page: <http://www.emsl.pnl.gov/docs/parsoft/armci/>.
 
1710
_ACEOF
 
1711
ac_status=$?
 
1712
fi
 
1713
 
 
1714
if test "$ac_init_help" = "recursive"; then
 
1715
  # If there are subdirs, report their specific --help.
 
1716
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1717
    test -d "$ac_dir" ||
 
1718
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1719
      continue
 
1720
    ac_builddir=.
 
1721
 
 
1722
case "$ac_dir" in
 
1723
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1724
*)
 
1725
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1726
  # A ".." for each directory in $ac_dir_suffix.
 
1727
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1728
  case $ac_top_builddir_sub in
 
1729
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1730
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1731
  esac ;;
 
1732
esac
 
1733
ac_abs_top_builddir=$ac_pwd
 
1734
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1735
# for backward compatibility:
 
1736
ac_top_builddir=$ac_top_build_prefix
 
1737
 
 
1738
case $srcdir in
 
1739
  .)  # We are building in place.
 
1740
    ac_srcdir=.
 
1741
    ac_top_srcdir=$ac_top_builddir_sub
 
1742
    ac_abs_top_srcdir=$ac_pwd ;;
 
1743
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1744
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1745
    ac_top_srcdir=$srcdir
 
1746
    ac_abs_top_srcdir=$srcdir ;;
 
1747
  *) # Relative name.
 
1748
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1749
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1750
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1751
esac
 
1752
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1753
 
 
1754
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1755
    # Check for guested configure.
 
1756
    if test -f "$ac_srcdir/configure.gnu"; then
 
1757
      echo &&
 
1758
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1759
    elif test -f "$ac_srcdir/configure"; then
 
1760
      echo &&
 
1761
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1762
    else
 
1763
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1764
    fi || ac_status=$?
 
1765
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1766
  done
 
1767
fi
 
1768
 
 
1769
test -n "$ac_init_help" && exit $ac_status
 
1770
if $ac_init_version; then
 
1771
  cat <<\_ACEOF
 
1772
Aggregate Remote Memory Copy Interface (ARMCI) configure 1.5
 
1773
generated by GNU Autoconf 2.69
 
1774
 
 
1775
Copyright (C) 2012 Free Software Foundation, Inc.
 
1776
This configure script is free software; the Free Software Foundation
 
1777
gives unlimited permission to copy, distribute and modify it.
 
1778
_ACEOF
 
1779
  exit
 
1780
fi
 
1781
 
 
1782
## ------------------------ ##
 
1783
## Autoconf initialization. ##
 
1784
## ------------------------ ##
 
1785
 
 
1786
# ac_fn_c_try_compile LINENO
 
1787
# --------------------------
 
1788
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1789
ac_fn_c_try_compile ()
 
1790
{
 
1791
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1792
  rm -f conftest.$ac_objext
 
1793
  if { { ac_try="$ac_compile"
 
1794
case "(($ac_try" in
 
1795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1796
  *) ac_try_echo=$ac_try;;
 
1797
esac
 
1798
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1799
$as_echo "$ac_try_echo"; } >&5
 
1800
  (eval "$ac_compile") 2>conftest.err
 
1801
  ac_status=$?
 
1802
  if test -s conftest.err; then
 
1803
    grep -v '^ *+' conftest.err >conftest.er1
 
1804
    cat conftest.er1 >&5
 
1805
    mv -f conftest.er1 conftest.err
 
1806
  fi
 
1807
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1808
  test $ac_status = 0; } && {
 
1809
         test -z "$ac_c_werror_flag" ||
 
1810
         test ! -s conftest.err
 
1811
       } && test -s conftest.$ac_objext; then :
 
1812
  ac_retval=0
 
1813
else
 
1814
  $as_echo "$as_me: failed program was:" >&5
 
1815
sed 's/^/| /' conftest.$ac_ext >&5
 
1816
 
 
1817
        ac_retval=1
 
1818
fi
 
1819
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1820
  as_fn_set_status $ac_retval
 
1821
 
 
1822
} # ac_fn_c_try_compile
 
1823
 
 
1824
# ac_fn_c_try_cpp LINENO
 
1825
# ----------------------
 
1826
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1827
ac_fn_c_try_cpp ()
 
1828
{
 
1829
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1830
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1831
case "(($ac_try" in
 
1832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1833
  *) ac_try_echo=$ac_try;;
 
1834
esac
 
1835
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1836
$as_echo "$ac_try_echo"; } >&5
 
1837
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1838
  ac_status=$?
 
1839
  if test -s conftest.err; then
 
1840
    grep -v '^ *+' conftest.err >conftest.er1
 
1841
    cat conftest.er1 >&5
 
1842
    mv -f conftest.er1 conftest.err
 
1843
  fi
 
1844
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1845
  test $ac_status = 0; } > conftest.i && {
 
1846
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1847
         test ! -s conftest.err
 
1848
       }; then :
 
1849
  ac_retval=0
 
1850
else
 
1851
  $as_echo "$as_me: failed program was:" >&5
 
1852
sed 's/^/| /' conftest.$ac_ext >&5
 
1853
 
 
1854
    ac_retval=1
 
1855
fi
 
1856
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1857
  as_fn_set_status $ac_retval
 
1858
 
 
1859
} # ac_fn_c_try_cpp
 
1860
 
 
1861
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1862
# -------------------------------------------------------
 
1863
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1864
# the include files in INCLUDES and setting the cache variable VAR
 
1865
# accordingly.
 
1866
ac_fn_c_check_header_mongrel ()
 
1867
{
 
1868
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1869
  if eval \${$3+:} false; then :
 
1870
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1871
$as_echo_n "checking for $2... " >&6; }
 
1872
if eval \${$3+:} false; then :
 
1873
  $as_echo_n "(cached) " >&6
 
1874
fi
 
1875
eval ac_res=\$$3
 
1876
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1877
$as_echo "$ac_res" >&6; }
 
1878
else
 
1879
  # Is the header compilable?
 
1880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1881
$as_echo_n "checking $2 usability... " >&6; }
 
1882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1883
/* end confdefs.h.  */
 
1884
$4
 
1885
#include <$2>
 
1886
_ACEOF
 
1887
if ac_fn_c_try_compile "$LINENO"; then :
 
1888
  ac_header_compiler=yes
 
1889
else
 
1890
  ac_header_compiler=no
 
1891
fi
 
1892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1894
$as_echo "$ac_header_compiler" >&6; }
 
1895
 
 
1896
# Is the header present?
 
1897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1898
$as_echo_n "checking $2 presence... " >&6; }
 
1899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1900
/* end confdefs.h.  */
 
1901
#include <$2>
 
1902
_ACEOF
 
1903
if ac_fn_c_try_cpp "$LINENO"; then :
 
1904
  ac_header_preproc=yes
 
1905
else
 
1906
  ac_header_preproc=no
 
1907
fi
 
1908
rm -f conftest.err conftest.i conftest.$ac_ext
 
1909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1910
$as_echo "$ac_header_preproc" >&6; }
 
1911
 
 
1912
# So?  What about this header?
 
1913
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1914
  yes:no: )
 
1915
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1916
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1917
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1918
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1919
    ;;
 
1920
  no:yes:* )
 
1921
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1922
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1923
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1924
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1925
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1926
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1927
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1928
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1929
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1930
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1931
( $as_echo "## ------------------------------- ##
 
1932
## Report this to hpctools@pnl.gov ##
 
1933
## ------------------------------- ##"
 
1934
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1935
    ;;
 
1936
esac
 
1937
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1938
$as_echo_n "checking for $2... " >&6; }
 
1939
if eval \${$3+:} false; then :
 
1940
  $as_echo_n "(cached) " >&6
 
1941
else
 
1942
  eval "$3=\$ac_header_compiler"
 
1943
fi
 
1944
eval ac_res=\$$3
 
1945
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1946
$as_echo "$ac_res" >&6; }
 
1947
fi
 
1948
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1949
 
 
1950
} # ac_fn_c_check_header_mongrel
 
1951
 
 
1952
# ac_fn_c_try_run LINENO
 
1953
# ----------------------
 
1954
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1955
# that executables *can* be run.
 
1956
ac_fn_c_try_run ()
 
1957
{
 
1958
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1959
  if { { ac_try="$ac_link"
 
1960
case "(($ac_try" in
 
1961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1962
  *) ac_try_echo=$ac_try;;
 
1963
esac
 
1964
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1965
$as_echo "$ac_try_echo"; } >&5
 
1966
  (eval "$ac_link") 2>&5
 
1967
  ac_status=$?
 
1968
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1969
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1970
  { { case "(($ac_try" in
 
1971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1972
  *) ac_try_echo=$ac_try;;
 
1973
esac
 
1974
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1975
$as_echo "$ac_try_echo"; } >&5
 
1976
  (eval "$ac_try") 2>&5
 
1977
  ac_status=$?
 
1978
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1979
  test $ac_status = 0; }; }; then :
 
1980
  ac_retval=0
 
1981
else
 
1982
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1983
       $as_echo "$as_me: failed program was:" >&5
 
1984
sed 's/^/| /' conftest.$ac_ext >&5
 
1985
 
 
1986
       ac_retval=$ac_status
 
1987
fi
 
1988
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1989
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1990
  as_fn_set_status $ac_retval
 
1991
 
 
1992
} # ac_fn_c_try_run
 
1993
 
 
1994
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1995
# -------------------------------------------------------
 
1996
# Tests whether HEADER exists and can be compiled using the include files in
 
1997
# INCLUDES, setting the cache variable VAR accordingly.
 
1998
ac_fn_c_check_header_compile ()
 
1999
{
 
2000
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2001
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2002
$as_echo_n "checking for $2... " >&6; }
 
2003
if eval \${$3+:} false; then :
 
2004
  $as_echo_n "(cached) " >&6
 
2005
else
 
2006
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2007
/* end confdefs.h.  */
 
2008
$4
 
2009
#include <$2>
 
2010
_ACEOF
 
2011
if ac_fn_c_try_compile "$LINENO"; then :
 
2012
  eval "$3=yes"
 
2013
else
 
2014
  eval "$3=no"
 
2015
fi
 
2016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2017
fi
 
2018
eval ac_res=\$$3
 
2019
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2020
$as_echo "$ac_res" >&6; }
 
2021
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2022
 
 
2023
} # ac_fn_c_check_header_compile
 
2024
 
 
2025
# ac_fn_c_try_link LINENO
 
2026
# -----------------------
 
2027
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2028
ac_fn_c_try_link ()
 
2029
{
 
2030
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2031
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2032
  if { { ac_try="$ac_link"
 
2033
case "(($ac_try" in
 
2034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2035
  *) ac_try_echo=$ac_try;;
 
2036
esac
 
2037
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2038
$as_echo "$ac_try_echo"; } >&5
 
2039
  (eval "$ac_link") 2>conftest.err
 
2040
  ac_status=$?
 
2041
  if test -s conftest.err; then
 
2042
    grep -v '^ *+' conftest.err >conftest.er1
 
2043
    cat conftest.er1 >&5
 
2044
    mv -f conftest.er1 conftest.err
 
2045
  fi
 
2046
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2047
  test $ac_status = 0; } && {
 
2048
         test -z "$ac_c_werror_flag" ||
 
2049
         test ! -s conftest.err
 
2050
       } && test -s conftest$ac_exeext && {
 
2051
         test "$cross_compiling" = yes ||
 
2052
         test -x conftest$ac_exeext
 
2053
       }; then :
 
2054
  ac_retval=0
 
2055
else
 
2056
  $as_echo "$as_me: failed program was:" >&5
 
2057
sed 's/^/| /' conftest.$ac_ext >&5
 
2058
 
 
2059
        ac_retval=1
 
2060
fi
 
2061
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2062
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2063
  # interfere with the next link command; also delete a directory that is
 
2064
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2065
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2066
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2067
  as_fn_set_status $ac_retval
 
2068
 
 
2069
} # ac_fn_c_try_link
 
2070
 
 
2071
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2072
# --------------------------------------------
 
2073
# Tries to find the compile-time value of EXPR in a program that includes
 
2074
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2075
# computed
 
2076
ac_fn_c_compute_int ()
 
2077
{
 
2078
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2079
  if test "$cross_compiling" = yes; then
 
2080
    # Depending upon the size, compute the lo and hi bounds.
 
2081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2082
/* end confdefs.h.  */
 
2083
$4
 
2084
int
 
2085
main ()
 
2086
{
 
2087
static int test_array [1 - 2 * !(($2) >= 0)];
 
2088
test_array [0] = 0;
 
2089
return test_array [0];
 
2090
 
 
2091
  ;
 
2092
  return 0;
 
2093
}
 
2094
_ACEOF
 
2095
if ac_fn_c_try_compile "$LINENO"; then :
 
2096
  ac_lo=0 ac_mid=0
 
2097
  while :; do
 
2098
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2099
/* end confdefs.h.  */
 
2100
$4
 
2101
int
 
2102
main ()
 
2103
{
 
2104
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2105
test_array [0] = 0;
 
2106
return test_array [0];
 
2107
 
 
2108
  ;
 
2109
  return 0;
 
2110
}
 
2111
_ACEOF
 
2112
if ac_fn_c_try_compile "$LINENO"; then :
 
2113
  ac_hi=$ac_mid; break
 
2114
else
 
2115
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2116
                        if test $ac_lo -le $ac_mid; then
 
2117
                          ac_lo= ac_hi=
 
2118
                          break
 
2119
                        fi
 
2120
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2121
fi
 
2122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2123
  done
 
2124
else
 
2125
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2126
/* end confdefs.h.  */
 
2127
$4
 
2128
int
 
2129
main ()
 
2130
{
 
2131
static int test_array [1 - 2 * !(($2) < 0)];
 
2132
test_array [0] = 0;
 
2133
return test_array [0];
 
2134
 
 
2135
  ;
 
2136
  return 0;
 
2137
}
 
2138
_ACEOF
 
2139
if ac_fn_c_try_compile "$LINENO"; then :
 
2140
  ac_hi=-1 ac_mid=-1
 
2141
  while :; do
 
2142
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2143
/* end confdefs.h.  */
 
2144
$4
 
2145
int
 
2146
main ()
 
2147
{
 
2148
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2149
test_array [0] = 0;
 
2150
return test_array [0];
 
2151
 
 
2152
  ;
 
2153
  return 0;
 
2154
}
 
2155
_ACEOF
 
2156
if ac_fn_c_try_compile "$LINENO"; then :
 
2157
  ac_lo=$ac_mid; break
 
2158
else
 
2159
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2160
                        if test $ac_mid -le $ac_hi; then
 
2161
                          ac_lo= ac_hi=
 
2162
                          break
 
2163
                        fi
 
2164
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2165
fi
 
2166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2167
  done
 
2168
else
 
2169
  ac_lo= ac_hi=
 
2170
fi
 
2171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2172
fi
 
2173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2174
# Binary search between lo and hi bounds.
 
2175
while test "x$ac_lo" != "x$ac_hi"; do
 
2176
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2177
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2178
/* end confdefs.h.  */
 
2179
$4
 
2180
int
 
2181
main ()
 
2182
{
 
2183
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2184
test_array [0] = 0;
 
2185
return test_array [0];
 
2186
 
 
2187
  ;
 
2188
  return 0;
 
2189
}
 
2190
_ACEOF
 
2191
if ac_fn_c_try_compile "$LINENO"; then :
 
2192
  ac_hi=$ac_mid
 
2193
else
 
2194
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2195
fi
 
2196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2197
done
 
2198
case $ac_lo in #((
 
2199
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2200
'') ac_retval=1 ;;
 
2201
esac
 
2202
  else
 
2203
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2204
/* end confdefs.h.  */
 
2205
$4
 
2206
static long int longval () { return $2; }
 
2207
static unsigned long int ulongval () { return $2; }
 
2208
#include <stdio.h>
 
2209
#include <stdlib.h>
 
2210
int
 
2211
main ()
 
2212
{
 
2213
 
 
2214
  FILE *f = fopen ("conftest.val", "w");
 
2215
  if (! f)
 
2216
    return 1;
 
2217
  if (($2) < 0)
 
2218
    {
 
2219
      long int i = longval ();
 
2220
      if (i != ($2))
 
2221
        return 1;
 
2222
      fprintf (f, "%ld", i);
 
2223
    }
 
2224
  else
 
2225
    {
 
2226
      unsigned long int i = ulongval ();
 
2227
      if (i != ($2))
 
2228
        return 1;
 
2229
      fprintf (f, "%lu", i);
 
2230
    }
 
2231
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2232
     on some platforms.  */
 
2233
  return ferror (f) || fclose (f) != 0;
 
2234
 
 
2235
  ;
 
2236
  return 0;
 
2237
}
 
2238
_ACEOF
 
2239
if ac_fn_c_try_run "$LINENO"; then :
 
2240
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2241
else
 
2242
  ac_retval=1
 
2243
fi
 
2244
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2245
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2246
rm -f conftest.val
 
2247
 
 
2248
  fi
 
2249
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2250
  as_fn_set_status $ac_retval
 
2251
 
 
2252
} # ac_fn_c_compute_int
 
2253
 
 
2254
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2255
# ----------------------------------------------------
 
2256
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2257
# INCLUDES, setting cache variable VAR accordingly.
 
2258
ac_fn_c_check_member ()
 
2259
{
 
2260
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2261
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2262
$as_echo_n "checking for $2.$3... " >&6; }
 
2263
if eval \${$4+:} false; then :
 
2264
  $as_echo_n "(cached) " >&6
 
2265
else
 
2266
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2267
/* end confdefs.h.  */
 
2268
$5
 
2269
int
 
2270
main ()
 
2271
{
 
2272
static $2 ac_aggr;
 
2273
if (ac_aggr.$3)
 
2274
return 0;
 
2275
  ;
 
2276
  return 0;
 
2277
}
 
2278
_ACEOF
 
2279
if ac_fn_c_try_compile "$LINENO"; then :
 
2280
  eval "$4=yes"
 
2281
else
 
2282
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2283
/* end confdefs.h.  */
 
2284
$5
 
2285
int
 
2286
main ()
 
2287
{
 
2288
static $2 ac_aggr;
 
2289
if (sizeof ac_aggr.$3)
 
2290
return 0;
 
2291
  ;
 
2292
  return 0;
 
2293
}
 
2294
_ACEOF
 
2295
if ac_fn_c_try_compile "$LINENO"; then :
 
2296
  eval "$4=yes"
 
2297
else
 
2298
  eval "$4=no"
 
2299
fi
 
2300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2301
fi
 
2302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2303
fi
 
2304
eval ac_res=\$$4
 
2305
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2306
$as_echo "$ac_res" >&6; }
 
2307
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2308
 
 
2309
} # ac_fn_c_check_member
 
2310
 
 
2311
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2312
# -------------------------------------------
 
2313
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2314
# variable VAR accordingly.
 
2315
ac_fn_c_check_type ()
 
2316
{
 
2317
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2318
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2319
$as_echo_n "checking for $2... " >&6; }
 
2320
if eval \${$3+:} false; then :
 
2321
  $as_echo_n "(cached) " >&6
 
2322
else
 
2323
  eval "$3=no"
 
2324
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2325
/* end confdefs.h.  */
 
2326
$4
 
2327
int
 
2328
main ()
 
2329
{
 
2330
if (sizeof ($2))
 
2331
         return 0;
 
2332
  ;
 
2333
  return 0;
 
2334
}
 
2335
_ACEOF
 
2336
if ac_fn_c_try_compile "$LINENO"; then :
 
2337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2338
/* end confdefs.h.  */
 
2339
$4
 
2340
int
 
2341
main ()
 
2342
{
 
2343
if (sizeof (($2)))
 
2344
            return 0;
 
2345
  ;
 
2346
  return 0;
 
2347
}
 
2348
_ACEOF
 
2349
if ac_fn_c_try_compile "$LINENO"; then :
 
2350
 
 
2351
else
 
2352
  eval "$3=yes"
 
2353
fi
 
2354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2355
fi
 
2356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2357
fi
 
2358
eval ac_res=\$$3
 
2359
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2360
$as_echo "$ac_res" >&6; }
 
2361
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2362
 
 
2363
} # ac_fn_c_check_type
 
2364
 
 
2365
# ac_fn_c_find_intX_t LINENO BITS VAR
 
2366
# -----------------------------------
 
2367
# Finds a signed integer type with width BITS, setting cache variable VAR
 
2368
# accordingly.
 
2369
ac_fn_c_find_intX_t ()
 
2370
{
 
2371
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2372
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
 
2373
$as_echo_n "checking for int$2_t... " >&6; }
 
2374
if eval \${$3+:} false; then :
 
2375
  $as_echo_n "(cached) " >&6
 
2376
else
 
2377
  eval "$3=no"
 
2378
     # Order is important - never check a type that is potentially smaller
 
2379
     # than half of the expected target width.
 
2380
     for ac_type in int$2_t 'int' 'long int' \
 
2381
         'long long int' 'short int' 'signed char'; do
 
2382
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2383
/* end confdefs.h.  */
 
2384
$ac_includes_default
 
2385
             enum { N = $2 / 2 - 1 };
 
2386
int
 
2387
main ()
 
2388
{
 
2389
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
 
2390
test_array [0] = 0;
 
2391
return test_array [0];
 
2392
 
 
2393
  ;
 
2394
  return 0;
 
2395
}
 
2396
_ACEOF
 
2397
if ac_fn_c_try_compile "$LINENO"; then :
 
2398
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2399
/* end confdefs.h.  */
 
2400
$ac_includes_default
 
2401
                enum { N = $2 / 2 - 1 };
 
2402
int
 
2403
main ()
 
2404
{
 
2405
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
 
2406
                 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
 
2407
test_array [0] = 0;
 
2408
return test_array [0];
 
2409
 
 
2410
  ;
 
2411
  return 0;
 
2412
}
 
2413
_ACEOF
 
2414
if ac_fn_c_try_compile "$LINENO"; then :
 
2415
 
 
2416
else
 
2417
  case $ac_type in #(
 
2418
  int$2_t) :
 
2419
    eval "$3=yes" ;; #(
 
2420
  *) :
 
2421
    eval "$3=\$ac_type" ;;
 
2422
esac
 
2423
fi
 
2424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2425
fi
 
2426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2427
       if eval test \"x\$"$3"\" = x"no"; then :
 
2428
 
 
2429
else
 
2430
  break
 
2431
fi
 
2432
     done
 
2433
fi
 
2434
eval ac_res=\$$3
 
2435
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2436
$as_echo "$ac_res" >&6; }
 
2437
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2438
 
 
2439
} # ac_fn_c_find_intX_t
 
2440
 
 
2441
# ac_fn_c_find_uintX_t LINENO BITS VAR
 
2442
# ------------------------------------
 
2443
# Finds an unsigned integer type with width BITS, setting cache variable VAR
 
2444
# accordingly.
 
2445
ac_fn_c_find_uintX_t ()
 
2446
{
 
2447
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2448
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
 
2449
$as_echo_n "checking for uint$2_t... " >&6; }
 
2450
if eval \${$3+:} false; then :
 
2451
  $as_echo_n "(cached) " >&6
 
2452
else
 
2453
  eval "$3=no"
 
2454
     # Order is important - never check a type that is potentially smaller
 
2455
     # than half of the expected target width.
 
2456
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
 
2457
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
 
2458
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2459
/* end confdefs.h.  */
 
2460
$ac_includes_default
 
2461
int
 
2462
main ()
 
2463
{
 
2464
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
 
2465
test_array [0] = 0;
 
2466
return test_array [0];
 
2467
 
 
2468
  ;
 
2469
  return 0;
 
2470
}
 
2471
_ACEOF
 
2472
if ac_fn_c_try_compile "$LINENO"; then :
 
2473
  case $ac_type in #(
 
2474
  uint$2_t) :
 
2475
    eval "$3=yes" ;; #(
 
2476
  *) :
 
2477
    eval "$3=\$ac_type" ;;
 
2478
esac
 
2479
fi
 
2480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2481
       if eval test \"x\$"$3"\" = x"no"; then :
 
2482
 
 
2483
else
 
2484
  break
 
2485
fi
 
2486
     done
 
2487
fi
 
2488
eval ac_res=\$$3
 
2489
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2490
$as_echo "$ac_res" >&6; }
 
2491
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2492
 
 
2493
} # ac_fn_c_find_uintX_t
 
2494
 
 
2495
# ac_fn_c_check_func LINENO FUNC VAR
 
2496
# ----------------------------------
 
2497
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2498
ac_fn_c_check_func ()
 
2499
{
 
2500
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2501
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2502
$as_echo_n "checking for $2... " >&6; }
 
2503
if eval \${$3+:} false; then :
 
2504
  $as_echo_n "(cached) " >&6
 
2505
else
 
2506
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2507
/* end confdefs.h.  */
 
2508
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2509
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2510
#define $2 innocuous_$2
 
2511
 
 
2512
/* System header to define __stub macros and hopefully few prototypes,
 
2513
    which can conflict with char $2 (); below.
 
2514
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2515
    <limits.h> exists even on freestanding compilers.  */
 
2516
 
 
2517
#ifdef __STDC__
 
2518
# include <limits.h>
 
2519
#else
 
2520
# include <assert.h>
 
2521
#endif
 
2522
 
 
2523
#undef $2
 
2524
 
 
2525
/* Override any GCC internal prototype to avoid an error.
 
2526
   Use char because int might match the return type of a GCC
 
2527
   builtin and then its argument prototype would still apply.  */
 
2528
#ifdef __cplusplus
 
2529
extern "C"
 
2530
#endif
 
2531
char $2 ();
 
2532
/* The GNU C library defines this for functions which it implements
 
2533
    to always fail with ENOSYS.  Some functions are actually named
 
2534
    something starting with __ and the normal name is an alias.  */
 
2535
#if defined __stub_$2 || defined __stub___$2
 
2536
choke me
 
2537
#endif
 
2538
 
 
2539
int
 
2540
main ()
 
2541
{
 
2542
return $2 ();
 
2543
  ;
 
2544
  return 0;
 
2545
}
 
2546
_ACEOF
 
2547
if ac_fn_c_try_link "$LINENO"; then :
 
2548
  eval "$3=yes"
 
2549
else
 
2550
  eval "$3=no"
 
2551
fi
 
2552
rm -f core conftest.err conftest.$ac_objext \
 
2553
    conftest$ac_exeext conftest.$ac_ext
 
2554
fi
 
2555
eval ac_res=\$$3
 
2556
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2557
$as_echo "$ac_res" >&6; }
 
2558
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2559
 
 
2560
} # ac_fn_c_check_func
 
2561
 
 
2562
# ac_fn_cxx_try_compile LINENO
 
2563
# ----------------------------
 
2564
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2565
ac_fn_cxx_try_compile ()
 
2566
{
 
2567
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2568
  rm -f conftest.$ac_objext
 
2569
  if { { ac_try="$ac_compile"
 
2570
case "(($ac_try" in
 
2571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2572
  *) ac_try_echo=$ac_try;;
 
2573
esac
 
2574
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2575
$as_echo "$ac_try_echo"; } >&5
 
2576
  (eval "$ac_compile") 2>conftest.err
 
2577
  ac_status=$?
 
2578
  if test -s conftest.err; then
 
2579
    grep -v '^ *+' conftest.err >conftest.er1
 
2580
    cat conftest.er1 >&5
 
2581
    mv -f conftest.er1 conftest.err
 
2582
  fi
 
2583
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2584
  test $ac_status = 0; } && {
 
2585
         test -z "$ac_cxx_werror_flag" ||
 
2586
         test ! -s conftest.err
 
2587
       } && test -s conftest.$ac_objext; then :
 
2588
  ac_retval=0
 
2589
else
 
2590
  $as_echo "$as_me: failed program was:" >&5
 
2591
sed 's/^/| /' conftest.$ac_ext >&5
 
2592
 
 
2593
        ac_retval=1
 
2594
fi
 
2595
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2596
  as_fn_set_status $ac_retval
 
2597
 
 
2598
} # ac_fn_cxx_try_compile
 
2599
 
 
2600
# ac_fn_cxx_try_link LINENO
 
2601
# -------------------------
 
2602
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2603
ac_fn_cxx_try_link ()
 
2604
{
 
2605
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2606
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2607
  if { { ac_try="$ac_link"
 
2608
case "(($ac_try" in
 
2609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2610
  *) ac_try_echo=$ac_try;;
 
2611
esac
 
2612
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2613
$as_echo "$ac_try_echo"; } >&5
 
2614
  (eval "$ac_link") 2>conftest.err
 
2615
  ac_status=$?
 
2616
  if test -s conftest.err; then
 
2617
    grep -v '^ *+' conftest.err >conftest.er1
 
2618
    cat conftest.er1 >&5
 
2619
    mv -f conftest.er1 conftest.err
 
2620
  fi
 
2621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2622
  test $ac_status = 0; } && {
 
2623
         test -z "$ac_cxx_werror_flag" ||
 
2624
         test ! -s conftest.err
 
2625
       } && test -s conftest$ac_exeext && {
 
2626
         test "$cross_compiling" = yes ||
 
2627
         test -x conftest$ac_exeext
 
2628
       }; then :
 
2629
  ac_retval=0
 
2630
else
 
2631
  $as_echo "$as_me: failed program was:" >&5
 
2632
sed 's/^/| /' conftest.$ac_ext >&5
 
2633
 
 
2634
        ac_retval=1
 
2635
fi
 
2636
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2637
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2638
  # interfere with the next link command; also delete a directory that is
 
2639
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2640
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2641
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2642
  as_fn_set_status $ac_retval
 
2643
 
 
2644
} # ac_fn_cxx_try_link
 
2645
 
 
2646
# ac_fn_cxx_try_cpp LINENO
 
2647
# ------------------------
 
2648
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2649
ac_fn_cxx_try_cpp ()
 
2650
{
 
2651
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2652
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2653
case "(($ac_try" in
 
2654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2655
  *) ac_try_echo=$ac_try;;
 
2656
esac
 
2657
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2658
$as_echo "$ac_try_echo"; } >&5
 
2659
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2660
  ac_status=$?
 
2661
  if test -s conftest.err; then
 
2662
    grep -v '^ *+' conftest.err >conftest.er1
 
2663
    cat conftest.er1 >&5
 
2664
    mv -f conftest.er1 conftest.err
 
2665
  fi
 
2666
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2667
  test $ac_status = 0; } > conftest.i && {
 
2668
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
2669
         test ! -s conftest.err
 
2670
       }; then :
 
2671
  ac_retval=0
 
2672
else
 
2673
  $as_echo "$as_me: failed program was:" >&5
 
2674
sed 's/^/| /' conftest.$ac_ext >&5
 
2675
 
 
2676
    ac_retval=1
 
2677
fi
 
2678
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2679
  as_fn_set_status $ac_retval
 
2680
 
 
2681
} # ac_fn_cxx_try_cpp
 
2682
cat >config.log <<_ACEOF
 
2683
This file contains any messages produced by compilers while
 
2684
running configure, to aid debugging if configure makes a mistake.
 
2685
 
 
2686
It was created by Aggregate Remote Memory Copy Interface (ARMCI) $as_me 1.5, which was
 
2687
generated by GNU Autoconf 2.69.  Invocation command line was
 
2688
 
 
2689
  $ $0 $@
 
2690
 
 
2691
_ACEOF
 
2692
exec 5>>config.log
 
2693
{
 
2694
cat <<_ASUNAME
 
2695
## --------- ##
 
2696
## Platform. ##
 
2697
## --------- ##
 
2698
 
 
2699
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2700
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2701
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2702
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2703
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2704
 
 
2705
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2706
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2707
 
 
2708
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2709
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2710
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2711
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2712
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2713
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2714
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2715
 
 
2716
_ASUNAME
 
2717
 
 
2718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2719
for as_dir in $PATH
 
2720
do
 
2721
  IFS=$as_save_IFS
 
2722
  test -z "$as_dir" && as_dir=.
 
2723
    $as_echo "PATH: $as_dir"
 
2724
  done
 
2725
IFS=$as_save_IFS
 
2726
 
 
2727
} >&5
 
2728
 
 
2729
cat >&5 <<_ACEOF
 
2730
 
 
2731
 
 
2732
## ----------- ##
 
2733
## Core tests. ##
 
2734
## ----------- ##
 
2735
 
 
2736
_ACEOF
 
2737
 
 
2738
 
 
2739
# Keep a trace of the command line.
 
2740
# Strip out --no-create and --no-recursion so they do not pile up.
 
2741
# Strip out --silent because we don't want to record it for future runs.
 
2742
# Also quote any args containing shell meta-characters.
 
2743
# Make two passes to allow for proper duplicate-argument suppression.
 
2744
ac_configure_args=
 
2745
ac_configure_args0=
 
2746
ac_configure_args1=
 
2747
ac_must_keep_next=false
 
2748
for ac_pass in 1 2
 
2749
do
 
2750
  for ac_arg
 
2751
  do
 
2752
    case $ac_arg in
 
2753
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2754
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2755
    | -silent | --silent | --silen | --sile | --sil)
 
2756
      continue ;;
 
2757
    *\'*)
 
2758
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2759
    esac
 
2760
    case $ac_pass in
 
2761
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2762
    2)
 
2763
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2764
      if test $ac_must_keep_next = true; then
 
2765
        ac_must_keep_next=false # Got value, back to normal.
 
2766
      else
 
2767
        case $ac_arg in
 
2768
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2769
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2770
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2771
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2772
            case "$ac_configure_args0 " in
 
2773
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2774
            esac
 
2775
            ;;
 
2776
          -* ) ac_must_keep_next=true ;;
 
2777
        esac
 
2778
      fi
 
2779
      as_fn_append ac_configure_args " '$ac_arg'"
 
2780
      ;;
 
2781
    esac
 
2782
  done
 
2783
done
 
2784
{ ac_configure_args0=; unset ac_configure_args0;}
 
2785
{ ac_configure_args1=; unset ac_configure_args1;}
 
2786
 
 
2787
# When interrupted or exit'd, cleanup temporary files, and complete
 
2788
# config.log.  We remove comments because anyway the quotes in there
 
2789
# would cause problems or look ugly.
 
2790
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2791
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2792
trap 'exit_status=$?
 
2793
  # Save into config.log some information that might help in debugging.
 
2794
  {
 
2795
    echo
 
2796
 
 
2797
    $as_echo "## ---------------- ##
 
2798
## Cache variables. ##
 
2799
## ---------------- ##"
 
2800
    echo
 
2801
    # The following way of writing the cache mishandles newlines in values,
 
2802
(
 
2803
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2804
    eval ac_val=\$$ac_var
 
2805
    case $ac_val in #(
 
2806
    *${as_nl}*)
 
2807
      case $ac_var in #(
 
2808
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2809
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2810
      esac
 
2811
      case $ac_var in #(
 
2812
      _ | IFS | as_nl) ;; #(
 
2813
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2814
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2815
      esac ;;
 
2816
    esac
 
2817
  done
 
2818
  (set) 2>&1 |
 
2819
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2820
    *${as_nl}ac_space=\ *)
 
2821
      sed -n \
 
2822
        "s/'\''/'\''\\\\'\'''\''/g;
 
2823
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2824
      ;; #(
 
2825
    *)
 
2826
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2827
      ;;
 
2828
    esac |
 
2829
    sort
 
2830
)
 
2831
    echo
 
2832
 
 
2833
    $as_echo "## ----------------- ##
 
2834
## Output variables. ##
 
2835
## ----------------- ##"
 
2836
    echo
 
2837
    for ac_var in $ac_subst_vars
 
2838
    do
 
2839
      eval ac_val=\$$ac_var
 
2840
      case $ac_val in
 
2841
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2842
      esac
 
2843
      $as_echo "$ac_var='\''$ac_val'\''"
 
2844
    done | sort
 
2845
    echo
 
2846
 
 
2847
    if test -n "$ac_subst_files"; then
 
2848
      $as_echo "## ------------------- ##
 
2849
## File substitutions. ##
 
2850
## ------------------- ##"
 
2851
      echo
 
2852
      for ac_var in $ac_subst_files
 
2853
      do
 
2854
        eval ac_val=\$$ac_var
 
2855
        case $ac_val in
 
2856
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2857
        esac
 
2858
        $as_echo "$ac_var='\''$ac_val'\''"
 
2859
      done | sort
 
2860
      echo
 
2861
    fi
 
2862
 
 
2863
    if test -s confdefs.h; then
 
2864
      $as_echo "## ----------- ##
 
2865
## confdefs.h. ##
 
2866
## ----------- ##"
 
2867
      echo
 
2868
      cat confdefs.h
 
2869
      echo
 
2870
    fi
 
2871
    test "$ac_signal" != 0 &&
 
2872
      $as_echo "$as_me: caught signal $ac_signal"
 
2873
    $as_echo "$as_me: exit $exit_status"
 
2874
  } >&5
 
2875
  rm -f core *.core core.conftest.* &&
 
2876
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2877
    exit $exit_status
 
2878
' 0
 
2879
for ac_signal in 1 2 13 15; do
 
2880
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2881
done
 
2882
ac_signal=0
 
2883
 
 
2884
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2885
rm -f -r conftest* confdefs.h
 
2886
 
 
2887
$as_echo "/* confdefs.h */" > confdefs.h
 
2888
 
 
2889
# Predefined preprocessor variables.
 
2890
 
 
2891
cat >>confdefs.h <<_ACEOF
 
2892
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2893
_ACEOF
 
2894
 
 
2895
cat >>confdefs.h <<_ACEOF
 
2896
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2897
_ACEOF
 
2898
 
 
2899
cat >>confdefs.h <<_ACEOF
 
2900
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2901
_ACEOF
 
2902
 
 
2903
cat >>confdefs.h <<_ACEOF
 
2904
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2905
_ACEOF
 
2906
 
 
2907
cat >>confdefs.h <<_ACEOF
 
2908
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2909
_ACEOF
 
2910
 
 
2911
cat >>confdefs.h <<_ACEOF
 
2912
#define PACKAGE_URL "$PACKAGE_URL"
 
2913
_ACEOF
 
2914
 
 
2915
 
 
2916
# Let the site file select an alternate cache file if it wants to.
 
2917
# Prefer an explicitly selected file to automatically selected ones.
 
2918
ac_site_file1=NONE
 
2919
ac_site_file2=NONE
 
2920
if test -n "$CONFIG_SITE"; then
 
2921
  # We do not want a PATH search for config.site.
 
2922
  case $CONFIG_SITE in #((
 
2923
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2924
    */*) ac_site_file1=$CONFIG_SITE;;
 
2925
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2926
  esac
 
2927
elif test "x$prefix" != xNONE; then
 
2928
  ac_site_file1=$prefix/share/config.site
 
2929
  ac_site_file2=$prefix/etc/config.site
 
2930
else
 
2931
  ac_site_file1=$ac_default_prefix/share/config.site
 
2932
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2933
fi
 
2934
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2935
do
 
2936
  test "x$ac_site_file" = xNONE && continue
 
2937
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2938
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2939
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2940
    sed 's/^/| /' "$ac_site_file" >&5
 
2941
    . "$ac_site_file" \
 
2942
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2943
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2944
as_fn_error $? "failed to load site script $ac_site_file
 
2945
See \`config.log' for more details" "$LINENO" 5; }
 
2946
  fi
 
2947
done
 
2948
 
 
2949
if test -r "$cache_file"; then
 
2950
  # Some versions of bash will fail to source /dev/null (special files
 
2951
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2952
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2953
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2954
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2955
    case $cache_file in
 
2956
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2957
      *)                      . "./$cache_file";;
 
2958
    esac
 
2959
  fi
 
2960
else
 
2961
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2962
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2963
  >$cache_file
 
2964
fi
 
2965
 
 
2966
as_fn_append ac_header_list " stdlib.h"
 
2967
as_fn_append ac_header_list " unistd.h"
 
2968
as_fn_append ac_header_list " sys/param.h"
 
2969
# Check that the precious variables saved in the cache have kept the same
 
2970
# value.
 
2971
ac_cache_corrupted=false
 
2972
for ac_var in $ac_precious_vars; do
 
2973
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2974
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2975
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2976
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2977
  case $ac_old_set,$ac_new_set in
 
2978
    set,)
 
2979
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2980
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2981
      ac_cache_corrupted=: ;;
 
2982
    ,set)
 
2983
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2984
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2985
      ac_cache_corrupted=: ;;
 
2986
    ,);;
 
2987
    *)
 
2988
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2989
        # differences in whitespace do not lead to failure.
 
2990
        ac_old_val_w=`echo x $ac_old_val`
 
2991
        ac_new_val_w=`echo x $ac_new_val`
 
2992
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2993
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2994
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2995
          ac_cache_corrupted=:
 
2996
        else
 
2997
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2998
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2999
          eval $ac_var=\$ac_old_val
 
3000
        fi
 
3001
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
3002
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
3003
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
3004
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
3005
      fi;;
 
3006
  esac
 
3007
  # Pass precious variables to config.status.
 
3008
  if test "$ac_new_set" = set; then
 
3009
    case $ac_new_val in
 
3010
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
3011
    *) ac_arg=$ac_var=$ac_new_val ;;
 
3012
    esac
 
3013
    case " $ac_configure_args " in
 
3014
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
3015
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
3016
    esac
 
3017
  fi
 
3018
done
 
3019
if $ac_cache_corrupted; then
 
3020
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3021
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3022
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
3023
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
3024
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
3025
fi
 
3026
## -------------------- ##
 
3027
## Main body of script. ##
 
3028
## -------------------- ##
 
3029
 
 
3030
ac_ext=c
 
3031
ac_cpp='$CPP $CPPFLAGS'
 
3032
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3033
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3034
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3035
 
 
3036
 
 
3037
ac_aux_dir=
 
3038
for ac_dir in build-aux "$srcdir"/build-aux; do
 
3039
  if test -f "$ac_dir/install-sh"; then
 
3040
    ac_aux_dir=$ac_dir
 
3041
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3042
    break
 
3043
  elif test -f "$ac_dir/install.sh"; then
 
3044
    ac_aux_dir=$ac_dir
 
3045
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3046
    break
 
3047
  elif test -f "$ac_dir/shtool"; then
 
3048
    ac_aux_dir=$ac_dir
 
3049
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3050
    break
 
3051
  fi
 
3052
done
 
3053
if test -z "$ac_aux_dir"; then
 
3054
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
3055
fi
 
3056
 
 
3057
# These three variables are undocumented and unsupported,
 
3058
# and are intended to be withdrawn in a future Autoconf release.
 
3059
# They can cause serious problems if a builder's source tree is in a directory
 
3060
# whose full name contains unusual characters.
 
3061
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3062
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3063
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3064
 
 
3065
 
 
3066
ac_config_headers="$ac_config_headers config.h"
 
3067
 
 
3068
 
 
3069
 
 
3070
 
 
3071
 
 
3072
###############################################################################
 
3073
# Must occur before automake init
 
3074
###############################################################################
 
3075
# Make sure we can run config.sub.
 
3076
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3077
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
3078
 
 
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3080
$as_echo_n "checking build system type... " >&6; }
 
3081
if ${ac_cv_build+:} false; then :
 
3082
  $as_echo_n "(cached) " >&6
 
3083
else
 
3084
  ac_build_alias=$build_alias
 
3085
test "x$ac_build_alias" = x &&
 
3086
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3087
test "x$ac_build_alias" = x &&
 
3088
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
3089
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3090
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3091
 
 
3092
fi
 
3093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3094
$as_echo "$ac_cv_build" >&6; }
 
3095
case $ac_cv_build in
 
3096
*-*-*) ;;
 
3097
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
3098
esac
 
3099
build=$ac_cv_build
 
3100
ac_save_IFS=$IFS; IFS='-'
 
3101
set x $ac_cv_build
 
3102
shift
 
3103
build_cpu=$1
 
3104
build_vendor=$2
 
3105
shift; shift
 
3106
# Remember, the first character of IFS is used to create $*,
 
3107
# except with old shells:
 
3108
build_os=$*
 
3109
IFS=$ac_save_IFS
 
3110
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3111
 
 
3112
 
 
3113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3114
$as_echo_n "checking host system type... " >&6; }
 
3115
if ${ac_cv_host+:} false; then :
 
3116
  $as_echo_n "(cached) " >&6
 
3117
else
 
3118
  if test "x$host_alias" = x; then
 
3119
  ac_cv_host=$ac_cv_build
 
3120
else
 
3121
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3122
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3123
fi
 
3124
 
 
3125
fi
 
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3127
$as_echo "$ac_cv_host" >&6; }
 
3128
case $ac_cv_host in
 
3129
*-*-*) ;;
 
3130
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
3131
esac
 
3132
host=$ac_cv_host
 
3133
ac_save_IFS=$IFS; IFS='-'
 
3134
set x $ac_cv_host
 
3135
shift
 
3136
host_cpu=$1
 
3137
host_vendor=$2
 
3138
shift; shift
 
3139
# Remember, the first character of IFS is used to create $*,
 
3140
# except with old shells:
 
3141
host_os=$*
 
3142
IFS=$ac_save_IFS
 
3143
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3144
 
 
3145
 
 
3146
# AH_TEMPLATE for all known TARGETs
 
3147
 
 
3148
 
 
3149
 
 
3150
 
 
3151
 
 
3152
 
 
3153
 
 
3154
 
 
3155
 
 
3156
 
 
3157
 
 
3158
 
 
3159
 
 
3160
 
 
3161
 
 
3162
 
 
3163
 
 
3164
 
 
3165
 
 
3166
 
 
3167
 
 
3168
 
 
3169
 
 
3170
 
 
3171
 
 
3172
 
 
3173
 
 
3174
 
 
3175
 
 
3176
 
 
3177
 
 
3178
 
 
3179
 
 
3180
 
 
3181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TARGET base (64bit-ness checked later)" >&5
 
3182
$as_echo_n "checking for TARGET base (64bit-ness checked later)... " >&6; }
 
3183
if ${ga_cv_target_base+:} false; then :
 
3184
  $as_echo_n "(cached) " >&6
 
3185
else
 
3186
  ga_cv_target_base=UNKNOWN
 
3187
if test "x$ga_cv_target_base" = xUNKNOWN; then :
 
3188
  if test -f /bgsys/drivers/ppcfloor/arch/include/common/bgp_personality.h; then :
 
3189
  ga_cv_target_base=BGP
 
3190
fi
 
3191
fi
 
3192
if test "x$ga_cv_target_base" = xUNKNOWN; then :
 
3193
  if test -d /bgl/BlueLight/ppcfloor/bglsys/include; then :
 
3194
  ga_cv_target_base=BGL
 
3195
fi
 
3196
fi
 
3197
if test "x$ga_cv_target_base" = xUNKNOWN; then :
 
3198
  case $host in #(
 
3199
  *bgl*) :
 
3200
    ga_cv_target_base=BGL ;; #(
 
3201
  *bgp*) :
 
3202
    ga_cv_target_base=BGP ;; #(
 
3203
  #[TODO],            [ga_cv_target_base=CATAMOUNT],
 
3204
        #[TODO],            [ga_cv_target_base=CRAY_XT],
 
3205
        *cygwin*) :
 
3206
    ga_cv_target_base=CYGWIN ;; #(
 
3207
  *fujitsu*) :
 
3208
    ga_cv_target_base=FUJITSU_VPP ;; #(
 
3209
  *hpux*) :
 
3210
    ga_cv_target_base=HPUX ;; #(
 
3211
  *ibm*) :
 
3212
    ga_cv_target_base=IBM ;; #(
 
3213
  #[TODO],            [ga_cv_target_base=LAPI],
 
3214
        *linux*) :
 
3215
    ga_cv_target_base=LINUX ;; #(
 
3216
  *darwin*) :
 
3217
    ga_cv_target_base=MACX ;; #(
 
3218
  *apple*) :
 
3219
    ga_cv_target_base=MACX ;; #(
 
3220
  *superux*) :
 
3221
    ga_cv_target_base=NEC ;; #(
 
3222
  *solaris*) :
 
3223
    ga_cv_target_base=SOLARIS ;; #(
 
3224
  *) :
 
3225
     ;;
 
3226
esac
 
3227
fi
 
3228
 
 
3229
fi
 
3230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_target_base" >&5
 
3231
$as_echo "$ga_cv_target_base" >&6; }
 
3232
cat >>confdefs.h <<_ACEOF
 
3233
#define $ga_cv_target_base 1
 
3234
_ACEOF
 
3235
 
 
3236
# A horrible hack that should go away somehow...
 
3237
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we think this system is what we call SYSV" >&5
 
3238
$as_echo_n "checking whether we think this system is what we call SYSV... " >&6; }
 
3239
if ${ga_cv_sysv+:} false; then :
 
3240
  $as_echo_n "(cached) " >&6
 
3241
else
 
3242
  case $ga_cv_target_base in #(
 
3243
  SUN|SOLARIS|SGI|SGI_N32|SGITFP|HPUX|IBM|DECOSF|LINUX|INTERIX|NEC|LAPI) :
 
3244
    ga_cv_sysv=yes ;; #(
 
3245
  *) :
 
3246
    ga_cv_sysv=no ;;
 
3247
esac
 
3248
 
 
3249
fi
 
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_sysv" >&5
 
3251
$as_echo "$ga_cv_sysv" >&6; }
 
3252
    if test x$ga_cv_sysv = xyes; then :
 
3253
 
 
3254
$as_echo "#define SYSV 1" >>confdefs.h
 
3255
 
 
3256
fi
 
3257
# Hopefully these will never be used and we can remove them soon.
 
3258
 if test "$ga_cv_target_base" = BGL; then
 
3259
  BGL_TRUE=
 
3260
  BGL_FALSE='#'
 
3261
else
 
3262
  BGL_TRUE='#'
 
3263
  BGL_FALSE=
 
3264
fi
 
3265
 
 
3266
 if test "$ga_cv_target_base" = BGP; then
 
3267
  BGP_TRUE=
 
3268
  BGP_FALSE='#'
 
3269
else
 
3270
  BGP_TRUE='#'
 
3271
  BGP_FALSE=
 
3272
fi
 
3273
 
 
3274
 if test "$ga_cv_target_base" = CATAMOUNT; then
 
3275
  CATAMOUNT_TRUE=
 
3276
  CATAMOUNT_FALSE='#'
 
3277
else
 
3278
  CATAMOUNT_TRUE='#'
 
3279
  CATAMOUNT_FALSE=
 
3280
fi
 
3281
 
 
3282
 if test "$ga_cv_target_base" = CRAY_SV1; then
 
3283
  CRAY_SV1_TRUE=
 
3284
  CRAY_SV1_FALSE='#'
 
3285
else
 
3286
  CRAY_SV1_TRUE='#'
 
3287
  CRAY_SV1_FALSE=
 
3288
fi
 
3289
 
 
3290
 if test "$ga_cv_target_base" = CRAY_SV2; then
 
3291
  CRAY_SV2_TRUE=
 
3292
  CRAY_SV2_FALSE='#'
 
3293
else
 
3294
  CRAY_SV2_TRUE='#'
 
3295
  CRAY_SV2_FALSE=
 
3296
fi
 
3297
 
 
3298
 if test "$ga_cv_target_base" = CRAY_T3E; then
 
3299
  CRAY_T3E_TRUE=
 
3300
  CRAY_T3E_FALSE='#'
 
3301
else
 
3302
  CRAY_T3E_TRUE='#'
 
3303
  CRAY_T3E_FALSE=
 
3304
fi
 
3305
 
 
3306
 if test "$ga_cv_target_base" = CRAY_XT; then
 
3307
  CRAY_XT_TRUE=
 
3308
  CRAY_XT_FALSE='#'
 
3309
else
 
3310
  CRAY_XT_TRUE='#'
 
3311
  CRAY_XT_FALSE=
 
3312
fi
 
3313
 
 
3314
 if test "$ga_cv_target_base" = CRAY_YMP; then
 
3315
  CRAY_YMP_TRUE=
 
3316
  CRAY_YMP_FALSE='#'
 
3317
else
 
3318
  CRAY_YMP_TRUE='#'
 
3319
  CRAY_YMP_FALSE=
 
3320
fi
 
3321
 
 
3322
 if test "$ga_cv_target_base" = CYGNUS; then
 
3323
  CYGNUS_TRUE=
 
3324
  CYGNUS_FALSE='#'
 
3325
else
 
3326
  CYGNUS_TRUE='#'
 
3327
  CYGNUS_FALSE=
 
3328
fi
 
3329
 
 
3330
 if test "$ga_cv_target_base" = CYGWIN; then
 
3331
  CYGWIN_TRUE=
 
3332
  CYGWIN_FALSE='#'
 
3333
else
 
3334
  CYGWIN_TRUE='#'
 
3335
  CYGWIN_FALSE=
 
3336
fi
 
3337
 
 
3338
 if test "$ga_cv_target_base" = DECOSF; then
 
3339
  DECOSF_TRUE=
 
3340
  DECOSF_FALSE='#'
 
3341
else
 
3342
  DECOSF_TRUE='#'
 
3343
  DECOSF_FALSE=
 
3344
fi
 
3345
 
 
3346
 if test "$ga_cv_target_base" = FUJITSU_VPP; then
 
3347
  FUJITSU_VPP_TRUE=
 
3348
  FUJITSU_VPP_FALSE='#'
 
3349
else
 
3350
  FUJITSU_VPP_TRUE='#'
 
3351
  FUJITSU_VPP_FALSE=
 
3352
fi
 
3353
 
 
3354
 if test "$ga_cv_target_base" = HITACHI; then
 
3355
  HITACHI_TRUE=
 
3356
  HITACHI_FALSE='#'
 
3357
else
 
3358
  HITACHI_TRUE='#'
 
3359
  HITACHI_FALSE=
 
3360
fi
 
3361
 
 
3362
 if test "$ga_cv_target_base" = HPUX; then
 
3363
  HPUX_TRUE=
 
3364
  HPUX_FALSE='#'
 
3365
else
 
3366
  HPUX_TRUE='#'
 
3367
  HPUX_FALSE=
 
3368
fi
 
3369
 
 
3370
 if test "$ga_cv_target_base" = IBM; then
 
3371
  IBM_TRUE=
 
3372
  IBM_FALSE='#'
 
3373
else
 
3374
  IBM_TRUE='#'
 
3375
  IBM_FALSE=
 
3376
fi
 
3377
 
 
3378
 if test "$ga_cv_target_base" = INTERIX; then
 
3379
  INTERIX_TRUE=
 
3380
  INTERIX_FALSE='#'
 
3381
else
 
3382
  INTERIX_TRUE='#'
 
3383
  INTERIX_FALSE=
 
3384
fi
 
3385
 
 
3386
 if test "$ga_cv_target_base" = LAPI; then
 
3387
  LAPI_TRUE=
 
3388
  LAPI_FALSE='#'
 
3389
else
 
3390
  LAPI_TRUE='#'
 
3391
  LAPI_FALSE=
 
3392
fi
 
3393
 
 
3394
 if test "$ga_cv_target_base" = LINUX; then
 
3395
  LINUX_TRUE=
 
3396
  LINUX_FALSE='#'
 
3397
else
 
3398
  LINUX_TRUE='#'
 
3399
  LINUX_FALSE=
 
3400
fi
 
3401
 
 
3402
 if test "$ga_cv_target_base" = MACX; then
 
3403
  MACX_TRUE=
 
3404
  MACX_FALSE='#'
 
3405
else
 
3406
  MACX_TRUE='#'
 
3407
  MACX_FALSE=
 
3408
fi
 
3409
 
 
3410
 if test "$ga_cv_target_base" = NEC; then
 
3411
  NEC_TRUE=
 
3412
  NEC_FALSE='#'
 
3413
else
 
3414
  NEC_TRUE='#'
 
3415
  NEC_FALSE=
 
3416
fi
 
3417
 
 
3418
 if test "$ga_cv_target_base" = SGI; then
 
3419
  SGI_TRUE=
 
3420
  SGI_FALSE='#'
 
3421
else
 
3422
  SGI_TRUE='#'
 
3423
  SGI_FALSE=
 
3424
fi
 
3425
 
 
3426
 if test "$ga_cv_target_base" = SGI_N32; then
 
3427
  SGI_N32_TRUE=
 
3428
  SGI_N32_FALSE='#'
 
3429
else
 
3430
  SGI_N32_TRUE='#'
 
3431
  SGI_N32_FALSE=
 
3432
fi
 
3433
 
 
3434
 if test "$ga_cv_target_base" = SGITFP; then
 
3435
  SGITFP_TRUE=
 
3436
  SGITFP_FALSE='#'
 
3437
else
 
3438
  SGITFP_TRUE='#'
 
3439
  SGITFP_FALSE=
 
3440
fi
 
3441
 
 
3442
 if test "$ga_cv_target_base" = SOLARIS; then
 
3443
  SOLARIS_TRUE=
 
3444
  SOLARIS_FALSE='#'
 
3445
else
 
3446
  SOLARIS_TRUE='#'
 
3447
  SOLARIS_FALSE=
 
3448
fi
 
3449
 
 
3450
 
 
3451
 
 
3452
 
 
3453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3454
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3455
if ${ga_cv_cross_compiling+:} false; then :
 
3456
  $as_echo_n "(cached) " >&6
 
3457
else
 
3458
  if test "x$ga_cv_target_base" = xBGP; then :
 
3459
  cross_compiling=yes
 
3460
fi
 
3461
     ga_cv_cross_compiling=$cross_compiling
 
3462
fi
 
3463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cross_compiling" >&5
 
3464
$as_echo "$ga_cv_cross_compiling" >&6; }
 
3465
 if test "x$cross_compiling" = xyes; then
 
3466
  CROSS_COMPILING_TRUE=
 
3467
  CROSS_COMPILING_FALSE='#'
 
3468
else
 
3469
  CROSS_COMPILING_TRUE='#'
 
3470
  CROSS_COMPILING_FALSE=
 
3471
fi
 
3472
 
 
3473
 
 
3474
 
 
3475
###############################################################################
 
3476
# Init automake
 
3477
###############################################################################
 
3478
am__api_version='1.11'
 
3479
 
 
3480
# Find a good install program.  We prefer a C program (faster),
 
3481
# so one script is as good as another.  But avoid the broken or
 
3482
# incompatible versions:
 
3483
# SysV /etc/install, /usr/sbin/install
 
3484
# SunOS /usr/etc/install
 
3485
# IRIX /sbin/install
 
3486
# AIX /bin/install
 
3487
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3488
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3489
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3490
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3491
# OS/2's system install, which has a completely different semantic
 
3492
# ./install, which can be erroneously created by make from ./install.sh.
 
3493
# Reject install programs that cannot install multiple files.
 
3494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3495
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3496
if test -z "$INSTALL"; then
 
3497
if ${ac_cv_path_install+:} false; then :
 
3498
  $as_echo_n "(cached) " >&6
 
3499
else
 
3500
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3501
for as_dir in $PATH
 
3502
do
 
3503
  IFS=$as_save_IFS
 
3504
  test -z "$as_dir" && as_dir=.
 
3505
    # Account for people who put trailing slashes in PATH elements.
 
3506
case $as_dir/ in #((
 
3507
  ./ | .// | /[cC]/* | \
 
3508
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3509
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3510
  /usr/ucb/* ) ;;
 
3511
  *)
 
3512
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3513
    # Don't use installbsd from OSF since it installs stuff as root
 
3514
    # by default.
 
3515
    for ac_prog in ginstall scoinst install; do
 
3516
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3517
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3518
          if test $ac_prog = install &&
 
3519
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3520
            # AIX install.  It has an incompatible calling convention.
 
3521
            :
 
3522
          elif test $ac_prog = install &&
 
3523
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3524
            # program-specific install script used by HP pwplus--don't use.
 
3525
            :
 
3526
          else
 
3527
            rm -rf conftest.one conftest.two conftest.dir
 
3528
            echo one > conftest.one
 
3529
            echo two > conftest.two
 
3530
            mkdir conftest.dir
 
3531
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3532
              test -s conftest.one && test -s conftest.two &&
 
3533
              test -s conftest.dir/conftest.one &&
 
3534
              test -s conftest.dir/conftest.two
 
3535
            then
 
3536
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3537
              break 3
 
3538
            fi
 
3539
          fi
 
3540
        fi
 
3541
      done
 
3542
    done
 
3543
    ;;
 
3544
esac
 
3545
 
 
3546
  done
 
3547
IFS=$as_save_IFS
 
3548
 
 
3549
rm -rf conftest.one conftest.two conftest.dir
 
3550
 
 
3551
fi
 
3552
  if test "${ac_cv_path_install+set}" = set; then
 
3553
    INSTALL=$ac_cv_path_install
 
3554
  else
 
3555
    # As a last resort, use the slow shell script.  Don't cache a
 
3556
    # value for INSTALL within a source directory, because that will
 
3557
    # break other packages using the cache if that directory is
 
3558
    # removed, or if the value is a relative name.
 
3559
    INSTALL=$ac_install_sh
 
3560
  fi
 
3561
fi
 
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3563
$as_echo "$INSTALL" >&6; }
 
3564
 
 
3565
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3566
# It thinks the first close brace ends the variable substitution.
 
3567
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3568
 
 
3569
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3570
 
 
3571
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3572
 
 
3573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
3574
$as_echo_n "checking whether build environment is sane... " >&6; }
 
3575
# Just in case
 
3576
sleep 1
 
3577
echo timestamp > conftest.file
 
3578
# Reject unsafe characters in $srcdir or the absolute working directory
 
3579
# name.  Accept space and tab only in the latter.
 
3580
am_lf='
 
3581
'
 
3582
case `pwd` in
 
3583
  *[\\\"\#\$\&\'\`$am_lf]*)
 
3584
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
3585
esac
 
3586
case $srcdir in
 
3587
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
3588
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
3589
esac
 
3590
 
 
3591
# Do `set' in a subshell so we don't clobber the current shell's
 
3592
# arguments.  Must try -L first in case configure is actually a
 
3593
# symlink; some systems play weird games with the mod time of symlinks
 
3594
# (eg FreeBSD returns the mod time of the symlink's containing
 
3595
# directory).
 
3596
if (
 
3597
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3598
   if test "$*" = "X"; then
 
3599
      # -L didn't work.
 
3600
      set X `ls -t "$srcdir/configure" conftest.file`
 
3601
   fi
 
3602
   rm -f conftest.file
 
3603
   if test "$*" != "X $srcdir/configure conftest.file" \
 
3604
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
3605
 
 
3606
      # If neither matched, then we have a broken ls.  This can happen
 
3607
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3608
      # broken ls alias from the environment.  This has actually
 
3609
      # happened.  Such a system could not be considered "sane".
 
3610
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3611
alias in your environment" "$LINENO" 5
 
3612
   fi
 
3613
 
 
3614
   test "$2" = conftest.file
 
3615
   )
 
3616
then
 
3617
   # Ok.
 
3618
   :
 
3619
else
 
3620
   as_fn_error $? "newly created file is older than distributed files!
 
3621
Check your system clock" "$LINENO" 5
 
3622
fi
 
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3624
$as_echo "yes" >&6; }
 
3625
test "$program_prefix" != NONE &&
 
3626
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3627
# Use a double $ so make ignores it.
 
3628
test "$program_suffix" != NONE &&
 
3629
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3630
# Double any \ or $.
 
3631
# By default was `s,x,x', remove it if useless.
 
3632
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3633
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3634
 
 
3635
# expand $ac_aux_dir to an absolute path
 
3636
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3637
 
 
3638
if test x"${MISSING+set}" != xset; then
 
3639
  case $am_aux_dir in
 
3640
  *\ * | *\     *)
 
3641
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3642
  *)
 
3643
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3644
  esac
 
3645
fi
 
3646
# Use eval to expand $SHELL
 
3647
if eval "$MISSING --run true"; then
 
3648
  am_missing_run="$MISSING --run "
 
3649
else
 
3650
  am_missing_run=
 
3651
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
3652
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3653
fi
 
3654
 
 
3655
if test x"${install_sh}" != xset; then
 
3656
  case $am_aux_dir in
 
3657
  *\ * | *\     *)
 
3658
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3659
  *)
 
3660
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3661
  esac
 
3662
fi
 
3663
 
 
3664
# Installed binaries are usually stripped using `strip' when the user
 
3665
# run `make install-strip'.  However `strip' might not be the right
 
3666
# tool to use in cross-compilation environments, therefore Automake
 
3667
# will honor the `STRIP' environment variable to overrule this program.
 
3668
if test "$cross_compiling" != no; then
 
3669
  if test -n "$ac_tool_prefix"; then
 
3670
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3671
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3673
$as_echo_n "checking for $ac_word... " >&6; }
 
3674
if ${ac_cv_prog_STRIP+:} false; then :
 
3675
  $as_echo_n "(cached) " >&6
 
3676
else
 
3677
  if test -n "$STRIP"; then
 
3678
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3679
else
 
3680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3681
for as_dir in $PATH
 
3682
do
 
3683
  IFS=$as_save_IFS
 
3684
  test -z "$as_dir" && as_dir=.
 
3685
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3686
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3687
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3688
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3689
    break 2
 
3690
  fi
 
3691
done
 
3692
  done
 
3693
IFS=$as_save_IFS
 
3694
 
 
3695
fi
 
3696
fi
 
3697
STRIP=$ac_cv_prog_STRIP
 
3698
if test -n "$STRIP"; then
 
3699
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3700
$as_echo "$STRIP" >&6; }
 
3701
else
 
3702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3703
$as_echo "no" >&6; }
 
3704
fi
 
3705
 
 
3706
 
 
3707
fi
 
3708
if test -z "$ac_cv_prog_STRIP"; then
 
3709
  ac_ct_STRIP=$STRIP
 
3710
  # Extract the first word of "strip", so it can be a program name with args.
 
3711
set dummy strip; ac_word=$2
 
3712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3713
$as_echo_n "checking for $ac_word... " >&6; }
 
3714
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
3715
  $as_echo_n "(cached) " >&6
 
3716
else
 
3717
  if test -n "$ac_ct_STRIP"; then
 
3718
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3719
else
 
3720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3721
for as_dir in $PATH
 
3722
do
 
3723
  IFS=$as_save_IFS
 
3724
  test -z "$as_dir" && as_dir=.
 
3725
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3726
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3727
    ac_cv_prog_ac_ct_STRIP="strip"
 
3728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3729
    break 2
 
3730
  fi
 
3731
done
 
3732
  done
 
3733
IFS=$as_save_IFS
 
3734
 
 
3735
fi
 
3736
fi
 
3737
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3738
if test -n "$ac_ct_STRIP"; then
 
3739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3740
$as_echo "$ac_ct_STRIP" >&6; }
 
3741
else
 
3742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3743
$as_echo "no" >&6; }
 
3744
fi
 
3745
 
 
3746
  if test "x$ac_ct_STRIP" = x; then
 
3747
    STRIP=":"
 
3748
  else
 
3749
    case $cross_compiling:$ac_tool_warned in
 
3750
yes:)
 
3751
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3752
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3753
ac_tool_warned=yes ;;
 
3754
esac
 
3755
    STRIP=$ac_ct_STRIP
 
3756
  fi
 
3757
else
 
3758
  STRIP="$ac_cv_prog_STRIP"
 
3759
fi
 
3760
 
 
3761
fi
 
3762
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3763
 
 
3764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3765
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3766
if test -z "$MKDIR_P"; then
 
3767
  if ${ac_cv_path_mkdir+:} false; then :
 
3768
  $as_echo_n "(cached) " >&6
 
3769
else
 
3770
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3771
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3772
do
 
3773
  IFS=$as_save_IFS
 
3774
  test -z "$as_dir" && as_dir=.
 
3775
    for ac_prog in mkdir gmkdir; do
 
3776
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3777
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
3778
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3779
             'mkdir (GNU coreutils) '* | \
 
3780
             'mkdir (coreutils) '* | \
 
3781
             'mkdir (fileutils) '4.1*)
 
3782
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3783
               break 3;;
 
3784
           esac
 
3785
         done
 
3786
       done
 
3787
  done
 
3788
IFS=$as_save_IFS
 
3789
 
 
3790
fi
 
3791
 
 
3792
  test -d ./--version && rmdir ./--version
 
3793
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3794
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3795
  else
 
3796
    # As a last resort, use the slow shell script.  Don't cache a
 
3797
    # value for MKDIR_P within a source directory, because that will
 
3798
    # break other packages using the cache if that directory is
 
3799
    # removed, or if the value is a relative name.
 
3800
    MKDIR_P="$ac_install_sh -d"
 
3801
  fi
 
3802
fi
 
3803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3804
$as_echo "$MKDIR_P" >&6; }
 
3805
 
 
3806
mkdir_p="$MKDIR_P"
 
3807
case $mkdir_p in
 
3808
  [\\/$]* | ?:[\\/]*) ;;
 
3809
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3810
esac
 
3811
 
 
3812
for ac_prog in gawk mawk nawk awk
 
3813
do
 
3814
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3815
set dummy $ac_prog; ac_word=$2
 
3816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3817
$as_echo_n "checking for $ac_word... " >&6; }
 
3818
if ${ac_cv_prog_AWK+:} false; then :
 
3819
  $as_echo_n "(cached) " >&6
 
3820
else
 
3821
  if test -n "$AWK"; then
 
3822
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3823
else
 
3824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3825
for as_dir in $PATH
 
3826
do
 
3827
  IFS=$as_save_IFS
 
3828
  test -z "$as_dir" && as_dir=.
 
3829
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3830
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3831
    ac_cv_prog_AWK="$ac_prog"
 
3832
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3833
    break 2
 
3834
  fi
 
3835
done
 
3836
  done
 
3837
IFS=$as_save_IFS
 
3838
 
 
3839
fi
 
3840
fi
 
3841
AWK=$ac_cv_prog_AWK
 
3842
if test -n "$AWK"; then
 
3843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3844
$as_echo "$AWK" >&6; }
 
3845
else
 
3846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3847
$as_echo "no" >&6; }
 
3848
fi
 
3849
 
 
3850
 
 
3851
  test -n "$AWK" && break
 
3852
done
 
3853
 
 
3854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3855
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3856
set x ${MAKE-make}
 
3857
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3858
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3859
  $as_echo_n "(cached) " >&6
 
3860
else
 
3861
  cat >conftest.make <<\_ACEOF
 
3862
SHELL = /bin/sh
 
3863
all:
 
3864
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3865
_ACEOF
 
3866
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3867
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3868
  *@@@%%%=?*=@@@%%%*)
 
3869
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3870
  *)
 
3871
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3872
esac
 
3873
rm -f conftest.make
 
3874
fi
 
3875
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3877
$as_echo "yes" >&6; }
 
3878
  SET_MAKE=
 
3879
else
 
3880
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3881
$as_echo "no" >&6; }
 
3882
  SET_MAKE="MAKE=${MAKE-make}"
 
3883
fi
 
3884
 
 
3885
rm -rf .tst 2>/dev/null
 
3886
mkdir .tst 2>/dev/null
 
3887
if test -d .tst; then
 
3888
  am__leading_dot=.
 
3889
else
 
3890
  am__leading_dot=_
 
3891
fi
 
3892
rmdir .tst 2>/dev/null
 
3893
 
 
3894
# Check whether --enable-silent-rules was given.
 
3895
if test "${enable_silent_rules+set}" = set; then :
 
3896
  enableval=$enable_silent_rules;
 
3897
fi
 
3898
 
 
3899
case $enable_silent_rules in
 
3900
yes) AM_DEFAULT_VERBOSITY=0;;
 
3901
no)  AM_DEFAULT_VERBOSITY=1;;
 
3902
*)   AM_DEFAULT_VERBOSITY=1;;
 
3903
esac
 
3904
am_make=${MAKE-make}
 
3905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
3906
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
3907
if ${am_cv_make_support_nested_variables+:} false; then :
 
3908
  $as_echo_n "(cached) " >&6
 
3909
else
 
3910
  if $as_echo 'TRUE=$(BAR$(V))
 
3911
BAR0=false
 
3912
BAR1=true
 
3913
V=1
 
3914
am__doit:
 
3915
        @$(TRUE)
 
3916
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
3917
  am_cv_make_support_nested_variables=yes
 
3918
else
 
3919
  am_cv_make_support_nested_variables=no
 
3920
fi
 
3921
fi
 
3922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
3923
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
3924
if test $am_cv_make_support_nested_variables = yes; then
 
3925
    AM_V='$(V)'
 
3926
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
3927
else
 
3928
  AM_V=$AM_DEFAULT_VERBOSITY
 
3929
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
3930
fi
 
3931
AM_BACKSLASH='\'
 
3932
 
 
3933
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3934
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3935
  # is not polluted with repeated "-I."
 
3936
  am__isrc=' -I$(srcdir)'
 
3937
  # test to see if srcdir already configured
 
3938
  if test -f $srcdir/config.status; then
 
3939
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3940
  fi
 
3941
fi
 
3942
 
 
3943
# test whether we have cygpath
 
3944
if test -z "$CYGPATH_W"; then
 
3945
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3946
    CYGPATH_W='cygpath -w'
 
3947
  else
 
3948
    CYGPATH_W=echo
 
3949
  fi
 
3950
fi
 
3951
 
 
3952
 
 
3953
# Define the identity of the package.
 
3954
 PACKAGE='armci'
 
3955
 VERSION='1.5'
 
3956
 
 
3957
 
 
3958
cat >>confdefs.h <<_ACEOF
 
3959
#define PACKAGE "$PACKAGE"
 
3960
_ACEOF
 
3961
 
 
3962
 
 
3963
cat >>confdefs.h <<_ACEOF
 
3964
#define VERSION "$VERSION"
 
3965
_ACEOF
 
3966
 
 
3967
# Some tools Automake needs.
 
3968
 
 
3969
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3970
 
 
3971
 
 
3972
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3973
 
 
3974
 
 
3975
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3976
 
 
3977
 
 
3978
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3979
 
 
3980
 
 
3981
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3982
 
 
3983
# We need awk for the "check" target.  The system "awk" is bad on
 
3984
# some platforms.
 
3985
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
3986
# in the wild :-(  We should find a proper way to deprecate it ...
 
3987
AMTAR='$${TAR-tar}'
 
3988
 
 
3989
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
3990
 
 
3991
 
 
3992
 
 
3993
 
 
3994
 
 
3995
 
 
3996
# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
 
3997
 
 
3998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
3999
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
4000
    # Check whether --enable-maintainer-mode was given.
 
4001
if test "${enable_maintainer_mode+set}" = set; then :
 
4002
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
4003
else
 
4004
  USE_MAINTAINER_MODE=no
 
4005
fi
 
4006
 
 
4007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
4008
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
4009
   if test $USE_MAINTAINER_MODE = yes; then
 
4010
  MAINTAINER_MODE_TRUE=
 
4011
  MAINTAINER_MODE_FALSE='#'
 
4012
else
 
4013
  MAINTAINER_MODE_TRUE='#'
 
4014
  MAINTAINER_MODE_FALSE=
 
4015
fi
 
4016
 
 
4017
  MAINT=$MAINTAINER_MODE_TRUE
 
4018
 
 
4019
 
 
4020
 
 
4021
###############################################################################
 
4022
# Misc. information and package setup.
 
4023
###############################################################################
 
4024
 
 
4025
# Check whether --with-PACKAGE was given.
 
4026
if test "${with_PACKAGE+set}" = set; then :
 
4027
  withval=$with_PACKAGE;
 
4028
fi
 
4029
 
 
4030
 
 
4031
ARMCI_TOP_BUILDDIR="`pwd`"
 
4032
cd "$srcdir"
 
4033
ARMCI_TOP_SRCDIR="`pwd`"
 
4034
cd "$ARMCI_TOP_BUILDDIR"
 
4035
if test "$ARMCI_TOP_BUILDDIR" != "$ARMCI_TOP_SRCDIR"; then :
 
4036
  { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
 
4037
$as_echo "$as_me: Detected VPATH build" >&6;}
 
4038
fi
 
4039
 
 
4040
# Determine messaging library up front because if MPI is desired we use the
 
4041
# MPI compiler wrappers instead of the standard compilers.
 
4042
 
 
4043
# GA_MP_* vars might exist in environment, but they are really internal.
 
4044
# Reset them.
 
4045
GA_MP_LIBS=
 
4046
GA_MP_LDFLAGS=
 
4047
GA_MP_CPPFLAGS=
 
4048
 
 
4049
# Check whether --with-mpi was given.
 
4050
if test "${with_mpi+set}" = set; then :
 
4051
  withval=$with_mpi;
 
4052
else
 
4053
  with_mpi=yes
 
4054
fi
 
4055
 
 
4056
with_mpi_need_parse=no
 
4057
case $with_mpi in #(
 
4058
  yes) :
 
4059
    with_mpi_wrappers=yes; ga_msg_comms=MPI ;; #(
 
4060
  no) :
 
4061
    case $ga_cv_target_base in #(
 
4062
  MACX|LAPI|CYGNUS|CYGWIN|INTERIX) :
 
4063
    ga_msg_comms=TCGMSG5 ;; #(
 
4064
  *) :
 
4065
    ga_msg_comms=TCGMSG ;;
 
4066
esac ;; #(
 
4067
  *) :
 
4068
    with_mpi_need_parse=yes; ga_msg_comms=MPI ;; #(
 
4069
  *) :
 
4070
     ;;
 
4071
esac
 
4072
 if test "x$ga_msg_comms" = xMPI; then
 
4073
  MSG_COMMS_MPI_TRUE=
 
4074
  MSG_COMMS_MPI_FALSE='#'
 
4075
else
 
4076
  MSG_COMMS_MPI_TRUE='#'
 
4077
  MSG_COMMS_MPI_FALSE=
 
4078
fi
 
4079
 
 
4080
 if test "x$ga_msg_comms" = xTCGMSG; then
 
4081
  MSG_COMMS_TCGMSG4_TRUE=
 
4082
  MSG_COMMS_TCGMSG4_FALSE='#'
 
4083
else
 
4084
  MSG_COMMS_TCGMSG4_TRUE='#'
 
4085
  MSG_COMMS_TCGMSG4_FALSE=
 
4086
fi
 
4087
 
 
4088
 if test "x$ga_msg_comms" = xTCGMSG5; then
 
4089
  MSG_COMMS_TCGMSG5_TRUE=
 
4090
  MSG_COMMS_TCGMSG5_FALSE='#'
 
4091
else
 
4092
  MSG_COMMS_TCGMSG5_TRUE='#'
 
4093
  MSG_COMMS_TCGMSG5_FALSE=
 
4094
fi
 
4095
 
 
4096
case $ga_msg_comms in #(
 
4097
  MPI) :
 
4098
 
 
4099
$as_echo "#define MSG_COMMS_MPI 1" >>confdefs.h
 
4100
 ;; #(
 
4101
  TCGMSG) :
 
4102
 
 
4103
$as_echo "#define MSG_COMMS_TCGMSG4 1" >>confdefs.h
 
4104
 
 
4105
 
 
4106
$as_echo "#define MSG_COMMS_TCGMSG 1" >>confdefs.h
 
4107
 
 
4108
 
 
4109
$as_echo "#define TCGMSG 1" >>confdefs.h
 
4110
 ;; #(
 
4111
  TCGMSG5) :
 
4112
 
 
4113
$as_echo "#define MSG_COMMS_TCGMSG5 1" >>confdefs.h
 
4114
 
 
4115
 
 
4116
$as_echo "#define MSG_COMMS_TCGMSG 1" >>confdefs.h
 
4117
 
 
4118
 
 
4119
$as_echo "#define TCGMSG 1" >>confdefs.h
 
4120
 ;; #(
 
4121
  *) :
 
4122
     ;;
 
4123
esac
 
4124
 
 
4125
 
 
4126
 
 
4127
 
 
4128
 
 
4129
# Hack to enable NEW_MALLOC feature
 
4130
# Check whether --enable-portals-new-malloc was given.
 
4131
if test "${enable_portals_new_malloc+set}" = set; then :
 
4132
  enableval=$enable_portals_new_malloc;
 
4133
fi
 
4134
 
 
4135
if test "x$enable_portals_new_malloc" = xyes; then :
 
4136
 
 
4137
$as_echo "#define NEW_MALLOC 1" >>confdefs.h
 
4138
 
 
4139
fi
 
4140
 if test "x$enable_portals_new_malloc" = xyes; then
 
4141
  PORTALS_ENABLE_NEW_MALLOC_TRUE=
 
4142
  PORTALS_ENABLE_NEW_MALLOC_FALSE='#'
 
4143
else
 
4144
  PORTALS_ENABLE_NEW_MALLOC_TRUE='#'
 
4145
  PORTALS_ENABLE_NEW_MALLOC_FALSE=
 
4146
fi
 
4147
 
 
4148
 
 
4149
 
 
4150
# Check whether --enable-gpc was given.
 
4151
if test "${enable_gpc+set}" = set; then :
 
4152
  enableval=$enable_gpc; enable_gpc=yes
 
4153
else
 
4154
  enable_gpc=no
 
4155
fi
 
4156
 
 
4157
if test $enable_gpc = yes; then :
 
4158
 
 
4159
$as_echo "#define ARMCI_ENABLE_GPC_CALLS 1" >>confdefs.h
 
4160
 
 
4161
else
 
4162
 
 
4163
$as_echo "#define ARMCI_ENABLE_GPC_CALLS 0" >>confdefs.h
 
4164
 
 
4165
fi
 
4166
 if test x$enable_gpc = xyes; then
 
4167
  ARMCI_ENABLE_GPC_CALLS_TRUE=
 
4168
  ARMCI_ENABLE_GPC_CALLS_FALSE='#'
 
4169
else
 
4170
  ARMCI_ENABLE_GPC_CALLS_TRUE='#'
 
4171
  ARMCI_ENABLE_GPC_CALLS_FALSE=
 
4172
fi
 
4173
 
 
4174
 
 
4175
# Check whether --enable-armci_group was given.
 
4176
if test "${enable_armci_group+set}" = set; then :
 
4177
  enableval=$enable_armci_group; enable_armci_group=yes
 
4178
 
 
4179
$as_echo "#define ARMCI_GROUP 1" >>confdefs.h
 
4180
 
 
4181
else
 
4182
  enable_armci_group=no
 
4183
fi
 
4184
 
 
4185
 if test x$enable_armci_group = xyes; then
 
4186
  ARMCI_GROUP_TRUE=
 
4187
  ARMCI_GROUP_FALSE='#'
 
4188
else
 
4189
  ARMCI_GROUP_TRUE='#'
 
4190
  ARMCI_GROUP_FALSE=
 
4191
fi
 
4192
 
 
4193
 
 
4194
# Check whether --enable-nb_noncont was given.
 
4195
if test "${enable_nb_noncont+set}" = set; then :
 
4196
  enableval=$enable_nb_noncont; enable_nb_noncont=yes
 
4197
 
 
4198
$as_echo "#define NB_NONCONT 1" >>confdefs.h
 
4199
 
 
4200
else
 
4201
  enable_nb_noncont=no
 
4202
fi
 
4203
 
 
4204
 if test x$enable_nb_noncont = xyes; then
 
4205
  NB_NONCONT_TRUE=
 
4206
  NB_NONCONT_FALSE='#'
 
4207
else
 
4208
  NB_NONCONT_TRUE='#'
 
4209
  NB_NONCONT_FALSE=
 
4210
fi
 
4211
 
 
4212
 
 
4213
 
 
4214
# Check whether --enable-profiling was given.
 
4215
if test "${enable_profiling+set}" = set; then :
 
4216
  enableval=$enable_profiling;
 
4217
else
 
4218
  enable_profiling=no
 
4219
fi
 
4220
 
 
4221
if test "x$enable_profiling" = xyes; then :
 
4222
 
 
4223
$as_echo "#define ARMCI_PROFILE 1" >>confdefs.h
 
4224
 
 
4225
fi
 
4226
 if test "x$enable_profiling" = xyes; then
 
4227
  ENABLE_PROFILING_TRUE=
 
4228
  ENABLE_PROFILING_FALSE='#'
 
4229
else
 
4230
  ENABLE_PROFILING_TRUE='#'
 
4231
  ENABLE_PROFILING_FALSE=
 
4232
fi
 
4233
 
 
4234
 
 
4235
 
 
4236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARMCI_DEFAULT_SHMMAX upper bound" >&5
 
4237
$as_echo_n "checking for ARMCI_DEFAULT_SHMMAX upper bound... " >&6; }
 
4238
if ${armci_cv_shmmax+:} false; then :
 
4239
  $as_echo_n "(cached) " >&6
 
4240
else
 
4241
  if test "x$ARMCI_DEFAULT_SHMMAX_UBOUND" != x; then :
 
4242
  armci_cv_shmmax=$ARMCI_DEFAULT_SHMMAX_UBOUND
 
4243
else
 
4244
  armci_cv_shmmax=8192
 
4245
fi
 
4246
fi
 
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $armci_cv_shmmax" >&5
 
4248
$as_echo "$armci_cv_shmmax" >&6; }
 
4249
if test $armci_cv_shmmax -le 1; then :
 
4250
  as_fn_error $? "invalid ARMCI_DEFAULT_SHMMAX upper bound; <= 1" "$LINENO" 5
 
4251
fi
 
4252
 
 
4253
cat >>confdefs.h <<_ACEOF
 
4254
#define ARMCI_DEFAULT_SHMMAX_UBOUND $armci_cv_shmmax
 
4255
_ACEOF
 
4256
 
 
4257
 
 
4258
# Check whether --enable-mpi-tests was given.
 
4259
if test "${enable_mpi_tests+set}" = set; then :
 
4260
  enableval=$enable_mpi_tests;
 
4261
else
 
4262
  enable_mpi_tests=yes
 
4263
fi
 
4264
 
 
4265
 
 
4266
 
 
4267
# Check whether --enable-warnings was given.
 
4268
if test "${enable_warnings+set}" = set; then :
 
4269
  enableval=$enable_warnings; enable_warnings=yes
 
4270
else
 
4271
  enable_warnings=no
 
4272
fi
 
4273
 
 
4274
 
 
4275
# Check whether --enable-checkpoint was given.
 
4276
if test "${enable_checkpoint+set}" = set; then :
 
4277
  enableval=$enable_checkpoint; enable_checkpoint=yes
 
4278
 
 
4279
$as_echo "#define ENABLE_CHECKPOINT 1" >>confdefs.h
 
4280
 
 
4281
else
 
4282
  enable_checkpoint=no
 
4283
fi
 
4284
 
 
4285
 if test x$enable_checkpoint = xyes; then
 
4286
  ENABLE_CHECKPOINT_TRUE=
 
4287
  ENABLE_CHECKPOINT_FALSE='#'
 
4288
else
 
4289
  ENABLE_CHECKPOINT_TRUE='#'
 
4290
  ENABLE_CHECKPOINT_FALSE=
 
4291
fi
 
4292
 
 
4293
 
 
4294
 
 
4295
# Check whether --enable-opt was given.
 
4296
if test "${enable_opt+set}" = set; then :
 
4297
  enableval=$enable_opt; enable_opt=no
 
4298
else
 
4299
  enable_opt=yes
 
4300
fi
 
4301
 
 
4302
 
 
4303
# Check whether --enable-trace was given.
 
4304
if test "${enable_trace+set}" = set; then :
 
4305
  enableval=$enable_trace; enable_trace=yes
 
4306
 
 
4307
$as_echo "#define ENABLE_TRACE 1" >>confdefs.h
 
4308
 
 
4309
else
 
4310
  enable_trace=no
 
4311
fi
 
4312
 
 
4313
 if test x$enable_trace = xyes; then
 
4314
  ENABLE_TRACE_TRUE=
 
4315
  ENABLE_TRACE_FALSE='#'
 
4316
else
 
4317
  ENABLE_TRACE_TRUE='#'
 
4318
  ENABLE_TRACE_FALSE=
 
4319
fi
 
4320
 
 
4321
 
 
4322
# Check whether --enable-thread-safety was given.
 
4323
if test "${enable_thread_safety+set}" = set; then :
 
4324
  enableval=$enable_thread_safety; thread_safety=yes
 
4325
 
 
4326
$as_echo "#define THREAD_SAFE 1" >>confdefs.h
 
4327
 
 
4328
else
 
4329
  thread_safety=no
 
4330
fi
 
4331
 
 
4332
 if test x$thread_safety = xyes; then
 
4333
  THREAD_SAFE_TRUE=
 
4334
  THREAD_SAFE_FALSE='#'
 
4335
else
 
4336
  THREAD_SAFE_TRUE='#'
 
4337
  THREAD_SAFE_FALSE=
 
4338
fi
 
4339
 
 
4340
 
 
4341
 
 
4342
 
 
4343
 
 
4344
# Unless we rename all preprocessor symbols of MPI and MPIPP
 
4345
# in the source code, this hack is necessary.
 
4346
 
 
4347
 
 
4348
#########################################
 
4349
# C compiler
 
4350
#########################################
 
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
4352
$as_echo "$as_me: " >&6;}
 
4353
{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler" >&5
 
4354
$as_echo "$as_me: C compiler" >&6;}
 
4355
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
4356
$as_echo "$as_me: " >&6;}
 
4357
 
 
4358
ga_save_CFLAGS="$CFLAGS"
 
4359
DEPDIR="${am__leading_dot}deps"
 
4360
 
 
4361
ac_config_commands="$ac_config_commands depfiles"
 
4362
 
 
4363
 
 
4364
am_make=${MAKE-make}
 
4365
cat > confinc << 'END'
 
4366
am__doit:
 
4367
        @echo this is the am__doit target
 
4368
.PHONY: am__doit
 
4369
END
 
4370
# If we don't find an include directive, just comment out the code.
 
4371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4372
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4373
am__include="#"
 
4374
am__quote=
 
4375
_am_result=none
 
4376
# First try GNU make style include.
 
4377
echo "include confinc" > confmf
 
4378
# Ignore all kinds of additional output from `make'.
 
4379
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4380
*the\ am__doit\ target*)
 
4381
  am__include=include
 
4382
  am__quote=
 
4383
  _am_result=GNU
 
4384
  ;;
 
4385
esac
 
4386
# Now try BSD make style include.
 
4387
if test "$am__include" = "#"; then
 
4388
   echo '.include "confinc"' > confmf
 
4389
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4390
   *the\ am__doit\ target*)
 
4391
     am__include=.include
 
4392
     am__quote="\""
 
4393
     _am_result=BSD
 
4394
     ;;
 
4395
   esac
 
4396
fi
 
4397
 
 
4398
 
 
4399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4400
$as_echo "$_am_result" >&6; }
 
4401
rm -f confinc confmf
 
4402
 
 
4403
# Check whether --enable-dependency-tracking was given.
 
4404
if test "${enable_dependency_tracking+set}" = set; then :
 
4405
  enableval=$enable_dependency_tracking;
 
4406
fi
 
4407
 
 
4408
if test "x$enable_dependency_tracking" != xno; then
 
4409
  am_depcomp="$ac_aux_dir/depcomp"
 
4410
  AMDEPBACKSLASH='\'
 
4411
  am__nodep='_no'
 
4412
fi
 
4413
 if test "x$enable_dependency_tracking" != xno; then
 
4414
  AMDEP_TRUE=
 
4415
  AMDEP_FALSE='#'
 
4416
else
 
4417
  AMDEP_TRUE='#'
 
4418
  AMDEP_FALSE=
 
4419
fi
 
4420
 
 
4421
 
 
4422
 
 
4423
case $ga_cv_target_base in #(
 
4424
  BGP) :
 
4425
    ga_mpicc_pref=mpixlc_r; ga_cc_pref=bgxlc_r ;; #(
 
4426
  *) :
 
4427
     ;;
 
4428
esac
 
4429
# In the case of using MPI wrappers, set CC=MPICC since CC will override
 
4430
# absolutely everything in our list of compilers.
 
4431
# Save CC, just in case.
 
4432
if test x$with_mpi_wrappers = xyes; then :
 
4433
  if test "x$CC" != "x$MPICC"; then :
 
4434
  ga_orig_CC="$CC"
 
4435
fi
 
4436
     case x$CC:x$MPICC in #(
 
4437
  x:x) :
 
4438
     ;; #(
 
4439
  x:x*) :
 
4440
    CC="$MPICC" ;; #(
 
4441
  x*:x) :
 
4442
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but CC is set while MPICC is unset." >&5
 
4443
$as_echo "$as_me: WARNING: MPI compilers desired but CC is set while MPICC is unset." >&2;}
 
4444
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC will be ignored during compiler selection, but will be" >&5
 
4445
$as_echo "$as_me: WARNING: CC will be ignored during compiler selection, but will be" >&2;}
 
4446
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
 
4447
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
 
4448
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPICC instead of or in addition to CC?" >&5
 
4449
$as_echo "$as_me: WARNING: meant to set MPICC instead of or in addition to CC?" >&2;}
 
4450
 CC= ;; #(
 
4451
  x*:x*) :
 
4452
    if test "x$CC" != "x$MPICC"; then :
 
4453
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPICC and CC are set, and MPICC!=CC." >&5
 
4454
$as_echo "$as_me: WARNING: MPI compilers desired, MPICC and CC are set, and MPICC!=CC." >&2;}
 
4455
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPICC over CC." >&5
 
4456
$as_echo "$as_me: WARNING: Choosing MPICC over CC." >&2;}
 
4457
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC will be tested first during MPI compiler unwrapping." >&5
 
4458
$as_echo "$as_me: WARNING: CC will be tested first during MPI compiler unwrapping." >&2;}
 
4459
fi
 
4460
 CC="$MPICC" ;; #(
 
4461
  *) :
 
4462
    as_fn_error $? "CC/MPICC case failure" "$LINENO" 5 ;;
 
4463
esac
 
4464
fi
 
4465
ga_cc="bgxlc_r bgxlc xlc_r xlc pgcc pathcc icc sxcc fcc opencc suncc craycc gcc cc ecc cl ccc"
 
4466
ga_mpicc="mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc"
 
4467
if test x$with_mpi_wrappers = xyes; then :
 
4468
  CC_TO_TEST="$ga_mpicc_pref $ga_mpicc"
 
4469
else
 
4470
  CC_TO_TEST="$ga_cc_pref $ga_cc"
 
4471
fi
 
4472
ac_ext=c
 
4473
ac_cpp='$CPP $CPPFLAGS'
 
4474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4477
if test -n "$ac_tool_prefix"; then
 
4478
  for ac_prog in $CC_TO_TEST
 
4479
  do
 
4480
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4481
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4483
$as_echo_n "checking for $ac_word... " >&6; }
 
4484
if ${ac_cv_prog_CC+:} false; then :
 
4485
  $as_echo_n "(cached) " >&6
 
4486
else
 
4487
  if test -n "$CC"; then
 
4488
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4489
else
 
4490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4491
for as_dir in $PATH
 
4492
do
 
4493
  IFS=$as_save_IFS
 
4494
  test -z "$as_dir" && as_dir=.
 
4495
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4496
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4497
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4498
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4499
    break 2
 
4500
  fi
 
4501
done
 
4502
  done
 
4503
IFS=$as_save_IFS
 
4504
 
 
4505
fi
 
4506
fi
 
4507
CC=$ac_cv_prog_CC
 
4508
if test -n "$CC"; then
 
4509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4510
$as_echo "$CC" >&6; }
 
4511
else
 
4512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4513
$as_echo "no" >&6; }
 
4514
fi
 
4515
 
 
4516
 
 
4517
    test -n "$CC" && break
 
4518
  done
 
4519
fi
 
4520
if test -z "$CC"; then
 
4521
  ac_ct_CC=$CC
 
4522
  for ac_prog in $CC_TO_TEST
 
4523
do
 
4524
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4525
set dummy $ac_prog; ac_word=$2
 
4526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4527
$as_echo_n "checking for $ac_word... " >&6; }
 
4528
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4529
  $as_echo_n "(cached) " >&6
 
4530
else
 
4531
  if test -n "$ac_ct_CC"; then
 
4532
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4533
else
 
4534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4535
for as_dir in $PATH
 
4536
do
 
4537
  IFS=$as_save_IFS
 
4538
  test -z "$as_dir" && as_dir=.
 
4539
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4540
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4541
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4542
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4543
    break 2
 
4544
  fi
 
4545
done
 
4546
  done
 
4547
IFS=$as_save_IFS
 
4548
 
 
4549
fi
 
4550
fi
 
4551
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4552
if test -n "$ac_ct_CC"; then
 
4553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4554
$as_echo "$ac_ct_CC" >&6; }
 
4555
else
 
4556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4557
$as_echo "no" >&6; }
 
4558
fi
 
4559
 
 
4560
 
 
4561
  test -n "$ac_ct_CC" && break
 
4562
done
 
4563
 
 
4564
  if test "x$ac_ct_CC" = x; then
 
4565
    CC=""
 
4566
  else
 
4567
    case $cross_compiling:$ac_tool_warned in
 
4568
yes:)
 
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4570
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4571
ac_tool_warned=yes ;;
 
4572
esac
 
4573
    CC=$ac_ct_CC
 
4574
  fi
 
4575
fi
 
4576
 
 
4577
 
 
4578
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4579
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4580
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4581
See \`config.log' for more details" "$LINENO" 5; }
 
4582
 
 
4583
# Provide some information about the compiler.
 
4584
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4585
set X $ac_compile
 
4586
ac_compiler=$2
 
4587
for ac_option in --version -v -V -qversion; do
 
4588
  { { ac_try="$ac_compiler $ac_option >&5"
 
4589
case "(($ac_try" in
 
4590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4591
  *) ac_try_echo=$ac_try;;
 
4592
esac
 
4593
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4594
$as_echo "$ac_try_echo"; } >&5
 
4595
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4596
  ac_status=$?
 
4597
  if test -s conftest.err; then
 
4598
    sed '10a\
 
4599
... rest of stderr output deleted ...
 
4600
         10q' conftest.err >conftest.er1
 
4601
    cat conftest.er1 >&5
 
4602
  fi
 
4603
  rm -f conftest.er1 conftest.err
 
4604
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4605
  test $ac_status = 0; }
 
4606
done
 
4607
 
 
4608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4609
/* end confdefs.h.  */
 
4610
 
 
4611
int
 
4612
main ()
 
4613
{
 
4614
 
 
4615
  ;
 
4616
  return 0;
 
4617
}
 
4618
_ACEOF
 
4619
ac_clean_files_save=$ac_clean_files
 
4620
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4621
# Try to create an executable without -o first, disregard a.out.
 
4622
# It will help us diagnose broken compilers, and finding out an intuition
 
4623
# of exeext.
 
4624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4625
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4626
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4627
 
 
4628
# The possible output files:
 
4629
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4630
 
 
4631
ac_rmfiles=
 
4632
for ac_file in $ac_files
 
4633
do
 
4634
  case $ac_file in
 
4635
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4636
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
4637
  esac
 
4638
done
 
4639
rm -f $ac_rmfiles
 
4640
 
 
4641
if { { ac_try="$ac_link_default"
 
4642
case "(($ac_try" in
 
4643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4644
  *) ac_try_echo=$ac_try;;
 
4645
esac
 
4646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4647
$as_echo "$ac_try_echo"; } >&5
 
4648
  (eval "$ac_link_default") 2>&5
 
4649
  ac_status=$?
 
4650
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4651
  test $ac_status = 0; }; then :
 
4652
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
4653
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
4654
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
4655
# so that the user can short-circuit this test for compilers unknown to
 
4656
# Autoconf.
 
4657
for ac_file in $ac_files ''
 
4658
do
 
4659
  test -f "$ac_file" || continue
 
4660
  case $ac_file in
 
4661
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
4662
        ;;
 
4663
    [ab].out )
 
4664
        # We found the default executable, but exeext='' is most
 
4665
        # certainly right.
 
4666
        break;;
 
4667
    *.* )
 
4668
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4669
        then :; else
 
4670
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4671
        fi
 
4672
        # We set ac_cv_exeext here because the later test for it is not
 
4673
        # safe: cross compilers may not add the suffix if given an `-o'
 
4674
        # argument, so we may need to know it at that point already.
 
4675
        # Even if this section looks crufty: it has the advantage of
 
4676
        # actually working.
 
4677
        break;;
 
4678
    * )
 
4679
        break;;
 
4680
  esac
 
4681
done
 
4682
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
4683
 
 
4684
else
 
4685
  ac_file=''
 
4686
fi
 
4687
if test -z "$ac_file"; then :
 
4688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4689
$as_echo "no" >&6; }
 
4690
$as_echo "$as_me: failed program was:" >&5
 
4691
sed 's/^/| /' conftest.$ac_ext >&5
 
4692
 
 
4693
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4694
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4695
as_fn_error 77 "C compiler cannot create executables
 
4696
See \`config.log' for more details" "$LINENO" 5; }
 
4697
else
 
4698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4699
$as_echo "yes" >&6; }
 
4700
fi
 
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4702
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
4704
$as_echo "$ac_file" >&6; }
 
4705
ac_exeext=$ac_cv_exeext
 
4706
 
 
4707
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4708
ac_clean_files=$ac_clean_files_save
 
4709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
4710
$as_echo_n "checking for suffix of executables... " >&6; }
 
4711
if { { ac_try="$ac_link"
 
4712
case "(($ac_try" in
 
4713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4714
  *) ac_try_echo=$ac_try;;
 
4715
esac
 
4716
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4717
$as_echo "$ac_try_echo"; } >&5
 
4718
  (eval "$ac_link") 2>&5
 
4719
  ac_status=$?
 
4720
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4721
  test $ac_status = 0; }; then :
 
4722
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
4723
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
4724
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
4725
# `rm'.
 
4726
for ac_file in conftest.exe conftest conftest.*; do
 
4727
  test -f "$ac_file" || continue
 
4728
  case $ac_file in
 
4729
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
4730
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
4731
          break;;
 
4732
    * ) break;;
 
4733
  esac
 
4734
done
 
4735
else
 
4736
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4737
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4738
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4739
See \`config.log' for more details" "$LINENO" 5; }
 
4740
fi
 
4741
rm -f conftest conftest$ac_cv_exeext
 
4742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
4743
$as_echo "$ac_cv_exeext" >&6; }
 
4744
 
 
4745
rm -f conftest.$ac_ext
 
4746
EXEEXT=$ac_cv_exeext
 
4747
ac_exeext=$EXEEXT
 
4748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4749
/* end confdefs.h.  */
 
4750
#include <stdio.h>
 
4751
int
 
4752
main ()
 
4753
{
 
4754
FILE *f = fopen ("conftest.out", "w");
 
4755
 return ferror (f) || fclose (f) != 0;
 
4756
 
 
4757
  ;
 
4758
  return 0;
 
4759
}
 
4760
_ACEOF
 
4761
ac_clean_files="$ac_clean_files conftest.out"
 
4762
# Check that the compiler produces executables we can run.  If not, either
 
4763
# the compiler is broken, or we cross compile.
 
4764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4765
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4766
if test "$cross_compiling" != yes; then
 
4767
  { { ac_try="$ac_link"
 
4768
case "(($ac_try" in
 
4769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4770
  *) ac_try_echo=$ac_try;;
 
4771
esac
 
4772
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4773
$as_echo "$ac_try_echo"; } >&5
 
4774
  (eval "$ac_link") 2>&5
 
4775
  ac_status=$?
 
4776
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4777
  test $ac_status = 0; }
 
4778
  if { ac_try='./conftest$ac_cv_exeext'
 
4779
  { { case "(($ac_try" in
 
4780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4781
  *) ac_try_echo=$ac_try;;
 
4782
esac
 
4783
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4784
$as_echo "$ac_try_echo"; } >&5
 
4785
  (eval "$ac_try") 2>&5
 
4786
  ac_status=$?
 
4787
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4788
  test $ac_status = 0; }; }; then
 
4789
    cross_compiling=no
 
4790
  else
 
4791
    if test "$cross_compiling" = maybe; then
 
4792
        cross_compiling=yes
 
4793
    else
 
4794
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4795
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4796
as_fn_error $? "cannot run C compiled programs.
 
4797
If you meant to cross compile, use \`--host'.
 
4798
See \`config.log' for more details" "$LINENO" 5; }
 
4799
    fi
 
4800
  fi
 
4801
fi
 
4802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4803
$as_echo "$cross_compiling" >&6; }
 
4804
 
 
4805
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4806
ac_clean_files=$ac_clean_files_save
 
4807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
4808
$as_echo_n "checking for suffix of object files... " >&6; }
 
4809
if ${ac_cv_objext+:} false; then :
 
4810
  $as_echo_n "(cached) " >&6
 
4811
else
 
4812
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4813
/* end confdefs.h.  */
 
4814
 
 
4815
int
 
4816
main ()
 
4817
{
 
4818
 
 
4819
  ;
 
4820
  return 0;
 
4821
}
 
4822
_ACEOF
 
4823
rm -f conftest.o conftest.obj
 
4824
if { { ac_try="$ac_compile"
 
4825
case "(($ac_try" in
 
4826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4827
  *) ac_try_echo=$ac_try;;
 
4828
esac
 
4829
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4830
$as_echo "$ac_try_echo"; } >&5
 
4831
  (eval "$ac_compile") 2>&5
 
4832
  ac_status=$?
 
4833
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4834
  test $ac_status = 0; }; then :
 
4835
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4836
  test -f "$ac_file" || continue;
 
4837
  case $ac_file in
 
4838
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4839
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4840
       break;;
 
4841
  esac
 
4842
done
 
4843
else
 
4844
  $as_echo "$as_me: failed program was:" >&5
 
4845
sed 's/^/| /' conftest.$ac_ext >&5
 
4846
 
 
4847
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4848
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4849
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4850
See \`config.log' for more details" "$LINENO" 5; }
 
4851
fi
 
4852
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4853
fi
 
4854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4855
$as_echo "$ac_cv_objext" >&6; }
 
4856
OBJEXT=$ac_cv_objext
 
4857
ac_objext=$OBJEXT
 
4858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4859
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4860
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4861
  $as_echo_n "(cached) " >&6
 
4862
else
 
4863
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4864
/* end confdefs.h.  */
 
4865
 
 
4866
int
 
4867
main ()
 
4868
{
 
4869
#ifndef __GNUC__
 
4870
       choke me
 
4871
#endif
 
4872
 
 
4873
  ;
 
4874
  return 0;
 
4875
}
 
4876
_ACEOF
 
4877
if ac_fn_c_try_compile "$LINENO"; then :
 
4878
  ac_compiler_gnu=yes
 
4879
else
 
4880
  ac_compiler_gnu=no
 
4881
fi
 
4882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4883
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4884
 
 
4885
fi
 
4886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4887
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4888
if test $ac_compiler_gnu = yes; then
 
4889
  GCC=yes
 
4890
else
 
4891
  GCC=
 
4892
fi
 
4893
ac_test_CFLAGS=${CFLAGS+set}
 
4894
ac_save_CFLAGS=$CFLAGS
 
4895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4896
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4897
if ${ac_cv_prog_cc_g+:} false; then :
 
4898
  $as_echo_n "(cached) " >&6
 
4899
else
 
4900
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4901
   ac_c_werror_flag=yes
 
4902
   ac_cv_prog_cc_g=no
 
4903
   CFLAGS="-g"
 
4904
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4905
/* end confdefs.h.  */
 
4906
 
 
4907
int
 
4908
main ()
 
4909
{
 
4910
 
 
4911
  ;
 
4912
  return 0;
 
4913
}
 
4914
_ACEOF
 
4915
if ac_fn_c_try_compile "$LINENO"; then :
 
4916
  ac_cv_prog_cc_g=yes
 
4917
else
 
4918
  CFLAGS=""
 
4919
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4920
/* end confdefs.h.  */
 
4921
 
 
4922
int
 
4923
main ()
 
4924
{
 
4925
 
 
4926
  ;
 
4927
  return 0;
 
4928
}
 
4929
_ACEOF
 
4930
if ac_fn_c_try_compile "$LINENO"; then :
 
4931
 
 
4932
else
 
4933
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4934
         CFLAGS="-g"
 
4935
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4936
/* end confdefs.h.  */
 
4937
 
 
4938
int
 
4939
main ()
 
4940
{
 
4941
 
 
4942
  ;
 
4943
  return 0;
 
4944
}
 
4945
_ACEOF
 
4946
if ac_fn_c_try_compile "$LINENO"; then :
 
4947
  ac_cv_prog_cc_g=yes
 
4948
fi
 
4949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4950
fi
 
4951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4952
fi
 
4953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4954
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4955
fi
 
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4957
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4958
if test "$ac_test_CFLAGS" = set; then
 
4959
  CFLAGS=$ac_save_CFLAGS
 
4960
elif test $ac_cv_prog_cc_g = yes; then
 
4961
  if test "$GCC" = yes; then
 
4962
    CFLAGS="-g -O2"
 
4963
  else
 
4964
    CFLAGS="-g"
 
4965
  fi
 
4966
else
 
4967
  if test "$GCC" = yes; then
 
4968
    CFLAGS="-O2"
 
4969
  else
 
4970
    CFLAGS=
 
4971
  fi
 
4972
fi
 
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4974
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4975
if ${ac_cv_prog_cc_c89+:} false; then :
 
4976
  $as_echo_n "(cached) " >&6
 
4977
else
 
4978
  ac_cv_prog_cc_c89=no
 
4979
ac_save_CC=$CC
 
4980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4981
/* end confdefs.h.  */
 
4982
#include <stdarg.h>
 
4983
#include <stdio.h>
 
4984
struct stat;
 
4985
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4986
struct buf { int x; };
 
4987
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4988
static char *e (p, i)
 
4989
     char **p;
 
4990
     int i;
 
4991
{
 
4992
  return p[i];
 
4993
}
 
4994
static char *f (char * (*g) (char **, int), char **p, ...)
 
4995
{
 
4996
  char *s;
 
4997
  va_list v;
 
4998
  va_start (v,p);
 
4999
  s = g (p, va_arg (v,int));
 
5000
  va_end (v);
 
5001
  return s;
 
5002
}
 
5003
 
 
5004
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5005
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5006
   These don't provoke an error unfortunately, instead are silently treated
 
5007
   as 'x'.  The following induces an error, until -std is added to get
 
5008
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5009
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5010
   that's true only with -std.  */
 
5011
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5012
 
 
5013
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5014
   inside strings and character constants.  */
 
5015
#define FOO(x) 'x'
 
5016
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5017
 
 
5018
int test (int i, double x);
 
5019
struct s1 {int (*f) (int a);};
 
5020
struct s2 {int (*f) (double a);};
 
5021
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5022
int argc;
 
5023
char **argv;
 
5024
int
 
5025
main ()
 
5026
{
 
5027
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5028
  ;
 
5029
  return 0;
 
5030
}
 
5031
_ACEOF
 
5032
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5033
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5034
do
 
5035
  CC="$ac_save_CC $ac_arg"
 
5036
  if ac_fn_c_try_compile "$LINENO"; then :
 
5037
  ac_cv_prog_cc_c89=$ac_arg
 
5038
fi
 
5039
rm -f core conftest.err conftest.$ac_objext
 
5040
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5041
done
 
5042
rm -f conftest.$ac_ext
 
5043
CC=$ac_save_CC
 
5044
 
 
5045
fi
 
5046
# AC_CACHE_VAL
 
5047
case "x$ac_cv_prog_cc_c89" in
 
5048
  x)
 
5049
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5050
$as_echo "none needed" >&6; } ;;
 
5051
  xno)
 
5052
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5053
$as_echo "unsupported" >&6; } ;;
 
5054
  *)
 
5055
    CC="$CC $ac_cv_prog_cc_c89"
 
5056
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
5057
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5058
esac
 
5059
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
5060
 
 
5061
fi
 
5062
 
 
5063
ac_ext=c
 
5064
ac_cpp='$CPP $CPPFLAGS'
 
5065
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5066
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5067
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5068
 
 
5069
depcc="$CC"   am_compiler_list=
 
5070
 
 
5071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
5072
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5073
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
5074
  $as_echo_n "(cached) " >&6
 
5075
else
 
5076
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5077
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5078
  # making bogus files that we don't know about and never remove.  For
 
5079
  # instance it was reported that on HP-UX the gcc test will end up
 
5080
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5081
  # in D'.
 
5082
  rm -rf conftest.dir
 
5083
  mkdir conftest.dir
 
5084
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5085
  # using a relative directory.
 
5086
  cp "$am_depcomp" conftest.dir
 
5087
  cd conftest.dir
 
5088
  # We will build objects and dependencies in a subdirectory because
 
5089
  # it helps to detect inapplicable dependency modes.  For instance
 
5090
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5091
  # side effect of compilation, but ICC will put the dependencies in
 
5092
  # the current directory while Tru64 will put them in the object
 
5093
  # directory.
 
5094
  mkdir sub
 
5095
 
 
5096
  am_cv_CC_dependencies_compiler_type=none
 
5097
  if test "$am_compiler_list" = ""; then
 
5098
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5099
  fi
 
5100
  am__universal=false
 
5101
  case " $depcc " in #(
 
5102
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
5103
     esac
 
5104
 
 
5105
  for depmode in $am_compiler_list; do
 
5106
    # Setup a source with many dependencies, because some compilers
 
5107
    # like to wrap large dependency lists on column 80 (with \), and
 
5108
    # we should not choose a depcomp mode which is confused by this.
 
5109
    #
 
5110
    # We need to recreate these files for each test, as the compiler may
 
5111
    # overwrite some of them when testing with obscure command lines.
 
5112
    # This happens at least with the AIX C compiler.
 
5113
    : > sub/conftest.c
 
5114
    for i in 1 2 3 4 5 6; do
 
5115
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5116
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5117
      # Solaris 8's {/usr,}/bin/sh.
 
5118
      touch sub/conftst$i.h
 
5119
    done
 
5120
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5121
 
 
5122
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5123
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5124
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
5125
    # versions had trouble with output in subdirs
 
5126
    am__obj=sub/conftest.${OBJEXT-o}
 
5127
    am__minus_obj="-o $am__obj"
 
5128
    case $depmode in
 
5129
    gcc)
 
5130
      # This depmode causes a compiler race in universal mode.
 
5131
      test "$am__universal" = false || continue
 
5132
      ;;
 
5133
    nosideeffect)
 
5134
      # after this tag, mechanisms are not by side-effect, so they'll
 
5135
      # only be used when explicitly requested
 
5136
      if test "x$enable_dependency_tracking" = xyes; then
 
5137
        continue
 
5138
      else
 
5139
        break
 
5140
      fi
 
5141
      ;;
 
5142
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
5143
      # This compiler won't grok `-c -o', but also, the minuso test has
 
5144
      # not run yet.  These depmodes are late enough in the game, and
 
5145
      # so weak that their functioning should not be impacted.
 
5146
      am__obj=conftest.${OBJEXT-o}
 
5147
      am__minus_obj=
 
5148
      ;;
 
5149
    none) break ;;
 
5150
    esac
 
5151
    if depmode=$depmode \
 
5152
       source=sub/conftest.c object=$am__obj \
 
5153
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5154
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5155
         >/dev/null 2>conftest.err &&
 
5156
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5157
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5158
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5159
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5160
      # icc doesn't choke on unknown options, it will just issue warnings
 
5161
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5162
      # that says an option was ignored or not supported.
 
5163
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5164
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5165
      # The diagnosis changed in icc 8.0:
 
5166
      #   icc: Command line remark: option '-MP' not supported
 
5167
      if (grep 'ignoring option' conftest.err ||
 
5168
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5169
        am_cv_CC_dependencies_compiler_type=$depmode
 
5170
        break
 
5171
      fi
 
5172
    fi
 
5173
  done
 
5174
 
 
5175
  cd ..
 
5176
  rm -rf conftest.dir
 
5177
else
 
5178
  am_cv_CC_dependencies_compiler_type=none
 
5179
fi
 
5180
 
 
5181
fi
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5183
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
5184
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5185
 
 
5186
 if
 
5187
  test "x$enable_dependency_tracking" != xno \
 
5188
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5189
  am__fastdepCC_TRUE=
 
5190
  am__fastdepCC_FALSE='#'
 
5191
else
 
5192
  am__fastdepCC_TRUE='#'
 
5193
  am__fastdepCC_FALSE=
 
5194
fi
 
5195
 
 
5196
 
 
5197
 
 
5198
CFLAGS="$ga_save_CFLAGS"
 
5199
 
 
5200
ac_ext=c
 
5201
ac_cpp='$CPP $CPPFLAGS'
 
5202
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5203
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5204
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
5206
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
5207
# On Suns, sometimes $CPP names a directory.
 
5208
if test -n "$CPP" && test -d "$CPP"; then
 
5209
  CPP=
 
5210
fi
 
5211
if test -z "$CPP"; then
 
5212
  if ${ac_cv_prog_CPP+:} false; then :
 
5213
  $as_echo_n "(cached) " >&6
 
5214
else
 
5215
      # Double quotes because CPP needs to be expanded
 
5216
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5217
    do
 
5218
      ac_preproc_ok=false
 
5219
for ac_c_preproc_warn_flag in '' yes
 
5220
do
 
5221
  # Use a header file that comes with gcc, so configuring glibc
 
5222
  # with a fresh cross-compiler works.
 
5223
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5224
  # <limits.h> exists even on freestanding compilers.
 
5225
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5226
  # not just through cpp. "Syntax error" is here to catch this case.
 
5227
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5228
/* end confdefs.h.  */
 
5229
#ifdef __STDC__
 
5230
# include <limits.h>
 
5231
#else
 
5232
# include <assert.h>
 
5233
#endif
 
5234
                     Syntax error
 
5235
_ACEOF
 
5236
if ac_fn_c_try_cpp "$LINENO"; then :
 
5237
 
 
5238
else
 
5239
  # Broken: fails on valid input.
 
5240
continue
 
5241
fi
 
5242
rm -f conftest.err conftest.i conftest.$ac_ext
 
5243
 
 
5244
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5245
  # can be detected and how.
 
5246
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5247
/* end confdefs.h.  */
 
5248
#include <ac_nonexistent.h>
 
5249
_ACEOF
 
5250
if ac_fn_c_try_cpp "$LINENO"; then :
 
5251
  # Broken: success on invalid input.
 
5252
continue
 
5253
else
 
5254
  # Passes both tests.
 
5255
ac_preproc_ok=:
 
5256
break
 
5257
fi
 
5258
rm -f conftest.err conftest.i conftest.$ac_ext
 
5259
 
 
5260
done
 
5261
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5262
rm -f conftest.i conftest.err conftest.$ac_ext
 
5263
if $ac_preproc_ok; then :
 
5264
  break
 
5265
fi
 
5266
 
 
5267
    done
 
5268
    ac_cv_prog_CPP=$CPP
 
5269
 
 
5270
fi
 
5271
  CPP=$ac_cv_prog_CPP
 
5272
else
 
5273
  ac_cv_prog_CPP=$CPP
 
5274
fi
 
5275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
5276
$as_echo "$CPP" >&6; }
 
5277
ac_preproc_ok=false
 
5278
for ac_c_preproc_warn_flag in '' yes
 
5279
do
 
5280
  # Use a header file that comes with gcc, so configuring glibc
 
5281
  # with a fresh cross-compiler works.
 
5282
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5283
  # <limits.h> exists even on freestanding compilers.
 
5284
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5285
  # not just through cpp. "Syntax error" is here to catch this case.
 
5286
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5287
/* end confdefs.h.  */
 
5288
#ifdef __STDC__
 
5289
# include <limits.h>
 
5290
#else
 
5291
# include <assert.h>
 
5292
#endif
 
5293
                     Syntax error
 
5294
_ACEOF
 
5295
if ac_fn_c_try_cpp "$LINENO"; then :
 
5296
 
 
5297
else
 
5298
  # Broken: fails on valid input.
 
5299
continue
 
5300
fi
 
5301
rm -f conftest.err conftest.i conftest.$ac_ext
 
5302
 
 
5303
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5304
  # can be detected and how.
 
5305
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5306
/* end confdefs.h.  */
 
5307
#include <ac_nonexistent.h>
 
5308
_ACEOF
 
5309
if ac_fn_c_try_cpp "$LINENO"; then :
 
5310
  # Broken: success on invalid input.
 
5311
continue
 
5312
else
 
5313
  # Passes both tests.
 
5314
ac_preproc_ok=:
 
5315
break
 
5316
fi
 
5317
rm -f conftest.err conftest.i conftest.$ac_ext
 
5318
 
 
5319
done
 
5320
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5321
rm -f conftest.i conftest.err conftest.$ac_ext
 
5322
if $ac_preproc_ok; then :
 
5323
 
 
5324
else
 
5325
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5326
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5327
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
5328
See \`config.log' for more details" "$LINENO" 5; }
 
5329
fi
 
5330
 
 
5331
ac_ext=c
 
5332
ac_cpp='$CPP $CPPFLAGS'
 
5333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5336
 
 
5337
 
 
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
5339
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
5340
if ${ac_cv_path_GREP+:} false; then :
 
5341
  $as_echo_n "(cached) " >&6
 
5342
else
 
5343
  if test -z "$GREP"; then
 
5344
  ac_path_GREP_found=false
 
5345
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5346
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5347
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5348
do
 
5349
  IFS=$as_save_IFS
 
5350
  test -z "$as_dir" && as_dir=.
 
5351
    for ac_prog in grep ggrep; do
 
5352
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5353
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5354
      as_fn_executable_p "$ac_path_GREP" || continue
 
5355
# Check for GNU ac_path_GREP and select it if it is found.
 
5356
  # Check for GNU $ac_path_GREP
 
5357
case `"$ac_path_GREP" --version 2>&1` in
 
5358
*GNU*)
 
5359
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5360
*)
 
5361
  ac_count=0
 
5362
  $as_echo_n 0123456789 >"conftest.in"
 
5363
  while :
 
5364
  do
 
5365
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5366
    mv "conftest.tmp" "conftest.in"
 
5367
    cp "conftest.in" "conftest.nl"
 
5368
    $as_echo 'GREP' >> "conftest.nl"
 
5369
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5370
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5371
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5372
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5373
      # Best one so far, save it but keep looking for a better one
 
5374
      ac_cv_path_GREP="$ac_path_GREP"
 
5375
      ac_path_GREP_max=$ac_count
 
5376
    fi
 
5377
    # 10*(2^10) chars as input seems more than enough
 
5378
    test $ac_count -gt 10 && break
 
5379
  done
 
5380
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5381
esac
 
5382
 
 
5383
      $ac_path_GREP_found && break 3
 
5384
    done
 
5385
  done
 
5386
  done
 
5387
IFS=$as_save_IFS
 
5388
  if test -z "$ac_cv_path_GREP"; then
 
5389
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5390
  fi
 
5391
else
 
5392
  ac_cv_path_GREP=$GREP
 
5393
fi
 
5394
 
 
5395
fi
 
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5397
$as_echo "$ac_cv_path_GREP" >&6; }
 
5398
 GREP="$ac_cv_path_GREP"
 
5399
 
 
5400
 
 
5401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5402
$as_echo_n "checking for egrep... " >&6; }
 
5403
if ${ac_cv_path_EGREP+:} false; then :
 
5404
  $as_echo_n "(cached) " >&6
 
5405
else
 
5406
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5407
   then ac_cv_path_EGREP="$GREP -E"
 
5408
   else
 
5409
     if test -z "$EGREP"; then
 
5410
  ac_path_EGREP_found=false
 
5411
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5412
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5413
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5414
do
 
5415
  IFS=$as_save_IFS
 
5416
  test -z "$as_dir" && as_dir=.
 
5417
    for ac_prog in egrep; do
 
5418
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5419
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5420
      as_fn_executable_p "$ac_path_EGREP" || continue
 
5421
# Check for GNU ac_path_EGREP and select it if it is found.
 
5422
  # Check for GNU $ac_path_EGREP
 
5423
case `"$ac_path_EGREP" --version 2>&1` in
 
5424
*GNU*)
 
5425
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5426
*)
 
5427
  ac_count=0
 
5428
  $as_echo_n 0123456789 >"conftest.in"
 
5429
  while :
 
5430
  do
 
5431
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5432
    mv "conftest.tmp" "conftest.in"
 
5433
    cp "conftest.in" "conftest.nl"
 
5434
    $as_echo 'EGREP' >> "conftest.nl"
 
5435
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5436
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5437
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5438
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5439
      # Best one so far, save it but keep looking for a better one
 
5440
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5441
      ac_path_EGREP_max=$ac_count
 
5442
    fi
 
5443
    # 10*(2^10) chars as input seems more than enough
 
5444
    test $ac_count -gt 10 && break
 
5445
  done
 
5446
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5447
esac
 
5448
 
 
5449
      $ac_path_EGREP_found && break 3
 
5450
    done
 
5451
  done
 
5452
  done
 
5453
IFS=$as_save_IFS
 
5454
  if test -z "$ac_cv_path_EGREP"; then
 
5455
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5456
  fi
 
5457
else
 
5458
  ac_cv_path_EGREP=$EGREP
 
5459
fi
 
5460
 
 
5461
   fi
 
5462
fi
 
5463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5464
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5465
 EGREP="$ac_cv_path_EGREP"
 
5466
 
 
5467
 
 
5468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
5469
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5470
if ${ac_cv_header_stdc+:} false; then :
 
5471
  $as_echo_n "(cached) " >&6
 
5472
else
 
5473
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5474
/* end confdefs.h.  */
 
5475
#include <stdlib.h>
 
5476
#include <stdarg.h>
 
5477
#include <string.h>
 
5478
#include <float.h>
 
5479
 
 
5480
int
 
5481
main ()
 
5482
{
 
5483
 
 
5484
  ;
 
5485
  return 0;
 
5486
}
 
5487
_ACEOF
 
5488
if ac_fn_c_try_compile "$LINENO"; then :
 
5489
  ac_cv_header_stdc=yes
 
5490
else
 
5491
  ac_cv_header_stdc=no
 
5492
fi
 
5493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5494
 
 
5495
if test $ac_cv_header_stdc = yes; then
 
5496
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5498
/* end confdefs.h.  */
 
5499
#include <string.h>
 
5500
 
 
5501
_ACEOF
 
5502
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5503
  $EGREP "memchr" >/dev/null 2>&1; then :
 
5504
 
 
5505
else
 
5506
  ac_cv_header_stdc=no
 
5507
fi
 
5508
rm -f conftest*
 
5509
 
 
5510
fi
 
5511
 
 
5512
if test $ac_cv_header_stdc = yes; then
 
5513
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5514
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5515
/* end confdefs.h.  */
 
5516
#include <stdlib.h>
 
5517
 
 
5518
_ACEOF
 
5519
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5520
  $EGREP "free" >/dev/null 2>&1; then :
 
5521
 
 
5522
else
 
5523
  ac_cv_header_stdc=no
 
5524
fi
 
5525
rm -f conftest*
 
5526
 
 
5527
fi
 
5528
 
 
5529
if test $ac_cv_header_stdc = yes; then
 
5530
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5531
  if test "$cross_compiling" = yes; then :
 
5532
  :
 
5533
else
 
5534
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5535
/* end confdefs.h.  */
 
5536
#include <ctype.h>
 
5537
#include <stdlib.h>
 
5538
#if ((' ' & 0x0FF) == 0x020)
 
5539
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5540
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5541
#else
 
5542
# define ISLOWER(c) \
 
5543
                   (('a' <= (c) && (c) <= 'i') \
 
5544
                     || ('j' <= (c) && (c) <= 'r') \
 
5545
                     || ('s' <= (c) && (c) <= 'z'))
 
5546
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5547
#endif
 
5548
 
 
5549
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5550
int
 
5551
main ()
 
5552
{
 
5553
  int i;
 
5554
  for (i = 0; i < 256; i++)
 
5555
    if (XOR (islower (i), ISLOWER (i))
 
5556
        || toupper (i) != TOUPPER (i))
 
5557
      return 2;
 
5558
  return 0;
 
5559
}
 
5560
_ACEOF
 
5561
if ac_fn_c_try_run "$LINENO"; then :
 
5562
 
 
5563
else
 
5564
  ac_cv_header_stdc=no
 
5565
fi
 
5566
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5567
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5568
fi
 
5569
 
 
5570
fi
 
5571
fi
 
5572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5573
$as_echo "$ac_cv_header_stdc" >&6; }
 
5574
if test $ac_cv_header_stdc = yes; then
 
5575
 
 
5576
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
5577
 
 
5578
fi
 
5579
 
 
5580
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5581
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5582
                  inttypes.h stdint.h unistd.h
 
5583
do :
 
5584
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5585
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
5586
"
 
5587
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5588
  cat >>confdefs.h <<_ACEOF
 
5589
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5590
_ACEOF
 
5591
 
 
5592
fi
 
5593
 
 
5594
done
 
5595
 
 
5596
 
 
5597
 
 
5598
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
5599
if test "x$ac_cv_header_minix_config_h" = xyes; then :
 
5600
  MINIX=yes
 
5601
else
 
5602
  MINIX=
 
5603
fi
 
5604
 
 
5605
 
 
5606
  if test "$MINIX" = yes; then
 
5607
 
 
5608
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
5609
 
 
5610
 
 
5611
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
5612
 
 
5613
 
 
5614
$as_echo "#define _MINIX 1" >>confdefs.h
 
5615
 
 
5616
  fi
 
5617
 
 
5618
 
 
5619
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
5620
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
5621
if ${ac_cv_safe_to_define___extensions__+:} false; then :
 
5622
  $as_echo_n "(cached) " >&6
 
5623
else
 
5624
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5625
/* end confdefs.h.  */
 
5626
 
 
5627
#         define __EXTENSIONS__ 1
 
5628
          $ac_includes_default
 
5629
int
 
5630
main ()
 
5631
{
 
5632
 
 
5633
  ;
 
5634
  return 0;
 
5635
}
 
5636
_ACEOF
 
5637
if ac_fn_c_try_compile "$LINENO"; then :
 
5638
  ac_cv_safe_to_define___extensions__=yes
 
5639
else
 
5640
  ac_cv_safe_to_define___extensions__=no
 
5641
fi
 
5642
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5643
fi
 
5644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
5645
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
5646
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
5647
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
5648
 
 
5649
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
5650
 
 
5651
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
5652
 
 
5653
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
5654
 
 
5655
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
5656
 
 
5657
 
 
5658
 
 
5659
 
 
5660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
 
5661
$as_echo_n "checking for C compiler vendor... " >&6; }
 
5662
if ${ga_cv_c_compiler_vendor+:} false; then :
 
5663
  $as_echo_n "(cached) " >&6
 
5664
else
 
5665
 
 
5666
ga_save_ac_ext="$ac_ext"
 
5667
 
 
5668
 
 
5669
ga_cv_c_compiler_vendor=unknown
 
5670
ga_cpp_vendor_symbols=
 
5671
for vendor in intel ibm pathscale amd cray gnu sun hp dec borland comeau kai lcc metrowerks sgi microsoft watcom portland fujitsu
 
5672
do
 
5673
case $vendor in #(
 
5674
  amd) :
 
5675
    ga_cpp_vendor_symbols="defined(__OPEN64__)" ;; #(
 
5676
  borland) :
 
5677
    ga_cpp_vendor_symbols="defined(__BORLANDC__) || defined(__TURBOC__)" ;; #(
 
5678
  comeau) :
 
5679
    ga_cpp_vendor_symbols="defined(__COMO__)" ;; #(
 
5680
  cray) :
 
5681
    ga_cpp_vendor_symbols="defined(_CRAYC) || defined(_ADDR64)" ;; #(
 
5682
  dec) :
 
5683
    ga_cpp_vendor_symbols="defined(__DECC) || defined(__DECCXX) || defined(__DECC_VER) || defined(__DECCXX_VER)" ;; #(
 
5684
  fujitsu) :
 
5685
    ga_cpp_vendor_symbols="defined(__fcc__) || defined(__fcc_version__) || defined(_FCC_VER) || defined(__FCC_VER_)" ;; #(
 
5686
  gnu) :
 
5687
    ga_cpp_vendor_symbols="defined(__GNUC__)" ;; #(
 
5688
  hp) :
 
5689
    ga_cpp_vendor_symbols="defined(__HP_cc) || defined(__HP_aCC)" ;; #(
 
5690
  ibm) :
 
5691
    ga_cpp_vendor_symbols="defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__)" ;; #(
 
5692
  intel) :
 
5693
    ga_cpp_vendor_symbols="defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER)" ;; #(
 
5694
  kai) :
 
5695
    ga_cpp_vendor_symbols="defined(__KCC)" ;; #(
 
5696
  lcc) :
 
5697
    ga_cpp_vendor_symbols="defined(__LCC__)" ;; #(
 
5698
  metrowerks) :
 
5699
    ga_cpp_vendor_symbols="defined(__MWERKS__)" ;; #(
 
5700
  microsoft) :
 
5701
    ga_cpp_vendor_symbols="defined(_MSC_VER)" ;; #(
 
5702
  pathscale) :
 
5703
    ga_cpp_vendor_symbols="defined(__PATHCC__) || defined(__PATHSCALE__)" ;; #(
 
5704
  portland) :
 
5705
    ga_cpp_vendor_symbols="defined(__PGI)" ;; #(
 
5706
  sgi) :
 
5707
    ga_cpp_vendor_symbols="defined(__sgi) || defined(sgi)" ;; #(
 
5708
  sun) :
 
5709
    ga_cpp_vendor_symbols="defined(__SUNPRO_C) || defined(__SUNPRO_CC)" ;; #(
 
5710
  watcom) :
 
5711
    ga_cpp_vendor_symbols="defined(__WATCOMC__)" ;; #(
 
5712
  *) :
 
5713
     ;;
 
5714
esac
 
5715
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5716
/* end confdefs.h.  */
 
5717
 
 
5718
int
 
5719
main ()
 
5720
{
 
5721
 
 
5722
#if !($ga_cpp_vendor_symbols)
 
5723
    chokeonthis
 
5724
#endif
 
5725
 
 
5726
  ;
 
5727
  return 0;
 
5728
}
 
5729
_ACEOF
 
5730
if ac_fn_c_try_compile "$LINENO"; then :
 
5731
  ga_cv_c_compiler_vendor=$vendor; break
 
5732
fi
 
5733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5734
done
 
5735
ga_cpp_vendor_symbols=
 
5736
ac_ext="$ga_save_ac_ext"
 
5737
 
 
5738
fi
 
5739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_compiler_vendor" >&5
 
5740
$as_echo "$ga_cv_c_compiler_vendor" >&6; }
 
5741
 
 
5742
 
 
5743
 
 
5744
if test "x$enable_warnings" = xyes; then :
 
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C warning flags" >&5
 
5750
$as_echo_n "checking for C warning flags... " >&6; }
 
5751
if ${ga_cv_c_warning_flags+:} false; then :
 
5752
  $as_echo_n "(cached) " >&6
 
5753
else
 
5754
 
 
5755
 
 
5756
case $ga_cv_c_compiler_vendor in #(
 
5757
  amd) :
 
5758
    ga_cv_c_warning_flags="-Wall -W -Wdeclaration-after-statement" ;; #(
 
5759
  borland) :
 
5760
    ga_cv_c_warning_flags= ;; #(
 
5761
  comeau) :
 
5762
    ga_cv_c_warning_flags= ;; #(
 
5763
  cray) :
 
5764
    ga_cv_c_warning_flags= ;; #(
 
5765
  dec) :
 
5766
    ga_cv_c_warning_flags= ;; #(
 
5767
  fujitsu) :
 
5768
    ga_cv_c_warning_flags="-Xc -pvctl,fullmsg" ;; #(
 
5769
  gnu) :
 
5770
    ga_cv_c_warning_flags="-Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -pedantic -Wno-long-long -Wnested-externs -ansi" ;; #(
 
5771
  hp) :
 
5772
    ga_cv_c_warning_flags= ;; #(
 
5773
  ibm) :
 
5774
    ga_cv_c_warning_flags= ;; #(
 
5775
  intel) :
 
5776
    ga_cv_c_warning_flags="-Wall" ;; #(
 
5777
  kai) :
 
5778
    ga_cv_c_warning_flags= ;; #(
 
5779
  lcc) :
 
5780
    ga_cv_c_warning_flags= ;; #(
 
5781
  metrowerks) :
 
5782
    ga_cv_c_warning_flags= ;; #(
 
5783
  microsoft) :
 
5784
    ga_cv_c_warning_flags= ;; #(
 
5785
  pathscale) :
 
5786
    ga_cv_c_warning_flags="-Wall -fullwarn -Wno-unused-parameter -pedantic -Wno-long-long -Wnested-externs" ;; #(
 
5787
  portland) :
 
5788
    ga_cv_c_warning_flags="-Xc" ;; #(
 
5789
  sgi) :
 
5790
    ga_cv_c_warning_flags= ;; #(
 
5791
  sun) :
 
5792
    ga_cv_c_warning_flags= ;; #(
 
5793
  watcom) :
 
5794
    ga_cv_c_warning_flags= ;; #(
 
5795
  *) :
 
5796
     ;;
 
5797
esac
 
5798
 
 
5799
 
 
5800
fi
 
5801
{ $as_echo "$as_me:${as_lineno-$LINENO}: ga_cv_c_warning_flags: $ga_cv_c_warning_flags" >&5
 
5802
$as_echo "$ga_cv_c_warning_flags" >&6; }
 
5803
GA_C_WARN=$ga_cv_c_warning_flags
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
fi
 
5809
 
 
5810
ga_save_CFLAGS="$CFLAGS"
 
5811
CFLAGS="$ga_cv_c_warning_flags $CFLAGS"
 
5812
 
 
5813
if test x$with_mpi_wrappers = xyes; then :
 
5814
 
 
5815
# Find perl.
 
5816
# Extract the first word of "perl", so it can be a program name with args.
 
5817
set dummy perl; ac_word=$2
 
5818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5819
$as_echo_n "checking for $ac_word... " >&6; }
 
5820
if ${ac_cv_path_PERL+:} false; then :
 
5821
  $as_echo_n "(cached) " >&6
 
5822
else
 
5823
  case $PERL in
 
5824
  [\\/]* | ?:[\\/]*)
 
5825
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
5826
  ;;
 
5827
  *)
 
5828
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5829
for as_dir in $PATH
 
5830
do
 
5831
  IFS=$as_save_IFS
 
5832
  test -z "$as_dir" && as_dir=.
 
5833
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5834
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5835
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
5836
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5837
    break 2
 
5838
  fi
 
5839
done
 
5840
  done
 
5841
IFS=$as_save_IFS
 
5842
 
 
5843
  ;;
 
5844
esac
 
5845
fi
 
5846
PERL=$ac_cv_path_PERL
 
5847
if test -n "$PERL"; then
 
5848
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
5849
$as_echo "$PERL" >&6; }
 
5850
else
 
5851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5852
$as_echo "no" >&6; }
 
5853
fi
 
5854
 
 
5855
 
 
5856
# Create inside.pl.
 
5857
rm -f inside.pl
 
5858
cat >inside.pl <<"EOF"
 
5859
#!/usr/bin/perl
 
5860
use strict;
 
5861
use warnings;
 
5862
my $numargs = $#ARGV + 1;
 
5863
if ($numargs != 2) {
 
5864
    print "Usage: wrapped.txt naked.txt\n";
 
5865
    exit 1;
 
5866
}
 
5867
# Read each input file as a string (rather than a list).
 
5868
local $/=undef;
 
5869
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
 
5870
my $wrapped_lines = <WRAPPED>;
 
5871
close WRAPPED;
 
5872
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
 
5873
my $naked_lines = <NAKED>;
 
5874
close NAKED;
 
5875
# Replace newlines, + from wrapped and naked lines.
 
5876
$wrapped_lines =~ tr/\n+/ /;
 
5877
$naked_lines =~ tr/\n+/ /;
 
5878
# Remove whitespace from beginning of wrapped and naked lines.
 
5879
$wrapped_lines =~ s/^\s+//;
 
5880
$naked_lines =~ s/^\s+//;
 
5881
# Remove whitespace from end of wrapped and naked lines.
 
5882
$wrapped_lines =~ s/\s+$//;
 
5883
$naked_lines =~ s/\s+$//;
 
5884
# If either wrapped_lines or naked_lines are empty, this is an error.
 
5885
# It is assumed that the particular version string which created the input
 
5886
# files should generate SOMETHING.
 
5887
unless ($wrapped_lines) {
 
5888
    exit 1;
 
5889
}
 
5890
unless ($naked_lines) {
 
5891
    exit 1;
 
5892
}
 
5893
# Cray compilers append a timestamp into their version string. Remove it.
 
5894
if ($wrapped_lines =~ /\QCray\E/) {
 
5895
    $wrapped_lines = substr $wrapped_lines, 0, -28;
 
5896
    $naked_lines = substr $naked_lines, 0, -28;
 
5897
}
 
5898
# Can the naked lines be found within the wrapped lines?
 
5899
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
 
5900
    #print "Found as substring\n";
 
5901
    exit 0;
 
5902
}
 
5903
# Are the naked lines exactly the same as the wrapped lines?
 
5904
elsif ($wrapped_lines eq $naked_lines) {
 
5905
    #print "Found equal\n";
 
5906
    exit 0;
 
5907
}
 
5908
else {
 
5909
    #print "Not found\n";
 
5910
    exit 1;
 
5911
}
 
5912
EOF
 
5913
inside="$PERL inside.pl"
 
5914
wrapped="$CC"
 
5915
case $wrapped in #(
 
5916
  *_r) :
 
5917
    compilers="bgxlc_r xlc_r" ;; #(
 
5918
  *) :
 
5919
    compilers="bgxlc xlc pgcc pathcc icc sxcc fcc opencc suncc craycc gcc ecc cl ccc cc" ;; #(
 
5920
  *) :
 
5921
     ;;
 
5922
esac
 
5923
 
 
5924
 
 
5925
 
 
5926
 
 
5927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
 
5928
$as_echo_n "checking for base $wrapped compiler... " >&6; }
 
5929
if ${ga_cv_mpic_naked+:} false; then :
 
5930
  $as_echo_n "(cached) " >&6
 
5931
else
 
5932
 
 
5933
base="`$wrapped -show 2>/dev/null | sed 's/[    ].*$//' | head -1`"
 
5934
ga_save_CC="$CC"
 
5935
CC="$base"
 
5936
# if -m32 or -m64 is present in the -show params, or separately, add it
 
5937
unwrapped_args="`$wrapped -show 2>/dev/null`"
 
5938
extra_arg=""
 
5939
for arg in $unwrapped_args $wrapped
 
5940
do
 
5941
    case $arg in #(
 
5942
  *-m32*) :
 
5943
    extra_arg="-m32" ;; #(
 
5944
  *-m64*) :
 
5945
    extra_arg="-m64" ;; #(
 
5946
  *) :
 
5947
     ;;
 
5948
esac
 
5949
done
 
5950
if test "x$extra_arg" != x; then :
 
5951
  base="$base $extra_arg"
 
5952
fi
 
5953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5954
/* end confdefs.h.  */
 
5955
 
 
5956
int
 
5957
main ()
 
5958
{
 
5959
 
 
5960
  ;
 
5961
  return 0;
 
5962
}
 
5963
_ACEOF
 
5964
if ac_fn_c_try_link "$LINENO"; then :
 
5965
  ga_cv_mpic_naked="$base"
 
5966
fi
 
5967
rm -f core conftest.err conftest.$ac_objext \
 
5968
    conftest$ac_exeext conftest.$ac_ext
 
5969
CC="$ga_save_CC"
 
5970
versions="--version -v -V -qversion"
 
5971
found_wrapped_version=0
 
5972
# Try separating stdout and stderr. Only compare stdout.
 
5973
if test "x$ga_cv_mpic_naked" = x; then :
 
5974
 
 
5975
# prepend any CC/CXX/F77 the user may have specified
 
5976
compilers="$ga_orig_CC $compilers"
 
5977
echo "only comparing stdout" >&5
 
5978
for version in $versions
 
5979
do
 
5980
    echo "trying version=$version" >&5
 
5981
    rm -f mpi.txt mpi.err naked.txt naked.err
 
5982
    if $wrapped $version 1>mpi.txt 2>mpi.err; then :
 
5983
  found_wrapped_version=1
 
5984
         for naked_compiler in $compilers
 
5985
         do
 
5986
            if test "x$naked_compiler" != "x$wrapped"; then :
 
5987
  if $naked_compiler $version 1>naked.txt 2>naked.err; then :
 
5988
  if $inside mpi.txt naked.txt >/dev/null; then :
 
5989
  ga_cv_mpic_naked=$naked_compiler; break
 
5990
else
 
5991
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
5992
fi
 
5993
else
 
5994
  echo "$naked_compiler $version failed, skipping" >&5
 
5995
fi
 
5996
fi
 
5997
         done
 
5998
else
 
5999
  echo "$wrapped $version failed, skipping" >&5
 
6000
fi
 
6001
    if test "x$ga_cv_mpic_naked" != x; then :
 
6002
  break
 
6003
fi
 
6004
done
 
6005
 
 
6006
fi
 
6007
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
 
6008
# In this case we have to do a brute force match regardless of exit status.
 
6009
if test "x$found_wrapped_version" = x0; then :
 
6010
 
 
6011
if test "x$ga_cv_mpic_naked" = x; then :
 
6012
 
 
6013
echo "no zero exit status found for MPI compilers" >&5
 
6014
for version in $versions
 
6015
do
 
6016
    echo "trying version=$version" >&5
 
6017
    rm -f mpi.txt mpi.err
 
6018
    $wrapped $version 1>mpi.txt 2>mpi.err
 
6019
    for naked_compiler in $compilers
 
6020
    do
 
6021
        if test "x$naked_compiler" != "x$wrapped"; then :
 
6022
  rm -f naked.txt naked.err
 
6023
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
 
6024
  if $inside mpi.txt naked.txt >/dev/null; then :
 
6025
  ga_cv_mpic_naked=$naked_compiler; break
 
6026
else
 
6027
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
6028
fi
 
6029
else
 
6030
  echo "$naked_compiler $version failed, skipping" >&5
 
6031
fi
 
6032
fi
 
6033
    done
 
6034
    if test "x$ga_cv_mpic_naked" != x; then :
 
6035
  break
 
6036
fi
 
6037
done
 
6038
 
 
6039
fi
 
6040
 
 
6041
fi
 
6042
# Try by combining stdout/err into one file.
 
6043
if test "x$ga_cv_mpic_naked" = x; then :
 
6044
 
 
6045
echo "try combining stdout and stderr into one file" >&5
 
6046
for version in $versions
 
6047
do
 
6048
    echo "trying version=$version" >&5
 
6049
    rm -f mpi.txt naked.txt
 
6050
    if $wrapped $version 1>mpi.txt 2>&1; then :
 
6051
  for naked_compiler in $compilers
 
6052
         do
 
6053
            if test "x$naked_compiler" != "x$wrapped"; then :
 
6054
  if $naked_compiler $version 1>naked.txt 2>&1; then :
 
6055
  if $inside mpi.txt naked.txt >/dev/null; then :
 
6056
  ga_cv_mpic_naked=$naked_compiler; break
 
6057
else
 
6058
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
6059
fi
 
6060
else
 
6061
  echo "$naked_compiler $version failed, skipping" >&5
 
6062
fi
 
6063
fi
 
6064
         done
 
6065
else
 
6066
  echo "$wrapped $version failed, skipping" >&5
 
6067
fi
 
6068
    if test "x$ga_cv_mpic_naked" != x; then :
 
6069
  break
 
6070
fi
 
6071
done
 
6072
 
 
6073
fi
 
6074
# If we got this far, then it's likely that the MPI compiler had a zero exit
 
6075
# status when it shouldn't have for one version flag, but later had a non-zero
 
6076
# exit status for a flag it shouldn't have.  One false positive hid a false
 
6077
# negative.  In this case, brute force compare all MPI compiler output against
 
6078
# all compiler output.
 
6079
if test "x$ga_cv_mpic_naked" = x; then :
 
6080
 
 
6081
echo "we have a very badly behaving MPI compiler" >&5
 
6082
for version in $versions
 
6083
do
 
6084
    echo "trying version=$version" >&5
 
6085
    rm -f mpi.txt mpi.err
 
6086
    $wrapped $version 1>mpi.txt 2>mpi.err
 
6087
    for naked_compiler in $compilers
 
6088
    do
 
6089
        if test "x$naked_compiler" != "x$wrapped"; then :
 
6090
  rm -f naked.txt naked.err
 
6091
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
 
6092
  if $inside mpi.txt naked.txt >/dev/null; then :
 
6093
  ga_cv_mpic_naked=$naked_compiler; break
 
6094
else
 
6095
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
6096
fi
 
6097
else
 
6098
  echo "$naked_compiler $version failed, skipping" >&5
 
6099
fi
 
6100
fi
 
6101
    done
 
6102
    if test "x$ga_cv_mpic_naked" != x; then :
 
6103
  break
 
6104
fi
 
6105
done
 
6106
 
 
6107
fi
 
6108
rm -f mpi.txt mpi.err naked.txt naked.err
 
6109
 
 
6110
fi
 
6111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpic_naked" >&5
 
6112
$as_echo "$ga_cv_mpic_naked" >&6; }
 
6113
if test "x$ga_cv_mpic_naked" = x; then :
 
6114
  as_fn_error $? "Could not determine the C compiler wrapped by MPI" "$LINENO" 5
 
6115
else
 
6116
  if test "x$ga_orig_CC" != x && test "x$ga_orig_CC" != "x$ga_cv_mpic_naked"; then :
 
6117
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpic_naked) does not match user-specified $ga_orig_CC" >&5
 
6118
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpic_naked) does not match user-specified $ga_orig_CC" >&2;}
 
6119
fi
 
6120
fi
 
6121
 
 
6122
 
 
6123
rm -f inside.pl
 
6124
 
 
6125
else
 
6126
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
6127
 
 
6128
fi
 
6129
 
 
6130
for arg in $with_mpi ; do
 
6131
    case $arg in #(
 
6132
  yes) :
 
6133
     ;; #(
 
6134
  no) :
 
6135
     ;; #(
 
6136
  -l*) :
 
6137
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
 
6138
  -L*) :
 
6139
    GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
 
6140
  -WL*) :
 
6141
    GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
 
6142
  -Wl*) :
 
6143
    GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
 
6144
  -I*) :
 
6145
    GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS $arg" ;; #(
 
6146
  *.a) :
 
6147
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
 
6148
  *.so) :
 
6149
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
 
6150
  *lib) :
 
6151
    if test -d $arg; then :
 
6152
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
 
6153
else
 
6154
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6155
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6156
fi ;; #(
 
6157
  *lib/) :
 
6158
    if test -d $arg; then :
 
6159
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
 
6160
else
 
6161
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6162
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6163
fi ;; #(
 
6164
  *lib64) :
 
6165
    if test -d $arg; then :
 
6166
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
 
6167
else
 
6168
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6169
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6170
fi ;; #(
 
6171
  *lib64/) :
 
6172
    if test -d $arg; then :
 
6173
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
 
6174
else
 
6175
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6176
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6177
fi ;; #(
 
6178
  *include) :
 
6179
    if test -d $arg; then :
 
6180
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
 
6181
else
 
6182
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6183
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6184
fi ;; #(
 
6185
  *include/) :
 
6186
    if test -d $arg; then :
 
6187
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
 
6188
else
 
6189
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6190
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6191
fi ;; #(
 
6192
  *include64) :
 
6193
    if test -d $arg; then :
 
6194
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
 
6195
else
 
6196
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6197
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6198
fi ;; #(
 
6199
  *include64/) :
 
6200
    if test -d $arg; then :
 
6201
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
 
6202
else
 
6203
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6204
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6205
fi ;; #(
 
6206
  -mkl*) :
 
6207
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
 
6208
  *) :
 
6209
    ga_arg_parse_ok=no ;;
 
6210
esac
 
6211
# $arg didn't fit the most common cases
 
6212
# check for subdirectories e.g. lib,include
 
6213
    if test "x$ga_arg_parse_ok" = xno; then :
 
6214
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
6215
  if test -d $arg/lib64; then :
 
6216
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
6217
elif test -d $arg/lib; then :
 
6218
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6219
fi
 
6220
             if test -d $arg/include64; then :
 
6221
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
6222
elif test -d $arg/include; then :
 
6223
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6224
fi
 
6225
else
 
6226
  if test -d $arg/lib; then :
 
6227
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6228
fi
 
6229
             if test -d $arg/include; then :
 
6230
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6231
fi
 
6232
fi
 
6233
fi
 
6234
# $arg still unknown, look for "lib" and "include" anywhere...
 
6235
    if test "x$ga_arg_parse_ok" = xno; then :
 
6236
  case $arg in #(
 
6237
  *lib*) :
 
6238
    if test -d $arg; then :
 
6239
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
6240
fi ;; #(
 
6241
  *include*) :
 
6242
    if test -d $arg; then :
 
6243
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
6244
fi ;; #(
 
6245
  *) :
 
6246
     ;;
 
6247
esac
 
6248
fi
 
6249
# warn user that $arg fell through
 
6250
     if test "x$ga_arg_parse_ok" = xno; then :
 
6251
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
 
6252
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
 
6253
fi
 
6254
done
 
6255
fi
 
6256
if test "x$with_mpi" != xno; then :
 
6257
 
 
6258
    case $enable_mpi_tests in #(
 
6259
  yes) :
 
6260
 
 
6261
ac_ext=c
 
6262
ac_cpp='$CPP $CPPFLAGS'
 
6263
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6264
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6265
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6266
 
 
6267
 
 
6268
ac_ext=c
 
6269
ac_cpp='$CPP $CPPFLAGS'
 
6270
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6271
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6272
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6273
 
 
6274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6275
/* end confdefs.h.  */
 
6276
#include <mpi.h>
 
6277
int
 
6278
main ()
 
6279
{
 
6280
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
 
6281
  ;
 
6282
  return 0;
 
6283
}
 
6284
_ACEOF
 
6285
ac_ext=c
 
6286
ac_cpp='$CPP $CPPFLAGS'
 
6287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6290
 
 
6291
 
 
6292
ga_cv_c_mpi_test_link=no
 
6293
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6294
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a C MPI program links natively" >&5
 
6295
$as_echo_n "checking whether a C MPI program links natively... " >&6; }
 
6296
     if ac_fn_c_try_link "$LINENO"; then :
 
6297
  ga_cv_c_mpi_test_link=yes
 
6298
         GA_MP_LIBS=
 
6299
         GA_MP_LDFLAGS=
 
6300
         GA_MP_CPPFLAGS=
 
6301
else
 
6302
  ga_cv_c_mpi_test_link=no
 
6303
fi
 
6304
rm -f core conftest.err conftest.$ac_objext \
 
6305
    conftest$ac_exeext
 
6306
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6307
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6308
fi
 
6309
# That didn't work, so now let's try adding our GA_MP_* flags.
 
6310
# The CPPFLAGS and LDFLAGS are added up top here, but LIBS will change.
 
6311
ga_save_LIBS="$LIBS"
 
6312
ga_save_CPPFLAGS="$CPPFLAGS";  CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
6313
ga_save_LDFLAGS="$LDFLAGS";    LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
6314
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6315
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a C MPI program links with additional env" >&5
 
6316
$as_echo_n "checking whether a C MPI program links with additional env... " >&6; }
 
6317
     LIBS="$LIBS $GA_MP_LIBS"
 
6318
     if ac_fn_c_try_link "$LINENO"; then :
 
6319
  ga_cv_c_mpi_test_link=yes
 
6320
else
 
6321
  ga_cv_c_mpi_test_link=no
 
6322
fi
 
6323
rm -f core conftest.err conftest.$ac_objext \
 
6324
    conftest$ac_exeext
 
6325
     LIBS="$ga_save_LIBS"
 
6326
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6327
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6328
fi
 
6329
# That didn't work, so now let's try with specific libs.
 
6330
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6331
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvapich libraries" >&5
 
6332
$as_echo_n "checking for mvapich libraries... " >&6; }
 
6333
     for lib in "-lmpich -lpthread" "-lmpich"
 
6334
     do
 
6335
        LIBS="$LIBS $lib"
 
6336
        if ac_fn_c_try_link "$LINENO"; then :
 
6337
  ga_cv_c_mpi_test_link="$lib"; break
 
6338
else
 
6339
  ga_cv_c_mpi_test_link=no
 
6340
fi
 
6341
rm -f core conftest.err conftest.$ac_objext \
 
6342
    conftest$ac_exeext
 
6343
        LIBS="$ga_save_LIBS"
 
6344
     done
 
6345
     LIBS="$ga_save_LIBS"
 
6346
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6347
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6348
fi
 
6349
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6350
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpich libraries" >&5
 
6351
$as_echo_n "checking for mpich libraries... " >&6; }
 
6352
     for lib in "-lmpich -lpthread" "-lmpich"
 
6353
     do
 
6354
        LIBS="$LIBS $lib"
 
6355
        if ac_fn_c_try_link "$LINENO"; then :
 
6356
  ga_cv_c_mpi_test_link="$lib"; break
 
6357
else
 
6358
  ga_cv_c_mpi_test_link=no
 
6359
fi
 
6360
rm -f core conftest.err conftest.$ac_objext \
 
6361
    conftest$ac_exeext
 
6362
        LIBS="$ga_save_LIBS"
 
6363
     done
 
6364
     LIBS="$ga_save_LIBS"
 
6365
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6366
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6367
fi
 
6368
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hpmpi libraries" >&5
 
6370
$as_echo_n "checking for hpmpi libraries... " >&6; }
 
6371
     for lib in "-lhpmpio -lhpmpi" "-lhpmpi"
 
6372
     do
 
6373
        LIBS="$LIBS $lib"
 
6374
        if ac_fn_c_try_link "$LINENO"; then :
 
6375
  ga_cv_c_mpi_test_link="$lib"; break
 
6376
else
 
6377
  ga_cv_c_mpi_test_link=no
 
6378
fi
 
6379
rm -f core conftest.err conftest.$ac_objext \
 
6380
    conftest$ac_exeext
 
6381
        LIBS="$ga_save_LIBS"
 
6382
     done
 
6383
     LIBS="$ga_save_LIBS"
 
6384
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6385
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6386
fi
 
6387
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6388
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intelmpi libraries" >&5
 
6389
$as_echo_n "checking for intelmpi libraries... " >&6; }
 
6390
     for lib in "-lmpi -lmpiif -lmpigi -lrt -lpthread" "-lmpi -lmpiif -lmpigi"
 
6391
     do
 
6392
        LIBS="$LIBS $lib"
 
6393
        if ac_fn_c_try_link "$LINENO"; then :
 
6394
  ga_cv_c_mpi_test_link="$lib"; break
 
6395
else
 
6396
  ga_cv_c_mpi_test_link=no
 
6397
fi
 
6398
rm -f core conftest.err conftest.$ac_objext \
 
6399
    conftest$ac_exeext
 
6400
        LIBS="$ga_save_LIBS"
 
6401
     done
 
6402
     LIBS="$ga_save_LIBS"
 
6403
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6404
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6405
fi
 
6406
if test "x$ga_cv_c_mpi_test_link" = xno; then :
 
6407
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openmpi libraries" >&5
 
6408
$as_echo_n "checking for openmpi libraries... " >&6; }
 
6409
     for lib in "-lmpi -lpthread" "-lmpi"
 
6410
     do
 
6411
        LIBS="$LIBS $lib"
 
6412
        if ac_fn_c_try_link "$LINENO"; then :
 
6413
  ga_cv_c_mpi_test_link="$lib"; break
 
6414
else
 
6415
  ga_cv_c_mpi_test_link=no
 
6416
fi
 
6417
rm -f core conftest.err conftest.$ac_objext \
 
6418
    conftest$ac_exeext
 
6419
        LIBS="$ga_save_LIBS"
 
6420
     done
 
6421
     LIBS="$ga_save_LIBS"
 
6422
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_link" >&5
 
6423
$as_echo "$ga_cv_c_mpi_test_link" >&6; }
 
6424
fi
 
6425
rm -f conftest.$ac_ext
 
6426
LIBS="$ga_save_LIBS"
 
6427
LDFLAGS="$ga_save_LDFLAGS"
 
6428
CPPFLAGS="$ga_save_CPPFLAGS"
 
6429
ac_ext=c
 
6430
ac_cpp='$CPP $CPPFLAGS'
 
6431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6434
 
 
6435
case $ga_cv_c_mpi_test_link in #(
 
6436
  yes) :
 
6437
     ;; #(
 
6438
  no) :
 
6439
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6440
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6441
as_fn_error $? "could not link a C MPI program
 
6442
See \`config.log' for more details" "$LINENO" 5; } ;; #(
 
6443
  *) :
 
6444
    GA_MP_LIBS="$ga_cv_c_mpi_test_link" ;; #(
 
6445
  *) :
 
6446
     ;;
 
6447
esac
 
6448
 ;; #(
 
6449
  no) :
 
6450
 
 
6451
ac_ext=c
 
6452
ac_cpp='$CPP $CPPFLAGS'
 
6453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6456
 
 
6457
 
 
6458
ac_ext=c
 
6459
ac_cpp='$CPP $CPPFLAGS'
 
6460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6463
 
 
6464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6465
/* end confdefs.h.  */
 
6466
#include <mpi.h>
 
6467
int
 
6468
main ()
 
6469
{
 
6470
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
 
6471
  ;
 
6472
  return 0;
 
6473
}
 
6474
_ACEOF
 
6475
ac_ext=c
 
6476
ac_cpp='$CPP $CPPFLAGS'
 
6477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6480
 
 
6481
 
 
6482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple C MPI program compiles" >&5
 
6483
$as_echo_n "checking whether a simple C MPI program compiles... " >&6; }
 
6484
if ${ga_cv_c_mpi_test_compile+:} false; then :
 
6485
  $as_echo_n "(cached) " >&6
 
6486
else
 
6487
  ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
6488
     if ac_fn_c_try_compile "$LINENO"; then :
 
6489
  ga_cv_c_mpi_test_compile=yes
 
6490
else
 
6491
  ga_cv_c_mpi_test_compile=no
 
6492
fi
 
6493
rm -f core conftest.err conftest.$ac_objext
 
6494
     CPPFLAGS="$ga_save_CPPFLAGS"
 
6495
fi
 
6496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_compile" >&5
 
6497
$as_echo "$ga_cv_c_mpi_test_compile" >&6; }
 
6498
rm -f conftest.$ac_ext
 
6499
ac_ext=c
 
6500
ac_cpp='$CPP $CPPFLAGS'
 
6501
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6504
 
 
6505
if test "x$ga_cv_c_mpi_test_compile" = xno; then :
 
6506
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6507
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6508
as_fn_error $? "could not compile simple C MPI program
 
6509
See \`config.log' for more details" "$LINENO" 5; }
 
6510
fi
 
6511
 ;; #(
 
6512
  *) :
 
6513
     ;;
 
6514
esac
 
6515
fi
 
6516
# Hack to append .x to executables.
 
6517
EXEEXT=.x$EXEEXT
 
6518
 
 
6519
 
 
6520
 
 
6521
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_target64_sizeof_voidp"        ""; then :
 
6522
 
 
6523
fi
 
6524
 
 
6525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TARGET 64bit-ness" >&5
 
6526
$as_echo_n "checking for TARGET 64bit-ness... " >&6; }
 
6527
if ${ga_cv_target+:} false; then :
 
6528
  $as_echo_n "(cached) " >&6
 
6529
else
 
6530
  if test x$ga_target64_sizeof_voidp = x8; then :
 
6531
  ga_cv_target=${ga_cv_target_base}64
 
6532
else
 
6533
  ga_cv_target=$ga_cv_target_base
 
6534
fi
 
6535
fi
 
6536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_target" >&5
 
6537
$as_echo "$ga_cv_target" >&6; }
 
6538
 
 
6539
cat >>confdefs.h <<_ACEOF
 
6540
#define $ga_cv_target 1
 
6541
_ACEOF
 
6542
 
 
6543
 
 
6544
 
 
6545
# Establish the underlying network infrastructure (SOCKETS, OPENIB, etc)
 
6546
 
 
6547
# Clear the variables we will be using, just in case.
 
6548
ga_armci_network=
 
6549
ARMCI_NETWORK_LIBS=
 
6550
ARMCI_NETWORK_LDFLAGS=
 
6551
ARMCI_NETWORK_CPPFLAGS=
 
6552
# Check whether --enable-autodetect was given.
 
6553
if test "${enable_autodetect+set}" = set; then :
 
6554
  enableval=$enable_autodetect;
 
6555
fi
 
6556
 
 
6557
# First, all of the "--with" stuff is taken care of.
 
6558
armci_network_count=0
 
6559
 
 
6560
 
 
6561
# Check whether --with-armci was given.
 
6562
if test "${with_armci+set}" = set; then :
 
6563
  withval=$with_armci;
 
6564
fi
 
6565
 
 
6566
 
 
6567
 
 
6568
if test "x$with_armci" != x; then :
 
6569
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
6570
 
 
6571
fi
 
6572
 
 
6573
for arg in $with_armci ; do
 
6574
    case $arg in #(
 
6575
  yes) :
 
6576
     ;; #(
 
6577
  no) :
 
6578
     ;; #(
 
6579
  -l*) :
 
6580
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6581
  -L*) :
 
6582
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6583
  -WL*) :
 
6584
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6585
  -Wl*) :
 
6586
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6587
  -I*) :
 
6588
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
6589
  *.a) :
 
6590
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6591
  *.so) :
 
6592
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6593
  *lib) :
 
6594
    if test -d $arg; then :
 
6595
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6596
else
 
6597
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6598
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6599
fi ;; #(
 
6600
  *lib/) :
 
6601
    if test -d $arg; then :
 
6602
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6603
else
 
6604
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6605
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6606
fi ;; #(
 
6607
  *lib64) :
 
6608
    if test -d $arg; then :
 
6609
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6610
else
 
6611
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6612
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6613
fi ;; #(
 
6614
  *lib64/) :
 
6615
    if test -d $arg; then :
 
6616
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6617
else
 
6618
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6619
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6620
fi ;; #(
 
6621
  *include) :
 
6622
    if test -d $arg; then :
 
6623
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6624
else
 
6625
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6626
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6627
fi ;; #(
 
6628
  *include/) :
 
6629
    if test -d $arg; then :
 
6630
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6631
else
 
6632
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6633
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6634
fi ;; #(
 
6635
  *include64) :
 
6636
    if test -d $arg; then :
 
6637
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6638
else
 
6639
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6640
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6641
fi ;; #(
 
6642
  *include64/) :
 
6643
    if test -d $arg; then :
 
6644
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6645
else
 
6646
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6647
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6648
fi ;; #(
 
6649
  -mkl*) :
 
6650
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6651
  *) :
 
6652
    ga_arg_parse_ok=no ;;
 
6653
esac
 
6654
# $arg didn't fit the most common cases
 
6655
# check for subdirectories e.g. lib,include
 
6656
    if test "x$ga_arg_parse_ok" = xno; then :
 
6657
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
6658
  if test -d $arg/lib64; then :
 
6659
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
6660
elif test -d $arg/lib; then :
 
6661
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6662
fi
 
6663
             if test -d $arg/include64; then :
 
6664
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
6665
elif test -d $arg/include; then :
 
6666
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6667
fi
 
6668
else
 
6669
  if test -d $arg/lib; then :
 
6670
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6671
fi
 
6672
             if test -d $arg/include; then :
 
6673
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6674
fi
 
6675
fi
 
6676
fi
 
6677
# $arg still unknown, look for "lib" and "include" anywhere...
 
6678
    if test "x$ga_arg_parse_ok" = xno; then :
 
6679
  case $arg in #(
 
6680
  *lib*) :
 
6681
    if test -d $arg; then :
 
6682
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
6683
fi ;; #(
 
6684
  *include*) :
 
6685
    if test -d $arg; then :
 
6686
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
6687
fi ;; #(
 
6688
  *) :
 
6689
     ;;
 
6690
esac
 
6691
fi
 
6692
# warn user that $arg fell through
 
6693
     if test "x$ga_arg_parse_ok" = xno; then :
 
6694
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_armci not parsed" >&5
 
6695
$as_echo "$as_me: WARNING: $arg of with_armci not parsed" >&2;}
 
6696
fi
 
6697
done
 
6698
fi
 
6699
if test "x$with_armci" != xno && test "x$with_armci" != x; then :
 
6700
  ga_armci_network=ARMCI
 
6701
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
6702
fi
 
6703
 
 
6704
 
 
6705
 
 
6706
 
 
6707
 
 
6708
# Check whether --with-bgml was given.
 
6709
if test "${with_bgml+set}" = set; then :
 
6710
  withval=$with_bgml;
 
6711
fi
 
6712
 
 
6713
 
 
6714
 
 
6715
if test "x$with_bgml" != x; then :
 
6716
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
6717
 
 
6718
fi
 
6719
 
 
6720
for arg in $with_bgml ; do
 
6721
    case $arg in #(
 
6722
  yes) :
 
6723
     ;; #(
 
6724
  no) :
 
6725
     ;; #(
 
6726
  -l*) :
 
6727
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6728
  -L*) :
 
6729
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6730
  -WL*) :
 
6731
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6732
  -Wl*) :
 
6733
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6734
  -I*) :
 
6735
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
6736
  *.a) :
 
6737
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6738
  *.so) :
 
6739
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6740
  *lib) :
 
6741
    if test -d $arg; then :
 
6742
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6743
else
 
6744
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6745
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6746
fi ;; #(
 
6747
  *lib/) :
 
6748
    if test -d $arg; then :
 
6749
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6750
else
 
6751
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6752
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6753
fi ;; #(
 
6754
  *lib64) :
 
6755
    if test -d $arg; then :
 
6756
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6757
else
 
6758
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6759
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6760
fi ;; #(
 
6761
  *lib64/) :
 
6762
    if test -d $arg; then :
 
6763
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6764
else
 
6765
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6766
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6767
fi ;; #(
 
6768
  *include) :
 
6769
    if test -d $arg; then :
 
6770
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6771
else
 
6772
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6773
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6774
fi ;; #(
 
6775
  *include/) :
 
6776
    if test -d $arg; then :
 
6777
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6778
else
 
6779
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6780
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6781
fi ;; #(
 
6782
  *include64) :
 
6783
    if test -d $arg; then :
 
6784
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6785
else
 
6786
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6787
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6788
fi ;; #(
 
6789
  *include64/) :
 
6790
    if test -d $arg; then :
 
6791
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6792
else
 
6793
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6794
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6795
fi ;; #(
 
6796
  -mkl*) :
 
6797
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6798
  *) :
 
6799
    ga_arg_parse_ok=no ;;
 
6800
esac
 
6801
# $arg didn't fit the most common cases
 
6802
# check for subdirectories e.g. lib,include
 
6803
    if test "x$ga_arg_parse_ok" = xno; then :
 
6804
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
6805
  if test -d $arg/lib64; then :
 
6806
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
6807
elif test -d $arg/lib; then :
 
6808
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6809
fi
 
6810
             if test -d $arg/include64; then :
 
6811
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
6812
elif test -d $arg/include; then :
 
6813
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6814
fi
 
6815
else
 
6816
  if test -d $arg/lib; then :
 
6817
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6818
fi
 
6819
             if test -d $arg/include; then :
 
6820
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6821
fi
 
6822
fi
 
6823
fi
 
6824
# $arg still unknown, look for "lib" and "include" anywhere...
 
6825
    if test "x$ga_arg_parse_ok" = xno; then :
 
6826
  case $arg in #(
 
6827
  *lib*) :
 
6828
    if test -d $arg; then :
 
6829
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
6830
fi ;; #(
 
6831
  *include*) :
 
6832
    if test -d $arg; then :
 
6833
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
6834
fi ;; #(
 
6835
  *) :
 
6836
     ;;
 
6837
esac
 
6838
fi
 
6839
# warn user that $arg fell through
 
6840
     if test "x$ga_arg_parse_ok" = xno; then :
 
6841
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_bgml not parsed" >&5
 
6842
$as_echo "$as_me: WARNING: $arg of with_bgml not parsed" >&2;}
 
6843
fi
 
6844
done
 
6845
fi
 
6846
if test "x$with_bgml" != xno && test "x$with_bgml" != x; then :
 
6847
  ga_armci_network=BGML
 
6848
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
6849
fi
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
# Check whether --with-cray-shmem was given.
 
6856
if test "${with_cray_shmem+set}" = set; then :
 
6857
  withval=$with_cray_shmem;
 
6858
fi
 
6859
 
 
6860
 
 
6861
 
 
6862
if test "x$with_cray_shmem" != x; then :
 
6863
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
6864
 
 
6865
fi
 
6866
 
 
6867
for arg in $with_cray_shmem ; do
 
6868
    case $arg in #(
 
6869
  yes) :
 
6870
     ;; #(
 
6871
  no) :
 
6872
     ;; #(
 
6873
  -l*) :
 
6874
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6875
  -L*) :
 
6876
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6877
  -WL*) :
 
6878
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6879
  -Wl*) :
 
6880
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
6881
  -I*) :
 
6882
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
6883
  *.a) :
 
6884
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6885
  *.so) :
 
6886
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6887
  *lib) :
 
6888
    if test -d $arg; then :
 
6889
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6890
else
 
6891
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6892
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6893
fi ;; #(
 
6894
  *lib/) :
 
6895
    if test -d $arg; then :
 
6896
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6897
else
 
6898
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6899
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6900
fi ;; #(
 
6901
  *lib64) :
 
6902
    if test -d $arg; then :
 
6903
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6904
else
 
6905
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6906
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6907
fi ;; #(
 
6908
  *lib64/) :
 
6909
    if test -d $arg; then :
 
6910
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
6911
else
 
6912
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6913
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6914
fi ;; #(
 
6915
  *include) :
 
6916
    if test -d $arg; then :
 
6917
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6918
else
 
6919
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6920
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6921
fi ;; #(
 
6922
  *include/) :
 
6923
    if test -d $arg; then :
 
6924
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6925
else
 
6926
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6927
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6928
fi ;; #(
 
6929
  *include64) :
 
6930
    if test -d $arg; then :
 
6931
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6932
else
 
6933
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6934
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6935
fi ;; #(
 
6936
  *include64/) :
 
6937
    if test -d $arg; then :
 
6938
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
6939
else
 
6940
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6941
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6942
fi ;; #(
 
6943
  -mkl*) :
 
6944
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
6945
  *) :
 
6946
    ga_arg_parse_ok=no ;;
 
6947
esac
 
6948
# $arg didn't fit the most common cases
 
6949
# check for subdirectories e.g. lib,include
 
6950
    if test "x$ga_arg_parse_ok" = xno; then :
 
6951
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
6952
  if test -d $arg/lib64; then :
 
6953
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
6954
elif test -d $arg/lib; then :
 
6955
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6956
fi
 
6957
             if test -d $arg/include64; then :
 
6958
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
6959
elif test -d $arg/include; then :
 
6960
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6961
fi
 
6962
else
 
6963
  if test -d $arg/lib; then :
 
6964
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
6965
fi
 
6966
             if test -d $arg/include; then :
 
6967
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
6968
fi
 
6969
fi
 
6970
fi
 
6971
# $arg still unknown, look for "lib" and "include" anywhere...
 
6972
    if test "x$ga_arg_parse_ok" = xno; then :
 
6973
  case $arg in #(
 
6974
  *lib*) :
 
6975
    if test -d $arg; then :
 
6976
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
6977
fi ;; #(
 
6978
  *include*) :
 
6979
    if test -d $arg; then :
 
6980
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
6981
fi ;; #(
 
6982
  *) :
 
6983
     ;;
 
6984
esac
 
6985
fi
 
6986
# warn user that $arg fell through
 
6987
     if test "x$ga_arg_parse_ok" = xno; then :
 
6988
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_cray_shmem not parsed" >&5
 
6989
$as_echo "$as_me: WARNING: $arg of with_cray_shmem not parsed" >&2;}
 
6990
fi
 
6991
done
 
6992
fi
 
6993
if test "x$with_cray_shmem" != xno && test "x$with_cray_shmem" != x; then :
 
6994
  ga_armci_network=CRAY_SHMEM
 
6995
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
6996
fi
 
6997
 
 
6998
 
 
6999
 
 
7000
 
 
7001
 
 
7002
# Check whether --with-dcmf was given.
 
7003
if test "${with_dcmf+set}" = set; then :
 
7004
  withval=$with_dcmf;
 
7005
fi
 
7006
 
 
7007
 
 
7008
 
 
7009
if test "x$with_dcmf" != x; then :
 
7010
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7011
 
 
7012
fi
 
7013
 
 
7014
for arg in $with_dcmf ; do
 
7015
    case $arg in #(
 
7016
  yes) :
 
7017
     ;; #(
 
7018
  no) :
 
7019
     ;; #(
 
7020
  -l*) :
 
7021
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7022
  -L*) :
 
7023
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7024
  -WL*) :
 
7025
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7026
  -Wl*) :
 
7027
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7028
  -I*) :
 
7029
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7030
  *.a) :
 
7031
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7032
  *.so) :
 
7033
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7034
  *lib) :
 
7035
    if test -d $arg; then :
 
7036
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7037
else
 
7038
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7039
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7040
fi ;; #(
 
7041
  *lib/) :
 
7042
    if test -d $arg; then :
 
7043
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7044
else
 
7045
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7046
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7047
fi ;; #(
 
7048
  *lib64) :
 
7049
    if test -d $arg; then :
 
7050
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7051
else
 
7052
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7053
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7054
fi ;; #(
 
7055
  *lib64/) :
 
7056
    if test -d $arg; then :
 
7057
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7058
else
 
7059
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7060
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7061
fi ;; #(
 
7062
  *include) :
 
7063
    if test -d $arg; then :
 
7064
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7065
else
 
7066
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7067
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7068
fi ;; #(
 
7069
  *include/) :
 
7070
    if test -d $arg; then :
 
7071
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7072
else
 
7073
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7074
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7075
fi ;; #(
 
7076
  *include64) :
 
7077
    if test -d $arg; then :
 
7078
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7079
else
 
7080
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7081
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7082
fi ;; #(
 
7083
  *include64/) :
 
7084
    if test -d $arg; then :
 
7085
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7086
else
 
7087
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7088
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7089
fi ;; #(
 
7090
  -mkl*) :
 
7091
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7092
  *) :
 
7093
    ga_arg_parse_ok=no ;;
 
7094
esac
 
7095
# $arg didn't fit the most common cases
 
7096
# check for subdirectories e.g. lib,include
 
7097
    if test "x$ga_arg_parse_ok" = xno; then :
 
7098
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7099
  if test -d $arg/lib64; then :
 
7100
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7101
elif test -d $arg/lib; then :
 
7102
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7103
fi
 
7104
             if test -d $arg/include64; then :
 
7105
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7106
elif test -d $arg/include; then :
 
7107
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7108
fi
 
7109
else
 
7110
  if test -d $arg/lib; then :
 
7111
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7112
fi
 
7113
             if test -d $arg/include; then :
 
7114
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7115
fi
 
7116
fi
 
7117
fi
 
7118
# $arg still unknown, look for "lib" and "include" anywhere...
 
7119
    if test "x$ga_arg_parse_ok" = xno; then :
 
7120
  case $arg in #(
 
7121
  *lib*) :
 
7122
    if test -d $arg; then :
 
7123
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
7124
fi ;; #(
 
7125
  *include*) :
 
7126
    if test -d $arg; then :
 
7127
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
7128
fi ;; #(
 
7129
  *) :
 
7130
     ;;
 
7131
esac
 
7132
fi
 
7133
# warn user that $arg fell through
 
7134
     if test "x$ga_arg_parse_ok" = xno; then :
 
7135
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dcmf not parsed" >&5
 
7136
$as_echo "$as_me: WARNING: $arg of with_dcmf not parsed" >&2;}
 
7137
fi
 
7138
done
 
7139
fi
 
7140
if test "x$with_dcmf" != xno && test "x$with_dcmf" != x; then :
 
7141
  ga_armci_network=DCMF
 
7142
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
7143
fi
 
7144
 
 
7145
 
 
7146
 
 
7147
 
 
7148
 
 
7149
# Check whether --with-dmapp was given.
 
7150
if test "${with_dmapp+set}" = set; then :
 
7151
  withval=$with_dmapp;
 
7152
fi
 
7153
 
 
7154
 
 
7155
 
 
7156
if test "x$with_dmapp" != x; then :
 
7157
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7158
 
 
7159
fi
 
7160
 
 
7161
for arg in $with_dmapp ; do
 
7162
    case $arg in #(
 
7163
  yes) :
 
7164
     ;; #(
 
7165
  no) :
 
7166
     ;; #(
 
7167
  -l*) :
 
7168
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7169
  -L*) :
 
7170
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7171
  -WL*) :
 
7172
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7173
  -Wl*) :
 
7174
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7175
  -I*) :
 
7176
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7177
  *.a) :
 
7178
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7179
  *.so) :
 
7180
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7181
  *lib) :
 
7182
    if test -d $arg; then :
 
7183
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7184
else
 
7185
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7186
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7187
fi ;; #(
 
7188
  *lib/) :
 
7189
    if test -d $arg; then :
 
7190
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7191
else
 
7192
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7193
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7194
fi ;; #(
 
7195
  *lib64) :
 
7196
    if test -d $arg; then :
 
7197
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7198
else
 
7199
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7200
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7201
fi ;; #(
 
7202
  *lib64/) :
 
7203
    if test -d $arg; then :
 
7204
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7205
else
 
7206
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7207
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7208
fi ;; #(
 
7209
  *include) :
 
7210
    if test -d $arg; then :
 
7211
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7212
else
 
7213
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7214
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7215
fi ;; #(
 
7216
  *include/) :
 
7217
    if test -d $arg; then :
 
7218
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7219
else
 
7220
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7221
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7222
fi ;; #(
 
7223
  *include64) :
 
7224
    if test -d $arg; then :
 
7225
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7226
else
 
7227
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7228
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7229
fi ;; #(
 
7230
  *include64/) :
 
7231
    if test -d $arg; then :
 
7232
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7233
else
 
7234
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7235
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7236
fi ;; #(
 
7237
  -mkl*) :
 
7238
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7239
  *) :
 
7240
    ga_arg_parse_ok=no ;;
 
7241
esac
 
7242
# $arg didn't fit the most common cases
 
7243
# check for subdirectories e.g. lib,include
 
7244
    if test "x$ga_arg_parse_ok" = xno; then :
 
7245
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7246
  if test -d $arg/lib64; then :
 
7247
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7248
elif test -d $arg/lib; then :
 
7249
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7250
fi
 
7251
             if test -d $arg/include64; then :
 
7252
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7253
elif test -d $arg/include; then :
 
7254
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7255
fi
 
7256
else
 
7257
  if test -d $arg/lib; then :
 
7258
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7259
fi
 
7260
             if test -d $arg/include; then :
 
7261
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7262
fi
 
7263
fi
 
7264
fi
 
7265
# $arg still unknown, look for "lib" and "include" anywhere...
 
7266
    if test "x$ga_arg_parse_ok" = xno; then :
 
7267
  case $arg in #(
 
7268
  *lib*) :
 
7269
    if test -d $arg; then :
 
7270
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
7271
fi ;; #(
 
7272
  *include*) :
 
7273
    if test -d $arg; then :
 
7274
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
7275
fi ;; #(
 
7276
  *) :
 
7277
     ;;
 
7278
esac
 
7279
fi
 
7280
# warn user that $arg fell through
 
7281
     if test "x$ga_arg_parse_ok" = xno; then :
 
7282
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_dmapp not parsed" >&5
 
7283
$as_echo "$as_me: WARNING: $arg of with_dmapp not parsed" >&2;}
 
7284
fi
 
7285
done
 
7286
fi
 
7287
if test "x$with_dmapp" != xno && test "x$with_dmapp" != x; then :
 
7288
  ga_armci_network=DMAPP
 
7289
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
7290
fi
 
7291
 
 
7292
 
 
7293
 
 
7294
 
 
7295
 
 
7296
# Check whether --with-gemini was given.
 
7297
if test "${with_gemini+set}" = set; then :
 
7298
  withval=$with_gemini;
 
7299
fi
 
7300
 
 
7301
 
 
7302
 
 
7303
if test "x$with_gemini" != x; then :
 
7304
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7305
 
 
7306
fi
 
7307
 
 
7308
for arg in $with_gemini ; do
 
7309
    case $arg in #(
 
7310
  yes) :
 
7311
     ;; #(
 
7312
  no) :
 
7313
     ;; #(
 
7314
  -l*) :
 
7315
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7316
  -L*) :
 
7317
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7318
  -WL*) :
 
7319
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7320
  -Wl*) :
 
7321
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7322
  -I*) :
 
7323
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7324
  *.a) :
 
7325
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7326
  *.so) :
 
7327
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7328
  *lib) :
 
7329
    if test -d $arg; then :
 
7330
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7331
else
 
7332
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7333
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7334
fi ;; #(
 
7335
  *lib/) :
 
7336
    if test -d $arg; then :
 
7337
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7338
else
 
7339
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7340
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7341
fi ;; #(
 
7342
  *lib64) :
 
7343
    if test -d $arg; then :
 
7344
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7345
else
 
7346
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7347
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7348
fi ;; #(
 
7349
  *lib64/) :
 
7350
    if test -d $arg; then :
 
7351
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7352
else
 
7353
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7354
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7355
fi ;; #(
 
7356
  *include) :
 
7357
    if test -d $arg; then :
 
7358
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7359
else
 
7360
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7361
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7362
fi ;; #(
 
7363
  *include/) :
 
7364
    if test -d $arg; then :
 
7365
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7366
else
 
7367
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7368
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7369
fi ;; #(
 
7370
  *include64) :
 
7371
    if test -d $arg; then :
 
7372
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7373
else
 
7374
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7375
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7376
fi ;; #(
 
7377
  *include64/) :
 
7378
    if test -d $arg; then :
 
7379
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7380
else
 
7381
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7382
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7383
fi ;; #(
 
7384
  -mkl*) :
 
7385
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7386
  *) :
 
7387
    ga_arg_parse_ok=no ;;
 
7388
esac
 
7389
# $arg didn't fit the most common cases
 
7390
# check for subdirectories e.g. lib,include
 
7391
    if test "x$ga_arg_parse_ok" = xno; then :
 
7392
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7393
  if test -d $arg/lib64; then :
 
7394
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7395
elif test -d $arg/lib; then :
 
7396
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7397
fi
 
7398
             if test -d $arg/include64; then :
 
7399
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7400
elif test -d $arg/include; then :
 
7401
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7402
fi
 
7403
else
 
7404
  if test -d $arg/lib; then :
 
7405
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7406
fi
 
7407
             if test -d $arg/include; then :
 
7408
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7409
fi
 
7410
fi
 
7411
fi
 
7412
# $arg still unknown, look for "lib" and "include" anywhere...
 
7413
    if test "x$ga_arg_parse_ok" = xno; then :
 
7414
  case $arg in #(
 
7415
  *lib*) :
 
7416
    if test -d $arg; then :
 
7417
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
7418
fi ;; #(
 
7419
  *include*) :
 
7420
    if test -d $arg; then :
 
7421
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
7422
fi ;; #(
 
7423
  *) :
 
7424
     ;;
 
7425
esac
 
7426
fi
 
7427
# warn user that $arg fell through
 
7428
     if test "x$ga_arg_parse_ok" = xno; then :
 
7429
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_gemini not parsed" >&5
 
7430
$as_echo "$as_me: WARNING: $arg of with_gemini not parsed" >&2;}
 
7431
fi
 
7432
done
 
7433
fi
 
7434
if test "x$with_gemini" != xno && test "x$with_gemini" != x; then :
 
7435
  ga_armci_network=GEMINI
 
7436
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
7437
fi
 
7438
 
 
7439
 
 
7440
 
 
7441
 
 
7442
 
 
7443
# Check whether --with-lapi was given.
 
7444
if test "${with_lapi+set}" = set; then :
 
7445
  withval=$with_lapi;
 
7446
fi
 
7447
 
 
7448
 
 
7449
 
 
7450
if test "x$with_lapi" != x; then :
 
7451
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7452
 
 
7453
fi
 
7454
 
 
7455
for arg in $with_lapi ; do
 
7456
    case $arg in #(
 
7457
  yes) :
 
7458
     ;; #(
 
7459
  no) :
 
7460
     ;; #(
 
7461
  -l*) :
 
7462
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7463
  -L*) :
 
7464
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7465
  -WL*) :
 
7466
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7467
  -Wl*) :
 
7468
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7469
  -I*) :
 
7470
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7471
  *.a) :
 
7472
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7473
  *.so) :
 
7474
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7475
  *lib) :
 
7476
    if test -d $arg; then :
 
7477
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7478
else
 
7479
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7480
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7481
fi ;; #(
 
7482
  *lib/) :
 
7483
    if test -d $arg; then :
 
7484
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7485
else
 
7486
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7487
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7488
fi ;; #(
 
7489
  *lib64) :
 
7490
    if test -d $arg; then :
 
7491
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7492
else
 
7493
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7494
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7495
fi ;; #(
 
7496
  *lib64/) :
 
7497
    if test -d $arg; then :
 
7498
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7499
else
 
7500
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7501
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7502
fi ;; #(
 
7503
  *include) :
 
7504
    if test -d $arg; then :
 
7505
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7506
else
 
7507
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7508
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7509
fi ;; #(
 
7510
  *include/) :
 
7511
    if test -d $arg; then :
 
7512
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7513
else
 
7514
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7515
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7516
fi ;; #(
 
7517
  *include64) :
 
7518
    if test -d $arg; then :
 
7519
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7520
else
 
7521
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7522
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7523
fi ;; #(
 
7524
  *include64/) :
 
7525
    if test -d $arg; then :
 
7526
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7527
else
 
7528
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7529
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7530
fi ;; #(
 
7531
  -mkl*) :
 
7532
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7533
  *) :
 
7534
    ga_arg_parse_ok=no ;;
 
7535
esac
 
7536
# $arg didn't fit the most common cases
 
7537
# check for subdirectories e.g. lib,include
 
7538
    if test "x$ga_arg_parse_ok" = xno; then :
 
7539
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7540
  if test -d $arg/lib64; then :
 
7541
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7542
elif test -d $arg/lib; then :
 
7543
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7544
fi
 
7545
             if test -d $arg/include64; then :
 
7546
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7547
elif test -d $arg/include; then :
 
7548
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7549
fi
 
7550
else
 
7551
  if test -d $arg/lib; then :
 
7552
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7553
fi
 
7554
             if test -d $arg/include; then :
 
7555
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7556
fi
 
7557
fi
 
7558
fi
 
7559
# $arg still unknown, look for "lib" and "include" anywhere...
 
7560
    if test "x$ga_arg_parse_ok" = xno; then :
 
7561
  case $arg in #(
 
7562
  *lib*) :
 
7563
    if test -d $arg; then :
 
7564
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
7565
fi ;; #(
 
7566
  *include*) :
 
7567
    if test -d $arg; then :
 
7568
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
7569
fi ;; #(
 
7570
  *) :
 
7571
     ;;
 
7572
esac
 
7573
fi
 
7574
# warn user that $arg fell through
 
7575
     if test "x$ga_arg_parse_ok" = xno; then :
 
7576
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapi not parsed" >&5
 
7577
$as_echo "$as_me: WARNING: $arg of with_lapi not parsed" >&2;}
 
7578
fi
 
7579
done
 
7580
fi
 
7581
if test "x$with_lapi" != xno && test "x$with_lapi" != x; then :
 
7582
  ga_armci_network=LAPI
 
7583
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
7584
fi
 
7585
 
 
7586
 
 
7587
 
 
7588
 
 
7589
 
 
7590
# Check whether --with-mpi-mt was given.
 
7591
if test "${with_mpi_mt+set}" = set; then :
 
7592
  withval=$with_mpi_mt;
 
7593
fi
 
7594
 
 
7595
 
 
7596
 
 
7597
if test "x$with_mpi_mt" != x; then :
 
7598
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7599
 
 
7600
fi
 
7601
 
 
7602
for arg in $with_mpi_mt ; do
 
7603
    case $arg in #(
 
7604
  yes) :
 
7605
     ;; #(
 
7606
  no) :
 
7607
     ;; #(
 
7608
  -l*) :
 
7609
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7610
  -L*) :
 
7611
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7612
  -WL*) :
 
7613
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7614
  -Wl*) :
 
7615
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7616
  -I*) :
 
7617
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7618
  *.a) :
 
7619
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7620
  *.so) :
 
7621
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7622
  *lib) :
 
7623
    if test -d $arg; then :
 
7624
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7625
else
 
7626
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7627
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7628
fi ;; #(
 
7629
  *lib/) :
 
7630
    if test -d $arg; then :
 
7631
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7632
else
 
7633
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7634
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7635
fi ;; #(
 
7636
  *lib64) :
 
7637
    if test -d $arg; then :
 
7638
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7639
else
 
7640
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7641
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7642
fi ;; #(
 
7643
  *lib64/) :
 
7644
    if test -d $arg; then :
 
7645
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7646
else
 
7647
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7648
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7649
fi ;; #(
 
7650
  *include) :
 
7651
    if test -d $arg; then :
 
7652
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7653
else
 
7654
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7655
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7656
fi ;; #(
 
7657
  *include/) :
 
7658
    if test -d $arg; then :
 
7659
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7660
else
 
7661
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7662
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7663
fi ;; #(
 
7664
  *include64) :
 
7665
    if test -d $arg; then :
 
7666
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7667
else
 
7668
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7669
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7670
fi ;; #(
 
7671
  *include64/) :
 
7672
    if test -d $arg; then :
 
7673
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7674
else
 
7675
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7676
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7677
fi ;; #(
 
7678
  -mkl*) :
 
7679
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7680
  *) :
 
7681
    ga_arg_parse_ok=no ;;
 
7682
esac
 
7683
# $arg didn't fit the most common cases
 
7684
# check for subdirectories e.g. lib,include
 
7685
    if test "x$ga_arg_parse_ok" = xno; then :
 
7686
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7687
  if test -d $arg/lib64; then :
 
7688
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7689
elif test -d $arg/lib; then :
 
7690
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7691
fi
 
7692
             if test -d $arg/include64; then :
 
7693
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7694
elif test -d $arg/include; then :
 
7695
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7696
fi
 
7697
else
 
7698
  if test -d $arg/lib; then :
 
7699
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7700
fi
 
7701
             if test -d $arg/include; then :
 
7702
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7703
fi
 
7704
fi
 
7705
fi
 
7706
# $arg still unknown, look for "lib" and "include" anywhere...
 
7707
    if test "x$ga_arg_parse_ok" = xno; then :
 
7708
  case $arg in #(
 
7709
  *lib*) :
 
7710
    if test -d $arg; then :
 
7711
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
7712
fi ;; #(
 
7713
  *include*) :
 
7714
    if test -d $arg; then :
 
7715
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
7716
fi ;; #(
 
7717
  *) :
 
7718
     ;;
 
7719
esac
 
7720
fi
 
7721
# warn user that $arg fell through
 
7722
     if test "x$ga_arg_parse_ok" = xno; then :
 
7723
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_mt not parsed" >&5
 
7724
$as_echo "$as_me: WARNING: $arg of with_mpi_mt not parsed" >&2;}
 
7725
fi
 
7726
done
 
7727
fi
 
7728
if test "x$with_mpi_mt" != xno && test "x$with_mpi_mt" != x; then :
 
7729
  ga_armci_network=MPI_MT
 
7730
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
7731
fi
 
7732
 
 
7733
 
 
7734
 
 
7735
 
 
7736
 
 
7737
# Check whether --with-mpi-spawn was given.
 
7738
if test "${with_mpi_spawn+set}" = set; then :
 
7739
  withval=$with_mpi_spawn;
 
7740
fi
 
7741
 
 
7742
 
 
7743
 
 
7744
if test "x$with_mpi_spawn" != x; then :
 
7745
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7746
 
 
7747
fi
 
7748
 
 
7749
for arg in $with_mpi_spawn ; do
 
7750
    case $arg in #(
 
7751
  yes) :
 
7752
     ;; #(
 
7753
  no) :
 
7754
     ;; #(
 
7755
  -l*) :
 
7756
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7757
  -L*) :
 
7758
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7759
  -WL*) :
 
7760
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7761
  -Wl*) :
 
7762
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7763
  -I*) :
 
7764
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7765
  *.a) :
 
7766
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7767
  *.so) :
 
7768
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7769
  *lib) :
 
7770
    if test -d $arg; then :
 
7771
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7772
else
 
7773
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7774
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7775
fi ;; #(
 
7776
  *lib/) :
 
7777
    if test -d $arg; then :
 
7778
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7779
else
 
7780
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7781
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7782
fi ;; #(
 
7783
  *lib64) :
 
7784
    if test -d $arg; then :
 
7785
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7786
else
 
7787
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7788
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7789
fi ;; #(
 
7790
  *lib64/) :
 
7791
    if test -d $arg; then :
 
7792
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7793
else
 
7794
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7795
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7796
fi ;; #(
 
7797
  *include) :
 
7798
    if test -d $arg; then :
 
7799
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7800
else
 
7801
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7802
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7803
fi ;; #(
 
7804
  *include/) :
 
7805
    if test -d $arg; then :
 
7806
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7807
else
 
7808
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7809
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7810
fi ;; #(
 
7811
  *include64) :
 
7812
    if test -d $arg; then :
 
7813
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7814
else
 
7815
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7816
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7817
fi ;; #(
 
7818
  *include64/) :
 
7819
    if test -d $arg; then :
 
7820
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7821
else
 
7822
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7823
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7824
fi ;; #(
 
7825
  -mkl*) :
 
7826
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7827
  *) :
 
7828
    ga_arg_parse_ok=no ;;
 
7829
esac
 
7830
# $arg didn't fit the most common cases
 
7831
# check for subdirectories e.g. lib,include
 
7832
    if test "x$ga_arg_parse_ok" = xno; then :
 
7833
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7834
  if test -d $arg/lib64; then :
 
7835
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7836
elif test -d $arg/lib; then :
 
7837
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7838
fi
 
7839
             if test -d $arg/include64; then :
 
7840
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7841
elif test -d $arg/include; then :
 
7842
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7843
fi
 
7844
else
 
7845
  if test -d $arg/lib; then :
 
7846
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7847
fi
 
7848
             if test -d $arg/include; then :
 
7849
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7850
fi
 
7851
fi
 
7852
fi
 
7853
# $arg still unknown, look for "lib" and "include" anywhere...
 
7854
    if test "x$ga_arg_parse_ok" = xno; then :
 
7855
  case $arg in #(
 
7856
  *lib*) :
 
7857
    if test -d $arg; then :
 
7858
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
7859
fi ;; #(
 
7860
  *include*) :
 
7861
    if test -d $arg; then :
 
7862
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
7863
fi ;; #(
 
7864
  *) :
 
7865
     ;;
 
7866
esac
 
7867
fi
 
7868
# warn user that $arg fell through
 
7869
     if test "x$ga_arg_parse_ok" = xno; then :
 
7870
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_spawn not parsed" >&5
 
7871
$as_echo "$as_me: WARNING: $arg of with_mpi_spawn not parsed" >&2;}
 
7872
fi
 
7873
done
 
7874
fi
 
7875
if test "x$with_mpi_spawn" != xno && test "x$with_mpi_spawn" != x; then :
 
7876
  ga_armci_network=MPI_SPAWN
 
7877
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
7878
fi
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
# Check whether --with-mpi-ts was given.
 
7885
if test "${with_mpi_ts+set}" = set; then :
 
7886
  withval=$with_mpi_ts;
 
7887
fi
 
7888
 
 
7889
 
 
7890
 
 
7891
if test "x$with_mpi_ts" != x; then :
 
7892
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
7893
 
 
7894
fi
 
7895
 
 
7896
for arg in $with_mpi_ts ; do
 
7897
    case $arg in #(
 
7898
  yes) :
 
7899
     ;; #(
 
7900
  no) :
 
7901
     ;; #(
 
7902
  -l*) :
 
7903
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7904
  -L*) :
 
7905
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7906
  -WL*) :
 
7907
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7908
  -Wl*) :
 
7909
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
7910
  -I*) :
 
7911
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
7912
  *.a) :
 
7913
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7914
  *.so) :
 
7915
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7916
  *lib) :
 
7917
    if test -d $arg; then :
 
7918
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7919
else
 
7920
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7921
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7922
fi ;; #(
 
7923
  *lib/) :
 
7924
    if test -d $arg; then :
 
7925
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7926
else
 
7927
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7928
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7929
fi ;; #(
 
7930
  *lib64) :
 
7931
    if test -d $arg; then :
 
7932
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7933
else
 
7934
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7935
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7936
fi ;; #(
 
7937
  *lib64/) :
 
7938
    if test -d $arg; then :
 
7939
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
7940
else
 
7941
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7942
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7943
fi ;; #(
 
7944
  *include) :
 
7945
    if test -d $arg; then :
 
7946
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7947
else
 
7948
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7949
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7950
fi ;; #(
 
7951
  *include/) :
 
7952
    if test -d $arg; then :
 
7953
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7954
else
 
7955
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7956
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7957
fi ;; #(
 
7958
  *include64) :
 
7959
    if test -d $arg; then :
 
7960
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7961
else
 
7962
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7963
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7964
fi ;; #(
 
7965
  *include64/) :
 
7966
    if test -d $arg; then :
 
7967
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
7968
else
 
7969
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
7970
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
7971
fi ;; #(
 
7972
  -mkl*) :
 
7973
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
7974
  *) :
 
7975
    ga_arg_parse_ok=no ;;
 
7976
esac
 
7977
# $arg didn't fit the most common cases
 
7978
# check for subdirectories e.g. lib,include
 
7979
    if test "x$ga_arg_parse_ok" = xno; then :
 
7980
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
7981
  if test -d $arg/lib64; then :
 
7982
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
7983
elif test -d $arg/lib; then :
 
7984
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7985
fi
 
7986
             if test -d $arg/include64; then :
 
7987
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
7988
elif test -d $arg/include; then :
 
7989
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7990
fi
 
7991
else
 
7992
  if test -d $arg/lib; then :
 
7993
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
7994
fi
 
7995
             if test -d $arg/include; then :
 
7996
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
7997
fi
 
7998
fi
 
7999
fi
 
8000
# $arg still unknown, look for "lib" and "include" anywhere...
 
8001
    if test "x$ga_arg_parse_ok" = xno; then :
 
8002
  case $arg in #(
 
8003
  *lib*) :
 
8004
    if test -d $arg; then :
 
8005
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
8006
fi ;; #(
 
8007
  *include*) :
 
8008
    if test -d $arg; then :
 
8009
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
8010
fi ;; #(
 
8011
  *) :
 
8012
     ;;
 
8013
esac
 
8014
fi
 
8015
# warn user that $arg fell through
 
8016
     if test "x$ga_arg_parse_ok" = xno; then :
 
8017
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi_ts not parsed" >&5
 
8018
$as_echo "$as_me: WARNING: $arg of with_mpi_ts not parsed" >&2;}
 
8019
fi
 
8020
done
 
8021
fi
 
8022
if test "x$with_mpi_ts" != xno && test "x$with_mpi_ts" != x; then :
 
8023
  ga_armci_network=MPI_TS
 
8024
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
8025
fi
 
8026
 
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
# Check whether --with-ofa was given.
 
8032
if test "${with_ofa+set}" = set; then :
 
8033
  withval=$with_ofa;
 
8034
fi
 
8035
 
 
8036
 
 
8037
 
 
8038
if test "x$with_ofa" != x; then :
 
8039
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
8040
 
 
8041
fi
 
8042
 
 
8043
for arg in $with_ofa ; do
 
8044
    case $arg in #(
 
8045
  yes) :
 
8046
     ;; #(
 
8047
  no) :
 
8048
     ;; #(
 
8049
  -l*) :
 
8050
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8051
  -L*) :
 
8052
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8053
  -WL*) :
 
8054
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8055
  -Wl*) :
 
8056
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8057
  -I*) :
 
8058
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
8059
  *.a) :
 
8060
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8061
  *.so) :
 
8062
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8063
  *lib) :
 
8064
    if test -d $arg; then :
 
8065
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8066
else
 
8067
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8068
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8069
fi ;; #(
 
8070
  *lib/) :
 
8071
    if test -d $arg; then :
 
8072
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8073
else
 
8074
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8075
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8076
fi ;; #(
 
8077
  *lib64) :
 
8078
    if test -d $arg; then :
 
8079
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8080
else
 
8081
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8082
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8083
fi ;; #(
 
8084
  *lib64/) :
 
8085
    if test -d $arg; then :
 
8086
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8087
else
 
8088
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8089
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8090
fi ;; #(
 
8091
  *include) :
 
8092
    if test -d $arg; then :
 
8093
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8094
else
 
8095
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8096
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8097
fi ;; #(
 
8098
  *include/) :
 
8099
    if test -d $arg; then :
 
8100
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8101
else
 
8102
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8103
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8104
fi ;; #(
 
8105
  *include64) :
 
8106
    if test -d $arg; then :
 
8107
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8108
else
 
8109
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8110
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8111
fi ;; #(
 
8112
  *include64/) :
 
8113
    if test -d $arg; then :
 
8114
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8115
else
 
8116
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8117
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8118
fi ;; #(
 
8119
  -mkl*) :
 
8120
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8121
  *) :
 
8122
    ga_arg_parse_ok=no ;;
 
8123
esac
 
8124
# $arg didn't fit the most common cases
 
8125
# check for subdirectories e.g. lib,include
 
8126
    if test "x$ga_arg_parse_ok" = xno; then :
 
8127
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
8128
  if test -d $arg/lib64; then :
 
8129
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
8130
elif test -d $arg/lib; then :
 
8131
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8132
fi
 
8133
             if test -d $arg/include64; then :
 
8134
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
8135
elif test -d $arg/include; then :
 
8136
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8137
fi
 
8138
else
 
8139
  if test -d $arg/lib; then :
 
8140
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8141
fi
 
8142
             if test -d $arg/include; then :
 
8143
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8144
fi
 
8145
fi
 
8146
fi
 
8147
# $arg still unknown, look for "lib" and "include" anywhere...
 
8148
    if test "x$ga_arg_parse_ok" = xno; then :
 
8149
  case $arg in #(
 
8150
  *lib*) :
 
8151
    if test -d $arg; then :
 
8152
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
8153
fi ;; #(
 
8154
  *include*) :
 
8155
    if test -d $arg; then :
 
8156
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
8157
fi ;; #(
 
8158
  *) :
 
8159
     ;;
 
8160
esac
 
8161
fi
 
8162
# warn user that $arg fell through
 
8163
     if test "x$ga_arg_parse_ok" = xno; then :
 
8164
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ofa not parsed" >&5
 
8165
$as_echo "$as_me: WARNING: $arg of with_ofa not parsed" >&2;}
 
8166
fi
 
8167
done
 
8168
fi
 
8169
if test "x$with_ofa" != xno && test "x$with_ofa" != x; then :
 
8170
  ga_armci_network=OFA
 
8171
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
8172
fi
 
8173
 
 
8174
 
 
8175
 
 
8176
 
 
8177
 
 
8178
# Check whether --with-openib was given.
 
8179
if test "${with_openib+set}" = set; then :
 
8180
  withval=$with_openib;
 
8181
fi
 
8182
 
 
8183
 
 
8184
 
 
8185
if test "x$with_openib" != x; then :
 
8186
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
8187
 
 
8188
fi
 
8189
 
 
8190
for arg in $with_openib ; do
 
8191
    case $arg in #(
 
8192
  yes) :
 
8193
     ;; #(
 
8194
  no) :
 
8195
     ;; #(
 
8196
  -l*) :
 
8197
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8198
  -L*) :
 
8199
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8200
  -WL*) :
 
8201
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8202
  -Wl*) :
 
8203
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8204
  -I*) :
 
8205
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
8206
  *.a) :
 
8207
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8208
  *.so) :
 
8209
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8210
  *lib) :
 
8211
    if test -d $arg; then :
 
8212
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8213
else
 
8214
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8215
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8216
fi ;; #(
 
8217
  *lib/) :
 
8218
    if test -d $arg; then :
 
8219
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8220
else
 
8221
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8222
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8223
fi ;; #(
 
8224
  *lib64) :
 
8225
    if test -d $arg; then :
 
8226
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8227
else
 
8228
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8229
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8230
fi ;; #(
 
8231
  *lib64/) :
 
8232
    if test -d $arg; then :
 
8233
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8234
else
 
8235
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8236
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8237
fi ;; #(
 
8238
  *include) :
 
8239
    if test -d $arg; then :
 
8240
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8241
else
 
8242
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8243
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8244
fi ;; #(
 
8245
  *include/) :
 
8246
    if test -d $arg; then :
 
8247
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8248
else
 
8249
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8250
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8251
fi ;; #(
 
8252
  *include64) :
 
8253
    if test -d $arg; then :
 
8254
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8255
else
 
8256
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8257
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8258
fi ;; #(
 
8259
  *include64/) :
 
8260
    if test -d $arg; then :
 
8261
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8262
else
 
8263
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8264
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8265
fi ;; #(
 
8266
  -mkl*) :
 
8267
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8268
  *) :
 
8269
    ga_arg_parse_ok=no ;;
 
8270
esac
 
8271
# $arg didn't fit the most common cases
 
8272
# check for subdirectories e.g. lib,include
 
8273
    if test "x$ga_arg_parse_ok" = xno; then :
 
8274
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
8275
  if test -d $arg/lib64; then :
 
8276
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
8277
elif test -d $arg/lib; then :
 
8278
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8279
fi
 
8280
             if test -d $arg/include64; then :
 
8281
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
8282
elif test -d $arg/include; then :
 
8283
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8284
fi
 
8285
else
 
8286
  if test -d $arg/lib; then :
 
8287
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8288
fi
 
8289
             if test -d $arg/include; then :
 
8290
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8291
fi
 
8292
fi
 
8293
fi
 
8294
# $arg still unknown, look for "lib" and "include" anywhere...
 
8295
    if test "x$ga_arg_parse_ok" = xno; then :
 
8296
  case $arg in #(
 
8297
  *lib*) :
 
8298
    if test -d $arg; then :
 
8299
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
8300
fi ;; #(
 
8301
  *include*) :
 
8302
    if test -d $arg; then :
 
8303
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
8304
fi ;; #(
 
8305
  *) :
 
8306
     ;;
 
8307
esac
 
8308
fi
 
8309
# warn user that $arg fell through
 
8310
     if test "x$ga_arg_parse_ok" = xno; then :
 
8311
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_openib not parsed" >&5
 
8312
$as_echo "$as_me: WARNING: $arg of with_openib not parsed" >&2;}
 
8313
fi
 
8314
done
 
8315
fi
 
8316
if test "x$with_openib" != xno && test "x$with_openib" != x; then :
 
8317
  ga_armci_network=OPENIB
 
8318
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
8319
fi
 
8320
 
 
8321
 
 
8322
 
 
8323
 
 
8324
 
 
8325
# Check whether --with-portals was given.
 
8326
if test "${with_portals+set}" = set; then :
 
8327
  withval=$with_portals;
 
8328
fi
 
8329
 
 
8330
 
 
8331
 
 
8332
if test "x$with_portals" != x; then :
 
8333
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
8334
 
 
8335
fi
 
8336
 
 
8337
for arg in $with_portals ; do
 
8338
    case $arg in #(
 
8339
  yes) :
 
8340
     ;; #(
 
8341
  no) :
 
8342
     ;; #(
 
8343
  -l*) :
 
8344
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8345
  -L*) :
 
8346
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8347
  -WL*) :
 
8348
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8349
  -Wl*) :
 
8350
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8351
  -I*) :
 
8352
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
8353
  *.a) :
 
8354
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8355
  *.so) :
 
8356
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8357
  *lib) :
 
8358
    if test -d $arg; then :
 
8359
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8360
else
 
8361
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8362
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8363
fi ;; #(
 
8364
  *lib/) :
 
8365
    if test -d $arg; then :
 
8366
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8367
else
 
8368
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8369
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8370
fi ;; #(
 
8371
  *lib64) :
 
8372
    if test -d $arg; then :
 
8373
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8374
else
 
8375
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8376
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8377
fi ;; #(
 
8378
  *lib64/) :
 
8379
    if test -d $arg; then :
 
8380
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8381
else
 
8382
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8383
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8384
fi ;; #(
 
8385
  *include) :
 
8386
    if test -d $arg; then :
 
8387
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8388
else
 
8389
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8390
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8391
fi ;; #(
 
8392
  *include/) :
 
8393
    if test -d $arg; then :
 
8394
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8395
else
 
8396
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8397
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8398
fi ;; #(
 
8399
  *include64) :
 
8400
    if test -d $arg; then :
 
8401
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8402
else
 
8403
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8404
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8405
fi ;; #(
 
8406
  *include64/) :
 
8407
    if test -d $arg; then :
 
8408
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8409
else
 
8410
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8411
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8412
fi ;; #(
 
8413
  -mkl*) :
 
8414
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8415
  *) :
 
8416
    ga_arg_parse_ok=no ;;
 
8417
esac
 
8418
# $arg didn't fit the most common cases
 
8419
# check for subdirectories e.g. lib,include
 
8420
    if test "x$ga_arg_parse_ok" = xno; then :
 
8421
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
8422
  if test -d $arg/lib64; then :
 
8423
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
8424
elif test -d $arg/lib; then :
 
8425
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8426
fi
 
8427
             if test -d $arg/include64; then :
 
8428
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
8429
elif test -d $arg/include; then :
 
8430
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8431
fi
 
8432
else
 
8433
  if test -d $arg/lib; then :
 
8434
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8435
fi
 
8436
             if test -d $arg/include; then :
 
8437
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8438
fi
 
8439
fi
 
8440
fi
 
8441
# $arg still unknown, look for "lib" and "include" anywhere...
 
8442
    if test "x$ga_arg_parse_ok" = xno; then :
 
8443
  case $arg in #(
 
8444
  *lib*) :
 
8445
    if test -d $arg; then :
 
8446
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
8447
fi ;; #(
 
8448
  *include*) :
 
8449
    if test -d $arg; then :
 
8450
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
8451
fi ;; #(
 
8452
  *) :
 
8453
     ;;
 
8454
esac
 
8455
fi
 
8456
# warn user that $arg fell through
 
8457
     if test "x$ga_arg_parse_ok" = xno; then :
 
8458
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_portals not parsed" >&5
 
8459
$as_echo "$as_me: WARNING: $arg of with_portals not parsed" >&2;}
 
8460
fi
 
8461
done
 
8462
fi
 
8463
if test "x$with_portals" != xno && test "x$with_portals" != x; then :
 
8464
  ga_armci_network=PORTALS
 
8465
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
8466
fi
 
8467
 
 
8468
 
 
8469
 
 
8470
 
 
8471
 
 
8472
# Check whether --with-sockets was given.
 
8473
if test "${with_sockets+set}" = set; then :
 
8474
  withval=$with_sockets;
 
8475
fi
 
8476
 
 
8477
 
 
8478
 
 
8479
if test "x$with_sockets" != x; then :
 
8480
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
 
8481
 
 
8482
fi
 
8483
 
 
8484
for arg in $with_sockets ; do
 
8485
    case $arg in #(
 
8486
  yes) :
 
8487
     ;; #(
 
8488
  no) :
 
8489
     ;; #(
 
8490
  -l*) :
 
8491
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8492
  -L*) :
 
8493
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8494
  -WL*) :
 
8495
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8496
  -Wl*) :
 
8497
    ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS $arg" ;; #(
 
8498
  -I*) :
 
8499
    ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS $arg" ;; #(
 
8500
  *.a) :
 
8501
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8502
  *.so) :
 
8503
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8504
  *lib) :
 
8505
    if test -d $arg; then :
 
8506
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8507
else
 
8508
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8509
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8510
fi ;; #(
 
8511
  *lib/) :
 
8512
    if test -d $arg; then :
 
8513
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8514
else
 
8515
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8516
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8517
fi ;; #(
 
8518
  *lib64) :
 
8519
    if test -d $arg; then :
 
8520
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8521
else
 
8522
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8523
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8524
fi ;; #(
 
8525
  *lib64/) :
 
8526
    if test -d $arg; then :
 
8527
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"
 
8528
else
 
8529
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8530
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8531
fi ;; #(
 
8532
  *include) :
 
8533
    if test -d $arg; then :
 
8534
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8535
else
 
8536
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8537
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8538
fi ;; #(
 
8539
  *include/) :
 
8540
    if test -d $arg; then :
 
8541
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8542
else
 
8543
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8544
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8545
fi ;; #(
 
8546
  *include64) :
 
8547
    if test -d $arg; then :
 
8548
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8549
else
 
8550
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8551
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8552
fi ;; #(
 
8553
  *include64/) :
 
8554
    if test -d $arg; then :
 
8555
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"
 
8556
else
 
8557
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8558
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8559
fi ;; #(
 
8560
  -mkl*) :
 
8561
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $arg" ;; #(
 
8562
  *) :
 
8563
    ga_arg_parse_ok=no ;;
 
8564
esac
 
8565
# $arg didn't fit the most common cases
 
8566
# check for subdirectories e.g. lib,include
 
8567
    if test "x$ga_arg_parse_ok" = xno; then :
 
8568
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
 
8569
  if test -d $arg/lib64; then :
 
8570
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
 
8571
elif test -d $arg/lib; then :
 
8572
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8573
fi
 
8574
             if test -d $arg/include64; then :
 
8575
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
 
8576
elif test -d $arg/include; then :
 
8577
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8578
fi
 
8579
else
 
8580
  if test -d $arg/lib; then :
 
8581
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
 
8582
fi
 
8583
             if test -d $arg/include; then :
 
8584
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
 
8585
fi
 
8586
fi
 
8587
fi
 
8588
# $arg still unknown, look for "lib" and "include" anywhere...
 
8589
    if test "x$ga_arg_parse_ok" = xno; then :
 
8590
  case $arg in #(
 
8591
  *lib*) :
 
8592
    if test -d $arg; then :
 
8593
  ARMCI_NETWORK_LDFLAGS="$ARMCI_NETWORK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
 
8594
fi ;; #(
 
8595
  *include*) :
 
8596
    if test -d $arg; then :
 
8597
  ARMCI_NETWORK_CPPFLAGS="$ARMCI_NETWORK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
 
8598
fi ;; #(
 
8599
  *) :
 
8600
     ;;
 
8601
esac
 
8602
fi
 
8603
# warn user that $arg fell through
 
8604
     if test "x$ga_arg_parse_ok" = xno; then :
 
8605
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_sockets not parsed" >&5
 
8606
$as_echo "$as_me: WARNING: $arg of with_sockets not parsed" >&2;}
 
8607
fi
 
8608
done
 
8609
fi
 
8610
if test "x$with_sockets" != xno && test "x$with_sockets" != x; then :
 
8611
  ga_armci_network=SOCKETS
 
8612
     as_fn_arith $armci_network_count + 1 && armci_network_count=$as_val
 
8613
fi
 
8614
 
 
8615
 
 
8616
 
 
8617
# Temporarily add ARMCI_NETWORK_CPPFLAGS to CPPFLAGS.
 
8618
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $ARMCI_NETWORK_CPPFLAGS"
 
8619
# Temporarily add ARMCI_NETWORK_LDFLAGS to LDFLAGS.
 
8620
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $ARMCI_NETWORK_LDFLAGS"
 
8621
# Temporarily add ARMCI_NETWORK_LIBS to LIBS.
 
8622
ga_save_LIBS="$LIBS"; LIBS="$ARMCI_NETWORK_LIBS $LIBS"
 
8623
if test "x$enable_autodetect" = xyes; then :
 
8624
  { $as_echo "$as_me:${as_lineno-$LINENO}: searching for ARMCI_NETWORK..." >&5
 
8625
$as_echo "$as_me: searching for ARMCI_NETWORK..." >&6;}
 
8626
     if test "x$ga_armci_network" = x && test "x$with_bgml" != xno; then :
 
8627
 
 
8628
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for BGML..." >&5
 
8629
$as_echo "$as_me: searching for BGML..." >&6;}
 
8630
happy=yes
 
8631
if test "x$happy" = xyes; then :
 
8632
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing BGLML_memcpy" >&5
 
8633
$as_echo_n "checking for library containing BGLML_memcpy... " >&6; }
 
8634
if ${ac_cv_search_BGLML_memcpy+:} false; then :
 
8635
  $as_echo_n "(cached) " >&6
 
8636
else
 
8637
  ac_func_search_save_LIBS=$LIBS
 
8638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8639
/* end confdefs.h.  */
 
8640
 
 
8641
/* Override any GCC internal prototype to avoid an error.
 
8642
   Use char because int might match the return type of a GCC
 
8643
   builtin and then its argument prototype would still apply.  */
 
8644
#ifdef __cplusplus
 
8645
extern "C"
 
8646
#endif
 
8647
char BGLML_memcpy ();
 
8648
int
 
8649
main ()
 
8650
{
 
8651
return BGLML_memcpy ();
 
8652
  ;
 
8653
  return 0;
 
8654
}
 
8655
_ACEOF
 
8656
for ac_lib in '' msglayer.rts; do
 
8657
  if test -z "$ac_lib"; then
 
8658
    ac_res="none required"
 
8659
  else
 
8660
    ac_res=-l$ac_lib
 
8661
    LIBS="-l$ac_lib -lrts.rts -ldevices.rts $ac_func_search_save_LIBS"
 
8662
  fi
 
8663
  if ac_fn_c_try_link "$LINENO"; then :
 
8664
  ac_cv_search_BGLML_memcpy=$ac_res
 
8665
fi
 
8666
rm -f core conftest.err conftest.$ac_objext \
 
8667
    conftest$ac_exeext
 
8668
  if ${ac_cv_search_BGLML_memcpy+:} false; then :
 
8669
  break
 
8670
fi
 
8671
done
 
8672
if ${ac_cv_search_BGLML_memcpy+:} false; then :
 
8673
 
 
8674
else
 
8675
  ac_cv_search_BGLML_memcpy=no
 
8676
fi
 
8677
rm conftest.$ac_ext
 
8678
LIBS=$ac_func_search_save_LIBS
 
8679
fi
 
8680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_BGLML_memcpy" >&5
 
8681
$as_echo "$ac_cv_search_BGLML_memcpy" >&6; }
 
8682
ac_res=$ac_cv_search_BGLML_memcpy
 
8683
if test "$ac_res" != no; then :
 
8684
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8685
 
 
8686
else
 
8687
  happy=no
 
8688
fi
 
8689
 
 
8690
     case $ac_cv_search_BGLML_memcpy in #(
 
8691
  "none required") :
 
8692
     ;; #(
 
8693
  no) :
 
8694
     ;; #(
 
8695
  *) :
 
8696
    # add msglayer.rts to ARMCI_NETWORK_LIBS if not there
 
8697
         case $ARMCI_NETWORK_LIBS in #(
 
8698
  *msglayer.rts*) :
 
8699
     ;; #(
 
8700
  *) :
 
8701
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lmsglayer.rts" ;;
 
8702
esac
 
8703
         # add extra lib rts.rts to ARMCI_NETWORK_LIBS if not there
 
8704
         case $ARMCI_NETWORK_LIBS in #(
 
8705
  *rts.rts*) :
 
8706
     ;; #(
 
8707
  *) :
 
8708
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lrts.rts" ;;
 
8709
esac
 
8710
         # add extra lib devices.rts to ARMCI_NETWORK_LIBS if not there
 
8711
         case $ARMCI_NETWORK_LIBS in #(
 
8712
  *devices.rts*) :
 
8713
     ;; #(
 
8714
  *) :
 
8715
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -ldevices.rts" ;;
 
8716
esac ;;
 
8717
esac
 
8718
fi
 
8719
if test "x$happy" = xyes; then :
 
8720
  ga_armci_network=BGML; with_bgml=yes;
 
8721
fi
 
8722
 
 
8723
fi
 
8724
     if test "x$ga_armci_network" = x && test "x$with_cray_shmem" != xno; then :
 
8725
 
 
8726
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for CRAY_SHMEM..." >&5
 
8727
$as_echo "$as_me: searching for CRAY_SHMEM..." >&6;}
 
8728
happy=yes
 
8729
if test "x$happy" = xyes; then :
 
8730
  ac_fn_c_check_header_mongrel "$LINENO" "mpp/shmem.h" "ac_cv_header_mpp_shmem_h" "$ac_includes_default"
 
8731
if test "x$ac_cv_header_mpp_shmem_h" = xyes; then :
 
8732
 
 
8733
else
 
8734
  ac_fn_c_check_header_mongrel "$LINENO" "shmem.h" "ac_cv_header_shmem_h" "$ac_includes_default"
 
8735
if test "x$ac_cv_header_shmem_h" = xyes; then :
 
8736
 
 
8737
else
 
8738
  happy=no
 
8739
fi
 
8740
 
 
8741
 
 
8742
fi
 
8743
 
 
8744
 
 
8745
fi
 
8746
if test "x$happy" = xyes; then :
 
8747
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmem_init" >&5
 
8748
$as_echo_n "checking for library containing shmem_init... " >&6; }
 
8749
if ${ac_cv_search_shmem_init+:} false; then :
 
8750
  $as_echo_n "(cached) " >&6
 
8751
else
 
8752
  ac_func_search_save_LIBS=$LIBS
 
8753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8754
/* end confdefs.h.  */
 
8755
 
 
8756
/* Override any GCC internal prototype to avoid an error.
 
8757
   Use char because int might match the return type of a GCC
 
8758
   builtin and then its argument prototype would still apply.  */
 
8759
#ifdef __cplusplus
 
8760
extern "C"
 
8761
#endif
 
8762
char shmem_init ();
 
8763
int
 
8764
main ()
 
8765
{
 
8766
return shmem_init ();
 
8767
  ;
 
8768
  return 0;
 
8769
}
 
8770
_ACEOF
 
8771
for ac_lib in '' sma; do
 
8772
  if test -z "$ac_lib"; then
 
8773
    ac_res="none required"
 
8774
  else
 
8775
    ac_res=-l$ac_lib
 
8776
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8777
  fi
 
8778
  if ac_fn_c_try_link "$LINENO"; then :
 
8779
  ac_cv_search_shmem_init=$ac_res
 
8780
fi
 
8781
rm -f core conftest.err conftest.$ac_objext \
 
8782
    conftest$ac_exeext
 
8783
  if ${ac_cv_search_shmem_init+:} false; then :
 
8784
  break
 
8785
fi
 
8786
done
 
8787
if ${ac_cv_search_shmem_init+:} false; then :
 
8788
 
 
8789
else
 
8790
  ac_cv_search_shmem_init=no
 
8791
fi
 
8792
rm conftest.$ac_ext
 
8793
LIBS=$ac_func_search_save_LIBS
 
8794
fi
 
8795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmem_init" >&5
 
8796
$as_echo "$ac_cv_search_shmem_init" >&6; }
 
8797
ac_res=$ac_cv_search_shmem_init
 
8798
if test "$ac_res" != no; then :
 
8799
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8800
 
 
8801
else
 
8802
  happy=no
 
8803
fi
 
8804
 
 
8805
     case $ac_cv_search_shmem_init in #(
 
8806
  "none required") :
 
8807
     ;; #(
 
8808
  no) :
 
8809
     ;; #(
 
8810
  *) :
 
8811
    # add sma to ARMCI_NETWORK_LIBS if not there
 
8812
         case $ARMCI_NETWORK_LIBS in #(
 
8813
  *sma*) :
 
8814
     ;; #(
 
8815
  *) :
 
8816
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lsma" ;;
 
8817
esac ;;
 
8818
esac
 
8819
fi
 
8820
if test "x$happy" = xyes; then :
 
8821
  ga_armci_network=CRAY_SHMEM; with_cray_shmem=yes;
 
8822
fi
 
8823
 
 
8824
fi
 
8825
     if test "x$ga_armci_network" = x && test "x$with_dcmf" != xno; then :
 
8826
 
 
8827
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for DCMF..." >&5
 
8828
$as_echo "$as_me: searching for DCMF..." >&6;}
 
8829
happy=yes
 
8830
if test "x$happy" = xyes; then :
 
8831
  ac_fn_c_check_header_mongrel "$LINENO" "dcmf.h" "ac_cv_header_dcmf_h" "$ac_includes_default"
 
8832
if test "x$ac_cv_header_dcmf_h" = xyes; then :
 
8833
 
 
8834
else
 
8835
  happy=no
 
8836
fi
 
8837
 
 
8838
 
 
8839
fi
 
8840
if test "x$happy" = xyes; then :
 
8841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DCMF_Messager_initialize" >&5
 
8842
$as_echo_n "checking for library containing DCMF_Messager_initialize... " >&6; }
 
8843
if ${ac_cv_search_DCMF_Messager_initialize+:} false; then :
 
8844
  $as_echo_n "(cached) " >&6
 
8845
else
 
8846
  ac_func_search_save_LIBS=$LIBS
 
8847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8848
/* end confdefs.h.  */
 
8849
 
 
8850
/* Override any GCC internal prototype to avoid an error.
 
8851
   Use char because int might match the return type of a GCC
 
8852
   builtin and then its argument prototype would still apply.  */
 
8853
#ifdef __cplusplus
 
8854
extern "C"
 
8855
#endif
 
8856
char DCMF_Messager_initialize ();
 
8857
int
 
8858
main ()
 
8859
{
 
8860
return DCMF_Messager_initialize ();
 
8861
  ;
 
8862
  return 0;
 
8863
}
 
8864
_ACEOF
 
8865
for ac_lib in '' dcmf.cnk; do
 
8866
  if test -z "$ac_lib"; then
 
8867
    ac_res="none required"
 
8868
  else
 
8869
    ac_res=-l$ac_lib
 
8870
    LIBS="-l$ac_lib -ldcmfcoll.cnk -lSPI.cna -lrt $ac_func_search_save_LIBS"
 
8871
  fi
 
8872
  if ac_fn_c_try_link "$LINENO"; then :
 
8873
  ac_cv_search_DCMF_Messager_initialize=$ac_res
 
8874
fi
 
8875
rm -f core conftest.err conftest.$ac_objext \
 
8876
    conftest$ac_exeext
 
8877
  if ${ac_cv_search_DCMF_Messager_initialize+:} false; then :
 
8878
  break
 
8879
fi
 
8880
done
 
8881
if ${ac_cv_search_DCMF_Messager_initialize+:} false; then :
 
8882
 
 
8883
else
 
8884
  ac_cv_search_DCMF_Messager_initialize=no
 
8885
fi
 
8886
rm conftest.$ac_ext
 
8887
LIBS=$ac_func_search_save_LIBS
 
8888
fi
 
8889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DCMF_Messager_initialize" >&5
 
8890
$as_echo "$ac_cv_search_DCMF_Messager_initialize" >&6; }
 
8891
ac_res=$ac_cv_search_DCMF_Messager_initialize
 
8892
if test "$ac_res" != no; then :
 
8893
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8894
 
 
8895
else
 
8896
  happy=no
 
8897
fi
 
8898
 
 
8899
     case $ac_cv_search_DCMF_Messager_initialize in #(
 
8900
  "none required") :
 
8901
     ;; #(
 
8902
  no) :
 
8903
     ;; #(
 
8904
  *) :
 
8905
    # add dcmf.cnk to ARMCI_NETWORK_LIBS if not there
 
8906
             case $ARMCI_NETWORK_LIBS in #(
 
8907
  *dcmf.cnk*) :
 
8908
     ;; #(
 
8909
  *) :
 
8910
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -ldcmf.cnk" ;;
 
8911
esac
 
8912
             # add extra lib dcmfcoll.cnk if not there
 
8913
             case $ARMCI_NETWORK_LIBS in #(
 
8914
  *dcmfcoll.cnk*) :
 
8915
     ;; #(
 
8916
  *) :
 
8917
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -ldcmfcoll.cnk" ;;
 
8918
esac
 
8919
             # add extra lib SPI.cna if not there
 
8920
             case $ARMCI_NETWORK_LIBS in #(
 
8921
  *SPI.cna*) :
 
8922
     ;; #(
 
8923
  *) :
 
8924
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lSPI.cna" ;;
 
8925
esac
 
8926
             # add extra lib rt if not there
 
8927
             case $ARMCI_NETWORK_LIBS in #(
 
8928
  *rt*) :
 
8929
     ;; #(
 
8930
  *) :
 
8931
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lrt" ;;
 
8932
esac ;;
 
8933
esac
 
8934
fi
 
8935
if test "x$happy" = xyes; then :
 
8936
  ga_armci_network=DCMF; with_dcmf=yes;
 
8937
fi
 
8938
 
 
8939
fi
 
8940
     if test "x$ga_armci_network" = x && test "x$with_lapi" != xno; then :
 
8941
 
 
8942
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for LAPI..." >&5
 
8943
$as_echo "$as_me: searching for LAPI..." >&6;}
 
8944
happy=yes
 
8945
if test "x$happy" = xyes; then :
 
8946
  ac_fn_c_check_header_mongrel "$LINENO" "lapi.h" "ac_cv_header_lapi_h" "$ac_includes_default"
 
8947
if test "x$ac_cv_header_lapi_h" = xyes; then :
 
8948
 
 
8949
else
 
8950
  happy=no
 
8951
fi
 
8952
 
 
8953
 
 
8954
fi
 
8955
if test "x$happy" = xyes; then :
 
8956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing LAPI_Init" >&5
 
8957
$as_echo_n "checking for library containing LAPI_Init... " >&6; }
 
8958
if ${ac_cv_search_LAPI_Init+:} false; then :
 
8959
  $as_echo_n "(cached) " >&6
 
8960
else
 
8961
  ac_func_search_save_LIBS=$LIBS
 
8962
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8963
/* end confdefs.h.  */
 
8964
 
 
8965
/* Override any GCC internal prototype to avoid an error.
 
8966
   Use char because int might match the return type of a GCC
 
8967
   builtin and then its argument prototype would still apply.  */
 
8968
#ifdef __cplusplus
 
8969
extern "C"
 
8970
#endif
 
8971
char LAPI_Init ();
 
8972
int
 
8973
main ()
 
8974
{
 
8975
return LAPI_Init ();
 
8976
  ;
 
8977
  return 0;
 
8978
}
 
8979
_ACEOF
 
8980
for ac_lib in '' lapi_r lapi; do
 
8981
  if test -z "$ac_lib"; then
 
8982
    ac_res="none required"
 
8983
  else
 
8984
    ac_res=-l$ac_lib
 
8985
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8986
  fi
 
8987
  if ac_fn_c_try_link "$LINENO"; then :
 
8988
  ac_cv_search_LAPI_Init=$ac_res
 
8989
fi
 
8990
rm -f core conftest.err conftest.$ac_objext \
 
8991
    conftest$ac_exeext
 
8992
  if ${ac_cv_search_LAPI_Init+:} false; then :
 
8993
  break
 
8994
fi
 
8995
done
 
8996
if ${ac_cv_search_LAPI_Init+:} false; then :
 
8997
 
 
8998
else
 
8999
  ac_cv_search_LAPI_Init=no
 
9000
fi
 
9001
rm conftest.$ac_ext
 
9002
LIBS=$ac_func_search_save_LIBS
 
9003
fi
 
9004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_LAPI_Init" >&5
 
9005
$as_echo "$ac_cv_search_LAPI_Init" >&6; }
 
9006
ac_res=$ac_cv_search_LAPI_Init
 
9007
if test "$ac_res" != no; then :
 
9008
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9009
 
 
9010
else
 
9011
  happy=no
 
9012
fi
 
9013
 
 
9014
     case $ac_cv_search_LAPI_Init in #(
 
9015
  "none required") :
 
9016
     ;; #(
 
9017
  no) :
 
9018
     ;; #(
 
9019
  *) :
 
9020
    # add missing lib to ARMCI_NETWORK_LIBS if not there
 
9021
             case $ARMCI_NETWORK_LIBS in #(
 
9022
  *$ac_cv_search_LAPI_Init*) :
 
9023
     ;; #(
 
9024
  *) :
 
9025
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_LAPI_Init" ;;
 
9026
esac ;;
 
9027
esac
 
9028
fi
 
9029
if test "x$happy" = xyes; then :
 
9030
  ga_armci_network=LAPI; with_lapi=yes;
 
9031
fi
 
9032
 
 
9033
fi
 
9034
     if test "x$ga_armci_network" = x && test "x$with_ofa" != xno; then :
 
9035
 
 
9036
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for OFA..." >&5
 
9037
$as_echo "$as_me: searching for OFA..." >&6;}
 
9038
happy=yes
 
9039
if test "x$happy" = xyes; then :
 
9040
  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
 
9041
if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
 
9042
 
 
9043
else
 
9044
  happy=no
 
9045
fi
 
9046
 
 
9047
 
 
9048
fi
 
9049
if test "x$happy" = xyes; then :
 
9050
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5
 
9051
$as_echo_n "checking for library containing ibv_open_device... " >&6; }
 
9052
if ${ac_cv_search_ibv_open_device+:} false; then :
 
9053
  $as_echo_n "(cached) " >&6
 
9054
else
 
9055
  ac_func_search_save_LIBS=$LIBS
 
9056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9057
/* end confdefs.h.  */
 
9058
 
 
9059
/* Override any GCC internal prototype to avoid an error.
 
9060
   Use char because int might match the return type of a GCC
 
9061
   builtin and then its argument prototype would still apply.  */
 
9062
#ifdef __cplusplus
 
9063
extern "C"
 
9064
#endif
 
9065
char ibv_open_device ();
 
9066
int
 
9067
main ()
 
9068
{
 
9069
return ibv_open_device ();
 
9070
  ;
 
9071
  return 0;
 
9072
}
 
9073
_ACEOF
 
9074
for ac_lib in '' ibverbs; do
 
9075
  if test -z "$ac_lib"; then
 
9076
    ac_res="none required"
 
9077
  else
 
9078
    ac_res=-l$ac_lib
 
9079
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9080
  fi
 
9081
  if ac_fn_c_try_link "$LINENO"; then :
 
9082
  ac_cv_search_ibv_open_device=$ac_res
 
9083
fi
 
9084
rm -f core conftest.err conftest.$ac_objext \
 
9085
    conftest$ac_exeext
 
9086
  if ${ac_cv_search_ibv_open_device+:} false; then :
 
9087
  break
 
9088
fi
 
9089
done
 
9090
if ${ac_cv_search_ibv_open_device+:} false; then :
 
9091
 
 
9092
else
 
9093
  ac_cv_search_ibv_open_device=no
 
9094
fi
 
9095
rm conftest.$ac_ext
 
9096
LIBS=$ac_func_search_save_LIBS
 
9097
fi
 
9098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5
 
9099
$as_echo "$ac_cv_search_ibv_open_device" >&6; }
 
9100
ac_res=$ac_cv_search_ibv_open_device
 
9101
if test "$ac_res" != no; then :
 
9102
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9103
 
 
9104
else
 
9105
  happy=no
 
9106
fi
 
9107
 
 
9108
     case $ac_cv_search_ibv_open_device in #(
 
9109
  "none required") :
 
9110
     ;; #(
 
9111
  no) :
 
9112
     ;; #(
 
9113
  *) :
 
9114
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_ibv_open_device" ;;
 
9115
esac
 
9116
fi
 
9117
if test "x$happy" = xyes; then :
 
9118
  ga_armci_network=OFA; with_ofa=yes;
 
9119
fi
 
9120
 
 
9121
fi
 
9122
     if test "x$ga_armci_network" = x && test "x$with_openib" != xno; then :
 
9123
 
 
9124
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for OPENIB..." >&5
 
9125
$as_echo "$as_me: searching for OPENIB..." >&6;}
 
9126
happy=yes
 
9127
if test "x$happy" = xyes; then :
 
9128
  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
 
9129
if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
 
9130
 
 
9131
else
 
9132
  happy=no
 
9133
fi
 
9134
 
 
9135
 
 
9136
fi
 
9137
if test "x$happy" = xyes; then :
 
9138
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5
 
9139
$as_echo_n "checking for library containing ibv_open_device... " >&6; }
 
9140
if ${ac_cv_search_ibv_open_device+:} false; then :
 
9141
  $as_echo_n "(cached) " >&6
 
9142
else
 
9143
  ac_func_search_save_LIBS=$LIBS
 
9144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9145
/* end confdefs.h.  */
 
9146
 
 
9147
/* Override any GCC internal prototype to avoid an error.
 
9148
   Use char because int might match the return type of a GCC
 
9149
   builtin and then its argument prototype would still apply.  */
 
9150
#ifdef __cplusplus
 
9151
extern "C"
 
9152
#endif
 
9153
char ibv_open_device ();
 
9154
int
 
9155
main ()
 
9156
{
 
9157
return ibv_open_device ();
 
9158
  ;
 
9159
  return 0;
 
9160
}
 
9161
_ACEOF
 
9162
for ac_lib in '' ibverbs; do
 
9163
  if test -z "$ac_lib"; then
 
9164
    ac_res="none required"
 
9165
  else
 
9166
    ac_res=-l$ac_lib
 
9167
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9168
  fi
 
9169
  if ac_fn_c_try_link "$LINENO"; then :
 
9170
  ac_cv_search_ibv_open_device=$ac_res
 
9171
fi
 
9172
rm -f core conftest.err conftest.$ac_objext \
 
9173
    conftest$ac_exeext
 
9174
  if ${ac_cv_search_ibv_open_device+:} false; then :
 
9175
  break
 
9176
fi
 
9177
done
 
9178
if ${ac_cv_search_ibv_open_device+:} false; then :
 
9179
 
 
9180
else
 
9181
  ac_cv_search_ibv_open_device=no
 
9182
fi
 
9183
rm conftest.$ac_ext
 
9184
LIBS=$ac_func_search_save_LIBS
 
9185
fi
 
9186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5
 
9187
$as_echo "$ac_cv_search_ibv_open_device" >&6; }
 
9188
ac_res=$ac_cv_search_ibv_open_device
 
9189
if test "$ac_res" != no; then :
 
9190
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9191
 
 
9192
else
 
9193
  happy=no
 
9194
fi
 
9195
 
 
9196
     case $ac_cv_search_ibv_open_device in #(
 
9197
  "none required") :
 
9198
     ;; #(
 
9199
  no) :
 
9200
     ;; #(
 
9201
  *) :
 
9202
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_ibv_open_device" ;;
 
9203
esac
 
9204
fi
 
9205
if test "x$happy" = xyes; then :
 
9206
  ga_armci_network=OPENIB; with_openib=yes;
 
9207
fi
 
9208
 
 
9209
fi
 
9210
     if test "x$ga_armci_network" = x && test "x$with_portals" != xno; then :
 
9211
 
 
9212
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for PORTALS..." >&5
 
9213
$as_echo "$as_me: searching for PORTALS..." >&6;}
 
9214
happy=yes
 
9215
if test "x$happy" = xyes; then :
 
9216
  ac_fn_c_check_header_mongrel "$LINENO" "portals/portals3.h" "ac_cv_header_portals_portals3_h" "$ac_includes_default"
 
9217
if test "x$ac_cv_header_portals_portals3_h" = xyes; then :
 
9218
 
 
9219
else
 
9220
  happy=no
 
9221
fi
 
9222
 
 
9223
 
 
9224
fi
 
9225
if test "x$happy" = xyes; then :
 
9226
  ac_fn_c_check_header_mongrel "$LINENO" "portals/nal.h" "ac_cv_header_portals_nal_h" "$ac_includes_default"
 
9227
if test "x$ac_cv_header_portals_nal_h" = xyes; then :
 
9228
 
 
9229
else
 
9230
  happy=no
 
9231
fi
 
9232
 
 
9233
 
 
9234
fi
 
9235
if test "x$happy" = xyes; then :
 
9236
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlInit" >&5
 
9237
$as_echo_n "checking for library containing PtlInit... " >&6; }
 
9238
if ${ac_cv_search_PtlInit+:} false; then :
 
9239
  $as_echo_n "(cached) " >&6
 
9240
else
 
9241
  ac_func_search_save_LIBS=$LIBS
 
9242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9243
/* end confdefs.h.  */
 
9244
 
 
9245
/* Override any GCC internal prototype to avoid an error.
 
9246
   Use char because int might match the return type of a GCC
 
9247
   builtin and then its argument prototype would still apply.  */
 
9248
#ifdef __cplusplus
 
9249
extern "C"
 
9250
#endif
 
9251
char PtlInit ();
 
9252
int
 
9253
main ()
 
9254
{
 
9255
return PtlInit ();
 
9256
  ;
 
9257
  return 0;
 
9258
}
 
9259
_ACEOF
 
9260
for ac_lib in '' portals; do
 
9261
  if test -z "$ac_lib"; then
 
9262
    ac_res="none required"
 
9263
  else
 
9264
    ac_res=-l$ac_lib
 
9265
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9266
  fi
 
9267
  if ac_fn_c_try_link "$LINENO"; then :
 
9268
  ac_cv_search_PtlInit=$ac_res
 
9269
fi
 
9270
rm -f core conftest.err conftest.$ac_objext \
 
9271
    conftest$ac_exeext
 
9272
  if ${ac_cv_search_PtlInit+:} false; then :
 
9273
  break
 
9274
fi
 
9275
done
 
9276
if ${ac_cv_search_PtlInit+:} false; then :
 
9277
 
 
9278
else
 
9279
  ac_cv_search_PtlInit=no
 
9280
fi
 
9281
rm conftest.$ac_ext
 
9282
LIBS=$ac_func_search_save_LIBS
 
9283
fi
 
9284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlInit" >&5
 
9285
$as_echo "$ac_cv_search_PtlInit" >&6; }
 
9286
ac_res=$ac_cv_search_PtlInit
 
9287
if test "$ac_res" != no; then :
 
9288
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9289
 
 
9290
else
 
9291
  happy=no
 
9292
fi
 
9293
 
 
9294
fi
 
9295
if test "x$happy" = xyes; then :
 
9296
  ga_armci_network=PORTALS; with_portals=yes;
 
9297
fi
 
9298
 
 
9299
fi
 
9300
     if test "x$ga_armci_network" = x && test "x$with_dmapp" != xno; then :
 
9301
 
 
9302
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for DMAPP..." >&5
 
9303
$as_echo "$as_me: searching for DMAPP..." >&6;}
 
9304
happy=yes
 
9305
if test "x$happy" = xyes; then :
 
9306
  ga_armci_network=DMAPP; with_dmapp=yes;
 
9307
fi
 
9308
if test "x$happy" = xyes; then :
 
9309
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethugepagesize" >&5
 
9310
$as_echo_n "checking for library containing gethugepagesize... " >&6; }
 
9311
if ${ac_cv_search_gethugepagesize+:} false; then :
 
9312
  $as_echo_n "(cached) " >&6
 
9313
else
 
9314
  ac_func_search_save_LIBS=$LIBS
 
9315
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9316
/* end confdefs.h.  */
 
9317
 
 
9318
/* Override any GCC internal prototype to avoid an error.
 
9319
   Use char because int might match the return type of a GCC
 
9320
   builtin and then its argument prototype would still apply.  */
 
9321
#ifdef __cplusplus
 
9322
extern "C"
 
9323
#endif
 
9324
char gethugepagesize ();
 
9325
int
 
9326
main ()
 
9327
{
 
9328
return gethugepagesize ();
 
9329
  ;
 
9330
  return 0;
 
9331
}
 
9332
_ACEOF
 
9333
for ac_lib in '' hugetlbfs; do
 
9334
  if test -z "$ac_lib"; then
 
9335
    ac_res="none required"
 
9336
  else
 
9337
    ac_res=-l$ac_lib
 
9338
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9339
  fi
 
9340
  if ac_fn_c_try_link "$LINENO"; then :
 
9341
  ac_cv_search_gethugepagesize=$ac_res
 
9342
fi
 
9343
rm -f core conftest.err conftest.$ac_objext \
 
9344
    conftest$ac_exeext
 
9345
  if ${ac_cv_search_gethugepagesize+:} false; then :
 
9346
  break
 
9347
fi
 
9348
done
 
9349
if ${ac_cv_search_gethugepagesize+:} false; then :
 
9350
 
 
9351
else
 
9352
  ac_cv_search_gethugepagesize=no
 
9353
fi
 
9354
rm conftest.$ac_ext
 
9355
LIBS=$ac_func_search_save_LIBS
 
9356
fi
 
9357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethugepagesize" >&5
 
9358
$as_echo "$ac_cv_search_gethugepagesize" >&6; }
 
9359
ac_res=$ac_cv_search_gethugepagesize
 
9360
if test "$ac_res" != no; then :
 
9361
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9362
 
 
9363
fi
 
9364
 
 
9365
     case $ac_cv_search_gethugepagesize in #(
 
9366
  "none required") :
 
9367
     ;; #(
 
9368
  no) :
 
9369
     ;; #(
 
9370
  *) :
 
9371
    # add missing lib to ARMCI_NETWORK_LIBS if not there
 
9372
             case $ARMCI_NETWORK_LIBS in #(
 
9373
  *$ac_cv_search_gethugepagesize*) :
 
9374
     ;; #(
 
9375
  *) :
 
9376
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_gethugepagesize" ;;
 
9377
esac ;;
 
9378
esac
 
9379
fi
 
9380
 
 
9381
fi
 
9382
     if test "x$ga_armci_network" = x && test "x$with_gemini" != xno; then :
 
9383
 
 
9384
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for GEMINI..." >&5
 
9385
$as_echo "$as_me: searching for GEMINI..." >&6;}
 
9386
happy=yes
 
9387
if test "x$happy" = xyes; then :
 
9388
  ac_fn_c_check_header_compile "$LINENO" "numatoolkit.h" "ac_cv_header_numatoolkit_h" "
 
9389
$ac_includes_default
 
9390
#include <mpi.h>
 
9391
"
 
9392
if test "x$ac_cv_header_numatoolkit_h" = xyes; then :
 
9393
 
 
9394
else
 
9395
  happy=no
 
9396
fi
 
9397
 
 
9398
 
 
9399
fi
 
9400
if test "x$happy" = xyes; then :
 
9401
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing NTK_Init" >&5
 
9402
$as_echo_n "checking for library containing NTK_Init... " >&6; }
 
9403
if ${ac_cv_search_NTK_Init+:} false; then :
 
9404
  $as_echo_n "(cached) " >&6
 
9405
else
 
9406
  ac_func_search_save_LIBS=$LIBS
 
9407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9408
/* end confdefs.h.  */
 
9409
 
 
9410
/* Override any GCC internal prototype to avoid an error.
 
9411
   Use char because int might match the return type of a GCC
 
9412
   builtin and then its argument prototype would still apply.  */
 
9413
#ifdef __cplusplus
 
9414
extern "C"
 
9415
#endif
 
9416
char NTK_Init ();
 
9417
int
 
9418
main ()
 
9419
{
 
9420
return NTK_Init ();
 
9421
  ;
 
9422
  return 0;
 
9423
}
 
9424
_ACEOF
 
9425
for ac_lib in '' numatoolkit; do
 
9426
  if test -z "$ac_lib"; then
 
9427
    ac_res="none required"
 
9428
  else
 
9429
    ac_res=-l$ac_lib
 
9430
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9431
  fi
 
9432
  if ac_fn_c_try_link "$LINENO"; then :
 
9433
  ac_cv_search_NTK_Init=$ac_res
 
9434
fi
 
9435
rm -f core conftest.err conftest.$ac_objext \
 
9436
    conftest$ac_exeext
 
9437
  if ${ac_cv_search_NTK_Init+:} false; then :
 
9438
  break
 
9439
fi
 
9440
done
 
9441
if ${ac_cv_search_NTK_Init+:} false; then :
 
9442
 
 
9443
else
 
9444
  ac_cv_search_NTK_Init=no
 
9445
fi
 
9446
rm conftest.$ac_ext
 
9447
LIBS=$ac_func_search_save_LIBS
 
9448
fi
 
9449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_NTK_Init" >&5
 
9450
$as_echo "$ac_cv_search_NTK_Init" >&6; }
 
9451
ac_res=$ac_cv_search_NTK_Init
 
9452
if test "$ac_res" != no; then :
 
9453
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9454
 
 
9455
else
 
9456
  happy=no
 
9457
fi
 
9458
 
 
9459
fi
 
9460
# CPPFLAGS must have CRAY_UGNI before looking for the next headers.
 
9461
gemini_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -DCRAY_UGNI"
 
9462
if test "x$happy" = xyes; then :
 
9463
  ac_fn_c_check_header_mongrel "$LINENO" "onesided.h" "ac_cv_header_onesided_h" "$ac_includes_default"
 
9464
if test "x$ac_cv_header_onesided_h" = xyes; then :
 
9465
 
 
9466
else
 
9467
  happy=no
 
9468
fi
 
9469
 
 
9470
 
 
9471
fi
 
9472
if test "x$happy" = xyes; then :
 
9473
  ac_fn_c_check_header_mongrel "$LINENO" "gni.h" "ac_cv_header_gni_h" "$ac_includes_default"
 
9474
if test "x$ac_cv_header_gni_h" = xyes; then :
 
9475
 
 
9476
else
 
9477
  happy=no
 
9478
fi
 
9479
 
 
9480
 
 
9481
fi
 
9482
CPPFLAGS="$gemini_save_CPPFLAGS"
 
9483
if test "x$happy" = xyes; then :
 
9484
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gniInit" >&5
 
9485
$as_echo_n "checking for library containing gniInit... " >&6; }
 
9486
if ${ac_cv_search_gniInit+:} false; then :
 
9487
  $as_echo_n "(cached) " >&6
 
9488
else
 
9489
  ac_func_search_save_LIBS=$LIBS
 
9490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9491
/* end confdefs.h.  */
 
9492
 
 
9493
/* Override any GCC internal prototype to avoid an error.
 
9494
   Use char because int might match the return type of a GCC
 
9495
   builtin and then its argument prototype would still apply.  */
 
9496
#ifdef __cplusplus
 
9497
extern "C"
 
9498
#endif
 
9499
char gniInit ();
 
9500
int
 
9501
main ()
 
9502
{
 
9503
return gniInit ();
 
9504
  ;
 
9505
  return 0;
 
9506
}
 
9507
_ACEOF
 
9508
for ac_lib in '' onesided; do
 
9509
  if test -z "$ac_lib"; then
 
9510
    ac_res="none required"
 
9511
  else
 
9512
    ac_res=-l$ac_lib
 
9513
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9514
  fi
 
9515
  if ac_fn_c_try_link "$LINENO"; then :
 
9516
  ac_cv_search_gniInit=$ac_res
 
9517
fi
 
9518
rm -f core conftest.err conftest.$ac_objext \
 
9519
    conftest$ac_exeext
 
9520
  if ${ac_cv_search_gniInit+:} false; then :
 
9521
  break
 
9522
fi
 
9523
done
 
9524
if ${ac_cv_search_gniInit+:} false; then :
 
9525
 
 
9526
else
 
9527
  ac_cv_search_gniInit=no
 
9528
fi
 
9529
rm conftest.$ac_ext
 
9530
LIBS=$ac_func_search_save_LIBS
 
9531
fi
 
9532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gniInit" >&5
 
9533
$as_echo "$ac_cv_search_gniInit" >&6; }
 
9534
ac_res=$ac_cv_search_gniInit
 
9535
if test "$ac_res" != no; then :
 
9536
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9537
 
 
9538
else
 
9539
  happy=no
 
9540
fi
 
9541
 
 
9542
fi
 
9543
if test "x$happy" = xyes; then :
 
9544
  ga_armci_network=GEMINI; with_gemini=yes;
 
9545
fi
 
9546
# check for a function introduced in libonesided/1.5
 
9547
# we purposefully abuse the ac_cv_search_onesided_mem_htflush value
 
9548
if test "x$happy" = xyes; then :
 
9549
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing onesided_mem_htflush" >&5
 
9550
$as_echo_n "checking for library containing onesided_mem_htflush... " >&6; }
 
9551
if ${ac_cv_search_onesided_mem_htflush+:} false; then :
 
9552
  $as_echo_n "(cached) " >&6
 
9553
else
 
9554
  ac_func_search_save_LIBS=$LIBS
 
9555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9556
/* end confdefs.h.  */
 
9557
 
 
9558
/* Override any GCC internal prototype to avoid an error.
 
9559
   Use char because int might match the return type of a GCC
 
9560
   builtin and then its argument prototype would still apply.  */
 
9561
#ifdef __cplusplus
 
9562
extern "C"
 
9563
#endif
 
9564
char onesided_mem_htflush ();
 
9565
int
 
9566
main ()
 
9567
{
 
9568
return onesided_mem_htflush ();
 
9569
  ;
 
9570
  return 0;
 
9571
}
 
9572
_ACEOF
 
9573
for ac_lib in '' onesided; do
 
9574
  if test -z "$ac_lib"; then
 
9575
    ac_res="none required"
 
9576
  else
 
9577
    ac_res=-l$ac_lib
 
9578
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9579
  fi
 
9580
  if ac_fn_c_try_link "$LINENO"; then :
 
9581
  ac_cv_search_onesided_mem_htflush=$ac_res
 
9582
fi
 
9583
rm -f core conftest.err conftest.$ac_objext \
 
9584
    conftest$ac_exeext
 
9585
  if ${ac_cv_search_onesided_mem_htflush+:} false; then :
 
9586
  break
 
9587
fi
 
9588
done
 
9589
if ${ac_cv_search_onesided_mem_htflush+:} false; then :
 
9590
 
 
9591
else
 
9592
  ac_cv_search_onesided_mem_htflush=no
 
9593
fi
 
9594
rm conftest.$ac_ext
 
9595
LIBS=$ac_func_search_save_LIBS
 
9596
fi
 
9597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_onesided_mem_htflush" >&5
 
9598
$as_echo "$ac_cv_search_onesided_mem_htflush" >&6; }
 
9599
ac_res=$ac_cv_search_onesided_mem_htflush
 
9600
if test "$ac_res" != no; then :
 
9601
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9602
 
 
9603
fi
 
9604
 
 
9605
     if test "x$ac_cv_search_onesided_mem_htflush" != xno; then :
 
9606
  ac_cv_search_onesided_mem_htflush=1
 
9607
else
 
9608
  ac_cv_search_onesided_mem_htflush=0
 
9609
fi
 
9610
 
 
9611
cat >>confdefs.h <<_ACEOF
 
9612
#define HAVE_ONESIDED_MEM_HTFLUSH $ac_cv_search_onesided_mem_htflush
 
9613
_ACEOF
 
9614
 
 
9615
 
 
9616
fi
 
9617
# check for a function introduced in libonesided/1.6
 
9618
# we purposefully abuse the ac_cv_search_onesided_fadd value
 
9619
if test "x$happy" = xyes; then :
 
9620
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing onesided_fadd" >&5
 
9621
$as_echo_n "checking for library containing onesided_fadd... " >&6; }
 
9622
if ${ac_cv_search_onesided_fadd+:} false; then :
 
9623
  $as_echo_n "(cached) " >&6
 
9624
else
 
9625
  ac_func_search_save_LIBS=$LIBS
 
9626
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9627
/* end confdefs.h.  */
 
9628
 
 
9629
/* Override any GCC internal prototype to avoid an error.
 
9630
   Use char because int might match the return type of a GCC
 
9631
   builtin and then its argument prototype would still apply.  */
 
9632
#ifdef __cplusplus
 
9633
extern "C"
 
9634
#endif
 
9635
char onesided_fadd ();
 
9636
int
 
9637
main ()
 
9638
{
 
9639
return onesided_fadd ();
 
9640
  ;
 
9641
  return 0;
 
9642
}
 
9643
_ACEOF
 
9644
for ac_lib in '' onesided; do
 
9645
  if test -z "$ac_lib"; then
 
9646
    ac_res="none required"
 
9647
  else
 
9648
    ac_res=-l$ac_lib
 
9649
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9650
  fi
 
9651
  if ac_fn_c_try_link "$LINENO"; then :
 
9652
  ac_cv_search_onesided_fadd=$ac_res
 
9653
fi
 
9654
rm -f core conftest.err conftest.$ac_objext \
 
9655
    conftest$ac_exeext
 
9656
  if ${ac_cv_search_onesided_fadd+:} false; then :
 
9657
  break
 
9658
fi
 
9659
done
 
9660
if ${ac_cv_search_onesided_fadd+:} false; then :
 
9661
 
 
9662
else
 
9663
  ac_cv_search_onesided_fadd=no
 
9664
fi
 
9665
rm conftest.$ac_ext
 
9666
LIBS=$ac_func_search_save_LIBS
 
9667
fi
 
9668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_onesided_fadd" >&5
 
9669
$as_echo "$ac_cv_search_onesided_fadd" >&6; }
 
9670
ac_res=$ac_cv_search_onesided_fadd
 
9671
if test "$ac_res" != no; then :
 
9672
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9673
 
 
9674
fi
 
9675
 
 
9676
     if test "x$ac_cv_search_onesided_fadd" != xno; then :
 
9677
  ac_cv_search_onesided_fadd=1
 
9678
else
 
9679
  ac_cv_search_onesided_fadd=0
 
9680
fi
 
9681
 
 
9682
cat >>confdefs.h <<_ACEOF
 
9683
#define HAVE_ONESIDED_FADD $ac_cv_search_onesided_fadd
 
9684
_ACEOF
 
9685
 
 
9686
 
 
9687
fi
 
9688
 
 
9689
fi
 
9690
     if test "x$ga_armci_network" = x && test "x$with_armci" != xno; then :
 
9691
 
 
9692
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for external ARMCI..." >&5
 
9693
$as_echo "$as_me: searching for external ARMCI..." >&6;}
 
9694
happy=yes
 
9695
CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
9696
LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
9697
LIBS="$LIBS $GA_MP_LIBS"
 
9698
if test "x$happy" = xyes; then :
 
9699
  ac_fn_c_check_header_mongrel "$LINENO" "armci.h" "ac_cv_header_armci_h" "$ac_includes_default"
 
9700
if test "x$ac_cv_header_armci_h" = xyes; then :
 
9701
 
 
9702
else
 
9703
  happy=no
 
9704
fi
 
9705
 
 
9706
 
 
9707
fi
 
9708
if test "x$happy" = xyes; then :
 
9709
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ARMCI_Init" >&5
 
9710
$as_echo_n "checking for library containing ARMCI_Init... " >&6; }
 
9711
if ${ac_cv_search_ARMCI_Init+:} false; then :
 
9712
  $as_echo_n "(cached) " >&6
 
9713
else
 
9714
  ac_func_search_save_LIBS=$LIBS
 
9715
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9716
/* end confdefs.h.  */
 
9717
 
 
9718
/* Override any GCC internal prototype to avoid an error.
 
9719
   Use char because int might match the return type of a GCC
 
9720
   builtin and then its argument prototype would still apply.  */
 
9721
#ifdef __cplusplus
 
9722
extern "C"
 
9723
#endif
 
9724
char ARMCI_Init ();
 
9725
int
 
9726
main ()
 
9727
{
 
9728
return ARMCI_Init ();
 
9729
  ;
 
9730
  return 0;
 
9731
}
 
9732
_ACEOF
 
9733
for ac_lib in '' armci; do
 
9734
  if test -z "$ac_lib"; then
 
9735
    ac_res="none required"
 
9736
  else
 
9737
    ac_res=-l$ac_lib
 
9738
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9739
  fi
 
9740
  if ac_fn_c_try_link "$LINENO"; then :
 
9741
  ac_cv_search_ARMCI_Init=$ac_res
 
9742
fi
 
9743
rm -f core conftest.err conftest.$ac_objext \
 
9744
    conftest$ac_exeext
 
9745
  if ${ac_cv_search_ARMCI_Init+:} false; then :
 
9746
  break
 
9747
fi
 
9748
done
 
9749
if ${ac_cv_search_ARMCI_Init+:} false; then :
 
9750
 
 
9751
else
 
9752
  ac_cv_search_ARMCI_Init=no
 
9753
fi
 
9754
rm conftest.$ac_ext
 
9755
LIBS=$ac_func_search_save_LIBS
 
9756
fi
 
9757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ARMCI_Init" >&5
 
9758
$as_echo "$ac_cv_search_ARMCI_Init" >&6; }
 
9759
ac_res=$ac_cv_search_ARMCI_Init
 
9760
if test "$ac_res" != no; then :
 
9761
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9762
 
 
9763
else
 
9764
  happy=no
 
9765
fi
 
9766
 
 
9767
     case $ac_cv_search_ARMCI_Init in #(
 
9768
  "none required") :
 
9769
     ;; #(
 
9770
  no) :
 
9771
     ;; #(
 
9772
  *) :
 
9773
    # add missing lib to ARMCI_NETWORK_LIBS if not there
 
9774
             case $ARMCI_NETWORK_LIBS in #(
 
9775
  *$ac_cv_search_ARMCI_Init*) :
 
9776
     ;; #(
 
9777
  *) :
 
9778
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_ARMCI_Init" ;;
 
9779
esac ;;
 
9780
esac
 
9781
fi
 
9782
if test "x$happy" = xyes; then :
 
9783
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_group_comm" >&5
 
9784
$as_echo_n "checking for library containing armci_group_comm... " >&6; }
 
9785
if ${ac_cv_search_armci_group_comm+:} false; then :
 
9786
  $as_echo_n "(cached) " >&6
 
9787
else
 
9788
  ac_func_search_save_LIBS=$LIBS
 
9789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9790
/* end confdefs.h.  */
 
9791
 
 
9792
/* Override any GCC internal prototype to avoid an error.
 
9793
   Use char because int might match the return type of a GCC
 
9794
   builtin and then its argument prototype would still apply.  */
 
9795
#ifdef __cplusplus
 
9796
extern "C"
 
9797
#endif
 
9798
char armci_group_comm ();
 
9799
int
 
9800
main ()
 
9801
{
 
9802
return armci_group_comm ();
 
9803
  ;
 
9804
  return 0;
 
9805
}
 
9806
_ACEOF
 
9807
for ac_lib in '' armci; do
 
9808
  if test -z "$ac_lib"; then
 
9809
    ac_res="none required"
 
9810
  else
 
9811
    ac_res=-l$ac_lib
 
9812
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9813
  fi
 
9814
  if ac_fn_c_try_link "$LINENO"; then :
 
9815
  ac_cv_search_armci_group_comm=$ac_res
 
9816
fi
 
9817
rm -f core conftest.err conftest.$ac_objext \
 
9818
    conftest$ac_exeext
 
9819
  if ${ac_cv_search_armci_group_comm+:} false; then :
 
9820
  break
 
9821
fi
 
9822
done
 
9823
if ${ac_cv_search_armci_group_comm+:} false; then :
 
9824
 
 
9825
else
 
9826
  ac_cv_search_armci_group_comm=no
 
9827
fi
 
9828
rm conftest.$ac_ext
 
9829
LIBS=$ac_func_search_save_LIBS
 
9830
fi
 
9831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_group_comm" >&5
 
9832
$as_echo "$ac_cv_search_armci_group_comm" >&6; }
 
9833
ac_res=$ac_cv_search_armci_group_comm
 
9834
if test "$ac_res" != no; then :
 
9835
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9836
 
 
9837
fi
 
9838
 
 
9839
     if test "x$ac_cv_search_armci_group_comm" != xno; then :
 
9840
  ac_cv_search_armci_group_comm=1
 
9841
else
 
9842
  ac_cv_search_armci_group_comm=0
 
9843
fi
 
9844
 
 
9845
cat >>confdefs.h <<_ACEOF
 
9846
#define HAVE_ARMCI_GROUP_COMM $ac_cv_search_armci_group_comm
 
9847
_ACEOF
 
9848
 
 
9849
 
 
9850
fi
 
9851
if test "x$happy" = xyes; then :
 
9852
  ac_fn_c_check_member "$LINENO" "ARMCI_Group" "comm" "ac_cv_member_ARMCI_Group_comm" "#include <armci.h>
 
9853
"
 
9854
if test "x$ac_cv_member_ARMCI_Group_comm" = xyes; then :
 
9855
 
 
9856
fi
 
9857
 
 
9858
     if test "x$ac_cv_member_ARMCI_Group_comm" != xno; then :
 
9859
  ac_cv_member_ARMCI_Group_comm=1
 
9860
else
 
9861
  ac_cv_member_ARMCI_Group_comm=0
 
9862
fi
 
9863
 
 
9864
cat >>confdefs.h <<_ACEOF
 
9865
#define HAVE_ARMCI_GROUP_COMM_MEMBER $ac_cv_member_ARMCI_Group_comm
 
9866
_ACEOF
 
9867
 
 
9868
 
 
9869
fi
 
9870
if test "x$happy" = xyes; then :
 
9871
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ARMCI_Initialized" >&5
 
9872
$as_echo_n "checking for library containing ARMCI_Initialized... " >&6; }
 
9873
if ${ac_cv_search_ARMCI_Initialized+:} false; then :
 
9874
  $as_echo_n "(cached) " >&6
 
9875
else
 
9876
  ac_func_search_save_LIBS=$LIBS
 
9877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9878
/* end confdefs.h.  */
 
9879
 
 
9880
/* Override any GCC internal prototype to avoid an error.
 
9881
   Use char because int might match the return type of a GCC
 
9882
   builtin and then its argument prototype would still apply.  */
 
9883
#ifdef __cplusplus
 
9884
extern "C"
 
9885
#endif
 
9886
char ARMCI_Initialized ();
 
9887
int
 
9888
main ()
 
9889
{
 
9890
return ARMCI_Initialized ();
 
9891
  ;
 
9892
  return 0;
 
9893
}
 
9894
_ACEOF
 
9895
for ac_lib in '' armci; do
 
9896
  if test -z "$ac_lib"; then
 
9897
    ac_res="none required"
 
9898
  else
 
9899
    ac_res=-l$ac_lib
 
9900
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9901
  fi
 
9902
  if ac_fn_c_try_link "$LINENO"; then :
 
9903
  ac_cv_search_ARMCI_Initialized=$ac_res
 
9904
fi
 
9905
rm -f core conftest.err conftest.$ac_objext \
 
9906
    conftest$ac_exeext
 
9907
  if ${ac_cv_search_ARMCI_Initialized+:} false; then :
 
9908
  break
 
9909
fi
 
9910
done
 
9911
if ${ac_cv_search_ARMCI_Initialized+:} false; then :
 
9912
 
 
9913
else
 
9914
  ac_cv_search_ARMCI_Initialized=no
 
9915
fi
 
9916
rm conftest.$ac_ext
 
9917
LIBS=$ac_func_search_save_LIBS
 
9918
fi
 
9919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ARMCI_Initialized" >&5
 
9920
$as_echo "$ac_cv_search_ARMCI_Initialized" >&6; }
 
9921
ac_res=$ac_cv_search_ARMCI_Initialized
 
9922
if test "$ac_res" != no; then :
 
9923
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9924
 
 
9925
fi
 
9926
 
 
9927
     if test "x$ac_cv_search_ARMCI_Initialized" != xno; then :
 
9928
  ac_cv_search_ARMCI_Initialized=1
 
9929
else
 
9930
  ac_cv_search_ARMCI_Initialized=0
 
9931
fi
 
9932
 
 
9933
cat >>confdefs.h <<_ACEOF
 
9934
#define HAVE_ARMCI_INITIALIZED $ac_cv_search_ARMCI_Initialized
 
9935
_ACEOF
 
9936
 
 
9937
 
 
9938
fi
 
9939
if test "x$happy" = xyes; then :
 
9940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_stride_info_init" >&5
 
9941
$as_echo_n "checking for library containing armci_stride_info_init... " >&6; }
 
9942
if ${ac_cv_search_armci_stride_info_init+:} false; then :
 
9943
  $as_echo_n "(cached) " >&6
 
9944
else
 
9945
  ac_func_search_save_LIBS=$LIBS
 
9946
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9947
/* end confdefs.h.  */
 
9948
 
 
9949
/* Override any GCC internal prototype to avoid an error.
 
9950
   Use char because int might match the return type of a GCC
 
9951
   builtin and then its argument prototype would still apply.  */
 
9952
#ifdef __cplusplus
 
9953
extern "C"
 
9954
#endif
 
9955
char armci_stride_info_init ();
 
9956
int
 
9957
main ()
 
9958
{
 
9959
return armci_stride_info_init ();
 
9960
  ;
 
9961
  return 0;
 
9962
}
 
9963
_ACEOF
 
9964
for ac_lib in '' armci; do
 
9965
  if test -z "$ac_lib"; then
 
9966
    ac_res="none required"
 
9967
  else
 
9968
    ac_res=-l$ac_lib
 
9969
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
9970
  fi
 
9971
  if ac_fn_c_try_link "$LINENO"; then :
 
9972
  ac_cv_search_armci_stride_info_init=$ac_res
 
9973
fi
 
9974
rm -f core conftest.err conftest.$ac_objext \
 
9975
    conftest$ac_exeext
 
9976
  if ${ac_cv_search_armci_stride_info_init+:} false; then :
 
9977
  break
 
9978
fi
 
9979
done
 
9980
if ${ac_cv_search_armci_stride_info_init+:} false; then :
 
9981
 
 
9982
else
 
9983
  ac_cv_search_armci_stride_info_init=no
 
9984
fi
 
9985
rm conftest.$ac_ext
 
9986
LIBS=$ac_func_search_save_LIBS
 
9987
fi
 
9988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_stride_info_init" >&5
 
9989
$as_echo "$ac_cv_search_armci_stride_info_init" >&6; }
 
9990
ac_res=$ac_cv_search_armci_stride_info_init
 
9991
if test "$ac_res" != no; then :
 
9992
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
9993
 
 
9994
fi
 
9995
 
 
9996
     if test "x$ac_cv_search_armci_stride_info_init" != xno; then :
 
9997
  ac_cv_search_armci_stride_info_init=1
 
9998
else
 
9999
  ac_cv_search_armci_stride_info_init=0
 
10000
fi
 
10001
 
 
10002
cat >>confdefs.h <<_ACEOF
 
10003
#define HAVE_ARMCI_STRIDE_INFO_INIT $ac_cv_search_armci_stride_info_init
 
10004
_ACEOF
 
10005
 
 
10006
 
 
10007
fi
 
10008
if test "x$happy" = xyes; then :
 
10009
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_notify" >&5
 
10010
$as_echo_n "checking for library containing armci_notify... " >&6; }
 
10011
if ${ac_cv_search_armci_notify+:} false; then :
 
10012
  $as_echo_n "(cached) " >&6
 
10013
else
 
10014
  ac_func_search_save_LIBS=$LIBS
 
10015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10016
/* end confdefs.h.  */
 
10017
 
 
10018
/* Override any GCC internal prototype to avoid an error.
 
10019
   Use char because int might match the return type of a GCC
 
10020
   builtin and then its argument prototype would still apply.  */
 
10021
#ifdef __cplusplus
 
10022
extern "C"
 
10023
#endif
 
10024
char armci_notify ();
 
10025
int
 
10026
main ()
 
10027
{
 
10028
return armci_notify ();
 
10029
  ;
 
10030
  return 0;
 
10031
}
 
10032
_ACEOF
 
10033
for ac_lib in '' armci; do
 
10034
  if test -z "$ac_lib"; then
 
10035
    ac_res="none required"
 
10036
  else
 
10037
    ac_res=-l$ac_lib
 
10038
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10039
  fi
 
10040
  if ac_fn_c_try_link "$LINENO"; then :
 
10041
  ac_cv_search_armci_notify=$ac_res
 
10042
fi
 
10043
rm -f core conftest.err conftest.$ac_objext \
 
10044
    conftest$ac_exeext
 
10045
  if ${ac_cv_search_armci_notify+:} false; then :
 
10046
  break
 
10047
fi
 
10048
done
 
10049
if ${ac_cv_search_armci_notify+:} false; then :
 
10050
 
 
10051
else
 
10052
  ac_cv_search_armci_notify=no
 
10053
fi
 
10054
rm conftest.$ac_ext
 
10055
LIBS=$ac_func_search_save_LIBS
 
10056
fi
 
10057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_notify" >&5
 
10058
$as_echo "$ac_cv_search_armci_notify" >&6; }
 
10059
ac_res=$ac_cv_search_armci_notify
 
10060
if test "$ac_res" != no; then :
 
10061
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10062
 
 
10063
fi
 
10064
 
 
10065
     if test "x$ac_cv_search_armci_notify" != xno; then :
 
10066
  ac_cv_search_armci_notify=1
 
10067
else
 
10068
  ac_cv_search_armci_notify=0
 
10069
fi
 
10070
 
 
10071
cat >>confdefs.h <<_ACEOF
 
10072
#define HAVE_ARMCI_NOTIFY $ac_cv_search_armci_notify
 
10073
_ACEOF
 
10074
 
 
10075
 
 
10076
fi
 
10077
if test "x$happy" = xyes; then :
 
10078
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_msg_init" >&5
 
10079
$as_echo_n "checking for library containing armci_msg_init... " >&6; }
 
10080
if ${ac_cv_search_armci_msg_init+:} false; then :
 
10081
  $as_echo_n "(cached) " >&6
 
10082
else
 
10083
  ac_func_search_save_LIBS=$LIBS
 
10084
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10085
/* end confdefs.h.  */
 
10086
 
 
10087
/* Override any GCC internal prototype to avoid an error.
 
10088
   Use char because int might match the return type of a GCC
 
10089
   builtin and then its argument prototype would still apply.  */
 
10090
#ifdef __cplusplus
 
10091
extern "C"
 
10092
#endif
 
10093
char armci_msg_init ();
 
10094
int
 
10095
main ()
 
10096
{
 
10097
return armci_msg_init ();
 
10098
  ;
 
10099
  return 0;
 
10100
}
 
10101
_ACEOF
 
10102
for ac_lib in '' armci; do
 
10103
  if test -z "$ac_lib"; then
 
10104
    ac_res="none required"
 
10105
  else
 
10106
    ac_res=-l$ac_lib
 
10107
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10108
  fi
 
10109
  if ac_fn_c_try_link "$LINENO"; then :
 
10110
  ac_cv_search_armci_msg_init=$ac_res
 
10111
fi
 
10112
rm -f core conftest.err conftest.$ac_objext \
 
10113
    conftest$ac_exeext
 
10114
  if ${ac_cv_search_armci_msg_init+:} false; then :
 
10115
  break
 
10116
fi
 
10117
done
 
10118
if ${ac_cv_search_armci_msg_init+:} false; then :
 
10119
 
 
10120
else
 
10121
  ac_cv_search_armci_msg_init=no
 
10122
fi
 
10123
rm conftest.$ac_ext
 
10124
LIBS=$ac_func_search_save_LIBS
 
10125
fi
 
10126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_msg_init" >&5
 
10127
$as_echo "$ac_cv_search_armci_msg_init" >&6; }
 
10128
ac_res=$ac_cv_search_armci_msg_init
 
10129
if test "$ac_res" != no; then :
 
10130
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10131
 
 
10132
fi
 
10133
 
 
10134
     if test "x$ac_cv_search_armci_msg_init" != xno; then :
 
10135
  ac_cv_search_armci_msg_init=1
 
10136
else
 
10137
  ac_cv_search_armci_msg_init=0
 
10138
fi
 
10139
 
 
10140
cat >>confdefs.h <<_ACEOF
 
10141
#define HAVE_ARMCI_MSG_INIT $ac_cv_search_armci_msg_init
 
10142
_ACEOF
 
10143
 
 
10144
 
 
10145
fi
 
10146
if test "x$happy" = xyes; then :
 
10147
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_msg_finalize" >&5
 
10148
$as_echo_n "checking for library containing armci_msg_finalize... " >&6; }
 
10149
if ${ac_cv_search_armci_msg_finalize+:} false; then :
 
10150
  $as_echo_n "(cached) " >&6
 
10151
else
 
10152
  ac_func_search_save_LIBS=$LIBS
 
10153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10154
/* end confdefs.h.  */
 
10155
 
 
10156
/* Override any GCC internal prototype to avoid an error.
 
10157
   Use char because int might match the return type of a GCC
 
10158
   builtin and then its argument prototype would still apply.  */
 
10159
#ifdef __cplusplus
 
10160
extern "C"
 
10161
#endif
 
10162
char armci_msg_finalize ();
 
10163
int
 
10164
main ()
 
10165
{
 
10166
return armci_msg_finalize ();
 
10167
  ;
 
10168
  return 0;
 
10169
}
 
10170
_ACEOF
 
10171
for ac_lib in '' armci; do
 
10172
  if test -z "$ac_lib"; then
 
10173
    ac_res="none required"
 
10174
  else
 
10175
    ac_res=-l$ac_lib
 
10176
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10177
  fi
 
10178
  if ac_fn_c_try_link "$LINENO"; then :
 
10179
  ac_cv_search_armci_msg_finalize=$ac_res
 
10180
fi
 
10181
rm -f core conftest.err conftest.$ac_objext \
 
10182
    conftest$ac_exeext
 
10183
  if ${ac_cv_search_armci_msg_finalize+:} false; then :
 
10184
  break
 
10185
fi
 
10186
done
 
10187
if ${ac_cv_search_armci_msg_finalize+:} false; then :
 
10188
 
 
10189
else
 
10190
  ac_cv_search_armci_msg_finalize=no
 
10191
fi
 
10192
rm conftest.$ac_ext
 
10193
LIBS=$ac_func_search_save_LIBS
 
10194
fi
 
10195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_msg_finalize" >&5
 
10196
$as_echo "$ac_cv_search_armci_msg_finalize" >&6; }
 
10197
ac_res=$ac_cv_search_armci_msg_finalize
 
10198
if test "$ac_res" != no; then :
 
10199
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10200
 
 
10201
fi
 
10202
 
 
10203
     if test "x$ac_cv_search_armci_msg_finalize" != xno; then :
 
10204
  ac_cv_search_armci_msg_finalize=1
 
10205
else
 
10206
  ac_cv_search_armci_msg_finalize=0
 
10207
fi
 
10208
 
 
10209
cat >>confdefs.h <<_ACEOF
 
10210
#define HAVE_ARMCI_MSG_FINALIZE $ac_cv_search_armci_msg_finalize
 
10211
_ACEOF
 
10212
 
 
10213
 
 
10214
fi
 
10215
 if test "x$ac_cv_search_armci_group_comm" = x1; then
 
10216
  HAVE_ARMCI_GROUP_COMM_TRUE=
 
10217
  HAVE_ARMCI_GROUP_COMM_FALSE='#'
 
10218
else
 
10219
  HAVE_ARMCI_GROUP_COMM_TRUE='#'
 
10220
  HAVE_ARMCI_GROUP_COMM_FALSE=
 
10221
fi
 
10222
 
 
10223
 if test "x$ac_cv_member_ARMCI_Group_comm" = x1; then
 
10224
  HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE=
 
10225
  HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE='#'
 
10226
else
 
10227
  HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE='#'
 
10228
  HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE=
 
10229
fi
 
10230
 
 
10231
 if test "x$ac_cv_search_ARMCI_Initialized" = x1; then
 
10232
  HAVE_ARMCI_INITIALIZED_TRUE=
 
10233
  HAVE_ARMCI_INITIALIZED_FALSE='#'
 
10234
else
 
10235
  HAVE_ARMCI_INITIALIZED_TRUE='#'
 
10236
  HAVE_ARMCI_INITIALIZED_FALSE=
 
10237
fi
 
10238
 
 
10239
 if test "x$ac_cv_search_armci_stride_info_init" = x1; then
 
10240
  HAVE_ARMCI_STRIDE_INFO_INIT_TRUE=
 
10241
  HAVE_ARMCI_STRIDE_INFO_INIT_FALSE='#'
 
10242
else
 
10243
  HAVE_ARMCI_STRIDE_INFO_INIT_TRUE='#'
 
10244
  HAVE_ARMCI_STRIDE_INFO_INIT_FALSE=
 
10245
fi
 
10246
 
 
10247
 if test "x$ac_cv_search_armci_notify" = x1; then
 
10248
  HAVE_ARMCI_NOTIFY_TRUE=
 
10249
  HAVE_ARMCI_NOTIFY_FALSE='#'
 
10250
else
 
10251
  HAVE_ARMCI_NOTIFY_TRUE='#'
 
10252
  HAVE_ARMCI_NOTIFY_FALSE=
 
10253
fi
 
10254
 
 
10255
 if test "x$ac_cv_search_armci_msg_init" = x1; then
 
10256
  HAVE_ARMCI_MSG_INIT_TRUE=
 
10257
  HAVE_ARMCI_MSG_INIT_FALSE='#'
 
10258
else
 
10259
  HAVE_ARMCI_MSG_INIT_TRUE='#'
 
10260
  HAVE_ARMCI_MSG_INIT_FALSE=
 
10261
fi
 
10262
 
 
10263
 if test "x$ac_cv_search_armci_msg_finalize" = x1; then
 
10264
  HAVE_ARMCI_MSG_FINALIZE_TRUE=
 
10265
  HAVE_ARMCI_MSG_FINALIZE_FALSE='#'
 
10266
else
 
10267
  HAVE_ARMCI_MSG_FINALIZE_TRUE='#'
 
10268
  HAVE_ARMCI_MSG_FINALIZE_FALSE=
 
10269
fi
 
10270
 
 
10271
if test "x$happy" = xyes; then :
 
10272
  ga_armci_network=ARMCI; with_armci=yes;
 
10273
fi
 
10274
 
 
10275
fi
 
10276
     if test "x$ga_armci_network" = x; then :
 
10277
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: !!!" >&5
 
10278
$as_echo "$as_me: WARNING: !!!" >&2;}
 
10279
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ARMCI_NETWORK detected, defaulting to SOCKETS" >&5
 
10280
$as_echo "$as_me: WARNING: No ARMCI_NETWORK detected, defaulting to SOCKETS" >&2;}
 
10281
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: !!!" >&5
 
10282
$as_echo "$as_me: WARNING: !!!" >&2;}
 
10283
         ga_armci_network=SOCKETS; with_sockets=yes
 
10284
fi
 
10285
else
 
10286
  # Not autodetecting
 
10287
     # Check whether multiple armci networks were selected by user.
 
10288
     case $armci_network_count in #(
 
10289
  0) :
 
10290
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ARMCI_NETWORK specified, defaulting to SOCKETS" >&5
 
10291
$as_echo "$as_me: WARNING: No ARMCI_NETWORK specified, defaulting to SOCKETS" >&2;}
 
10292
              ga_armci_network=SOCKETS; with_sockets=yes ;; #(
 
10293
  1) :
 
10294
    if test "x$ga_armci_network" = xARMCI; then :
 
10295
 
 
10296
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for external ARMCI..." >&5
 
10297
$as_echo "$as_me: searching for external ARMCI..." >&6;}
 
10298
happy=yes
 
10299
CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
10300
LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
10301
LIBS="$LIBS $GA_MP_LIBS"
 
10302
if test "x$happy" = xyes; then :
 
10303
  ac_fn_c_check_header_mongrel "$LINENO" "armci.h" "ac_cv_header_armci_h" "$ac_includes_default"
 
10304
if test "x$ac_cv_header_armci_h" = xyes; then :
 
10305
 
 
10306
else
 
10307
  happy=no
 
10308
fi
 
10309
 
 
10310
 
 
10311
fi
 
10312
if test "x$happy" = xyes; then :
 
10313
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ARMCI_Init" >&5
 
10314
$as_echo_n "checking for library containing ARMCI_Init... " >&6; }
 
10315
if ${ac_cv_search_ARMCI_Init+:} false; then :
 
10316
  $as_echo_n "(cached) " >&6
 
10317
else
 
10318
  ac_func_search_save_LIBS=$LIBS
 
10319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10320
/* end confdefs.h.  */
 
10321
 
 
10322
/* Override any GCC internal prototype to avoid an error.
 
10323
   Use char because int might match the return type of a GCC
 
10324
   builtin and then its argument prototype would still apply.  */
 
10325
#ifdef __cplusplus
 
10326
extern "C"
 
10327
#endif
 
10328
char ARMCI_Init ();
 
10329
int
 
10330
main ()
 
10331
{
 
10332
return ARMCI_Init ();
 
10333
  ;
 
10334
  return 0;
 
10335
}
 
10336
_ACEOF
 
10337
for ac_lib in '' armci; do
 
10338
  if test -z "$ac_lib"; then
 
10339
    ac_res="none required"
 
10340
  else
 
10341
    ac_res=-l$ac_lib
 
10342
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10343
  fi
 
10344
  if ac_fn_c_try_link "$LINENO"; then :
 
10345
  ac_cv_search_ARMCI_Init=$ac_res
 
10346
fi
 
10347
rm -f core conftest.err conftest.$ac_objext \
 
10348
    conftest$ac_exeext
 
10349
  if ${ac_cv_search_ARMCI_Init+:} false; then :
 
10350
  break
 
10351
fi
 
10352
done
 
10353
if ${ac_cv_search_ARMCI_Init+:} false; then :
 
10354
 
 
10355
else
 
10356
  ac_cv_search_ARMCI_Init=no
 
10357
fi
 
10358
rm conftest.$ac_ext
 
10359
LIBS=$ac_func_search_save_LIBS
 
10360
fi
 
10361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ARMCI_Init" >&5
 
10362
$as_echo "$ac_cv_search_ARMCI_Init" >&6; }
 
10363
ac_res=$ac_cv_search_ARMCI_Init
 
10364
if test "$ac_res" != no; then :
 
10365
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10366
 
 
10367
else
 
10368
  happy=no
 
10369
fi
 
10370
 
 
10371
     case $ac_cv_search_ARMCI_Init in #(
 
10372
  "none required") :
 
10373
     ;; #(
 
10374
  no) :
 
10375
     ;; #(
 
10376
  *) :
 
10377
    # add missing lib to ARMCI_NETWORK_LIBS if not there
 
10378
             case $ARMCI_NETWORK_LIBS in #(
 
10379
  *$ac_cv_search_ARMCI_Init*) :
 
10380
     ;; #(
 
10381
  *) :
 
10382
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_ARMCI_Init" ;;
 
10383
esac ;;
 
10384
esac
 
10385
fi
 
10386
if test "x$happy" = xyes; then :
 
10387
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_group_comm" >&5
 
10388
$as_echo_n "checking for library containing armci_group_comm... " >&6; }
 
10389
if ${ac_cv_search_armci_group_comm+:} false; then :
 
10390
  $as_echo_n "(cached) " >&6
 
10391
else
 
10392
  ac_func_search_save_LIBS=$LIBS
 
10393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10394
/* end confdefs.h.  */
 
10395
 
 
10396
/* Override any GCC internal prototype to avoid an error.
 
10397
   Use char because int might match the return type of a GCC
 
10398
   builtin and then its argument prototype would still apply.  */
 
10399
#ifdef __cplusplus
 
10400
extern "C"
 
10401
#endif
 
10402
char armci_group_comm ();
 
10403
int
 
10404
main ()
 
10405
{
 
10406
return armci_group_comm ();
 
10407
  ;
 
10408
  return 0;
 
10409
}
 
10410
_ACEOF
 
10411
for ac_lib in '' armci; do
 
10412
  if test -z "$ac_lib"; then
 
10413
    ac_res="none required"
 
10414
  else
 
10415
    ac_res=-l$ac_lib
 
10416
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10417
  fi
 
10418
  if ac_fn_c_try_link "$LINENO"; then :
 
10419
  ac_cv_search_armci_group_comm=$ac_res
 
10420
fi
 
10421
rm -f core conftest.err conftest.$ac_objext \
 
10422
    conftest$ac_exeext
 
10423
  if ${ac_cv_search_armci_group_comm+:} false; then :
 
10424
  break
 
10425
fi
 
10426
done
 
10427
if ${ac_cv_search_armci_group_comm+:} false; then :
 
10428
 
 
10429
else
 
10430
  ac_cv_search_armci_group_comm=no
 
10431
fi
 
10432
rm conftest.$ac_ext
 
10433
LIBS=$ac_func_search_save_LIBS
 
10434
fi
 
10435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_group_comm" >&5
 
10436
$as_echo "$ac_cv_search_armci_group_comm" >&6; }
 
10437
ac_res=$ac_cv_search_armci_group_comm
 
10438
if test "$ac_res" != no; then :
 
10439
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10440
 
 
10441
fi
 
10442
 
 
10443
     if test "x$ac_cv_search_armci_group_comm" != xno; then :
 
10444
  ac_cv_search_armci_group_comm=1
 
10445
else
 
10446
  ac_cv_search_armci_group_comm=0
 
10447
fi
 
10448
 
 
10449
cat >>confdefs.h <<_ACEOF
 
10450
#define HAVE_ARMCI_GROUP_COMM $ac_cv_search_armci_group_comm
 
10451
_ACEOF
 
10452
 
 
10453
 
 
10454
fi
 
10455
if test "x$happy" = xyes; then :
 
10456
  ac_fn_c_check_member "$LINENO" "ARMCI_Group" "comm" "ac_cv_member_ARMCI_Group_comm" "#include <armci.h>
 
10457
"
 
10458
if test "x$ac_cv_member_ARMCI_Group_comm" = xyes; then :
 
10459
 
 
10460
fi
 
10461
 
 
10462
     if test "x$ac_cv_member_ARMCI_Group_comm" != xno; then :
 
10463
  ac_cv_member_ARMCI_Group_comm=1
 
10464
else
 
10465
  ac_cv_member_ARMCI_Group_comm=0
 
10466
fi
 
10467
 
 
10468
cat >>confdefs.h <<_ACEOF
 
10469
#define HAVE_ARMCI_GROUP_COMM_MEMBER $ac_cv_member_ARMCI_Group_comm
 
10470
_ACEOF
 
10471
 
 
10472
 
 
10473
fi
 
10474
if test "x$happy" = xyes; then :
 
10475
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ARMCI_Initialized" >&5
 
10476
$as_echo_n "checking for library containing ARMCI_Initialized... " >&6; }
 
10477
if ${ac_cv_search_ARMCI_Initialized+:} false; then :
 
10478
  $as_echo_n "(cached) " >&6
 
10479
else
 
10480
  ac_func_search_save_LIBS=$LIBS
 
10481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10482
/* end confdefs.h.  */
 
10483
 
 
10484
/* Override any GCC internal prototype to avoid an error.
 
10485
   Use char because int might match the return type of a GCC
 
10486
   builtin and then its argument prototype would still apply.  */
 
10487
#ifdef __cplusplus
 
10488
extern "C"
 
10489
#endif
 
10490
char ARMCI_Initialized ();
 
10491
int
 
10492
main ()
 
10493
{
 
10494
return ARMCI_Initialized ();
 
10495
  ;
 
10496
  return 0;
 
10497
}
 
10498
_ACEOF
 
10499
for ac_lib in '' armci; do
 
10500
  if test -z "$ac_lib"; then
 
10501
    ac_res="none required"
 
10502
  else
 
10503
    ac_res=-l$ac_lib
 
10504
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10505
  fi
 
10506
  if ac_fn_c_try_link "$LINENO"; then :
 
10507
  ac_cv_search_ARMCI_Initialized=$ac_res
 
10508
fi
 
10509
rm -f core conftest.err conftest.$ac_objext \
 
10510
    conftest$ac_exeext
 
10511
  if ${ac_cv_search_ARMCI_Initialized+:} false; then :
 
10512
  break
 
10513
fi
 
10514
done
 
10515
if ${ac_cv_search_ARMCI_Initialized+:} false; then :
 
10516
 
 
10517
else
 
10518
  ac_cv_search_ARMCI_Initialized=no
 
10519
fi
 
10520
rm conftest.$ac_ext
 
10521
LIBS=$ac_func_search_save_LIBS
 
10522
fi
 
10523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ARMCI_Initialized" >&5
 
10524
$as_echo "$ac_cv_search_ARMCI_Initialized" >&6; }
 
10525
ac_res=$ac_cv_search_ARMCI_Initialized
 
10526
if test "$ac_res" != no; then :
 
10527
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10528
 
 
10529
fi
 
10530
 
 
10531
     if test "x$ac_cv_search_ARMCI_Initialized" != xno; then :
 
10532
  ac_cv_search_ARMCI_Initialized=1
 
10533
else
 
10534
  ac_cv_search_ARMCI_Initialized=0
 
10535
fi
 
10536
 
 
10537
cat >>confdefs.h <<_ACEOF
 
10538
#define HAVE_ARMCI_INITIALIZED $ac_cv_search_ARMCI_Initialized
 
10539
_ACEOF
 
10540
 
 
10541
 
 
10542
fi
 
10543
if test "x$happy" = xyes; then :
 
10544
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_stride_info_init" >&5
 
10545
$as_echo_n "checking for library containing armci_stride_info_init... " >&6; }
 
10546
if ${ac_cv_search_armci_stride_info_init+:} false; then :
 
10547
  $as_echo_n "(cached) " >&6
 
10548
else
 
10549
  ac_func_search_save_LIBS=$LIBS
 
10550
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10551
/* end confdefs.h.  */
 
10552
 
 
10553
/* Override any GCC internal prototype to avoid an error.
 
10554
   Use char because int might match the return type of a GCC
 
10555
   builtin and then its argument prototype would still apply.  */
 
10556
#ifdef __cplusplus
 
10557
extern "C"
 
10558
#endif
 
10559
char armci_stride_info_init ();
 
10560
int
 
10561
main ()
 
10562
{
 
10563
return armci_stride_info_init ();
 
10564
  ;
 
10565
  return 0;
 
10566
}
 
10567
_ACEOF
 
10568
for ac_lib in '' armci; do
 
10569
  if test -z "$ac_lib"; then
 
10570
    ac_res="none required"
 
10571
  else
 
10572
    ac_res=-l$ac_lib
 
10573
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10574
  fi
 
10575
  if ac_fn_c_try_link "$LINENO"; then :
 
10576
  ac_cv_search_armci_stride_info_init=$ac_res
 
10577
fi
 
10578
rm -f core conftest.err conftest.$ac_objext \
 
10579
    conftest$ac_exeext
 
10580
  if ${ac_cv_search_armci_stride_info_init+:} false; then :
 
10581
  break
 
10582
fi
 
10583
done
 
10584
if ${ac_cv_search_armci_stride_info_init+:} false; then :
 
10585
 
 
10586
else
 
10587
  ac_cv_search_armci_stride_info_init=no
 
10588
fi
 
10589
rm conftest.$ac_ext
 
10590
LIBS=$ac_func_search_save_LIBS
 
10591
fi
 
10592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_stride_info_init" >&5
 
10593
$as_echo "$ac_cv_search_armci_stride_info_init" >&6; }
 
10594
ac_res=$ac_cv_search_armci_stride_info_init
 
10595
if test "$ac_res" != no; then :
 
10596
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10597
 
 
10598
fi
 
10599
 
 
10600
     if test "x$ac_cv_search_armci_stride_info_init" != xno; then :
 
10601
  ac_cv_search_armci_stride_info_init=1
 
10602
else
 
10603
  ac_cv_search_armci_stride_info_init=0
 
10604
fi
 
10605
 
 
10606
cat >>confdefs.h <<_ACEOF
 
10607
#define HAVE_ARMCI_STRIDE_INFO_INIT $ac_cv_search_armci_stride_info_init
 
10608
_ACEOF
 
10609
 
 
10610
 
 
10611
fi
 
10612
if test "x$happy" = xyes; then :
 
10613
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_notify" >&5
 
10614
$as_echo_n "checking for library containing armci_notify... " >&6; }
 
10615
if ${ac_cv_search_armci_notify+:} false; then :
 
10616
  $as_echo_n "(cached) " >&6
 
10617
else
 
10618
  ac_func_search_save_LIBS=$LIBS
 
10619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10620
/* end confdefs.h.  */
 
10621
 
 
10622
/* Override any GCC internal prototype to avoid an error.
 
10623
   Use char because int might match the return type of a GCC
 
10624
   builtin and then its argument prototype would still apply.  */
 
10625
#ifdef __cplusplus
 
10626
extern "C"
 
10627
#endif
 
10628
char armci_notify ();
 
10629
int
 
10630
main ()
 
10631
{
 
10632
return armci_notify ();
 
10633
  ;
 
10634
  return 0;
 
10635
}
 
10636
_ACEOF
 
10637
for ac_lib in '' armci; do
 
10638
  if test -z "$ac_lib"; then
 
10639
    ac_res="none required"
 
10640
  else
 
10641
    ac_res=-l$ac_lib
 
10642
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10643
  fi
 
10644
  if ac_fn_c_try_link "$LINENO"; then :
 
10645
  ac_cv_search_armci_notify=$ac_res
 
10646
fi
 
10647
rm -f core conftest.err conftest.$ac_objext \
 
10648
    conftest$ac_exeext
 
10649
  if ${ac_cv_search_armci_notify+:} false; then :
 
10650
  break
 
10651
fi
 
10652
done
 
10653
if ${ac_cv_search_armci_notify+:} false; then :
 
10654
 
 
10655
else
 
10656
  ac_cv_search_armci_notify=no
 
10657
fi
 
10658
rm conftest.$ac_ext
 
10659
LIBS=$ac_func_search_save_LIBS
 
10660
fi
 
10661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_notify" >&5
 
10662
$as_echo "$ac_cv_search_armci_notify" >&6; }
 
10663
ac_res=$ac_cv_search_armci_notify
 
10664
if test "$ac_res" != no; then :
 
10665
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10666
 
 
10667
fi
 
10668
 
 
10669
     if test "x$ac_cv_search_armci_notify" != xno; then :
 
10670
  ac_cv_search_armci_notify=1
 
10671
else
 
10672
  ac_cv_search_armci_notify=0
 
10673
fi
 
10674
 
 
10675
cat >>confdefs.h <<_ACEOF
 
10676
#define HAVE_ARMCI_NOTIFY $ac_cv_search_armci_notify
 
10677
_ACEOF
 
10678
 
 
10679
 
 
10680
fi
 
10681
if test "x$happy" = xyes; then :
 
10682
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_msg_init" >&5
 
10683
$as_echo_n "checking for library containing armci_msg_init... " >&6; }
 
10684
if ${ac_cv_search_armci_msg_init+:} false; then :
 
10685
  $as_echo_n "(cached) " >&6
 
10686
else
 
10687
  ac_func_search_save_LIBS=$LIBS
 
10688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10689
/* end confdefs.h.  */
 
10690
 
 
10691
/* Override any GCC internal prototype to avoid an error.
 
10692
   Use char because int might match the return type of a GCC
 
10693
   builtin and then its argument prototype would still apply.  */
 
10694
#ifdef __cplusplus
 
10695
extern "C"
 
10696
#endif
 
10697
char armci_msg_init ();
 
10698
int
 
10699
main ()
 
10700
{
 
10701
return armci_msg_init ();
 
10702
  ;
 
10703
  return 0;
 
10704
}
 
10705
_ACEOF
 
10706
for ac_lib in '' armci; do
 
10707
  if test -z "$ac_lib"; then
 
10708
    ac_res="none required"
 
10709
  else
 
10710
    ac_res=-l$ac_lib
 
10711
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10712
  fi
 
10713
  if ac_fn_c_try_link "$LINENO"; then :
 
10714
  ac_cv_search_armci_msg_init=$ac_res
 
10715
fi
 
10716
rm -f core conftest.err conftest.$ac_objext \
 
10717
    conftest$ac_exeext
 
10718
  if ${ac_cv_search_armci_msg_init+:} false; then :
 
10719
  break
 
10720
fi
 
10721
done
 
10722
if ${ac_cv_search_armci_msg_init+:} false; then :
 
10723
 
 
10724
else
 
10725
  ac_cv_search_armci_msg_init=no
 
10726
fi
 
10727
rm conftest.$ac_ext
 
10728
LIBS=$ac_func_search_save_LIBS
 
10729
fi
 
10730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_msg_init" >&5
 
10731
$as_echo "$ac_cv_search_armci_msg_init" >&6; }
 
10732
ac_res=$ac_cv_search_armci_msg_init
 
10733
if test "$ac_res" != no; then :
 
10734
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10735
 
 
10736
fi
 
10737
 
 
10738
     if test "x$ac_cv_search_armci_msg_init" != xno; then :
 
10739
  ac_cv_search_armci_msg_init=1
 
10740
else
 
10741
  ac_cv_search_armci_msg_init=0
 
10742
fi
 
10743
 
 
10744
cat >>confdefs.h <<_ACEOF
 
10745
#define HAVE_ARMCI_MSG_INIT $ac_cv_search_armci_msg_init
 
10746
_ACEOF
 
10747
 
 
10748
 
 
10749
fi
 
10750
if test "x$happy" = xyes; then :
 
10751
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing armci_msg_finalize" >&5
 
10752
$as_echo_n "checking for library containing armci_msg_finalize... " >&6; }
 
10753
if ${ac_cv_search_armci_msg_finalize+:} false; then :
 
10754
  $as_echo_n "(cached) " >&6
 
10755
else
 
10756
  ac_func_search_save_LIBS=$LIBS
 
10757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10758
/* end confdefs.h.  */
 
10759
 
 
10760
/* Override any GCC internal prototype to avoid an error.
 
10761
   Use char because int might match the return type of a GCC
 
10762
   builtin and then its argument prototype would still apply.  */
 
10763
#ifdef __cplusplus
 
10764
extern "C"
 
10765
#endif
 
10766
char armci_msg_finalize ();
 
10767
int
 
10768
main ()
 
10769
{
 
10770
return armci_msg_finalize ();
 
10771
  ;
 
10772
  return 0;
 
10773
}
 
10774
_ACEOF
 
10775
for ac_lib in '' armci; do
 
10776
  if test -z "$ac_lib"; then
 
10777
    ac_res="none required"
 
10778
  else
 
10779
    ac_res=-l$ac_lib
 
10780
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10781
  fi
 
10782
  if ac_fn_c_try_link "$LINENO"; then :
 
10783
  ac_cv_search_armci_msg_finalize=$ac_res
 
10784
fi
 
10785
rm -f core conftest.err conftest.$ac_objext \
 
10786
    conftest$ac_exeext
 
10787
  if ${ac_cv_search_armci_msg_finalize+:} false; then :
 
10788
  break
 
10789
fi
 
10790
done
 
10791
if ${ac_cv_search_armci_msg_finalize+:} false; then :
 
10792
 
 
10793
else
 
10794
  ac_cv_search_armci_msg_finalize=no
 
10795
fi
 
10796
rm conftest.$ac_ext
 
10797
LIBS=$ac_func_search_save_LIBS
 
10798
fi
 
10799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_armci_msg_finalize" >&5
 
10800
$as_echo "$ac_cv_search_armci_msg_finalize" >&6; }
 
10801
ac_res=$ac_cv_search_armci_msg_finalize
 
10802
if test "$ac_res" != no; then :
 
10803
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10804
 
 
10805
fi
 
10806
 
 
10807
     if test "x$ac_cv_search_armci_msg_finalize" != xno; then :
 
10808
  ac_cv_search_armci_msg_finalize=1
 
10809
else
 
10810
  ac_cv_search_armci_msg_finalize=0
 
10811
fi
 
10812
 
 
10813
cat >>confdefs.h <<_ACEOF
 
10814
#define HAVE_ARMCI_MSG_FINALIZE $ac_cv_search_armci_msg_finalize
 
10815
_ACEOF
 
10816
 
 
10817
 
 
10818
fi
 
10819
 if test "x$ac_cv_search_armci_group_comm" = x1; then
 
10820
  HAVE_ARMCI_GROUP_COMM_TRUE=
 
10821
  HAVE_ARMCI_GROUP_COMM_FALSE='#'
 
10822
else
 
10823
  HAVE_ARMCI_GROUP_COMM_TRUE='#'
 
10824
  HAVE_ARMCI_GROUP_COMM_FALSE=
 
10825
fi
 
10826
 
 
10827
 if test "x$ac_cv_member_ARMCI_Group_comm" = x1; then
 
10828
  HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE=
 
10829
  HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE='#'
 
10830
else
 
10831
  HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE='#'
 
10832
  HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE=
 
10833
fi
 
10834
 
 
10835
 if test "x$ac_cv_search_ARMCI_Initialized" = x1; then
 
10836
  HAVE_ARMCI_INITIALIZED_TRUE=
 
10837
  HAVE_ARMCI_INITIALIZED_FALSE='#'
 
10838
else
 
10839
  HAVE_ARMCI_INITIALIZED_TRUE='#'
 
10840
  HAVE_ARMCI_INITIALIZED_FALSE=
 
10841
fi
 
10842
 
 
10843
 if test "x$ac_cv_search_armci_stride_info_init" = x1; then
 
10844
  HAVE_ARMCI_STRIDE_INFO_INIT_TRUE=
 
10845
  HAVE_ARMCI_STRIDE_INFO_INIT_FALSE='#'
 
10846
else
 
10847
  HAVE_ARMCI_STRIDE_INFO_INIT_TRUE='#'
 
10848
  HAVE_ARMCI_STRIDE_INFO_INIT_FALSE=
 
10849
fi
 
10850
 
 
10851
 if test "x$ac_cv_search_armci_notify" = x1; then
 
10852
  HAVE_ARMCI_NOTIFY_TRUE=
 
10853
  HAVE_ARMCI_NOTIFY_FALSE='#'
 
10854
else
 
10855
  HAVE_ARMCI_NOTIFY_TRUE='#'
 
10856
  HAVE_ARMCI_NOTIFY_FALSE=
 
10857
fi
 
10858
 
 
10859
 if test "x$ac_cv_search_armci_msg_init" = x1; then
 
10860
  HAVE_ARMCI_MSG_INIT_TRUE=
 
10861
  HAVE_ARMCI_MSG_INIT_FALSE='#'
 
10862
else
 
10863
  HAVE_ARMCI_MSG_INIT_TRUE='#'
 
10864
  HAVE_ARMCI_MSG_INIT_FALSE=
 
10865
fi
 
10866
 
 
10867
 if test "x$ac_cv_search_armci_msg_finalize" = x1; then
 
10868
  HAVE_ARMCI_MSG_FINALIZE_TRUE=
 
10869
  HAVE_ARMCI_MSG_FINALIZE_FALSE='#'
 
10870
else
 
10871
  HAVE_ARMCI_MSG_FINALIZE_TRUE='#'
 
10872
  HAVE_ARMCI_MSG_FINALIZE_FALSE=
 
10873
fi
 
10874
 
 
10875
if test "x$happy" = xyes; then :
 
10876
  ga_armci_network=ARMCI; with_armci=yes;
 
10877
else
 
10878
  as_fn_error $? "test for ARMCI_NETWORK=ARMCI failed" "$LINENO" 5
 
10879
fi
 
10880
 
 
10881
fi
 
10882
              if test "x$ga_armci_network" = xBGML; then :
 
10883
 
 
10884
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for BGML..." >&5
 
10885
$as_echo "$as_me: searching for BGML..." >&6;}
 
10886
happy=yes
 
10887
if test "x$happy" = xyes; then :
 
10888
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing BGLML_memcpy" >&5
 
10889
$as_echo_n "checking for library containing BGLML_memcpy... " >&6; }
 
10890
if ${ac_cv_search_BGLML_memcpy+:} false; then :
 
10891
  $as_echo_n "(cached) " >&6
 
10892
else
 
10893
  ac_func_search_save_LIBS=$LIBS
 
10894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10895
/* end confdefs.h.  */
 
10896
 
 
10897
/* Override any GCC internal prototype to avoid an error.
 
10898
   Use char because int might match the return type of a GCC
 
10899
   builtin and then its argument prototype would still apply.  */
 
10900
#ifdef __cplusplus
 
10901
extern "C"
 
10902
#endif
 
10903
char BGLML_memcpy ();
 
10904
int
 
10905
main ()
 
10906
{
 
10907
return BGLML_memcpy ();
 
10908
  ;
 
10909
  return 0;
 
10910
}
 
10911
_ACEOF
 
10912
for ac_lib in '' msglayer.rts; do
 
10913
  if test -z "$ac_lib"; then
 
10914
    ac_res="none required"
 
10915
  else
 
10916
    ac_res=-l$ac_lib
 
10917
    LIBS="-l$ac_lib -lrts.rts -ldevices.rts $ac_func_search_save_LIBS"
 
10918
  fi
 
10919
  if ac_fn_c_try_link "$LINENO"; then :
 
10920
  ac_cv_search_BGLML_memcpy=$ac_res
 
10921
fi
 
10922
rm -f core conftest.err conftest.$ac_objext \
 
10923
    conftest$ac_exeext
 
10924
  if ${ac_cv_search_BGLML_memcpy+:} false; then :
 
10925
  break
 
10926
fi
 
10927
done
 
10928
if ${ac_cv_search_BGLML_memcpy+:} false; then :
 
10929
 
 
10930
else
 
10931
  ac_cv_search_BGLML_memcpy=no
 
10932
fi
 
10933
rm conftest.$ac_ext
 
10934
LIBS=$ac_func_search_save_LIBS
 
10935
fi
 
10936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_BGLML_memcpy" >&5
 
10937
$as_echo "$ac_cv_search_BGLML_memcpy" >&6; }
 
10938
ac_res=$ac_cv_search_BGLML_memcpy
 
10939
if test "$ac_res" != no; then :
 
10940
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
10941
 
 
10942
else
 
10943
  happy=no
 
10944
fi
 
10945
 
 
10946
     case $ac_cv_search_BGLML_memcpy in #(
 
10947
  "none required") :
 
10948
     ;; #(
 
10949
  no) :
 
10950
     ;; #(
 
10951
  *) :
 
10952
    # add msglayer.rts to ARMCI_NETWORK_LIBS if not there
 
10953
         case $ARMCI_NETWORK_LIBS in #(
 
10954
  *msglayer.rts*) :
 
10955
     ;; #(
 
10956
  *) :
 
10957
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lmsglayer.rts" ;;
 
10958
esac
 
10959
         # add extra lib rts.rts to ARMCI_NETWORK_LIBS if not there
 
10960
         case $ARMCI_NETWORK_LIBS in #(
 
10961
  *rts.rts*) :
 
10962
     ;; #(
 
10963
  *) :
 
10964
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lrts.rts" ;;
 
10965
esac
 
10966
         # add extra lib devices.rts to ARMCI_NETWORK_LIBS if not there
 
10967
         case $ARMCI_NETWORK_LIBS in #(
 
10968
  *devices.rts*) :
 
10969
     ;; #(
 
10970
  *) :
 
10971
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -ldevices.rts" ;;
 
10972
esac ;;
 
10973
esac
 
10974
fi
 
10975
if test "x$happy" = xyes; then :
 
10976
  ga_armci_network=BGML; with_bgml=yes;
 
10977
else
 
10978
  as_fn_error $? "test for ARMCI_NETWORK=BGML failed" "$LINENO" 5
 
10979
fi
 
10980
 
 
10981
fi
 
10982
              if test "x$ga_armci_network" = xCRAY_SHMEM; then :
 
10983
 
 
10984
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for CRAY_SHMEM..." >&5
 
10985
$as_echo "$as_me: searching for CRAY_SHMEM..." >&6;}
 
10986
happy=yes
 
10987
if test "x$happy" = xyes; then :
 
10988
  ac_fn_c_check_header_mongrel "$LINENO" "mpp/shmem.h" "ac_cv_header_mpp_shmem_h" "$ac_includes_default"
 
10989
if test "x$ac_cv_header_mpp_shmem_h" = xyes; then :
 
10990
 
 
10991
else
 
10992
  ac_fn_c_check_header_mongrel "$LINENO" "shmem.h" "ac_cv_header_shmem_h" "$ac_includes_default"
 
10993
if test "x$ac_cv_header_shmem_h" = xyes; then :
 
10994
 
 
10995
else
 
10996
  happy=no
 
10997
fi
 
10998
 
 
10999
 
 
11000
fi
 
11001
 
 
11002
 
 
11003
fi
 
11004
if test "x$happy" = xyes; then :
 
11005
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmem_init" >&5
 
11006
$as_echo_n "checking for library containing shmem_init... " >&6; }
 
11007
if ${ac_cv_search_shmem_init+:} false; then :
 
11008
  $as_echo_n "(cached) " >&6
 
11009
else
 
11010
  ac_func_search_save_LIBS=$LIBS
 
11011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11012
/* end confdefs.h.  */
 
11013
 
 
11014
/* Override any GCC internal prototype to avoid an error.
 
11015
   Use char because int might match the return type of a GCC
 
11016
   builtin and then its argument prototype would still apply.  */
 
11017
#ifdef __cplusplus
 
11018
extern "C"
 
11019
#endif
 
11020
char shmem_init ();
 
11021
int
 
11022
main ()
 
11023
{
 
11024
return shmem_init ();
 
11025
  ;
 
11026
  return 0;
 
11027
}
 
11028
_ACEOF
 
11029
for ac_lib in '' sma; do
 
11030
  if test -z "$ac_lib"; then
 
11031
    ac_res="none required"
 
11032
  else
 
11033
    ac_res=-l$ac_lib
 
11034
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11035
  fi
 
11036
  if ac_fn_c_try_link "$LINENO"; then :
 
11037
  ac_cv_search_shmem_init=$ac_res
 
11038
fi
 
11039
rm -f core conftest.err conftest.$ac_objext \
 
11040
    conftest$ac_exeext
 
11041
  if ${ac_cv_search_shmem_init+:} false; then :
 
11042
  break
 
11043
fi
 
11044
done
 
11045
if ${ac_cv_search_shmem_init+:} false; then :
 
11046
 
 
11047
else
 
11048
  ac_cv_search_shmem_init=no
 
11049
fi
 
11050
rm conftest.$ac_ext
 
11051
LIBS=$ac_func_search_save_LIBS
 
11052
fi
 
11053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmem_init" >&5
 
11054
$as_echo "$ac_cv_search_shmem_init" >&6; }
 
11055
ac_res=$ac_cv_search_shmem_init
 
11056
if test "$ac_res" != no; then :
 
11057
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11058
 
 
11059
else
 
11060
  happy=no
 
11061
fi
 
11062
 
 
11063
     case $ac_cv_search_shmem_init in #(
 
11064
  "none required") :
 
11065
     ;; #(
 
11066
  no) :
 
11067
     ;; #(
 
11068
  *) :
 
11069
    # add sma to ARMCI_NETWORK_LIBS if not there
 
11070
         case $ARMCI_NETWORK_LIBS in #(
 
11071
  *sma*) :
 
11072
     ;; #(
 
11073
  *) :
 
11074
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lsma" ;;
 
11075
esac ;;
 
11076
esac
 
11077
fi
 
11078
if test "x$happy" = xyes; then :
 
11079
  ga_armci_network=CRAY_SHMEM; with_cray_shmem=yes;
 
11080
else
 
11081
  as_fn_error $? "test for ARMCI_NETWORK=CRAY_SHMEM failed" "$LINENO" 5
 
11082
fi
 
11083
 
 
11084
fi
 
11085
              if test "x$ga_armci_network" = xDCMF; then :
 
11086
 
 
11087
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for DCMF..." >&5
 
11088
$as_echo "$as_me: searching for DCMF..." >&6;}
 
11089
happy=yes
 
11090
if test "x$happy" = xyes; then :
 
11091
  ac_fn_c_check_header_mongrel "$LINENO" "dcmf.h" "ac_cv_header_dcmf_h" "$ac_includes_default"
 
11092
if test "x$ac_cv_header_dcmf_h" = xyes; then :
 
11093
 
 
11094
else
 
11095
  happy=no
 
11096
fi
 
11097
 
 
11098
 
 
11099
fi
 
11100
if test "x$happy" = xyes; then :
 
11101
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DCMF_Messager_initialize" >&5
 
11102
$as_echo_n "checking for library containing DCMF_Messager_initialize... " >&6; }
 
11103
if ${ac_cv_search_DCMF_Messager_initialize+:} false; then :
 
11104
  $as_echo_n "(cached) " >&6
 
11105
else
 
11106
  ac_func_search_save_LIBS=$LIBS
 
11107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11108
/* end confdefs.h.  */
 
11109
 
 
11110
/* Override any GCC internal prototype to avoid an error.
 
11111
   Use char because int might match the return type of a GCC
 
11112
   builtin and then its argument prototype would still apply.  */
 
11113
#ifdef __cplusplus
 
11114
extern "C"
 
11115
#endif
 
11116
char DCMF_Messager_initialize ();
 
11117
int
 
11118
main ()
 
11119
{
 
11120
return DCMF_Messager_initialize ();
 
11121
  ;
 
11122
  return 0;
 
11123
}
 
11124
_ACEOF
 
11125
for ac_lib in '' dcmf.cnk; do
 
11126
  if test -z "$ac_lib"; then
 
11127
    ac_res="none required"
 
11128
  else
 
11129
    ac_res=-l$ac_lib
 
11130
    LIBS="-l$ac_lib -ldcmfcoll.cnk -lSPI.cna -lrt $ac_func_search_save_LIBS"
 
11131
  fi
 
11132
  if ac_fn_c_try_link "$LINENO"; then :
 
11133
  ac_cv_search_DCMF_Messager_initialize=$ac_res
 
11134
fi
 
11135
rm -f core conftest.err conftest.$ac_objext \
 
11136
    conftest$ac_exeext
 
11137
  if ${ac_cv_search_DCMF_Messager_initialize+:} false; then :
 
11138
  break
 
11139
fi
 
11140
done
 
11141
if ${ac_cv_search_DCMF_Messager_initialize+:} false; then :
 
11142
 
 
11143
else
 
11144
  ac_cv_search_DCMF_Messager_initialize=no
 
11145
fi
 
11146
rm conftest.$ac_ext
 
11147
LIBS=$ac_func_search_save_LIBS
 
11148
fi
 
11149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DCMF_Messager_initialize" >&5
 
11150
$as_echo "$ac_cv_search_DCMF_Messager_initialize" >&6; }
 
11151
ac_res=$ac_cv_search_DCMF_Messager_initialize
 
11152
if test "$ac_res" != no; then :
 
11153
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11154
 
 
11155
else
 
11156
  happy=no
 
11157
fi
 
11158
 
 
11159
     case $ac_cv_search_DCMF_Messager_initialize in #(
 
11160
  "none required") :
 
11161
     ;; #(
 
11162
  no) :
 
11163
     ;; #(
 
11164
  *) :
 
11165
    # add dcmf.cnk to ARMCI_NETWORK_LIBS if not there
 
11166
             case $ARMCI_NETWORK_LIBS in #(
 
11167
  *dcmf.cnk*) :
 
11168
     ;; #(
 
11169
  *) :
 
11170
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -ldcmf.cnk" ;;
 
11171
esac
 
11172
             # add extra lib dcmfcoll.cnk if not there
 
11173
             case $ARMCI_NETWORK_LIBS in #(
 
11174
  *dcmfcoll.cnk*) :
 
11175
     ;; #(
 
11176
  *) :
 
11177
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -ldcmfcoll.cnk" ;;
 
11178
esac
 
11179
             # add extra lib SPI.cna if not there
 
11180
             case $ARMCI_NETWORK_LIBS in #(
 
11181
  *SPI.cna*) :
 
11182
     ;; #(
 
11183
  *) :
 
11184
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lSPI.cna" ;;
 
11185
esac
 
11186
             # add extra lib rt if not there
 
11187
             case $ARMCI_NETWORK_LIBS in #(
 
11188
  *rt*) :
 
11189
     ;; #(
 
11190
  *) :
 
11191
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS -lrt" ;;
 
11192
esac ;;
 
11193
esac
 
11194
fi
 
11195
if test "x$happy" = xyes; then :
 
11196
  ga_armci_network=DCMF; with_dcmf=yes;
 
11197
else
 
11198
  as_fn_error $? "test for ARMCI_NETWORK=DCMF failed" "$LINENO" 5
 
11199
fi
 
11200
 
 
11201
fi
 
11202
              if test "x$ga_armci_network" = xDMAPP; then :
 
11203
 
 
11204
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for DMAPP..." >&5
 
11205
$as_echo "$as_me: searching for DMAPP..." >&6;}
 
11206
happy=yes
 
11207
if test "x$happy" = xyes; then :
 
11208
  ga_armci_network=DMAPP; with_dmapp=yes;
 
11209
else
 
11210
  as_fn_error $? "test for ARMCI_NETWORK=DMAPP failed" "$LINENO" 5
 
11211
fi
 
11212
if test "x$happy" = xyes; then :
 
11213
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethugepagesize" >&5
 
11214
$as_echo_n "checking for library containing gethugepagesize... " >&6; }
 
11215
if ${ac_cv_search_gethugepagesize+:} false; then :
 
11216
  $as_echo_n "(cached) " >&6
 
11217
else
 
11218
  ac_func_search_save_LIBS=$LIBS
 
11219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11220
/* end confdefs.h.  */
 
11221
 
 
11222
/* Override any GCC internal prototype to avoid an error.
 
11223
   Use char because int might match the return type of a GCC
 
11224
   builtin and then its argument prototype would still apply.  */
 
11225
#ifdef __cplusplus
 
11226
extern "C"
 
11227
#endif
 
11228
char gethugepagesize ();
 
11229
int
 
11230
main ()
 
11231
{
 
11232
return gethugepagesize ();
 
11233
  ;
 
11234
  return 0;
 
11235
}
 
11236
_ACEOF
 
11237
for ac_lib in '' hugetlbfs; do
 
11238
  if test -z "$ac_lib"; then
 
11239
    ac_res="none required"
 
11240
  else
 
11241
    ac_res=-l$ac_lib
 
11242
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11243
  fi
 
11244
  if ac_fn_c_try_link "$LINENO"; then :
 
11245
  ac_cv_search_gethugepagesize=$ac_res
 
11246
fi
 
11247
rm -f core conftest.err conftest.$ac_objext \
 
11248
    conftest$ac_exeext
 
11249
  if ${ac_cv_search_gethugepagesize+:} false; then :
 
11250
  break
 
11251
fi
 
11252
done
 
11253
if ${ac_cv_search_gethugepagesize+:} false; then :
 
11254
 
 
11255
else
 
11256
  ac_cv_search_gethugepagesize=no
 
11257
fi
 
11258
rm conftest.$ac_ext
 
11259
LIBS=$ac_func_search_save_LIBS
 
11260
fi
 
11261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethugepagesize" >&5
 
11262
$as_echo "$ac_cv_search_gethugepagesize" >&6; }
 
11263
ac_res=$ac_cv_search_gethugepagesize
 
11264
if test "$ac_res" != no; then :
 
11265
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11266
 
 
11267
fi
 
11268
 
 
11269
     case $ac_cv_search_gethugepagesize in #(
 
11270
  "none required") :
 
11271
     ;; #(
 
11272
  no) :
 
11273
     ;; #(
 
11274
  *) :
 
11275
    # add missing lib to ARMCI_NETWORK_LIBS if not there
 
11276
             case $ARMCI_NETWORK_LIBS in #(
 
11277
  *$ac_cv_search_gethugepagesize*) :
 
11278
     ;; #(
 
11279
  *) :
 
11280
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_gethugepagesize" ;;
 
11281
esac ;;
 
11282
esac
 
11283
fi
 
11284
 
 
11285
fi
 
11286
              if test "x$ga_armci_network" = xLAPI; then :
 
11287
 
 
11288
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for LAPI..." >&5
 
11289
$as_echo "$as_me: searching for LAPI..." >&6;}
 
11290
happy=yes
 
11291
if test "x$happy" = xyes; then :
 
11292
  ac_fn_c_check_header_mongrel "$LINENO" "lapi.h" "ac_cv_header_lapi_h" "$ac_includes_default"
 
11293
if test "x$ac_cv_header_lapi_h" = xyes; then :
 
11294
 
 
11295
else
 
11296
  happy=no
 
11297
fi
 
11298
 
 
11299
 
 
11300
fi
 
11301
if test "x$happy" = xyes; then :
 
11302
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing LAPI_Init" >&5
 
11303
$as_echo_n "checking for library containing LAPI_Init... " >&6; }
 
11304
if ${ac_cv_search_LAPI_Init+:} false; then :
 
11305
  $as_echo_n "(cached) " >&6
 
11306
else
 
11307
  ac_func_search_save_LIBS=$LIBS
 
11308
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11309
/* end confdefs.h.  */
 
11310
 
 
11311
/* Override any GCC internal prototype to avoid an error.
 
11312
   Use char because int might match the return type of a GCC
 
11313
   builtin and then its argument prototype would still apply.  */
 
11314
#ifdef __cplusplus
 
11315
extern "C"
 
11316
#endif
 
11317
char LAPI_Init ();
 
11318
int
 
11319
main ()
 
11320
{
 
11321
return LAPI_Init ();
 
11322
  ;
 
11323
  return 0;
 
11324
}
 
11325
_ACEOF
 
11326
for ac_lib in '' lapi_r lapi; do
 
11327
  if test -z "$ac_lib"; then
 
11328
    ac_res="none required"
 
11329
  else
 
11330
    ac_res=-l$ac_lib
 
11331
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11332
  fi
 
11333
  if ac_fn_c_try_link "$LINENO"; then :
 
11334
  ac_cv_search_LAPI_Init=$ac_res
 
11335
fi
 
11336
rm -f core conftest.err conftest.$ac_objext \
 
11337
    conftest$ac_exeext
 
11338
  if ${ac_cv_search_LAPI_Init+:} false; then :
 
11339
  break
 
11340
fi
 
11341
done
 
11342
if ${ac_cv_search_LAPI_Init+:} false; then :
 
11343
 
 
11344
else
 
11345
  ac_cv_search_LAPI_Init=no
 
11346
fi
 
11347
rm conftest.$ac_ext
 
11348
LIBS=$ac_func_search_save_LIBS
 
11349
fi
 
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_LAPI_Init" >&5
 
11351
$as_echo "$ac_cv_search_LAPI_Init" >&6; }
 
11352
ac_res=$ac_cv_search_LAPI_Init
 
11353
if test "$ac_res" != no; then :
 
11354
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11355
 
 
11356
else
 
11357
  happy=no
 
11358
fi
 
11359
 
 
11360
     case $ac_cv_search_LAPI_Init in #(
 
11361
  "none required") :
 
11362
     ;; #(
 
11363
  no) :
 
11364
     ;; #(
 
11365
  *) :
 
11366
    # add missing lib to ARMCI_NETWORK_LIBS if not there
 
11367
             case $ARMCI_NETWORK_LIBS in #(
 
11368
  *$ac_cv_search_LAPI_Init*) :
 
11369
     ;; #(
 
11370
  *) :
 
11371
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_LAPI_Init" ;;
 
11372
esac ;;
 
11373
esac
 
11374
fi
 
11375
if test "x$happy" = xyes; then :
 
11376
  ga_armci_network=LAPI; with_lapi=yes;
 
11377
else
 
11378
  as_fn_error $? "test for ARMCI_NETWORK=LAPI failed" "$LINENO" 5
 
11379
fi
 
11380
 
 
11381
fi
 
11382
              if test "x$ga_armci_network" = xMPI_TS; then :
 
11383
 
 
11384
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for MPI_TS..." >&5
 
11385
$as_echo "$as_me: searching for MPI_TS..." >&6;}
 
11386
happy=yes
 
11387
if test "x$happy" = xyes; then :
 
11388
  ga_armci_network=MPI_TS; with_mpi_ts=yes;
 
11389
else
 
11390
  as_fn_error $? "test for ARMCI_NETWORK=MPI_TS failed" "$LINENO" 5
 
11391
fi
 
11392
 
 
11393
fi
 
11394
              if test "x$ga_armci_network" = xMPI_MT; then :
 
11395
 
 
11396
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for MPI_MT..." >&5
 
11397
$as_echo "$as_me: searching for MPI_MT..." >&6;}
 
11398
happy=yes
 
11399
CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
11400
LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
11401
LIBS="$LIBS $GA_MP_LIBS"
 
11402
if test "x$happy" = xyes; then :
 
11403
  ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
 
11404
if test "x$ac_cv_header_mpi_h" = xyes; then :
 
11405
 
 
11406
else
 
11407
  happy=no
 
11408
fi
 
11409
 
 
11410
 
 
11411
fi
 
11412
if test "x$happy" = xyes; then :
 
11413
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MPI_Init_thread" >&5
 
11414
$as_echo_n "checking for library containing MPI_Init_thread... " >&6; }
 
11415
if ${ac_cv_search_MPI_Init_thread+:} false; then :
 
11416
  $as_echo_n "(cached) " >&6
 
11417
else
 
11418
  ac_func_search_save_LIBS=$LIBS
 
11419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11420
/* end confdefs.h.  */
 
11421
 
 
11422
/* Override any GCC internal prototype to avoid an error.
 
11423
   Use char because int might match the return type of a GCC
 
11424
   builtin and then its argument prototype would still apply.  */
 
11425
#ifdef __cplusplus
 
11426
extern "C"
 
11427
#endif
 
11428
char MPI_Init_thread ();
 
11429
int
 
11430
main ()
 
11431
{
 
11432
return MPI_Init_thread ();
 
11433
  ;
 
11434
  return 0;
 
11435
}
 
11436
_ACEOF
 
11437
for ac_lib in '' mpi mpich.cnk mpich.rts; do
 
11438
  if test -z "$ac_lib"; then
 
11439
    ac_res="none required"
 
11440
  else
 
11441
    ac_res=-l$ac_lib
 
11442
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11443
  fi
 
11444
  if ac_fn_c_try_link "$LINENO"; then :
 
11445
  ac_cv_search_MPI_Init_thread=$ac_res
 
11446
fi
 
11447
rm -f core conftest.err conftest.$ac_objext \
 
11448
    conftest$ac_exeext
 
11449
  if ${ac_cv_search_MPI_Init_thread+:} false; then :
 
11450
  break
 
11451
fi
 
11452
done
 
11453
if ${ac_cv_search_MPI_Init_thread+:} false; then :
 
11454
 
 
11455
else
 
11456
  ac_cv_search_MPI_Init_thread=no
 
11457
fi
 
11458
rm conftest.$ac_ext
 
11459
LIBS=$ac_func_search_save_LIBS
 
11460
fi
 
11461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MPI_Init_thread" >&5
 
11462
$as_echo "$ac_cv_search_MPI_Init_thread" >&6; }
 
11463
ac_res=$ac_cv_search_MPI_Init_thread
 
11464
if test "$ac_res" != no; then :
 
11465
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11466
 
 
11467
else
 
11468
  happy=no
 
11469
fi
 
11470
 
 
11471
fi
 
11472
if test "x$happy" = xyes; then :
 
11473
  ga_armci_network=MPI_MT; with_mpi_mt=yes;
 
11474
else
 
11475
  as_fn_error $? "test for ARMCI_NETWORK=MPI_MT failed" "$LINENO" 5
 
11476
fi
 
11477
 
 
11478
fi
 
11479
              if test "x$ga_armci_network" = xMPI_SPAWN; then :
 
11480
 
 
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for MPI_SPAWN..." >&5
 
11482
$as_echo "$as_me: searching for MPI_SPAWN..." >&6;}
 
11483
happy=yes
 
11484
CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
11485
LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
11486
LIBS="$LIBS $GA_MP_LIBS"
 
11487
if test "x$happy" = xyes; then :
 
11488
  ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
 
11489
if test "x$ac_cv_header_mpi_h" = xyes; then :
 
11490
 
 
11491
else
 
11492
  happy=no
 
11493
fi
 
11494
 
 
11495
 
 
11496
fi
 
11497
if test "x$happy" = xyes; then :
 
11498
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MPI_Comm_spawn_multiple" >&5
 
11499
$as_echo_n "checking for library containing MPI_Comm_spawn_multiple... " >&6; }
 
11500
if ${ac_cv_search_MPI_Comm_spawn_multiple+:} false; then :
 
11501
  $as_echo_n "(cached) " >&6
 
11502
else
 
11503
  ac_func_search_save_LIBS=$LIBS
 
11504
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11505
/* end confdefs.h.  */
 
11506
 
 
11507
/* Override any GCC internal prototype to avoid an error.
 
11508
   Use char because int might match the return type of a GCC
 
11509
   builtin and then its argument prototype would still apply.  */
 
11510
#ifdef __cplusplus
 
11511
extern "C"
 
11512
#endif
 
11513
char MPI_Comm_spawn_multiple ();
 
11514
int
 
11515
main ()
 
11516
{
 
11517
return MPI_Comm_spawn_multiple ();
 
11518
  ;
 
11519
  return 0;
 
11520
}
 
11521
_ACEOF
 
11522
for ac_lib in '' mpi mpich.cnk mpich.rts; do
 
11523
  if test -z "$ac_lib"; then
 
11524
    ac_res="none required"
 
11525
  else
 
11526
    ac_res=-l$ac_lib
 
11527
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11528
  fi
 
11529
  if ac_fn_c_try_link "$LINENO"; then :
 
11530
  ac_cv_search_MPI_Comm_spawn_multiple=$ac_res
 
11531
fi
 
11532
rm -f core conftest.err conftest.$ac_objext \
 
11533
    conftest$ac_exeext
 
11534
  if ${ac_cv_search_MPI_Comm_spawn_multiple+:} false; then :
 
11535
  break
 
11536
fi
 
11537
done
 
11538
if ${ac_cv_search_MPI_Comm_spawn_multiple+:} false; then :
 
11539
 
 
11540
else
 
11541
  ac_cv_search_MPI_Comm_spawn_multiple=no
 
11542
fi
 
11543
rm conftest.$ac_ext
 
11544
LIBS=$ac_func_search_save_LIBS
 
11545
fi
 
11546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MPI_Comm_spawn_multiple" >&5
 
11547
$as_echo "$ac_cv_search_MPI_Comm_spawn_multiple" >&6; }
 
11548
ac_res=$ac_cv_search_MPI_Comm_spawn_multiple
 
11549
if test "$ac_res" != no; then :
 
11550
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11551
 
 
11552
else
 
11553
  happy=no
 
11554
fi
 
11555
 
 
11556
fi
 
11557
if test "x$happy" = xyes; then :
 
11558
  ga_armci_network=MPI_SPAWN; with_mpi_spawn=yes;
 
11559
else
 
11560
  as_fn_error $? "test for ARMCI_NETWORK=MPI_SPAWN failed" "$LINENO" 5
 
11561
fi
 
11562
 
 
11563
fi
 
11564
              if test "x$ga_armci_network" = xOFA; then :
 
11565
 
 
11566
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for OFA..." >&5
 
11567
$as_echo "$as_me: searching for OFA..." >&6;}
 
11568
happy=yes
 
11569
if test "x$happy" = xyes; then :
 
11570
  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
 
11571
if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
 
11572
 
 
11573
else
 
11574
  happy=no
 
11575
fi
 
11576
 
 
11577
 
 
11578
fi
 
11579
if test "x$happy" = xyes; then :
 
11580
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5
 
11581
$as_echo_n "checking for library containing ibv_open_device... " >&6; }
 
11582
if ${ac_cv_search_ibv_open_device+:} false; then :
 
11583
  $as_echo_n "(cached) " >&6
 
11584
else
 
11585
  ac_func_search_save_LIBS=$LIBS
 
11586
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11587
/* end confdefs.h.  */
 
11588
 
 
11589
/* Override any GCC internal prototype to avoid an error.
 
11590
   Use char because int might match the return type of a GCC
 
11591
   builtin and then its argument prototype would still apply.  */
 
11592
#ifdef __cplusplus
 
11593
extern "C"
 
11594
#endif
 
11595
char ibv_open_device ();
 
11596
int
 
11597
main ()
 
11598
{
 
11599
return ibv_open_device ();
 
11600
  ;
 
11601
  return 0;
 
11602
}
 
11603
_ACEOF
 
11604
for ac_lib in '' ibverbs; do
 
11605
  if test -z "$ac_lib"; then
 
11606
    ac_res="none required"
 
11607
  else
 
11608
    ac_res=-l$ac_lib
 
11609
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11610
  fi
 
11611
  if ac_fn_c_try_link "$LINENO"; then :
 
11612
  ac_cv_search_ibv_open_device=$ac_res
 
11613
fi
 
11614
rm -f core conftest.err conftest.$ac_objext \
 
11615
    conftest$ac_exeext
 
11616
  if ${ac_cv_search_ibv_open_device+:} false; then :
 
11617
  break
 
11618
fi
 
11619
done
 
11620
if ${ac_cv_search_ibv_open_device+:} false; then :
 
11621
 
 
11622
else
 
11623
  ac_cv_search_ibv_open_device=no
 
11624
fi
 
11625
rm conftest.$ac_ext
 
11626
LIBS=$ac_func_search_save_LIBS
 
11627
fi
 
11628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5
 
11629
$as_echo "$ac_cv_search_ibv_open_device" >&6; }
 
11630
ac_res=$ac_cv_search_ibv_open_device
 
11631
if test "$ac_res" != no; then :
 
11632
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11633
 
 
11634
else
 
11635
  happy=no
 
11636
fi
 
11637
 
 
11638
     case $ac_cv_search_ibv_open_device in #(
 
11639
  "none required") :
 
11640
     ;; #(
 
11641
  no) :
 
11642
     ;; #(
 
11643
  *) :
 
11644
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_ibv_open_device" ;;
 
11645
esac
 
11646
fi
 
11647
if test "x$happy" = xyes; then :
 
11648
  ga_armci_network=OFA; with_ofa=yes;
 
11649
else
 
11650
  as_fn_error $? "test for ARMCI_NETWORK=OFA failed" "$LINENO" 5
 
11651
fi
 
11652
 
 
11653
fi
 
11654
              if test "x$ga_armci_network" = xOPENIB; then :
 
11655
 
 
11656
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for OPENIB..." >&5
 
11657
$as_echo "$as_me: searching for OPENIB..." >&6;}
 
11658
happy=yes
 
11659
if test "x$happy" = xyes; then :
 
11660
  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
 
11661
if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
 
11662
 
 
11663
else
 
11664
  happy=no
 
11665
fi
 
11666
 
 
11667
 
 
11668
fi
 
11669
if test "x$happy" = xyes; then :
 
11670
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibv_open_device" >&5
 
11671
$as_echo_n "checking for library containing ibv_open_device... " >&6; }
 
11672
if ${ac_cv_search_ibv_open_device+:} false; then :
 
11673
  $as_echo_n "(cached) " >&6
 
11674
else
 
11675
  ac_func_search_save_LIBS=$LIBS
 
11676
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11677
/* end confdefs.h.  */
 
11678
 
 
11679
/* Override any GCC internal prototype to avoid an error.
 
11680
   Use char because int might match the return type of a GCC
 
11681
   builtin and then its argument prototype would still apply.  */
 
11682
#ifdef __cplusplus
 
11683
extern "C"
 
11684
#endif
 
11685
char ibv_open_device ();
 
11686
int
 
11687
main ()
 
11688
{
 
11689
return ibv_open_device ();
 
11690
  ;
 
11691
  return 0;
 
11692
}
 
11693
_ACEOF
 
11694
for ac_lib in '' ibverbs; do
 
11695
  if test -z "$ac_lib"; then
 
11696
    ac_res="none required"
 
11697
  else
 
11698
    ac_res=-l$ac_lib
 
11699
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11700
  fi
 
11701
  if ac_fn_c_try_link "$LINENO"; then :
 
11702
  ac_cv_search_ibv_open_device=$ac_res
 
11703
fi
 
11704
rm -f core conftest.err conftest.$ac_objext \
 
11705
    conftest$ac_exeext
 
11706
  if ${ac_cv_search_ibv_open_device+:} false; then :
 
11707
  break
 
11708
fi
 
11709
done
 
11710
if ${ac_cv_search_ibv_open_device+:} false; then :
 
11711
 
 
11712
else
 
11713
  ac_cv_search_ibv_open_device=no
 
11714
fi
 
11715
rm conftest.$ac_ext
 
11716
LIBS=$ac_func_search_save_LIBS
 
11717
fi
 
11718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibv_open_device" >&5
 
11719
$as_echo "$ac_cv_search_ibv_open_device" >&6; }
 
11720
ac_res=$ac_cv_search_ibv_open_device
 
11721
if test "$ac_res" != no; then :
 
11722
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11723
 
 
11724
else
 
11725
  happy=no
 
11726
fi
 
11727
 
 
11728
     case $ac_cv_search_ibv_open_device in #(
 
11729
  "none required") :
 
11730
     ;; #(
 
11731
  no) :
 
11732
     ;; #(
 
11733
  *) :
 
11734
    ARMCI_NETWORK_LIBS="$ARMCI_NETWORK_LIBS $ac_cv_search_ibv_open_device" ;;
 
11735
esac
 
11736
fi
 
11737
if test "x$happy" = xyes; then :
 
11738
  ga_armci_network=OPENIB; with_openib=yes;
 
11739
else
 
11740
  as_fn_error $? "test for ARMCI_NETWORK=OPENIB failed" "$LINENO" 5
 
11741
fi
 
11742
 
 
11743
fi
 
11744
              if test "x$ga_armci_network" = xPORTALS; then :
 
11745
 
 
11746
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for PORTALS..." >&5
 
11747
$as_echo "$as_me: searching for PORTALS..." >&6;}
 
11748
happy=yes
 
11749
if test "x$happy" = xyes; then :
 
11750
  ac_fn_c_check_header_mongrel "$LINENO" "portals/portals3.h" "ac_cv_header_portals_portals3_h" "$ac_includes_default"
 
11751
if test "x$ac_cv_header_portals_portals3_h" = xyes; then :
 
11752
 
 
11753
else
 
11754
  happy=no
 
11755
fi
 
11756
 
 
11757
 
 
11758
fi
 
11759
if test "x$happy" = xyes; then :
 
11760
  ac_fn_c_check_header_mongrel "$LINENO" "portals/nal.h" "ac_cv_header_portals_nal_h" "$ac_includes_default"
 
11761
if test "x$ac_cv_header_portals_nal_h" = xyes; then :
 
11762
 
 
11763
else
 
11764
  happy=no
 
11765
fi
 
11766
 
 
11767
 
 
11768
fi
 
11769
if test "x$happy" = xyes; then :
 
11770
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing PtlInit" >&5
 
11771
$as_echo_n "checking for library containing PtlInit... " >&6; }
 
11772
if ${ac_cv_search_PtlInit+:} false; then :
 
11773
  $as_echo_n "(cached) " >&6
 
11774
else
 
11775
  ac_func_search_save_LIBS=$LIBS
 
11776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11777
/* end confdefs.h.  */
 
11778
 
 
11779
/* Override any GCC internal prototype to avoid an error.
 
11780
   Use char because int might match the return type of a GCC
 
11781
   builtin and then its argument prototype would still apply.  */
 
11782
#ifdef __cplusplus
 
11783
extern "C"
 
11784
#endif
 
11785
char PtlInit ();
 
11786
int
 
11787
main ()
 
11788
{
 
11789
return PtlInit ();
 
11790
  ;
 
11791
  return 0;
 
11792
}
 
11793
_ACEOF
 
11794
for ac_lib in '' portals; do
 
11795
  if test -z "$ac_lib"; then
 
11796
    ac_res="none required"
 
11797
  else
 
11798
    ac_res=-l$ac_lib
 
11799
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11800
  fi
 
11801
  if ac_fn_c_try_link "$LINENO"; then :
 
11802
  ac_cv_search_PtlInit=$ac_res
 
11803
fi
 
11804
rm -f core conftest.err conftest.$ac_objext \
 
11805
    conftest$ac_exeext
 
11806
  if ${ac_cv_search_PtlInit+:} false; then :
 
11807
  break
 
11808
fi
 
11809
done
 
11810
if ${ac_cv_search_PtlInit+:} false; then :
 
11811
 
 
11812
else
 
11813
  ac_cv_search_PtlInit=no
 
11814
fi
 
11815
rm conftest.$ac_ext
 
11816
LIBS=$ac_func_search_save_LIBS
 
11817
fi
 
11818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_PtlInit" >&5
 
11819
$as_echo "$ac_cv_search_PtlInit" >&6; }
 
11820
ac_res=$ac_cv_search_PtlInit
 
11821
if test "$ac_res" != no; then :
 
11822
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11823
 
 
11824
else
 
11825
  happy=no
 
11826
fi
 
11827
 
 
11828
fi
 
11829
if test "x$happy" = xyes; then :
 
11830
  ga_armci_network=PORTALS; with_portals=yes;
 
11831
else
 
11832
  as_fn_error $? "test for ARMCI_NETWORK=PORTALS failed" "$LINENO" 5
 
11833
fi
 
11834
 
 
11835
fi
 
11836
              if test "x$ga_armci_network" = xGEMINI; then :
 
11837
 
 
11838
{ $as_echo "$as_me:${as_lineno-$LINENO}: searching for GEMINI..." >&5
 
11839
$as_echo "$as_me: searching for GEMINI..." >&6;}
 
11840
happy=yes
 
11841
if test "x$happy" = xyes; then :
 
11842
  ac_fn_c_check_header_compile "$LINENO" "numatoolkit.h" "ac_cv_header_numatoolkit_h" "
 
11843
$ac_includes_default
 
11844
#include <mpi.h>
 
11845
"
 
11846
if test "x$ac_cv_header_numatoolkit_h" = xyes; then :
 
11847
 
 
11848
else
 
11849
  happy=no
 
11850
fi
 
11851
 
 
11852
 
 
11853
fi
 
11854
if test "x$happy" = xyes; then :
 
11855
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing NTK_Init" >&5
 
11856
$as_echo_n "checking for library containing NTK_Init... " >&6; }
 
11857
if ${ac_cv_search_NTK_Init+:} false; then :
 
11858
  $as_echo_n "(cached) " >&6
 
11859
else
 
11860
  ac_func_search_save_LIBS=$LIBS
 
11861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11862
/* end confdefs.h.  */
 
11863
 
 
11864
/* Override any GCC internal prototype to avoid an error.
 
11865
   Use char because int might match the return type of a GCC
 
11866
   builtin and then its argument prototype would still apply.  */
 
11867
#ifdef __cplusplus
 
11868
extern "C"
 
11869
#endif
 
11870
char NTK_Init ();
 
11871
int
 
11872
main ()
 
11873
{
 
11874
return NTK_Init ();
 
11875
  ;
 
11876
  return 0;
 
11877
}
 
11878
_ACEOF
 
11879
for ac_lib in '' numatoolkit; do
 
11880
  if test -z "$ac_lib"; then
 
11881
    ac_res="none required"
 
11882
  else
 
11883
    ac_res=-l$ac_lib
 
11884
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11885
  fi
 
11886
  if ac_fn_c_try_link "$LINENO"; then :
 
11887
  ac_cv_search_NTK_Init=$ac_res
 
11888
fi
 
11889
rm -f core conftest.err conftest.$ac_objext \
 
11890
    conftest$ac_exeext
 
11891
  if ${ac_cv_search_NTK_Init+:} false; then :
 
11892
  break
 
11893
fi
 
11894
done
 
11895
if ${ac_cv_search_NTK_Init+:} false; then :
 
11896
 
 
11897
else
 
11898
  ac_cv_search_NTK_Init=no
 
11899
fi
 
11900
rm conftest.$ac_ext
 
11901
LIBS=$ac_func_search_save_LIBS
 
11902
fi
 
11903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_NTK_Init" >&5
 
11904
$as_echo "$ac_cv_search_NTK_Init" >&6; }
 
11905
ac_res=$ac_cv_search_NTK_Init
 
11906
if test "$ac_res" != no; then :
 
11907
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11908
 
 
11909
else
 
11910
  happy=no
 
11911
fi
 
11912
 
 
11913
fi
 
11914
# CPPFLAGS must have CRAY_UGNI before looking for the next headers.
 
11915
gemini_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -DCRAY_UGNI"
 
11916
if test "x$happy" = xyes; then :
 
11917
  ac_fn_c_check_header_mongrel "$LINENO" "onesided.h" "ac_cv_header_onesided_h" "$ac_includes_default"
 
11918
if test "x$ac_cv_header_onesided_h" = xyes; then :
 
11919
 
 
11920
else
 
11921
  happy=no
 
11922
fi
 
11923
 
 
11924
 
 
11925
fi
 
11926
if test "x$happy" = xyes; then :
 
11927
  ac_fn_c_check_header_mongrel "$LINENO" "gni.h" "ac_cv_header_gni_h" "$ac_includes_default"
 
11928
if test "x$ac_cv_header_gni_h" = xyes; then :
 
11929
 
 
11930
else
 
11931
  happy=no
 
11932
fi
 
11933
 
 
11934
 
 
11935
fi
 
11936
CPPFLAGS="$gemini_save_CPPFLAGS"
 
11937
if test "x$happy" = xyes; then :
 
11938
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gniInit" >&5
 
11939
$as_echo_n "checking for library containing gniInit... " >&6; }
 
11940
if ${ac_cv_search_gniInit+:} false; then :
 
11941
  $as_echo_n "(cached) " >&6
 
11942
else
 
11943
  ac_func_search_save_LIBS=$LIBS
 
11944
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11945
/* end confdefs.h.  */
 
11946
 
 
11947
/* Override any GCC internal prototype to avoid an error.
 
11948
   Use char because int might match the return type of a GCC
 
11949
   builtin and then its argument prototype would still apply.  */
 
11950
#ifdef __cplusplus
 
11951
extern "C"
 
11952
#endif
 
11953
char gniInit ();
 
11954
int
 
11955
main ()
 
11956
{
 
11957
return gniInit ();
 
11958
  ;
 
11959
  return 0;
 
11960
}
 
11961
_ACEOF
 
11962
for ac_lib in '' onesided; do
 
11963
  if test -z "$ac_lib"; then
 
11964
    ac_res="none required"
 
11965
  else
 
11966
    ac_res=-l$ac_lib
 
11967
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11968
  fi
 
11969
  if ac_fn_c_try_link "$LINENO"; then :
 
11970
  ac_cv_search_gniInit=$ac_res
 
11971
fi
 
11972
rm -f core conftest.err conftest.$ac_objext \
 
11973
    conftest$ac_exeext
 
11974
  if ${ac_cv_search_gniInit+:} false; then :
 
11975
  break
 
11976
fi
 
11977
done
 
11978
if ${ac_cv_search_gniInit+:} false; then :
 
11979
 
 
11980
else
 
11981
  ac_cv_search_gniInit=no
 
11982
fi
 
11983
rm conftest.$ac_ext
 
11984
LIBS=$ac_func_search_save_LIBS
 
11985
fi
 
11986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gniInit" >&5
 
11987
$as_echo "$ac_cv_search_gniInit" >&6; }
 
11988
ac_res=$ac_cv_search_gniInit
 
11989
if test "$ac_res" != no; then :
 
11990
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11991
 
 
11992
else
 
11993
  happy=no
 
11994
fi
 
11995
 
 
11996
fi
 
11997
if test "x$happy" = xyes; then :
 
11998
  ga_armci_network=GEMINI; with_gemini=yes;
 
11999
else
 
12000
  as_fn_error $? "test for ARMCI_NETWORK=GEMINI failed" "$LINENO" 5
 
12001
fi
 
12002
# check for a function introduced in libonesided/1.5
 
12003
# we purposefully abuse the ac_cv_search_onesided_mem_htflush value
 
12004
if test "x$happy" = xyes; then :
 
12005
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing onesided_mem_htflush" >&5
 
12006
$as_echo_n "checking for library containing onesided_mem_htflush... " >&6; }
 
12007
if ${ac_cv_search_onesided_mem_htflush+:} false; then :
 
12008
  $as_echo_n "(cached) " >&6
 
12009
else
 
12010
  ac_func_search_save_LIBS=$LIBS
 
12011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12012
/* end confdefs.h.  */
 
12013
 
 
12014
/* Override any GCC internal prototype to avoid an error.
 
12015
   Use char because int might match the return type of a GCC
 
12016
   builtin and then its argument prototype would still apply.  */
 
12017
#ifdef __cplusplus
 
12018
extern "C"
 
12019
#endif
 
12020
char onesided_mem_htflush ();
 
12021
int
 
12022
main ()
 
12023
{
 
12024
return onesided_mem_htflush ();
 
12025
  ;
 
12026
  return 0;
 
12027
}
 
12028
_ACEOF
 
12029
for ac_lib in '' onesided; do
 
12030
  if test -z "$ac_lib"; then
 
12031
    ac_res="none required"
 
12032
  else
 
12033
    ac_res=-l$ac_lib
 
12034
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12035
  fi
 
12036
  if ac_fn_c_try_link "$LINENO"; then :
 
12037
  ac_cv_search_onesided_mem_htflush=$ac_res
 
12038
fi
 
12039
rm -f core conftest.err conftest.$ac_objext \
 
12040
    conftest$ac_exeext
 
12041
  if ${ac_cv_search_onesided_mem_htflush+:} false; then :
 
12042
  break
 
12043
fi
 
12044
done
 
12045
if ${ac_cv_search_onesided_mem_htflush+:} false; then :
 
12046
 
 
12047
else
 
12048
  ac_cv_search_onesided_mem_htflush=no
 
12049
fi
 
12050
rm conftest.$ac_ext
 
12051
LIBS=$ac_func_search_save_LIBS
 
12052
fi
 
12053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_onesided_mem_htflush" >&5
 
12054
$as_echo "$ac_cv_search_onesided_mem_htflush" >&6; }
 
12055
ac_res=$ac_cv_search_onesided_mem_htflush
 
12056
if test "$ac_res" != no; then :
 
12057
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12058
 
 
12059
fi
 
12060
 
 
12061
     if test "x$ac_cv_search_onesided_mem_htflush" != xno; then :
 
12062
  ac_cv_search_onesided_mem_htflush=1
 
12063
else
 
12064
  ac_cv_search_onesided_mem_htflush=0
 
12065
fi
 
12066
 
 
12067
cat >>confdefs.h <<_ACEOF
 
12068
#define HAVE_ONESIDED_MEM_HTFLUSH $ac_cv_search_onesided_mem_htflush
 
12069
_ACEOF
 
12070
 
 
12071
 
 
12072
fi
 
12073
# check for a function introduced in libonesided/1.6
 
12074
# we purposefully abuse the ac_cv_search_onesided_fadd value
 
12075
if test "x$happy" = xyes; then :
 
12076
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing onesided_fadd" >&5
 
12077
$as_echo_n "checking for library containing onesided_fadd... " >&6; }
 
12078
if ${ac_cv_search_onesided_fadd+:} false; then :
 
12079
  $as_echo_n "(cached) " >&6
 
12080
else
 
12081
  ac_func_search_save_LIBS=$LIBS
 
12082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12083
/* end confdefs.h.  */
 
12084
 
 
12085
/* Override any GCC internal prototype to avoid an error.
 
12086
   Use char because int might match the return type of a GCC
 
12087
   builtin and then its argument prototype would still apply.  */
 
12088
#ifdef __cplusplus
 
12089
extern "C"
 
12090
#endif
 
12091
char onesided_fadd ();
 
12092
int
 
12093
main ()
 
12094
{
 
12095
return onesided_fadd ();
 
12096
  ;
 
12097
  return 0;
 
12098
}
 
12099
_ACEOF
 
12100
for ac_lib in '' onesided; do
 
12101
  if test -z "$ac_lib"; then
 
12102
    ac_res="none required"
 
12103
  else
 
12104
    ac_res=-l$ac_lib
 
12105
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12106
  fi
 
12107
  if ac_fn_c_try_link "$LINENO"; then :
 
12108
  ac_cv_search_onesided_fadd=$ac_res
 
12109
fi
 
12110
rm -f core conftest.err conftest.$ac_objext \
 
12111
    conftest$ac_exeext
 
12112
  if ${ac_cv_search_onesided_fadd+:} false; then :
 
12113
  break
 
12114
fi
 
12115
done
 
12116
if ${ac_cv_search_onesided_fadd+:} false; then :
 
12117
 
 
12118
else
 
12119
  ac_cv_search_onesided_fadd=no
 
12120
fi
 
12121
rm conftest.$ac_ext
 
12122
LIBS=$ac_func_search_save_LIBS
 
12123
fi
 
12124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_onesided_fadd" >&5
 
12125
$as_echo "$ac_cv_search_onesided_fadd" >&6; }
 
12126
ac_res=$ac_cv_search_onesided_fadd
 
12127
if test "$ac_res" != no; then :
 
12128
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12129
 
 
12130
fi
 
12131
 
 
12132
     if test "x$ac_cv_search_onesided_fadd" != xno; then :
 
12133
  ac_cv_search_onesided_fadd=1
 
12134
else
 
12135
  ac_cv_search_onesided_fadd=0
 
12136
fi
 
12137
 
 
12138
cat >>confdefs.h <<_ACEOF
 
12139
#define HAVE_ONESIDED_FADD $ac_cv_search_onesided_fadd
 
12140
_ACEOF
 
12141
 
 
12142
 
 
12143
fi
 
12144
 
 
12145
fi
 
12146
              ;; #(
 
12147
  *) :
 
12148
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: too many armci networks specified: $armci_network_count" >&5
 
12149
$as_echo "$as_me: WARNING: too many armci networks specified: $armci_network_count" >&2;}
 
12150
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the following were specified:" >&5
 
12151
$as_echo "$as_me: WARNING: the following were specified:" >&2;}
 
12152
 
 
12153
 
 
12154
if test "x$with_armci" != x && test "x$with_armci" != xno; then :
 
12155
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-armci=$with_armci" >&5
 
12156
$as_echo "$as_me: WARNING: --with-armci=$with_armci" >&2;}
 
12157
fi
 
12158
 
 
12159
 
 
12160
 
 
12161
 
 
12162
if test "x$with_bgml" != x && test "x$with_bgml" != xno; then :
 
12163
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bgml=$with_bgml" >&5
 
12164
$as_echo "$as_me: WARNING: --with-bgml=$with_bgml" >&2;}
 
12165
fi
 
12166
 
 
12167
 
 
12168
 
 
12169
 
 
12170
if test "x$with_cray_shmem" != x && test "x$with_cray_shmem" != xno; then :
 
12171
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-cray-shmem=$with_cray_shmem" >&5
 
12172
$as_echo "$as_me: WARNING: --with-cray-shmem=$with_cray_shmem" >&2;}
 
12173
fi
 
12174
 
 
12175
 
 
12176
 
 
12177
 
 
12178
if test "x$with_dcmf" != x && test "x$with_dcmf" != xno; then :
 
12179
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dcmf=$with_dcmf" >&5
 
12180
$as_echo "$as_me: WARNING: --with-dcmf=$with_dcmf" >&2;}
 
12181
fi
 
12182
 
 
12183
 
 
12184
 
 
12185
 
 
12186
if test "x$with_dmapp" != x && test "x$with_dmapp" != xno; then :
 
12187
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dmapp=$with_dmapp" >&5
 
12188
$as_echo "$as_me: WARNING: --with-dmapp=$with_dmapp" >&2;}
 
12189
fi
 
12190
 
 
12191
 
 
12192
 
 
12193
 
 
12194
if test "x$with_lapi" != x && test "x$with_lapi" != xno; then :
 
12195
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-lapi=$with_lapi" >&5
 
12196
$as_echo "$as_me: WARNING: --with-lapi=$with_lapi" >&2;}
 
12197
fi
 
12198
 
 
12199
 
 
12200
 
 
12201
 
 
12202
if test "x$with_mpi_ts" != x && test "x$with_mpi_ts" != xno; then :
 
12203
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mpi-ts=$with_mpi_ts" >&5
 
12204
$as_echo "$as_me: WARNING: --with-mpi-ts=$with_mpi_ts" >&2;}
 
12205
fi
 
12206
 
 
12207
 
 
12208
 
 
12209
 
 
12210
if test "x$with_mpi_mt" != x && test "x$with_mpi_mt" != xno; then :
 
12211
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mpi-mt=$with_mpi_mt" >&5
 
12212
$as_echo "$as_me: WARNING: --with-mpi-mt=$with_mpi_mt" >&2;}
 
12213
fi
 
12214
 
 
12215
 
 
12216
 
 
12217
 
 
12218
if test "x$with_mpi_spawn" != x && test "x$with_mpi_spawn" != xno; then :
 
12219
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mpi-spawn=$with_mpi_spawn" >&5
 
12220
$as_echo "$as_me: WARNING: --with-mpi-spawn=$with_mpi_spawn" >&2;}
 
12221
fi
 
12222
 
 
12223
 
 
12224
 
 
12225
 
 
12226
if test "x$with_ofa" != x && test "x$with_ofa" != xno; then :
 
12227
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ofa=$with_ofa" >&5
 
12228
$as_echo "$as_me: WARNING: --with-ofa=$with_ofa" >&2;}
 
12229
fi
 
12230
 
 
12231
 
 
12232
 
 
12233
 
 
12234
if test "x$with_openib" != x && test "x$with_openib" != xno; then :
 
12235
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-openib=$with_openib" >&5
 
12236
$as_echo "$as_me: WARNING: --with-openib=$with_openib" >&2;}
 
12237
fi
 
12238
 
 
12239
 
 
12240
 
 
12241
 
 
12242
if test "x$with_portals" != x && test "x$with_portals" != xno; then :
 
12243
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-portals=$with_portals" >&5
 
12244
$as_echo "$as_me: WARNING: --with-portals=$with_portals" >&2;}
 
12245
fi
 
12246
 
 
12247
 
 
12248
 
 
12249
 
 
12250
if test "x$with_gemini" != x && test "x$with_gemini" != xno; then :
 
12251
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gemini=$with_gemini" >&5
 
12252
$as_echo "$as_me: WARNING: --with-gemini=$with_gemini" >&2;}
 
12253
fi
 
12254
 
 
12255
 
 
12256
 
 
12257
 
 
12258
if test "x$with_sockets" != x && test "x$with_sockets" != xno; then :
 
12259
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-sockets=$with_sockets" >&5
 
12260
$as_echo "$as_me: WARNING: --with-sockets=$with_sockets" >&2;}
 
12261
fi
 
12262
 
 
12263
 
 
12264
         as_fn_error $? "please select only one armci network" "$LINENO" 5 ;;
 
12265
esac
 
12266
fi
 
12267
# Remove ARMCI_NETWORK_CPPFLAGS from CPPFLAGS.
 
12268
CPPFLAGS="$ga_save_CPPFLAGS"
 
12269
# Remove ARMCI_NETWORK_LDFLAGS from LDFLAGS.
 
12270
LDFLAGS="$ga_save_LDFLAGS"
 
12271
# Remove ARMCI_NETWORK_LIBS from LIBS.
 
12272
LIBS="$ga_save_LIBS"
 
12273
 
 
12274
 
 
12275
 
 
12276
 if test "x$with_armci" != x && test "x$with_armci" != xno; then
 
12277
  ARMCI_NETWORK_ARMCI_TRUE=
 
12278
  ARMCI_NETWORK_ARMCI_FALSE='#'
 
12279
else
 
12280
  ARMCI_NETWORK_ARMCI_TRUE='#'
 
12281
  ARMCI_NETWORK_ARMCI_FALSE=
 
12282
fi
 
12283
 
 
12284
 
 
12285
 
 
12286
 
 
12287
 
 
12288
 
 
12289
 
 
12290
 if test "x$with_bgml" != x && test "x$with_bgml" != xno; then
 
12291
  ARMCI_NETWORK_BGML_TRUE=
 
12292
  ARMCI_NETWORK_BGML_FALSE='#'
 
12293
else
 
12294
  ARMCI_NETWORK_BGML_TRUE='#'
 
12295
  ARMCI_NETWORK_BGML_FALSE=
 
12296
fi
 
12297
 
 
12298
 
 
12299
 
 
12300
 
 
12301
 
 
12302
 
 
12303
 
 
12304
 if test "x$with_cray_shmem" != x && test "x$with_cray_shmem" != xno; then
 
12305
  ARMCI_NETWORK_CRAY_SHMEM_TRUE=
 
12306
  ARMCI_NETWORK_CRAY_SHMEM_FALSE='#'
 
12307
else
 
12308
  ARMCI_NETWORK_CRAY_SHMEM_TRUE='#'
 
12309
  ARMCI_NETWORK_CRAY_SHMEM_FALSE=
 
12310
fi
 
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
 
12316
 
 
12317
 
 
12318
 if test "x$with_dcmf" != x && test "x$with_dcmf" != xno; then
 
12319
  ARMCI_NETWORK_DCMF_TRUE=
 
12320
  ARMCI_NETWORK_DCMF_FALSE='#'
 
12321
else
 
12322
  ARMCI_NETWORK_DCMF_TRUE='#'
 
12323
  ARMCI_NETWORK_DCMF_FALSE=
 
12324
fi
 
12325
 
 
12326
 
 
12327
 
 
12328
 
 
12329
 
 
12330
 
 
12331
 
 
12332
 if test "x$with_dmapp" != x && test "x$with_dmapp" != xno; then
 
12333
  ARMCI_NETWORK_DMAPP_TRUE=
 
12334
  ARMCI_NETWORK_DMAPP_FALSE='#'
 
12335
else
 
12336
  ARMCI_NETWORK_DMAPP_TRUE='#'
 
12337
  ARMCI_NETWORK_DMAPP_FALSE=
 
12338
fi
 
12339
 
 
12340
 
 
12341
 
 
12342
 
 
12343
 
 
12344
 
 
12345
 
 
12346
 if test "x$with_lapi" != x && test "x$with_lapi" != xno; then
 
12347
  ARMCI_NETWORK_LAPI_TRUE=
 
12348
  ARMCI_NETWORK_LAPI_FALSE='#'
 
12349
else
 
12350
  ARMCI_NETWORK_LAPI_TRUE='#'
 
12351
  ARMCI_NETWORK_LAPI_FALSE=
 
12352
fi
 
12353
 
 
12354
 
 
12355
 
 
12356
 
 
12357
 
 
12358
 
 
12359
 
 
12360
 if test "x$with_mpi_ts" != x && test "x$with_mpi_ts" != xno; then
 
12361
  ARMCI_NETWORK_MPI_TS_TRUE=
 
12362
  ARMCI_NETWORK_MPI_TS_FALSE='#'
 
12363
else
 
12364
  ARMCI_NETWORK_MPI_TS_TRUE='#'
 
12365
  ARMCI_NETWORK_MPI_TS_FALSE=
 
12366
fi
 
12367
 
 
12368
 
 
12369
 
 
12370
 
 
12371
 
 
12372
 
 
12373
 
 
12374
 if test "x$with_mpi_mt" != x && test "x$with_mpi_mt" != xno; then
 
12375
  ARMCI_NETWORK_MPI_MT_TRUE=
 
12376
  ARMCI_NETWORK_MPI_MT_FALSE='#'
 
12377
else
 
12378
  ARMCI_NETWORK_MPI_MT_TRUE='#'
 
12379
  ARMCI_NETWORK_MPI_MT_FALSE=
 
12380
fi
 
12381
 
 
12382
 
 
12383
 
 
12384
 
 
12385
 
 
12386
 
 
12387
 
 
12388
 if test "x$with_mpi_spawn" != x && test "x$with_mpi_spawn" != xno; then
 
12389
  ARMCI_NETWORK_MPI_SPAWN_TRUE=
 
12390
  ARMCI_NETWORK_MPI_SPAWN_FALSE='#'
 
12391
else
 
12392
  ARMCI_NETWORK_MPI_SPAWN_TRUE='#'
 
12393
  ARMCI_NETWORK_MPI_SPAWN_FALSE=
 
12394
fi
 
12395
 
 
12396
 
 
12397
 
 
12398
 
 
12399
 
 
12400
 
 
12401
 
 
12402
 if test "x$with_ofa" != x && test "x$with_ofa" != xno; then
 
12403
  ARMCI_NETWORK_OFA_TRUE=
 
12404
  ARMCI_NETWORK_OFA_FALSE='#'
 
12405
else
 
12406
  ARMCI_NETWORK_OFA_TRUE='#'
 
12407
  ARMCI_NETWORK_OFA_FALSE=
 
12408
fi
 
12409
 
 
12410
 
 
12411
 
 
12412
 
 
12413
 
 
12414
 
 
12415
 
 
12416
 if test "x$with_openib" != x && test "x$with_openib" != xno; then
 
12417
  ARMCI_NETWORK_OPENIB_TRUE=
 
12418
  ARMCI_NETWORK_OPENIB_FALSE='#'
 
12419
else
 
12420
  ARMCI_NETWORK_OPENIB_TRUE='#'
 
12421
  ARMCI_NETWORK_OPENIB_FALSE=
 
12422
fi
 
12423
 
 
12424
 
 
12425
 
 
12426
 
 
12427
 
 
12428
 
 
12429
 
 
12430
 if test "x$with_gemini" != x && test "x$with_gemini" != xno; then
 
12431
  ARMCI_NETWORK_GEMINI_TRUE=
 
12432
  ARMCI_NETWORK_GEMINI_FALSE='#'
 
12433
else
 
12434
  ARMCI_NETWORK_GEMINI_TRUE='#'
 
12435
  ARMCI_NETWORK_GEMINI_FALSE=
 
12436
fi
 
12437
 
 
12438
 
 
12439
 
 
12440
 
 
12441
 
 
12442
 
 
12443
 
 
12444
 if test "x$with_portals" != x && test "x$with_portals" != xno; then
 
12445
  ARMCI_NETWORK_PORTALS_TRUE=
 
12446
  ARMCI_NETWORK_PORTALS_FALSE='#'
 
12447
else
 
12448
  ARMCI_NETWORK_PORTALS_TRUE='#'
 
12449
  ARMCI_NETWORK_PORTALS_FALSE=
 
12450
fi
 
12451
 
 
12452
 
 
12453
 
 
12454
 
 
12455
 
 
12456
 
 
12457
 
 
12458
 if test "x$with_sockets" != x && test "x$with_sockets" != xno; then
 
12459
  ARMCI_NETWORK_SOCKETS_TRUE=
 
12460
  ARMCI_NETWORK_SOCKETS_FALSE='#'
 
12461
else
 
12462
  ARMCI_NETWORK_SOCKETS_TRUE='#'
 
12463
  ARMCI_NETWORK_SOCKETS_FALSE=
 
12464
fi
 
12465
 
 
12466
 
 
12467
 
 
12468
 
 
12469
 
 
12470
 
 
12471
 
 
12472
 
 
12473
# TODO
 
12474
 if test x != x; then
 
12475
  DCMF_VER_2_TRUE=
 
12476
  DCMF_VER_2_FALSE='#'
 
12477
else
 
12478
  DCMF_VER_2_TRUE='#'
 
12479
  DCMF_VER_2_FALSE=
 
12480
fi
 
12481
  # always false
 
12482
 if test x != x; then
 
12483
  DCMF_VER_0_2_TRUE=
 
12484
  DCMF_VER_0_2_FALSE='#'
 
12485
else
 
12486
  DCMF_VER_0_2_TRUE='#'
 
12487
  DCMF_VER_0_2_FALSE=
 
12488
fi
 
12489
 # always false
 
12490
 if test x = x; then
 
12491
  DCMF_VER_0_3_TRUE=
 
12492
  DCMF_VER_0_3_FALSE='#'
 
12493
else
 
12494
  DCMF_VER_0_3_TRUE='#'
 
12495
  DCMF_VER_0_3_FALSE=
 
12496
fi
 
12497
 # always true
 
12498
 
 
12499
# permanent hack
 
12500
case $ga_armci_network in #(
 
12501
  DMAPP) :
 
12502
    ARMCI_SRC_DIR=comex ;; #(
 
12503
  GEMINI) :
 
12504
    ARMCI_SRC_DIR=src-gemini ;; #(
 
12505
  MPI_MT) :
 
12506
    ARMCI_SRC_DIR=src ;; #(
 
12507
  MPI_TS) :
 
12508
    ARMCI_SRC_DIR=comex ;; #(
 
12509
  OFA) :
 
12510
    ARMCI_SRC_DIR=comex ;; #(
 
12511
  OPENIB) :
 
12512
    ARMCI_SRC_DIR=src ;; #(
 
12513
  PORTALS) :
 
12514
    ARMCI_SRC_DIR=src-portals ;; #(
 
12515
  GEMINI) :
 
12516
    ARMCI_SRC_DIR=src-gemini ;; #(
 
12517
  *) :
 
12518
    ARMCI_SRC_DIR=src ;;
 
12519
esac
 
12520
 
 
12521
 if test "x$ARMCI_SRC_DIR" = "xsrc-portals"; then
 
12522
  ARMCI_SRC_DIR_PORTALS_TRUE=
 
12523
  ARMCI_SRC_DIR_PORTALS_FALSE='#'
 
12524
else
 
12525
  ARMCI_SRC_DIR_PORTALS_TRUE='#'
 
12526
  ARMCI_SRC_DIR_PORTALS_FALSE=
 
12527
fi
 
12528
 
 
12529
 if test "x$ARMCI_SRC_DIR" = "xsrc-gemini"; then
 
12530
  ARMCI_SRC_DIR_GEMINI_TRUE=
 
12531
  ARMCI_SRC_DIR_GEMINI_FALSE='#'
 
12532
else
 
12533
  ARMCI_SRC_DIR_GEMINI_TRUE='#'
 
12534
  ARMCI_SRC_DIR_GEMINI_FALSE=
 
12535
fi
 
12536
 
 
12537
 if test "x$ARMCI_SRC_DIR" = "xcomex"; then
 
12538
  ARMCI_SRC_DIR_COMEX_TRUE=
 
12539
  ARMCI_SRC_DIR_COMEX_FALSE='#'
 
12540
else
 
12541
  ARMCI_SRC_DIR_COMEX_TRUE='#'
 
12542
  ARMCI_SRC_DIR_COMEX_FALSE=
 
12543
fi
 
12544
 
 
12545
 if test "x$ARMCI_SRC_DIR" = "xsrc"; then
 
12546
  ARMCI_SRC_DIR_SRC_TRUE=
 
12547
  ARMCI_SRC_DIR_SRC_FALSE='#'
 
12548
else
 
12549
  ARMCI_SRC_DIR_SRC_TRUE='#'
 
12550
  ARMCI_SRC_DIR_SRC_FALSE=
 
12551
fi
 
12552
 
 
12553
 
 
12554
# tcgmsg5 requires this
 
12555
if test x$ga_armci_network = xLAPI; then :
 
12556
 
 
12557
$as_echo "#define NOTIFY_SENDER 1" >>confdefs.h
 
12558
 
 
12559
 
 
12560
$as_echo "#define LAPI 1" >>confdefs.h
 
12561
 
 
12562
 
 
12563
fi
 
12564
 
 
12565
ga_cray_xt_networks=no
 
12566
if test x$ga_armci_network = xPORTALS; then :
 
12567
  ga_cray_xt_networks=yes
 
12568
fi
 
12569
if test x$ga_armci_network = xCRAY_SHMEM; then :
 
12570
  ga_cray_xt_networks=yes
 
12571
fi
 
12572
 if test x$ga_cray_xt_networks = xyes; then
 
12573
  CRAY_XT_NETWORKS_TRUE=
 
12574
  CRAY_XT_NETWORKS_FALSE='#'
 
12575
else
 
12576
  CRAY_XT_NETWORKS_TRUE='#'
 
12577
  CRAY_XT_NETWORKS_FALSE=
 
12578
fi
 
12579
 
 
12580
 
 
12581
ga_cv_sysv_hack=no
 
12582
# Only perform this hack for ARMCI build.
 
12583
if test "x$ARMCI_TOP_BUILDDIR" != x; then :
 
12584
 
 
12585
    if test x$ga_cv_sysv = xno; then :
 
12586
  case $ga_armci_network in #(
 
12587
  BGML|DCMF|PORTALS|GEMINI) :
 
12588
    ga_cv_sysv_hack=no ;; #(
 
12589
  *) :
 
12590
    ga_cv_sysv_hack=yes ;;
 
12591
esac
 
12592
else
 
12593
  ga_cv_sysv_hack=yes
 
12594
fi
 
12595
if test x$ga_cv_sysv_hack = xyes; then :
 
12596
 
 
12597
$as_echo "#define SYSV 1" >>confdefs.h
 
12598
 
 
12599
fi
 
12600
 
 
12601
fi
 
12602
 if test x$ga_cv_sysv_hack = xyes; then
 
12603
  SYSV_TRUE=
 
12604
  SYSV_FALSE='#'
 
12605
else
 
12606
  SYSV_TRUE='#'
 
12607
  SYSV_FALSE=
 
12608
fi
 
12609
 
 
12610
 
 
12611
# if not using external armci library, the following functions are always available
 
12612
if test "x$ga_armci_network" != xARMCI; then :
 
12613
  $as_echo "#define HAVE_ARMCI_GROUP_COMM 1" >>confdefs.h
 
12614
 
 
12615
     $as_echo "#define HAVE_ARMCI_INITIALIZED 1" >>confdefs.h
 
12616
 
 
12617
     $as_echo "#define HAVE_ARMCI_NOTIFY 1" >>confdefs.h
 
12618
 
 
12619
     $as_echo "#define HAVE_ARMCI_MSG_INIT 1" >>confdefs.h
 
12620
 
 
12621
     $as_echo "#define HAVE_ARMCI_MSG_FINALIZE 1" >>confdefs.h
 
12622
 
 
12623
fi
 
12624
 if test "x$ac_cv_member_ARMCI_Group_comm" = x1; then
 
12625
  HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE=
 
12626
  HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE='#'
 
12627
else
 
12628
  HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE='#'
 
12629
  HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE=
 
12630
fi
 
12631
 
 
12632
 if test "x$ga_armci_network" != xARMCI; then
 
12633
  HAVE_ARMCI_GROUP_COMM_TRUE=
 
12634
  HAVE_ARMCI_GROUP_COMM_FALSE='#'
 
12635
else
 
12636
  HAVE_ARMCI_GROUP_COMM_TRUE='#'
 
12637
  HAVE_ARMCI_GROUP_COMM_FALSE=
 
12638
fi
 
12639
 
 
12640
 if test "x$ga_armci_network" != xARMCI; then
 
12641
  HAVE_ARMCI_INITIALIZED_TRUE=
 
12642
  HAVE_ARMCI_INITIALIZED_FALSE='#'
 
12643
else
 
12644
  HAVE_ARMCI_INITIALIZED_TRUE='#'
 
12645
  HAVE_ARMCI_INITIALIZED_FALSE=
 
12646
fi
 
12647
 
 
12648
 if test "x$ga_armci_network" != xARMCI; then
 
12649
  HAVE_ARMCI_NOTIFY_TRUE=
 
12650
  HAVE_ARMCI_NOTIFY_FALSE='#'
 
12651
else
 
12652
  HAVE_ARMCI_NOTIFY_TRUE='#'
 
12653
  HAVE_ARMCI_NOTIFY_FALSE=
 
12654
fi
 
12655
 
 
12656
 if test "x$ga_armci_network" != xARMCI; then
 
12657
  HAVE_ARMCI_MSG_INIT_TRUE=
 
12658
  HAVE_ARMCI_MSG_INIT_FALSE='#'
 
12659
else
 
12660
  HAVE_ARMCI_MSG_INIT_TRUE='#'
 
12661
  HAVE_ARMCI_MSG_INIT_FALSE=
 
12662
fi
 
12663
 
 
12664
 if test "x$ga_armci_network" != xARMCI; then
 
12665
  HAVE_ARMCI_MSG_FINALIZE_TRUE=
 
12666
  HAVE_ARMCI_MSG_FINALIZE_FALSE='#'
 
12667
else
 
12668
  HAVE_ARMCI_MSG_FINALIZE_TRUE='#'
 
12669
  HAVE_ARMCI_MSG_FINALIZE_FALSE=
 
12670
fi
 
12671
 
 
12672
# the armci iterators only available in the conglomerate sources
 
12673
case $ga_armci_network in #(
 
12674
  ARMCI|GEMINI|PORTALS) :
 
12675
     ;; #(
 
12676
  *) :
 
12677
    $as_echo "#define HAVE_ARMCI_STRIDE_INFO_INIT 1" >>confdefs.h
 
12678
 ;;
 
12679
esac
 
12680
 if test "x$ga_armci_network" != xARMCI && test "x$ga_armci_network" != xGEMINI && test "x$ga_armci_network" != xPORTALS; then
 
12681
  HAVE_ARMCI_STRIDE_INFO_INIT_TRUE=
 
12682
  HAVE_ARMCI_STRIDE_INFO_INIT_FALSE='#'
 
12683
else
 
12684
  HAVE_ARMCI_STRIDE_INFO_INIT_TRUE='#'
 
12685
  HAVE_ARMCI_STRIDE_INFO_INIT_FALSE=
 
12686
fi
 
12687
 
 
12688
 
 
12689
# ugly hack for working around NWChem memory requirements
 
12690
# and MPI startup verus the 'classic' ARMCI startup
 
12691
delay_tcgmsg_mpi_startup=1
 
12692
case $ga_armci_network in #(
 
12693
  ARMCI) :
 
12694
    delay_tcgmsg_mpi_startup=0 ;; #(
 
12695
  BGML) :
 
12696
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12697
  CRAY_SHMEM) :
 
12698
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12699
  DCMF) :
 
12700
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12701
  DMAPP) :
 
12702
    delay_tcgmsg_mpi_startup=0 ;; #(
 
12703
  LAPI) :
 
12704
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12705
  MPI_TS) :
 
12706
    delay_tcgmsg_mpi_startup=0 ;; #(
 
12707
  MPI_SPAWN) :
 
12708
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12709
  OFA) :
 
12710
    delay_tcgmsg_mpi_startup=0 ;; #(
 
12711
  OPENIB) :
 
12712
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12713
  GEMINI) :
 
12714
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12715
  PORTALS) :
 
12716
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12717
  SOCKETS) :
 
12718
    delay_tcgmsg_mpi_startup=1 ;; #(
 
12719
  *) :
 
12720
     ;;
 
12721
esac
 
12722
 
 
12723
cat >>confdefs.h <<_ACEOF
 
12724
#define NEED_DELAY_TCGMSG_MPI_STARTUP $delay_tcgmsg_mpi_startup
 
12725
_ACEOF
 
12726
 
 
12727
 
 
12728
 
 
12729
# Checks for C header files.
 
12730
 
 
12731
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
 
12732
$as_echo_n "checking whether to enable assertions... " >&6; }
 
12733
  # Check whether --enable-assert was given.
 
12734
if test "${enable_assert+set}" = set; then :
 
12735
  enableval=$enable_assert; ac_enable_assert=$enableval
 
12736
     if       test "x$enableval" = xno; then :
 
12737
 
 
12738
$as_echo "#define NDEBUG 1" >>confdefs.h
 
12739
 
 
12740
elif test "x$enableval" != xyes; then :
 
12741
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
 
12742
$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
 
12743
        ac_enable_assert=yes
 
12744
fi
 
12745
else
 
12746
  ac_enable_assert=yes
 
12747
fi
 
12748
 
 
12749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
 
12750
$as_echo "$ac_enable_assert" >&6; }
 
12751
 
 
12752
ac_header_dirent=no
 
12753
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
12754
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
12755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
12756
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
12757
if eval \${$as_ac_Header+:} false; then :
 
12758
  $as_echo_n "(cached) " >&6
 
12759
else
 
12760
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12761
/* end confdefs.h.  */
 
12762
#include <sys/types.h>
 
12763
#include <$ac_hdr>
 
12764
 
 
12765
int
 
12766
main ()
 
12767
{
 
12768
if ((DIR *) 0)
 
12769
return 0;
 
12770
  ;
 
12771
  return 0;
 
12772
}
 
12773
_ACEOF
 
12774
if ac_fn_c_try_compile "$LINENO"; then :
 
12775
  eval "$as_ac_Header=yes"
 
12776
else
 
12777
  eval "$as_ac_Header=no"
 
12778
fi
 
12779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12780
fi
 
12781
eval ac_res=\$$as_ac_Header
 
12782
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
12783
$as_echo "$ac_res" >&6; }
 
12784
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
12785
  cat >>confdefs.h <<_ACEOF
 
12786
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
12787
_ACEOF
 
12788
 
 
12789
ac_header_dirent=$ac_hdr; break
 
12790
fi
 
12791
 
 
12792
done
 
12793
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
12794
if test $ac_header_dirent = dirent.h; then
 
12795
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
12796
$as_echo_n "checking for library containing opendir... " >&6; }
 
12797
if ${ac_cv_search_opendir+:} false; then :
 
12798
  $as_echo_n "(cached) " >&6
 
12799
else
 
12800
  ac_func_search_save_LIBS=$LIBS
 
12801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12802
/* end confdefs.h.  */
 
12803
 
 
12804
/* Override any GCC internal prototype to avoid an error.
 
12805
   Use char because int might match the return type of a GCC
 
12806
   builtin and then its argument prototype would still apply.  */
 
12807
#ifdef __cplusplus
 
12808
extern "C"
 
12809
#endif
 
12810
char opendir ();
 
12811
int
 
12812
main ()
 
12813
{
 
12814
return opendir ();
 
12815
  ;
 
12816
  return 0;
 
12817
}
 
12818
_ACEOF
 
12819
for ac_lib in '' dir; do
 
12820
  if test -z "$ac_lib"; then
 
12821
    ac_res="none required"
 
12822
  else
 
12823
    ac_res=-l$ac_lib
 
12824
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12825
  fi
 
12826
  if ac_fn_c_try_link "$LINENO"; then :
 
12827
  ac_cv_search_opendir=$ac_res
 
12828
fi
 
12829
rm -f core conftest.err conftest.$ac_objext \
 
12830
    conftest$ac_exeext
 
12831
  if ${ac_cv_search_opendir+:} false; then :
 
12832
  break
 
12833
fi
 
12834
done
 
12835
if ${ac_cv_search_opendir+:} false; then :
 
12836
 
 
12837
else
 
12838
  ac_cv_search_opendir=no
 
12839
fi
 
12840
rm conftest.$ac_ext
 
12841
LIBS=$ac_func_search_save_LIBS
 
12842
fi
 
12843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
12844
$as_echo "$ac_cv_search_opendir" >&6; }
 
12845
ac_res=$ac_cv_search_opendir
 
12846
if test "$ac_res" != no; then :
 
12847
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12848
 
 
12849
fi
 
12850
 
 
12851
else
 
12852
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
12853
$as_echo_n "checking for library containing opendir... " >&6; }
 
12854
if ${ac_cv_search_opendir+:} false; then :
 
12855
  $as_echo_n "(cached) " >&6
 
12856
else
 
12857
  ac_func_search_save_LIBS=$LIBS
 
12858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12859
/* end confdefs.h.  */
 
12860
 
 
12861
/* Override any GCC internal prototype to avoid an error.
 
12862
   Use char because int might match the return type of a GCC
 
12863
   builtin and then its argument prototype would still apply.  */
 
12864
#ifdef __cplusplus
 
12865
extern "C"
 
12866
#endif
 
12867
char opendir ();
 
12868
int
 
12869
main ()
 
12870
{
 
12871
return opendir ();
 
12872
  ;
 
12873
  return 0;
 
12874
}
 
12875
_ACEOF
 
12876
for ac_lib in '' x; do
 
12877
  if test -z "$ac_lib"; then
 
12878
    ac_res="none required"
 
12879
  else
 
12880
    ac_res=-l$ac_lib
 
12881
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12882
  fi
 
12883
  if ac_fn_c_try_link "$LINENO"; then :
 
12884
  ac_cv_search_opendir=$ac_res
 
12885
fi
 
12886
rm -f core conftest.err conftest.$ac_objext \
 
12887
    conftest$ac_exeext
 
12888
  if ${ac_cv_search_opendir+:} false; then :
 
12889
  break
 
12890
fi
 
12891
done
 
12892
if ${ac_cv_search_opendir+:} false; then :
 
12893
 
 
12894
else
 
12895
  ac_cv_search_opendir=no
 
12896
fi
 
12897
rm conftest.$ac_ext
 
12898
LIBS=$ac_func_search_save_LIBS
 
12899
fi
 
12900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
12901
$as_echo "$ac_cv_search_opendir" >&6; }
 
12902
ac_res=$ac_cv_search_opendir
 
12903
if test "$ac_res" != no; then :
 
12904
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12905
 
 
12906
fi
 
12907
 
 
12908
fi
 
12909
 
 
12910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
12911
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
12912
if ${ac_cv_header_stdbool_h+:} false; then :
 
12913
  $as_echo_n "(cached) " >&6
 
12914
else
 
12915
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12916
/* end confdefs.h.  */
 
12917
 
 
12918
             #include <stdbool.h>
 
12919
             #ifndef bool
 
12920
              "error: bool is not defined"
 
12921
             #endif
 
12922
             #ifndef false
 
12923
              "error: false is not defined"
 
12924
             #endif
 
12925
             #if false
 
12926
              "error: false is not 0"
 
12927
             #endif
 
12928
             #ifndef true
 
12929
              "error: true is not defined"
 
12930
             #endif
 
12931
             #if true != 1
 
12932
              "error: true is not 1"
 
12933
             #endif
 
12934
             #ifndef __bool_true_false_are_defined
 
12935
              "error: __bool_true_false_are_defined is not defined"
 
12936
             #endif
 
12937
 
 
12938
             struct s { _Bool s: 1; _Bool t; } s;
 
12939
 
 
12940
             char a[true == 1 ? 1 : -1];
 
12941
             char b[false == 0 ? 1 : -1];
 
12942
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
12943
             char d[(bool) 0.5 == true ? 1 : -1];
 
12944
             /* See body of main program for 'e'.  */
 
12945
             char f[(_Bool) 0.0 == false ? 1 : -1];
 
12946
             char g[true];
 
12947
             char h[sizeof (_Bool)];
 
12948
             char i[sizeof s.t];
 
12949
             enum { j = false, k = true, l = false * true, m = true * 256 };
 
12950
             /* The following fails for
 
12951
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
12952
             _Bool n[m];
 
12953
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
12954
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
12955
             /* Catch a bug in an HP-UX C compiler.  See
 
12956
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
12957
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
12958
              */
 
12959
             _Bool q = true;
 
12960
             _Bool *pq = &q;
 
12961
 
 
12962
int
 
12963
main ()
 
12964
{
 
12965
 
 
12966
             bool e = &s;
 
12967
             *pq |= q;
 
12968
             *pq |= ! q;
 
12969
             /* Refer to every declared value, to avoid compiler optimizations.  */
 
12970
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
12971
                     + !m + !n + !o + !p + !q + !pq);
 
12972
 
 
12973
  ;
 
12974
  return 0;
 
12975
}
 
12976
_ACEOF
 
12977
if ac_fn_c_try_compile "$LINENO"; then :
 
12978
  ac_cv_header_stdbool_h=yes
 
12979
else
 
12980
  ac_cv_header_stdbool_h=no
 
12981
fi
 
12982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12983
fi
 
12984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
12985
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
12986
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
12987
if test "x$ac_cv_type__Bool" = xyes; then :
 
12988
 
 
12989
cat >>confdefs.h <<_ACEOF
 
12990
#define HAVE__BOOL 1
 
12991
_ACEOF
 
12992
 
 
12993
 
 
12994
fi
 
12995
 
 
12996
 
 
12997
if test $ac_cv_header_stdbool_h = yes; then
 
12998
 
 
12999
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 
13000
 
 
13001
fi
 
13002
 
 
13003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
13004
$as_echo_n "checking for ANSI C header files... " >&6; }
 
13005
if ${ac_cv_header_stdc+:} false; then :
 
13006
  $as_echo_n "(cached) " >&6
 
13007
else
 
13008
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13009
/* end confdefs.h.  */
 
13010
#include <stdlib.h>
 
13011
#include <stdarg.h>
 
13012
#include <string.h>
 
13013
#include <float.h>
 
13014
 
 
13015
int
 
13016
main ()
 
13017
{
 
13018
 
 
13019
  ;
 
13020
  return 0;
 
13021
}
 
13022
_ACEOF
 
13023
if ac_fn_c_try_compile "$LINENO"; then :
 
13024
  ac_cv_header_stdc=yes
 
13025
else
 
13026
  ac_cv_header_stdc=no
 
13027
fi
 
13028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13029
 
 
13030
if test $ac_cv_header_stdc = yes; then
 
13031
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
13032
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13033
/* end confdefs.h.  */
 
13034
#include <string.h>
 
13035
 
 
13036
_ACEOF
 
13037
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13038
  $EGREP "memchr" >/dev/null 2>&1; then :
 
13039
 
 
13040
else
 
13041
  ac_cv_header_stdc=no
 
13042
fi
 
13043
rm -f conftest*
 
13044
 
 
13045
fi
 
13046
 
 
13047
if test $ac_cv_header_stdc = yes; then
 
13048
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
13049
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13050
/* end confdefs.h.  */
 
13051
#include <stdlib.h>
 
13052
 
 
13053
_ACEOF
 
13054
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13055
  $EGREP "free" >/dev/null 2>&1; then :
 
13056
 
 
13057
else
 
13058
  ac_cv_header_stdc=no
 
13059
fi
 
13060
rm -f conftest*
 
13061
 
 
13062
fi
 
13063
 
 
13064
if test $ac_cv_header_stdc = yes; then
 
13065
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
13066
  if test "$cross_compiling" = yes; then :
 
13067
  :
 
13068
else
 
13069
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13070
/* end confdefs.h.  */
 
13071
#include <ctype.h>
 
13072
#include <stdlib.h>
 
13073
#if ((' ' & 0x0FF) == 0x020)
 
13074
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
13075
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
13076
#else
 
13077
# define ISLOWER(c) \
 
13078
                   (('a' <= (c) && (c) <= 'i') \
 
13079
                     || ('j' <= (c) && (c) <= 'r') \
 
13080
                     || ('s' <= (c) && (c) <= 'z'))
 
13081
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
13082
#endif
 
13083
 
 
13084
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
13085
int
 
13086
main ()
 
13087
{
 
13088
  int i;
 
13089
  for (i = 0; i < 256; i++)
 
13090
    if (XOR (islower (i), ISLOWER (i))
 
13091
        || toupper (i) != TOUPPER (i))
 
13092
      return 2;
 
13093
  return 0;
 
13094
}
 
13095
_ACEOF
 
13096
if ac_fn_c_try_run "$LINENO"; then :
 
13097
 
 
13098
else
 
13099
  ac_cv_header_stdc=no
 
13100
fi
 
13101
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13102
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13103
fi
 
13104
 
 
13105
fi
 
13106
fi
 
13107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
13108
$as_echo "$ac_cv_header_stdc" >&6; }
 
13109
if test $ac_cv_header_stdc = yes; then
 
13110
 
 
13111
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
13112
 
 
13113
fi
 
13114
 
 
13115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
13116
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
 
13117
if ${ac_cv_header_sys_wait_h+:} false; then :
 
13118
  $as_echo_n "(cached) " >&6
 
13119
else
 
13120
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13121
/* end confdefs.h.  */
 
13122
#include <sys/types.h>
 
13123
#include <sys/wait.h>
 
13124
#ifndef WEXITSTATUS
 
13125
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
13126
#endif
 
13127
#ifndef WIFEXITED
 
13128
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
13129
#endif
 
13130
 
 
13131
int
 
13132
main ()
 
13133
{
 
13134
  int s;
 
13135
  wait (&s);
 
13136
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
13137
  ;
 
13138
  return 0;
 
13139
}
 
13140
_ACEOF
 
13141
if ac_fn_c_try_compile "$LINENO"; then :
 
13142
  ac_cv_header_sys_wait_h=yes
 
13143
else
 
13144
  ac_cv_header_sys_wait_h=no
 
13145
fi
 
13146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13147
fi
 
13148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
 
13149
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
 
13150
if test $ac_cv_header_sys_wait_h = yes; then
 
13151
 
 
13152
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
 
13153
 
 
13154
fi
 
13155
 
 
13156
for ac_header in assert.h c_asm.h errno.h fcntl.h float.h ia64/sys/inline.h malloc.h math.h memory.h mpp/shmem.h netdb.h netinet/in.h netinet/tcp.h process.h setjmp.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h strings.h sys/types.h sys/atomic_op.h sys/errno.h sys/file.h sys/ipc.h sys/mman.h sys/param.h sys/sem.h sys/shm.h sys/socket.h sys/stat.h sys/syscall.h sys/systemcfg.h sys/time.h sys/uio.h sys/wait.h time.h unistd.h windows.h winsock.h rpc/rpc.h rpc/types.h rpc/xdr.h
 
13157
do :
 
13158
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13159
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_RPC_TYPES_H
 
13160
#include <rpc/types.h>
 
13161
#endif
 
13162
#ifdef HAVE_SYS_TYPES_H
 
13163
#include <sys/types.h>
 
13164
#endif
 
13165
#ifdef HAVE_SYS_IPC_H
 
13166
#include <sys/ipc.h>
 
13167
#endif
 
13168
"
 
13169
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
13170
 
 
13171
cat >>confdefs.h <<_ACEOF
 
13172
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13173
_ACEOF
 
13174
 
 
13175
else
 
13176
 
 
13177
cat >>confdefs.h <<_ACEOF
 
13178
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 0
 
13179
_ACEOF
 
13180
 
 
13181
fi
 
13182
 
 
13183
done
 
13184
 
 
13185
 
 
13186
# Checks for C typedefs, structures, and compiler characteristics.
 
13187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
13188
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
13189
if ${ac_cv_c_const+:} false; then :
 
13190
  $as_echo_n "(cached) " >&6
 
13191
else
 
13192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13193
/* end confdefs.h.  */
 
13194
 
 
13195
int
 
13196
main ()
 
13197
{
 
13198
 
 
13199
#ifndef __cplusplus
 
13200
  /* Ultrix mips cc rejects this sort of thing.  */
 
13201
  typedef int charset[2];
 
13202
  const charset cs = { 0, 0 };
 
13203
  /* SunOS 4.1.1 cc rejects this.  */
 
13204
  char const *const *pcpcc;
 
13205
  char **ppc;
 
13206
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
13207
  struct point {int x, y;};
 
13208
  static struct point const zero = {0,0};
 
13209
  /* AIX XL C 1.02.0.0 rejects this.
 
13210
     It does not let you subtract one const X* pointer from another in
 
13211
     an arm of an if-expression whose if-part is not a constant
 
13212
     expression */
 
13213
  const char *g = "string";
 
13214
  pcpcc = &g + (g ? g-g : 0);
 
13215
  /* HPUX 7.0 cc rejects these. */
 
13216
  ++pcpcc;
 
13217
  ppc = (char**) pcpcc;
 
13218
  pcpcc = (char const *const *) ppc;
 
13219
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
 
13220
    char tx;
 
13221
    char *t = &tx;
 
13222
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
13223
 
 
13224
    *t++ = 0;
 
13225
    if (s) return 0;
 
13226
  }
 
13227
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
13228
    int x[] = {25, 17};
 
13229
    const int *foo = &x[0];
 
13230
    ++foo;
 
13231
  }
 
13232
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
13233
    typedef const int *iptr;
 
13234
    iptr p = 0;
 
13235
    ++p;
 
13236
  }
 
13237
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
 
13238
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
13239
    struct s { int j; const int *ap[3]; } bx;
 
13240
    struct s *b = &bx; b->j = 5;
 
13241
  }
 
13242
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
13243
    const int foo = 10;
 
13244
    if (!foo) return 0;
 
13245
  }
 
13246
  return !cs[0] && !zero.x;
 
13247
#endif
 
13248
 
 
13249
  ;
 
13250
  return 0;
 
13251
}
 
13252
_ACEOF
 
13253
if ac_fn_c_try_compile "$LINENO"; then :
 
13254
  ac_cv_c_const=yes
 
13255
else
 
13256
  ac_cv_c_const=no
 
13257
fi
 
13258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13259
fi
 
13260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
13261
$as_echo "$ac_cv_c_const" >&6; }
 
13262
if test $ac_cv_c_const = no; then
 
13263
 
 
13264
$as_echo "#define const /**/" >>confdefs.h
 
13265
 
 
13266
fi
 
13267
 
 
13268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
13269
$as_echo_n "checking for inline... " >&6; }
 
13270
if ${ac_cv_c_inline+:} false; then :
 
13271
  $as_echo_n "(cached) " >&6
 
13272
else
 
13273
  ac_cv_c_inline=no
 
13274
for ac_kw in inline __inline__ __inline; do
 
13275
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13276
/* end confdefs.h.  */
 
13277
#ifndef __cplusplus
 
13278
typedef int foo_t;
 
13279
static $ac_kw foo_t static_foo () {return 0; }
 
13280
$ac_kw foo_t foo () {return 0; }
 
13281
#endif
 
13282
 
 
13283
_ACEOF
 
13284
if ac_fn_c_try_compile "$LINENO"; then :
 
13285
  ac_cv_c_inline=$ac_kw
 
13286
fi
 
13287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13288
  test "$ac_cv_c_inline" != no && break
 
13289
done
 
13290
 
 
13291
fi
 
13292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
13293
$as_echo "$ac_cv_c_inline" >&6; }
 
13294
 
 
13295
case $ac_cv_c_inline in
 
13296
  inline | yes) ;;
 
13297
  *)
 
13298
    case $ac_cv_c_inline in
 
13299
      no) ac_val=;;
 
13300
      *) ac_val=$ac_cv_c_inline;;
 
13301
    esac
 
13302
    cat >>confdefs.h <<_ACEOF
 
13303
#ifndef __cplusplus
 
13304
#define inline $ac_val
 
13305
#endif
 
13306
_ACEOF
 
13307
    ;;
 
13308
esac
 
13309
 
 
13310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
 
13311
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 
13312
if ${ac_cv_c_restrict+:} false; then :
 
13313
  $as_echo_n "(cached) " >&6
 
13314
else
 
13315
  ac_cv_c_restrict=no
 
13316
   # The order here caters to the fact that C++ does not require restrict.
 
13317
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
13318
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13319
/* end confdefs.h.  */
 
13320
typedef int * int_ptr;
 
13321
        int foo (int_ptr $ac_kw ip) {
 
13322
        return ip[0];
 
13323
       }
 
13324
int
 
13325
main ()
 
13326
{
 
13327
int s[1];
 
13328
        int * $ac_kw t = s;
 
13329
        t[0] = 0;
 
13330
        return foo(t)
 
13331
  ;
 
13332
  return 0;
 
13333
}
 
13334
_ACEOF
 
13335
if ac_fn_c_try_compile "$LINENO"; then :
 
13336
  ac_cv_c_restrict=$ac_kw
 
13337
fi
 
13338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13339
     test "$ac_cv_c_restrict" != no && break
 
13340
   done
 
13341
 
 
13342
fi
 
13343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
 
13344
$as_echo "$ac_cv_c_restrict" >&6; }
 
13345
 
 
13346
 case $ac_cv_c_restrict in
 
13347
   restrict) ;;
 
13348
   no) $as_echo "#define restrict /**/" >>confdefs.h
 
13349
 ;;
 
13350
   *)  cat >>confdefs.h <<_ACEOF
 
13351
#define restrict $ac_cv_c_restrict
 
13352
_ACEOF
 
13353
 ;;
 
13354
 esac
 
13355
 
 
13356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
 
13357
$as_echo_n "checking for working volatile... " >&6; }
 
13358
if ${ac_cv_c_volatile+:} false; then :
 
13359
  $as_echo_n "(cached) " >&6
 
13360
else
 
13361
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13362
/* end confdefs.h.  */
 
13363
 
 
13364
int
 
13365
main ()
 
13366
{
 
13367
 
 
13368
volatile int x;
 
13369
int * volatile y = (int *) 0;
 
13370
return !x && !y;
 
13371
  ;
 
13372
  return 0;
 
13373
}
 
13374
_ACEOF
 
13375
if ac_fn_c_try_compile "$LINENO"; then :
 
13376
  ac_cv_c_volatile=yes
 
13377
else
 
13378
  ac_cv_c_volatile=no
 
13379
fi
 
13380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13381
fi
 
13382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
 
13383
$as_echo "$ac_cv_c_volatile" >&6; }
 
13384
if test $ac_cv_c_volatile = no; then
 
13385
 
 
13386
$as_echo "#define volatile /**/" >>confdefs.h
 
13387
 
 
13388
fi
 
13389
 
 
13390
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
 
13391
case $ac_cv_c_int16_t in #(
 
13392
  no|yes) ;; #(
 
13393
  *)
 
13394
 
 
13395
cat >>confdefs.h <<_ACEOF
 
13396
#define int16_t $ac_cv_c_int16_t
 
13397
_ACEOF
 
13398
;;
 
13399
esac
 
13400
 
 
13401
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
 
13402
case $ac_cv_c_int32_t in #(
 
13403
  no|yes) ;; #(
 
13404
  *)
 
13405
 
 
13406
cat >>confdefs.h <<_ACEOF
 
13407
#define int32_t $ac_cv_c_int32_t
 
13408
_ACEOF
 
13409
;;
 
13410
esac
 
13411
 
 
13412
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
 
13413
case $ac_cv_c_int64_t in #(
 
13414
  no|yes) ;; #(
 
13415
  *)
 
13416
 
 
13417
cat >>confdefs.h <<_ACEOF
 
13418
#define int64_t $ac_cv_c_int64_t
 
13419
_ACEOF
 
13420
;;
 
13421
esac
 
13422
 
 
13423
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
13424
if test "x$ac_cv_type_off_t" = xyes; then :
 
13425
 
 
13426
else
 
13427
 
 
13428
cat >>confdefs.h <<_ACEOF
 
13429
#define off_t long int
 
13430
_ACEOF
 
13431
 
 
13432
fi
 
13433
 
 
13434
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
13435
if test "x$ac_cv_type_pid_t" = xyes; then :
 
13436
 
 
13437
else
 
13438
 
 
13439
cat >>confdefs.h <<_ACEOF
 
13440
#define pid_t int
 
13441
_ACEOF
 
13442
 
 
13443
fi
 
13444
 
 
13445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
13446
$as_echo_n "checking return type of signal handlers... " >&6; }
 
13447
if ${ac_cv_type_signal+:} false; then :
 
13448
  $as_echo_n "(cached) " >&6
 
13449
else
 
13450
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13451
/* end confdefs.h.  */
 
13452
#include <sys/types.h>
 
13453
#include <signal.h>
 
13454
 
 
13455
int
 
13456
main ()
 
13457
{
 
13458
return *(signal (0, 0)) (0) == 1;
 
13459
  ;
 
13460
  return 0;
 
13461
}
 
13462
_ACEOF
 
13463
if ac_fn_c_try_compile "$LINENO"; then :
 
13464
  ac_cv_type_signal=int
 
13465
else
 
13466
  ac_cv_type_signal=void
 
13467
fi
 
13468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13469
fi
 
13470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
13471
$as_echo "$ac_cv_type_signal" >&6; }
 
13472
 
 
13473
cat >>confdefs.h <<_ACEOF
 
13474
#define RETSIGTYPE $ac_cv_type_signal
 
13475
_ACEOF
 
13476
 
 
13477
 
 
13478
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
13479
if test "x$ac_cv_type_size_t" = xyes; then :
 
13480
 
 
13481
else
 
13482
 
 
13483
cat >>confdefs.h <<_ACEOF
 
13484
#define size_t unsigned int
 
13485
_ACEOF
 
13486
 
 
13487
fi
 
13488
 
 
13489
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
 
13490
if test "x$ac_cv_type_ssize_t" = xyes; then :
 
13491
 
 
13492
else
 
13493
 
 
13494
cat >>confdefs.h <<_ACEOF
 
13495
#define ssize_t int
 
13496
_ACEOF
 
13497
 
 
13498
fi
 
13499
 
 
13500
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
 
13501
case $ac_cv_c_uint8_t in #(
 
13502
  no|yes) ;; #(
 
13503
  *)
 
13504
 
 
13505
$as_echo "#define _UINT8_T 1" >>confdefs.h
 
13506
 
 
13507
 
 
13508
cat >>confdefs.h <<_ACEOF
 
13509
#define uint8_t $ac_cv_c_uint8_t
 
13510
_ACEOF
 
13511
;;
 
13512
  esac
 
13513
 
 
13514
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
 
13515
case $ac_cv_c_uint16_t in #(
 
13516
  no|yes) ;; #(
 
13517
  *)
 
13518
 
 
13519
 
 
13520
cat >>confdefs.h <<_ACEOF
 
13521
#define uint16_t $ac_cv_c_uint16_t
 
13522
_ACEOF
 
13523
;;
 
13524
  esac
 
13525
 
 
13526
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
 
13527
case $ac_cv_c_uint32_t in #(
 
13528
  no|yes) ;; #(
 
13529
  *)
 
13530
 
 
13531
$as_echo "#define _UINT32_T 1" >>confdefs.h
 
13532
 
 
13533
 
 
13534
cat >>confdefs.h <<_ACEOF
 
13535
#define uint32_t $ac_cv_c_uint32_t
 
13536
_ACEOF
 
13537
;;
 
13538
  esac
 
13539
 
 
13540
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
 
13541
case $ac_cv_c_uint64_t in #(
 
13542
  no|yes) ;; #(
 
13543
  *)
 
13544
 
 
13545
$as_echo "#define _UINT64_T 1" >>confdefs.h
 
13546
 
 
13547
 
 
13548
cat >>confdefs.h <<_ACEOF
 
13549
#define uint64_t $ac_cv_c_uint64_t
 
13550
_ACEOF
 
13551
;;
 
13552
  esac
 
13553
 
 
13554
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
 
13555
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
 
13556
 
 
13557
cat >>confdefs.h <<_ACEOF
 
13558
#define HAVE_PTRDIFF_T 1
 
13559
_ACEOF
 
13560
 
 
13561
 
 
13562
fi
 
13563
 
 
13564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor symbol for function name" >&5
 
13565
$as_echo_n "checking for preprocessor symbol for function name... " >&6; }
 
13566
if ${ga_cv_cpp_function+:} false; then :
 
13567
  $as_echo_n "(cached) " >&6
 
13568
else
 
13569
  if test x$ga_cv_cpp_function = x; then :
 
13570
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13571
/* end confdefs.h.  */
 
13572
extern int printf(const char *format, ...);
 
13573
int
 
13574
main ()
 
13575
{
 
13576
printf("__func__ = %s\n", __func__);
 
13577
  ;
 
13578
  return 0;
 
13579
}
 
13580
_ACEOF
 
13581
if ac_fn_c_try_compile "$LINENO"; then :
 
13582
  ga_cv_cpp_function=__func__
 
13583
fi
 
13584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13585
fi
 
13586
if test x$ga_cv_cpp_function = x; then :
 
13587
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13588
/* end confdefs.h.  */
 
13589
extern int printf(const char *format, ...);
 
13590
int
 
13591
main ()
 
13592
{
 
13593
printf("__FUNCTION__ = %s\n", __FUNCTION__);
 
13594
  ;
 
13595
  return 0;
 
13596
}
 
13597
_ACEOF
 
13598
if ac_fn_c_try_compile "$LINENO"; then :
 
13599
  ga_cv_cpp_function=__FUNCTION__
 
13600
fi
 
13601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13602
fi
 
13603
if test x$ga_cv_cpp_function = x; then :
 
13604
  ga_cv_cpp_function='"Unknown"'
 
13605
fi
 
13606
fi
 
13607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cpp_function" >&5
 
13608
$as_echo "$ga_cv_cpp_function" >&6; }
 
13609
 
 
13610
cat >>confdefs.h <<_ACEOF
 
13611
#define FUNCTION_NAME $ga_cv_cpp_function
 
13612
_ACEOF
 
13613
 
 
13614
 
 
13615
 
 
13616
# Check whether --enable-weak was given.
 
13617
if test "${enable_weak+set}" = set; then :
 
13618
  enableval=$enable_weak;
 
13619
else
 
13620
  enable_weak=yes
 
13621
fi
 
13622
 
 
13623
if test "x$ga_cv_target_base" = xCYGWIN; then :
 
13624
  enable_weak=no
 
13625
fi
 
13626
 
 
13627
 
 
13628
if test "x$enable_weak" = xyes; then :
 
13629
  ax_sys_weak_alias=no
 
13630
      # Test whether compiler accepts #pragma form of weak aliasing
 
13631
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma weak" >&5
 
13632
$as_echo_n "checking whether $CC supports #pragma weak... " >&6; }
 
13633
if ${ax_cv_sys_weak_alias_pragma+:} false; then :
 
13634
  $as_echo_n "(cached) " >&6
 
13635
else
 
13636
 
 
13637
 
 
13638
    # Try linking with a weak alias...
 
13639
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13640
/* end confdefs.h.  */
 
13641
 
 
13642
 
 
13643
extern void weakf(int c);
 
13644
#pragma weak weakf = __weakf
 
13645
void __weakf(int c) {}
 
13646
int
 
13647
main ()
 
13648
{
 
13649
weakf(0)
 
13650
  ;
 
13651
  return 0;
 
13652
}
 
13653
_ACEOF
 
13654
if ac_fn_c_try_link "$LINENO"; then :
 
13655
  ax_cv_sys_weak_alias_pragma=yes
 
13656
else
 
13657
  ax_cv_sys_weak_alias_pragma=no
 
13658
fi
 
13659
rm -f core conftest.err conftest.$ac_objext \
 
13660
    conftest$ac_exeext conftest.$ac_ext
 
13661
 
 
13662
fi
 
13663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_pragma" >&5
 
13664
$as_echo "$ax_cv_sys_weak_alias_pragma" >&6; }
 
13665
 
 
13666
  # What was the result of the test?
 
13667
  if test $ax_sys_weak_alias = no &&
 
13668
         test $ax_cv_sys_weak_alias_pragma = yes; then :
 
13669
 
 
13670
    ax_sys_weak_alias=pragma
 
13671
 
 
13672
$as_echo "#define HAVE_SYS_WEAK_ALIAS_PRAGMA 1" >>confdefs.h
 
13673
 
 
13674
 
 
13675
fi
 
13676
 
 
13677
else
 
13678
  ax_cv_sys_weak_alias_pragma=no
 
13679
 
 
13680
$as_echo "#define HAVE_SYS_WEAK_ALIAS_PRAGMA 0" >>confdefs.h
 
13681
 
 
13682
fi
 
13683
 if test "x$ax_cv_sys_weak_alias_pragma" = xyes; then
 
13684
  HAVE_SYS_WEAK_ALIAS_PRAGMA_TRUE=
 
13685
  HAVE_SYS_WEAK_ALIAS_PRAGMA_FALSE='#'
 
13686
else
 
13687
  HAVE_SYS_WEAK_ALIAS_PRAGMA_TRUE='#'
 
13688
  HAVE_SYS_WEAK_ALIAS_PRAGMA_FALSE=
 
13689
fi
 
13690
 
 
13691
# enable shared libs automatically if profiling using weak symbols
 
13692
if test "x$ax_cv_sys_weak_alias_pragma" = xyes; then :
 
13693
  if test "x$enable_profiling" = xyes; then :
 
13694
  enable_shared=yes
 
13695
fi
 
13696
fi
 
13697
 
 
13698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
 
13699
$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
 
13700
if ${ga_cv_union_semun+:} false; then :
 
13701
  $as_echo_n "(cached) " >&6
 
13702
else
 
13703
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13704
/* end confdefs.h.  */
 
13705
#include <sys/types.h>
 
13706
#include <sys/ipc.h>
 
13707
#include <sys/sem.h>
 
13708
int
 
13709
main ()
 
13710
{
 
13711
union semun arg;
 
13712
semctl(0, 0, 0, arg);
 
13713
  ;
 
13714
  return 0;
 
13715
}
 
13716
_ACEOF
 
13717
if ac_fn_c_try_compile "$LINENO"; then :
 
13718
  ga_cv_union_semun=yes
 
13719
else
 
13720
  ga_cv_union_semun=no
 
13721
fi
 
13722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13723
fi
 
13724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_union_semun" >&5
 
13725
$as_echo "$ga_cv_union_semun" >&6; }
 
13726
if test x$ga_cv_union_semun = xyes; then :
 
13727
 
 
13728
$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
 
13729
 
 
13730
fi
 
13731
 
 
13732
 
 
13733
# Checks for C type sizes.
 
13734
# The cast to long int works around a bug in the HP C Compiler
 
13735
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13736
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13737
# This bug is HP SR number 8606223364.
 
13738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
 
13739
$as_echo_n "checking size of void*... " >&6; }
 
13740
if ${ac_cv_sizeof_voidp+:} false; then :
 
13741
  $as_echo_n "(cached) " >&6
 
13742
else
 
13743
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
 
13744
 
 
13745
else
 
13746
  if test "$ac_cv_type_voidp" = yes; then
 
13747
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13748
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13749
as_fn_error 77 "cannot compute sizeof (void*)
 
13750
See \`config.log' for more details" "$LINENO" 5; }
 
13751
   else
 
13752
     ac_cv_sizeof_voidp=0
 
13753
   fi
 
13754
fi
 
13755
 
 
13756
fi
 
13757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
 
13758
$as_echo "$ac_cv_sizeof_voidp" >&6; }
 
13759
 
 
13760
 
 
13761
 
 
13762
cat >>confdefs.h <<_ACEOF
 
13763
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
 
13764
_ACEOF
 
13765
 
 
13766
 
 
13767
# The cast to long int works around a bug in the HP C Compiler
 
13768
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13769
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13770
# This bug is HP SR number 8606223364.
 
13771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
 
13772
$as_echo_n "checking size of char... " >&6; }
 
13773
if ${ac_cv_sizeof_char+:} false; then :
 
13774
  $as_echo_n "(cached) " >&6
 
13775
else
 
13776
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
 
13777
 
 
13778
else
 
13779
  if test "$ac_cv_type_char" = yes; then
 
13780
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13781
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13782
as_fn_error 77 "cannot compute sizeof (char)
 
13783
See \`config.log' for more details" "$LINENO" 5; }
 
13784
   else
 
13785
     ac_cv_sizeof_char=0
 
13786
   fi
 
13787
fi
 
13788
 
 
13789
fi
 
13790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
 
13791
$as_echo "$ac_cv_sizeof_char" >&6; }
 
13792
 
 
13793
 
 
13794
 
 
13795
cat >>confdefs.h <<_ACEOF
 
13796
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
13797
_ACEOF
 
13798
 
 
13799
 
 
13800
# The cast to long int works around a bug in the HP C Compiler
 
13801
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13802
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13803
# This bug is HP SR number 8606223364.
 
13804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
 
13805
$as_echo_n "checking size of short... " >&6; }
 
13806
if ${ac_cv_sizeof_short+:} false; then :
 
13807
  $as_echo_n "(cached) " >&6
 
13808
else
 
13809
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
 
13810
 
 
13811
else
 
13812
  if test "$ac_cv_type_short" = yes; then
 
13813
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13814
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13815
as_fn_error 77 "cannot compute sizeof (short)
 
13816
See \`config.log' for more details" "$LINENO" 5; }
 
13817
   else
 
13818
     ac_cv_sizeof_short=0
 
13819
   fi
 
13820
fi
 
13821
 
 
13822
fi
 
13823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
 
13824
$as_echo "$ac_cv_sizeof_short" >&6; }
 
13825
 
 
13826
 
 
13827
 
 
13828
cat >>confdefs.h <<_ACEOF
 
13829
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
13830
_ACEOF
 
13831
 
 
13832
 
 
13833
# The cast to long int works around a bug in the HP C Compiler
 
13834
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13835
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13836
# This bug is HP SR number 8606223364.
 
13837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
 
13838
$as_echo_n "checking size of int... " >&6; }
 
13839
if ${ac_cv_sizeof_int+:} false; then :
 
13840
  $as_echo_n "(cached) " >&6
 
13841
else
 
13842
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
 
13843
 
 
13844
else
 
13845
  if test "$ac_cv_type_int" = yes; then
 
13846
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13847
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13848
as_fn_error 77 "cannot compute sizeof (int)
 
13849
See \`config.log' for more details" "$LINENO" 5; }
 
13850
   else
 
13851
     ac_cv_sizeof_int=0
 
13852
   fi
 
13853
fi
 
13854
 
 
13855
fi
 
13856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
 
13857
$as_echo "$ac_cv_sizeof_int" >&6; }
 
13858
 
 
13859
 
 
13860
 
 
13861
cat >>confdefs.h <<_ACEOF
 
13862
#define SIZEOF_INT $ac_cv_sizeof_int
 
13863
_ACEOF
 
13864
 
 
13865
 
 
13866
# The cast to long int works around a bug in the HP C Compiler
 
13867
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13868
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13869
# This bug is HP SR number 8606223364.
 
13870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
13871
$as_echo_n "checking size of long... " >&6; }
 
13872
if ${ac_cv_sizeof_long+:} false; then :
 
13873
  $as_echo_n "(cached) " >&6
 
13874
else
 
13875
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
13876
 
 
13877
else
 
13878
  if test "$ac_cv_type_long" = yes; then
 
13879
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13880
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13881
as_fn_error 77 "cannot compute sizeof (long)
 
13882
See \`config.log' for more details" "$LINENO" 5; }
 
13883
   else
 
13884
     ac_cv_sizeof_long=0
 
13885
   fi
 
13886
fi
 
13887
 
 
13888
fi
 
13889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
13890
$as_echo "$ac_cv_sizeof_long" >&6; }
 
13891
 
 
13892
 
 
13893
 
 
13894
cat >>confdefs.h <<_ACEOF
 
13895
#define SIZEOF_LONG $ac_cv_sizeof_long
 
13896
_ACEOF
 
13897
 
 
13898
 
 
13899
# The cast to long int works around a bug in the HP C Compiler
 
13900
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13901
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13902
# This bug is HP SR number 8606223364.
 
13903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
 
13904
$as_echo_n "checking size of long long... " >&6; }
 
13905
if ${ac_cv_sizeof_long_long+:} false; then :
 
13906
  $as_echo_n "(cached) " >&6
 
13907
else
 
13908
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
 
13909
 
 
13910
else
 
13911
  if test "$ac_cv_type_long_long" = yes; then
 
13912
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13913
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13914
as_fn_error 77 "cannot compute sizeof (long long)
 
13915
See \`config.log' for more details" "$LINENO" 5; }
 
13916
   else
 
13917
     ac_cv_sizeof_long_long=0
 
13918
   fi
 
13919
fi
 
13920
 
 
13921
fi
 
13922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
 
13923
$as_echo "$ac_cv_sizeof_long_long" >&6; }
 
13924
 
 
13925
 
 
13926
 
 
13927
cat >>confdefs.h <<_ACEOF
 
13928
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
13929
_ACEOF
 
13930
 
 
13931
 
 
13932
# The cast to long int works around a bug in the HP C Compiler
 
13933
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13934
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13935
# This bug is HP SR number 8606223364.
 
13936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
 
13937
$as_echo_n "checking size of float... " >&6; }
 
13938
if ${ac_cv_sizeof_float+:} false; then :
 
13939
  $as_echo_n "(cached) " >&6
 
13940
else
 
13941
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
 
13942
 
 
13943
else
 
13944
  if test "$ac_cv_type_float" = yes; then
 
13945
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13946
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13947
as_fn_error 77 "cannot compute sizeof (float)
 
13948
See \`config.log' for more details" "$LINENO" 5; }
 
13949
   else
 
13950
     ac_cv_sizeof_float=0
 
13951
   fi
 
13952
fi
 
13953
 
 
13954
fi
 
13955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
 
13956
$as_echo "$ac_cv_sizeof_float" >&6; }
 
13957
 
 
13958
 
 
13959
 
 
13960
cat >>confdefs.h <<_ACEOF
 
13961
#define SIZEOF_FLOAT $ac_cv_sizeof_float
 
13962
_ACEOF
 
13963
 
 
13964
 
 
13965
# The cast to long int works around a bug in the HP C Compiler
 
13966
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13967
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13968
# This bug is HP SR number 8606223364.
 
13969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
 
13970
$as_echo_n "checking size of double... " >&6; }
 
13971
if ${ac_cv_sizeof_double+:} false; then :
 
13972
  $as_echo_n "(cached) " >&6
 
13973
else
 
13974
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
 
13975
 
 
13976
else
 
13977
  if test "$ac_cv_type_double" = yes; then
 
13978
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13979
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13980
as_fn_error 77 "cannot compute sizeof (double)
 
13981
See \`config.log' for more details" "$LINENO" 5; }
 
13982
   else
 
13983
     ac_cv_sizeof_double=0
 
13984
   fi
 
13985
fi
 
13986
 
 
13987
fi
 
13988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
 
13989
$as_echo "$ac_cv_sizeof_double" >&6; }
 
13990
 
 
13991
 
 
13992
 
 
13993
cat >>confdefs.h <<_ACEOF
 
13994
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
 
13995
_ACEOF
 
13996
 
 
13997
 
 
13998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smallest C integer matching void*" >&5
 
13999
$as_echo_n "checking for smallest C integer matching void*... " >&6; }
 
14000
if ${ga_cv_c_pointer_as_integer+:} false; then :
 
14001
  $as_echo_n "(cached) " >&6
 
14002
else
 
14003
  if test "x$ac_cv_sizeof_voidp" = "x$ac_cv_sizeof_short"; then :
 
14004
  ga_cv_c_pointer_as_integer=short
 
14005
elif test "x$ac_cv_sizeof_voidp" = "x$ac_cv_sizeof_int"; then :
 
14006
  ga_cv_c_pointer_as_integer=int
 
14007
elif test "x$ac_cv_sizeof_voidp" = "x$ac_cv_sizeof_long"; then :
 
14008
  ga_cv_c_pointer_as_integer=long
 
14009
elif test "x$ac_cv_sizeof_voidp" = "x$ac_cv_sizeof_long_long"; then :
 
14010
  ga_cv_c_pointer_as_integer="long long"
 
14011
else
 
14012
  as_fn_error $? "Could not determine smallest C integer matching void*" "$LINENO" 5
 
14013
fi
 
14014
fi
 
14015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_pointer_as_integer" >&5
 
14016
$as_echo "$ga_cv_c_pointer_as_integer" >&6; }
 
14017
C_POINTER_AS_INTEGER=$ga_cv_c_pointer_as_integer
 
14018
 
 
14019
 
 
14020
 
 
14021
# Checks for C library functions.
 
14022
for ac_header in vfork.h
 
14023
do :
 
14024
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
14025
if test "x$ac_cv_header_vfork_h" = xyes; then :
 
14026
  cat >>confdefs.h <<_ACEOF
 
14027
#define HAVE_VFORK_H 1
 
14028
_ACEOF
 
14029
 
 
14030
fi
 
14031
 
 
14032
done
 
14033
 
 
14034
for ac_func in fork vfork
 
14035
do :
 
14036
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14037
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14038
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14039
  cat >>confdefs.h <<_ACEOF
 
14040
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14041
_ACEOF
 
14042
 
 
14043
fi
 
14044
done
 
14045
 
 
14046
if test "x$ac_cv_func_fork" = xyes; then
 
14047
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
14048
$as_echo_n "checking for working fork... " >&6; }
 
14049
if ${ac_cv_func_fork_works+:} false; then :
 
14050
  $as_echo_n "(cached) " >&6
 
14051
else
 
14052
  if test "$cross_compiling" = yes; then :
 
14053
  ac_cv_func_fork_works=cross
 
14054
else
 
14055
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14056
/* end confdefs.h.  */
 
14057
$ac_includes_default
 
14058
int
 
14059
main ()
 
14060
{
 
14061
 
 
14062
          /* By Ruediger Kuhlmann. */
 
14063
          return fork () < 0;
 
14064
 
 
14065
  ;
 
14066
  return 0;
 
14067
}
 
14068
_ACEOF
 
14069
if ac_fn_c_try_run "$LINENO"; then :
 
14070
  ac_cv_func_fork_works=yes
 
14071
else
 
14072
  ac_cv_func_fork_works=no
 
14073
fi
 
14074
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14075
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14076
fi
 
14077
 
 
14078
fi
 
14079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
14080
$as_echo "$ac_cv_func_fork_works" >&6; }
 
14081
 
 
14082
else
 
14083
  ac_cv_func_fork_works=$ac_cv_func_fork
 
14084
fi
 
14085
if test "x$ac_cv_func_fork_works" = xcross; then
 
14086
  case $host in
 
14087
    *-*-amigaos* | *-*-msdosdjgpp*)
 
14088
      # Override, as these systems have only a dummy fork() stub
 
14089
      ac_cv_func_fork_works=no
 
14090
      ;;
 
14091
    *)
 
14092
      ac_cv_func_fork_works=yes
 
14093
      ;;
 
14094
  esac
 
14095
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
14096
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
14097
fi
 
14098
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
14099
if test "x$ac_cv_func_vfork" = xyes; then
 
14100
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
14101
$as_echo_n "checking for working vfork... " >&6; }
 
14102
if ${ac_cv_func_vfork_works+:} false; then :
 
14103
  $as_echo_n "(cached) " >&6
 
14104
else
 
14105
  if test "$cross_compiling" = yes; then :
 
14106
  ac_cv_func_vfork_works=cross
 
14107
else
 
14108
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14109
/* end confdefs.h.  */
 
14110
/* Thanks to Paul Eggert for this test.  */
 
14111
$ac_includes_default
 
14112
#include <sys/wait.h>
 
14113
#ifdef HAVE_VFORK_H
 
14114
# include <vfork.h>
 
14115
#endif
 
14116
/* On some sparc systems, changes by the child to local and incoming
 
14117
   argument registers are propagated back to the parent.  The compiler
 
14118
   is told about this with #include <vfork.h>, but some compilers
 
14119
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
14120
   static variable whose address is put into a register that is
 
14121
   clobbered by the vfork.  */
 
14122
static void
 
14123
#ifdef __cplusplus
 
14124
sparc_address_test (int arg)
 
14125
# else
 
14126
sparc_address_test (arg) int arg;
 
14127
#endif
 
14128
{
 
14129
  static pid_t child;
 
14130
  if (!child) {
 
14131
    child = vfork ();
 
14132
    if (child < 0) {
 
14133
      perror ("vfork");
 
14134
      _exit(2);
 
14135
    }
 
14136
    if (!child) {
 
14137
      arg = getpid();
 
14138
      write(-1, "", 0);
 
14139
      _exit (arg);
 
14140
    }
 
14141
  }
 
14142
}
 
14143
 
 
14144
int
 
14145
main ()
 
14146
{
 
14147
  pid_t parent = getpid ();
 
14148
  pid_t child;
 
14149
 
 
14150
  sparc_address_test (0);
 
14151
 
 
14152
  child = vfork ();
 
14153
 
 
14154
  if (child == 0) {
 
14155
    /* Here is another test for sparc vfork register problems.  This
 
14156
       test uses lots of local variables, at least as many local
 
14157
       variables as main has allocated so far including compiler
 
14158
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
14159
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
14160
       reuse the register of parent for one of the local variables,
 
14161
       since it will think that parent can't possibly be used any more
 
14162
       in this routine.  Assigning to the local variable will thus
 
14163
       munge parent in the parent process.  */
 
14164
    pid_t
 
14165
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
14166
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
14167
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
14168
       use the same hardware register for all 8 local variables.  */
 
14169
    if (p != p1 || p != p2 || p != p3 || p != p4
 
14170
        || p != p5 || p != p6 || p != p7)
 
14171
      _exit(1);
 
14172
 
 
14173
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
14174
       from child file descriptors.  If the child closes a descriptor
 
14175
       before it execs or exits, this munges the parent's descriptor
 
14176
       as well.  Test for this by closing stdout in the child.  */
 
14177
    _exit(close(fileno(stdout)) != 0);
 
14178
  } else {
 
14179
    int status;
 
14180
    struct stat st;
 
14181
 
 
14182
    while (wait(&status) != child)
 
14183
      ;
 
14184
    return (
 
14185
         /* Was there some problem with vforking?  */
 
14186
         child < 0
 
14187
 
 
14188
         /* Did the child fail?  (This shouldn't happen.)  */
 
14189
         || status
 
14190
 
 
14191
         /* Did the vfork/compiler bug occur?  */
 
14192
         || parent != getpid()
 
14193
 
 
14194
         /* Did the file descriptor bug occur?  */
 
14195
         || fstat(fileno(stdout), &st) != 0
 
14196
         );
 
14197
  }
 
14198
}
 
14199
_ACEOF
 
14200
if ac_fn_c_try_run "$LINENO"; then :
 
14201
  ac_cv_func_vfork_works=yes
 
14202
else
 
14203
  ac_cv_func_vfork_works=no
 
14204
fi
 
14205
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14206
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14207
fi
 
14208
 
 
14209
fi
 
14210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
14211
$as_echo "$ac_cv_func_vfork_works" >&6; }
 
14212
 
 
14213
fi;
 
14214
if test "x$ac_cv_func_fork_works" = xcross; then
 
14215
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
14216
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
14217
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
14218
fi
 
14219
 
 
14220
if test "x$ac_cv_func_vfork_works" = xyes; then
 
14221
 
 
14222
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 
14223
 
 
14224
else
 
14225
 
 
14226
$as_echo "#define vfork fork" >>confdefs.h
 
14227
 
 
14228
fi
 
14229
if test "x$ac_cv_func_fork_works" = xyes; then
 
14230
 
 
14231
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
14232
 
 
14233
fi
 
14234
 
 
14235
 
 
14236
 
 
14237
 
 
14238
  for ac_header in $ac_header_list
 
14239
do :
 
14240
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14241
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
14242
"
 
14243
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
14244
  cat >>confdefs.h <<_ACEOF
 
14245
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14246
_ACEOF
 
14247
 
 
14248
fi
 
14249
 
 
14250
done
 
14251
 
 
14252
 
 
14253
 
 
14254
 
 
14255
 
 
14256
 
 
14257
 
 
14258
 
 
14259
for ac_func in getpagesize
 
14260
do :
 
14261
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 
14262
if test "x$ac_cv_func_getpagesize" = xyes; then :
 
14263
  cat >>confdefs.h <<_ACEOF
 
14264
#define HAVE_GETPAGESIZE 1
 
14265
_ACEOF
 
14266
 
 
14267
fi
 
14268
done
 
14269
 
 
14270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
 
14271
$as_echo_n "checking for working mmap... " >&6; }
 
14272
if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
 
14273
  $as_echo_n "(cached) " >&6
 
14274
else
 
14275
  if test "$cross_compiling" = yes; then :
 
14276
  ac_cv_func_mmap_fixed_mapped=no
 
14277
else
 
14278
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14279
/* end confdefs.h.  */
 
14280
$ac_includes_default
 
14281
/* malloc might have been renamed as rpl_malloc. */
 
14282
#undef malloc
 
14283
 
 
14284
/* Thanks to Mike Haertel and Jim Avera for this test.
 
14285
   Here is a matrix of mmap possibilities:
 
14286
        mmap private not fixed
 
14287
        mmap private fixed at somewhere currently unmapped
 
14288
        mmap private fixed at somewhere already mapped
 
14289
        mmap shared not fixed
 
14290
        mmap shared fixed at somewhere currently unmapped
 
14291
        mmap shared fixed at somewhere already mapped
 
14292
   For private mappings, we should verify that changes cannot be read()
 
14293
   back from the file, nor mmap's back from the file at a different
 
14294
   address.  (There have been systems where private was not correctly
 
14295
   implemented like the infamous i386 svr4.0, and systems where the
 
14296
   VM page cache was not coherent with the file system buffer cache
 
14297
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
14298
   For shared mappings, we should conversely verify that changes get
 
14299
   propagated back to all the places they're supposed to be.
 
14300
 
 
14301
   Grep wants private fixed already mapped.
 
14302
   The main things grep needs to know about mmap are:
 
14303
   * does it exist and is it safe to write into the mmap'd area
 
14304
   * how to use it (BSD variants)  */
 
14305
 
 
14306
#include <fcntl.h>
 
14307
#include <sys/mman.h>
 
14308
 
 
14309
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 
14310
char *malloc ();
 
14311
#endif
 
14312
 
 
14313
/* This mess was copied from the GNU getpagesize.h.  */
 
14314
#ifndef HAVE_GETPAGESIZE
 
14315
# ifdef _SC_PAGESIZE
 
14316
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
14317
# else /* no _SC_PAGESIZE */
 
14318
#  ifdef HAVE_SYS_PARAM_H
 
14319
#   include <sys/param.h>
 
14320
#   ifdef EXEC_PAGESIZE
 
14321
#    define getpagesize() EXEC_PAGESIZE
 
14322
#   else /* no EXEC_PAGESIZE */
 
14323
#    ifdef NBPG
 
14324
#     define getpagesize() NBPG * CLSIZE
 
14325
#     ifndef CLSIZE
 
14326
#      define CLSIZE 1
 
14327
#     endif /* no CLSIZE */
 
14328
#    else /* no NBPG */
 
14329
#     ifdef NBPC
 
14330
#      define getpagesize() NBPC
 
14331
#     else /* no NBPC */
 
14332
#      ifdef PAGESIZE
 
14333
#       define getpagesize() PAGESIZE
 
14334
#      endif /* PAGESIZE */
 
14335
#     endif /* no NBPC */
 
14336
#    endif /* no NBPG */
 
14337
#   endif /* no EXEC_PAGESIZE */
 
14338
#  else /* no HAVE_SYS_PARAM_H */
 
14339
#   define getpagesize() 8192   /* punt totally */
 
14340
#  endif /* no HAVE_SYS_PARAM_H */
 
14341
# endif /* no _SC_PAGESIZE */
 
14342
 
 
14343
#endif /* no HAVE_GETPAGESIZE */
 
14344
 
 
14345
int
 
14346
main ()
 
14347
{
 
14348
  char *data, *data2, *data3;
 
14349
  const char *cdata2;
 
14350
  int i, pagesize;
 
14351
  int fd, fd2;
 
14352
 
 
14353
  pagesize = getpagesize ();
 
14354
 
 
14355
  /* First, make a file with some known garbage in it. */
 
14356
  data = (char *) malloc (pagesize);
 
14357
  if (!data)
 
14358
    return 1;
 
14359
  for (i = 0; i < pagesize; ++i)
 
14360
    *(data + i) = rand ();
 
14361
  umask (0);
 
14362
  fd = creat ("conftest.mmap", 0600);
 
14363
  if (fd < 0)
 
14364
    return 2;
 
14365
  if (write (fd, data, pagesize) != pagesize)
 
14366
    return 3;
 
14367
  close (fd);
 
14368
 
 
14369
  /* Next, check that the tail of a page is zero-filled.  File must have
 
14370
     non-zero length, otherwise we risk SIGBUS for entire page.  */
 
14371
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 
14372
  if (fd2 < 0)
 
14373
    return 4;
 
14374
  cdata2 = "";
 
14375
  if (write (fd2, cdata2, 1) != 1)
 
14376
    return 5;
 
14377
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 
14378
  if (data2 == MAP_FAILED)
 
14379
    return 6;
 
14380
  for (i = 0; i < pagesize; ++i)
 
14381
    if (*(data2 + i))
 
14382
      return 7;
 
14383
  close (fd2);
 
14384
  if (munmap (data2, pagesize))
 
14385
    return 8;
 
14386
 
 
14387
  /* Next, try to mmap the file at a fixed address which already has
 
14388
     something else allocated at it.  If we can, also make sure that
 
14389
     we see the same garbage.  */
 
14390
  fd = open ("conftest.mmap", O_RDWR);
 
14391
  if (fd < 0)
 
14392
    return 9;
 
14393
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
14394
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
14395
    return 10;
 
14396
  for (i = 0; i < pagesize; ++i)
 
14397
    if (*(data + i) != *(data2 + i))
 
14398
      return 11;
 
14399
 
 
14400
  /* Finally, make sure that changes to the mapped area do not
 
14401
     percolate back to the file as seen by read().  (This is a bug on
 
14402
     some variants of i386 svr4.0.)  */
 
14403
  for (i = 0; i < pagesize; ++i)
 
14404
    *(data2 + i) = *(data2 + i) + 1;
 
14405
  data3 = (char *) malloc (pagesize);
 
14406
  if (!data3)
 
14407
    return 12;
 
14408
  if (read (fd, data3, pagesize) != pagesize)
 
14409
    return 13;
 
14410
  for (i = 0; i < pagesize; ++i)
 
14411
    if (*(data + i) != *(data3 + i))
 
14412
      return 14;
 
14413
  close (fd);
 
14414
  return 0;
 
14415
}
 
14416
_ACEOF
 
14417
if ac_fn_c_try_run "$LINENO"; then :
 
14418
  ac_cv_func_mmap_fixed_mapped=yes
 
14419
else
 
14420
  ac_cv_func_mmap_fixed_mapped=no
 
14421
fi
 
14422
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14423
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14424
fi
 
14425
 
 
14426
fi
 
14427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
14428
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
 
14429
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
14430
 
 
14431
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
 
14432
 
 
14433
fi
 
14434
rm -f conftest.mmap conftest.txt
 
14435
 
 
14436
for ac_header in sys/select.h sys/socket.h
 
14437
do :
 
14438
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14439
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
14440
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
14441
  cat >>confdefs.h <<_ACEOF
 
14442
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14443
_ACEOF
 
14444
 
 
14445
fi
 
14446
 
 
14447
done
 
14448
 
 
14449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
 
14450
$as_echo_n "checking types of arguments for select... " >&6; }
 
14451
if ${ac_cv_func_select_args+:} false; then :
 
14452
  $as_echo_n "(cached) " >&6
 
14453
else
 
14454
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 
14455
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
 
14456
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
 
14457
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14458
/* end confdefs.h.  */
 
14459
$ac_includes_default
 
14460
#ifdef HAVE_SYS_SELECT_H
 
14461
# include <sys/select.h>
 
14462
#endif
 
14463
#ifdef HAVE_SYS_SOCKET_H
 
14464
# include <sys/socket.h>
 
14465
#endif
 
14466
 
 
14467
int
 
14468
main ()
 
14469
{
 
14470
extern int select ($ac_arg1,
 
14471
                                            $ac_arg234, $ac_arg234, $ac_arg234,
 
14472
                                            $ac_arg5);
 
14473
  ;
 
14474
  return 0;
 
14475
}
 
14476
_ACEOF
 
14477
if ac_fn_c_try_compile "$LINENO"; then :
 
14478
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
 
14479
fi
 
14480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14481
  done
 
14482
 done
 
14483
done
 
14484
# Provide a safe default value.
 
14485
: "${ac_cv_func_select_args=int,int *,struct timeval *}"
 
14486
 
 
14487
fi
 
14488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
 
14489
$as_echo "$ac_cv_func_select_args" >&6; }
 
14490
ac_save_IFS=$IFS; IFS=','
 
14491
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
 
14492
IFS=$ac_save_IFS
 
14493
shift
 
14494
 
 
14495
cat >>confdefs.h <<_ACEOF
 
14496
#define SELECT_TYPE_ARG1 $1
 
14497
_ACEOF
 
14498
 
 
14499
 
 
14500
cat >>confdefs.h <<_ACEOF
 
14501
#define SELECT_TYPE_ARG234 ($2)
 
14502
_ACEOF
 
14503
 
 
14504
 
 
14505
cat >>confdefs.h <<_ACEOF
 
14506
#define SELECT_TYPE_ARG5 ($3)
 
14507
_ACEOF
 
14508
 
 
14509
rm -f conftest*
 
14510
 
 
14511
for ac_func in vprintf
 
14512
do :
 
14513
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
 
14514
if test "x$ac_cv_func_vprintf" = xyes; then :
 
14515
  cat >>confdefs.h <<_ACEOF
 
14516
#define HAVE_VPRINTF 1
 
14517
_ACEOF
 
14518
 
 
14519
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
 
14520
if test "x$ac_cv_func__doprnt" = xyes; then :
 
14521
 
 
14522
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
 
14523
 
 
14524
fi
 
14525
 
 
14526
fi
 
14527
done
 
14528
 
 
14529
 
 
14530
if test "x$ga_msg_comms" = xTCGMSG; then :
 
14531
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdr_array" >&5
 
14532
$as_echo_n "checking for library containing xdr_array... " >&6; }
 
14533
if ${ac_cv_search_xdr_array+:} false; then :
 
14534
  $as_echo_n "(cached) " >&6
 
14535
else
 
14536
  ac_func_search_save_LIBS=$LIBS
 
14537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14538
/* end confdefs.h.  */
 
14539
 
 
14540
/* Override any GCC internal prototype to avoid an error.
 
14541
   Use char because int might match the return type of a GCC
 
14542
   builtin and then its argument prototype would still apply.  */
 
14543
#ifdef __cplusplus
 
14544
extern "C"
 
14545
#endif
 
14546
char xdr_array ();
 
14547
int
 
14548
main ()
 
14549
{
 
14550
return xdr_array ();
 
14551
  ;
 
14552
  return 0;
 
14553
}
 
14554
_ACEOF
 
14555
for ac_lib in '' rpclib; do
 
14556
  if test -z "$ac_lib"; then
 
14557
    ac_res="none required"
 
14558
  else
 
14559
    ac_res=-l$ac_lib
 
14560
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14561
  fi
 
14562
  if ac_fn_c_try_link "$LINENO"; then :
 
14563
  ac_cv_search_xdr_array=$ac_res
 
14564
fi
 
14565
rm -f core conftest.err conftest.$ac_objext \
 
14566
    conftest$ac_exeext
 
14567
  if ${ac_cv_search_xdr_array+:} false; then :
 
14568
  break
 
14569
fi
 
14570
done
 
14571
if ${ac_cv_search_xdr_array+:} false; then :
 
14572
 
 
14573
else
 
14574
  ac_cv_search_xdr_array=no
 
14575
fi
 
14576
rm conftest.$ac_ext
 
14577
LIBS=$ac_func_search_save_LIBS
 
14578
fi
 
14579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdr_array" >&5
 
14580
$as_echo "$ac_cv_search_xdr_array" >&6; }
 
14581
ac_res=$ac_cv_search_xdr_array
 
14582
if test "$ac_res" != no; then :
 
14583
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14584
 
 
14585
fi
 
14586
 
 
14587
fi
 
14588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
 
14589
$as_echo_n "checking for library containing floor... " >&6; }
 
14590
if ${ac_cv_search_floor+:} false; then :
 
14591
  $as_echo_n "(cached) " >&6
 
14592
else
 
14593
  ac_func_search_save_LIBS=$LIBS
 
14594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14595
/* end confdefs.h.  */
 
14596
 
 
14597
/* Override any GCC internal prototype to avoid an error.
 
14598
   Use char because int might match the return type of a GCC
 
14599
   builtin and then its argument prototype would still apply.  */
 
14600
#ifdef __cplusplus
 
14601
extern "C"
 
14602
#endif
 
14603
char floor ();
 
14604
int
 
14605
main ()
 
14606
{
 
14607
return floor ();
 
14608
  ;
 
14609
  return 0;
 
14610
}
 
14611
_ACEOF
 
14612
for ac_lib in '' m; do
 
14613
  if test -z "$ac_lib"; then
 
14614
    ac_res="none required"
 
14615
  else
 
14616
    ac_res=-l$ac_lib
 
14617
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14618
  fi
 
14619
  if ac_fn_c_try_link "$LINENO"; then :
 
14620
  ac_cv_search_floor=$ac_res
 
14621
fi
 
14622
rm -f core conftest.err conftest.$ac_objext \
 
14623
    conftest$ac_exeext
 
14624
  if ${ac_cv_search_floor+:} false; then :
 
14625
  break
 
14626
fi
 
14627
done
 
14628
if ${ac_cv_search_floor+:} false; then :
 
14629
 
 
14630
else
 
14631
  ac_cv_search_floor=no
 
14632
fi
 
14633
rm conftest.$ac_ext
 
14634
LIBS=$ac_func_search_save_LIBS
 
14635
fi
 
14636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
 
14637
$as_echo "$ac_cv_search_floor" >&6; }
 
14638
ac_res=$ac_cv_search_floor
 
14639
if test "$ac_res" != no; then :
 
14640
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14641
  have_floor=1
 
14642
else
 
14643
  have_floor=0
 
14644
fi
 
14645
 
 
14646
 
 
14647
cat >>confdefs.h <<_ACEOF
 
14648
#define HAVE_FLOOR $have_floor
 
14649
_ACEOF
 
14650
 
 
14651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
 
14652
$as_echo_n "checking for library containing pow... " >&6; }
 
14653
if ${ac_cv_search_pow+:} false; then :
 
14654
  $as_echo_n "(cached) " >&6
 
14655
else
 
14656
  ac_func_search_save_LIBS=$LIBS
 
14657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14658
/* end confdefs.h.  */
 
14659
 
 
14660
/* Override any GCC internal prototype to avoid an error.
 
14661
   Use char because int might match the return type of a GCC
 
14662
   builtin and then its argument prototype would still apply.  */
 
14663
#ifdef __cplusplus
 
14664
extern "C"
 
14665
#endif
 
14666
char pow ();
 
14667
int
 
14668
main ()
 
14669
{
 
14670
return pow ();
 
14671
  ;
 
14672
  return 0;
 
14673
}
 
14674
_ACEOF
 
14675
for ac_lib in '' m; do
 
14676
  if test -z "$ac_lib"; then
 
14677
    ac_res="none required"
 
14678
  else
 
14679
    ac_res=-l$ac_lib
 
14680
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14681
  fi
 
14682
  if ac_fn_c_try_link "$LINENO"; then :
 
14683
  ac_cv_search_pow=$ac_res
 
14684
fi
 
14685
rm -f core conftest.err conftest.$ac_objext \
 
14686
    conftest$ac_exeext
 
14687
  if ${ac_cv_search_pow+:} false; then :
 
14688
  break
 
14689
fi
 
14690
done
 
14691
if ${ac_cv_search_pow+:} false; then :
 
14692
 
 
14693
else
 
14694
  ac_cv_search_pow=no
 
14695
fi
 
14696
rm conftest.$ac_ext
 
14697
LIBS=$ac_func_search_save_LIBS
 
14698
fi
 
14699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
 
14700
$as_echo "$ac_cv_search_pow" >&6; }
 
14701
ac_res=$ac_cv_search_pow
 
14702
if test "$ac_res" != no; then :
 
14703
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14704
  have_pow=1
 
14705
else
 
14706
  have_pow=0
 
14707
fi
 
14708
 
 
14709
 
 
14710
cat >>confdefs.h <<_ACEOF
 
14711
#define HAVE_POW $have_pow
 
14712
_ACEOF
 
14713
 
 
14714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
 
14715
$as_echo_n "checking for library containing sqrt... " >&6; }
 
14716
if ${ac_cv_search_sqrt+:} false; then :
 
14717
  $as_echo_n "(cached) " >&6
 
14718
else
 
14719
  ac_func_search_save_LIBS=$LIBS
 
14720
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14721
/* end confdefs.h.  */
 
14722
 
 
14723
/* Override any GCC internal prototype to avoid an error.
 
14724
   Use char because int might match the return type of a GCC
 
14725
   builtin and then its argument prototype would still apply.  */
 
14726
#ifdef __cplusplus
 
14727
extern "C"
 
14728
#endif
 
14729
char sqrt ();
 
14730
int
 
14731
main ()
 
14732
{
 
14733
return sqrt ();
 
14734
  ;
 
14735
  return 0;
 
14736
}
 
14737
_ACEOF
 
14738
for ac_lib in '' m; do
 
14739
  if test -z "$ac_lib"; then
 
14740
    ac_res="none required"
 
14741
  else
 
14742
    ac_res=-l$ac_lib
 
14743
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14744
  fi
 
14745
  if ac_fn_c_try_link "$LINENO"; then :
 
14746
  ac_cv_search_sqrt=$ac_res
 
14747
fi
 
14748
rm -f core conftest.err conftest.$ac_objext \
 
14749
    conftest$ac_exeext
 
14750
  if ${ac_cv_search_sqrt+:} false; then :
 
14751
  break
 
14752
fi
 
14753
done
 
14754
if ${ac_cv_search_sqrt+:} false; then :
 
14755
 
 
14756
else
 
14757
  ac_cv_search_sqrt=no
 
14758
fi
 
14759
rm conftest.$ac_ext
 
14760
LIBS=$ac_func_search_save_LIBS
 
14761
fi
 
14762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
 
14763
$as_echo "$ac_cv_search_sqrt" >&6; }
 
14764
ac_res=$ac_cv_search_sqrt
 
14765
if test "$ac_res" != no; then :
 
14766
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14767
  have_sqrt=1
 
14768
else
 
14769
  have_sqrt=0
 
14770
fi
 
14771
 
 
14772
 
 
14773
cat >>confdefs.h <<_ACEOF
 
14774
#define HAVE_SQRT $have_sqrt
 
14775
_ACEOF
 
14776
 
 
14777
for ac_func in bzero fastbcopy ftruncate gethostbyname getpagesize gettimeofday memset munmap select socket strchr strdup strerror strstr strtol _lock_try _acquire_lock xdr_char
 
14778
do :
 
14779
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14780
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14781
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14782
 
 
14783
cat >>confdefs.h <<_ACEOF
 
14784
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14785
_ACEOF
 
14786
 
 
14787
else
 
14788
 
 
14789
cat >>confdefs.h <<_ACEOF
 
14790
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 0
 
14791
_ACEOF
 
14792
 
 
14793
fi
 
14794
done
 
14795
 
 
14796
for ac_func in pthread_getconcurrency pthread_setconcurrency
 
14797
do :
 
14798
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14799
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14800
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14801
 
 
14802
cat >>confdefs.h <<_ACEOF
 
14803
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14804
_ACEOF
 
14805
 
 
14806
else
 
14807
 
 
14808
cat >>confdefs.h <<_ACEOF
 
14809
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 0
 
14810
_ACEOF
 
14811
 
 
14812
fi
 
14813
done
 
14814
 
 
14815
 
 
14816
# Checks for C libraries.
 
14817
 
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific C optimizations" >&5
 
14824
$as_echo_n "checking for specific C optimizations... " >&6; }
 
14825
if ${armci_cv_c_opt+:} false; then :
 
14826
  $as_echo_n "(cached) " >&6
 
14827
else
 
14828
 
 
14829
if test "x$ARMCI_COPT" != x; then :
 
14830
  armci_cv_c_opt="$ARMCI_COPT"
 
14831
else
 
14832
  armci_cv_c_opt=
 
14833
fi
 
14834
if test "x$armci_cv_c_opt" = x && test "x$enable_opt" = xyes; then :
 
14835
 
 
14836
case $ga_cv_target:$ga_cv_c_compiler_vendor:$host_cpu:$ga_armci_network in #(
 
14837
  BGL:*:*:*) :
 
14838
    armci_cv_c_opt="-O0" ;; #(
 
14839
  BGP:ibm:*:*) :
 
14840
    armci_cv_c_opt="-O3 -qstrict -qarch=450 -qtune=450" ;; #(
 
14841
  BGP:gnu:*:*) :
 
14842
    armci_cv_c_opt="-O2" ;; #(
 
14843
  CATAMOUNT:*:*:*) :
 
14844
    armci_cv_c_opt= ;; #(
 
14845
  CRAY_XT:*:*:*) :
 
14846
    armci_cv_c_opt= ;; #(
 
14847
  CYGWIN:*:*:*) :
 
14848
    armci_cv_c_opt="-malign-double" ;; #(
 
14849
  FUJITSU_VPP64:*:*:*) :
 
14850
    armci_cv_c_opt="-x100" ;; #(
 
14851
  FUJITSU_VPP:*:*:*) :
 
14852
    armci_cv_c_opt="-x100 -KA32" ;; #(
 
14853
  HPUX64:*:*:*) :
 
14854
    armci_cv_c_opt="-Ae" ;; #(
 
14855
  HPUX64:*:ia64:*) :
 
14856
    armci_cv_c_opt="-Ae" ;; #(
 
14857
  HPUX:*:*:*) :
 
14858
    armci_cv_c_opt="-Ae" ;; #(
 
14859
  IBM64:*:*:*) :
 
14860
    armci_cv_c_opt="-O3 -qinline=100 -qstrict -qarch=auto -qtune=auto" ;; #(
 
14861
  IBM:*:*:*) :
 
14862
    armci_cv_c_opt="-O3 -qinline=100 -qstrict -qarch=auto -qtune=auto" ;; #(
 
14863
  LAPI64:*:*:*) :
 
14864
    armci_cv_c_opt="-O3 -qinline=100 -qstrict -qarch=auto -qtune=auto" ;; #(
 
14865
  LAPI:*:*:*) :
 
14866
    armci_cv_c_opt="-O3 -qinline=100 -qstrict -qarch=auto -qtune=auto" ;; #(
 
14867
  LINUX64:fujitsu:ia64:*) :
 
14868
    armci_cv_c_opt="-Kfast" ;; #(
 
14869
  LINUX64:fujitsu:x86_64:*) :
 
14870
    armci_cv_c_opt="-Kfast" ;; #(
 
14871
  LINUX64:gnu:ia64:*) :
 
14872
    armci_cv_c_opt="-O0 -g" ;; #(
 
14873
  LINUX64:gnu:x86_64:*) :
 
14874
    armci_cv_c_opt="-O3 -funroll-loops" ;; #(
 
14875
  LINUX64:ibm:powerpc64:*) :
 
14876
    armci_cv_c_opt="-O3 -qinline=100 -qstrict -qarch=auto -qtune=auto" ;; #(
 
14877
  LINUX64:ibm:ppc64:*) :
 
14878
    armci_cv_c_opt="-O3 -qinline=100 -qstrict -qarch=auto -qtune=auto" ;; #(
 
14879
  LINUX64:ibm:x86_64:*) :
 
14880
    armci_cv_c_opt="" ;; #(
 
14881
  LINUX64:intel:ia64:*) :
 
14882
    armci_cv_c_opt="-w1" ;; #(
 
14883
  LINUX64:unknown:alpha:*) :
 
14884
    armci_cv_c_opt="-assume no2underscore -fpe3 -check nooverflow -assume accuracy_sensitive -check nopower -check nounderflow" ;; #(
 
14885
  LINUX:fujitsu:*:*) :
 
14886
    armci_cv_c_opt="-Kfast" ;; #(
 
14887
  LINUX:gnu:686:*) :
 
14888
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -march=pentiumpro -malign-double" ;; #(
 
14889
  LINUX:gnu:686:MELLANOX) :
 
14890
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -march=pentiumpro" ;; #(
 
14891
  LINUX:gnu:686:OPENIB) :
 
14892
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -march=pentiumpro" ;; #(
 
14893
  LINUX:gnu:786:*) :
 
14894
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -march=pentiumpro -malign-double" ;; #(
 
14895
  LINUX:gnu:786:MELLANOX) :
 
14896
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -march=pentiumpro" ;; #(
 
14897
  LINUX:gnu:786:OPENIB) :
 
14898
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -march=pentiumpro" ;; #(
 
14899
  LINUX:gnu:x86:*) :
 
14900
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops -malign-double" ;; #(
 
14901
  LINUX:gnu:x86:MELLANOX) :
 
14902
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops " ;; #(
 
14903
  LINUX:gnu:x86:OPENIB) :
 
14904
    armci_cv_c_opt="-O2 -finline-functions -funroll-loops " ;; #(
 
14905
  LINUX:ibm:*:*) :
 
14906
    armci_cv_c_opt="-q32" ;; #(
 
14907
  LINUX:intel:*:*) :
 
14908
    armci_cv_c_opt="-O3 -prefetch" ;; #(
 
14909
  MACX64:*:*:*) :
 
14910
    armci_cv_c_opt= ;; #(
 
14911
  MACX:*:*:*) :
 
14912
    armci_cv_c_opt= ;; #(
 
14913
  NEC64:*:*:*) :
 
14914
    armci_cv_c_opt="-Cvsafe -size_t64" ;; #(
 
14915
  NEC:*:*:*) :
 
14916
    armci_cv_c_opt="-Cvsafe" ;; #(
 
14917
  SOLARIS64:fujitsu:*:*) :
 
14918
    armci_cv_c_opt="-Kfast -KV9FMADD -x0" ;; #(
 
14919
  SOLARIS64:gnu:*:*) :
 
14920
    armci_cv_c_opt="-dalign" ;; #(
 
14921
  SOLARIS64:gnu:i386:*) :
 
14922
    armci_cv_c_opt="-dalign -xarch=amd64" ;; #(
 
14923
  SOLARIS:fujitsu:*:*) :
 
14924
    armci_cv_c_opt="-Kfast -KV8PFMADD -x0" ;; #(
 
14925
  SOLARIS:gnu:*:*) :
 
14926
    armci_cv_c_opt="-dalign" ;; #(
 
14927
  SOLARIS:gnu:i386:*) :
 
14928
    armci_cv_c_opt="-dalign -xarch=sse2" ;; #(
 
14929
  *) :
 
14930
    armci_cv_c_opt= ;;
 
14931
esac
 
14932
 
 
14933
fi
 
14934
fi
 
14935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $armci_cv_c_opt" >&5
 
14936
$as_echo "$armci_cv_c_opt" >&6; }
 
14937
ARMCI_COPT=$armci_cv_c_opt
 
14938
 
 
14939
 
 
14940
 
 
14941
CFLAGS="$ga_save_CFLAGS"
 
14942
 
 
14943
#########################################
 
14944
# C++ compiler
 
14945
#########################################
 
14946
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
14947
$as_echo "$as_me: " >&6;}
 
14948
if test "x$enable_cxx" = xyes; then :
 
14949
  { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler" >&5
 
14950
$as_echo "$as_me: C++ compiler" >&6;}
 
14951
else
 
14952
  { $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler (disabled, but some tests still required)" >&5
 
14953
$as_echo "$as_me: C++ compiler (disabled, but some tests still required)" >&6;}
 
14954
fi
 
14955
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
14956
$as_echo "$as_me: " >&6;}
 
14957
ac_ext=cpp
 
14958
ac_cpp='$CXXCPP $CPPFLAGS'
 
14959
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14960
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14961
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14962
 
 
14963
 
 
14964
# GA_PROG_MPICXX is required to silence complaints that C++ source exists
 
14965
# even if C++ support has been disabled.
 
14966
ga_save_CXXFLAGS="$CXXFLAGS"
 
14967
 
 
14968
case $ga_cv_target_base in #(
 
14969
  BGP) :
 
14970
    ga_mpicxx_pref=mpixlcxx_r; ga_cxx_pref=bgxlC_r ;; #(
 
14971
  *) :
 
14972
     ;;
 
14973
esac
 
14974
# In the case of using MPI wrappers, set CXX=MPICXX since CXX will override
 
14975
# absolutely everything in our list of compilers.
 
14976
if test x$with_mpi_wrappers = xyes; then :
 
14977
  if test "x$CXX" != "x$MPICXX"; then :
 
14978
  ga_orig_CXX="$CXX"
 
14979
fi
 
14980
     case x$CXX:x$MPICXX in #(
 
14981
  x:x) :
 
14982
     ;; #(
 
14983
  x:x*) :
 
14984
    CXX="$MPICXX" ;; #(
 
14985
  x*:x) :
 
14986
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but CXX is set while MPICXX is unset." >&5
 
14987
$as_echo "$as_me: WARNING: MPI compilers desired but CXX is set while MPICXX is unset." >&2;}
 
14988
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXX will be ignored during compiler selection, but will be" >&5
 
14989
$as_echo "$as_me: WARNING: CXX will be ignored during compiler selection, but will be" >&2;}
 
14990
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
 
14991
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
 
14992
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPICXX instead of or in addition to CXX?" >&5
 
14993
$as_echo "$as_me: WARNING: meant to set MPICXX instead of or in addition to CXX?" >&2;}
 
14994
 CXX= ;; #(
 
14995
  x*:x*) :
 
14996
    if test "x$CXX" != "x$MPICXX"; then :
 
14997
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPICXX and CXX are set, and MPICXX!=CXX." >&5
 
14998
$as_echo "$as_me: WARNING: MPI compilers desired, MPICXX and CXX are set, and MPICXX!=CXX." >&2;}
 
14999
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPICXX over CXX." >&5
 
15000
$as_echo "$as_me: WARNING: Choosing MPICXX over CXX." >&2;}
 
15001
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXX will be tested first during MPI compiler unwrapping." >&5
 
15002
$as_echo "$as_me: WARNING: CXX will be tested first during MPI compiler unwrapping." >&2;}
 
15003
fi
 
15004
 CXX="$MPICXX" ;; #(
 
15005
  *) :
 
15006
    as_fn_error $? "CXX/MPICXX case failure" "$LINENO" 5 ;;
 
15007
esac
 
15008
fi
 
15009
ga_cxx="icpc pgCC pathCC sxc++ xlC_r xlC bgxlC_r bgxlC openCC sunCC crayc++ g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC"
 
15010
ga_mpicxx="mpic++ mpicxx mpiCC sxmpic++ hcp mpxlC_r mpxlC mpixlcxx_r mpixlcxx mpg++ mpc++ mpCC cmpic++ mpiFCC CC"
 
15011
if test x$with_mpi_wrappers = xyes; then :
 
15012
  CXX_TO_TEST="$ga_mpicxx_pref $ga_mpicxx"
 
15013
else
 
15014
  CXX_TO_TEST="$ga_cxx_pref $ga_cxx"
 
15015
fi
 
15016
ac_ext=cpp
 
15017
ac_cpp='$CXXCPP $CPPFLAGS'
 
15018
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15019
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15020
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15021
if test -z "$CXX"; then
 
15022
  if test -n "$CCC"; then
 
15023
    CXX=$CCC
 
15024
  else
 
15025
    if test -n "$ac_tool_prefix"; then
 
15026
  for ac_prog in $CXX_TO_TEST
 
15027
  do
 
15028
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
15029
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
15030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15031
$as_echo_n "checking for $ac_word... " >&6; }
 
15032
if ${ac_cv_prog_CXX+:} false; then :
 
15033
  $as_echo_n "(cached) " >&6
 
15034
else
 
15035
  if test -n "$CXX"; then
 
15036
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
15037
else
 
15038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15039
for as_dir in $PATH
 
15040
do
 
15041
  IFS=$as_save_IFS
 
15042
  test -z "$as_dir" && as_dir=.
 
15043
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15044
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15045
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
15046
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15047
    break 2
 
15048
  fi
 
15049
done
 
15050
  done
 
15051
IFS=$as_save_IFS
 
15052
 
 
15053
fi
 
15054
fi
 
15055
CXX=$ac_cv_prog_CXX
 
15056
if test -n "$CXX"; then
 
15057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
15058
$as_echo "$CXX" >&6; }
 
15059
else
 
15060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15061
$as_echo "no" >&6; }
 
15062
fi
 
15063
 
 
15064
 
 
15065
    test -n "$CXX" && break
 
15066
  done
 
15067
fi
 
15068
if test -z "$CXX"; then
 
15069
  ac_ct_CXX=$CXX
 
15070
  for ac_prog in $CXX_TO_TEST
 
15071
do
 
15072
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
15073
set dummy $ac_prog; ac_word=$2
 
15074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15075
$as_echo_n "checking for $ac_word... " >&6; }
 
15076
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
15077
  $as_echo_n "(cached) " >&6
 
15078
else
 
15079
  if test -n "$ac_ct_CXX"; then
 
15080
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
15081
else
 
15082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15083
for as_dir in $PATH
 
15084
do
 
15085
  IFS=$as_save_IFS
 
15086
  test -z "$as_dir" && as_dir=.
 
15087
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15088
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15089
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
15090
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15091
    break 2
 
15092
  fi
 
15093
done
 
15094
  done
 
15095
IFS=$as_save_IFS
 
15096
 
 
15097
fi
 
15098
fi
 
15099
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
15100
if test -n "$ac_ct_CXX"; then
 
15101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
15102
$as_echo "$ac_ct_CXX" >&6; }
 
15103
else
 
15104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15105
$as_echo "no" >&6; }
 
15106
fi
 
15107
 
 
15108
 
 
15109
  test -n "$ac_ct_CXX" && break
 
15110
done
 
15111
 
 
15112
  if test "x$ac_ct_CXX" = x; then
 
15113
    CXX="g++"
 
15114
  else
 
15115
    case $cross_compiling:$ac_tool_warned in
 
15116
yes:)
 
15117
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
15118
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
15119
ac_tool_warned=yes ;;
 
15120
esac
 
15121
    CXX=$ac_ct_CXX
 
15122
  fi
 
15123
fi
 
15124
 
 
15125
  fi
 
15126
fi
 
15127
# Provide some information about the compiler.
 
15128
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
15129
set X $ac_compile
 
15130
ac_compiler=$2
 
15131
for ac_option in --version -v -V -qversion; do
 
15132
  { { ac_try="$ac_compiler $ac_option >&5"
 
15133
case "(($ac_try" in
 
15134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15135
  *) ac_try_echo=$ac_try;;
 
15136
esac
 
15137
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
15138
$as_echo "$ac_try_echo"; } >&5
 
15139
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
15140
  ac_status=$?
 
15141
  if test -s conftest.err; then
 
15142
    sed '10a\
 
15143
... rest of stderr output deleted ...
 
15144
         10q' conftest.err >conftest.er1
 
15145
    cat conftest.er1 >&5
 
15146
  fi
 
15147
  rm -f conftest.er1 conftest.err
 
15148
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15149
  test $ac_status = 0; }
 
15150
done
 
15151
 
 
15152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
15153
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
15154
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
15155
  $as_echo_n "(cached) " >&6
 
15156
else
 
15157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15158
/* end confdefs.h.  */
 
15159
 
 
15160
int
 
15161
main ()
 
15162
{
 
15163
#ifndef __GNUC__
 
15164
       choke me
 
15165
#endif
 
15166
 
 
15167
  ;
 
15168
  return 0;
 
15169
}
 
15170
_ACEOF
 
15171
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15172
  ac_compiler_gnu=yes
 
15173
else
 
15174
  ac_compiler_gnu=no
 
15175
fi
 
15176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15177
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
15178
 
 
15179
fi
 
15180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
15181
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
15182
if test $ac_compiler_gnu = yes; then
 
15183
  GXX=yes
 
15184
else
 
15185
  GXX=
 
15186
fi
 
15187
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
15188
ac_save_CXXFLAGS=$CXXFLAGS
 
15189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
15190
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
15191
if ${ac_cv_prog_cxx_g+:} false; then :
 
15192
  $as_echo_n "(cached) " >&6
 
15193
else
 
15194
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
15195
   ac_cxx_werror_flag=yes
 
15196
   ac_cv_prog_cxx_g=no
 
15197
   CXXFLAGS="-g"
 
15198
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15199
/* end confdefs.h.  */
 
15200
 
 
15201
int
 
15202
main ()
 
15203
{
 
15204
 
 
15205
  ;
 
15206
  return 0;
 
15207
}
 
15208
_ACEOF
 
15209
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15210
  ac_cv_prog_cxx_g=yes
 
15211
else
 
15212
  CXXFLAGS=""
 
15213
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15214
/* end confdefs.h.  */
 
15215
 
 
15216
int
 
15217
main ()
 
15218
{
 
15219
 
 
15220
  ;
 
15221
  return 0;
 
15222
}
 
15223
_ACEOF
 
15224
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15225
 
 
15226
else
 
15227
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
15228
         CXXFLAGS="-g"
 
15229
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15230
/* end confdefs.h.  */
 
15231
 
 
15232
int
 
15233
main ()
 
15234
{
 
15235
 
 
15236
  ;
 
15237
  return 0;
 
15238
}
 
15239
_ACEOF
 
15240
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15241
  ac_cv_prog_cxx_g=yes
 
15242
fi
 
15243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15244
fi
 
15245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15246
fi
 
15247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15248
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
15249
fi
 
15250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
15251
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
15252
if test "$ac_test_CXXFLAGS" = set; then
 
15253
  CXXFLAGS=$ac_save_CXXFLAGS
 
15254
elif test $ac_cv_prog_cxx_g = yes; then
 
15255
  if test "$GXX" = yes; then
 
15256
    CXXFLAGS="-g -O2"
 
15257
  else
 
15258
    CXXFLAGS="-g"
 
15259
  fi
 
15260
else
 
15261
  if test "$GXX" = yes; then
 
15262
    CXXFLAGS="-O2"
 
15263
  else
 
15264
    CXXFLAGS=
 
15265
  fi
 
15266
fi
 
15267
ac_ext=cpp
 
15268
ac_cpp='$CXXCPP $CPPFLAGS'
 
15269
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15270
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15271
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15272
 
 
15273
depcc="$CXX"  am_compiler_list=
 
15274
 
 
15275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
15276
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
15277
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
15278
  $as_echo_n "(cached) " >&6
 
15279
else
 
15280
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
15281
  # We make a subdir and do the tests there.  Otherwise we can end up
 
15282
  # making bogus files that we don't know about and never remove.  For
 
15283
  # instance it was reported that on HP-UX the gcc test will end up
 
15284
  # making a dummy file named `D' -- because `-MD' means `put the output
 
15285
  # in D'.
 
15286
  rm -rf conftest.dir
 
15287
  mkdir conftest.dir
 
15288
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
15289
  # using a relative directory.
 
15290
  cp "$am_depcomp" conftest.dir
 
15291
  cd conftest.dir
 
15292
  # We will build objects and dependencies in a subdirectory because
 
15293
  # it helps to detect inapplicable dependency modes.  For instance
 
15294
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
15295
  # side effect of compilation, but ICC will put the dependencies in
 
15296
  # the current directory while Tru64 will put them in the object
 
15297
  # directory.
 
15298
  mkdir sub
 
15299
 
 
15300
  am_cv_CXX_dependencies_compiler_type=none
 
15301
  if test "$am_compiler_list" = ""; then
 
15302
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
15303
  fi
 
15304
  am__universal=false
 
15305
  case " $depcc " in #(
 
15306
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
15307
     esac
 
15308
 
 
15309
  for depmode in $am_compiler_list; do
 
15310
    # Setup a source with many dependencies, because some compilers
 
15311
    # like to wrap large dependency lists on column 80 (with \), and
 
15312
    # we should not choose a depcomp mode which is confused by this.
 
15313
    #
 
15314
    # We need to recreate these files for each test, as the compiler may
 
15315
    # overwrite some of them when testing with obscure command lines.
 
15316
    # This happens at least with the AIX C compiler.
 
15317
    : > sub/conftest.c
 
15318
    for i in 1 2 3 4 5 6; do
 
15319
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
15320
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
15321
      # Solaris 8's {/usr,}/bin/sh.
 
15322
      touch sub/conftst$i.h
 
15323
    done
 
15324
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
15325
 
 
15326
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
15327
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
15328
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
15329
    # versions had trouble with output in subdirs
 
15330
    am__obj=sub/conftest.${OBJEXT-o}
 
15331
    am__minus_obj="-o $am__obj"
 
15332
    case $depmode in
 
15333
    gcc)
 
15334
      # This depmode causes a compiler race in universal mode.
 
15335
      test "$am__universal" = false || continue
 
15336
      ;;
 
15337
    nosideeffect)
 
15338
      # after this tag, mechanisms are not by side-effect, so they'll
 
15339
      # only be used when explicitly requested
 
15340
      if test "x$enable_dependency_tracking" = xyes; then
 
15341
        continue
 
15342
      else
 
15343
        break
 
15344
      fi
 
15345
      ;;
 
15346
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
15347
      # This compiler won't grok `-c -o', but also, the minuso test has
 
15348
      # not run yet.  These depmodes are late enough in the game, and
 
15349
      # so weak that their functioning should not be impacted.
 
15350
      am__obj=conftest.${OBJEXT-o}
 
15351
      am__minus_obj=
 
15352
      ;;
 
15353
    none) break ;;
 
15354
    esac
 
15355
    if depmode=$depmode \
 
15356
       source=sub/conftest.c object=$am__obj \
 
15357
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
15358
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
15359
         >/dev/null 2>conftest.err &&
 
15360
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
15361
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
15362
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
15363
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
15364
      # icc doesn't choke on unknown options, it will just issue warnings
 
15365
      # or remarks (even with -Werror).  So we grep stderr for any message
 
15366
      # that says an option was ignored or not supported.
 
15367
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
15368
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
15369
      # The diagnosis changed in icc 8.0:
 
15370
      #   icc: Command line remark: option '-MP' not supported
 
15371
      if (grep 'ignoring option' conftest.err ||
 
15372
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
15373
        am_cv_CXX_dependencies_compiler_type=$depmode
 
15374
        break
 
15375
      fi
 
15376
    fi
 
15377
  done
 
15378
 
 
15379
  cd ..
 
15380
  rm -rf conftest.dir
 
15381
else
 
15382
  am_cv_CXX_dependencies_compiler_type=none
 
15383
fi
 
15384
 
 
15385
fi
 
15386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
15387
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
15388
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
15389
 
 
15390
 if
 
15391
  test "x$enable_dependency_tracking" != xno \
 
15392
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
15393
  am__fastdepCXX_TRUE=
 
15394
  am__fastdepCXX_FALSE='#'
 
15395
else
 
15396
  am__fastdepCXX_TRUE='#'
 
15397
  am__fastdepCXX_FALSE=
 
15398
fi
 
15399
 
 
15400
 
 
15401
 
 
15402
CXXFLAGS="$ga_save_CXXFLAGS"
 
15403
 
 
15404
if test x$with_mpi_wrappers = xyes; then :
 
15405
 
 
15406
# Find perl.
 
15407
# Extract the first word of "perl", so it can be a program name with args.
 
15408
set dummy perl; ac_word=$2
 
15409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15410
$as_echo_n "checking for $ac_word... " >&6; }
 
15411
if ${ac_cv_path_PERL+:} false; then :
 
15412
  $as_echo_n "(cached) " >&6
 
15413
else
 
15414
  case $PERL in
 
15415
  [\\/]* | ?:[\\/]*)
 
15416
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
15417
  ;;
 
15418
  *)
 
15419
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15420
for as_dir in $PATH
 
15421
do
 
15422
  IFS=$as_save_IFS
 
15423
  test -z "$as_dir" && as_dir=.
 
15424
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15425
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15426
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
15427
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15428
    break 2
 
15429
  fi
 
15430
done
 
15431
  done
 
15432
IFS=$as_save_IFS
 
15433
 
 
15434
  ;;
 
15435
esac
 
15436
fi
 
15437
PERL=$ac_cv_path_PERL
 
15438
if test -n "$PERL"; then
 
15439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
15440
$as_echo "$PERL" >&6; }
 
15441
else
 
15442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15443
$as_echo "no" >&6; }
 
15444
fi
 
15445
 
 
15446
 
 
15447
# Create inside.pl.
 
15448
rm -f inside.pl
 
15449
cat >inside.pl <<"EOF"
 
15450
#!/usr/bin/perl
 
15451
use strict;
 
15452
use warnings;
 
15453
my $numargs = $#ARGV + 1;
 
15454
if ($numargs != 2) {
 
15455
    print "Usage: wrapped.txt naked.txt\n";
 
15456
    exit 1;
 
15457
}
 
15458
# Read each input file as a string (rather than a list).
 
15459
local $/=undef;
 
15460
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
 
15461
my $wrapped_lines = <WRAPPED>;
 
15462
close WRAPPED;
 
15463
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
 
15464
my $naked_lines = <NAKED>;
 
15465
close NAKED;
 
15466
# Replace newlines, + from wrapped and naked lines.
 
15467
$wrapped_lines =~ tr/\n+/ /;
 
15468
$naked_lines =~ tr/\n+/ /;
 
15469
# Remove whitespace from beginning of wrapped and naked lines.
 
15470
$wrapped_lines =~ s/^\s+//;
 
15471
$naked_lines =~ s/^\s+//;
 
15472
# Remove whitespace from end of wrapped and naked lines.
 
15473
$wrapped_lines =~ s/\s+$//;
 
15474
$naked_lines =~ s/\s+$//;
 
15475
# If either wrapped_lines or naked_lines are empty, this is an error.
 
15476
# It is assumed that the particular version string which created the input
 
15477
# files should generate SOMETHING.
 
15478
unless ($wrapped_lines) {
 
15479
    exit 1;
 
15480
}
 
15481
unless ($naked_lines) {
 
15482
    exit 1;
 
15483
}
 
15484
# Cray compilers append a timestamp into their version string. Remove it.
 
15485
if ($wrapped_lines =~ /\QCray\E/) {
 
15486
    $wrapped_lines = substr $wrapped_lines, 0, -28;
 
15487
    $naked_lines = substr $naked_lines, 0, -28;
 
15488
}
 
15489
# Can the naked lines be found within the wrapped lines?
 
15490
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
 
15491
    #print "Found as substring\n";
 
15492
    exit 0;
 
15493
}
 
15494
# Are the naked lines exactly the same as the wrapped lines?
 
15495
elsif ($wrapped_lines eq $naked_lines) {
 
15496
    #print "Found equal\n";
 
15497
    exit 0;
 
15498
}
 
15499
else {
 
15500
    #print "Not found\n";
 
15501
    exit 1;
 
15502
}
 
15503
EOF
 
15504
inside="$PERL inside.pl"
 
15505
wrapped="$CXX"
 
15506
case $wrapped in #(
 
15507
  *_r) :
 
15508
    compilers="bgxlC_r xlC_r" ;; #(
 
15509
  *) :
 
15510
    compilers="icpc pgCC pathCC sxc++ xlC bgxlC openCC sunCC crayc++ g++ c++ gpp aCC cxx cc++ cl.exe FCC KCC RCC CC" ;; #(
 
15511
  *) :
 
15512
     ;;
 
15513
esac
 
15514
 
 
15515
 
 
15516
 
 
15517
 
 
15518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
 
15519
$as_echo_n "checking for base $wrapped compiler... " >&6; }
 
15520
if ${ga_cv_mpicxx_naked+:} false; then :
 
15521
  $as_echo_n "(cached) " >&6
 
15522
else
 
15523
 
 
15524
base="`$wrapped -show 2>/dev/null | sed 's/[    ].*$//' | head -1`"
 
15525
ga_save_CXX="$CXX"
 
15526
CXX="$base"
 
15527
# if -m32 or -m64 is present in the -show params, or separately, add it
 
15528
unwrapped_args="`$wrapped -show 2>/dev/null`"
 
15529
extra_arg=""
 
15530
for arg in $unwrapped_args $wrapped
 
15531
do
 
15532
    case $arg in #(
 
15533
  *-m32*) :
 
15534
    extra_arg="-m32" ;; #(
 
15535
  *-m64*) :
 
15536
    extra_arg="-m64" ;; #(
 
15537
  *) :
 
15538
     ;;
 
15539
esac
 
15540
done
 
15541
if test "x$extra_arg" != x; then :
 
15542
  base="$base $extra_arg"
 
15543
fi
 
15544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15545
/* end confdefs.h.  */
 
15546
 
 
15547
int
 
15548
main ()
 
15549
{
 
15550
 
 
15551
  ;
 
15552
  return 0;
 
15553
}
 
15554
_ACEOF
 
15555
if ac_fn_cxx_try_link "$LINENO"; then :
 
15556
  ga_cv_mpicxx_naked="$base"
 
15557
fi
 
15558
rm -f core conftest.err conftest.$ac_objext \
 
15559
    conftest$ac_exeext conftest.$ac_ext
 
15560
CXX="$ga_save_CXX"
 
15561
versions="--version -v -V -qversion"
 
15562
found_wrapped_version=0
 
15563
# Try separating stdout and stderr. Only compare stdout.
 
15564
if test "x$ga_cv_mpicxx_naked" = x; then :
 
15565
 
 
15566
# prepend any CC/CXX/F77 the user may have specified
 
15567
compilers="$ga_orig_CXX $compilers"
 
15568
echo "only comparing stdout" >&5
 
15569
for version in $versions
 
15570
do
 
15571
    echo "trying version=$version" >&5
 
15572
    rm -f mpi.txt mpi.err naked.txt naked.err
 
15573
    if $wrapped $version 1>mpi.txt 2>mpi.err; then :
 
15574
  found_wrapped_version=1
 
15575
         for naked_compiler in $compilers
 
15576
         do
 
15577
            if test "x$naked_compiler" != "x$wrapped"; then :
 
15578
  if $naked_compiler $version 1>naked.txt 2>naked.err; then :
 
15579
  if $inside mpi.txt naked.txt >/dev/null; then :
 
15580
  ga_cv_mpicxx_naked=$naked_compiler; break
 
15581
else
 
15582
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
15583
fi
 
15584
else
 
15585
  echo "$naked_compiler $version failed, skipping" >&5
 
15586
fi
 
15587
fi
 
15588
         done
 
15589
else
 
15590
  echo "$wrapped $version failed, skipping" >&5
 
15591
fi
 
15592
    if test "x$ga_cv_mpicxx_naked" != x; then :
 
15593
  break
 
15594
fi
 
15595
done
 
15596
 
 
15597
fi
 
15598
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
 
15599
# In this case we have to do a brute force match regardless of exit status.
 
15600
if test "x$found_wrapped_version" = x0; then :
 
15601
 
 
15602
if test "x$ga_cv_mpicxx_naked" = x; then :
 
15603
 
 
15604
echo "no zero exit status found for MPI compilers" >&5
 
15605
for version in $versions
 
15606
do
 
15607
    echo "trying version=$version" >&5
 
15608
    rm -f mpi.txt mpi.err
 
15609
    $wrapped $version 1>mpi.txt 2>mpi.err
 
15610
    for naked_compiler in $compilers
 
15611
    do
 
15612
        if test "x$naked_compiler" != "x$wrapped"; then :
 
15613
  rm -f naked.txt naked.err
 
15614
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
 
15615
  if $inside mpi.txt naked.txt >/dev/null; then :
 
15616
  ga_cv_mpicxx_naked=$naked_compiler; break
 
15617
else
 
15618
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
15619
fi
 
15620
else
 
15621
  echo "$naked_compiler $version failed, skipping" >&5
 
15622
fi
 
15623
fi
 
15624
    done
 
15625
    if test "x$ga_cv_mpicxx_naked" != x; then :
 
15626
  break
 
15627
fi
 
15628
done
 
15629
 
 
15630
fi
 
15631
 
 
15632
fi
 
15633
# Try by combining stdout/err into one file.
 
15634
if test "x$ga_cv_mpicxx_naked" = x; then :
 
15635
 
 
15636
echo "try combining stdout and stderr into one file" >&5
 
15637
for version in $versions
 
15638
do
 
15639
    echo "trying version=$version" >&5
 
15640
    rm -f mpi.txt naked.txt
 
15641
    if $wrapped $version 1>mpi.txt 2>&1; then :
 
15642
  for naked_compiler in $compilers
 
15643
         do
 
15644
            if test "x$naked_compiler" != "x$wrapped"; then :
 
15645
  if $naked_compiler $version 1>naked.txt 2>&1; then :
 
15646
  if $inside mpi.txt naked.txt >/dev/null; then :
 
15647
  ga_cv_mpicxx_naked=$naked_compiler; break
 
15648
else
 
15649
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
15650
fi
 
15651
else
 
15652
  echo "$naked_compiler $version failed, skipping" >&5
 
15653
fi
 
15654
fi
 
15655
         done
 
15656
else
 
15657
  echo "$wrapped $version failed, skipping" >&5
 
15658
fi
 
15659
    if test "x$ga_cv_mpicxx_naked" != x; then :
 
15660
  break
 
15661
fi
 
15662
done
 
15663
 
 
15664
fi
 
15665
# If we got this far, then it's likely that the MPI compiler had a zero exit
 
15666
# status when it shouldn't have for one version flag, but later had a non-zero
 
15667
# exit status for a flag it shouldn't have.  One false positive hid a false
 
15668
# negative.  In this case, brute force compare all MPI compiler output against
 
15669
# all compiler output.
 
15670
if test "x$ga_cv_mpicxx_naked" = x; then :
 
15671
 
 
15672
echo "we have a very badly behaving MPI compiler" >&5
 
15673
for version in $versions
 
15674
do
 
15675
    echo "trying version=$version" >&5
 
15676
    rm -f mpi.txt mpi.err
 
15677
    $wrapped $version 1>mpi.txt 2>mpi.err
 
15678
    for naked_compiler in $compilers
 
15679
    do
 
15680
        if test "x$naked_compiler" != "x$wrapped"; then :
 
15681
  rm -f naked.txt naked.err
 
15682
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
 
15683
  if $inside mpi.txt naked.txt >/dev/null; then :
 
15684
  ga_cv_mpicxx_naked=$naked_compiler; break
 
15685
else
 
15686
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
 
15687
fi
 
15688
else
 
15689
  echo "$naked_compiler $version failed, skipping" >&5
 
15690
fi
 
15691
fi
 
15692
    done
 
15693
    if test "x$ga_cv_mpicxx_naked" != x; then :
 
15694
  break
 
15695
fi
 
15696
done
 
15697
 
 
15698
fi
 
15699
rm -f mpi.txt mpi.err naked.txt naked.err
 
15700
 
 
15701
fi
 
15702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpicxx_naked" >&5
 
15703
$as_echo "$ga_cv_mpicxx_naked" >&6; }
 
15704
if test "x$ga_cv_mpicxx_naked" = x; then :
 
15705
  as_fn_error $? "Could not determine the C++ compiler wrapped by MPI" "$LINENO" 5
 
15706
else
 
15707
  if test "x$ga_orig_CXX" != x && test "x$ga_orig_CXX" != "x$ga_cv_mpicxx_naked"; then :
 
15708
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpicxx_naked) does not match user-specified $ga_orig_CXX" >&5
 
15709
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpicxx_naked) does not match user-specified $ga_orig_CXX" >&2;}
 
15710
fi
 
15711
fi
 
15712
 
 
15713
 
 
15714
rm -f inside.pl
 
15715
 
 
15716
fi
 
15717
 
 
15718
if test "x$enable_cxx" = xyes; then :
 
15719
 
 
15720
 
 
15721
 
 
15722
 
 
15723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
 
15724
$as_echo_n "checking for C++ compiler vendor... " >&6; }
 
15725
if ${ga_cv_cxx_compiler_vendor+:} false; then :
 
15726
  $as_echo_n "(cached) " >&6
 
15727
else
 
15728
 
 
15729
ga_save_ac_ext="$ac_ext"
 
15730
 
 
15731
 
 
15732
ga_cv_cxx_compiler_vendor=unknown
 
15733
ga_cpp_vendor_symbols=
 
15734
for vendor in intel ibm pathscale amd cray gnu sun hp dec borland comeau kai lcc metrowerks sgi microsoft watcom portland fujitsu
 
15735
do
 
15736
case $vendor in #(
 
15737
  amd) :
 
15738
    ga_cpp_vendor_symbols="defined(__OPEN64__)" ;; #(
 
15739
  borland) :
 
15740
    ga_cpp_vendor_symbols="defined(__BORLANDC__) || defined(__TURBOC__)" ;; #(
 
15741
  comeau) :
 
15742
    ga_cpp_vendor_symbols="defined(__COMO__)" ;; #(
 
15743
  cray) :
 
15744
    ga_cpp_vendor_symbols="defined(_CRAYC) || defined(_ADDR64)" ;; #(
 
15745
  dec) :
 
15746
    ga_cpp_vendor_symbols="defined(__DECC) || defined(__DECCXX) || defined(__DECC_VER) || defined(__DECCXX_VER)" ;; #(
 
15747
  fujitsu) :
 
15748
    ga_cpp_vendor_symbols="defined(__fcc__) || defined(__fcc_version__) || defined(_FCC_VER) || defined(__FCC_VER_)" ;; #(
 
15749
  gnu) :
 
15750
    ga_cpp_vendor_symbols="defined(__GNUC__)" ;; #(
 
15751
  hp) :
 
15752
    ga_cpp_vendor_symbols="defined(__HP_cc) || defined(__HP_aCC)" ;; #(
 
15753
  ibm) :
 
15754
    ga_cpp_vendor_symbols="defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__)" ;; #(
 
15755
  intel) :
 
15756
    ga_cpp_vendor_symbols="defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER)" ;; #(
 
15757
  kai) :
 
15758
    ga_cpp_vendor_symbols="defined(__KCC)" ;; #(
 
15759
  lcc) :
 
15760
    ga_cpp_vendor_symbols="defined(__LCC__)" ;; #(
 
15761
  metrowerks) :
 
15762
    ga_cpp_vendor_symbols="defined(__MWERKS__)" ;; #(
 
15763
  microsoft) :
 
15764
    ga_cpp_vendor_symbols="defined(_MSC_VER)" ;; #(
 
15765
  pathscale) :
 
15766
    ga_cpp_vendor_symbols="defined(__PATHCC__) || defined(__PATHSCALE__)" ;; #(
 
15767
  portland) :
 
15768
    ga_cpp_vendor_symbols="defined(__PGI)" ;; #(
 
15769
  sgi) :
 
15770
    ga_cpp_vendor_symbols="defined(__sgi) || defined(sgi)" ;; #(
 
15771
  sun) :
 
15772
    ga_cpp_vendor_symbols="defined(__SUNPRO_C) || defined(__SUNPRO_CC)" ;; #(
 
15773
  watcom) :
 
15774
    ga_cpp_vendor_symbols="defined(__WATCOMC__)" ;; #(
 
15775
  *) :
 
15776
     ;;
 
15777
esac
 
15778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15779
/* end confdefs.h.  */
 
15780
 
 
15781
int
 
15782
main ()
 
15783
{
 
15784
 
 
15785
#if !($ga_cpp_vendor_symbols)
 
15786
    chokeonthis
 
15787
#endif
 
15788
 
 
15789
  ;
 
15790
  return 0;
 
15791
}
 
15792
_ACEOF
 
15793
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15794
  ga_cv_cxx_compiler_vendor=$vendor; break
 
15795
fi
 
15796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15797
done
 
15798
ga_cpp_vendor_symbols=
 
15799
ac_ext="$ga_save_ac_ext"
 
15800
 
 
15801
fi
 
15802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cxx_compiler_vendor" >&5
 
15803
$as_echo "$ga_cv_cxx_compiler_vendor" >&6; }
 
15804
 
 
15805
 
 
15806
 
 
15807
if test "x$enable_warnings" = xyes; then :
 
15808
 
 
15809
 
 
15810
 
 
15811
 
 
15812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ warning flags" >&5
 
15813
$as_echo_n "checking for C++ warning flags... " >&6; }
 
15814
if ${ga_cv_cxx_warning_flags+:} false; then :
 
15815
  $as_echo_n "(cached) " >&6
 
15816
else
 
15817
 
 
15818
 
 
15819
ga_cv_cxx_warning_flags=
 
15820
 
 
15821
 
 
15822
fi
 
15823
{ $as_echo "$as_me:${as_lineno-$LINENO}: ga_cv_cxx_warning_flags: $ga_cv_cxx_warning_flags" >&5
 
15824
$as_echo "$ga_cv_cxx_warning_flags" >&6; }
 
15825
GA_CXX_WARN=$ga_cv_cxx_warning_flags
 
15826
 
 
15827
 
 
15828
 
 
15829
 
 
15830
fi
 
15831
 
 
15832
ga_save_CXXFLAGS="$CXXFLAGS"
 
15833
CXXFLAGS="$ga_cv_cxx_warning_flags $CXXFLAGS"
 
15834
 
 
15835
if test "x$with_mpi" != xno; then :
 
15836
 
 
15837
if test "x$with_mpi" != xno; then :
 
15838
 
 
15839
    ac_ext=cpp
 
15840
ac_cpp='$CXXCPP $CPPFLAGS'
 
15841
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15842
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15843
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15844
 
 
15845
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple C++ MPI program works" >&5
 
15846
$as_echo_n "checking whether a simple C++ MPI program works... " >&6; }
 
15847
if ${ga_cv_cxx_mpi_test+:} false; then :
 
15848
  $as_echo_n "(cached) " >&6
 
15849
else
 
15850
 
 
15851
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15852
/* end confdefs.h.  */
 
15853
#include <mpi.h>
 
15854
int
 
15855
main ()
 
15856
{
 
15857
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
 
15858
  ;
 
15859
  return 0;
 
15860
}
 
15861
_ACEOF
 
15862
if ac_fn_cxx_try_link "$LINENO"; then :
 
15863
  ga_cv_cxx_mpi_test=yes
 
15864
else
 
15865
  ga_cv_cxx_mpi_test=no
 
15866
fi
 
15867
rm -f core conftest.err conftest.$ac_objext \
 
15868
    conftest$ac_exeext conftest.$ac_ext
 
15869
# That didn't work, so now let's try with our GA_MP_* flags.
 
15870
        if test "x$ga_cv_cxx_mpi_test" = xno; then :
 
15871
 
 
15872
        ga_save_LIBS="$LIBS";           LIBS="$LIBS $GA_MP_LIBS"
 
15873
        ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
15874
        ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
15875
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15876
/* end confdefs.h.  */
 
15877
#include <mpi.h>
 
15878
int
 
15879
main ()
 
15880
{
 
15881
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
 
15882
  ;
 
15883
  return 0;
 
15884
}
 
15885
_ACEOF
 
15886
if ac_fn_cxx_try_link "$LINENO"; then :
 
15887
  ga_cv_cxx_mpi_test=yes
 
15888
else
 
15889
  ga_cv_cxx_mpi_test=no
 
15890
fi
 
15891
rm -f core conftest.err conftest.$ac_objext \
 
15892
    conftest$ac_exeext conftest.$ac_ext
 
15893
        LIBS="$ga_save_LIBS"
 
15894
        CPPFLAGS="$ga_save_CPPFLAGS"
 
15895
        LDFLAGS="$ga_save_LDFLAGS"
 
15896
 
 
15897
fi
 
15898
# That didn't work, so now let's try with our GA_MP_* flags and various libs.
 
15899
        if test "x$ga_cv_cxx_mpi_test" = xno; then :
 
15900
 
 
15901
        for lib in -lmpi -lmpich; do
 
15902
        ga_save_LIBS="$LIBS";           LIBS="$LIBS $GA_MP_LIBS $lib"
 
15903
        ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
 
15904
        ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
 
15905
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15906
/* end confdefs.h.  */
 
15907
#include <mpi.h>
 
15908
int
 
15909
main ()
 
15910
{
 
15911
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
 
15912
  ;
 
15913
  return 0;
 
15914
}
 
15915
_ACEOF
 
15916
if ac_fn_cxx_try_link "$LINENO"; then :
 
15917
  ga_cv_cxx_mpi_test=$lib; break
 
15918
else
 
15919
  ga_cv_cxx_mpi_test=no
 
15920
fi
 
15921
rm -f core conftest.err conftest.$ac_objext \
 
15922
    conftest$ac_exeext conftest.$ac_ext
 
15923
        LIBS="$ga_save_LIBS"
 
15924
        CPPFLAGS="$ga_save_CPPFLAGS"
 
15925
        LDFLAGS="$ga_save_LDFLAGS"
 
15926
        done
 
15927
        LIBS="$ga_save_LIBS"
 
15928
        CPPFLAGS="$ga_save_CPPFLAGS"
 
15929
        LDFLAGS="$ga_save_LDFLAGS"
 
15930
 
 
15931
fi
 
15932
 
 
15933
fi
 
15934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cxx_mpi_test" >&5
 
15935
$as_echo "$ga_cv_cxx_mpi_test" >&6; }
 
15936
    ac_ext=cpp
 
15937
ac_cpp='$CXXCPP $CPPFLAGS'
 
15938
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15939
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15940
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15941
 
 
15942
    case $ga_cv_cxx_mpi_test in #(
 
15943
  yes) :
 
15944
     ;; #(
 
15945
  no) :
 
15946
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15947
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15948
as_fn_error $? "could not link simple C++ MPI program
 
15949
See \`config.log' for more details" "$LINENO" 5; } ;; #(
 
15950
  *) :
 
15951
    GA_MP_LIBS="$ga_cv_cxx_mpi_test" ;; #(
 
15952
  *) :
 
15953
     ;;
 
15954
esac
 
15955
 
 
15956
fi
 
15957
 
 
15958
fi
 
15959
 
 
15960
# Checks for C++ header files.
 
15961
 
 
15962
# Checks for C++ typedefs, structures, and compiler characteristics.
 
15963
 
 
15964
# Checks for C++ type sizes.
 
15965
 
 
15966
# Checks for C++ library functions.
 
15967
 
 
15968
 
 
15969
 
 
15970
 
 
15971
 
 
15972
 
 
15973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific C++ optimizations" >&5
 
15974
$as_echo_n "checking for specific C++ optimizations... " >&6; }
 
15975
if ${armci_cv_cxx_opt+:} false; then :
 
15976
  $as_echo_n "(cached) " >&6
 
15977
else
 
15978
 
 
15979
if test "x$ARMCI_CXXOPT" != x; then :
 
15980
  armci_cv_cxx_opt="$ARMCI_CXXOPT"
 
15981
else
 
15982
  armci_cv_cxx_opt=
 
15983
fi
 
15984
if test "x$armci_cv_cxx_opt" = x && test "x$enable_opt" = xyes; then :
 
15985
 
 
15986
case $ga_cv_target:$ga_cv_cxx_compiler_vendor:$host_cpu:$ga_armci_network in #(
 
15987
  LINUX:*:*:*) :
 
15988
    armci_cv_cxx_opt="-O0" ;; #(
 
15989
  NEC64:*:*:*) :
 
15990
    armci_cv_cxx_opt="-Cvsafe -size_t64" ;; #(
 
15991
  NEC:*:*:*) :
 
15992
    armci_cv_cxx_opt="-Cvsafe" ;; #(
 
15993
  *) :
 
15994
    armci_cv_cxx_opt= ;;
 
15995
esac
 
15996
 
 
15997
fi
 
15998
fi
 
15999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $armci_cv_cxx_opt" >&5
 
16000
$as_echo "$armci_cv_cxx_opt" >&6; }
 
16001
ARMCI_CXXOPT=$armci_cv_cxx_opt
 
16002
 
 
16003
 
 
16004
 
 
16005
CXXFLAGS="$ga_save_CXXFLAGS"
 
16006
 
 
16007
 
 
16008
fi
 
16009
 
 
16010
ac_ext=c
 
16011
ac_cpp='$CPP $CPPFLAGS'
 
16012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16015
 
 
16016
 
 
16017
#########################################
 
16018
# Assembler
 
16019
#########################################
 
16020
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
16021
$as_echo "$as_me: " >&6;}
 
16022
{ $as_echo "$as_me:${as_lineno-$LINENO}: Assembler" >&5
 
16023
$as_echo "$as_me: Assembler" >&6;}
 
16024
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
16025
$as_echo "$as_me: " >&6;}
 
16026
 
 
16027
 
 
16028
if test "x$CCAS" = x; then :
 
16029
  case $ga_cv_target in #(
 
16030
  NEC|NEC64) :
 
16031
    CCAS=sxas ;; #(
 
16032
  *) :
 
16033
     ;;
 
16034
esac
 
16035
fi
 
16036
if test "x$CCASFLAGS" = x; then :
 
16037
  case $ga_cv_target in #(
 
16038
  NEC) :
 
16039
    CCASFLAGS= ;; #(
 
16040
  NEC64) :
 
16041
    CCASFLAGS="-h size_t64" ;; #(
 
16042
  *) :
 
16043
     ;;
 
16044
esac
 
16045
fi
 
16046
 
 
16047
# By default we simply use the C compiler to build assembly code.
 
16048
 
 
16049
test "${CCAS+set}" = set || CCAS=$CC
 
16050
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
16051
 
 
16052
 
 
16053
 
 
16054
depcc="$CCAS"   am_compiler_list=
 
16055
 
 
16056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
16057
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
16058
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
 
16059
  $as_echo_n "(cached) " >&6
 
16060
else
 
16061
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
16062
  # We make a subdir and do the tests there.  Otherwise we can end up
 
16063
  # making bogus files that we don't know about and never remove.  For
 
16064
  # instance it was reported that on HP-UX the gcc test will end up
 
16065
  # making a dummy file named `D' -- because `-MD' means `put the output
 
16066
  # in D'.
 
16067
  rm -rf conftest.dir
 
16068
  mkdir conftest.dir
 
16069
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
16070
  # using a relative directory.
 
16071
  cp "$am_depcomp" conftest.dir
 
16072
  cd conftest.dir
 
16073
  # We will build objects and dependencies in a subdirectory because
 
16074
  # it helps to detect inapplicable dependency modes.  For instance
 
16075
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
16076
  # side effect of compilation, but ICC will put the dependencies in
 
16077
  # the current directory while Tru64 will put them in the object
 
16078
  # directory.
 
16079
  mkdir sub
 
16080
 
 
16081
  am_cv_CCAS_dependencies_compiler_type=none
 
16082
  if test "$am_compiler_list" = ""; then
 
16083
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
16084
  fi
 
16085
  am__universal=false
 
16086
 
 
16087
 
 
16088
  for depmode in $am_compiler_list; do
 
16089
    # Setup a source with many dependencies, because some compilers
 
16090
    # like to wrap large dependency lists on column 80 (with \), and
 
16091
    # we should not choose a depcomp mode which is confused by this.
 
16092
    #
 
16093
    # We need to recreate these files for each test, as the compiler may
 
16094
    # overwrite some of them when testing with obscure command lines.
 
16095
    # This happens at least with the AIX C compiler.
 
16096
    : > sub/conftest.c
 
16097
    for i in 1 2 3 4 5 6; do
 
16098
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
16099
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
16100
      # Solaris 8's {/usr,}/bin/sh.
 
16101
      touch sub/conftst$i.h
 
16102
    done
 
16103
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
16104
 
 
16105
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
16106
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
16107
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
16108
    # versions had trouble with output in subdirs
 
16109
    am__obj=sub/conftest.${OBJEXT-o}
 
16110
    am__minus_obj="-o $am__obj"
 
16111
    case $depmode in
 
16112
    gcc)
 
16113
      # This depmode causes a compiler race in universal mode.
 
16114
      test "$am__universal" = false || continue
 
16115
      ;;
 
16116
    nosideeffect)
 
16117
      # after this tag, mechanisms are not by side-effect, so they'll
 
16118
      # only be used when explicitly requested
 
16119
      if test "x$enable_dependency_tracking" = xyes; then
 
16120
        continue
 
16121
      else
 
16122
        break
 
16123
      fi
 
16124
      ;;
 
16125
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
16126
      # This compiler won't grok `-c -o', but also, the minuso test has
 
16127
      # not run yet.  These depmodes are late enough in the game, and
 
16128
      # so weak that their functioning should not be impacted.
 
16129
      am__obj=conftest.${OBJEXT-o}
 
16130
      am__minus_obj=
 
16131
      ;;
 
16132
    none) break ;;
 
16133
    esac
 
16134
    if depmode=$depmode \
 
16135
       source=sub/conftest.c object=$am__obj \
 
16136
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
16137
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
16138
         >/dev/null 2>conftest.err &&
 
16139
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
16140
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
16141
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
16142
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
16143
      # icc doesn't choke on unknown options, it will just issue warnings
 
16144
      # or remarks (even with -Werror).  So we grep stderr for any message
 
16145
      # that says an option was ignored or not supported.
 
16146
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
16147
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
16148
      # The diagnosis changed in icc 8.0:
 
16149
      #   icc: Command line remark: option '-MP' not supported
 
16150
      if (grep 'ignoring option' conftest.err ||
 
16151
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
16152
        am_cv_CCAS_dependencies_compiler_type=$depmode
 
16153
        break
 
16154
      fi
 
16155
    fi
 
16156
  done
 
16157
 
 
16158
  cd ..
 
16159
  rm -rf conftest.dir
 
16160
else
 
16161
  am_cv_CCAS_dependencies_compiler_type=none
 
16162
fi
 
16163
 
 
16164
fi
 
16165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 
16166
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 
16167
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 
16168
 
 
16169
 if
 
16170
  test "x$enable_dependency_tracking" != xno \
 
16171
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 
16172
  am__fastdepCCAS_TRUE=
 
16173
  am__fastdepCCAS_FALSE='#'
 
16174
else
 
16175
  am__fastdepCCAS_TRUE='#'
 
16176
  am__fastdepCCAS_FALSE=
 
16177
fi
 
16178
 
 
16179
 
 
16180
 
 
16181
 
 
16182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NO_I386ASM is needed" >&5
 
16183
$as_echo_n "checking whether NO_I386ASM is needed... " >&6; }
 
16184
if ${armci_cv_as_no_i386asm+:} false; then :
 
16185
  $as_echo_n "(cached) " >&6
 
16186
else
 
16187
  if test "x$ax_cv_c_compiler_vendor" = xfujitsu; then :
 
16188
  armci_cv_as_no_i386asm=yes
 
16189
else
 
16190
  armci_cv_as_no_i386asm=no
 
16191
fi
 
16192
fi
 
16193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $armci_cv_as_no_i386asm" >&5
 
16194
$as_echo "$armci_cv_as_no_i386asm" >&6; }
 
16195
if test "x$armci_cv_as_no_i386asm" = xyes; then :
 
16196
 
 
16197
$as_echo "#define NO_I386ASM 1" >>confdefs.h
 
16198
 
 
16199
fi
 
16200
 
 
16201
 
 
16202
###############################################################################
 
16203
# BLAS/LAPACK are used in one test program. We don't locate these libraries due
 
16204
# to many of them requiring Fortran. An enthusiastic user of the lone test
 
16205
# program can still build it if they are highly motivated -- but the build will
 
16206
# not be automated.
 
16207
###############################################################################
 
16208
 if test 0 = 1; then
 
16209
  HAVE_BLAS_TRUE=
 
16210
  HAVE_BLAS_FALSE='#'
 
16211
else
 
16212
  HAVE_BLAS_TRUE='#'
 
16213
  HAVE_BLAS_FALSE=
 
16214
fi
 
16215
 
 
16216
 if test 0 = 1; then
 
16217
  HAVE_LAPACK_TRUE=
 
16218
  HAVE_LAPACK_FALSE='#'
 
16219
else
 
16220
  HAVE_LAPACK_TRUE='#'
 
16221
  HAVE_LAPACK_FALSE=
 
16222
fi
 
16223
 
 
16224
 
 
16225
###############################################################################
 
16226
# Checks for programs.
 
16227
###############################################################################
 
16228
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
16229
$as_echo "$as_me: " >&6;}
 
16230
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checks for additional programs" >&5
 
16231
$as_echo "$as_me: Checks for additional programs" >&6;}
 
16232
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
16233
$as_echo "$as_me: " >&6;}
 
16234
 
 
16235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
16236
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
16237
if ${ac_cv_path_GREP+:} false; then :
 
16238
  $as_echo_n "(cached) " >&6
 
16239
else
 
16240
  if test -z "$GREP"; then
 
16241
  ac_path_GREP_found=false
 
16242
  # Loop through the user's path and test for each of PROGNAME-LIST
 
16243
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16244
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
16245
do
 
16246
  IFS=$as_save_IFS
 
16247
  test -z "$as_dir" && as_dir=.
 
16248
    for ac_prog in grep ggrep; do
 
16249
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16250
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
16251
      as_fn_executable_p "$ac_path_GREP" || continue
 
16252
# Check for GNU ac_path_GREP and select it if it is found.
 
16253
  # Check for GNU $ac_path_GREP
 
16254
case `"$ac_path_GREP" --version 2>&1` in
 
16255
*GNU*)
 
16256
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
16257
*)
 
16258
  ac_count=0
 
16259
  $as_echo_n 0123456789 >"conftest.in"
 
16260
  while :
 
16261
  do
 
16262
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
16263
    mv "conftest.tmp" "conftest.in"
 
16264
    cp "conftest.in" "conftest.nl"
 
16265
    $as_echo 'GREP' >> "conftest.nl"
 
16266
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
16267
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
16268
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
16269
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
16270
      # Best one so far, save it but keep looking for a better one
 
16271
      ac_cv_path_GREP="$ac_path_GREP"
 
16272
      ac_path_GREP_max=$ac_count
 
16273
    fi
 
16274
    # 10*(2^10) chars as input seems more than enough
 
16275
    test $ac_count -gt 10 && break
 
16276
  done
 
16277
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
16278
esac
 
16279
 
 
16280
      $ac_path_GREP_found && break 3
 
16281
    done
 
16282
  done
 
16283
  done
 
16284
IFS=$as_save_IFS
 
16285
  if test -z "$ac_cv_path_GREP"; then
 
16286
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
16287
  fi
 
16288
else
 
16289
  ac_cv_path_GREP=$GREP
 
16290
fi
 
16291
 
 
16292
fi
 
16293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
16294
$as_echo "$ac_cv_path_GREP" >&6; }
 
16295
 GREP="$ac_cv_path_GREP"
 
16296
 
 
16297
 
 
16298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
16299
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
16300
if ${ac_cv_path_SED+:} false; then :
 
16301
  $as_echo_n "(cached) " >&6
 
16302
else
 
16303
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
16304
     for ac_i in 1 2 3 4 5 6 7; do
 
16305
       ac_script="$ac_script$as_nl$ac_script"
 
16306
     done
 
16307
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
16308
     { ac_script=; unset ac_script;}
 
16309
     if test -z "$SED"; then
 
16310
  ac_path_SED_found=false
 
16311
  # Loop through the user's path and test for each of PROGNAME-LIST
 
16312
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16313
for as_dir in $PATH
 
16314
do
 
16315
  IFS=$as_save_IFS
 
16316
  test -z "$as_dir" && as_dir=.
 
16317
    for ac_prog in sed gsed; do
 
16318
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16319
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
16320
      as_fn_executable_p "$ac_path_SED" || continue
 
16321
# Check for GNU ac_path_SED and select it if it is found.
 
16322
  # Check for GNU $ac_path_SED
 
16323
case `"$ac_path_SED" --version 2>&1` in
 
16324
*GNU*)
 
16325
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
16326
*)
 
16327
  ac_count=0
 
16328
  $as_echo_n 0123456789 >"conftest.in"
 
16329
  while :
 
16330
  do
 
16331
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
16332
    mv "conftest.tmp" "conftest.in"
 
16333
    cp "conftest.in" "conftest.nl"
 
16334
    $as_echo '' >> "conftest.nl"
 
16335
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
16336
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
16337
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
16338
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
16339
      # Best one so far, save it but keep looking for a better one
 
16340
      ac_cv_path_SED="$ac_path_SED"
 
16341
      ac_path_SED_max=$ac_count
 
16342
    fi
 
16343
    # 10*(2^10) chars as input seems more than enough
 
16344
    test $ac_count -gt 10 && break
 
16345
  done
 
16346
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
16347
esac
 
16348
 
 
16349
      $ac_path_SED_found && break 3
 
16350
    done
 
16351
  done
 
16352
  done
 
16353
IFS=$as_save_IFS
 
16354
  if test -z "$ac_cv_path_SED"; then
 
16355
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
16356
  fi
 
16357
else
 
16358
  ac_cv_path_SED=$SED
 
16359
fi
 
16360
 
 
16361
fi
 
16362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
16363
$as_echo "$ac_cv_path_SED" >&6; }
 
16364
 SED="$ac_cv_path_SED"
 
16365
  rm -f conftest.sed
 
16366
 
 
16367
 
 
16368
###############################################################################
 
16369
# Libtool setup -- no compiler/linker tests after this
 
16370
###############################################################################
 
16371
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
16372
$as_echo "$as_me: " >&6;}
 
16373
{ $as_echo "$as_me:${as_lineno-$LINENO}: Libtool setup" >&5
 
16374
$as_echo "$as_me: Libtool setup" >&6;}
 
16375
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
16376
$as_echo "$as_me: " >&6;}
 
16377
# temporarily restore unwrapped compilers
 
16378
# this works around a bug where libtool sadly relies on matching compiler
 
16379
# names in order to determine features (Fortran only, I think)
 
16380
# libtool doesn't recognize MPI compiler names, nor should it
 
16381
if test x$with_mpi_wrappers = xyes; then :
 
16382
 
 
16383
ga_mpi_unwrap_push_save_CC="$CC"
 
16384
ga_mpi_unwrap_push_save_CXX="$CXX"
 
16385
ga_mpi_unwrap_push_save_F77="$F77"
 
16386
ga_mpi_unwrap_push_save_FC="$FC"
 
16387
if test "x$ga_cv_mpic_naked"   != x; then :
 
16388
   CC="$ga_cv_mpic_naked"
 
16389
fi
 
16390
if test "x$ga_cv_mpicxx_naked" != x; then :
 
16391
  CXX="$ga_cv_mpicxx_naked"
 
16392
fi
 
16393
if test "x$ga_cv_mpif77_naked" != x; then :
 
16394
  F77="$ga_cv_mpif77_naked"
 
16395
fi
 
16396
if test "x$ga_cv_mpifc_naked"  != x; then :
 
16397
   FC="$ga_cv_mpifc_naked"
 
16398
fi
 
16399
 
 
16400
fi
 
16401
 
 
16402
 
 
16403
 
 
16404
 
 
16405
if test "x$AR" = x; then :
 
16406
  case $ga_cv_target in #(
 
16407
  NEC|NEC64) :
 
16408
    AR=sxar ;; #(
 
16409
  *) :
 
16410
     ;;
 
16411
esac
 
16412
fi
 
16413
if test "x$RANLIB" = x; then :
 
16414
  case $ga_cv_target in #(
 
16415
  NEC|NEC64) :
 
16416
    RANLIB=true ;; #(
 
16417
  *) :
 
16418
     ;;
 
16419
esac
 
16420
fi
 
16421
 
 
16422
case `pwd` in
 
16423
  *\ * | *\     *)
 
16424
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
16425
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
16426
esac
 
16427
 
 
16428
 
 
16429
 
 
16430
macro_version='2.4.2'
 
16431
macro_revision='1.3337'
 
16432
 
 
16433
 
 
16434
 
 
16435
 
 
16436
 
 
16437
 
 
16438
 
 
16439
 
 
16440
 
 
16441
 
 
16442
 
 
16443
 
 
16444
 
 
16445
ltmain="$ac_aux_dir/ltmain.sh"
 
16446
 
 
16447
# Backslashify metacharacters that are still active within
 
16448
# double-quoted strings.
 
16449
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
16450
 
 
16451
# Same as above, but do not quote variable references.
 
16452
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
16453
 
 
16454
# Sed substitution to delay expansion of an escaped shell variable in a
 
16455
# double_quote_subst'ed string.
 
16456
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
16457
 
 
16458
# Sed substitution to delay expansion of an escaped single quote.
 
16459
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
16460
 
 
16461
# Sed substitution to avoid accidental globbing in evaled expressions
 
16462
no_glob_subst='s/\*/\\\*/g'
 
16463
 
 
16464
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
16465
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
16466
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
16467
 
 
16468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
16469
$as_echo_n "checking how to print strings... " >&6; }
 
16470
# Test print first, because it will be a builtin if present.
 
16471
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
16472
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
16473
  ECHO='print -r --'
 
16474
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
16475
  ECHO='printf %s\n'
 
16476
else
 
16477
  # Use this function as a fallback that always works.
 
16478
  func_fallback_echo ()
 
16479
  {
 
16480
    eval 'cat <<_LTECHO_EOF
 
16481
$1
 
16482
_LTECHO_EOF'
 
16483
  }
 
16484
  ECHO='func_fallback_echo'
 
16485
fi
 
16486
 
 
16487
# func_echo_all arg...
 
16488
# Invoke $ECHO with all args, space-separated.
 
16489
func_echo_all ()
 
16490
{
 
16491
    $ECHO ""
 
16492
}
 
16493
 
 
16494
case "$ECHO" in
 
16495
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
16496
$as_echo "printf" >&6; } ;;
 
16497
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
16498
$as_echo "print -r" >&6; } ;;
 
16499
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
16500
$as_echo "cat" >&6; } ;;
 
16501
esac
 
16502
 
 
16503
 
 
16504
 
 
16505
 
 
16506
 
 
16507
 
 
16508
 
 
16509
 
 
16510
 
 
16511
 
 
16512
 
 
16513
 
 
16514
 
 
16515
 
 
16516
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
16517
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
16518
if ${ac_cv_path_SED+:} false; then :
 
16519
  $as_echo_n "(cached) " >&6
 
16520
else
 
16521
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
16522
     for ac_i in 1 2 3 4 5 6 7; do
 
16523
       ac_script="$ac_script$as_nl$ac_script"
 
16524
     done
 
16525
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
16526
     { ac_script=; unset ac_script;}
 
16527
     if test -z "$SED"; then
 
16528
  ac_path_SED_found=false
 
16529
  # Loop through the user's path and test for each of PROGNAME-LIST
 
16530
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16531
for as_dir in $PATH
 
16532
do
 
16533
  IFS=$as_save_IFS
 
16534
  test -z "$as_dir" && as_dir=.
 
16535
    for ac_prog in sed gsed; do
 
16536
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16537
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
16538
      as_fn_executable_p "$ac_path_SED" || continue
 
16539
# Check for GNU ac_path_SED and select it if it is found.
 
16540
  # Check for GNU $ac_path_SED
 
16541
case `"$ac_path_SED" --version 2>&1` in
 
16542
*GNU*)
 
16543
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
16544
*)
 
16545
  ac_count=0
 
16546
  $as_echo_n 0123456789 >"conftest.in"
 
16547
  while :
 
16548
  do
 
16549
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
16550
    mv "conftest.tmp" "conftest.in"
 
16551
    cp "conftest.in" "conftest.nl"
 
16552
    $as_echo '' >> "conftest.nl"
 
16553
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
16554
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
16555
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
16556
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
16557
      # Best one so far, save it but keep looking for a better one
 
16558
      ac_cv_path_SED="$ac_path_SED"
 
16559
      ac_path_SED_max=$ac_count
 
16560
    fi
 
16561
    # 10*(2^10) chars as input seems more than enough
 
16562
    test $ac_count -gt 10 && break
 
16563
  done
 
16564
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
16565
esac
 
16566
 
 
16567
      $ac_path_SED_found && break 3
 
16568
    done
 
16569
  done
 
16570
  done
 
16571
IFS=$as_save_IFS
 
16572
  if test -z "$ac_cv_path_SED"; then
 
16573
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
16574
  fi
 
16575
else
 
16576
  ac_cv_path_SED=$SED
 
16577
fi
 
16578
 
 
16579
fi
 
16580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
16581
$as_echo "$ac_cv_path_SED" >&6; }
 
16582
 SED="$ac_cv_path_SED"
 
16583
  rm -f conftest.sed
 
16584
 
 
16585
test -z "$SED" && SED=sed
 
16586
Xsed="$SED -e 1s/^X//"
 
16587
 
 
16588
 
 
16589
 
 
16590
 
 
16591
 
 
16592
 
 
16593
 
 
16594
 
 
16595
 
 
16596
 
 
16597
 
 
16598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
16599
$as_echo_n "checking for fgrep... " >&6; }
 
16600
if ${ac_cv_path_FGREP+:} false; then :
 
16601
  $as_echo_n "(cached) " >&6
 
16602
else
 
16603
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
16604
   then ac_cv_path_FGREP="$GREP -F"
 
16605
   else
 
16606
     if test -z "$FGREP"; then
 
16607
  ac_path_FGREP_found=false
 
16608
  # Loop through the user's path and test for each of PROGNAME-LIST
 
16609
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16610
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
16611
do
 
16612
  IFS=$as_save_IFS
 
16613
  test -z "$as_dir" && as_dir=.
 
16614
    for ac_prog in fgrep; do
 
16615
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16616
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
16617
      as_fn_executable_p "$ac_path_FGREP" || continue
 
16618
# Check for GNU ac_path_FGREP and select it if it is found.
 
16619
  # Check for GNU $ac_path_FGREP
 
16620
case `"$ac_path_FGREP" --version 2>&1` in
 
16621
*GNU*)
 
16622
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
16623
*)
 
16624
  ac_count=0
 
16625
  $as_echo_n 0123456789 >"conftest.in"
 
16626
  while :
 
16627
  do
 
16628
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
16629
    mv "conftest.tmp" "conftest.in"
 
16630
    cp "conftest.in" "conftest.nl"
 
16631
    $as_echo 'FGREP' >> "conftest.nl"
 
16632
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
16633
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
16634
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
16635
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
16636
      # Best one so far, save it but keep looking for a better one
 
16637
      ac_cv_path_FGREP="$ac_path_FGREP"
 
16638
      ac_path_FGREP_max=$ac_count
 
16639
    fi
 
16640
    # 10*(2^10) chars as input seems more than enough
 
16641
    test $ac_count -gt 10 && break
 
16642
  done
 
16643
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
16644
esac
 
16645
 
 
16646
      $ac_path_FGREP_found && break 3
 
16647
    done
 
16648
  done
 
16649
  done
 
16650
IFS=$as_save_IFS
 
16651
  if test -z "$ac_cv_path_FGREP"; then
 
16652
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
16653
  fi
 
16654
else
 
16655
  ac_cv_path_FGREP=$FGREP
 
16656
fi
 
16657
 
 
16658
   fi
 
16659
fi
 
16660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
16661
$as_echo "$ac_cv_path_FGREP" >&6; }
 
16662
 FGREP="$ac_cv_path_FGREP"
 
16663
 
 
16664
 
 
16665
test -z "$GREP" && GREP=grep
 
16666
 
 
16667
 
 
16668
 
 
16669
 
 
16670
 
 
16671
 
 
16672
 
 
16673
 
 
16674
 
 
16675
 
 
16676
 
 
16677
 
 
16678
 
 
16679
 
 
16680
 
 
16681
 
 
16682
 
 
16683
 
 
16684
 
 
16685
# Check whether --with-gnu-ld was given.
 
16686
if test "${with_gnu_ld+set}" = set; then :
 
16687
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
16688
else
 
16689
  with_gnu_ld=no
 
16690
fi
 
16691
 
 
16692
ac_prog=ld
 
16693
if test "$GCC" = yes; then
 
16694
  # Check if gcc -print-prog-name=ld gives a path.
 
16695
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
16696
$as_echo_n "checking for ld used by $CC... " >&6; }
 
16697
  case $host in
 
16698
  *-*-mingw*)
 
16699
    # gcc leaves a trailing carriage return which upsets mingw
 
16700
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
16701
  *)
 
16702
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
16703
  esac
 
16704
  case $ac_prog in
 
16705
    # Accept absolute paths.
 
16706
    [\\/]* | ?:[\\/]*)
 
16707
      re_direlt='/[^/][^/]*/\.\./'
 
16708
      # Canonicalize the pathname of ld
 
16709
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
16710
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
16711
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
16712
      done
 
16713
      test -z "$LD" && LD="$ac_prog"
 
16714
      ;;
 
16715
  "")
 
16716
    # If it fails, then pretend we aren't using GCC.
 
16717
    ac_prog=ld
 
16718
    ;;
 
16719
  *)
 
16720
    # If it is relative, then search for the first ld in PATH.
 
16721
    with_gnu_ld=unknown
 
16722
    ;;
 
16723
  esac
 
16724
elif test "$with_gnu_ld" = yes; then
 
16725
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
16726
$as_echo_n "checking for GNU ld... " >&6; }
 
16727
else
 
16728
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
16729
$as_echo_n "checking for non-GNU ld... " >&6; }
 
16730
fi
 
16731
if ${lt_cv_path_LD+:} false; then :
 
16732
  $as_echo_n "(cached) " >&6
 
16733
else
 
16734
  if test -z "$LD"; then
 
16735
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
16736
  for ac_dir in $PATH; do
 
16737
    IFS="$lt_save_ifs"
 
16738
    test -z "$ac_dir" && ac_dir=.
 
16739
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
16740
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
16741
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
16742
      # but apparently some variants of GNU ld only accept -v.
 
16743
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
16744
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
16745
      *GNU* | *'with BFD'*)
 
16746
        test "$with_gnu_ld" != no && break
 
16747
        ;;
 
16748
      *)
 
16749
        test "$with_gnu_ld" != yes && break
 
16750
        ;;
 
16751
      esac
 
16752
    fi
 
16753
  done
 
16754
  IFS="$lt_save_ifs"
 
16755
else
 
16756
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
16757
fi
 
16758
fi
 
16759
 
 
16760
LD="$lt_cv_path_LD"
 
16761
if test -n "$LD"; then
 
16762
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
16763
$as_echo "$LD" >&6; }
 
16764
else
 
16765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16766
$as_echo "no" >&6; }
 
16767
fi
 
16768
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
16769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
16770
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
16771
if ${lt_cv_prog_gnu_ld+:} false; then :
 
16772
  $as_echo_n "(cached) " >&6
 
16773
else
 
16774
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
16775
case `$LD -v 2>&1 </dev/null` in
 
16776
*GNU* | *'with BFD'*)
 
16777
  lt_cv_prog_gnu_ld=yes
 
16778
  ;;
 
16779
*)
 
16780
  lt_cv_prog_gnu_ld=no
 
16781
  ;;
 
16782
esac
 
16783
fi
 
16784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
16785
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
16786
with_gnu_ld=$lt_cv_prog_gnu_ld
 
16787
 
 
16788
 
 
16789
 
 
16790
 
 
16791
 
 
16792
 
 
16793
 
 
16794
 
 
16795
 
 
16796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
16797
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
16798
if ${lt_cv_path_NM+:} false; then :
 
16799
  $as_echo_n "(cached) " >&6
 
16800
else
 
16801
  if test -n "$NM"; then
 
16802
  # Let the user override the test.
 
16803
  lt_cv_path_NM="$NM"
 
16804
else
 
16805
  lt_nm_to_check="${ac_tool_prefix}nm"
 
16806
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
16807
    lt_nm_to_check="$lt_nm_to_check nm"
 
16808
  fi
 
16809
  for lt_tmp_nm in $lt_nm_to_check; do
 
16810
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
16811
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
16812
      IFS="$lt_save_ifs"
 
16813
      test -z "$ac_dir" && ac_dir=.
 
16814
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
16815
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
16816
        # Check to see if the nm accepts a BSD-compat flag.
 
16817
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
16818
        #   nm: unknown option "B" ignored
 
16819
        # Tru64's nm complains that /dev/null is an invalid object file
 
16820
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
16821
        */dev/null* | *'Invalid file or object type'*)
 
16822
          lt_cv_path_NM="$tmp_nm -B"
 
16823
          break
 
16824
          ;;
 
16825
        *)
 
16826
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
16827
          */dev/null*)
 
16828
            lt_cv_path_NM="$tmp_nm -p"
 
16829
            break
 
16830
            ;;
 
16831
          *)
 
16832
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
16833
            continue # so that we can try to find one that supports BSD flags
 
16834
            ;;
 
16835
          esac
 
16836
          ;;
 
16837
        esac
 
16838
      fi
 
16839
    done
 
16840
    IFS="$lt_save_ifs"
 
16841
  done
 
16842
  : ${lt_cv_path_NM=no}
 
16843
fi
 
16844
fi
 
16845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
16846
$as_echo "$lt_cv_path_NM" >&6; }
 
16847
if test "$lt_cv_path_NM" != "no"; then
 
16848
  NM="$lt_cv_path_NM"
 
16849
else
 
16850
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
16851
  if test -n "$DUMPBIN"; then :
 
16852
    # Let the user override the test.
 
16853
  else
 
16854
    if test -n "$ac_tool_prefix"; then
 
16855
  for ac_prog in dumpbin "link -dump"
 
16856
  do
 
16857
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
16858
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
16859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16860
$as_echo_n "checking for $ac_word... " >&6; }
 
16861
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
16862
  $as_echo_n "(cached) " >&6
 
16863
else
 
16864
  if test -n "$DUMPBIN"; then
 
16865
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
16866
else
 
16867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16868
for as_dir in $PATH
 
16869
do
 
16870
  IFS=$as_save_IFS
 
16871
  test -z "$as_dir" && as_dir=.
 
16872
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16873
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16874
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
16875
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16876
    break 2
 
16877
  fi
 
16878
done
 
16879
  done
 
16880
IFS=$as_save_IFS
 
16881
 
 
16882
fi
 
16883
fi
 
16884
DUMPBIN=$ac_cv_prog_DUMPBIN
 
16885
if test -n "$DUMPBIN"; then
 
16886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
16887
$as_echo "$DUMPBIN" >&6; }
 
16888
else
 
16889
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16890
$as_echo "no" >&6; }
 
16891
fi
 
16892
 
 
16893
 
 
16894
    test -n "$DUMPBIN" && break
 
16895
  done
 
16896
fi
 
16897
if test -z "$DUMPBIN"; then
 
16898
  ac_ct_DUMPBIN=$DUMPBIN
 
16899
  for ac_prog in dumpbin "link -dump"
 
16900
do
 
16901
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
16902
set dummy $ac_prog; ac_word=$2
 
16903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16904
$as_echo_n "checking for $ac_word... " >&6; }
 
16905
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
16906
  $as_echo_n "(cached) " >&6
 
16907
else
 
16908
  if test -n "$ac_ct_DUMPBIN"; then
 
16909
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
16910
else
 
16911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16912
for as_dir in $PATH
 
16913
do
 
16914
  IFS=$as_save_IFS
 
16915
  test -z "$as_dir" && as_dir=.
 
16916
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16917
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16918
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
16919
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16920
    break 2
 
16921
  fi
 
16922
done
 
16923
  done
 
16924
IFS=$as_save_IFS
 
16925
 
 
16926
fi
 
16927
fi
 
16928
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
16929
if test -n "$ac_ct_DUMPBIN"; then
 
16930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
16931
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
16932
else
 
16933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16934
$as_echo "no" >&6; }
 
16935
fi
 
16936
 
 
16937
 
 
16938
  test -n "$ac_ct_DUMPBIN" && break
 
16939
done
 
16940
 
 
16941
  if test "x$ac_ct_DUMPBIN" = x; then
 
16942
    DUMPBIN=":"
 
16943
  else
 
16944
    case $cross_compiling:$ac_tool_warned in
 
16945
yes:)
 
16946
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
16947
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
16948
ac_tool_warned=yes ;;
 
16949
esac
 
16950
    DUMPBIN=$ac_ct_DUMPBIN
 
16951
  fi
 
16952
fi
 
16953
 
 
16954
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
16955
    *COFF*)
 
16956
      DUMPBIN="$DUMPBIN -symbols"
 
16957
      ;;
 
16958
    *)
 
16959
      DUMPBIN=:
 
16960
      ;;
 
16961
    esac
 
16962
  fi
 
16963
 
 
16964
  if test "$DUMPBIN" != ":"; then
 
16965
    NM="$DUMPBIN"
 
16966
  fi
 
16967
fi
 
16968
test -z "$NM" && NM=nm
 
16969
 
 
16970
 
 
16971
 
 
16972
 
 
16973
 
 
16974
 
 
16975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
16976
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
16977
if ${lt_cv_nm_interface+:} false; then :
 
16978
  $as_echo_n "(cached) " >&6
 
16979
else
 
16980
  lt_cv_nm_interface="BSD nm"
 
16981
  echo "int some_variable = 0;" > conftest.$ac_ext
 
16982
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
16983
  (eval "$ac_compile" 2>conftest.err)
 
16984
  cat conftest.err >&5
 
16985
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
16986
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
16987
  cat conftest.err >&5
 
16988
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
16989
  cat conftest.out >&5
 
16990
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
16991
    lt_cv_nm_interface="MS dumpbin"
 
16992
  fi
 
16993
  rm -f conftest*
 
16994
fi
 
16995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
16996
$as_echo "$lt_cv_nm_interface" >&6; }
 
16997
 
 
16998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
16999
$as_echo_n "checking whether ln -s works... " >&6; }
 
17000
LN_S=$as_ln_s
 
17001
if test "$LN_S" = "ln -s"; then
 
17002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17003
$as_echo "yes" >&6; }
 
17004
else
 
17005
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
17006
$as_echo "no, using $LN_S" >&6; }
 
17007
fi
 
17008
 
 
17009
# find the maximum length of command line arguments
 
17010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
17011
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
17012
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
17013
  $as_echo_n "(cached) " >&6
 
17014
else
 
17015
    i=0
 
17016
  teststring="ABCD"
 
17017
 
 
17018
  case $build_os in
 
17019
  msdosdjgpp*)
 
17020
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
17021
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
17022
    # during glob expansion).  Even if it were fixed, the result of this
 
17023
    # check would be larger than it should be.
 
17024
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
17025
    ;;
 
17026
 
 
17027
  gnu*)
 
17028
    # Under GNU Hurd, this test is not required because there is
 
17029
    # no limit to the length of command line arguments.
 
17030
    # Libtool will interpret -1 as no limit whatsoever
 
17031
    lt_cv_sys_max_cmd_len=-1;
 
17032
    ;;
 
17033
 
 
17034
  cygwin* | mingw* | cegcc*)
 
17035
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
17036
    # about 5 minutes as the teststring grows exponentially.
 
17037
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
17038
    # you end up with a "frozen" computer, even though with patience
 
17039
    # the test eventually succeeds (with a max line length of 256k).
 
17040
    # Instead, let's just punt: use the minimum linelength reported by
 
17041
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
17042
    lt_cv_sys_max_cmd_len=8192;
 
17043
    ;;
 
17044
 
 
17045
  mint*)
 
17046
    # On MiNT this can take a long time and run out of memory.
 
17047
    lt_cv_sys_max_cmd_len=8192;
 
17048
    ;;
 
17049
 
 
17050
  amigaos*)
 
17051
    # On AmigaOS with pdksh, this test takes hours, literally.
 
17052
    # So we just punt and use a minimum line length of 8192.
 
17053
    lt_cv_sys_max_cmd_len=8192;
 
17054
    ;;
 
17055
 
 
17056
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
17057
    # This has been around since 386BSD, at least.  Likely further.
 
17058
    if test -x /sbin/sysctl; then
 
17059
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
17060
    elif test -x /usr/sbin/sysctl; then
 
17061
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
17062
    else
 
17063
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
17064
    fi
 
17065
    # And add a safety zone
 
17066
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
17067
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
17068
    ;;
 
17069
 
 
17070
  interix*)
 
17071
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
17072
    lt_cv_sys_max_cmd_len=196608
 
17073
    ;;
 
17074
 
 
17075
  os2*)
 
17076
    # The test takes a long time on OS/2.
 
17077
    lt_cv_sys_max_cmd_len=8192
 
17078
    ;;
 
17079
 
 
17080
  osf*)
 
17081
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
17082
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
17083
    # nice to cause kernel panics so lets avoid the loop below.
 
17084
    # First set a reasonable default.
 
17085
    lt_cv_sys_max_cmd_len=16384
 
17086
    #
 
17087
    if test -x /sbin/sysconfig; then
 
17088
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
17089
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
17090
      esac
 
17091
    fi
 
17092
    ;;
 
17093
  sco3.2v5*)
 
17094
    lt_cv_sys_max_cmd_len=102400
 
17095
    ;;
 
17096
  sysv5* | sco5v6* | sysv4.2uw2*)
 
17097
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
17098
    if test -n "$kargmax"; then
 
17099
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
17100
    else
 
17101
      lt_cv_sys_max_cmd_len=32768
 
17102
    fi
 
17103
    ;;
 
17104
  *)
 
17105
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
17106
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
17107
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
17108
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
17109
    else
 
17110
      # Make teststring a little bigger before we do anything with it.
 
17111
      # a 1K string should be a reasonable start.
 
17112
      for i in 1 2 3 4 5 6 7 8 ; do
 
17113
        teststring=$teststring$teststring
 
17114
      done
 
17115
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
17116
      # If test is not a shell built-in, we'll probably end up computing a
 
17117
      # maximum length that is only half of the actual maximum length, but
 
17118
      # we can't tell.
 
17119
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
17120
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
17121
              test $i != 17 # 1/2 MB should be enough
 
17122
      do
 
17123
        i=`expr $i + 1`
 
17124
        teststring=$teststring$teststring
 
17125
      done
 
17126
      # Only check the string length outside the loop.
 
17127
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
17128
      teststring=
 
17129
      # Add a significant safety factor because C++ compilers can tack on
 
17130
      # massive amounts of additional arguments before passing them to the
 
17131
      # linker.  It appears as though 1/2 is a usable value.
 
17132
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
17133
    fi
 
17134
    ;;
 
17135
  esac
 
17136
 
 
17137
fi
 
17138
 
 
17139
if test -n $lt_cv_sys_max_cmd_len ; then
 
17140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
17141
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
17142
else
 
17143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
17144
$as_echo "none" >&6; }
 
17145
fi
 
17146
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17147
 
 
17148
 
 
17149
 
 
17150
 
 
17151
 
 
17152
 
 
17153
: ${CP="cp -f"}
 
17154
: ${MV="mv -f"}
 
17155
: ${RM="rm -f"}
 
17156
 
 
17157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
17158
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
17159
# Try some XSI features
 
17160
xsi_shell=no
 
17161
( _lt_dummy="a/b/c"
 
17162
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
17163
      = c,a/b,b/c, \
 
17164
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
17165
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
17166
  && xsi_shell=yes
 
17167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
17168
$as_echo "$xsi_shell" >&6; }
 
17169
 
 
17170
 
 
17171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
17172
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
17173
lt_shell_append=no
 
17174
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
17175
    >/dev/null 2>&1 \
 
17176
  && lt_shell_append=yes
 
17177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
17178
$as_echo "$lt_shell_append" >&6; }
 
17179
 
 
17180
 
 
17181
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
17182
  lt_unset=unset
 
17183
else
 
17184
  lt_unset=false
 
17185
fi
 
17186
 
 
17187
 
 
17188
 
 
17189
 
 
17190
 
 
17191
# test EBCDIC or ASCII
 
17192
case `echo X|tr X '\101'` in
 
17193
 A) # ASCII based system
 
17194
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
17195
  lt_SP2NL='tr \040 \012'
 
17196
  lt_NL2SP='tr \015\012 \040\040'
 
17197
  ;;
 
17198
 *) # EBCDIC based system
 
17199
  lt_SP2NL='tr \100 \n'
 
17200
  lt_NL2SP='tr \r\n \100\100'
 
17201
  ;;
 
17202
esac
 
17203
 
 
17204
 
 
17205
 
 
17206
 
 
17207
 
 
17208
 
 
17209
 
 
17210
 
 
17211
 
 
17212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
17213
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
17214
if ${lt_cv_to_host_file_cmd+:} false; then :
 
17215
  $as_echo_n "(cached) " >&6
 
17216
else
 
17217
  case $host in
 
17218
  *-*-mingw* )
 
17219
    case $build in
 
17220
      *-*-mingw* ) # actually msys
 
17221
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
17222
        ;;
 
17223
      *-*-cygwin* )
 
17224
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
17225
        ;;
 
17226
      * ) # otherwise, assume *nix
 
17227
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
17228
        ;;
 
17229
    esac
 
17230
    ;;
 
17231
  *-*-cygwin* )
 
17232
    case $build in
 
17233
      *-*-mingw* ) # actually msys
 
17234
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
17235
        ;;
 
17236
      *-*-cygwin* )
 
17237
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
17238
        ;;
 
17239
      * ) # otherwise, assume *nix
 
17240
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
17241
        ;;
 
17242
    esac
 
17243
    ;;
 
17244
  * ) # unhandled hosts (and "normal" native builds)
 
17245
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
17246
    ;;
 
17247
esac
 
17248
 
 
17249
fi
 
17250
 
 
17251
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
17252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
17253
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
17254
 
 
17255
 
 
17256
 
 
17257
 
 
17258
 
 
17259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
17260
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
17261
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
17262
  $as_echo_n "(cached) " >&6
 
17263
else
 
17264
  #assume ordinary cross tools, or native build.
 
17265
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
17266
case $host in
 
17267
  *-*-mingw* )
 
17268
    case $build in
 
17269
      *-*-mingw* ) # actually msys
 
17270
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
17271
        ;;
 
17272
    esac
 
17273
    ;;
 
17274
esac
 
17275
 
 
17276
fi
 
17277
 
 
17278
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
17279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
17280
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
17281
 
 
17282
 
 
17283
 
 
17284
 
 
17285
 
 
17286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
17287
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
17288
if ${lt_cv_ld_reload_flag+:} false; then :
 
17289
  $as_echo_n "(cached) " >&6
 
17290
else
 
17291
  lt_cv_ld_reload_flag='-r'
 
17292
fi
 
17293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
17294
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
17295
reload_flag=$lt_cv_ld_reload_flag
 
17296
case $reload_flag in
 
17297
"" | " "*) ;;
 
17298
*) reload_flag=" $reload_flag" ;;
 
17299
esac
 
17300
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
17301
case $host_os in
 
17302
  cygwin* | mingw* | pw32* | cegcc*)
 
17303
    if test "$GCC" != yes; then
 
17304
      reload_cmds=false
 
17305
    fi
 
17306
    ;;
 
17307
  darwin*)
 
17308
    if test "$GCC" = yes; then
 
17309
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
17310
    else
 
17311
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
17312
    fi
 
17313
    ;;
 
17314
esac
 
17315
 
 
17316
 
 
17317
 
 
17318
 
 
17319
 
 
17320
 
 
17321
 
 
17322
 
 
17323
 
 
17324
if test -n "$ac_tool_prefix"; then
 
17325
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
17326
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
17327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17328
$as_echo_n "checking for $ac_word... " >&6; }
 
17329
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
17330
  $as_echo_n "(cached) " >&6
 
17331
else
 
17332
  if test -n "$OBJDUMP"; then
 
17333
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
17334
else
 
17335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17336
for as_dir in $PATH
 
17337
do
 
17338
  IFS=$as_save_IFS
 
17339
  test -z "$as_dir" && as_dir=.
 
17340
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17341
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17342
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
17343
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17344
    break 2
 
17345
  fi
 
17346
done
 
17347
  done
 
17348
IFS=$as_save_IFS
 
17349
 
 
17350
fi
 
17351
fi
 
17352
OBJDUMP=$ac_cv_prog_OBJDUMP
 
17353
if test -n "$OBJDUMP"; then
 
17354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
17355
$as_echo "$OBJDUMP" >&6; }
 
17356
else
 
17357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17358
$as_echo "no" >&6; }
 
17359
fi
 
17360
 
 
17361
 
 
17362
fi
 
17363
if test -z "$ac_cv_prog_OBJDUMP"; then
 
17364
  ac_ct_OBJDUMP=$OBJDUMP
 
17365
  # Extract the first word of "objdump", so it can be a program name with args.
 
17366
set dummy objdump; ac_word=$2
 
17367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17368
$as_echo_n "checking for $ac_word... " >&6; }
 
17369
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
17370
  $as_echo_n "(cached) " >&6
 
17371
else
 
17372
  if test -n "$ac_ct_OBJDUMP"; then
 
17373
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
17374
else
 
17375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17376
for as_dir in $PATH
 
17377
do
 
17378
  IFS=$as_save_IFS
 
17379
  test -z "$as_dir" && as_dir=.
 
17380
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17381
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17382
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
17383
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17384
    break 2
 
17385
  fi
 
17386
done
 
17387
  done
 
17388
IFS=$as_save_IFS
 
17389
 
 
17390
fi
 
17391
fi
 
17392
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
17393
if test -n "$ac_ct_OBJDUMP"; then
 
17394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
17395
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
17396
else
 
17397
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17398
$as_echo "no" >&6; }
 
17399
fi
 
17400
 
 
17401
  if test "x$ac_ct_OBJDUMP" = x; then
 
17402
    OBJDUMP="false"
 
17403
  else
 
17404
    case $cross_compiling:$ac_tool_warned in
 
17405
yes:)
 
17406
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
17407
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
17408
ac_tool_warned=yes ;;
 
17409
esac
 
17410
    OBJDUMP=$ac_ct_OBJDUMP
 
17411
  fi
 
17412
else
 
17413
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
17414
fi
 
17415
 
 
17416
test -z "$OBJDUMP" && OBJDUMP=objdump
 
17417
 
 
17418
 
 
17419
 
 
17420
 
 
17421
 
 
17422
 
 
17423
 
 
17424
 
 
17425
 
 
17426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
17427
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
17428
if ${lt_cv_deplibs_check_method+:} false; then :
 
17429
  $as_echo_n "(cached) " >&6
 
17430
else
 
17431
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
17432
lt_cv_file_magic_test_file=
 
17433
lt_cv_deplibs_check_method='unknown'
 
17434
# Need to set the preceding variable on all platforms that support
 
17435
# interlibrary dependencies.
 
17436
# 'none' -- dependencies not supported.
 
17437
# `unknown' -- same as none, but documents that we really don't know.
 
17438
# 'pass_all' -- all dependencies passed with no checks.
 
17439
# 'test_compile' -- check by making test program.
 
17440
# 'file_magic [[regex]]' -- check by looking for files in library path
 
17441
# which responds to the $file_magic_cmd with a given extended regex.
 
17442
# If you have `file' or equivalent on your system and you're not sure
 
17443
# whether `pass_all' will *always* work, you probably want this one.
 
17444
 
 
17445
case $host_os in
 
17446
aix[4-9]*)
 
17447
  lt_cv_deplibs_check_method=pass_all
 
17448
  ;;
 
17449
 
 
17450
beos*)
 
17451
  lt_cv_deplibs_check_method=pass_all
 
17452
  ;;
 
17453
 
 
17454
bsdi[45]*)
 
17455
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
17456
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
17457
  lt_cv_file_magic_test_file=/shlib/libc.so
 
17458
  ;;
 
17459
 
 
17460
cygwin*)
 
17461
  # func_win32_libid is a shell function defined in ltmain.sh
 
17462
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
17463
  lt_cv_file_magic_cmd='func_win32_libid'
 
17464
  ;;
 
17465
 
 
17466
mingw* | pw32*)
 
17467
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
17468
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
17469
  # unless we find 'file', for example because we are cross-compiling.
 
17470
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
17471
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
17472
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
17473
    lt_cv_file_magic_cmd='func_win32_libid'
 
17474
  else
 
17475
    # Keep this pattern in sync with the one in func_win32_libid.
 
17476
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
17477
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
17478
  fi
 
17479
  ;;
 
17480
 
 
17481
cegcc*)
 
17482
  # use the weaker test based on 'objdump'. See mingw*.
 
17483
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
17484
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
17485
  ;;
 
17486
 
 
17487
darwin* | rhapsody*)
 
17488
  lt_cv_deplibs_check_method=pass_all
 
17489
  ;;
 
17490
 
 
17491
freebsd* | dragonfly*)
 
17492
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
17493
    case $host_cpu in
 
17494
    i*86 )
 
17495
      # Not sure whether the presence of OpenBSD here was a mistake.
 
17496
      # Let's accept both of them until this is cleared up.
 
17497
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
17498
      lt_cv_file_magic_cmd=/usr/bin/file
 
17499
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
17500
      ;;
 
17501
    esac
 
17502
  else
 
17503
    lt_cv_deplibs_check_method=pass_all
 
17504
  fi
 
17505
  ;;
 
17506
 
 
17507
gnu*)
 
17508
  lt_cv_deplibs_check_method=pass_all
 
17509
  ;;
 
17510
 
 
17511
haiku*)
 
17512
  lt_cv_deplibs_check_method=pass_all
 
17513
  ;;
 
17514
 
 
17515
hpux10.20* | hpux11*)
 
17516
  lt_cv_file_magic_cmd=/usr/bin/file
 
17517
  case $host_cpu in
 
17518
  ia64*)
 
17519
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
17520
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
17521
    ;;
 
17522
  hppa*64*)
 
17523
    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]'
 
17524
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
17525
    ;;
 
17526
  *)
 
17527
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
17528
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
17529
    ;;
 
17530
  esac
 
17531
  ;;
 
17532
 
 
17533
interix[3-9]*)
 
17534
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
17535
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
17536
  ;;
 
17537
 
 
17538
irix5* | irix6* | nonstopux*)
 
17539
  case $LD in
 
17540
  *-32|*"-32 ") libmagic=32-bit;;
 
17541
  *-n32|*"-n32 ") libmagic=N32;;
 
17542
  *-64|*"-64 ") libmagic=64-bit;;
 
17543
  *) libmagic=never-match;;
 
17544
  esac
 
17545
  lt_cv_deplibs_check_method=pass_all
 
17546
  ;;
 
17547
 
 
17548
# This must be glibc/ELF.
 
17549
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
17550
  lt_cv_deplibs_check_method=pass_all
 
17551
  ;;
 
17552
 
 
17553
netbsd*)
 
17554
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
17555
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
17556
  else
 
17557
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
17558
  fi
 
17559
  ;;
 
17560
 
 
17561
newos6*)
 
17562
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
17563
  lt_cv_file_magic_cmd=/usr/bin/file
 
17564
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
17565
  ;;
 
17566
 
 
17567
*nto* | *qnx*)
 
17568
  lt_cv_deplibs_check_method=pass_all
 
17569
  ;;
 
17570
 
 
17571
openbsd*)
 
17572
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17573
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
17574
  else
 
17575
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
17576
  fi
 
17577
  ;;
 
17578
 
 
17579
osf3* | osf4* | osf5*)
 
17580
  lt_cv_deplibs_check_method=pass_all
 
17581
  ;;
 
17582
 
 
17583
rdos*)
 
17584
  lt_cv_deplibs_check_method=pass_all
 
17585
  ;;
 
17586
 
 
17587
solaris*)
 
17588
  lt_cv_deplibs_check_method=pass_all
 
17589
  ;;
 
17590
 
 
17591
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17592
  lt_cv_deplibs_check_method=pass_all
 
17593
  ;;
 
17594
 
 
17595
sysv4 | sysv4.3*)
 
17596
  case $host_vendor in
 
17597
  motorola)
 
17598
    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]'
 
17599
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
17600
    ;;
 
17601
  ncr)
 
17602
    lt_cv_deplibs_check_method=pass_all
 
17603
    ;;
 
17604
  sequent)
 
17605
    lt_cv_file_magic_cmd='/bin/file'
 
17606
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
17607
    ;;
 
17608
  sni)
 
17609
    lt_cv_file_magic_cmd='/bin/file'
 
17610
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
17611
    lt_cv_file_magic_test_file=/lib/libc.so
 
17612
    ;;
 
17613
  siemens)
 
17614
    lt_cv_deplibs_check_method=pass_all
 
17615
    ;;
 
17616
  pc)
 
17617
    lt_cv_deplibs_check_method=pass_all
 
17618
    ;;
 
17619
  esac
 
17620
  ;;
 
17621
 
 
17622
tpf*)
 
17623
  lt_cv_deplibs_check_method=pass_all
 
17624
  ;;
 
17625
esac
 
17626
 
 
17627
fi
 
17628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
17629
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
17630
 
 
17631
file_magic_glob=
 
17632
want_nocaseglob=no
 
17633
if test "$build" = "$host"; then
 
17634
  case $host_os in
 
17635
  mingw* | pw32*)
 
17636
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
17637
      want_nocaseglob=yes
 
17638
    else
 
17639
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
17640
    fi
 
17641
    ;;
 
17642
  esac
 
17643
fi
 
17644
 
 
17645
file_magic_cmd=$lt_cv_file_magic_cmd
 
17646
deplibs_check_method=$lt_cv_deplibs_check_method
 
17647
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
17648
 
 
17649
 
 
17650
 
 
17651
 
 
17652
 
 
17653
 
 
17654
 
 
17655
 
 
17656
 
 
17657
 
 
17658
 
 
17659
 
 
17660
 
 
17661
 
 
17662
 
 
17663
 
 
17664
 
 
17665
 
 
17666
 
 
17667
 
 
17668
 
 
17669
 
 
17670
if test -n "$ac_tool_prefix"; then
 
17671
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
17672
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
17673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17674
$as_echo_n "checking for $ac_word... " >&6; }
 
17675
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
17676
  $as_echo_n "(cached) " >&6
 
17677
else
 
17678
  if test -n "$DLLTOOL"; then
 
17679
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
17680
else
 
17681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17682
for as_dir in $PATH
 
17683
do
 
17684
  IFS=$as_save_IFS
 
17685
  test -z "$as_dir" && as_dir=.
 
17686
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17687
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17688
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
17689
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17690
    break 2
 
17691
  fi
 
17692
done
 
17693
  done
 
17694
IFS=$as_save_IFS
 
17695
 
 
17696
fi
 
17697
fi
 
17698
DLLTOOL=$ac_cv_prog_DLLTOOL
 
17699
if test -n "$DLLTOOL"; then
 
17700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
17701
$as_echo "$DLLTOOL" >&6; }
 
17702
else
 
17703
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17704
$as_echo "no" >&6; }
 
17705
fi
 
17706
 
 
17707
 
 
17708
fi
 
17709
if test -z "$ac_cv_prog_DLLTOOL"; then
 
17710
  ac_ct_DLLTOOL=$DLLTOOL
 
17711
  # Extract the first word of "dlltool", so it can be a program name with args.
 
17712
set dummy dlltool; ac_word=$2
 
17713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17714
$as_echo_n "checking for $ac_word... " >&6; }
 
17715
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
17716
  $as_echo_n "(cached) " >&6
 
17717
else
 
17718
  if test -n "$ac_ct_DLLTOOL"; then
 
17719
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
17720
else
 
17721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17722
for as_dir in $PATH
 
17723
do
 
17724
  IFS=$as_save_IFS
 
17725
  test -z "$as_dir" && as_dir=.
 
17726
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17727
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17728
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
17729
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17730
    break 2
 
17731
  fi
 
17732
done
 
17733
  done
 
17734
IFS=$as_save_IFS
 
17735
 
 
17736
fi
 
17737
fi
 
17738
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
17739
if test -n "$ac_ct_DLLTOOL"; then
 
17740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
17741
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
17742
else
 
17743
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17744
$as_echo "no" >&6; }
 
17745
fi
 
17746
 
 
17747
  if test "x$ac_ct_DLLTOOL" = x; then
 
17748
    DLLTOOL="false"
 
17749
  else
 
17750
    case $cross_compiling:$ac_tool_warned in
 
17751
yes:)
 
17752
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
17753
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
17754
ac_tool_warned=yes ;;
 
17755
esac
 
17756
    DLLTOOL=$ac_ct_DLLTOOL
 
17757
  fi
 
17758
else
 
17759
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
17760
fi
 
17761
 
 
17762
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
17763
 
 
17764
 
 
17765
 
 
17766
 
 
17767
 
 
17768
 
 
17769
 
 
17770
 
 
17771
 
 
17772
 
 
17773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
17774
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
17775
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
17776
  $as_echo_n "(cached) " >&6
 
17777
else
 
17778
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
17779
 
 
17780
case $host_os in
 
17781
cygwin* | mingw* | pw32* | cegcc*)
 
17782
  # two different shell functions defined in ltmain.sh
 
17783
  # decide which to use based on capabilities of $DLLTOOL
 
17784
  case `$DLLTOOL --help 2>&1` in
 
17785
  *--identify-strict*)
 
17786
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
17787
    ;;
 
17788
  *)
 
17789
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
17790
    ;;
 
17791
  esac
 
17792
  ;;
 
17793
*)
 
17794
  # fallback: assume linklib IS sharedlib
 
17795
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
17796
  ;;
 
17797
esac
 
17798
 
 
17799
fi
 
17800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
17801
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
17802
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
17803
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
17804
 
 
17805
 
 
17806
 
 
17807
 
 
17808
 
 
17809
 
 
17810
 
 
17811
if test -n "$ac_tool_prefix"; then
 
17812
  for ac_prog in ar
 
17813
  do
 
17814
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
17815
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
17816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17817
$as_echo_n "checking for $ac_word... " >&6; }
 
17818
if ${ac_cv_prog_AR+:} false; then :
 
17819
  $as_echo_n "(cached) " >&6
 
17820
else
 
17821
  if test -n "$AR"; then
 
17822
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
17823
else
 
17824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17825
for as_dir in $PATH
 
17826
do
 
17827
  IFS=$as_save_IFS
 
17828
  test -z "$as_dir" && as_dir=.
 
17829
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17830
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17831
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
17832
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17833
    break 2
 
17834
  fi
 
17835
done
 
17836
  done
 
17837
IFS=$as_save_IFS
 
17838
 
 
17839
fi
 
17840
fi
 
17841
AR=$ac_cv_prog_AR
 
17842
if test -n "$AR"; then
 
17843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
17844
$as_echo "$AR" >&6; }
 
17845
else
 
17846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17847
$as_echo "no" >&6; }
 
17848
fi
 
17849
 
 
17850
 
 
17851
    test -n "$AR" && break
 
17852
  done
 
17853
fi
 
17854
if test -z "$AR"; then
 
17855
  ac_ct_AR=$AR
 
17856
  for ac_prog in ar
 
17857
do
 
17858
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
17859
set dummy $ac_prog; ac_word=$2
 
17860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17861
$as_echo_n "checking for $ac_word... " >&6; }
 
17862
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
17863
  $as_echo_n "(cached) " >&6
 
17864
else
 
17865
  if test -n "$ac_ct_AR"; then
 
17866
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
17867
else
 
17868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17869
for as_dir in $PATH
 
17870
do
 
17871
  IFS=$as_save_IFS
 
17872
  test -z "$as_dir" && as_dir=.
 
17873
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17874
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17875
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
17876
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17877
    break 2
 
17878
  fi
 
17879
done
 
17880
  done
 
17881
IFS=$as_save_IFS
 
17882
 
 
17883
fi
 
17884
fi
 
17885
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
17886
if test -n "$ac_ct_AR"; then
 
17887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
17888
$as_echo "$ac_ct_AR" >&6; }
 
17889
else
 
17890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17891
$as_echo "no" >&6; }
 
17892
fi
 
17893
 
 
17894
 
 
17895
  test -n "$ac_ct_AR" && break
 
17896
done
 
17897
 
 
17898
  if test "x$ac_ct_AR" = x; then
 
17899
    AR="false"
 
17900
  else
 
17901
    case $cross_compiling:$ac_tool_warned in
 
17902
yes:)
 
17903
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
17904
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
17905
ac_tool_warned=yes ;;
 
17906
esac
 
17907
    AR=$ac_ct_AR
 
17908
  fi
 
17909
fi
 
17910
 
 
17911
: ${AR=ar}
 
17912
: ${AR_FLAGS=cru}
 
17913
 
 
17914
 
 
17915
 
 
17916
 
 
17917
 
 
17918
 
 
17919
 
 
17920
 
 
17921
 
 
17922
 
 
17923
 
 
17924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
17925
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
17926
if ${lt_cv_ar_at_file+:} false; then :
 
17927
  $as_echo_n "(cached) " >&6
 
17928
else
 
17929
  lt_cv_ar_at_file=no
 
17930
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17931
/* end confdefs.h.  */
 
17932
 
 
17933
int
 
17934
main ()
 
17935
{
 
17936
 
 
17937
  ;
 
17938
  return 0;
 
17939
}
 
17940
_ACEOF
 
17941
if ac_fn_c_try_compile "$LINENO"; then :
 
17942
  echo conftest.$ac_objext > conftest.lst
 
17943
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
17944
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
17945
  (eval $lt_ar_try) 2>&5
 
17946
  ac_status=$?
 
17947
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17948
  test $ac_status = 0; }
 
17949
      if test "$ac_status" -eq 0; then
 
17950
        # Ensure the archiver fails upon bogus file names.
 
17951
        rm -f conftest.$ac_objext libconftest.a
 
17952
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
17953
  (eval $lt_ar_try) 2>&5
 
17954
  ac_status=$?
 
17955
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17956
  test $ac_status = 0; }
 
17957
        if test "$ac_status" -ne 0; then
 
17958
          lt_cv_ar_at_file=@
 
17959
        fi
 
17960
      fi
 
17961
      rm -f conftest.* libconftest.a
 
17962
 
 
17963
fi
 
17964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17965
 
 
17966
fi
 
17967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
17968
$as_echo "$lt_cv_ar_at_file" >&6; }
 
17969
 
 
17970
if test "x$lt_cv_ar_at_file" = xno; then
 
17971
  archiver_list_spec=
 
17972
else
 
17973
  archiver_list_spec=$lt_cv_ar_at_file
 
17974
fi
 
17975
 
 
17976
 
 
17977
 
 
17978
 
 
17979
 
 
17980
 
 
17981
 
 
17982
if test -n "$ac_tool_prefix"; then
 
17983
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
17984
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
17985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17986
$as_echo_n "checking for $ac_word... " >&6; }
 
17987
if ${ac_cv_prog_STRIP+:} false; then :
 
17988
  $as_echo_n "(cached) " >&6
 
17989
else
 
17990
  if test -n "$STRIP"; then
 
17991
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
17992
else
 
17993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17994
for as_dir in $PATH
 
17995
do
 
17996
  IFS=$as_save_IFS
 
17997
  test -z "$as_dir" && as_dir=.
 
17998
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17999
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18000
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
18001
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18002
    break 2
 
18003
  fi
 
18004
done
 
18005
  done
 
18006
IFS=$as_save_IFS
 
18007
 
 
18008
fi
 
18009
fi
 
18010
STRIP=$ac_cv_prog_STRIP
 
18011
if test -n "$STRIP"; then
 
18012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
18013
$as_echo "$STRIP" >&6; }
 
18014
else
 
18015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18016
$as_echo "no" >&6; }
 
18017
fi
 
18018
 
 
18019
 
 
18020
fi
 
18021
if test -z "$ac_cv_prog_STRIP"; then
 
18022
  ac_ct_STRIP=$STRIP
 
18023
  # Extract the first word of "strip", so it can be a program name with args.
 
18024
set dummy strip; ac_word=$2
 
18025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18026
$as_echo_n "checking for $ac_word... " >&6; }
 
18027
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
18028
  $as_echo_n "(cached) " >&6
 
18029
else
 
18030
  if test -n "$ac_ct_STRIP"; then
 
18031
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
18032
else
 
18033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18034
for as_dir in $PATH
 
18035
do
 
18036
  IFS=$as_save_IFS
 
18037
  test -z "$as_dir" && as_dir=.
 
18038
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18039
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18040
    ac_cv_prog_ac_ct_STRIP="strip"
 
18041
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18042
    break 2
 
18043
  fi
 
18044
done
 
18045
  done
 
18046
IFS=$as_save_IFS
 
18047
 
 
18048
fi
 
18049
fi
 
18050
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
18051
if test -n "$ac_ct_STRIP"; then
 
18052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
18053
$as_echo "$ac_ct_STRIP" >&6; }
 
18054
else
 
18055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18056
$as_echo "no" >&6; }
 
18057
fi
 
18058
 
 
18059
  if test "x$ac_ct_STRIP" = x; then
 
18060
    STRIP=":"
 
18061
  else
 
18062
    case $cross_compiling:$ac_tool_warned in
 
18063
yes:)
 
18064
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
18065
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
18066
ac_tool_warned=yes ;;
 
18067
esac
 
18068
    STRIP=$ac_ct_STRIP
 
18069
  fi
 
18070
else
 
18071
  STRIP="$ac_cv_prog_STRIP"
 
18072
fi
 
18073
 
 
18074
test -z "$STRIP" && STRIP=:
 
18075
 
 
18076
 
 
18077
 
 
18078
 
 
18079
 
 
18080
 
 
18081
if test -n "$ac_tool_prefix"; then
 
18082
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
18083
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
18084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18085
$as_echo_n "checking for $ac_word... " >&6; }
 
18086
if ${ac_cv_prog_RANLIB+:} false; then :
 
18087
  $as_echo_n "(cached) " >&6
 
18088
else
 
18089
  if test -n "$RANLIB"; then
 
18090
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
18091
else
 
18092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18093
for as_dir in $PATH
 
18094
do
 
18095
  IFS=$as_save_IFS
 
18096
  test -z "$as_dir" && as_dir=.
 
18097
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18098
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18099
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
18100
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18101
    break 2
 
18102
  fi
 
18103
done
 
18104
  done
 
18105
IFS=$as_save_IFS
 
18106
 
 
18107
fi
 
18108
fi
 
18109
RANLIB=$ac_cv_prog_RANLIB
 
18110
if test -n "$RANLIB"; then
 
18111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
18112
$as_echo "$RANLIB" >&6; }
 
18113
else
 
18114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18115
$as_echo "no" >&6; }
 
18116
fi
 
18117
 
 
18118
 
 
18119
fi
 
18120
if test -z "$ac_cv_prog_RANLIB"; then
 
18121
  ac_ct_RANLIB=$RANLIB
 
18122
  # Extract the first word of "ranlib", so it can be a program name with args.
 
18123
set dummy ranlib; ac_word=$2
 
18124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18125
$as_echo_n "checking for $ac_word... " >&6; }
 
18126
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
18127
  $as_echo_n "(cached) " >&6
 
18128
else
 
18129
  if test -n "$ac_ct_RANLIB"; then
 
18130
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
18131
else
 
18132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18133
for as_dir in $PATH
 
18134
do
 
18135
  IFS=$as_save_IFS
 
18136
  test -z "$as_dir" && as_dir=.
 
18137
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18138
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18139
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
18140
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18141
    break 2
 
18142
  fi
 
18143
done
 
18144
  done
 
18145
IFS=$as_save_IFS
 
18146
 
 
18147
fi
 
18148
fi
 
18149
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
18150
if test -n "$ac_ct_RANLIB"; then
 
18151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
18152
$as_echo "$ac_ct_RANLIB" >&6; }
 
18153
else
 
18154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18155
$as_echo "no" >&6; }
 
18156
fi
 
18157
 
 
18158
  if test "x$ac_ct_RANLIB" = x; then
 
18159
    RANLIB=":"
 
18160
  else
 
18161
    case $cross_compiling:$ac_tool_warned in
 
18162
yes:)
 
18163
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
18164
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
18165
ac_tool_warned=yes ;;
 
18166
esac
 
18167
    RANLIB=$ac_ct_RANLIB
 
18168
  fi
 
18169
else
 
18170
  RANLIB="$ac_cv_prog_RANLIB"
 
18171
fi
 
18172
 
 
18173
test -z "$RANLIB" && RANLIB=:
 
18174
 
 
18175
 
 
18176
 
 
18177
 
 
18178
 
 
18179
 
 
18180
# Determine commands to create old-style static archives.
 
18181
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
18182
old_postinstall_cmds='chmod 644 $oldlib'
 
18183
old_postuninstall_cmds=
 
18184
 
 
18185
if test -n "$RANLIB"; then
 
18186
  case $host_os in
 
18187
  openbsd*)
 
18188
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
18189
    ;;
 
18190
  *)
 
18191
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
18192
    ;;
 
18193
  esac
 
18194
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
18195
fi
 
18196
 
 
18197
case $host_os in
 
18198
  darwin*)
 
18199
    lock_old_archive_extraction=yes ;;
 
18200
  *)
 
18201
    lock_old_archive_extraction=no ;;
 
18202
esac
 
18203
 
 
18204
 
 
18205
 
 
18206
 
 
18207
 
 
18208
 
 
18209
 
 
18210
 
 
18211
 
 
18212
 
 
18213
 
 
18214
 
 
18215
 
 
18216
 
 
18217
 
 
18218
 
 
18219
 
 
18220
 
 
18221
 
 
18222
 
 
18223
 
 
18224
 
 
18225
 
 
18226
 
 
18227
 
 
18228
 
 
18229
 
 
18230
 
 
18231
 
 
18232
 
 
18233
 
 
18234
 
 
18235
 
 
18236
 
 
18237
 
 
18238
 
 
18239
 
 
18240
 
 
18241
 
 
18242
# If no C compiler was specified, use CC.
 
18243
LTCC=${LTCC-"$CC"}
 
18244
 
 
18245
# If no C compiler flags were specified, use CFLAGS.
 
18246
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18247
 
 
18248
# Allow CC to be a program name with arguments.
 
18249
compiler=$CC
 
18250
 
 
18251
 
 
18252
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
18253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
18254
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
18255
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
18256
  $as_echo_n "(cached) " >&6
 
18257
else
 
18258
 
 
18259
# These are sane defaults that work on at least a few old systems.
 
18260
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
18261
 
 
18262
# Character class describing NM global symbol codes.
 
18263
symcode='[BCDEGRST]'
 
18264
 
 
18265
# Regexp to match symbols that can be accessed directly from C.
 
18266
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
18267
 
 
18268
# Define system-specific variables.
 
18269
case $host_os in
 
18270
aix*)
 
18271
  symcode='[BCDT]'
 
18272
  ;;
 
18273
cygwin* | mingw* | pw32* | cegcc*)
 
18274
  symcode='[ABCDGISTW]'
 
18275
  ;;
 
18276
hpux*)
 
18277
  if test "$host_cpu" = ia64; then
 
18278
    symcode='[ABCDEGRST]'
 
18279
  fi
 
18280
  ;;
 
18281
irix* | nonstopux*)
 
18282
  symcode='[BCDEGRST]'
 
18283
  ;;
 
18284
osf*)
 
18285
  symcode='[BCDEGQRST]'
 
18286
  ;;
 
18287
solaris*)
 
18288
  symcode='[BDRT]'
 
18289
  ;;
 
18290
sco3.2v5*)
 
18291
  symcode='[DT]'
 
18292
  ;;
 
18293
sysv4.2uw2*)
 
18294
  symcode='[DT]'
 
18295
  ;;
 
18296
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
18297
  symcode='[ABDT]'
 
18298
  ;;
 
18299
sysv4)
 
18300
  symcode='[DFNSTU]'
 
18301
  ;;
 
18302
esac
 
18303
 
 
18304
# If we're using GNU nm, then use its standard symbol codes.
 
18305
case `$NM -V 2>&1` in
 
18306
*GNU* | *'with BFD'*)
 
18307
  symcode='[ABCDGIRSTW]' ;;
 
18308
esac
 
18309
 
 
18310
# Transform an extracted symbol line into a proper C declaration.
 
18311
# Some systems (esp. on ia64) link data and code symbols differently,
 
18312
# so use this general approach.
 
18313
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
18314
 
 
18315
# Transform an extracted symbol line into symbol name and symbol address
 
18316
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
18317
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'"
 
18318
 
 
18319
# Handle CRLF in mingw tool chain
 
18320
opt_cr=
 
18321
case $build_os in
 
18322
mingw*)
 
18323
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
18324
  ;;
 
18325
esac
 
18326
 
 
18327
# Try without a prefix underscore, then with it.
 
18328
for ac_symprfx in "" "_"; do
 
18329
 
 
18330
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
18331
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
18332
 
 
18333
  # Write the raw and C identifiers.
 
18334
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
18335
    # Fake it for dumpbin and say T for any non-static function
 
18336
    # and D for any global variable.
 
18337
    # Also find C++ and __fastcall symbols from MSVC++,
 
18338
    # which start with @ or ?.
 
18339
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
18340
"     {last_section=section; section=\$ 3};"\
 
18341
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
18342
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
18343
"     \$ 0!~/External *\|/{next};"\
 
18344
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
18345
"     {if(hide[section]) next};"\
 
18346
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
18347
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
18348
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
18349
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
18350
"     ' prfx=^$ac_symprfx"
 
18351
  else
 
18352
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
18353
  fi
 
18354
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
18355
 
 
18356
  # Check to see that the pipe works correctly.
 
18357
  pipe_works=no
 
18358
 
 
18359
  rm -f conftest*
 
18360
  cat > conftest.$ac_ext <<_LT_EOF
 
18361
#ifdef __cplusplus
 
18362
extern "C" {
 
18363
#endif
 
18364
char nm_test_var;
 
18365
void nm_test_func(void);
 
18366
void nm_test_func(void){}
 
18367
#ifdef __cplusplus
 
18368
}
 
18369
#endif
 
18370
int main(){nm_test_var='a';nm_test_func();return(0);}
 
18371
_LT_EOF
 
18372
 
 
18373
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
18374
  (eval $ac_compile) 2>&5
 
18375
  ac_status=$?
 
18376
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18377
  test $ac_status = 0; }; then
 
18378
    # Now try to grab the symbols.
 
18379
    nlist=conftest.nm
 
18380
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
18381
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
18382
  ac_status=$?
 
18383
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18384
  test $ac_status = 0; } && test -s "$nlist"; then
 
18385
      # Try sorting and uniquifying the output.
 
18386
      if sort "$nlist" | uniq > "$nlist"T; then
 
18387
        mv -f "$nlist"T "$nlist"
 
18388
      else
 
18389
        rm -f "$nlist"T
 
18390
      fi
 
18391
 
 
18392
      # Make sure that we snagged all the symbols we need.
 
18393
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
18394
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
18395
          cat <<_LT_EOF > conftest.$ac_ext
 
18396
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
18397
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
18398
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
18399
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
18400
# define LT_DLSYM_CONST
 
18401
#elif defined(__osf__)
 
18402
/* This system does not cope well with relocations in const data.  */
 
18403
# define LT_DLSYM_CONST
 
18404
#else
 
18405
# define LT_DLSYM_CONST const
 
18406
#endif
 
18407
 
 
18408
#ifdef __cplusplus
 
18409
extern "C" {
 
18410
#endif
 
18411
 
 
18412
_LT_EOF
 
18413
          # Now generate the symbol file.
 
18414
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
18415
 
 
18416
          cat <<_LT_EOF >> conftest.$ac_ext
 
18417
 
 
18418
/* The mapping between symbol names and symbols.  */
 
18419
LT_DLSYM_CONST struct {
 
18420
  const char *name;
 
18421
  void       *address;
 
18422
}
 
18423
lt__PROGRAM__LTX_preloaded_symbols[] =
 
18424
{
 
18425
  { "@PROGRAM@", (void *) 0 },
 
18426
_LT_EOF
 
18427
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
18428
          cat <<\_LT_EOF >> conftest.$ac_ext
 
18429
  {0, (void *) 0}
 
18430
};
 
18431
 
 
18432
/* This works around a problem in FreeBSD linker */
 
18433
#ifdef FREEBSD_WORKAROUND
 
18434
static const void *lt_preloaded_setup() {
 
18435
  return lt__PROGRAM__LTX_preloaded_symbols;
 
18436
}
 
18437
#endif
 
18438
 
 
18439
#ifdef __cplusplus
 
18440
}
 
18441
#endif
 
18442
_LT_EOF
 
18443
          # Now try linking the two files.
 
18444
          mv conftest.$ac_objext conftstm.$ac_objext
 
18445
          lt_globsym_save_LIBS=$LIBS
 
18446
          lt_globsym_save_CFLAGS=$CFLAGS
 
18447
          LIBS="conftstm.$ac_objext"
 
18448
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
18449
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
18450
  (eval $ac_link) 2>&5
 
18451
  ac_status=$?
 
18452
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18453
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
18454
            pipe_works=yes
 
18455
          fi
 
18456
          LIBS=$lt_globsym_save_LIBS
 
18457
          CFLAGS=$lt_globsym_save_CFLAGS
 
18458
        else
 
18459
          echo "cannot find nm_test_func in $nlist" >&5
 
18460
        fi
 
18461
      else
 
18462
        echo "cannot find nm_test_var in $nlist" >&5
 
18463
      fi
 
18464
    else
 
18465
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
18466
    fi
 
18467
  else
 
18468
    echo "$progname: failed program was:" >&5
 
18469
    cat conftest.$ac_ext >&5
 
18470
  fi
 
18471
  rm -rf conftest* conftst*
 
18472
 
 
18473
  # Do not use the global_symbol_pipe unless it works.
 
18474
  if test "$pipe_works" = yes; then
 
18475
    break
 
18476
  else
 
18477
    lt_cv_sys_global_symbol_pipe=
 
18478
  fi
 
18479
done
 
18480
 
 
18481
fi
 
18482
 
 
18483
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
18484
  lt_cv_sys_global_symbol_to_cdecl=
 
18485
fi
 
18486
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
18487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
18488
$as_echo "failed" >&6; }
 
18489
else
 
18490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
18491
$as_echo "ok" >&6; }
 
18492
fi
 
18493
 
 
18494
# Response file support.
 
18495
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
18496
  nm_file_list_spec='@'
 
18497
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
18498
  nm_file_list_spec='@'
 
18499
fi
 
18500
 
 
18501
 
 
18502
 
 
18503
 
 
18504
 
 
18505
 
 
18506
 
 
18507
 
 
18508
 
 
18509
 
 
18510
 
 
18511
 
 
18512
 
 
18513
 
 
18514
 
 
18515
 
 
18516
 
 
18517
 
 
18518
 
 
18519
 
 
18520
 
 
18521
 
 
18522
 
 
18523
 
 
18524
 
 
18525
 
 
18526
 
 
18527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
18528
$as_echo_n "checking for sysroot... " >&6; }
 
18529
 
 
18530
# Check whether --with-sysroot was given.
 
18531
if test "${with_sysroot+set}" = set; then :
 
18532
  withval=$with_sysroot;
 
18533
else
 
18534
  with_sysroot=no
 
18535
fi
 
18536
 
 
18537
 
 
18538
lt_sysroot=
 
18539
case ${with_sysroot} in #(
 
18540
 yes)
 
18541
   if test "$GCC" = yes; then
 
18542
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
18543
   fi
 
18544
   ;; #(
 
18545
 /*)
 
18546
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
18547
   ;; #(
 
18548
 no|'')
 
18549
   ;; #(
 
18550
 *)
 
18551
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
18552
$as_echo "${with_sysroot}" >&6; }
 
18553
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
18554
   ;;
 
18555
esac
 
18556
 
 
18557
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
18558
$as_echo "${lt_sysroot:-no}" >&6; }
 
18559
 
 
18560
 
 
18561
 
 
18562
 
 
18563
 
 
18564
# Check whether --enable-libtool-lock was given.
 
18565
if test "${enable_libtool_lock+set}" = set; then :
 
18566
  enableval=$enable_libtool_lock;
 
18567
fi
 
18568
 
 
18569
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
18570
 
 
18571
# Some flags need to be propagated to the compiler or linker for good
 
18572
# libtool support.
 
18573
case $host in
 
18574
ia64-*-hpux*)
 
18575
  # Find out which ABI we are using.
 
18576
  echo 'int i;' > conftest.$ac_ext
 
18577
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
18578
  (eval $ac_compile) 2>&5
 
18579
  ac_status=$?
 
18580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18581
  test $ac_status = 0; }; then
 
18582
    case `/usr/bin/file conftest.$ac_objext` in
 
18583
      *ELF-32*)
 
18584
        HPUX_IA64_MODE="32"
 
18585
        ;;
 
18586
      *ELF-64*)
 
18587
        HPUX_IA64_MODE="64"
 
18588
        ;;
 
18589
    esac
 
18590
  fi
 
18591
  rm -rf conftest*
 
18592
  ;;
 
18593
*-*-irix6*)
 
18594
  # Find out which ABI we are using.
 
18595
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
18596
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
18597
  (eval $ac_compile) 2>&5
 
18598
  ac_status=$?
 
18599
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18600
  test $ac_status = 0; }; then
 
18601
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
18602
      case `/usr/bin/file conftest.$ac_objext` in
 
18603
        *32-bit*)
 
18604
          LD="${LD-ld} -melf32bsmip"
 
18605
          ;;
 
18606
        *N32*)
 
18607
          LD="${LD-ld} -melf32bmipn32"
 
18608
          ;;
 
18609
        *64-bit*)
 
18610
          LD="${LD-ld} -melf64bmip"
 
18611
        ;;
 
18612
      esac
 
18613
    else
 
18614
      case `/usr/bin/file conftest.$ac_objext` in
 
18615
        *32-bit*)
 
18616
          LD="${LD-ld} -32"
 
18617
          ;;
 
18618
        *N32*)
 
18619
          LD="${LD-ld} -n32"
 
18620
          ;;
 
18621
        *64-bit*)
 
18622
          LD="${LD-ld} -64"
 
18623
          ;;
 
18624
      esac
 
18625
    fi
 
18626
  fi
 
18627
  rm -rf conftest*
 
18628
  ;;
 
18629
 
 
18630
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
18631
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
18632
  # Find out which ABI we are using.
 
18633
  echo 'int i;' > conftest.$ac_ext
 
18634
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
18635
  (eval $ac_compile) 2>&5
 
18636
  ac_status=$?
 
18637
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18638
  test $ac_status = 0; }; then
 
18639
    case `/usr/bin/file conftest.o` in
 
18640
      *32-bit*)
 
18641
        case $host in
 
18642
          x86_64-*kfreebsd*-gnu)
 
18643
            LD="${LD-ld} -m elf_i386_fbsd"
 
18644
            ;;
 
18645
          x86_64-*linux*)
 
18646
            LD="${LD-ld} -m elf_i386"
 
18647
            ;;
 
18648
          ppc64-*linux*|powerpc64-*linux*)
 
18649
            LD="${LD-ld} -m elf32ppclinux"
 
18650
            ;;
 
18651
          s390x-*linux*)
 
18652
            LD="${LD-ld} -m elf_s390"
 
18653
            ;;
 
18654
          sparc64-*linux*)
 
18655
            LD="${LD-ld} -m elf32_sparc"
 
18656
            ;;
 
18657
        esac
 
18658
        ;;
 
18659
      *64-bit*)
 
18660
        case $host in
 
18661
          x86_64-*kfreebsd*-gnu)
 
18662
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
18663
            ;;
 
18664
          x86_64-*linux*)
 
18665
            LD="${LD-ld} -m elf_x86_64"
 
18666
            ;;
 
18667
          ppc*-*linux*|powerpc*-*linux*)
 
18668
            LD="${LD-ld} -m elf64ppc"
 
18669
            ;;
 
18670
          s390*-*linux*|s390*-*tpf*)
 
18671
            LD="${LD-ld} -m elf64_s390"
 
18672
            ;;
 
18673
          sparc*-*linux*)
 
18674
            LD="${LD-ld} -m elf64_sparc"
 
18675
            ;;
 
18676
        esac
 
18677
        ;;
 
18678
    esac
 
18679
  fi
 
18680
  rm -rf conftest*
 
18681
  ;;
 
18682
 
 
18683
*-*-sco3.2v5*)
 
18684
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
18685
  SAVE_CFLAGS="$CFLAGS"
 
18686
  CFLAGS="$CFLAGS -belf"
 
18687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
18688
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
18689
if ${lt_cv_cc_needs_belf+:} false; then :
 
18690
  $as_echo_n "(cached) " >&6
 
18691
else
 
18692
  ac_ext=c
 
18693
ac_cpp='$CPP $CPPFLAGS'
 
18694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18697
 
 
18698
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18699
/* end confdefs.h.  */
 
18700
 
 
18701
int
 
18702
main ()
 
18703
{
 
18704
 
 
18705
  ;
 
18706
  return 0;
 
18707
}
 
18708
_ACEOF
 
18709
if ac_fn_c_try_link "$LINENO"; then :
 
18710
  lt_cv_cc_needs_belf=yes
 
18711
else
 
18712
  lt_cv_cc_needs_belf=no
 
18713
fi
 
18714
rm -f core conftest.err conftest.$ac_objext \
 
18715
    conftest$ac_exeext conftest.$ac_ext
 
18716
     ac_ext=c
 
18717
ac_cpp='$CPP $CPPFLAGS'
 
18718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18721
 
 
18722
fi
 
18723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
18724
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
18725
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
18726
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
18727
    CFLAGS="$SAVE_CFLAGS"
 
18728
  fi
 
18729
  ;;
 
18730
*-*solaris*)
 
18731
  # Find out which ABI we are using.
 
18732
  echo 'int i;' > conftest.$ac_ext
 
18733
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
18734
  (eval $ac_compile) 2>&5
 
18735
  ac_status=$?
 
18736
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18737
  test $ac_status = 0; }; then
 
18738
    case `/usr/bin/file conftest.o` in
 
18739
    *64-bit*)
 
18740
      case $lt_cv_prog_gnu_ld in
 
18741
      yes*)
 
18742
        case $host in
 
18743
        i?86-*-solaris*)
 
18744
          LD="${LD-ld} -m elf_x86_64"
 
18745
          ;;
 
18746
        sparc*-*-solaris*)
 
18747
          LD="${LD-ld} -m elf64_sparc"
 
18748
          ;;
 
18749
        esac
 
18750
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
18751
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
18752
          LD="${LD-ld}_sol2"
 
18753
        fi
 
18754
        ;;
 
18755
      *)
 
18756
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
18757
          LD="${LD-ld} -64"
 
18758
        fi
 
18759
        ;;
 
18760
      esac
 
18761
      ;;
 
18762
    esac
 
18763
  fi
 
18764
  rm -rf conftest*
 
18765
  ;;
 
18766
esac
 
18767
 
 
18768
need_locks="$enable_libtool_lock"
 
18769
 
 
18770
if test -n "$ac_tool_prefix"; then
 
18771
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
18772
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
18773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18774
$as_echo_n "checking for $ac_word... " >&6; }
 
18775
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
18776
  $as_echo_n "(cached) " >&6
 
18777
else
 
18778
  if test -n "$MANIFEST_TOOL"; then
 
18779
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
18780
else
 
18781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18782
for as_dir in $PATH
 
18783
do
 
18784
  IFS=$as_save_IFS
 
18785
  test -z "$as_dir" && as_dir=.
 
18786
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18787
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18788
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
18789
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18790
    break 2
 
18791
  fi
 
18792
done
 
18793
  done
 
18794
IFS=$as_save_IFS
 
18795
 
 
18796
fi
 
18797
fi
 
18798
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
18799
if test -n "$MANIFEST_TOOL"; then
 
18800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
18801
$as_echo "$MANIFEST_TOOL" >&6; }
 
18802
else
 
18803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18804
$as_echo "no" >&6; }
 
18805
fi
 
18806
 
 
18807
 
 
18808
fi
 
18809
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
18810
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
18811
  # Extract the first word of "mt", so it can be a program name with args.
 
18812
set dummy mt; ac_word=$2
 
18813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18814
$as_echo_n "checking for $ac_word... " >&6; }
 
18815
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
18816
  $as_echo_n "(cached) " >&6
 
18817
else
 
18818
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
18819
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
18820
else
 
18821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18822
for as_dir in $PATH
 
18823
do
 
18824
  IFS=$as_save_IFS
 
18825
  test -z "$as_dir" && as_dir=.
 
18826
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18827
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18828
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
18829
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18830
    break 2
 
18831
  fi
 
18832
done
 
18833
  done
 
18834
IFS=$as_save_IFS
 
18835
 
 
18836
fi
 
18837
fi
 
18838
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
18839
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
18840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
18841
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
18842
else
 
18843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18844
$as_echo "no" >&6; }
 
18845
fi
 
18846
 
 
18847
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
18848
    MANIFEST_TOOL=":"
 
18849
  else
 
18850
    case $cross_compiling:$ac_tool_warned in
 
18851
yes:)
 
18852
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
18853
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
18854
ac_tool_warned=yes ;;
 
18855
esac
 
18856
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
18857
  fi
 
18858
else
 
18859
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
18860
fi
 
18861
 
 
18862
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
18863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
18864
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
18865
if ${lt_cv_path_mainfest_tool+:} false; then :
 
18866
  $as_echo_n "(cached) " >&6
 
18867
else
 
18868
  lt_cv_path_mainfest_tool=no
 
18869
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
18870
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
18871
  cat conftest.err >&5
 
18872
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
18873
    lt_cv_path_mainfest_tool=yes
 
18874
  fi
 
18875
  rm -f conftest*
 
18876
fi
 
18877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
18878
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
18879
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
18880
  MANIFEST_TOOL=:
 
18881
fi
 
18882
 
 
18883
 
 
18884
 
 
18885
 
 
18886
 
 
18887
 
 
18888
  case $host_os in
 
18889
    rhapsody* | darwin*)
 
18890
    if test -n "$ac_tool_prefix"; then
 
18891
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
18892
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
18893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18894
$as_echo_n "checking for $ac_word... " >&6; }
 
18895
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
18896
  $as_echo_n "(cached) " >&6
 
18897
else
 
18898
  if test -n "$DSYMUTIL"; then
 
18899
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
18900
else
 
18901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18902
for as_dir in $PATH
 
18903
do
 
18904
  IFS=$as_save_IFS
 
18905
  test -z "$as_dir" && as_dir=.
 
18906
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18907
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18908
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
18909
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18910
    break 2
 
18911
  fi
 
18912
done
 
18913
  done
 
18914
IFS=$as_save_IFS
 
18915
 
 
18916
fi
 
18917
fi
 
18918
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
18919
if test -n "$DSYMUTIL"; then
 
18920
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
18921
$as_echo "$DSYMUTIL" >&6; }
 
18922
else
 
18923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18924
$as_echo "no" >&6; }
 
18925
fi
 
18926
 
 
18927
 
 
18928
fi
 
18929
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
18930
  ac_ct_DSYMUTIL=$DSYMUTIL
 
18931
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
18932
set dummy dsymutil; ac_word=$2
 
18933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18934
$as_echo_n "checking for $ac_word... " >&6; }
 
18935
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
18936
  $as_echo_n "(cached) " >&6
 
18937
else
 
18938
  if test -n "$ac_ct_DSYMUTIL"; then
 
18939
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
18940
else
 
18941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18942
for as_dir in $PATH
 
18943
do
 
18944
  IFS=$as_save_IFS
 
18945
  test -z "$as_dir" && as_dir=.
 
18946
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18947
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18948
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
18949
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18950
    break 2
 
18951
  fi
 
18952
done
 
18953
  done
 
18954
IFS=$as_save_IFS
 
18955
 
 
18956
fi
 
18957
fi
 
18958
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
18959
if test -n "$ac_ct_DSYMUTIL"; then
 
18960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
18961
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
18962
else
 
18963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18964
$as_echo "no" >&6; }
 
18965
fi
 
18966
 
 
18967
  if test "x$ac_ct_DSYMUTIL" = x; then
 
18968
    DSYMUTIL=":"
 
18969
  else
 
18970
    case $cross_compiling:$ac_tool_warned in
 
18971
yes:)
 
18972
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
18973
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
18974
ac_tool_warned=yes ;;
 
18975
esac
 
18976
    DSYMUTIL=$ac_ct_DSYMUTIL
 
18977
  fi
 
18978
else
 
18979
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
18980
fi
 
18981
 
 
18982
    if test -n "$ac_tool_prefix"; then
 
18983
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
18984
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
18985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18986
$as_echo_n "checking for $ac_word... " >&6; }
 
18987
if ${ac_cv_prog_NMEDIT+:} false; then :
 
18988
  $as_echo_n "(cached) " >&6
 
18989
else
 
18990
  if test -n "$NMEDIT"; then
 
18991
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
18992
else
 
18993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18994
for as_dir in $PATH
 
18995
do
 
18996
  IFS=$as_save_IFS
 
18997
  test -z "$as_dir" && as_dir=.
 
18998
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18999
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19000
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
19001
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19002
    break 2
 
19003
  fi
 
19004
done
 
19005
  done
 
19006
IFS=$as_save_IFS
 
19007
 
 
19008
fi
 
19009
fi
 
19010
NMEDIT=$ac_cv_prog_NMEDIT
 
19011
if test -n "$NMEDIT"; then
 
19012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
19013
$as_echo "$NMEDIT" >&6; }
 
19014
else
 
19015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19016
$as_echo "no" >&6; }
 
19017
fi
 
19018
 
 
19019
 
 
19020
fi
 
19021
if test -z "$ac_cv_prog_NMEDIT"; then
 
19022
  ac_ct_NMEDIT=$NMEDIT
 
19023
  # Extract the first word of "nmedit", so it can be a program name with args.
 
19024
set dummy nmedit; ac_word=$2
 
19025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19026
$as_echo_n "checking for $ac_word... " >&6; }
 
19027
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
19028
  $as_echo_n "(cached) " >&6
 
19029
else
 
19030
  if test -n "$ac_ct_NMEDIT"; then
 
19031
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
19032
else
 
19033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19034
for as_dir in $PATH
 
19035
do
 
19036
  IFS=$as_save_IFS
 
19037
  test -z "$as_dir" && as_dir=.
 
19038
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19039
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19040
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
19041
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19042
    break 2
 
19043
  fi
 
19044
done
 
19045
  done
 
19046
IFS=$as_save_IFS
 
19047
 
 
19048
fi
 
19049
fi
 
19050
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
19051
if test -n "$ac_ct_NMEDIT"; then
 
19052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
19053
$as_echo "$ac_ct_NMEDIT" >&6; }
 
19054
else
 
19055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19056
$as_echo "no" >&6; }
 
19057
fi
 
19058
 
 
19059
  if test "x$ac_ct_NMEDIT" = x; then
 
19060
    NMEDIT=":"
 
19061
  else
 
19062
    case $cross_compiling:$ac_tool_warned in
 
19063
yes:)
 
19064
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19065
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19066
ac_tool_warned=yes ;;
 
19067
esac
 
19068
    NMEDIT=$ac_ct_NMEDIT
 
19069
  fi
 
19070
else
 
19071
  NMEDIT="$ac_cv_prog_NMEDIT"
 
19072
fi
 
19073
 
 
19074
    if test -n "$ac_tool_prefix"; then
 
19075
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
19076
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
19077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19078
$as_echo_n "checking for $ac_word... " >&6; }
 
19079
if ${ac_cv_prog_LIPO+:} false; then :
 
19080
  $as_echo_n "(cached) " >&6
 
19081
else
 
19082
  if test -n "$LIPO"; then
 
19083
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
19084
else
 
19085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19086
for as_dir in $PATH
 
19087
do
 
19088
  IFS=$as_save_IFS
 
19089
  test -z "$as_dir" && as_dir=.
 
19090
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19091
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19092
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
19093
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19094
    break 2
 
19095
  fi
 
19096
done
 
19097
  done
 
19098
IFS=$as_save_IFS
 
19099
 
 
19100
fi
 
19101
fi
 
19102
LIPO=$ac_cv_prog_LIPO
 
19103
if test -n "$LIPO"; then
 
19104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
19105
$as_echo "$LIPO" >&6; }
 
19106
else
 
19107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19108
$as_echo "no" >&6; }
 
19109
fi
 
19110
 
 
19111
 
 
19112
fi
 
19113
if test -z "$ac_cv_prog_LIPO"; then
 
19114
  ac_ct_LIPO=$LIPO
 
19115
  # Extract the first word of "lipo", so it can be a program name with args.
 
19116
set dummy lipo; ac_word=$2
 
19117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19118
$as_echo_n "checking for $ac_word... " >&6; }
 
19119
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
19120
  $as_echo_n "(cached) " >&6
 
19121
else
 
19122
  if test -n "$ac_ct_LIPO"; then
 
19123
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
19124
else
 
19125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19126
for as_dir in $PATH
 
19127
do
 
19128
  IFS=$as_save_IFS
 
19129
  test -z "$as_dir" && as_dir=.
 
19130
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19131
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19132
    ac_cv_prog_ac_ct_LIPO="lipo"
 
19133
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19134
    break 2
 
19135
  fi
 
19136
done
 
19137
  done
 
19138
IFS=$as_save_IFS
 
19139
 
 
19140
fi
 
19141
fi
 
19142
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
19143
if test -n "$ac_ct_LIPO"; then
 
19144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
19145
$as_echo "$ac_ct_LIPO" >&6; }
 
19146
else
 
19147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19148
$as_echo "no" >&6; }
 
19149
fi
 
19150
 
 
19151
  if test "x$ac_ct_LIPO" = x; then
 
19152
    LIPO=":"
 
19153
  else
 
19154
    case $cross_compiling:$ac_tool_warned in
 
19155
yes:)
 
19156
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19157
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19158
ac_tool_warned=yes ;;
 
19159
esac
 
19160
    LIPO=$ac_ct_LIPO
 
19161
  fi
 
19162
else
 
19163
  LIPO="$ac_cv_prog_LIPO"
 
19164
fi
 
19165
 
 
19166
    if test -n "$ac_tool_prefix"; then
 
19167
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
19168
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
19169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19170
$as_echo_n "checking for $ac_word... " >&6; }
 
19171
if ${ac_cv_prog_OTOOL+:} false; then :
 
19172
  $as_echo_n "(cached) " >&6
 
19173
else
 
19174
  if test -n "$OTOOL"; then
 
19175
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
19176
else
 
19177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19178
for as_dir in $PATH
 
19179
do
 
19180
  IFS=$as_save_IFS
 
19181
  test -z "$as_dir" && as_dir=.
 
19182
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19183
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19184
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
19185
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19186
    break 2
 
19187
  fi
 
19188
done
 
19189
  done
 
19190
IFS=$as_save_IFS
 
19191
 
 
19192
fi
 
19193
fi
 
19194
OTOOL=$ac_cv_prog_OTOOL
 
19195
if test -n "$OTOOL"; then
 
19196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
19197
$as_echo "$OTOOL" >&6; }
 
19198
else
 
19199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19200
$as_echo "no" >&6; }
 
19201
fi
 
19202
 
 
19203
 
 
19204
fi
 
19205
if test -z "$ac_cv_prog_OTOOL"; then
 
19206
  ac_ct_OTOOL=$OTOOL
 
19207
  # Extract the first word of "otool", so it can be a program name with args.
 
19208
set dummy otool; ac_word=$2
 
19209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19210
$as_echo_n "checking for $ac_word... " >&6; }
 
19211
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
19212
  $as_echo_n "(cached) " >&6
 
19213
else
 
19214
  if test -n "$ac_ct_OTOOL"; then
 
19215
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
19216
else
 
19217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19218
for as_dir in $PATH
 
19219
do
 
19220
  IFS=$as_save_IFS
 
19221
  test -z "$as_dir" && as_dir=.
 
19222
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19223
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19224
    ac_cv_prog_ac_ct_OTOOL="otool"
 
19225
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19226
    break 2
 
19227
  fi
 
19228
done
 
19229
  done
 
19230
IFS=$as_save_IFS
 
19231
 
 
19232
fi
 
19233
fi
 
19234
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
19235
if test -n "$ac_ct_OTOOL"; then
 
19236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
19237
$as_echo "$ac_ct_OTOOL" >&6; }
 
19238
else
 
19239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19240
$as_echo "no" >&6; }
 
19241
fi
 
19242
 
 
19243
  if test "x$ac_ct_OTOOL" = x; then
 
19244
    OTOOL=":"
 
19245
  else
 
19246
    case $cross_compiling:$ac_tool_warned in
 
19247
yes:)
 
19248
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19249
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19250
ac_tool_warned=yes ;;
 
19251
esac
 
19252
    OTOOL=$ac_ct_OTOOL
 
19253
  fi
 
19254
else
 
19255
  OTOOL="$ac_cv_prog_OTOOL"
 
19256
fi
 
19257
 
 
19258
    if test -n "$ac_tool_prefix"; then
 
19259
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
19260
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
19261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19262
$as_echo_n "checking for $ac_word... " >&6; }
 
19263
if ${ac_cv_prog_OTOOL64+:} false; then :
 
19264
  $as_echo_n "(cached) " >&6
 
19265
else
 
19266
  if test -n "$OTOOL64"; then
 
19267
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
19268
else
 
19269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19270
for as_dir in $PATH
 
19271
do
 
19272
  IFS=$as_save_IFS
 
19273
  test -z "$as_dir" && as_dir=.
 
19274
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19275
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19276
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
19277
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19278
    break 2
 
19279
  fi
 
19280
done
 
19281
  done
 
19282
IFS=$as_save_IFS
 
19283
 
 
19284
fi
 
19285
fi
 
19286
OTOOL64=$ac_cv_prog_OTOOL64
 
19287
if test -n "$OTOOL64"; then
 
19288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
19289
$as_echo "$OTOOL64" >&6; }
 
19290
else
 
19291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19292
$as_echo "no" >&6; }
 
19293
fi
 
19294
 
 
19295
 
 
19296
fi
 
19297
if test -z "$ac_cv_prog_OTOOL64"; then
 
19298
  ac_ct_OTOOL64=$OTOOL64
 
19299
  # Extract the first word of "otool64", so it can be a program name with args.
 
19300
set dummy otool64; ac_word=$2
 
19301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
19302
$as_echo_n "checking for $ac_word... " >&6; }
 
19303
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
19304
  $as_echo_n "(cached) " >&6
 
19305
else
 
19306
  if test -n "$ac_ct_OTOOL64"; then
 
19307
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
19308
else
 
19309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19310
for as_dir in $PATH
 
19311
do
 
19312
  IFS=$as_save_IFS
 
19313
  test -z "$as_dir" && as_dir=.
 
19314
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19315
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19316
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
19317
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19318
    break 2
 
19319
  fi
 
19320
done
 
19321
  done
 
19322
IFS=$as_save_IFS
 
19323
 
 
19324
fi
 
19325
fi
 
19326
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
19327
if test -n "$ac_ct_OTOOL64"; then
 
19328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
19329
$as_echo "$ac_ct_OTOOL64" >&6; }
 
19330
else
 
19331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19332
$as_echo "no" >&6; }
 
19333
fi
 
19334
 
 
19335
  if test "x$ac_ct_OTOOL64" = x; then
 
19336
    OTOOL64=":"
 
19337
  else
 
19338
    case $cross_compiling:$ac_tool_warned in
 
19339
yes:)
 
19340
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
19341
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19342
ac_tool_warned=yes ;;
 
19343
esac
 
19344
    OTOOL64=$ac_ct_OTOOL64
 
19345
  fi
 
19346
else
 
19347
  OTOOL64="$ac_cv_prog_OTOOL64"
 
19348
fi
 
19349
 
 
19350
 
 
19351
 
 
19352
 
 
19353
 
 
19354
 
 
19355
 
 
19356
 
 
19357
 
 
19358
 
 
19359
 
 
19360
 
 
19361
 
 
19362
 
 
19363
 
 
19364
 
 
19365
 
 
19366
 
 
19367
 
 
19368
 
 
19369
 
 
19370
 
 
19371
 
 
19372
 
 
19373
 
 
19374
 
 
19375
 
 
19376
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
19377
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
19378
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
19379
  $as_echo_n "(cached) " >&6
 
19380
else
 
19381
  lt_cv_apple_cc_single_mod=no
 
19382
      if test -z "${LT_MULTI_MODULE}"; then
 
19383
        # By default we will add the -single_module flag. You can override
 
19384
        # by either setting the environment variable LT_MULTI_MODULE
 
19385
        # non-empty at configure time, or by adding -multi_module to the
 
19386
        # link flags.
 
19387
        rm -rf libconftest.dylib*
 
19388
        echo "int foo(void){return 1;}" > conftest.c
 
19389
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
19390
-dynamiclib -Wl,-single_module conftest.c" >&5
 
19391
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
19392
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
19393
        _lt_result=$?
 
19394
        # If there is a non-empty error log, and "single_module"
 
19395
        # appears in it, assume the flag caused a linker warning
 
19396
        if test -s conftest.err && $GREP single_module conftest.err; then
 
19397
          cat conftest.err >&5
 
19398
        # Otherwise, if the output was created with a 0 exit code from
 
19399
        # the compiler, it worked.
 
19400
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
19401
          lt_cv_apple_cc_single_mod=yes
 
19402
        else
 
19403
          cat conftest.err >&5
 
19404
        fi
 
19405
        rm -rf libconftest.dylib*
 
19406
        rm -f conftest.*
 
19407
      fi
 
19408
fi
 
19409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
19410
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
19411
 
 
19412
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
19413
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
19414
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
19415
  $as_echo_n "(cached) " >&6
 
19416
else
 
19417
  lt_cv_ld_exported_symbols_list=no
 
19418
      save_LDFLAGS=$LDFLAGS
 
19419
      echo "_main" > conftest.sym
 
19420
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
19421
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19422
/* end confdefs.h.  */
 
19423
 
 
19424
int
 
19425
main ()
 
19426
{
 
19427
 
 
19428
  ;
 
19429
  return 0;
 
19430
}
 
19431
_ACEOF
 
19432
if ac_fn_c_try_link "$LINENO"; then :
 
19433
  lt_cv_ld_exported_symbols_list=yes
 
19434
else
 
19435
  lt_cv_ld_exported_symbols_list=no
 
19436
fi
 
19437
rm -f core conftest.err conftest.$ac_objext \
 
19438
    conftest$ac_exeext conftest.$ac_ext
 
19439
        LDFLAGS="$save_LDFLAGS"
 
19440
 
 
19441
fi
 
19442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
19443
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
19444
 
 
19445
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
19446
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
19447
if ${lt_cv_ld_force_load+:} false; then :
 
19448
  $as_echo_n "(cached) " >&6
 
19449
else
 
19450
  lt_cv_ld_force_load=no
 
19451
      cat > conftest.c << _LT_EOF
 
19452
int forced_loaded() { return 2;}
 
19453
_LT_EOF
 
19454
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
19455
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
19456
      echo "$AR cru libconftest.a conftest.o" >&5
 
19457
      $AR cru libconftest.a conftest.o 2>&5
 
19458
      echo "$RANLIB libconftest.a" >&5
 
19459
      $RANLIB libconftest.a 2>&5
 
19460
      cat > conftest.c << _LT_EOF
 
19461
int main() { return 0;}
 
19462
_LT_EOF
 
19463
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
19464
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
19465
      _lt_result=$?
 
19466
      if test -s conftest.err && $GREP force_load conftest.err; then
 
19467
        cat conftest.err >&5
 
19468
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
19469
        lt_cv_ld_force_load=yes
 
19470
      else
 
19471
        cat conftest.err >&5
 
19472
      fi
 
19473
        rm -f conftest.err libconftest.a conftest conftest.c
 
19474
        rm -rf conftest.dSYM
 
19475
 
 
19476
fi
 
19477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
19478
$as_echo "$lt_cv_ld_force_load" >&6; }
 
19479
    case $host_os in
 
19480
    rhapsody* | darwin1.[012])
 
19481
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
19482
    darwin1.*)
 
19483
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
19484
    darwin*) # darwin 5.x on
 
19485
      # if running on 10.5 or later, the deployment target defaults
 
19486
      # to the OS version, if on x86, and 10.4, the deployment
 
19487
      # target defaults to 10.4. Don't you love it?
 
19488
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
19489
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
19490
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
19491
        10.[012]*)
 
19492
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
19493
        10.*)
 
19494
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
19495
      esac
 
19496
    ;;
 
19497
  esac
 
19498
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
19499
      _lt_dar_single_mod='$single_module'
 
19500
    fi
 
19501
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
19502
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
19503
    else
 
19504
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19505
    fi
 
19506
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
19507
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
19508
    else
 
19509
      _lt_dsymutil=
 
19510
    fi
 
19511
    ;;
 
19512
  esac
 
19513
 
 
19514
for ac_header in dlfcn.h
 
19515
do :
 
19516
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
19517
"
 
19518
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
19519
  cat >>confdefs.h <<_ACEOF
 
19520
#define HAVE_DLFCN_H 1
 
19521
_ACEOF
 
19522
 
 
19523
fi
 
19524
 
 
19525
done
 
19526
 
 
19527
 
 
19528
 
 
19529
func_stripname_cnf ()
 
19530
{
 
19531
  case ${2} in
 
19532
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
19533
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
19534
  esac
 
19535
} # func_stripname_cnf
 
19536
 
 
19537
 
 
19538
 
 
19539
 
 
19540
 
 
19541
# Set options
 
19542
# Check whether --enable-shared was given.
 
19543
if test "${enable_shared+set}" = set; then :
 
19544
  enableval=$enable_shared; p=${PACKAGE-default}
 
19545
    case $enableval in
 
19546
    yes) enable_shared=yes ;;
 
19547
    no) enable_shared=no ;;
 
19548
    *)
 
19549
      enable_shared=no
 
19550
      # Look at the argument we got.  We use all the common list separators.
 
19551
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19552
      for pkg in $enableval; do
 
19553
        IFS="$lt_save_ifs"
 
19554
        if test "X$pkg" = "X$p"; then
 
19555
          enable_shared=yes
 
19556
        fi
 
19557
      done
 
19558
      IFS="$lt_save_ifs"
 
19559
      ;;
 
19560
    esac
 
19561
else
 
19562
  enable_shared=no
 
19563
fi
 
19564
 
 
19565
 
 
19566
 
 
19567
 
 
19568
 
 
19569
 
 
19570
 
 
19571
 
 
19572
 
 
19573
 
 
19574
        enable_dlopen=no
 
19575
 
 
19576
 
 
19577
  enable_win32_dll=no
 
19578
 
 
19579
 
 
19580
 
 
19581
  # Check whether --enable-static was given.
 
19582
if test "${enable_static+set}" = set; then :
 
19583
  enableval=$enable_static; p=${PACKAGE-default}
 
19584
    case $enableval in
 
19585
    yes) enable_static=yes ;;
 
19586
    no) enable_static=no ;;
 
19587
    *)
 
19588
     enable_static=no
 
19589
      # Look at the argument we got.  We use all the common list separators.
 
19590
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19591
      for pkg in $enableval; do
 
19592
        IFS="$lt_save_ifs"
 
19593
        if test "X$pkg" = "X$p"; then
 
19594
          enable_static=yes
 
19595
        fi
 
19596
      done
 
19597
      IFS="$lt_save_ifs"
 
19598
      ;;
 
19599
    esac
 
19600
else
 
19601
  enable_static=yes
 
19602
fi
 
19603
 
 
19604
 
 
19605
 
 
19606
 
 
19607
 
 
19608
 
 
19609
 
 
19610
 
 
19611
 
 
19612
 
 
19613
# Check whether --with-pic was given.
 
19614
if test "${with_pic+set}" = set; then :
 
19615
  withval=$with_pic; lt_p=${PACKAGE-default}
 
19616
    case $withval in
 
19617
    yes|no) pic_mode=$withval ;;
 
19618
    *)
 
19619
      pic_mode=default
 
19620
      # Look at the argument we got.  We use all the common list separators.
 
19621
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19622
      for lt_pkg in $withval; do
 
19623
        IFS="$lt_save_ifs"
 
19624
        if test "X$lt_pkg" = "X$lt_p"; then
 
19625
          pic_mode=yes
 
19626
        fi
 
19627
      done
 
19628
      IFS="$lt_save_ifs"
 
19629
      ;;
 
19630
    esac
 
19631
else
 
19632
  pic_mode=default
 
19633
fi
 
19634
 
 
19635
 
 
19636
test -z "$pic_mode" && pic_mode=default
 
19637
 
 
19638
 
 
19639
 
 
19640
 
 
19641
 
 
19642
 
 
19643
 
 
19644
  # Check whether --enable-fast-install was given.
 
19645
if test "${enable_fast_install+set}" = set; then :
 
19646
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
19647
    case $enableval in
 
19648
    yes) enable_fast_install=yes ;;
 
19649
    no) enable_fast_install=no ;;
 
19650
    *)
 
19651
      enable_fast_install=no
 
19652
      # Look at the argument we got.  We use all the common list separators.
 
19653
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19654
      for pkg in $enableval; do
 
19655
        IFS="$lt_save_ifs"
 
19656
        if test "X$pkg" = "X$p"; then
 
19657
          enable_fast_install=yes
 
19658
        fi
 
19659
      done
 
19660
      IFS="$lt_save_ifs"
 
19661
      ;;
 
19662
    esac
 
19663
else
 
19664
  enable_fast_install=yes
 
19665
fi
 
19666
 
 
19667
 
 
19668
 
 
19669
 
 
19670
 
 
19671
 
 
19672
 
 
19673
 
 
19674
 
 
19675
 
 
19676
 
 
19677
# This can be used to rebuild libtool when needed
 
19678
LIBTOOL_DEPS="$ltmain"
 
19679
 
 
19680
# Always use our own libtool.
 
19681
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19682
 
 
19683
 
 
19684
 
 
19685
 
 
19686
 
 
19687
 
 
19688
 
 
19689
 
 
19690
 
 
19691
 
 
19692
 
 
19693
 
 
19694
 
 
19695
 
 
19696
 
 
19697
 
 
19698
 
 
19699
 
 
19700
 
 
19701
 
 
19702
 
 
19703
 
 
19704
 
 
19705
 
 
19706
 
 
19707
 
 
19708
 
 
19709
 
 
19710
 
 
19711
 
 
19712
test -z "$LN_S" && LN_S="ln -s"
 
19713
 
 
19714
 
 
19715
 
 
19716
 
 
19717
 
 
19718
 
 
19719
 
 
19720
 
 
19721
 
 
19722
 
 
19723
 
 
19724
 
 
19725
 
 
19726
 
 
19727
if test -n "${ZSH_VERSION+set}" ; then
 
19728
   setopt NO_GLOB_SUBST
 
19729
fi
 
19730
 
 
19731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
19732
$as_echo_n "checking for objdir... " >&6; }
 
19733
if ${lt_cv_objdir+:} false; then :
 
19734
  $as_echo_n "(cached) " >&6
 
19735
else
 
19736
  rm -f .libs 2>/dev/null
 
19737
mkdir .libs 2>/dev/null
 
19738
if test -d .libs; then
 
19739
  lt_cv_objdir=.libs
 
19740
else
 
19741
  # MS-DOS does not allow filenames that begin with a dot.
 
19742
  lt_cv_objdir=_libs
 
19743
fi
 
19744
rmdir .libs 2>/dev/null
 
19745
fi
 
19746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
19747
$as_echo "$lt_cv_objdir" >&6; }
 
19748
objdir=$lt_cv_objdir
 
19749
 
 
19750
 
 
19751
 
 
19752
 
 
19753
 
 
19754
cat >>confdefs.h <<_ACEOF
 
19755
#define LT_OBJDIR "$lt_cv_objdir/"
 
19756
_ACEOF
 
19757
 
 
19758
 
 
19759
 
 
19760
 
 
19761
case $host_os in
 
19762
aix3*)
 
19763
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
19764
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
19765
  # vanish in a puff of smoke.
 
19766
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
19767
    COLLECT_NAMES=
 
19768
    export COLLECT_NAMES
 
19769
  fi
 
19770
  ;;
 
19771
esac
 
19772
 
 
19773
# Global variables:
 
19774
ofile=libtool
 
19775
can_build_shared=yes
 
19776
 
 
19777
# All known linkers require a `.a' archive for static linking (except MSVC,
 
19778
# which needs '.lib').
 
19779
libext=a
 
19780
 
 
19781
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
19782
 
 
19783
old_CC="$CC"
 
19784
old_CFLAGS="$CFLAGS"
 
19785
 
 
19786
# Set sane defaults for various variables
 
19787
test -z "$CC" && CC=cc
 
19788
test -z "$LTCC" && LTCC=$CC
 
19789
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
19790
test -z "$LD" && LD=ld
 
19791
test -z "$ac_objext" && ac_objext=o
 
19792
 
 
19793
for cc_temp in $compiler""; do
 
19794
  case $cc_temp in
 
19795
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19796
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19797
    \-*) ;;
 
19798
    *) break;;
 
19799
  esac
 
19800
done
 
19801
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
19802
 
 
19803
 
 
19804
# Only perform the check for file, if the check method requires it
 
19805
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
19806
case $deplibs_check_method in
 
19807
file_magic*)
 
19808
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
19809
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
19810
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
19811
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
19812
  $as_echo_n "(cached) " >&6
 
19813
else
 
19814
  case $MAGIC_CMD in
 
19815
[\\/*] |  ?:[\\/]*)
 
19816
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
19817
  ;;
 
19818
*)
 
19819
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
19820
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
19821
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
19822
  for ac_dir in $ac_dummy; do
 
19823
    IFS="$lt_save_ifs"
 
19824
    test -z "$ac_dir" && ac_dir=.
 
19825
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
19826
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
19827
      if test -n "$file_magic_test_file"; then
 
19828
        case $deplibs_check_method in
 
19829
        "file_magic "*)
 
19830
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
19831
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
19832
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
19833
            $EGREP "$file_magic_regex" > /dev/null; then
 
19834
            :
 
19835
          else
 
19836
            cat <<_LT_EOF 1>&2
 
19837
 
 
19838
*** Warning: the command libtool uses to detect shared libraries,
 
19839
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
19840
*** The result is that libtool may fail to recognize shared libraries
 
19841
*** as such.  This will affect the creation of libtool libraries that
 
19842
*** depend on shared libraries, but programs linked with such libtool
 
19843
*** libraries will work regardless of this problem.  Nevertheless, you
 
19844
*** may want to report the problem to your system manager and/or to
 
19845
*** bug-libtool@gnu.org
 
19846
 
 
19847
_LT_EOF
 
19848
          fi ;;
 
19849
        esac
 
19850
      fi
 
19851
      break
 
19852
    fi
 
19853
  done
 
19854
  IFS="$lt_save_ifs"
 
19855
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
19856
  ;;
 
19857
esac
 
19858
fi
 
19859
 
 
19860
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
19861
if test -n "$MAGIC_CMD"; then
 
19862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
19863
$as_echo "$MAGIC_CMD" >&6; }
 
19864
else
 
19865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19866
$as_echo "no" >&6; }
 
19867
fi
 
19868
 
 
19869
 
 
19870
 
 
19871
 
 
19872
 
 
19873
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
19874
  if test -n "$ac_tool_prefix"; then
 
19875
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
19876
$as_echo_n "checking for file... " >&6; }
 
19877
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
19878
  $as_echo_n "(cached) " >&6
 
19879
else
 
19880
  case $MAGIC_CMD in
 
19881
[\\/*] |  ?:[\\/]*)
 
19882
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
19883
  ;;
 
19884
*)
 
19885
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
19886
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
19887
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
19888
  for ac_dir in $ac_dummy; do
 
19889
    IFS="$lt_save_ifs"
 
19890
    test -z "$ac_dir" && ac_dir=.
 
19891
    if test -f $ac_dir/file; then
 
19892
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
19893
      if test -n "$file_magic_test_file"; then
 
19894
        case $deplibs_check_method in
 
19895
        "file_magic "*)
 
19896
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
19897
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
19898
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
19899
            $EGREP "$file_magic_regex" > /dev/null; then
 
19900
            :
 
19901
          else
 
19902
            cat <<_LT_EOF 1>&2
 
19903
 
 
19904
*** Warning: the command libtool uses to detect shared libraries,
 
19905
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
19906
*** The result is that libtool may fail to recognize shared libraries
 
19907
*** as such.  This will affect the creation of libtool libraries that
 
19908
*** depend on shared libraries, but programs linked with such libtool
 
19909
*** libraries will work regardless of this problem.  Nevertheless, you
 
19910
*** may want to report the problem to your system manager and/or to
 
19911
*** bug-libtool@gnu.org
 
19912
 
 
19913
_LT_EOF
 
19914
          fi ;;
 
19915
        esac
 
19916
      fi
 
19917
      break
 
19918
    fi
 
19919
  done
 
19920
  IFS="$lt_save_ifs"
 
19921
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
19922
  ;;
 
19923
esac
 
19924
fi
 
19925
 
 
19926
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
19927
if test -n "$MAGIC_CMD"; then
 
19928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
19929
$as_echo "$MAGIC_CMD" >&6; }
 
19930
else
 
19931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19932
$as_echo "no" >&6; }
 
19933
fi
 
19934
 
 
19935
 
 
19936
  else
 
19937
    MAGIC_CMD=:
 
19938
  fi
 
19939
fi
 
19940
 
 
19941
  fi
 
19942
  ;;
 
19943
esac
 
19944
 
 
19945
# Use C for the default configuration in the libtool script
 
19946
 
 
19947
lt_save_CC="$CC"
 
19948
ac_ext=c
 
19949
ac_cpp='$CPP $CPPFLAGS'
 
19950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19953
 
 
19954
 
 
19955
# Source file extension for C test sources.
 
19956
ac_ext=c
 
19957
 
 
19958
# Object file extension for compiled C test sources.
 
19959
objext=o
 
19960
objext=$objext
 
19961
 
 
19962
# Code to be used in simple compile tests
 
19963
lt_simple_compile_test_code="int some_variable = 0;"
 
19964
 
 
19965
# Code to be used in simple link tests
 
19966
lt_simple_link_test_code='int main(){return(0);}'
 
19967
 
 
19968
 
 
19969
 
 
19970
 
 
19971
 
 
19972
 
 
19973
 
 
19974
# If no C compiler was specified, use CC.
 
19975
LTCC=${LTCC-"$CC"}
 
19976
 
 
19977
# If no C compiler flags were specified, use CFLAGS.
 
19978
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19979
 
 
19980
# Allow CC to be a program name with arguments.
 
19981
compiler=$CC
 
19982
 
 
19983
# Save the default compiler, since it gets overwritten when the other
 
19984
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
19985
compiler_DEFAULT=$CC
 
19986
 
 
19987
# save warnings/boilerplate of simple test code
 
19988
ac_outfile=conftest.$ac_objext
 
19989
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19990
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19991
_lt_compiler_boilerplate=`cat conftest.err`
 
19992
$RM conftest*
 
19993
 
 
19994
ac_outfile=conftest.$ac_objext
 
19995
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19996
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19997
_lt_linker_boilerplate=`cat conftest.err`
 
19998
$RM -r conftest*
 
19999
 
 
20000
 
 
20001
## CAVEAT EMPTOR:
 
20002
## There is no encapsulation within the following macros, do not change
 
20003
## the running order or otherwise move them around unless you know exactly
 
20004
## what you are doing...
 
20005
if test -n "$compiler"; then
 
20006
 
 
20007
lt_prog_compiler_no_builtin_flag=
 
20008
 
 
20009
if test "$GCC" = yes; then
 
20010
  case $cc_basename in
 
20011
  nvcc*)
 
20012
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
20013
  *)
 
20014
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
20015
  esac
 
20016
 
 
20017
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
20018
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
20019
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
20020
  $as_echo_n "(cached) " >&6
 
20021
else
 
20022
  lt_cv_prog_compiler_rtti_exceptions=no
 
20023
   ac_outfile=conftest.$ac_objext
 
20024
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20025
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
20026
   # Insert the option either (1) after the last *FLAGS variable, or
 
20027
   # (2) before a word containing "conftest.", or (3) at the end.
 
20028
   # Note that $ac_compile itself does not contain backslashes and begins
 
20029
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20030
   # The option is referenced via a variable to avoid confusing sed.
 
20031
   lt_compile=`echo "$ac_compile" | $SED \
 
20032
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20033
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20034
   -e 's:$: $lt_compiler_flag:'`
 
20035
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
20036
   (eval "$lt_compile" 2>conftest.err)
 
20037
   ac_status=$?
 
20038
   cat conftest.err >&5
 
20039
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20040
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
20041
     # The compiler can only warn and ignore the option if not recognized
 
20042
     # So say no if there are warnings other than the usual output.
 
20043
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
20044
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
20045
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
20046
       lt_cv_prog_compiler_rtti_exceptions=yes
 
20047
     fi
 
20048
   fi
 
20049
   $RM conftest*
 
20050
 
 
20051
fi
 
20052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
20053
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
20054
 
 
20055
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
20056
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
20057
else
 
20058
    :
 
20059
fi
 
20060
 
 
20061
fi
 
20062
 
 
20063
 
 
20064
 
 
20065
 
 
20066
 
 
20067
 
 
20068
  lt_prog_compiler_wl=
 
20069
lt_prog_compiler_pic=
 
20070
lt_prog_compiler_static=
 
20071
 
 
20072
 
 
20073
  if test "$GCC" = yes; then
 
20074
    lt_prog_compiler_wl='-Wl,'
 
20075
    lt_prog_compiler_static='-static'
 
20076
 
 
20077
    case $host_os in
 
20078
      aix*)
 
20079
      # All AIX code is PIC.
 
20080
      if test "$host_cpu" = ia64; then
 
20081
        # AIX 5 now supports IA64 processor
 
20082
        lt_prog_compiler_static='-Bstatic'
 
20083
      fi
 
20084
      ;;
 
20085
 
 
20086
    amigaos*)
 
20087
      case $host_cpu in
 
20088
      powerpc)
 
20089
            # see comment about AmigaOS4 .so support
 
20090
            lt_prog_compiler_pic='-fPIC'
 
20091
        ;;
 
20092
      m68k)
 
20093
            # FIXME: we need at least 68020 code to build shared libraries, but
 
20094
            # adding the `-m68020' flag to GCC prevents building anything better,
 
20095
            # like `-m68040'.
 
20096
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
20097
        ;;
 
20098
      esac
 
20099
      ;;
 
20100
 
 
20101
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
20102
      # PIC is the default for these OSes.
 
20103
      ;;
 
20104
 
 
20105
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
20106
      # This hack is so that the source file can tell whether it is being
 
20107
      # built for inclusion in a dll (and should export symbols for example).
 
20108
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
20109
      # (--disable-auto-import) libraries
 
20110
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
20111
      ;;
 
20112
 
 
20113
    darwin* | rhapsody*)
 
20114
      # PIC is the default on this platform
 
20115
      # Common symbols not allowed in MH_DYLIB files
 
20116
      lt_prog_compiler_pic='-fno-common'
 
20117
      ;;
 
20118
 
 
20119
    haiku*)
 
20120
      # PIC is the default for Haiku.
 
20121
      # The "-static" flag exists, but is broken.
 
20122
      lt_prog_compiler_static=
 
20123
      ;;
 
20124
 
 
20125
    hpux*)
 
20126
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
20127
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
20128
      # sets the default TLS model and affects inlining.
 
20129
      case $host_cpu in
 
20130
      hppa*64*)
 
20131
        # +Z the default
 
20132
        ;;
 
20133
      *)
 
20134
        lt_prog_compiler_pic='-fPIC'
 
20135
        ;;
 
20136
      esac
 
20137
      ;;
 
20138
 
 
20139
    interix[3-9]*)
 
20140
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
20141
      # Instead, we relocate shared libraries at runtime.
 
20142
      ;;
 
20143
 
 
20144
    msdosdjgpp*)
 
20145
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
20146
      # on systems that don't support them.
 
20147
      lt_prog_compiler_can_build_shared=no
 
20148
      enable_shared=no
 
20149
      ;;
 
20150
 
 
20151
    *nto* | *qnx*)
 
20152
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
20153
      # it will coredump.
 
20154
      lt_prog_compiler_pic='-fPIC -shared'
 
20155
      ;;
 
20156
 
 
20157
    sysv4*MP*)
 
20158
      if test -d /usr/nec; then
 
20159
        lt_prog_compiler_pic=-Kconform_pic
 
20160
      fi
 
20161
      ;;
 
20162
 
 
20163
    *)
 
20164
      lt_prog_compiler_pic='-fPIC'
 
20165
      ;;
 
20166
    esac
 
20167
 
 
20168
    case $cc_basename in
 
20169
    nvcc*) # Cuda Compiler Driver 2.2
 
20170
      lt_prog_compiler_wl='-Xlinker '
 
20171
      if test -n "$lt_prog_compiler_pic"; then
 
20172
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
20173
      fi
 
20174
      ;;
 
20175
    esac
 
20176
  else
 
20177
    # PORTME Check for flag to pass linker flags through the system compiler.
 
20178
    case $host_os in
 
20179
    aix*)
 
20180
      lt_prog_compiler_wl='-Wl,'
 
20181
      if test "$host_cpu" = ia64; then
 
20182
        # AIX 5 now supports IA64 processor
 
20183
        lt_prog_compiler_static='-Bstatic'
 
20184
      else
 
20185
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
20186
      fi
 
20187
      ;;
 
20188
 
 
20189
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
20190
      # This hack is so that the source file can tell whether it is being
 
20191
      # built for inclusion in a dll (and should export symbols for example).
 
20192
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
20193
      ;;
 
20194
 
 
20195
    hpux9* | hpux10* | hpux11*)
 
20196
      lt_prog_compiler_wl='-Wl,'
 
20197
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
20198
      # not for PA HP-UX.
 
20199
      case $host_cpu in
 
20200
      hppa*64*|ia64*)
 
20201
        # +Z the default
 
20202
        ;;
 
20203
      *)
 
20204
        lt_prog_compiler_pic='+Z'
 
20205
        ;;
 
20206
      esac
 
20207
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
20208
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
20209
      ;;
 
20210
 
 
20211
    irix5* | irix6* | nonstopux*)
 
20212
      lt_prog_compiler_wl='-Wl,'
 
20213
      # PIC (with -KPIC) is the default.
 
20214
      lt_prog_compiler_static='-non_shared'
 
20215
      ;;
 
20216
 
 
20217
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
20218
      case $cc_basename in
 
20219
      # old Intel for x86_64 which still supported -KPIC.
 
20220
      ecc*)
 
20221
        lt_prog_compiler_wl='-Wl,'
 
20222
        lt_prog_compiler_pic='-KPIC'
 
20223
        lt_prog_compiler_static='-static'
 
20224
        ;;
 
20225
      # icc used to be incompatible with GCC.
 
20226
      # ICC 10 doesn't accept -KPIC any more.
 
20227
      icc* | ifort*)
 
20228
        lt_prog_compiler_wl='-Wl,'
 
20229
        lt_prog_compiler_pic='-fPIC'
 
20230
        lt_prog_compiler_static='-static'
 
20231
        ;;
 
20232
      # Lahey Fortran 8.1.
 
20233
      lf95*)
 
20234
        lt_prog_compiler_wl='-Wl,'
 
20235
        lt_prog_compiler_pic='--shared'
 
20236
        lt_prog_compiler_static='--static'
 
20237
        ;;
 
20238
      nagfor*)
 
20239
        # NAG Fortran compiler
 
20240
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
20241
        lt_prog_compiler_pic='-PIC'
 
20242
        lt_prog_compiler_static='-Bstatic'
 
20243
        ;;
 
20244
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
20245
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
20246
        # which looks to be a dead project)
 
20247
        lt_prog_compiler_wl='-Wl,'
 
20248
        lt_prog_compiler_pic='-fpic'
 
20249
        lt_prog_compiler_static='-Bstatic'
 
20250
        ;;
 
20251
      ccc*)
 
20252
        lt_prog_compiler_wl='-Wl,'
 
20253
        # All Alpha code is PIC.
 
20254
        lt_prog_compiler_static='-non_shared'
 
20255
        ;;
 
20256
      xl* | bgxl* | bgf* | mpixl*)
 
20257
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
20258
        lt_prog_compiler_wl='-Wl,'
 
20259
        lt_prog_compiler_pic='-qpic'
 
20260
        lt_prog_compiler_static='-qstaticlink'
 
20261
        ;;
 
20262
      *)
 
20263
        case `$CC -V 2>&1 | sed 5q` in
 
20264
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
20265
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
20266
          lt_prog_compiler_pic='-KPIC'
 
20267
          lt_prog_compiler_static='-Bstatic'
 
20268
          lt_prog_compiler_wl=''
 
20269
          ;;
 
20270
        *Sun\ F* | *Sun*Fortran*)
 
20271
          lt_prog_compiler_pic='-KPIC'
 
20272
          lt_prog_compiler_static='-Bstatic'
 
20273
          lt_prog_compiler_wl='-Qoption ld '
 
20274
          ;;
 
20275
        *Sun\ C*)
 
20276
          # Sun C 5.9
 
20277
          lt_prog_compiler_pic='-KPIC'
 
20278
          lt_prog_compiler_static='-Bstatic'
 
20279
          lt_prog_compiler_wl='-Wl,'
 
20280
          ;;
 
20281
        *Intel*\ [CF]*Compiler*)
 
20282
          lt_prog_compiler_wl='-Wl,'
 
20283
          lt_prog_compiler_pic='-fPIC'
 
20284
          lt_prog_compiler_static='-static'
 
20285
          ;;
 
20286
        *Portland\ Group*)
 
20287
          lt_prog_compiler_wl='-Wl,'
 
20288
          lt_prog_compiler_pic='-fpic'
 
20289
          lt_prog_compiler_static='-Bstatic'
 
20290
          ;;
 
20291
        esac
 
20292
        ;;
 
20293
      esac
 
20294
      ;;
 
20295
 
 
20296
    newsos6)
 
20297
      lt_prog_compiler_pic='-KPIC'
 
20298
      lt_prog_compiler_static='-Bstatic'
 
20299
      ;;
 
20300
 
 
20301
    *nto* | *qnx*)
 
20302
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
20303
      # it will coredump.
 
20304
      lt_prog_compiler_pic='-fPIC -shared'
 
20305
      ;;
 
20306
 
 
20307
    osf3* | osf4* | osf5*)
 
20308
      lt_prog_compiler_wl='-Wl,'
 
20309
      # All OSF/1 code is PIC.
 
20310
      lt_prog_compiler_static='-non_shared'
 
20311
      ;;
 
20312
 
 
20313
    rdos*)
 
20314
      lt_prog_compiler_static='-non_shared'
 
20315
      ;;
 
20316
 
 
20317
    solaris*)
 
20318
      lt_prog_compiler_pic='-KPIC'
 
20319
      lt_prog_compiler_static='-Bstatic'
 
20320
      case $cc_basename in
 
20321
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
20322
        lt_prog_compiler_wl='-Qoption ld ';;
 
20323
      *)
 
20324
        lt_prog_compiler_wl='-Wl,';;
 
20325
      esac
 
20326
      ;;
 
20327
 
 
20328
    sunos4*)
 
20329
      lt_prog_compiler_wl='-Qoption ld '
 
20330
      lt_prog_compiler_pic='-PIC'
 
20331
      lt_prog_compiler_static='-Bstatic'
 
20332
      ;;
 
20333
 
 
20334
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
20335
      lt_prog_compiler_wl='-Wl,'
 
20336
      lt_prog_compiler_pic='-KPIC'
 
20337
      lt_prog_compiler_static='-Bstatic'
 
20338
      ;;
 
20339
 
 
20340
    sysv4*MP*)
 
20341
      if test -d /usr/nec ;then
 
20342
        lt_prog_compiler_pic='-Kconform_pic'
 
20343
        lt_prog_compiler_static='-Bstatic'
 
20344
      fi
 
20345
      ;;
 
20346
 
 
20347
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
20348
      lt_prog_compiler_wl='-Wl,'
 
20349
      lt_prog_compiler_pic='-KPIC'
 
20350
      lt_prog_compiler_static='-Bstatic'
 
20351
      ;;
 
20352
 
 
20353
    unicos*)
 
20354
      lt_prog_compiler_wl='-Wl,'
 
20355
      lt_prog_compiler_can_build_shared=no
 
20356
      ;;
 
20357
 
 
20358
    uts4*)
 
20359
      lt_prog_compiler_pic='-pic'
 
20360
      lt_prog_compiler_static='-Bstatic'
 
20361
      ;;
 
20362
 
 
20363
    *)
 
20364
      lt_prog_compiler_can_build_shared=no
 
20365
      ;;
 
20366
    esac
 
20367
  fi
 
20368
 
 
20369
case $host_os in
 
20370
  # For platforms which do not support PIC, -DPIC is meaningless:
 
20371
  *djgpp*)
 
20372
    lt_prog_compiler_pic=
 
20373
    ;;
 
20374
  *)
 
20375
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
20376
    ;;
 
20377
esac
 
20378
 
 
20379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
20380
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
20381
if ${lt_cv_prog_compiler_pic+:} false; then :
 
20382
  $as_echo_n "(cached) " >&6
 
20383
else
 
20384
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
20385
fi
 
20386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
20387
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
20388
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
20389
 
 
20390
#
 
20391
# Check to make sure the PIC flag actually works.
 
20392
#
 
20393
if test -n "$lt_prog_compiler_pic"; then
 
20394
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
20395
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
20396
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
20397
  $as_echo_n "(cached) " >&6
 
20398
else
 
20399
  lt_cv_prog_compiler_pic_works=no
 
20400
   ac_outfile=conftest.$ac_objext
 
20401
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20402
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
20403
   # Insert the option either (1) after the last *FLAGS variable, or
 
20404
   # (2) before a word containing "conftest.", or (3) at the end.
 
20405
   # Note that $ac_compile itself does not contain backslashes and begins
 
20406
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20407
   # The option is referenced via a variable to avoid confusing sed.
 
20408
   lt_compile=`echo "$ac_compile" | $SED \
 
20409
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20410
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20411
   -e 's:$: $lt_compiler_flag:'`
 
20412
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
20413
   (eval "$lt_compile" 2>conftest.err)
 
20414
   ac_status=$?
 
20415
   cat conftest.err >&5
 
20416
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20417
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
20418
     # The compiler can only warn and ignore the option if not recognized
 
20419
     # So say no if there are warnings other than the usual output.
 
20420
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
20421
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
20422
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
20423
       lt_cv_prog_compiler_pic_works=yes
 
20424
     fi
 
20425
   fi
 
20426
   $RM conftest*
 
20427
 
 
20428
fi
 
20429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
20430
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
20431
 
 
20432
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
20433
    case $lt_prog_compiler_pic in
 
20434
     "" | " "*) ;;
 
20435
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
20436
     esac
 
20437
else
 
20438
    lt_prog_compiler_pic=
 
20439
     lt_prog_compiler_can_build_shared=no
 
20440
fi
 
20441
 
 
20442
fi
 
20443
 
 
20444
 
 
20445
 
 
20446
 
 
20447
 
 
20448
 
 
20449
 
 
20450
 
 
20451
 
 
20452
 
 
20453
 
 
20454
#
 
20455
# Check to make sure the static flag actually works.
 
20456
#
 
20457
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
20458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
20459
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
20460
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
20461
  $as_echo_n "(cached) " >&6
 
20462
else
 
20463
  lt_cv_prog_compiler_static_works=no
 
20464
   save_LDFLAGS="$LDFLAGS"
 
20465
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
20466
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
20467
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
20468
     # The linker can only warn and ignore the option if not recognized
 
20469
     # So say no if there are warnings
 
20470
     if test -s conftest.err; then
 
20471
       # Append any errors to the config.log.
 
20472
       cat conftest.err 1>&5
 
20473
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
20474
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
20475
       if diff conftest.exp conftest.er2 >/dev/null; then
 
20476
         lt_cv_prog_compiler_static_works=yes
 
20477
       fi
 
20478
     else
 
20479
       lt_cv_prog_compiler_static_works=yes
 
20480
     fi
 
20481
   fi
 
20482
   $RM -r conftest*
 
20483
   LDFLAGS="$save_LDFLAGS"
 
20484
 
 
20485
fi
 
20486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
20487
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
20488
 
 
20489
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
20490
    :
 
20491
else
 
20492
    lt_prog_compiler_static=
 
20493
fi
 
20494
 
 
20495
 
 
20496
 
 
20497
 
 
20498
 
 
20499
 
 
20500
 
 
20501
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
20502
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
20503
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
20504
  $as_echo_n "(cached) " >&6
 
20505
else
 
20506
  lt_cv_prog_compiler_c_o=no
 
20507
   $RM -r conftest 2>/dev/null
 
20508
   mkdir conftest
 
20509
   cd conftest
 
20510
   mkdir out
 
20511
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20512
 
 
20513
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
20514
   # Insert the option either (1) after the last *FLAGS variable, or
 
20515
   # (2) before a word containing "conftest.", or (3) at the end.
 
20516
   # Note that $ac_compile itself does not contain backslashes and begins
 
20517
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20518
   lt_compile=`echo "$ac_compile" | $SED \
 
20519
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20520
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20521
   -e 's:$: $lt_compiler_flag:'`
 
20522
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
20523
   (eval "$lt_compile" 2>out/conftest.err)
 
20524
   ac_status=$?
 
20525
   cat out/conftest.err >&5
 
20526
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20527
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
20528
   then
 
20529
     # The compiler can only warn and ignore the option if not recognized
 
20530
     # So say no if there are warnings
 
20531
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
20532
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
20533
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
20534
       lt_cv_prog_compiler_c_o=yes
 
20535
     fi
 
20536
   fi
 
20537
   chmod u+w . 2>&5
 
20538
   $RM conftest*
 
20539
   # SGI C++ compiler will create directory out/ii_files/ for
 
20540
   # template instantiation
 
20541
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
20542
   $RM out/* && rmdir out
 
20543
   cd ..
 
20544
   $RM -r conftest
 
20545
   $RM conftest*
 
20546
 
 
20547
fi
 
20548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
20549
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
20550
 
 
20551
 
 
20552
 
 
20553
 
 
20554
 
 
20555
 
 
20556
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
20557
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
20558
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
20559
  $as_echo_n "(cached) " >&6
 
20560
else
 
20561
  lt_cv_prog_compiler_c_o=no
 
20562
   $RM -r conftest 2>/dev/null
 
20563
   mkdir conftest
 
20564
   cd conftest
 
20565
   mkdir out
 
20566
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20567
 
 
20568
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
20569
   # Insert the option either (1) after the last *FLAGS variable, or
 
20570
   # (2) before a word containing "conftest.", or (3) at the end.
 
20571
   # Note that $ac_compile itself does not contain backslashes and begins
 
20572
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20573
   lt_compile=`echo "$ac_compile" | $SED \
 
20574
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20575
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20576
   -e 's:$: $lt_compiler_flag:'`
 
20577
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
20578
   (eval "$lt_compile" 2>out/conftest.err)
 
20579
   ac_status=$?
 
20580
   cat out/conftest.err >&5
 
20581
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20582
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
20583
   then
 
20584
     # The compiler can only warn and ignore the option if not recognized
 
20585
     # So say no if there are warnings
 
20586
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
20587
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
20588
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
20589
       lt_cv_prog_compiler_c_o=yes
 
20590
     fi
 
20591
   fi
 
20592
   chmod u+w . 2>&5
 
20593
   $RM conftest*
 
20594
   # SGI C++ compiler will create directory out/ii_files/ for
 
20595
   # template instantiation
 
20596
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
20597
   $RM out/* && rmdir out
 
20598
   cd ..
 
20599
   $RM -r conftest
 
20600
   $RM conftest*
 
20601
 
 
20602
fi
 
20603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
20604
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
20605
 
 
20606
 
 
20607
 
 
20608
 
 
20609
hard_links="nottested"
 
20610
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
20611
  # do not overwrite the value of need_locks provided by the user
 
20612
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
20613
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
20614
  hard_links=yes
 
20615
  $RM conftest*
 
20616
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
20617
  touch conftest.a
 
20618
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
20619
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
20620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
20621
$as_echo "$hard_links" >&6; }
 
20622
  if test "$hard_links" = no; then
 
20623
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
20624
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
20625
    need_locks=warn
 
20626
  fi
 
20627
else
 
20628
  need_locks=no
 
20629
fi
 
20630
 
 
20631
 
 
20632
 
 
20633
 
 
20634
 
 
20635
 
 
20636
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
20637
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
20638
 
 
20639
  runpath_var=
 
20640
  allow_undefined_flag=
 
20641
  always_export_symbols=no
 
20642
  archive_cmds=
 
20643
  archive_expsym_cmds=
 
20644
  compiler_needs_object=no
 
20645
  enable_shared_with_static_runtimes=no
 
20646
  export_dynamic_flag_spec=
 
20647
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
20648
  hardcode_automatic=no
 
20649
  hardcode_direct=no
 
20650
  hardcode_direct_absolute=no
 
20651
  hardcode_libdir_flag_spec=
 
20652
  hardcode_libdir_separator=
 
20653
  hardcode_minus_L=no
 
20654
  hardcode_shlibpath_var=unsupported
 
20655
  inherit_rpath=no
 
20656
  link_all_deplibs=unknown
 
20657
  module_cmds=
 
20658
  module_expsym_cmds=
 
20659
  old_archive_from_new_cmds=
 
20660
  old_archive_from_expsyms_cmds=
 
20661
  thread_safe_flag_spec=
 
20662
  whole_archive_flag_spec=
 
20663
  # include_expsyms should be a list of space-separated symbols to be *always*
 
20664
  # included in the symbol list
 
20665
  include_expsyms=
 
20666
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
20667
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
20668
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
20669
  # as well as any symbol that contains `d'.
 
20670
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
20671
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
20672
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
20673
  # the symbol is explicitly referenced.  Since portable code cannot
 
20674
  # rely on this symbol name, it's probably fine to never include it in
 
20675
  # preloaded symbol tables.
 
20676
  # Exclude shared library initialization/finalization symbols.
 
20677
  extract_expsyms_cmds=
 
20678
 
 
20679
  case $host_os in
 
20680
  cygwin* | mingw* | pw32* | cegcc*)
 
20681
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
20682
    # When not using gcc, we currently assume that we are using
 
20683
    # Microsoft Visual C++.
 
20684
    if test "$GCC" != yes; then
 
20685
      with_gnu_ld=no
 
20686
    fi
 
20687
    ;;
 
20688
  interix*)
 
20689
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
20690
    with_gnu_ld=yes
 
20691
    ;;
 
20692
  openbsd*)
 
20693
    with_gnu_ld=no
 
20694
    ;;
 
20695
  esac
 
20696
 
 
20697
  ld_shlibs=yes
 
20698
 
 
20699
  # On some targets, GNU ld is compatible enough with the native linker
 
20700
  # that we're better off using the native interface for both.
 
20701
  lt_use_gnu_ld_interface=no
 
20702
  if test "$with_gnu_ld" = yes; then
 
20703
    case $host_os in
 
20704
      aix*)
 
20705
        # The AIX port of GNU ld has always aspired to compatibility
 
20706
        # with the native linker.  However, as the warning in the GNU ld
 
20707
        # block says, versions before 2.19.5* couldn't really create working
 
20708
        # shared libraries, regardless of the interface used.
 
20709
        case `$LD -v 2>&1` in
 
20710
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
20711
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
20712
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
20713
          *)
 
20714
            lt_use_gnu_ld_interface=yes
 
20715
            ;;
 
20716
        esac
 
20717
        ;;
 
20718
      *)
 
20719
        lt_use_gnu_ld_interface=yes
 
20720
        ;;
 
20721
    esac
 
20722
  fi
 
20723
 
 
20724
  if test "$lt_use_gnu_ld_interface" = yes; then
 
20725
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
20726
    wlarc='${wl}'
 
20727
 
 
20728
    # Set some defaults for GNU ld with shared library support. These
 
20729
    # are reset later if shared libraries are not supported. Putting them
 
20730
    # here allows them to be overridden if necessary.
 
20731
    runpath_var=LD_RUN_PATH
 
20732
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
20733
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
20734
    # ancient GNU ld didn't support --whole-archive et. al.
 
20735
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
20736
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
20737
    else
 
20738
      whole_archive_flag_spec=
 
20739
    fi
 
20740
    supports_anon_versioning=no
 
20741
    case `$LD -v 2>&1` in
 
20742
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
20743
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
20744
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
20745
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
20746
      *\ 2.11.*) ;; # other 2.11 versions
 
20747
      *) supports_anon_versioning=yes ;;
 
20748
    esac
 
20749
 
 
20750
    # See if GNU ld supports shared libraries.
 
20751
    case $host_os in
 
20752
    aix[3-9]*)
 
20753
      # On AIX/PPC, the GNU linker is very broken
 
20754
      if test "$host_cpu" != ia64; then
 
20755
        ld_shlibs=no
 
20756
        cat <<_LT_EOF 1>&2
 
20757
 
 
20758
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
20759
*** to be unable to reliably create shared libraries on AIX.
 
20760
*** Therefore, libtool is disabling shared libraries support.  If you
 
20761
*** really care for shared libraries, you may want to install binutils
 
20762
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
20763
*** You will then need to restart the configuration process.
 
20764
 
 
20765
_LT_EOF
 
20766
      fi
 
20767
      ;;
 
20768
 
 
20769
    amigaos*)
 
20770
      case $host_cpu in
 
20771
      powerpc)
 
20772
            # see comment about AmigaOS4 .so support
 
20773
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20774
            archive_expsym_cmds=''
 
20775
        ;;
 
20776
      m68k)
 
20777
            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)'
 
20778
            hardcode_libdir_flag_spec='-L$libdir'
 
20779
            hardcode_minus_L=yes
 
20780
        ;;
 
20781
      esac
 
20782
      ;;
 
20783
 
 
20784
    beos*)
 
20785
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
20786
        allow_undefined_flag=unsupported
 
20787
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
20788
        # support --undefined.  This deserves some investigation.  FIXME
 
20789
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20790
      else
 
20791
        ld_shlibs=no
 
20792
      fi
 
20793
      ;;
 
20794
 
 
20795
    cygwin* | mingw* | pw32* | cegcc*)
 
20796
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
20797
      # as there is no search path for DLLs.
 
20798
      hardcode_libdir_flag_spec='-L$libdir'
 
20799
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
20800
      allow_undefined_flag=unsupported
 
20801
      always_export_symbols=no
 
20802
      enable_shared_with_static_runtimes=yes
 
20803
      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'
 
20804
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
20805
 
 
20806
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
20807
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
20808
        # If the export-symbols file already is a .def file (1st line
 
20809
        # is EXPORTS), use it as is; otherwise, prepend...
 
20810
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
20811
          cp $export_symbols $output_objdir/$soname.def;
 
20812
        else
 
20813
          echo EXPORTS > $output_objdir/$soname.def;
 
20814
          cat $export_symbols >> $output_objdir/$soname.def;
 
20815
        fi~
 
20816
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
20817
      else
 
20818
        ld_shlibs=no
 
20819
      fi
 
20820
      ;;
 
20821
 
 
20822
    haiku*)
 
20823
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20824
      link_all_deplibs=yes
 
20825
      ;;
 
20826
 
 
20827
    interix[3-9]*)
 
20828
      hardcode_direct=no
 
20829
      hardcode_shlibpath_var=no
 
20830
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
20831
      export_dynamic_flag_spec='${wl}-E'
 
20832
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
20833
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
20834
      # default) and relocated if they conflict, which is a slow very memory
 
20835
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
20836
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
20837
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
20838
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
20839
      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'
 
20840
      ;;
 
20841
 
 
20842
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
20843
      tmp_diet=no
 
20844
      if test "$host_os" = linux-dietlibc; then
 
20845
        case $cc_basename in
 
20846
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
20847
        esac
 
20848
      fi
 
20849
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
20850
         && test "$tmp_diet" = no
 
20851
      then
 
20852
        tmp_addflag=' $pic_flag'
 
20853
        tmp_sharedflag='-shared'
 
20854
        case $cc_basename,$host_cpu in
 
20855
        pgcc*)                          # Portland Group C compiler
 
20856
          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'
 
20857
          tmp_addflag=' $pic_flag'
 
20858
          ;;
 
20859
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
20860
                                        # Portland Group f77 and f90 compilers
 
20861
          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'
 
20862
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
20863
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
20864
          tmp_addflag=' -i_dynamic' ;;
 
20865
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
20866
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
20867
        ifc* | ifort*)                  # Intel Fortran compiler
 
20868
          tmp_addflag=' -nofor_main' ;;
 
20869
        lf95*)                          # Lahey Fortran 8.1
 
20870
          whole_archive_flag_spec=
 
20871
          tmp_sharedflag='--shared' ;;
 
20872
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
20873
          tmp_sharedflag='-qmkshrobj'
 
20874
          tmp_addflag= ;;
 
20875
        nvcc*)  # Cuda Compiler Driver 2.2
 
20876
          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'
 
20877
          compiler_needs_object=yes
 
20878
          ;;
 
20879
        esac
 
20880
        case `$CC -V 2>&1 | sed 5q` in
 
20881
        *Sun\ C*)                       # Sun C 5.9
 
20882
          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'
 
20883
          compiler_needs_object=yes
 
20884
          tmp_sharedflag='-G' ;;
 
20885
        *Sun\ F*)                       # Sun Fortran 8.3
 
20886
          tmp_sharedflag='-G' ;;
 
20887
        esac
 
20888
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20889
 
 
20890
        if test "x$supports_anon_versioning" = xyes; then
 
20891
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
20892
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
20893
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
20894
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
20895
        fi
 
20896
 
 
20897
        case $cc_basename in
 
20898
        xlf* | bgf* | bgxlf* | mpixlf*)
 
20899
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
20900
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
20901
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
20902
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
20903
          if test "x$supports_anon_versioning" = xyes; then
 
20904
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
20905
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
20906
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
20907
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
20908
          fi
 
20909
          ;;
 
20910
        esac
 
20911
      else
 
20912
        ld_shlibs=no
 
20913
      fi
 
20914
      ;;
 
20915
 
 
20916
    netbsd*)
 
20917
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
20918
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
20919
        wlarc=
 
20920
      else
 
20921
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20922
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20923
      fi
 
20924
      ;;
 
20925
 
 
20926
    solaris*)
 
20927
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
20928
        ld_shlibs=no
 
20929
        cat <<_LT_EOF 1>&2
 
20930
 
 
20931
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
20932
*** create shared libraries on Solaris systems.  Therefore, libtool
 
20933
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
20934
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
20935
*** your PATH or compiler configuration so that the native linker is
 
20936
*** used, and then restart.
 
20937
 
 
20938
_LT_EOF
 
20939
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
20940
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20941
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20942
      else
 
20943
        ld_shlibs=no
 
20944
      fi
 
20945
      ;;
 
20946
 
 
20947
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
20948
      case `$LD -v 2>&1` in
 
20949
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
20950
        ld_shlibs=no
 
20951
        cat <<_LT_EOF 1>&2
 
20952
 
 
20953
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
20954
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
20955
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
20956
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
20957
*** your PATH or compiler configuration so that the native linker is
 
20958
*** used, and then restart.
 
20959
 
 
20960
_LT_EOF
 
20961
        ;;
 
20962
        *)
 
20963
          # For security reasons, it is highly recommended that you always
 
20964
          # use absolute paths for naming shared libraries, and exclude the
 
20965
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
20966
          # requires that you compile everything twice, which is a pain.
 
20967
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
20968
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
20969
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20970
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20971
          else
 
20972
            ld_shlibs=no
 
20973
          fi
 
20974
        ;;
 
20975
      esac
 
20976
      ;;
 
20977
 
 
20978
    sunos4*)
 
20979
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
20980
      wlarc=
 
20981
      hardcode_direct=yes
 
20982
      hardcode_shlibpath_var=no
 
20983
      ;;
 
20984
 
 
20985
    *)
 
20986
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
20987
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20988
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20989
      else
 
20990
        ld_shlibs=no
 
20991
      fi
 
20992
      ;;
 
20993
    esac
 
20994
 
 
20995
    if test "$ld_shlibs" = no; then
 
20996
      runpath_var=
 
20997
      hardcode_libdir_flag_spec=
 
20998
      export_dynamic_flag_spec=
 
20999
      whole_archive_flag_spec=
 
21000
    fi
 
21001
  else
 
21002
    # PORTME fill in a description of your system's linker (not GNU ld)
 
21003
    case $host_os in
 
21004
    aix3*)
 
21005
      allow_undefined_flag=unsupported
 
21006
      always_export_symbols=yes
 
21007
      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'
 
21008
      # Note: this linker hardcodes the directories in LIBPATH if there
 
21009
      # are no directories specified by -L.
 
21010
      hardcode_minus_L=yes
 
21011
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
21012
        # Neither direct hardcoding nor static linking is supported with a
 
21013
        # broken collect2.
 
21014
        hardcode_direct=unsupported
 
21015
      fi
 
21016
      ;;
 
21017
 
 
21018
    aix[4-9]*)
 
21019
      if test "$host_cpu" = ia64; then
 
21020
        # On IA64, the linker does run time linking by default, so we don't
 
21021
        # have to do anything special.
 
21022
        aix_use_runtimelinking=no
 
21023
        exp_sym_flag='-Bexport'
 
21024
        no_entry_flag=""
 
21025
      else
 
21026
        # If we're using GNU nm, then we don't want the "-C" option.
 
21027
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
21028
        # Also, AIX nm treats weak defined symbols like other global
 
21029
        # defined symbols, whereas GNU nm marks them as "W".
 
21030
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
21031
          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'
 
21032
        else
 
21033
          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'
 
21034
        fi
 
21035
        aix_use_runtimelinking=no
 
21036
 
 
21037
        # Test if we are trying to use run time linking or normal
 
21038
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
21039
        # need to do runtime linking.
 
21040
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
21041
          for ld_flag in $LDFLAGS; do
 
21042
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
21043
            aix_use_runtimelinking=yes
 
21044
            break
 
21045
          fi
 
21046
          done
 
21047
          ;;
 
21048
        esac
 
21049
 
 
21050
        exp_sym_flag='-bexport'
 
21051
        no_entry_flag='-bnoentry'
 
21052
      fi
 
21053
 
 
21054
      # When large executables or shared objects are built, AIX ld can
 
21055
      # have problems creating the table of contents.  If linking a library
 
21056
      # or program results in "error TOC overflow" add -mminimal-toc to
 
21057
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
21058
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
21059
 
 
21060
      archive_cmds=''
 
21061
      hardcode_direct=yes
 
21062
      hardcode_direct_absolute=yes
 
21063
      hardcode_libdir_separator=':'
 
21064
      link_all_deplibs=yes
 
21065
      file_list_spec='${wl}-f,'
 
21066
 
 
21067
      if test "$GCC" = yes; then
 
21068
        case $host_os in aix4.[012]|aix4.[012].*)
 
21069
        # We only want to do this on AIX 4.2 and lower, the check
 
21070
        # below for broken collect2 doesn't work under 4.3+
 
21071
          collect2name=`${CC} -print-prog-name=collect2`
 
21072
          if test -f "$collect2name" &&
 
21073
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
21074
          then
 
21075
          # We have reworked collect2
 
21076
          :
 
21077
          else
 
21078
          # We have old collect2
 
21079
          hardcode_direct=unsupported
 
21080
          # It fails to find uninstalled libraries when the uninstalled
 
21081
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
21082
          # to unsupported forces relinking
 
21083
          hardcode_minus_L=yes
 
21084
          hardcode_libdir_flag_spec='-L$libdir'
 
21085
          hardcode_libdir_separator=
 
21086
          fi
 
21087
          ;;
 
21088
        esac
 
21089
        shared_flag='-shared'
 
21090
        if test "$aix_use_runtimelinking" = yes; then
 
21091
          shared_flag="$shared_flag "'${wl}-G'
 
21092
        fi
 
21093
      else
 
21094
        # not using gcc
 
21095
        if test "$host_cpu" = ia64; then
 
21096
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
21097
        # chokes on -Wl,-G. The following line is correct:
 
21098
          shared_flag='-G'
 
21099
        else
 
21100
          if test "$aix_use_runtimelinking" = yes; then
 
21101
            shared_flag='${wl}-G'
 
21102
          else
 
21103
            shared_flag='${wl}-bM:SRE'
 
21104
          fi
 
21105
        fi
 
21106
      fi
 
21107
 
 
21108
      export_dynamic_flag_spec='${wl}-bexpall'
 
21109
      # It seems that -bexpall does not export symbols beginning with
 
21110
      # underscore (_), so it is better to generate a list of symbols to export.
 
21111
      always_export_symbols=yes
 
21112
      if test "$aix_use_runtimelinking" = yes; then
 
21113
        # Warning - without using the other runtime loading flags (-brtl),
 
21114
        # -berok will link without error, but may produce a broken library.
 
21115
        allow_undefined_flag='-berok'
 
21116
        # Determine the default libpath from the value encoded in an
 
21117
        # empty executable.
 
21118
        if test "${lt_cv_aix_libpath+set}" = set; then
 
21119
  aix_libpath=$lt_cv_aix_libpath
 
21120
else
 
21121
  if ${lt_cv_aix_libpath_+:} false; then :
 
21122
  $as_echo_n "(cached) " >&6
 
21123
else
 
21124
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21125
/* end confdefs.h.  */
 
21126
 
 
21127
int
 
21128
main ()
 
21129
{
 
21130
 
 
21131
  ;
 
21132
  return 0;
 
21133
}
 
21134
_ACEOF
 
21135
if ac_fn_c_try_link "$LINENO"; then :
 
21136
 
 
21137
  lt_aix_libpath_sed='
 
21138
      /Import File Strings/,/^$/ {
 
21139
          /^0/ {
 
21140
              s/^0  *\([^ ]*\) *$/\1/
 
21141
              p
 
21142
          }
 
21143
      }'
 
21144
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
21145
  # Check for a 64-bit object if we didn't find anything.
 
21146
  if test -z "$lt_cv_aix_libpath_"; then
 
21147
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
21148
  fi
 
21149
fi
 
21150
rm -f core conftest.err conftest.$ac_objext \
 
21151
    conftest$ac_exeext conftest.$ac_ext
 
21152
  if test -z "$lt_cv_aix_libpath_"; then
 
21153
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
21154
  fi
 
21155
 
 
21156
fi
 
21157
 
 
21158
  aix_libpath=$lt_cv_aix_libpath_
 
21159
fi
 
21160
 
 
21161
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
21162
        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"
 
21163
      else
 
21164
        if test "$host_cpu" = ia64; then
 
21165
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
21166
          allow_undefined_flag="-z nodefs"
 
21167
          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"
 
21168
        else
 
21169
         # Determine the default libpath from the value encoded in an
 
21170
         # empty executable.
 
21171
         if test "${lt_cv_aix_libpath+set}" = set; then
 
21172
  aix_libpath=$lt_cv_aix_libpath
 
21173
else
 
21174
  if ${lt_cv_aix_libpath_+:} false; then :
 
21175
  $as_echo_n "(cached) " >&6
 
21176
else
 
21177
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21178
/* end confdefs.h.  */
 
21179
 
 
21180
int
 
21181
main ()
 
21182
{
 
21183
 
 
21184
  ;
 
21185
  return 0;
 
21186
}
 
21187
_ACEOF
 
21188
if ac_fn_c_try_link "$LINENO"; then :
 
21189
 
 
21190
  lt_aix_libpath_sed='
 
21191
      /Import File Strings/,/^$/ {
 
21192
          /^0/ {
 
21193
              s/^0  *\([^ ]*\) *$/\1/
 
21194
              p
 
21195
          }
 
21196
      }'
 
21197
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
21198
  # Check for a 64-bit object if we didn't find anything.
 
21199
  if test -z "$lt_cv_aix_libpath_"; then
 
21200
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
21201
  fi
 
21202
fi
 
21203
rm -f core conftest.err conftest.$ac_objext \
 
21204
    conftest$ac_exeext conftest.$ac_ext
 
21205
  if test -z "$lt_cv_aix_libpath_"; then
 
21206
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
21207
  fi
 
21208
 
 
21209
fi
 
21210
 
 
21211
  aix_libpath=$lt_cv_aix_libpath_
 
21212
fi
 
21213
 
 
21214
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
21215
          # Warning - without using the other run time loading flags,
 
21216
          # -berok will link without error, but may produce a broken library.
 
21217
          no_undefined_flag=' ${wl}-bernotok'
 
21218
          allow_undefined_flag=' ${wl}-berok'
 
21219
          if test "$with_gnu_ld" = yes; then
 
21220
            # We only use this code for GNU lds that support --whole-archive.
 
21221
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
21222
          else
 
21223
            # Exported symbols can be pulled into shared objects from archives
 
21224
            whole_archive_flag_spec='$convenience'
 
21225
          fi
 
21226
          archive_cmds_need_lc=yes
 
21227
          # This is similar to how AIX traditionally builds its shared libraries.
 
21228
          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'
 
21229
        fi
 
21230
      fi
 
21231
      ;;
 
21232
 
 
21233
    amigaos*)
 
21234
      case $host_cpu in
 
21235
      powerpc)
 
21236
            # see comment about AmigaOS4 .so support
 
21237
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21238
            archive_expsym_cmds=''
 
21239
        ;;
 
21240
      m68k)
 
21241
            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)'
 
21242
            hardcode_libdir_flag_spec='-L$libdir'
 
21243
            hardcode_minus_L=yes
 
21244
        ;;
 
21245
      esac
 
21246
      ;;
 
21247
 
 
21248
    bsdi[45]*)
 
21249
      export_dynamic_flag_spec=-rdynamic
 
21250
      ;;
 
21251
 
 
21252
    cygwin* | mingw* | pw32* | cegcc*)
 
21253
      # When not using gcc, we currently assume that we are using
 
21254
      # Microsoft Visual C++.
 
21255
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
21256
      # no search path for DLLs.
 
21257
      case $cc_basename in
 
21258
      cl*)
 
21259
        # Native MSVC
 
21260
        hardcode_libdir_flag_spec=' '
 
21261
        allow_undefined_flag=unsupported
 
21262
        always_export_symbols=yes
 
21263
        file_list_spec='@'
 
21264
        # Tell ltmain to make .lib files, not .a files.
 
21265
        libext=lib
 
21266
        # Tell ltmain to make .dll files, not .so files.
 
21267
        shrext_cmds=".dll"
 
21268
        # FIXME: Setting linknames here is a bad hack.
 
21269
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
21270
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
21271
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
21272
          else
 
21273
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
21274
          fi~
 
21275
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
21276
          linknames='
 
21277
        # The linker will not automatically build a static lib if we build a DLL.
 
21278
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
21279
        enable_shared_with_static_runtimes=yes
 
21280
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
21281
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
21282
        # Don't use ranlib
 
21283
        old_postinstall_cmds='chmod 644 $oldlib'
 
21284
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
21285
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
21286
          case $lt_outputfile in
 
21287
            *.exe|*.EXE) ;;
 
21288
            *)
 
21289
              lt_outputfile="$lt_outputfile.exe"
 
21290
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
21291
              ;;
 
21292
          esac~
 
21293
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
21294
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
21295
            $RM "$lt_outputfile.manifest";
 
21296
          fi'
 
21297
        ;;
 
21298
      *)
 
21299
        # Assume MSVC wrapper
 
21300
        hardcode_libdir_flag_spec=' '
 
21301
        allow_undefined_flag=unsupported
 
21302
        # Tell ltmain to make .lib files, not .a files.
 
21303
        libext=lib
 
21304
        # Tell ltmain to make .dll files, not .so files.
 
21305
        shrext_cmds=".dll"
 
21306
        # FIXME: Setting linknames here is a bad hack.
 
21307
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
21308
        # The linker will automatically build a .lib file if we build a DLL.
 
21309
        old_archive_from_new_cmds='true'
 
21310
        # FIXME: Should let the user specify the lib program.
 
21311
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
21312
        enable_shared_with_static_runtimes=yes
 
21313
        ;;
 
21314
      esac
 
21315
      ;;
 
21316
 
 
21317
    darwin* | rhapsody*)
 
21318
 
 
21319
 
 
21320
  archive_cmds_need_lc=no
 
21321
  hardcode_direct=no
 
21322
  hardcode_automatic=yes
 
21323
  hardcode_shlibpath_var=unsupported
 
21324
  if test "$lt_cv_ld_force_load" = "yes"; then
 
21325
    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\"`'
 
21326
 
 
21327
  else
 
21328
    whole_archive_flag_spec=''
 
21329
  fi
 
21330
  link_all_deplibs=yes
 
21331
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
21332
  case $cc_basename in
 
21333
     ifort*) _lt_dar_can_shared=yes ;;
 
21334
     *) _lt_dar_can_shared=$GCC ;;
 
21335
  esac
 
21336
  if test "$_lt_dar_can_shared" = "yes"; then
 
21337
    output_verbose_link_cmd=func_echo_all
 
21338
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
21339
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
21340
    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}"
 
21341
    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}"
 
21342
 
 
21343
  else
 
21344
  ld_shlibs=no
 
21345
  fi
 
21346
 
 
21347
      ;;
 
21348
 
 
21349
    dgux*)
 
21350
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21351
      hardcode_libdir_flag_spec='-L$libdir'
 
21352
      hardcode_shlibpath_var=no
 
21353
      ;;
 
21354
 
 
21355
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
21356
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
21357
    # does not break anything, and helps significantly (at the cost of a little
 
21358
    # extra space).
 
21359
    freebsd2.2*)
 
21360
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
21361
      hardcode_libdir_flag_spec='-R$libdir'
 
21362
      hardcode_direct=yes
 
21363
      hardcode_shlibpath_var=no
 
21364
      ;;
 
21365
 
 
21366
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
21367
    freebsd2.*)
 
21368
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
21369
      hardcode_direct=yes
 
21370
      hardcode_minus_L=yes
 
21371
      hardcode_shlibpath_var=no
 
21372
      ;;
 
21373
 
 
21374
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
21375
    freebsd* | dragonfly*)
 
21376
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
21377
      hardcode_libdir_flag_spec='-R$libdir'
 
21378
      hardcode_direct=yes
 
21379
      hardcode_shlibpath_var=no
 
21380
      ;;
 
21381
 
 
21382
    hpux9*)
 
21383
      if test "$GCC" = yes; then
 
21384
        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'
 
21385
      else
 
21386
        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'
 
21387
      fi
 
21388
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
21389
      hardcode_libdir_separator=:
 
21390
      hardcode_direct=yes
 
21391
 
 
21392
      # hardcode_minus_L: Not really in the search PATH,
 
21393
      # but as the default location of the library.
 
21394
      hardcode_minus_L=yes
 
21395
      export_dynamic_flag_spec='${wl}-E'
 
21396
      ;;
 
21397
 
 
21398
    hpux10*)
 
21399
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
21400
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
21401
      else
 
21402
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
21403
      fi
 
21404
      if test "$with_gnu_ld" = no; then
 
21405
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
21406
        hardcode_libdir_separator=:
 
21407
        hardcode_direct=yes
 
21408
        hardcode_direct_absolute=yes
 
21409
        export_dynamic_flag_spec='${wl}-E'
 
21410
        # hardcode_minus_L: Not really in the search PATH,
 
21411
        # but as the default location of the library.
 
21412
        hardcode_minus_L=yes
 
21413
      fi
 
21414
      ;;
 
21415
 
 
21416
    hpux11*)
 
21417
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
21418
        case $host_cpu in
 
21419
        hppa*64*)
 
21420
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21421
          ;;
 
21422
        ia64*)
 
21423
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
21424
          ;;
 
21425
        *)
 
21426
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
21427
          ;;
 
21428
        esac
 
21429
      else
 
21430
        case $host_cpu in
 
21431
        hppa*64*)
 
21432
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21433
          ;;
 
21434
        ia64*)
 
21435
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
21436
          ;;
 
21437
        *)
 
21438
 
 
21439
          # Older versions of the 11.00 compiler do not understand -b yet
 
21440
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
21441
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
21442
$as_echo_n "checking if $CC understands -b... " >&6; }
 
21443
if ${lt_cv_prog_compiler__b+:} false; then :
 
21444
  $as_echo_n "(cached) " >&6
 
21445
else
 
21446
  lt_cv_prog_compiler__b=no
 
21447
   save_LDFLAGS="$LDFLAGS"
 
21448
   LDFLAGS="$LDFLAGS -b"
 
21449
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
21450
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
21451
     # The linker can only warn and ignore the option if not recognized
 
21452
     # So say no if there are warnings
 
21453
     if test -s conftest.err; then
 
21454
       # Append any errors to the config.log.
 
21455
       cat conftest.err 1>&5
 
21456
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
21457
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
21458
       if diff conftest.exp conftest.er2 >/dev/null; then
 
21459
         lt_cv_prog_compiler__b=yes
 
21460
       fi
 
21461
     else
 
21462
       lt_cv_prog_compiler__b=yes
 
21463
     fi
 
21464
   fi
 
21465
   $RM -r conftest*
 
21466
   LDFLAGS="$save_LDFLAGS"
 
21467
 
 
21468
fi
 
21469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
21470
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
21471
 
 
21472
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
21473
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
21474
else
 
21475
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
21476
fi
 
21477
 
 
21478
          ;;
 
21479
        esac
 
21480
      fi
 
21481
      if test "$with_gnu_ld" = no; then
 
21482
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
21483
        hardcode_libdir_separator=:
 
21484
 
 
21485
        case $host_cpu in
 
21486
        hppa*64*|ia64*)
 
21487
          hardcode_direct=no
 
21488
          hardcode_shlibpath_var=no
 
21489
          ;;
 
21490
        *)
 
21491
          hardcode_direct=yes
 
21492
          hardcode_direct_absolute=yes
 
21493
          export_dynamic_flag_spec='${wl}-E'
 
21494
 
 
21495
          # hardcode_minus_L: Not really in the search PATH,
 
21496
          # but as the default location of the library.
 
21497
          hardcode_minus_L=yes
 
21498
          ;;
 
21499
        esac
 
21500
      fi
 
21501
      ;;
 
21502
 
 
21503
    irix5* | irix6* | nonstopux*)
 
21504
      if test "$GCC" = yes; then
 
21505
        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'
 
21506
        # Try to use the -exported_symbol ld option, if it does not
 
21507
        # work, assume that -exports_file does not work either and
 
21508
        # implicitly export all symbols.
 
21509
        # This should be the same for all languages, so no per-tag cache variable.
 
21510
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
21511
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
21512
if ${lt_cv_irix_exported_symbol+:} false; then :
 
21513
  $as_echo_n "(cached) " >&6
 
21514
else
 
21515
  save_LDFLAGS="$LDFLAGS"
 
21516
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
21517
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21518
/* end confdefs.h.  */
 
21519
int foo (void) { return 0; }
 
21520
_ACEOF
 
21521
if ac_fn_c_try_link "$LINENO"; then :
 
21522
  lt_cv_irix_exported_symbol=yes
 
21523
else
 
21524
  lt_cv_irix_exported_symbol=no
 
21525
fi
 
21526
rm -f core conftest.err conftest.$ac_objext \
 
21527
    conftest$ac_exeext conftest.$ac_ext
 
21528
           LDFLAGS="$save_LDFLAGS"
 
21529
fi
 
21530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
21531
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
21532
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
21533
          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'
 
21534
        fi
 
21535
      else
 
21536
        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'
 
21537
        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'
 
21538
      fi
 
21539
      archive_cmds_need_lc='no'
 
21540
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
21541
      hardcode_libdir_separator=:
 
21542
      inherit_rpath=yes
 
21543
      link_all_deplibs=yes
 
21544
      ;;
 
21545
 
 
21546
    netbsd*)
 
21547
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
21548
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
21549
      else
 
21550
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
21551
      fi
 
21552
      hardcode_libdir_flag_spec='-R$libdir'
 
21553
      hardcode_direct=yes
 
21554
      hardcode_shlibpath_var=no
 
21555
      ;;
 
21556
 
 
21557
    newsos6)
 
21558
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21559
      hardcode_direct=yes
 
21560
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
21561
      hardcode_libdir_separator=:
 
21562
      hardcode_shlibpath_var=no
 
21563
      ;;
 
21564
 
 
21565
    *nto* | *qnx*)
 
21566
      ;;
 
21567
 
 
21568
    openbsd*)
 
21569
      if test -f /usr/libexec/ld.so; then
 
21570
        hardcode_direct=yes
 
21571
        hardcode_shlibpath_var=no
 
21572
        hardcode_direct_absolute=yes
 
21573
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
21574
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
21575
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
21576
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
21577
          export_dynamic_flag_spec='${wl}-E'
 
21578
        else
 
21579
          case $host_os in
 
21580
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
21581
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
21582
             hardcode_libdir_flag_spec='-R$libdir'
 
21583
             ;;
 
21584
           *)
 
21585
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
21586
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
21587
             ;;
 
21588
          esac
 
21589
        fi
 
21590
      else
 
21591
        ld_shlibs=no
 
21592
      fi
 
21593
      ;;
 
21594
 
 
21595
    os2*)
 
21596
      hardcode_libdir_flag_spec='-L$libdir'
 
21597
      hardcode_minus_L=yes
 
21598
      allow_undefined_flag=unsupported
 
21599
      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'
 
21600
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
21601
      ;;
 
21602
 
 
21603
    osf3*)
 
21604
      if test "$GCC" = yes; then
 
21605
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
21606
        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'
 
21607
      else
 
21608
        allow_undefined_flag=' -expect_unresolved \*'
 
21609
        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'
 
21610
      fi
 
21611
      archive_cmds_need_lc='no'
 
21612
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
21613
      hardcode_libdir_separator=:
 
21614
      ;;
 
21615
 
 
21616
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
21617
      if test "$GCC" = yes; then
 
21618
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
21619
        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'
 
21620
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
21621
      else
 
21622
        allow_undefined_flag=' -expect_unresolved \*'
 
21623
        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'
 
21624
        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~
 
21625
        $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'
 
21626
 
 
21627
        # Both c and cxx compiler support -rpath directly
 
21628
        hardcode_libdir_flag_spec='-rpath $libdir'
 
21629
      fi
 
21630
      archive_cmds_need_lc='no'
 
21631
      hardcode_libdir_separator=:
 
21632
      ;;
 
21633
 
 
21634
    solaris*)
 
21635
      no_undefined_flag=' -z defs'
 
21636
      if test "$GCC" = yes; then
 
21637
        wlarc='${wl}'
 
21638
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21639
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
21640
          $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'
 
21641
      else
 
21642
        case `$CC -V 2>&1` in
 
21643
        *"Compilers 5.0"*)
 
21644
          wlarc=''
 
21645
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21646
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
21647
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
21648
          ;;
 
21649
        *)
 
21650
          wlarc='${wl}'
 
21651
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
21652
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
21653
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
21654
          ;;
 
21655
        esac
 
21656
      fi
 
21657
      hardcode_libdir_flag_spec='-R$libdir'
 
21658
      hardcode_shlibpath_var=no
 
21659
      case $host_os in
 
21660
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
21661
      *)
 
21662
        # The compiler driver will combine and reorder linker options,
 
21663
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
21664
        # but is careful enough not to reorder.
 
21665
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
21666
        if test "$GCC" = yes; then
 
21667
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
21668
        else
 
21669
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
21670
        fi
 
21671
        ;;
 
21672
      esac
 
21673
      link_all_deplibs=yes
 
21674
      ;;
 
21675
 
 
21676
    sunos4*)
 
21677
      if test "x$host_vendor" = xsequent; then
 
21678
        # Use $CC to link under sequent, because it throws in some extra .o
 
21679
        # files that make .init and .fini sections work.
 
21680
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
21681
      else
 
21682
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
21683
      fi
 
21684
      hardcode_libdir_flag_spec='-L$libdir'
 
21685
      hardcode_direct=yes
 
21686
      hardcode_minus_L=yes
 
21687
      hardcode_shlibpath_var=no
 
21688
      ;;
 
21689
 
 
21690
    sysv4)
 
21691
      case $host_vendor in
 
21692
        sni)
 
21693
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21694
          hardcode_direct=yes # is this really true???
 
21695
        ;;
 
21696
        siemens)
 
21697
          ## LD is ld it makes a PLAMLIB
 
21698
          ## CC just makes a GrossModule.
 
21699
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
21700
          reload_cmds='$CC -r -o $output$reload_objs'
 
21701
          hardcode_direct=no
 
21702
        ;;
 
21703
        motorola)
 
21704
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21705
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
21706
        ;;
 
21707
      esac
 
21708
      runpath_var='LD_RUN_PATH'
 
21709
      hardcode_shlibpath_var=no
 
21710
      ;;
 
21711
 
 
21712
    sysv4.3*)
 
21713
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21714
      hardcode_shlibpath_var=no
 
21715
      export_dynamic_flag_spec='-Bexport'
 
21716
      ;;
 
21717
 
 
21718
    sysv4*MP*)
 
21719
      if test -d /usr/nec; then
 
21720
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21721
        hardcode_shlibpath_var=no
 
21722
        runpath_var=LD_RUN_PATH
 
21723
        hardcode_runpath_var=yes
 
21724
        ld_shlibs=yes
 
21725
      fi
 
21726
      ;;
 
21727
 
 
21728
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
21729
      no_undefined_flag='${wl}-z,text'
 
21730
      archive_cmds_need_lc=no
 
21731
      hardcode_shlibpath_var=no
 
21732
      runpath_var='LD_RUN_PATH'
 
21733
 
 
21734
      if test "$GCC" = yes; then
 
21735
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21736
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21737
      else
 
21738
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21739
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21740
      fi
 
21741
      ;;
 
21742
 
 
21743
    sysv5* | sco3.2v5* | sco5v6*)
 
21744
      # Note: We can NOT use -z defs as we might desire, because we do not
 
21745
      # link with -lc, and that would cause any symbols used from libc to
 
21746
      # always be unresolved, which means just about no library would
 
21747
      # ever link correctly.  If we're not using GNU ld we use -z text
 
21748
      # though, which does catch some bad symbols but isn't as heavy-handed
 
21749
      # as -z defs.
 
21750
      no_undefined_flag='${wl}-z,text'
 
21751
      allow_undefined_flag='${wl}-z,nodefs'
 
21752
      archive_cmds_need_lc=no
 
21753
      hardcode_shlibpath_var=no
 
21754
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
21755
      hardcode_libdir_separator=':'
 
21756
      link_all_deplibs=yes
 
21757
      export_dynamic_flag_spec='${wl}-Bexport'
 
21758
      runpath_var='LD_RUN_PATH'
 
21759
 
 
21760
      if test "$GCC" = yes; then
 
21761
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21762
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21763
      else
 
21764
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21765
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21766
      fi
 
21767
      ;;
 
21768
 
 
21769
    uts4*)
 
21770
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21771
      hardcode_libdir_flag_spec='-L$libdir'
 
21772
      hardcode_shlibpath_var=no
 
21773
      ;;
 
21774
 
 
21775
    *)
 
21776
      ld_shlibs=no
 
21777
      ;;
 
21778
    esac
 
21779
 
 
21780
    if test x$host_vendor = xsni; then
 
21781
      case $host in
 
21782
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
21783
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
21784
        ;;
 
21785
      esac
 
21786
    fi
 
21787
  fi
 
21788
 
 
21789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
21790
$as_echo "$ld_shlibs" >&6; }
 
21791
test "$ld_shlibs" = no && can_build_shared=no
 
21792
 
 
21793
with_gnu_ld=$with_gnu_ld
 
21794
 
 
21795
 
 
21796
 
 
21797
 
 
21798
 
 
21799
 
 
21800
 
 
21801
 
 
21802
 
 
21803
 
 
21804
 
 
21805
 
 
21806
 
 
21807
 
 
21808
 
 
21809
#
 
21810
# Do we need to explicitly link libc?
 
21811
#
 
21812
case "x$archive_cmds_need_lc" in
 
21813
x|xyes)
 
21814
  # Assume -lc should be added
 
21815
  archive_cmds_need_lc=yes
 
21816
 
 
21817
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
21818
    case $archive_cmds in
 
21819
    *'~'*)
 
21820
      # FIXME: we may have to deal with multi-command sequences.
 
21821
      ;;
 
21822
    '$CC '*)
 
21823
      # Test whether the compiler implicitly links with -lc since on some
 
21824
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
21825
      # to ld, don't add -lc before -lgcc.
 
21826
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
21827
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
21828
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
21829
  $as_echo_n "(cached) " >&6
 
21830
else
 
21831
  $RM conftest*
 
21832
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
21833
 
 
21834
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
21835
  (eval $ac_compile) 2>&5
 
21836
  ac_status=$?
 
21837
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21838
  test $ac_status = 0; } 2>conftest.err; then
 
21839
          soname=conftest
 
21840
          lib=conftest
 
21841
          libobjs=conftest.$ac_objext
 
21842
          deplibs=
 
21843
          wl=$lt_prog_compiler_wl
 
21844
          pic_flag=$lt_prog_compiler_pic
 
21845
          compiler_flags=-v
 
21846
          linker_flags=-v
 
21847
          verstring=
 
21848
          output_objdir=.
 
21849
          libname=conftest
 
21850
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
21851
          allow_undefined_flag=
 
21852
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
21853
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
21854
  ac_status=$?
 
21855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21856
  test $ac_status = 0; }
 
21857
          then
 
21858
            lt_cv_archive_cmds_need_lc=no
 
21859
          else
 
21860
            lt_cv_archive_cmds_need_lc=yes
 
21861
          fi
 
21862
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
21863
        else
 
21864
          cat conftest.err 1>&5
 
21865
        fi
 
21866
        $RM conftest*
 
21867
 
 
21868
fi
 
21869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
21870
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
21871
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
21872
      ;;
 
21873
    esac
 
21874
  fi
 
21875
  ;;
 
21876
esac
 
21877
 
 
21878
 
 
21879
 
 
21880
 
 
21881
 
 
21882
 
 
21883
 
 
21884
 
 
21885
 
 
21886
 
 
21887
 
 
21888
 
 
21889
 
 
21890
 
 
21891
 
 
21892
 
 
21893
 
 
21894
 
 
21895
 
 
21896
 
 
21897
 
 
21898
 
 
21899
 
 
21900
 
 
21901
 
 
21902
 
 
21903
 
 
21904
 
 
21905
 
 
21906
 
 
21907
 
 
21908
 
 
21909
 
 
21910
 
 
21911
 
 
21912
 
 
21913
 
 
21914
 
 
21915
 
 
21916
 
 
21917
 
 
21918
 
 
21919
 
 
21920
 
 
21921
 
 
21922
 
 
21923
 
 
21924
 
 
21925
 
 
21926
 
 
21927
 
 
21928
 
 
21929
 
 
21930
 
 
21931
 
 
21932
 
 
21933
 
 
21934
 
 
21935
 
 
21936
 
 
21937
 
 
21938
 
 
21939
 
 
21940
 
 
21941
 
 
21942
 
 
21943
 
 
21944
 
 
21945
 
 
21946
 
 
21947
 
 
21948
 
 
21949
 
 
21950
 
 
21951
 
 
21952
 
 
21953
 
 
21954
 
 
21955
 
 
21956
 
 
21957
 
 
21958
 
 
21959
 
 
21960
 
 
21961
 
 
21962
 
 
21963
 
 
21964
 
 
21965
 
 
21966
 
 
21967
 
 
21968
 
 
21969
 
 
21970
 
 
21971
 
 
21972
 
 
21973
 
 
21974
 
 
21975
 
 
21976
 
 
21977
 
 
21978
 
 
21979
 
 
21980
 
 
21981
 
 
21982
 
 
21983
 
 
21984
 
 
21985
 
 
21986
 
 
21987
 
 
21988
 
 
21989
 
 
21990
 
 
21991
 
 
21992
 
 
21993
 
 
21994
 
 
21995
 
 
21996
 
 
21997
 
 
21998
 
 
21999
 
 
22000
 
 
22001
 
 
22002
 
 
22003
 
 
22004
 
 
22005
 
 
22006
 
 
22007
 
 
22008
 
 
22009
 
 
22010
 
 
22011
 
 
22012
 
 
22013
 
 
22014
 
 
22015
 
 
22016
 
 
22017
 
 
22018
 
 
22019
 
 
22020
 
 
22021
 
 
22022
 
 
22023
 
 
22024
 
 
22025
 
 
22026
 
 
22027
 
 
22028
 
 
22029
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
22030
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
22031
 
 
22032
if test "$GCC" = yes; then
 
22033
  case $host_os in
 
22034
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
22035
    *) lt_awk_arg="/^libraries:/" ;;
 
22036
  esac
 
22037
  case $host_os in
 
22038
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
22039
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
22040
  esac
 
22041
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
22042
  case $lt_search_path_spec in
 
22043
  *\;*)
 
22044
    # if the path contains ";" then we assume it to be the separator
 
22045
    # otherwise default to the standard path separator (i.e. ":") - it is
 
22046
    # assumed that no part of a normal pathname contains ";" but that should
 
22047
    # okay in the real world where ";" in dirpaths is itself problematic.
 
22048
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
22049
    ;;
 
22050
  *)
 
22051
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
22052
    ;;
 
22053
  esac
 
22054
  # Ok, now we have the path, separated by spaces, we can step through it
 
22055
  # and add multilib dir if necessary.
 
22056
  lt_tmp_lt_search_path_spec=
 
22057
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
22058
  for lt_sys_path in $lt_search_path_spec; do
 
22059
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
22060
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
22061
    else
 
22062
      test -d "$lt_sys_path" && \
 
22063
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
22064
    fi
 
22065
  done
 
22066
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
22067
BEGIN {RS=" "; FS="/|\n";} {
 
22068
  lt_foo="";
 
22069
  lt_count=0;
 
22070
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
22071
    if ($lt_i != "" && $lt_i != ".") {
 
22072
      if ($lt_i == "..") {
 
22073
        lt_count++;
 
22074
      } else {
 
22075
        if (lt_count == 0) {
 
22076
          lt_foo="/" $lt_i lt_foo;
 
22077
        } else {
 
22078
          lt_count--;
 
22079
        }
 
22080
      }
 
22081
    }
 
22082
  }
 
22083
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
22084
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
22085
}'`
 
22086
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
22087
  # for these hosts.
 
22088
  case $host_os in
 
22089
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
22090
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
22091
  esac
 
22092
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
22093
else
 
22094
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
22095
fi
 
22096
library_names_spec=
 
22097
libname_spec='lib$name'
 
22098
soname_spec=
 
22099
shrext_cmds=".so"
 
22100
postinstall_cmds=
 
22101
postuninstall_cmds=
 
22102
finish_cmds=
 
22103
finish_eval=
 
22104
shlibpath_var=
 
22105
shlibpath_overrides_runpath=unknown
 
22106
version_type=none
 
22107
dynamic_linker="$host_os ld.so"
 
22108
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
22109
need_lib_prefix=unknown
 
22110
hardcode_into_libs=no
 
22111
 
 
22112
# when you set need_version to no, make sure it does not cause -set_version
 
22113
# flags to be left without arguments
 
22114
need_version=unknown
 
22115
 
 
22116
case $host_os in
 
22117
aix3*)
 
22118
  version_type=linux # correct to gnu/linux during the next big refactor
 
22119
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
22120
  shlibpath_var=LIBPATH
 
22121
 
 
22122
  # AIX 3 has no versioning support, so we append a major version to the name.
 
22123
  soname_spec='${libname}${release}${shared_ext}$major'
 
22124
  ;;
 
22125
 
 
22126
aix[4-9]*)
 
22127
  version_type=linux # correct to gnu/linux during the next big refactor
 
22128
  need_lib_prefix=no
 
22129
  need_version=no
 
22130
  hardcode_into_libs=yes
 
22131
  if test "$host_cpu" = ia64; then
 
22132
    # AIX 5 supports IA64
 
22133
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
22134
    shlibpath_var=LD_LIBRARY_PATH
 
22135
  else
 
22136
    # With GCC up to 2.95.x, collect2 would create an import file
 
22137
    # for dependence libraries.  The import file would start with
 
22138
    # the line `#! .'.  This would cause the generated library to
 
22139
    # depend on `.', always an invalid library.  This was fixed in
 
22140
    # development snapshots of GCC prior to 3.0.
 
22141
    case $host_os in
 
22142
      aix4 | aix4.[01] | aix4.[01].*)
 
22143
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
22144
           echo ' yes '
 
22145
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
22146
        :
 
22147
      else
 
22148
        can_build_shared=no
 
22149
      fi
 
22150
      ;;
 
22151
    esac
 
22152
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
22153
    # soname into executable. Probably we can add versioning support to
 
22154
    # collect2, so additional links can be useful in future.
 
22155
    if test "$aix_use_runtimelinking" = yes; then
 
22156
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
22157
      # instead of lib<name>.a to let people know that these are not
 
22158
      # typical AIX shared libraries.
 
22159
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22160
    else
 
22161
      # We preserve .a as extension for shared libraries through AIX4.2
 
22162
      # and later when we are not doing run time linking.
 
22163
      library_names_spec='${libname}${release}.a $libname.a'
 
22164
      soname_spec='${libname}${release}${shared_ext}$major'
 
22165
    fi
 
22166
    shlibpath_var=LIBPATH
 
22167
  fi
 
22168
  ;;
 
22169
 
 
22170
amigaos*)
 
22171
  case $host_cpu in
 
22172
  powerpc)
 
22173
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
22174
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
22175
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22176
    ;;
 
22177
  m68k)
 
22178
    library_names_spec='$libname.ixlibrary $libname.a'
 
22179
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
22180
    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'
 
22181
    ;;
 
22182
  esac
 
22183
  ;;
 
22184
 
 
22185
beos*)
 
22186
  library_names_spec='${libname}${shared_ext}'
 
22187
  dynamic_linker="$host_os ld.so"
 
22188
  shlibpath_var=LIBRARY_PATH
 
22189
  ;;
 
22190
 
 
22191
bsdi[45]*)
 
22192
  version_type=linux # correct to gnu/linux during the next big refactor
 
22193
  need_version=no
 
22194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22195
  soname_spec='${libname}${release}${shared_ext}$major'
 
22196
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
22197
  shlibpath_var=LD_LIBRARY_PATH
 
22198
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
22199
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
22200
  # the default ld.so.conf also contains /usr/contrib/lib and
 
22201
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
22202
  # libtool to hard-code these into programs
 
22203
  ;;
 
22204
 
 
22205
cygwin* | mingw* | pw32* | cegcc*)
 
22206
  version_type=windows
 
22207
  shrext_cmds=".dll"
 
22208
  need_version=no
 
22209
  need_lib_prefix=no
 
22210
 
 
22211
  case $GCC,$cc_basename in
 
22212
  yes,*)
 
22213
    # gcc
 
22214
    library_names_spec='$libname.dll.a'
 
22215
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
22216
    postinstall_cmds='base_file=`basename \${file}`~
 
22217
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
22218
      dldir=$destdir/`dirname \$dlpath`~
 
22219
      test -d \$dldir || mkdir -p \$dldir~
 
22220
      $install_prog $dir/$dlname \$dldir/$dlname~
 
22221
      chmod a+x \$dldir/$dlname~
 
22222
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
22223
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
22224
      fi'
 
22225
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
22226
      dlpath=$dir/\$dldll~
 
22227
       $RM \$dlpath'
 
22228
    shlibpath_overrides_runpath=yes
 
22229
 
 
22230
    case $host_os in
 
22231
    cygwin*)
 
22232
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
22233
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22234
 
 
22235
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
22236
      ;;
 
22237
    mingw* | cegcc*)
 
22238
      # MinGW DLLs use traditional 'lib' prefix
 
22239
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22240
      ;;
 
22241
    pw32*)
 
22242
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
22243
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22244
      ;;
 
22245
    esac
 
22246
    dynamic_linker='Win32 ld.exe'
 
22247
    ;;
 
22248
 
 
22249
  *,cl*)
 
22250
    # Native MSVC
 
22251
    libname_spec='$name'
 
22252
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22253
    library_names_spec='${libname}.dll.lib'
 
22254
 
 
22255
    case $build_os in
 
22256
    mingw*)
 
22257
      sys_lib_search_path_spec=
 
22258
      lt_save_ifs=$IFS
 
22259
      IFS=';'
 
22260
      for lt_path in $LIB
 
22261
      do
 
22262
        IFS=$lt_save_ifs
 
22263
        # Let DOS variable expansion print the short 8.3 style file name.
 
22264
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
22265
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
22266
      done
 
22267
      IFS=$lt_save_ifs
 
22268
      # Convert to MSYS style.
 
22269
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
22270
      ;;
 
22271
    cygwin*)
 
22272
      # Convert to unix form, then to dos form, then back to unix form
 
22273
      # but this time dos style (no spaces!) so that the unix form looks
 
22274
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
22275
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
22276
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
22277
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
22278
      ;;
 
22279
    *)
 
22280
      sys_lib_search_path_spec="$LIB"
 
22281
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
22282
        # It is most probably a Windows format PATH.
 
22283
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
22284
      else
 
22285
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
22286
      fi
 
22287
      # FIXME: find the short name or the path components, as spaces are
 
22288
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
22289
      ;;
 
22290
    esac
 
22291
 
 
22292
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
22293
    postinstall_cmds='base_file=`basename \${file}`~
 
22294
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
22295
      dldir=$destdir/`dirname \$dlpath`~
 
22296
      test -d \$dldir || mkdir -p \$dldir~
 
22297
      $install_prog $dir/$dlname \$dldir/$dlname'
 
22298
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
22299
      dlpath=$dir/\$dldll~
 
22300
       $RM \$dlpath'
 
22301
    shlibpath_overrides_runpath=yes
 
22302
    dynamic_linker='Win32 link.exe'
 
22303
    ;;
 
22304
 
 
22305
  *)
 
22306
    # Assume MSVC wrapper
 
22307
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
22308
    dynamic_linker='Win32 ld.exe'
 
22309
    ;;
 
22310
  esac
 
22311
  # FIXME: first we should search . and the directory the executable is in
 
22312
  shlibpath_var=PATH
 
22313
  ;;
 
22314
 
 
22315
darwin* | rhapsody*)
 
22316
  dynamic_linker="$host_os dyld"
 
22317
  version_type=darwin
 
22318
  need_lib_prefix=no
 
22319
  need_version=no
 
22320
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
22321
  soname_spec='${libname}${release}${major}$shared_ext'
 
22322
  shlibpath_overrides_runpath=yes
 
22323
  shlibpath_var=DYLD_LIBRARY_PATH
 
22324
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
22325
 
 
22326
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
22327
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
22328
  ;;
 
22329
 
 
22330
dgux*)
 
22331
  version_type=linux # correct to gnu/linux during the next big refactor
 
22332
  need_lib_prefix=no
 
22333
  need_version=no
 
22334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
22335
  soname_spec='${libname}${release}${shared_ext}$major'
 
22336
  shlibpath_var=LD_LIBRARY_PATH
 
22337
  ;;
 
22338
 
 
22339
freebsd* | dragonfly*)
 
22340
  # DragonFly does not have aout.  When/if they implement a new
 
22341
  # versioning mechanism, adjust this.
 
22342
  if test -x /usr/bin/objformat; then
 
22343
    objformat=`/usr/bin/objformat`
 
22344
  else
 
22345
    case $host_os in
 
22346
    freebsd[23].*) objformat=aout ;;
 
22347
    *) objformat=elf ;;
 
22348
    esac
 
22349
  fi
 
22350
  version_type=freebsd-$objformat
 
22351
  case $version_type in
 
22352
    freebsd-elf*)
 
22353
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22354
      need_version=no
 
22355
      need_lib_prefix=no
 
22356
      ;;
 
22357
    freebsd-*)
 
22358
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
22359
      need_version=yes
 
22360
      ;;
 
22361
  esac
 
22362
  shlibpath_var=LD_LIBRARY_PATH
 
22363
  case $host_os in
 
22364
  freebsd2.*)
 
22365
    shlibpath_overrides_runpath=yes
 
22366
    ;;
 
22367
  freebsd3.[01]* | freebsdelf3.[01]*)
 
22368
    shlibpath_overrides_runpath=yes
 
22369
    hardcode_into_libs=yes
 
22370
    ;;
 
22371
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
22372
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
22373
    shlibpath_overrides_runpath=no
 
22374
    hardcode_into_libs=yes
 
22375
    ;;
 
22376
  *) # from 4.6 on, and DragonFly
 
22377
    shlibpath_overrides_runpath=yes
 
22378
    hardcode_into_libs=yes
 
22379
    ;;
 
22380
  esac
 
22381
  ;;
 
22382
 
 
22383
gnu*)
 
22384
  version_type=linux # correct to gnu/linux during the next big refactor
 
22385
  need_lib_prefix=no
 
22386
  need_version=no
 
22387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
22388
  soname_spec='${libname}${release}${shared_ext}$major'
 
22389
  shlibpath_var=LD_LIBRARY_PATH
 
22390
  shlibpath_overrides_runpath=no
 
22391
  hardcode_into_libs=yes
 
22392
  ;;
 
22393
 
 
22394
haiku*)
 
22395
  version_type=linux # correct to gnu/linux during the next big refactor
 
22396
  need_lib_prefix=no
 
22397
  need_version=no
 
22398
  dynamic_linker="$host_os runtime_loader"
 
22399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
22400
  soname_spec='${libname}${release}${shared_ext}$major'
 
22401
  shlibpath_var=LIBRARY_PATH
 
22402
  shlibpath_overrides_runpath=yes
 
22403
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
22404
  hardcode_into_libs=yes
 
22405
  ;;
 
22406
 
 
22407
hpux9* | hpux10* | hpux11*)
 
22408
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
22409
  # link against other versions.
 
22410
  version_type=sunos
 
22411
  need_lib_prefix=no
 
22412
  need_version=no
 
22413
  case $host_cpu in
 
22414
  ia64*)
 
22415
    shrext_cmds='.so'
 
22416
    hardcode_into_libs=yes
 
22417
    dynamic_linker="$host_os dld.so"
 
22418
    shlibpath_var=LD_LIBRARY_PATH
 
22419
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
22420
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22421
    soname_spec='${libname}${release}${shared_ext}$major'
 
22422
    if test "X$HPUX_IA64_MODE" = X32; then
 
22423
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
22424
    else
 
22425
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
22426
    fi
 
22427
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
22428
    ;;
 
22429
  hppa*64*)
 
22430
    shrext_cmds='.sl'
 
22431
    hardcode_into_libs=yes
 
22432
    dynamic_linker="$host_os dld.sl"
 
22433
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
22434
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
22435
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22436
    soname_spec='${libname}${release}${shared_ext}$major'
 
22437
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
22438
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
22439
    ;;
 
22440
  *)
 
22441
    shrext_cmds='.sl'
 
22442
    dynamic_linker="$host_os dld.sl"
 
22443
    shlibpath_var=SHLIB_PATH
 
22444
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
22445
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22446
    soname_spec='${libname}${release}${shared_ext}$major'
 
22447
    ;;
 
22448
  esac
 
22449
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
22450
  postinstall_cmds='chmod 555 $lib'
 
22451
  # or fails outright, so override atomically:
 
22452
  install_override_mode=555
 
22453
  ;;
 
22454
 
 
22455
interix[3-9]*)
 
22456
  version_type=linux # correct to gnu/linux during the next big refactor
 
22457
  need_lib_prefix=no
 
22458
  need_version=no
 
22459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22460
  soname_spec='${libname}${release}${shared_ext}$major'
 
22461
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
22462
  shlibpath_var=LD_LIBRARY_PATH
 
22463
  shlibpath_overrides_runpath=no
 
22464
  hardcode_into_libs=yes
 
22465
  ;;
 
22466
 
 
22467
irix5* | irix6* | nonstopux*)
 
22468
  case $host_os in
 
22469
    nonstopux*) version_type=nonstopux ;;
 
22470
    *)
 
22471
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
22472
                version_type=linux # correct to gnu/linux during the next big refactor
 
22473
        else
 
22474
                version_type=irix
 
22475
        fi ;;
 
22476
  esac
 
22477
  need_lib_prefix=no
 
22478
  need_version=no
 
22479
  soname_spec='${libname}${release}${shared_ext}$major'
 
22480
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22481
  case $host_os in
 
22482
  irix5* | nonstopux*)
 
22483
    libsuff= shlibsuff=
 
22484
    ;;
 
22485
  *)
 
22486
    case $LD in # libtool.m4 will add one of these switches to LD
 
22487
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
22488
      libsuff= shlibsuff= libmagic=32-bit;;
 
22489
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
22490
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
22491
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
22492
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
22493
    *) libsuff= shlibsuff= libmagic=never-match;;
 
22494
    esac
 
22495
    ;;
 
22496
  esac
 
22497
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
22498
  shlibpath_overrides_runpath=no
 
22499
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
22500
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
22501
  hardcode_into_libs=yes
 
22502
  ;;
 
22503
 
 
22504
# No shared lib support for Linux oldld, aout, or coff.
 
22505
linux*oldld* | linux*aout* | linux*coff*)
 
22506
  dynamic_linker=no
 
22507
  ;;
 
22508
 
 
22509
# This must be glibc/ELF.
 
22510
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
22511
  version_type=linux # correct to gnu/linux during the next big refactor
 
22512
  need_lib_prefix=no
 
22513
  need_version=no
 
22514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22515
  soname_spec='${libname}${release}${shared_ext}$major'
 
22516
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
22517
  shlibpath_var=LD_LIBRARY_PATH
 
22518
  shlibpath_overrides_runpath=no
 
22519
 
 
22520
  # Some binutils ld are patched to set DT_RUNPATH
 
22521
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
22522
  $as_echo_n "(cached) " >&6
 
22523
else
 
22524
  lt_cv_shlibpath_overrides_runpath=no
 
22525
    save_LDFLAGS=$LDFLAGS
 
22526
    save_libdir=$libdir
 
22527
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
22528
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
22529
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22530
/* end confdefs.h.  */
 
22531
 
 
22532
int
 
22533
main ()
 
22534
{
 
22535
 
 
22536
  ;
 
22537
  return 0;
 
22538
}
 
22539
_ACEOF
 
22540
if ac_fn_c_try_link "$LINENO"; then :
 
22541
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
22542
  lt_cv_shlibpath_overrides_runpath=yes
 
22543
fi
 
22544
fi
 
22545
rm -f core conftest.err conftest.$ac_objext \
 
22546
    conftest$ac_exeext conftest.$ac_ext
 
22547
    LDFLAGS=$save_LDFLAGS
 
22548
    libdir=$save_libdir
 
22549
 
 
22550
fi
 
22551
 
 
22552
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
22553
 
 
22554
  # This implies no fast_install, which is unacceptable.
 
22555
  # Some rework will be needed to allow for fast_install
 
22556
  # before this can be enabled.
 
22557
  hardcode_into_libs=yes
 
22558
 
 
22559
  # Append ld.so.conf contents to the search path
 
22560
  if test -f /etc/ld.so.conf; then
 
22561
    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' ' '`
 
22562
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
22563
  fi
 
22564
 
 
22565
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
22566
  # powerpc, because MkLinux only supported shared libraries with the
 
22567
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
22568
  # most powerpc-linux boxes support dynamic linking these days and
 
22569
  # people can always --disable-shared, the test was removed, and we
 
22570
  # assume the GNU/Linux dynamic linker is in use.
 
22571
  dynamic_linker='GNU/Linux ld.so'
 
22572
  ;;
 
22573
 
 
22574
netbsd*)
 
22575
  version_type=sunos
 
22576
  need_lib_prefix=no
 
22577
  need_version=no
 
22578
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
22579
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22580
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
22581
    dynamic_linker='NetBSD (a.out) ld.so'
 
22582
  else
 
22583
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22584
    soname_spec='${libname}${release}${shared_ext}$major'
 
22585
    dynamic_linker='NetBSD ld.elf_so'
 
22586
  fi
 
22587
  shlibpath_var=LD_LIBRARY_PATH
 
22588
  shlibpath_overrides_runpath=yes
 
22589
  hardcode_into_libs=yes
 
22590
  ;;
 
22591
 
 
22592
newsos6)
 
22593
  version_type=linux # correct to gnu/linux during the next big refactor
 
22594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22595
  shlibpath_var=LD_LIBRARY_PATH
 
22596
  shlibpath_overrides_runpath=yes
 
22597
  ;;
 
22598
 
 
22599
*nto* | *qnx*)
 
22600
  version_type=qnx
 
22601
  need_lib_prefix=no
 
22602
  need_version=no
 
22603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22604
  soname_spec='${libname}${release}${shared_ext}$major'
 
22605
  shlibpath_var=LD_LIBRARY_PATH
 
22606
  shlibpath_overrides_runpath=no
 
22607
  hardcode_into_libs=yes
 
22608
  dynamic_linker='ldqnx.so'
 
22609
  ;;
 
22610
 
 
22611
openbsd*)
 
22612
  version_type=sunos
 
22613
  sys_lib_dlsearch_path_spec="/usr/lib"
 
22614
  need_lib_prefix=no
 
22615
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
22616
  case $host_os in
 
22617
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
22618
    *)                          need_version=no  ;;
 
22619
  esac
 
22620
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22621
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
22622
  shlibpath_var=LD_LIBRARY_PATH
 
22623
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
22624
    case $host_os in
 
22625
      openbsd2.[89] | openbsd2.[89].*)
 
22626
        shlibpath_overrides_runpath=no
 
22627
        ;;
 
22628
      *)
 
22629
        shlibpath_overrides_runpath=yes
 
22630
        ;;
 
22631
      esac
 
22632
  else
 
22633
    shlibpath_overrides_runpath=yes
 
22634
  fi
 
22635
  ;;
 
22636
 
 
22637
os2*)
 
22638
  libname_spec='$name'
 
22639
  shrext_cmds=".dll"
 
22640
  need_lib_prefix=no
 
22641
  library_names_spec='$libname${shared_ext} $libname.a'
 
22642
  dynamic_linker='OS/2 ld.exe'
 
22643
  shlibpath_var=LIBPATH
 
22644
  ;;
 
22645
 
 
22646
osf3* | osf4* | osf5*)
 
22647
  version_type=osf
 
22648
  need_lib_prefix=no
 
22649
  need_version=no
 
22650
  soname_spec='${libname}${release}${shared_ext}$major'
 
22651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22652
  shlibpath_var=LD_LIBRARY_PATH
 
22653
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
22654
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
22655
  ;;
 
22656
 
 
22657
rdos*)
 
22658
  dynamic_linker=no
 
22659
  ;;
 
22660
 
 
22661
solaris*)
 
22662
  version_type=linux # correct to gnu/linux during the next big refactor
 
22663
  need_lib_prefix=no
 
22664
  need_version=no
 
22665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22666
  soname_spec='${libname}${release}${shared_ext}$major'
 
22667
  shlibpath_var=LD_LIBRARY_PATH
 
22668
  shlibpath_overrides_runpath=yes
 
22669
  hardcode_into_libs=yes
 
22670
  # ldd complains unless libraries are executable
 
22671
  postinstall_cmds='chmod +x $lib'
 
22672
  ;;
 
22673
 
 
22674
sunos4*)
 
22675
  version_type=sunos
 
22676
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22677
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
22678
  shlibpath_var=LD_LIBRARY_PATH
 
22679
  shlibpath_overrides_runpath=yes
 
22680
  if test "$with_gnu_ld" = yes; then
 
22681
    need_lib_prefix=no
 
22682
  fi
 
22683
  need_version=yes
 
22684
  ;;
 
22685
 
 
22686
sysv4 | sysv4.3*)
 
22687
  version_type=linux # correct to gnu/linux during the next big refactor
 
22688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22689
  soname_spec='${libname}${release}${shared_ext}$major'
 
22690
  shlibpath_var=LD_LIBRARY_PATH
 
22691
  case $host_vendor in
 
22692
    sni)
 
22693
      shlibpath_overrides_runpath=no
 
22694
      need_lib_prefix=no
 
22695
      runpath_var=LD_RUN_PATH
 
22696
      ;;
 
22697
    siemens)
 
22698
      need_lib_prefix=no
 
22699
      ;;
 
22700
    motorola)
 
22701
      need_lib_prefix=no
 
22702
      need_version=no
 
22703
      shlibpath_overrides_runpath=no
 
22704
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
22705
      ;;
 
22706
  esac
 
22707
  ;;
 
22708
 
 
22709
sysv4*MP*)
 
22710
  if test -d /usr/nec ;then
 
22711
    version_type=linux # correct to gnu/linux during the next big refactor
 
22712
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
22713
    soname_spec='$libname${shared_ext}.$major'
 
22714
    shlibpath_var=LD_LIBRARY_PATH
 
22715
  fi
 
22716
  ;;
 
22717
 
 
22718
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
22719
  version_type=freebsd-elf
 
22720
  need_lib_prefix=no
 
22721
  need_version=no
 
22722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22723
  soname_spec='${libname}${release}${shared_ext}$major'
 
22724
  shlibpath_var=LD_LIBRARY_PATH
 
22725
  shlibpath_overrides_runpath=yes
 
22726
  hardcode_into_libs=yes
 
22727
  if test "$with_gnu_ld" = yes; then
 
22728
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
22729
  else
 
22730
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
22731
    case $host_os in
 
22732
      sco3.2v5*)
 
22733
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
22734
        ;;
 
22735
    esac
 
22736
  fi
 
22737
  sys_lib_dlsearch_path_spec='/usr/lib'
 
22738
  ;;
 
22739
 
 
22740
tpf*)
 
22741
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
22742
  version_type=linux # correct to gnu/linux during the next big refactor
 
22743
  need_lib_prefix=no
 
22744
  need_version=no
 
22745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22746
  shlibpath_var=LD_LIBRARY_PATH
 
22747
  shlibpath_overrides_runpath=no
 
22748
  hardcode_into_libs=yes
 
22749
  ;;
 
22750
 
 
22751
uts4*)
 
22752
  version_type=linux # correct to gnu/linux during the next big refactor
 
22753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22754
  soname_spec='${libname}${release}${shared_ext}$major'
 
22755
  shlibpath_var=LD_LIBRARY_PATH
 
22756
  ;;
 
22757
 
 
22758
*)
 
22759
  dynamic_linker=no
 
22760
  ;;
 
22761
esac
 
22762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
22763
$as_echo "$dynamic_linker" >&6; }
 
22764
test "$dynamic_linker" = no && can_build_shared=no
 
22765
 
 
22766
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
22767
if test "$GCC" = yes; then
 
22768
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
22769
fi
 
22770
 
 
22771
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
22772
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
22773
fi
 
22774
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
22775
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
22776
fi
 
22777
 
 
22778
 
 
22779
 
 
22780
 
 
22781
 
 
22782
 
 
22783
 
 
22784
 
 
22785
 
 
22786
 
 
22787
 
 
22788
 
 
22789
 
 
22790
 
 
22791
 
 
22792
 
 
22793
 
 
22794
 
 
22795
 
 
22796
 
 
22797
 
 
22798
 
 
22799
 
 
22800
 
 
22801
 
 
22802
 
 
22803
 
 
22804
 
 
22805
 
 
22806
 
 
22807
 
 
22808
 
 
22809
 
 
22810
 
 
22811
 
 
22812
 
 
22813
 
 
22814
 
 
22815
 
 
22816
 
 
22817
 
 
22818
 
 
22819
 
 
22820
 
 
22821
 
 
22822
 
 
22823
 
 
22824
 
 
22825
 
 
22826
 
 
22827
 
 
22828
 
 
22829
 
 
22830
 
 
22831
 
 
22832
 
 
22833
 
 
22834
 
 
22835
 
 
22836
 
 
22837
 
 
22838
 
 
22839
 
 
22840
 
 
22841
 
 
22842
 
 
22843
 
 
22844
 
 
22845
 
 
22846
 
 
22847
 
 
22848
 
 
22849
 
 
22850
 
 
22851
 
 
22852
 
 
22853
 
 
22854
 
 
22855
 
 
22856
 
 
22857
 
 
22858
 
 
22859
 
 
22860
 
 
22861
 
 
22862
 
 
22863
 
 
22864
 
 
22865
 
 
22866
 
 
22867
 
 
22868
 
 
22869
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
22870
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
22871
hardcode_action=
 
22872
if test -n "$hardcode_libdir_flag_spec" ||
 
22873
   test -n "$runpath_var" ||
 
22874
   test "X$hardcode_automatic" = "Xyes" ; then
 
22875
 
 
22876
  # We can hardcode non-existent directories.
 
22877
  if test "$hardcode_direct" != no &&
 
22878
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
22879
     # have to relink, otherwise we might link with an installed library
 
22880
     # when we should be linking with a yet-to-be-installed one
 
22881
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
22882
     test "$hardcode_minus_L" != no; then
 
22883
    # Linking always hardcodes the temporary library directory.
 
22884
    hardcode_action=relink
 
22885
  else
 
22886
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
22887
    hardcode_action=immediate
 
22888
  fi
 
22889
else
 
22890
  # We cannot hardcode anything, or else we can only hardcode existing
 
22891
  # directories.
 
22892
  hardcode_action=unsupported
 
22893
fi
 
22894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
22895
$as_echo "$hardcode_action" >&6; }
 
22896
 
 
22897
if test "$hardcode_action" = relink ||
 
22898
   test "$inherit_rpath" = yes; then
 
22899
  # Fast installation is not supported
 
22900
  enable_fast_install=no
 
22901
elif test "$shlibpath_overrides_runpath" = yes ||
 
22902
     test "$enable_shared" = no; then
 
22903
  # Fast installation is not necessary
 
22904
  enable_fast_install=needless
 
22905
fi
 
22906
 
 
22907
 
 
22908
 
 
22909
 
 
22910
 
 
22911
 
 
22912
  if test "x$enable_dlopen" != xyes; then
 
22913
  enable_dlopen=unknown
 
22914
  enable_dlopen_self=unknown
 
22915
  enable_dlopen_self_static=unknown
 
22916
else
 
22917
  lt_cv_dlopen=no
 
22918
  lt_cv_dlopen_libs=
 
22919
 
 
22920
  case $host_os in
 
22921
  beos*)
 
22922
    lt_cv_dlopen="load_add_on"
 
22923
    lt_cv_dlopen_libs=
 
22924
    lt_cv_dlopen_self=yes
 
22925
    ;;
 
22926
 
 
22927
  mingw* | pw32* | cegcc*)
 
22928
    lt_cv_dlopen="LoadLibrary"
 
22929
    lt_cv_dlopen_libs=
 
22930
    ;;
 
22931
 
 
22932
  cygwin*)
 
22933
    lt_cv_dlopen="dlopen"
 
22934
    lt_cv_dlopen_libs=
 
22935
    ;;
 
22936
 
 
22937
  darwin*)
 
22938
  # if libdl is installed we need to link against it
 
22939
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
22940
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
22941
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
22942
  $as_echo_n "(cached) " >&6
 
22943
else
 
22944
  ac_check_lib_save_LIBS=$LIBS
 
22945
LIBS="-ldl  $LIBS"
 
22946
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22947
/* end confdefs.h.  */
 
22948
 
 
22949
/* Override any GCC internal prototype to avoid an error.
 
22950
   Use char because int might match the return type of a GCC
 
22951
   builtin and then its argument prototype would still apply.  */
 
22952
#ifdef __cplusplus
 
22953
extern "C"
 
22954
#endif
 
22955
char dlopen ();
 
22956
int
 
22957
main ()
 
22958
{
 
22959
return dlopen ();
 
22960
  ;
 
22961
  return 0;
 
22962
}
 
22963
_ACEOF
 
22964
if ac_fn_c_try_link "$LINENO"; then :
 
22965
  ac_cv_lib_dl_dlopen=yes
 
22966
else
 
22967
  ac_cv_lib_dl_dlopen=no
 
22968
fi
 
22969
rm -f core conftest.err conftest.$ac_objext \
 
22970
    conftest$ac_exeext conftest.$ac_ext
 
22971
LIBS=$ac_check_lib_save_LIBS
 
22972
fi
 
22973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
22974
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
22975
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
22976
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
22977
else
 
22978
 
 
22979
    lt_cv_dlopen="dyld"
 
22980
    lt_cv_dlopen_libs=
 
22981
    lt_cv_dlopen_self=yes
 
22982
 
 
22983
fi
 
22984
 
 
22985
    ;;
 
22986
 
 
22987
  *)
 
22988
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
22989
if test "x$ac_cv_func_shl_load" = xyes; then :
 
22990
  lt_cv_dlopen="shl_load"
 
22991
else
 
22992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
22993
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
22994
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
22995
  $as_echo_n "(cached) " >&6
 
22996
else
 
22997
  ac_check_lib_save_LIBS=$LIBS
 
22998
LIBS="-ldld  $LIBS"
 
22999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23000
/* end confdefs.h.  */
 
23001
 
 
23002
/* Override any GCC internal prototype to avoid an error.
 
23003
   Use char because int might match the return type of a GCC
 
23004
   builtin and then its argument prototype would still apply.  */
 
23005
#ifdef __cplusplus
 
23006
extern "C"
 
23007
#endif
 
23008
char shl_load ();
 
23009
int
 
23010
main ()
 
23011
{
 
23012
return shl_load ();
 
23013
  ;
 
23014
  return 0;
 
23015
}
 
23016
_ACEOF
 
23017
if ac_fn_c_try_link "$LINENO"; then :
 
23018
  ac_cv_lib_dld_shl_load=yes
 
23019
else
 
23020
  ac_cv_lib_dld_shl_load=no
 
23021
fi
 
23022
rm -f core conftest.err conftest.$ac_objext \
 
23023
    conftest$ac_exeext conftest.$ac_ext
 
23024
LIBS=$ac_check_lib_save_LIBS
 
23025
fi
 
23026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
23027
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
23028
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
23029
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
23030
else
 
23031
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
23032
if test "x$ac_cv_func_dlopen" = xyes; then :
 
23033
  lt_cv_dlopen="dlopen"
 
23034
else
 
23035
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
23036
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
23037
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
23038
  $as_echo_n "(cached) " >&6
 
23039
else
 
23040
  ac_check_lib_save_LIBS=$LIBS
 
23041
LIBS="-ldl  $LIBS"
 
23042
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23043
/* end confdefs.h.  */
 
23044
 
 
23045
/* Override any GCC internal prototype to avoid an error.
 
23046
   Use char because int might match the return type of a GCC
 
23047
   builtin and then its argument prototype would still apply.  */
 
23048
#ifdef __cplusplus
 
23049
extern "C"
 
23050
#endif
 
23051
char dlopen ();
 
23052
int
 
23053
main ()
 
23054
{
 
23055
return dlopen ();
 
23056
  ;
 
23057
  return 0;
 
23058
}
 
23059
_ACEOF
 
23060
if ac_fn_c_try_link "$LINENO"; then :
 
23061
  ac_cv_lib_dl_dlopen=yes
 
23062
else
 
23063
  ac_cv_lib_dl_dlopen=no
 
23064
fi
 
23065
rm -f core conftest.err conftest.$ac_objext \
 
23066
    conftest$ac_exeext conftest.$ac_ext
 
23067
LIBS=$ac_check_lib_save_LIBS
 
23068
fi
 
23069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
23070
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
23071
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
23072
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
23073
else
 
23074
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
23075
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
23076
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
23077
  $as_echo_n "(cached) " >&6
 
23078
else
 
23079
  ac_check_lib_save_LIBS=$LIBS
 
23080
LIBS="-lsvld  $LIBS"
 
23081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23082
/* end confdefs.h.  */
 
23083
 
 
23084
/* Override any GCC internal prototype to avoid an error.
 
23085
   Use char because int might match the return type of a GCC
 
23086
   builtin and then its argument prototype would still apply.  */
 
23087
#ifdef __cplusplus
 
23088
extern "C"
 
23089
#endif
 
23090
char dlopen ();
 
23091
int
 
23092
main ()
 
23093
{
 
23094
return dlopen ();
 
23095
  ;
 
23096
  return 0;
 
23097
}
 
23098
_ACEOF
 
23099
if ac_fn_c_try_link "$LINENO"; then :
 
23100
  ac_cv_lib_svld_dlopen=yes
 
23101
else
 
23102
  ac_cv_lib_svld_dlopen=no
 
23103
fi
 
23104
rm -f core conftest.err conftest.$ac_objext \
 
23105
    conftest$ac_exeext conftest.$ac_ext
 
23106
LIBS=$ac_check_lib_save_LIBS
 
23107
fi
 
23108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
23109
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
23110
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
23111
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
23112
else
 
23113
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
23114
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
23115
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
23116
  $as_echo_n "(cached) " >&6
 
23117
else
 
23118
  ac_check_lib_save_LIBS=$LIBS
 
23119
LIBS="-ldld  $LIBS"
 
23120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23121
/* end confdefs.h.  */
 
23122
 
 
23123
/* Override any GCC internal prototype to avoid an error.
 
23124
   Use char because int might match the return type of a GCC
 
23125
   builtin and then its argument prototype would still apply.  */
 
23126
#ifdef __cplusplus
 
23127
extern "C"
 
23128
#endif
 
23129
char dld_link ();
 
23130
int
 
23131
main ()
 
23132
{
 
23133
return dld_link ();
 
23134
  ;
 
23135
  return 0;
 
23136
}
 
23137
_ACEOF
 
23138
if ac_fn_c_try_link "$LINENO"; then :
 
23139
  ac_cv_lib_dld_dld_link=yes
 
23140
else
 
23141
  ac_cv_lib_dld_dld_link=no
 
23142
fi
 
23143
rm -f core conftest.err conftest.$ac_objext \
 
23144
    conftest$ac_exeext conftest.$ac_ext
 
23145
LIBS=$ac_check_lib_save_LIBS
 
23146
fi
 
23147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
23148
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
23149
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
23150
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
23151
fi
 
23152
 
 
23153
 
 
23154
fi
 
23155
 
 
23156
 
 
23157
fi
 
23158
 
 
23159
 
 
23160
fi
 
23161
 
 
23162
 
 
23163
fi
 
23164
 
 
23165
 
 
23166
fi
 
23167
 
 
23168
    ;;
 
23169
  esac
 
23170
 
 
23171
  if test "x$lt_cv_dlopen" != xno; then
 
23172
    enable_dlopen=yes
 
23173
  else
 
23174
    enable_dlopen=no
 
23175
  fi
 
23176
 
 
23177
  case $lt_cv_dlopen in
 
23178
  dlopen)
 
23179
    save_CPPFLAGS="$CPPFLAGS"
 
23180
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
23181
 
 
23182
    save_LDFLAGS="$LDFLAGS"
 
23183
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
23184
 
 
23185
    save_LIBS="$LIBS"
 
23186
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
23187
 
 
23188
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
23189
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
23190
if ${lt_cv_dlopen_self+:} false; then :
 
23191
  $as_echo_n "(cached) " >&6
 
23192
else
 
23193
          if test "$cross_compiling" = yes; then :
 
23194
  lt_cv_dlopen_self=cross
 
23195
else
 
23196
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
23197
  lt_status=$lt_dlunknown
 
23198
  cat > conftest.$ac_ext <<_LT_EOF
 
23199
#line $LINENO "configure"
 
23200
#include "confdefs.h"
 
23201
 
 
23202
#if HAVE_DLFCN_H
 
23203
#include <dlfcn.h>
 
23204
#endif
 
23205
 
 
23206
#include <stdio.h>
 
23207
 
 
23208
#ifdef RTLD_GLOBAL
 
23209
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
23210
#else
 
23211
#  ifdef DL_GLOBAL
 
23212
#    define LT_DLGLOBAL         DL_GLOBAL
 
23213
#  else
 
23214
#    define LT_DLGLOBAL         0
 
23215
#  endif
 
23216
#endif
 
23217
 
 
23218
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
23219
   find out it does not work in some platform. */
 
23220
#ifndef LT_DLLAZY_OR_NOW
 
23221
#  ifdef RTLD_LAZY
 
23222
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
23223
#  else
 
23224
#    ifdef DL_LAZY
 
23225
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
23226
#    else
 
23227
#      ifdef RTLD_NOW
 
23228
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
23229
#      else
 
23230
#        ifdef DL_NOW
 
23231
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
23232
#        else
 
23233
#          define LT_DLLAZY_OR_NOW      0
 
23234
#        endif
 
23235
#      endif
 
23236
#    endif
 
23237
#  endif
 
23238
#endif
 
23239
 
 
23240
/* When -fvisbility=hidden is used, assume the code has been annotated
 
23241
   correspondingly for the symbols needed.  */
 
23242
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
23243
int fnord () __attribute__((visibility("default")));
 
23244
#endif
 
23245
 
 
23246
int fnord () { return 42; }
 
23247
int main ()
 
23248
{
 
23249
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
23250
  int status = $lt_dlunknown;
 
23251
 
 
23252
  if (self)
 
23253
    {
 
23254
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
23255
      else
 
23256
        {
 
23257
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
23258
          else puts (dlerror ());
 
23259
        }
 
23260
      /* dlclose (self); */
 
23261
    }
 
23262
  else
 
23263
    puts (dlerror ());
 
23264
 
 
23265
  return status;
 
23266
}
 
23267
_LT_EOF
 
23268
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
23269
  (eval $ac_link) 2>&5
 
23270
  ac_status=$?
 
23271
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
23272
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
23273
    (./conftest; exit; ) >&5 2>/dev/null
 
23274
    lt_status=$?
 
23275
    case x$lt_status in
 
23276
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
23277
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
23278
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
23279
    esac
 
23280
  else :
 
23281
    # compilation failed
 
23282
    lt_cv_dlopen_self=no
 
23283
  fi
 
23284
fi
 
23285
rm -fr conftest*
 
23286
 
 
23287
 
 
23288
fi
 
23289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
23290
$as_echo "$lt_cv_dlopen_self" >&6; }
 
23291
 
 
23292
    if test "x$lt_cv_dlopen_self" = xyes; then
 
23293
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
23294
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
23295
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
23296
if ${lt_cv_dlopen_self_static+:} false; then :
 
23297
  $as_echo_n "(cached) " >&6
 
23298
else
 
23299
          if test "$cross_compiling" = yes; then :
 
23300
  lt_cv_dlopen_self_static=cross
 
23301
else
 
23302
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
23303
  lt_status=$lt_dlunknown
 
23304
  cat > conftest.$ac_ext <<_LT_EOF
 
23305
#line $LINENO "configure"
 
23306
#include "confdefs.h"
 
23307
 
 
23308
#if HAVE_DLFCN_H
 
23309
#include <dlfcn.h>
 
23310
#endif
 
23311
 
 
23312
#include <stdio.h>
 
23313
 
 
23314
#ifdef RTLD_GLOBAL
 
23315
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
23316
#else
 
23317
#  ifdef DL_GLOBAL
 
23318
#    define LT_DLGLOBAL         DL_GLOBAL
 
23319
#  else
 
23320
#    define LT_DLGLOBAL         0
 
23321
#  endif
 
23322
#endif
 
23323
 
 
23324
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
23325
   find out it does not work in some platform. */
 
23326
#ifndef LT_DLLAZY_OR_NOW
 
23327
#  ifdef RTLD_LAZY
 
23328
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
23329
#  else
 
23330
#    ifdef DL_LAZY
 
23331
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
23332
#    else
 
23333
#      ifdef RTLD_NOW
 
23334
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
23335
#      else
 
23336
#        ifdef DL_NOW
 
23337
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
23338
#        else
 
23339
#          define LT_DLLAZY_OR_NOW      0
 
23340
#        endif
 
23341
#      endif
 
23342
#    endif
 
23343
#  endif
 
23344
#endif
 
23345
 
 
23346
/* When -fvisbility=hidden is used, assume the code has been annotated
 
23347
   correspondingly for the symbols needed.  */
 
23348
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
23349
int fnord () __attribute__((visibility("default")));
 
23350
#endif
 
23351
 
 
23352
int fnord () { return 42; }
 
23353
int main ()
 
23354
{
 
23355
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
23356
  int status = $lt_dlunknown;
 
23357
 
 
23358
  if (self)
 
23359
    {
 
23360
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
23361
      else
 
23362
        {
 
23363
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
23364
          else puts (dlerror ());
 
23365
        }
 
23366
      /* dlclose (self); */
 
23367
    }
 
23368
  else
 
23369
    puts (dlerror ());
 
23370
 
 
23371
  return status;
 
23372
}
 
23373
_LT_EOF
 
23374
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
23375
  (eval $ac_link) 2>&5
 
23376
  ac_status=$?
 
23377
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
23378
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
23379
    (./conftest; exit; ) >&5 2>/dev/null
 
23380
    lt_status=$?
 
23381
    case x$lt_status in
 
23382
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
23383
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
23384
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
23385
    esac
 
23386
  else :
 
23387
    # compilation failed
 
23388
    lt_cv_dlopen_self_static=no
 
23389
  fi
 
23390
fi
 
23391
rm -fr conftest*
 
23392
 
 
23393
 
 
23394
fi
 
23395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
23396
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
23397
    fi
 
23398
 
 
23399
    CPPFLAGS="$save_CPPFLAGS"
 
23400
    LDFLAGS="$save_LDFLAGS"
 
23401
    LIBS="$save_LIBS"
 
23402
    ;;
 
23403
  esac
 
23404
 
 
23405
  case $lt_cv_dlopen_self in
 
23406
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
23407
  *) enable_dlopen_self=unknown ;;
 
23408
  esac
 
23409
 
 
23410
  case $lt_cv_dlopen_self_static in
 
23411
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
23412
  *) enable_dlopen_self_static=unknown ;;
 
23413
  esac
 
23414
fi
 
23415
 
 
23416
 
 
23417
 
 
23418
 
 
23419
 
 
23420
 
 
23421
 
 
23422
 
 
23423
 
 
23424
 
 
23425
 
 
23426
 
 
23427
 
 
23428
 
 
23429
 
 
23430
 
 
23431
 
 
23432
striplib=
 
23433
old_striplib=
 
23434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
23435
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
23436
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
23437
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
23438
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
23439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
23440
$as_echo "yes" >&6; }
 
23441
else
 
23442
# FIXME - insert some real tests, host_os isn't really good enough
 
23443
  case $host_os in
 
23444
  darwin*)
 
23445
    if test -n "$STRIP" ; then
 
23446
      striplib="$STRIP -x"
 
23447
      old_striplib="$STRIP -S"
 
23448
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
23449
$as_echo "yes" >&6; }
 
23450
    else
 
23451
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23452
$as_echo "no" >&6; }
 
23453
    fi
 
23454
    ;;
 
23455
  *)
 
23456
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23457
$as_echo "no" >&6; }
 
23458
    ;;
 
23459
  esac
 
23460
fi
 
23461
 
 
23462
 
 
23463
 
 
23464
 
 
23465
 
 
23466
 
 
23467
 
 
23468
 
 
23469
 
 
23470
 
 
23471
 
 
23472
 
 
23473
  # Report which library types will actually be built
 
23474
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
23475
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
23476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
23477
$as_echo "$can_build_shared" >&6; }
 
23478
 
 
23479
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
23480
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
23481
  test "$can_build_shared" = "no" && enable_shared=no
 
23482
 
 
23483
  # On AIX, shared libraries and static libraries use the same namespace, and
 
23484
  # are all built from PIC.
 
23485
  case $host_os in
 
23486
  aix3*)
 
23487
    test "$enable_shared" = yes && enable_static=no
 
23488
    if test -n "$RANLIB"; then
 
23489
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
23490
      postinstall_cmds='$RANLIB $lib'
 
23491
    fi
 
23492
    ;;
 
23493
 
 
23494
  aix[4-9]*)
 
23495
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
23496
      test "$enable_shared" = yes && enable_static=no
 
23497
    fi
 
23498
    ;;
 
23499
  esac
 
23500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
23501
$as_echo "$enable_shared" >&6; }
 
23502
 
 
23503
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
23504
$as_echo_n "checking whether to build static libraries... " >&6; }
 
23505
  # Make sure either enable_shared or enable_static is yes.
 
23506
  test "$enable_shared" = yes || enable_static=yes
 
23507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
23508
$as_echo "$enable_static" >&6; }
 
23509
 
 
23510
 
 
23511
 
 
23512
 
 
23513
fi
 
23514
ac_ext=c
 
23515
ac_cpp='$CPP $CPPFLAGS'
 
23516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23519
 
 
23520
CC="$lt_save_CC"
 
23521
 
 
23522
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
23523
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
23524
    (test "X$CXX" != "Xg++"))) ; then
 
23525
  ac_ext=cpp
 
23526
ac_cpp='$CXXCPP $CPPFLAGS'
 
23527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
23531
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
23532
if test -z "$CXXCPP"; then
 
23533
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
23534
  $as_echo_n "(cached) " >&6
 
23535
else
 
23536
      # Double quotes because CXXCPP needs to be expanded
 
23537
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
23538
    do
 
23539
      ac_preproc_ok=false
 
23540
for ac_cxx_preproc_warn_flag in '' yes
 
23541
do
 
23542
  # Use a header file that comes with gcc, so configuring glibc
 
23543
  # with a fresh cross-compiler works.
 
23544
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23545
  # <limits.h> exists even on freestanding compilers.
 
23546
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
23547
  # not just through cpp. "Syntax error" is here to catch this case.
 
23548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23549
/* end confdefs.h.  */
 
23550
#ifdef __STDC__
 
23551
# include <limits.h>
 
23552
#else
 
23553
# include <assert.h>
 
23554
#endif
 
23555
                     Syntax error
 
23556
_ACEOF
 
23557
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
23558
 
 
23559
else
 
23560
  # Broken: fails on valid input.
 
23561
continue
 
23562
fi
 
23563
rm -f conftest.err conftest.i conftest.$ac_ext
 
23564
 
 
23565
  # OK, works on sane cases.  Now check whether nonexistent headers
 
23566
  # can be detected and how.
 
23567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23568
/* end confdefs.h.  */
 
23569
#include <ac_nonexistent.h>
 
23570
_ACEOF
 
23571
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
23572
  # Broken: success on invalid input.
 
23573
continue
 
23574
else
 
23575
  # Passes both tests.
 
23576
ac_preproc_ok=:
 
23577
break
 
23578
fi
 
23579
rm -f conftest.err conftest.i conftest.$ac_ext
 
23580
 
 
23581
done
 
23582
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
23583
rm -f conftest.i conftest.err conftest.$ac_ext
 
23584
if $ac_preproc_ok; then :
 
23585
  break
 
23586
fi
 
23587
 
 
23588
    done
 
23589
    ac_cv_prog_CXXCPP=$CXXCPP
 
23590
 
 
23591
fi
 
23592
  CXXCPP=$ac_cv_prog_CXXCPP
 
23593
else
 
23594
  ac_cv_prog_CXXCPP=$CXXCPP
 
23595
fi
 
23596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
23597
$as_echo "$CXXCPP" >&6; }
 
23598
ac_preproc_ok=false
 
23599
for ac_cxx_preproc_warn_flag in '' yes
 
23600
do
 
23601
  # Use a header file that comes with gcc, so configuring glibc
 
23602
  # with a fresh cross-compiler works.
 
23603
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23604
  # <limits.h> exists even on freestanding compilers.
 
23605
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
23606
  # not just through cpp. "Syntax error" is here to catch this case.
 
23607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23608
/* end confdefs.h.  */
 
23609
#ifdef __STDC__
 
23610
# include <limits.h>
 
23611
#else
 
23612
# include <assert.h>
 
23613
#endif
 
23614
                     Syntax error
 
23615
_ACEOF
 
23616
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
23617
 
 
23618
else
 
23619
  # Broken: fails on valid input.
 
23620
continue
 
23621
fi
 
23622
rm -f conftest.err conftest.i conftest.$ac_ext
 
23623
 
 
23624
  # OK, works on sane cases.  Now check whether nonexistent headers
 
23625
  # can be detected and how.
 
23626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23627
/* end confdefs.h.  */
 
23628
#include <ac_nonexistent.h>
 
23629
_ACEOF
 
23630
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
23631
  # Broken: success on invalid input.
 
23632
continue
 
23633
else
 
23634
  # Passes both tests.
 
23635
ac_preproc_ok=:
 
23636
break
 
23637
fi
 
23638
rm -f conftest.err conftest.i conftest.$ac_ext
 
23639
 
 
23640
done
 
23641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
23642
rm -f conftest.i conftest.err conftest.$ac_ext
 
23643
if $ac_preproc_ok; then :
 
23644
 
 
23645
else
 
23646
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
23647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
23648
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
23649
See \`config.log' for more details" "$LINENO" 5; }
 
23650
fi
 
23651
 
 
23652
ac_ext=c
 
23653
ac_cpp='$CPP $CPPFLAGS'
 
23654
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23655
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23656
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23657
 
 
23658
else
 
23659
  _lt_caught_CXX_error=yes
 
23660
fi
 
23661
 
 
23662
ac_ext=cpp
 
23663
ac_cpp='$CXXCPP $CPPFLAGS'
 
23664
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23665
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23666
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23667
 
 
23668
archive_cmds_need_lc_CXX=no
 
23669
allow_undefined_flag_CXX=
 
23670
always_export_symbols_CXX=no
 
23671
archive_expsym_cmds_CXX=
 
23672
compiler_needs_object_CXX=no
 
23673
export_dynamic_flag_spec_CXX=
 
23674
hardcode_direct_CXX=no
 
23675
hardcode_direct_absolute_CXX=no
 
23676
hardcode_libdir_flag_spec_CXX=
 
23677
hardcode_libdir_separator_CXX=
 
23678
hardcode_minus_L_CXX=no
 
23679
hardcode_shlibpath_var_CXX=unsupported
 
23680
hardcode_automatic_CXX=no
 
23681
inherit_rpath_CXX=no
 
23682
module_cmds_CXX=
 
23683
module_expsym_cmds_CXX=
 
23684
link_all_deplibs_CXX=unknown
 
23685
old_archive_cmds_CXX=$old_archive_cmds
 
23686
reload_flag_CXX=$reload_flag
 
23687
reload_cmds_CXX=$reload_cmds
 
23688
no_undefined_flag_CXX=
 
23689
whole_archive_flag_spec_CXX=
 
23690
enable_shared_with_static_runtimes_CXX=no
 
23691
 
 
23692
# Source file extension for C++ test sources.
 
23693
ac_ext=cpp
 
23694
 
 
23695
# Object file extension for compiled C++ test sources.
 
23696
objext=o
 
23697
objext_CXX=$objext
 
23698
 
 
23699
# No sense in running all these tests if we already determined that
 
23700
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
23701
# are currently assumed to apply to all compilers on this platform,
 
23702
# and will be corrupted by setting them based on a non-working compiler.
 
23703
if test "$_lt_caught_CXX_error" != yes; then
 
23704
  # Code to be used in simple compile tests
 
23705
  lt_simple_compile_test_code="int some_variable = 0;"
 
23706
 
 
23707
  # Code to be used in simple link tests
 
23708
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
23709
 
 
23710
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
23711
 
 
23712
 
 
23713
 
 
23714
 
 
23715
 
 
23716
 
 
23717
# If no C compiler was specified, use CC.
 
23718
LTCC=${LTCC-"$CC"}
 
23719
 
 
23720
# If no C compiler flags were specified, use CFLAGS.
 
23721
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
23722
 
 
23723
# Allow CC to be a program name with arguments.
 
23724
compiler=$CC
 
23725
 
 
23726
 
 
23727
  # save warnings/boilerplate of simple test code
 
23728
  ac_outfile=conftest.$ac_objext
 
23729
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
23730
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
23731
_lt_compiler_boilerplate=`cat conftest.err`
 
23732
$RM conftest*
 
23733
 
 
23734
  ac_outfile=conftest.$ac_objext
 
23735
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
23736
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
23737
_lt_linker_boilerplate=`cat conftest.err`
 
23738
$RM -r conftest*
 
23739
 
 
23740
 
 
23741
  # Allow CC to be a program name with arguments.
 
23742
  lt_save_CC=$CC
 
23743
  lt_save_CFLAGS=$CFLAGS
 
23744
  lt_save_LD=$LD
 
23745
  lt_save_GCC=$GCC
 
23746
  GCC=$GXX
 
23747
  lt_save_with_gnu_ld=$with_gnu_ld
 
23748
  lt_save_path_LD=$lt_cv_path_LD
 
23749
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
23750
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
23751
  else
 
23752
    $as_unset lt_cv_prog_gnu_ld
 
23753
  fi
 
23754
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
23755
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
23756
  else
 
23757
    $as_unset lt_cv_path_LD
 
23758
  fi
 
23759
  test -z "${LDCXX+set}" || LD=$LDCXX
 
23760
  CC=${CXX-"c++"}
 
23761
  CFLAGS=$CXXFLAGS
 
23762
  compiler=$CC
 
23763
  compiler_CXX=$CC
 
23764
  for cc_temp in $compiler""; do
 
23765
  case $cc_temp in
 
23766
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
23767
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
23768
    \-*) ;;
 
23769
    *) break;;
 
23770
  esac
 
23771
done
 
23772
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
23773
 
 
23774
 
 
23775
  if test -n "$compiler"; then
 
23776
    # We don't want -fno-exception when compiling C++ code, so set the
 
23777
    # no_builtin_flag separately
 
23778
    if test "$GXX" = yes; then
 
23779
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
23780
    else
 
23781
      lt_prog_compiler_no_builtin_flag_CXX=
 
23782
    fi
 
23783
 
 
23784
    if test "$GXX" = yes; then
 
23785
      # Set up default GNU C++ configuration
 
23786
 
 
23787
 
 
23788
 
 
23789
# Check whether --with-gnu-ld was given.
 
23790
if test "${with_gnu_ld+set}" = set; then :
 
23791
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
23792
else
 
23793
  with_gnu_ld=no
 
23794
fi
 
23795
 
 
23796
ac_prog=ld
 
23797
if test "$GCC" = yes; then
 
23798
  # Check if gcc -print-prog-name=ld gives a path.
 
23799
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
23800
$as_echo_n "checking for ld used by $CC... " >&6; }
 
23801
  case $host in
 
23802
  *-*-mingw*)
 
23803
    # gcc leaves a trailing carriage return which upsets mingw
 
23804
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
23805
  *)
 
23806
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
23807
  esac
 
23808
  case $ac_prog in
 
23809
    # Accept absolute paths.
 
23810
    [\\/]* | ?:[\\/]*)
 
23811
      re_direlt='/[^/][^/]*/\.\./'
 
23812
      # Canonicalize the pathname of ld
 
23813
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
23814
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
23815
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
23816
      done
 
23817
      test -z "$LD" && LD="$ac_prog"
 
23818
      ;;
 
23819
  "")
 
23820
    # If it fails, then pretend we aren't using GCC.
 
23821
    ac_prog=ld
 
23822
    ;;
 
23823
  *)
 
23824
    # If it is relative, then search for the first ld in PATH.
 
23825
    with_gnu_ld=unknown
 
23826
    ;;
 
23827
  esac
 
23828
elif test "$with_gnu_ld" = yes; then
 
23829
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
23830
$as_echo_n "checking for GNU ld... " >&6; }
 
23831
else
 
23832
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
23833
$as_echo_n "checking for non-GNU ld... " >&6; }
 
23834
fi
 
23835
if ${lt_cv_path_LD+:} false; then :
 
23836
  $as_echo_n "(cached) " >&6
 
23837
else
 
23838
  if test -z "$LD"; then
 
23839
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
23840
  for ac_dir in $PATH; do
 
23841
    IFS="$lt_save_ifs"
 
23842
    test -z "$ac_dir" && ac_dir=.
 
23843
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
23844
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
23845
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
23846
      # but apparently some variants of GNU ld only accept -v.
 
23847
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
23848
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
23849
      *GNU* | *'with BFD'*)
 
23850
        test "$with_gnu_ld" != no && break
 
23851
        ;;
 
23852
      *)
 
23853
        test "$with_gnu_ld" != yes && break
 
23854
        ;;
 
23855
      esac
 
23856
    fi
 
23857
  done
 
23858
  IFS="$lt_save_ifs"
 
23859
else
 
23860
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
23861
fi
 
23862
fi
 
23863
 
 
23864
LD="$lt_cv_path_LD"
 
23865
if test -n "$LD"; then
 
23866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
23867
$as_echo "$LD" >&6; }
 
23868
else
 
23869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23870
$as_echo "no" >&6; }
 
23871
fi
 
23872
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
23873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
23874
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
23875
if ${lt_cv_prog_gnu_ld+:} false; then :
 
23876
  $as_echo_n "(cached) " >&6
 
23877
else
 
23878
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
23879
case `$LD -v 2>&1 </dev/null` in
 
23880
*GNU* | *'with BFD'*)
 
23881
  lt_cv_prog_gnu_ld=yes
 
23882
  ;;
 
23883
*)
 
23884
  lt_cv_prog_gnu_ld=no
 
23885
  ;;
 
23886
esac
 
23887
fi
 
23888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
23889
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
23890
with_gnu_ld=$lt_cv_prog_gnu_ld
 
23891
 
 
23892
 
 
23893
 
 
23894
 
 
23895
 
 
23896
 
 
23897
 
 
23898
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
23899
      # archiving commands below assume that GNU ld is being used.
 
23900
      if test "$with_gnu_ld" = yes; then
 
23901
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
23902
        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'
 
23903
 
 
23904
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
23905
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
23906
 
 
23907
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
23908
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
23909
        #     investigate it a little bit more. (MM)
 
23910
        wlarc='${wl}'
 
23911
 
 
23912
        # ancient GNU ld didn't support --whole-archive et. al.
 
23913
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
23914
          $GREP 'no-whole-archive' > /dev/null; then
 
23915
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
23916
        else
 
23917
          whole_archive_flag_spec_CXX=
 
23918
        fi
 
23919
      else
 
23920
        with_gnu_ld=no
 
23921
        wlarc=
 
23922
 
 
23923
        # A generic and very simple default shared library creation
 
23924
        # command for GNU C++ for the case where it uses the native
 
23925
        # linker, instead of GNU ld.  If possible, this setting should
 
23926
        # overridden to take advantage of the native linker features on
 
23927
        # the platform it is being used on.
 
23928
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
23929
      fi
 
23930
 
 
23931
      # Commands to make compiler produce verbose output that lists
 
23932
      # what "hidden" libraries, object files and flags are used when
 
23933
      # linking a shared library.
 
23934
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
23935
 
 
23936
    else
 
23937
      GXX=no
 
23938
      with_gnu_ld=no
 
23939
      wlarc=
 
23940
    fi
 
23941
 
 
23942
    # PORTME: fill in a description of your system's C++ link characteristics
 
23943
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
23944
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
23945
    ld_shlibs_CXX=yes
 
23946
    case $host_os in
 
23947
      aix3*)
 
23948
        # FIXME: insert proper C++ library support
 
23949
        ld_shlibs_CXX=no
 
23950
        ;;
 
23951
      aix[4-9]*)
 
23952
        if test "$host_cpu" = ia64; then
 
23953
          # On IA64, the linker does run time linking by default, so we don't
 
23954
          # have to do anything special.
 
23955
          aix_use_runtimelinking=no
 
23956
          exp_sym_flag='-Bexport'
 
23957
          no_entry_flag=""
 
23958
        else
 
23959
          aix_use_runtimelinking=no
 
23960
 
 
23961
          # Test if we are trying to use run time linking or normal
 
23962
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
23963
          # need to do runtime linking.
 
23964
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
23965
            for ld_flag in $LDFLAGS; do
 
23966
              case $ld_flag in
 
23967
              *-brtl*)
 
23968
                aix_use_runtimelinking=yes
 
23969
                break
 
23970
                ;;
 
23971
              esac
 
23972
            done
 
23973
            ;;
 
23974
          esac
 
23975
 
 
23976
          exp_sym_flag='-bexport'
 
23977
          no_entry_flag='-bnoentry'
 
23978
        fi
 
23979
 
 
23980
        # When large executables or shared objects are built, AIX ld can
 
23981
        # have problems creating the table of contents.  If linking a library
 
23982
        # or program results in "error TOC overflow" add -mminimal-toc to
 
23983
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
23984
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
23985
 
 
23986
        archive_cmds_CXX=''
 
23987
        hardcode_direct_CXX=yes
 
23988
        hardcode_direct_absolute_CXX=yes
 
23989
        hardcode_libdir_separator_CXX=':'
 
23990
        link_all_deplibs_CXX=yes
 
23991
        file_list_spec_CXX='${wl}-f,'
 
23992
 
 
23993
        if test "$GXX" = yes; then
 
23994
          case $host_os in aix4.[012]|aix4.[012].*)
 
23995
          # We only want to do this on AIX 4.2 and lower, the check
 
23996
          # below for broken collect2 doesn't work under 4.3+
 
23997
          collect2name=`${CC} -print-prog-name=collect2`
 
23998
          if test -f "$collect2name" &&
 
23999
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
24000
          then
 
24001
            # We have reworked collect2
 
24002
            :
 
24003
          else
 
24004
            # We have old collect2
 
24005
            hardcode_direct_CXX=unsupported
 
24006
            # It fails to find uninstalled libraries when the uninstalled
 
24007
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
24008
            # to unsupported forces relinking
 
24009
            hardcode_minus_L_CXX=yes
 
24010
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
24011
            hardcode_libdir_separator_CXX=
 
24012
          fi
 
24013
          esac
 
24014
          shared_flag='-shared'
 
24015
          if test "$aix_use_runtimelinking" = yes; then
 
24016
            shared_flag="$shared_flag "'${wl}-G'
 
24017
          fi
 
24018
        else
 
24019
          # not using gcc
 
24020
          if test "$host_cpu" = ia64; then
 
24021
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
24022
          # chokes on -Wl,-G. The following line is correct:
 
24023
          shared_flag='-G'
 
24024
          else
 
24025
            if test "$aix_use_runtimelinking" = yes; then
 
24026
              shared_flag='${wl}-G'
 
24027
            else
 
24028
              shared_flag='${wl}-bM:SRE'
 
24029
            fi
 
24030
          fi
 
24031
        fi
 
24032
 
 
24033
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
24034
        # It seems that -bexpall does not export symbols beginning with
 
24035
        # underscore (_), so it is better to generate a list of symbols to
 
24036
        # export.
 
24037
        always_export_symbols_CXX=yes
 
24038
        if test "$aix_use_runtimelinking" = yes; then
 
24039
          # Warning - without using the other runtime loading flags (-brtl),
 
24040
          # -berok will link without error, but may produce a broken library.
 
24041
          allow_undefined_flag_CXX='-berok'
 
24042
          # Determine the default libpath from the value encoded in an empty
 
24043
          # executable.
 
24044
          if test "${lt_cv_aix_libpath+set}" = set; then
 
24045
  aix_libpath=$lt_cv_aix_libpath
 
24046
else
 
24047
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
24048
  $as_echo_n "(cached) " >&6
 
24049
else
 
24050
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24051
/* end confdefs.h.  */
 
24052
 
 
24053
int
 
24054
main ()
 
24055
{
 
24056
 
 
24057
  ;
 
24058
  return 0;
 
24059
}
 
24060
_ACEOF
 
24061
if ac_fn_cxx_try_link "$LINENO"; then :
 
24062
 
 
24063
  lt_aix_libpath_sed='
 
24064
      /Import File Strings/,/^$/ {
 
24065
          /^0/ {
 
24066
              s/^0  *\([^ ]*\) *$/\1/
 
24067
              p
 
24068
          }
 
24069
      }'
 
24070
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
24071
  # Check for a 64-bit object if we didn't find anything.
 
24072
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
24073
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
24074
  fi
 
24075
fi
 
24076
rm -f core conftest.err conftest.$ac_objext \
 
24077
    conftest$ac_exeext conftest.$ac_ext
 
24078
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
24079
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
24080
  fi
 
24081
 
 
24082
fi
 
24083
 
 
24084
  aix_libpath=$lt_cv_aix_libpath__CXX
 
24085
fi
 
24086
 
 
24087
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
24088
 
 
24089
          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"
 
24090
        else
 
24091
          if test "$host_cpu" = ia64; then
 
24092
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
24093
            allow_undefined_flag_CXX="-z nodefs"
 
24094
            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"
 
24095
          else
 
24096
            # Determine the default libpath from the value encoded in an
 
24097
            # empty executable.
 
24098
            if test "${lt_cv_aix_libpath+set}" = set; then
 
24099
  aix_libpath=$lt_cv_aix_libpath
 
24100
else
 
24101
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
24102
  $as_echo_n "(cached) " >&6
 
24103
else
 
24104
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24105
/* end confdefs.h.  */
 
24106
 
 
24107
int
 
24108
main ()
 
24109
{
 
24110
 
 
24111
  ;
 
24112
  return 0;
 
24113
}
 
24114
_ACEOF
 
24115
if ac_fn_cxx_try_link "$LINENO"; then :
 
24116
 
 
24117
  lt_aix_libpath_sed='
 
24118
      /Import File Strings/,/^$/ {
 
24119
          /^0/ {
 
24120
              s/^0  *\([^ ]*\) *$/\1/
 
24121
              p
 
24122
          }
 
24123
      }'
 
24124
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
24125
  # Check for a 64-bit object if we didn't find anything.
 
24126
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
24127
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
24128
  fi
 
24129
fi
 
24130
rm -f core conftest.err conftest.$ac_objext \
 
24131
    conftest$ac_exeext conftest.$ac_ext
 
24132
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
24133
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
24134
  fi
 
24135
 
 
24136
fi
 
24137
 
 
24138
  aix_libpath=$lt_cv_aix_libpath__CXX
 
24139
fi
 
24140
 
 
24141
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
24142
            # Warning - without using the other run time loading flags,
 
24143
            # -berok will link without error, but may produce a broken library.
 
24144
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
24145
            allow_undefined_flag_CXX=' ${wl}-berok'
 
24146
            if test "$with_gnu_ld" = yes; then
 
24147
              # We only use this code for GNU lds that support --whole-archive.
 
24148
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
24149
            else
 
24150
              # Exported symbols can be pulled into shared objects from archives
 
24151
              whole_archive_flag_spec_CXX='$convenience'
 
24152
            fi
 
24153
            archive_cmds_need_lc_CXX=yes
 
24154
            # This is similar to how AIX traditionally builds its shared
 
24155
            # libraries.
 
24156
            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'
 
24157
          fi
 
24158
        fi
 
24159
        ;;
 
24160
 
 
24161
      beos*)
 
24162
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
24163
          allow_undefined_flag_CXX=unsupported
 
24164
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
24165
          # support --undefined.  This deserves some investigation.  FIXME
 
24166
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24167
        else
 
24168
          ld_shlibs_CXX=no
 
24169
        fi
 
24170
        ;;
 
24171
 
 
24172
      chorus*)
 
24173
        case $cc_basename in
 
24174
          *)
 
24175
          # FIXME: insert proper C++ library support
 
24176
          ld_shlibs_CXX=no
 
24177
          ;;
 
24178
        esac
 
24179
        ;;
 
24180
 
 
24181
      cygwin* | mingw* | pw32* | cegcc*)
 
24182
        case $GXX,$cc_basename in
 
24183
        ,cl* | no,cl*)
 
24184
          # Native MSVC
 
24185
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
24186
          # no search path for DLLs.
 
24187
          hardcode_libdir_flag_spec_CXX=' '
 
24188
          allow_undefined_flag_CXX=unsupported
 
24189
          always_export_symbols_CXX=yes
 
24190
          file_list_spec_CXX='@'
 
24191
          # Tell ltmain to make .lib files, not .a files.
 
24192
          libext=lib
 
24193
          # Tell ltmain to make .dll files, not .so files.
 
24194
          shrext_cmds=".dll"
 
24195
          # FIXME: Setting linknames here is a bad hack.
 
24196
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
24197
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
24198
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
24199
            else
 
24200
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
24201
            fi~
 
24202
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
24203
            linknames='
 
24204
          # The linker will not automatically build a static lib if we build a DLL.
 
24205
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
24206
          enable_shared_with_static_runtimes_CXX=yes
 
24207
          # Don't use ranlib
 
24208
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
24209
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
24210
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
24211
            case $lt_outputfile in
 
24212
              *.exe|*.EXE) ;;
 
24213
              *)
 
24214
                lt_outputfile="$lt_outputfile.exe"
 
24215
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
24216
                ;;
 
24217
            esac~
 
24218
            func_to_tool_file "$lt_outputfile"~
 
24219
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
24220
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
24221
              $RM "$lt_outputfile.manifest";
 
24222
            fi'
 
24223
          ;;
 
24224
        *)
 
24225
          # g++
 
24226
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
24227
          # as there is no search path for DLLs.
 
24228
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
24229
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
24230
          allow_undefined_flag_CXX=unsupported
 
24231
          always_export_symbols_CXX=no
 
24232
          enable_shared_with_static_runtimes_CXX=yes
 
24233
 
 
24234
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
24235
            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'
 
24236
            # If the export-symbols file already is a .def file (1st line
 
24237
            # is EXPORTS), use it as is; otherwise, prepend...
 
24238
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
24239
              cp $export_symbols $output_objdir/$soname.def;
 
24240
            else
 
24241
              echo EXPORTS > $output_objdir/$soname.def;
 
24242
              cat $export_symbols >> $output_objdir/$soname.def;
 
24243
            fi~
 
24244
            $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'
 
24245
          else
 
24246
            ld_shlibs_CXX=no
 
24247
          fi
 
24248
          ;;
 
24249
        esac
 
24250
        ;;
 
24251
      darwin* | rhapsody*)
 
24252
 
 
24253
 
 
24254
  archive_cmds_need_lc_CXX=no
 
24255
  hardcode_direct_CXX=no
 
24256
  hardcode_automatic_CXX=yes
 
24257
  hardcode_shlibpath_var_CXX=unsupported
 
24258
  if test "$lt_cv_ld_force_load" = "yes"; then
 
24259
    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\"`'
 
24260
 
 
24261
  else
 
24262
    whole_archive_flag_spec_CXX=''
 
24263
  fi
 
24264
  link_all_deplibs_CXX=yes
 
24265
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
24266
  case $cc_basename in
 
24267
     ifort*) _lt_dar_can_shared=yes ;;
 
24268
     *) _lt_dar_can_shared=$GCC ;;
 
24269
  esac
 
24270
  if test "$_lt_dar_can_shared" = "yes"; then
 
24271
    output_verbose_link_cmd=func_echo_all
 
24272
    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}"
 
24273
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
24274
    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}"
 
24275
    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}"
 
24276
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
24277
      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}"
 
24278
      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}"
 
24279
    fi
 
24280
 
 
24281
  else
 
24282
  ld_shlibs_CXX=no
 
24283
  fi
 
24284
 
 
24285
        ;;
 
24286
 
 
24287
      dgux*)
 
24288
        case $cc_basename in
 
24289
          ec++*)
 
24290
            # FIXME: insert proper C++ library support
 
24291
            ld_shlibs_CXX=no
 
24292
            ;;
 
24293
          ghcx*)
 
24294
            # Green Hills C++ Compiler
 
24295
            # FIXME: insert proper C++ library support
 
24296
            ld_shlibs_CXX=no
 
24297
            ;;
 
24298
          *)
 
24299
            # FIXME: insert proper C++ library support
 
24300
            ld_shlibs_CXX=no
 
24301
            ;;
 
24302
        esac
 
24303
        ;;
 
24304
 
 
24305
      freebsd2.*)
 
24306
        # C++ shared libraries reported to be fairly broken before
 
24307
        # switch to ELF
 
24308
        ld_shlibs_CXX=no
 
24309
        ;;
 
24310
 
 
24311
      freebsd-elf*)
 
24312
        archive_cmds_need_lc_CXX=no
 
24313
        ;;
 
24314
 
 
24315
      freebsd* | dragonfly*)
 
24316
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
24317
        # conventions
 
24318
        ld_shlibs_CXX=yes
 
24319
        ;;
 
24320
 
 
24321
      gnu*)
 
24322
        ;;
 
24323
 
 
24324
      haiku*)
 
24325
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24326
        link_all_deplibs_CXX=yes
 
24327
        ;;
 
24328
 
 
24329
      hpux9*)
 
24330
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
24331
        hardcode_libdir_separator_CXX=:
 
24332
        export_dynamic_flag_spec_CXX='${wl}-E'
 
24333
        hardcode_direct_CXX=yes
 
24334
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
24335
                                             # but as the default
 
24336
                                             # location of the library.
 
24337
 
 
24338
        case $cc_basename in
 
24339
          CC*)
 
24340
            # FIXME: insert proper C++ library support
 
24341
            ld_shlibs_CXX=no
 
24342
            ;;
 
24343
          aCC*)
 
24344
            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'
 
24345
            # Commands to make compiler produce verbose output that lists
 
24346
            # what "hidden" libraries, object files and flags are used when
 
24347
            # linking a shared library.
 
24348
            #
 
24349
            # There doesn't appear to be a way to prevent this compiler from
 
24350
            # explicitly linking system object files so we need to strip them
 
24351
            # from the output so that they don't get included in the library
 
24352
            # dependencies.
 
24353
            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"'
 
24354
            ;;
 
24355
          *)
 
24356
            if test "$GXX" = yes; then
 
24357
              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'
 
24358
            else
 
24359
              # FIXME: insert proper C++ library support
 
24360
              ld_shlibs_CXX=no
 
24361
            fi
 
24362
            ;;
 
24363
        esac
 
24364
        ;;
 
24365
 
 
24366
      hpux10*|hpux11*)
 
24367
        if test $with_gnu_ld = no; then
 
24368
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
24369
          hardcode_libdir_separator_CXX=:
 
24370
 
 
24371
          case $host_cpu in
 
24372
            hppa*64*|ia64*)
 
24373
              ;;
 
24374
            *)
 
24375
              export_dynamic_flag_spec_CXX='${wl}-E'
 
24376
              ;;
 
24377
          esac
 
24378
        fi
 
24379
        case $host_cpu in
 
24380
          hppa*64*|ia64*)
 
24381
            hardcode_direct_CXX=no
 
24382
            hardcode_shlibpath_var_CXX=no
 
24383
            ;;
 
24384
          *)
 
24385
            hardcode_direct_CXX=yes
 
24386
            hardcode_direct_absolute_CXX=yes
 
24387
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
24388
                                                 # but as the default
 
24389
                                                 # location of the library.
 
24390
            ;;
 
24391
        esac
 
24392
 
 
24393
        case $cc_basename in
 
24394
          CC*)
 
24395
            # FIXME: insert proper C++ library support
 
24396
            ld_shlibs_CXX=no
 
24397
            ;;
 
24398
          aCC*)
 
24399
            case $host_cpu in
 
24400
              hppa*64*)
 
24401
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24402
                ;;
 
24403
              ia64*)
 
24404
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24405
                ;;
 
24406
              *)
 
24407
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24408
                ;;
 
24409
            esac
 
24410
            # Commands to make compiler produce verbose output that lists
 
24411
            # what "hidden" libraries, object files and flags are used when
 
24412
            # linking a shared library.
 
24413
            #
 
24414
            # There doesn't appear to be a way to prevent this compiler from
 
24415
            # explicitly linking system object files so we need to strip them
 
24416
            # from the output so that they don't get included in the library
 
24417
            # dependencies.
 
24418
            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"'
 
24419
            ;;
 
24420
          *)
 
24421
            if test "$GXX" = yes; then
 
24422
              if test $with_gnu_ld = no; then
 
24423
                case $host_cpu in
 
24424
                  hppa*64*)
 
24425
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24426
                    ;;
 
24427
                  ia64*)
 
24428
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24429
                    ;;
 
24430
                  *)
 
24431
                    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'
 
24432
                    ;;
 
24433
                esac
 
24434
              fi
 
24435
            else
 
24436
              # FIXME: insert proper C++ library support
 
24437
              ld_shlibs_CXX=no
 
24438
            fi
 
24439
            ;;
 
24440
        esac
 
24441
        ;;
 
24442
 
 
24443
      interix[3-9]*)
 
24444
        hardcode_direct_CXX=no
 
24445
        hardcode_shlibpath_var_CXX=no
 
24446
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
24447
        export_dynamic_flag_spec_CXX='${wl}-E'
 
24448
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
24449
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
24450
        # default) and relocated if they conflict, which is a slow very memory
 
24451
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
24452
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
24453
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
24454
        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'
 
24455
        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'
 
24456
        ;;
 
24457
      irix5* | irix6*)
 
24458
        case $cc_basename in
 
24459
          CC*)
 
24460
            # SGI C++
 
24461
            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'
 
24462
 
 
24463
            # Archives containing C++ object files must be created using
 
24464
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
24465
            # necessary to make sure instantiated templates are included
 
24466
            # in the archive.
 
24467
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
24468
            ;;
 
24469
          *)
 
24470
            if test "$GXX" = yes; then
 
24471
              if test "$with_gnu_ld" = no; then
 
24472
                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'
 
24473
              else
 
24474
                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'
 
24475
              fi
 
24476
            fi
 
24477
            link_all_deplibs_CXX=yes
 
24478
            ;;
 
24479
        esac
 
24480
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
24481
        hardcode_libdir_separator_CXX=:
 
24482
        inherit_rpath_CXX=yes
 
24483
        ;;
 
24484
 
 
24485
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
24486
        case $cc_basename in
 
24487
          KCC*)
 
24488
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
24489
 
 
24490
            # KCC will only create a shared library if the output file
 
24491
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
24492
            # to its proper name (with version) after linking.
 
24493
            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'
 
24494
            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'
 
24495
            # Commands to make compiler produce verbose output that lists
 
24496
            # what "hidden" libraries, object files and flags are used when
 
24497
            # linking a shared library.
 
24498
            #
 
24499
            # There doesn't appear to be a way to prevent this compiler from
 
24500
            # explicitly linking system object files so we need to strip them
 
24501
            # from the output so that they don't get included in the library
 
24502
            # dependencies.
 
24503
            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"'
 
24504
 
 
24505
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
24506
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
24507
 
 
24508
            # Archives containing C++ object files must be created using
 
24509
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
24510
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
24511
            ;;
 
24512
          icpc* | ecpc* )
 
24513
            # Intel C++
 
24514
            with_gnu_ld=yes
 
24515
            # version 8.0 and above of icpc choke on multiply defined symbols
 
24516
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
24517
            # earlier do not add the objects themselves.
 
24518
            case `$CC -V 2>&1` in
 
24519
              *"Version 7."*)
 
24520
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24521
                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'
 
24522
                ;;
 
24523
              *)  # Version 8.0 or newer
 
24524
                tmp_idyn=
 
24525
                case $host_cpu in
 
24526
                  ia64*) tmp_idyn=' -i_dynamic';;
 
24527
                esac
 
24528
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24529
                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'
 
24530
                ;;
 
24531
            esac
 
24532
            archive_cmds_need_lc_CXX=no
 
24533
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
24534
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
24535
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
24536
            ;;
 
24537
          pgCC* | pgcpp*)
 
24538
            # Portland Group C++ compiler
 
24539
            case `$CC -V` in
 
24540
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
24541
              prelink_cmds_CXX='tpldir=Template.dir~
 
24542
                rm -rf $tpldir~
 
24543
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
24544
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
24545
              old_archive_cmds_CXX='tpldir=Template.dir~
 
24546
                rm -rf $tpldir~
 
24547
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
24548
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
24549
                $RANLIB $oldlib'
 
24550
              archive_cmds_CXX='tpldir=Template.dir~
 
24551
                rm -rf $tpldir~
 
24552
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
24553
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
24554
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
24555
                rm -rf $tpldir~
 
24556
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
24557
                $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'
 
24558
              ;;
 
24559
            *) # Version 6 and above use weak symbols
 
24560
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
24561
              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'
 
24562
              ;;
 
24563
            esac
 
24564
 
 
24565
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
24566
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
24567
            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'
 
24568
            ;;
 
24569
          cxx*)
 
24570
            # Compaq C++
 
24571
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24572
            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'
 
24573
 
 
24574
            runpath_var=LD_RUN_PATH
 
24575
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
24576
            hardcode_libdir_separator_CXX=:
 
24577
 
 
24578
            # Commands to make compiler produce verbose output that lists
 
24579
            # what "hidden" libraries, object files and flags are used when
 
24580
            # linking a shared library.
 
24581
            #
 
24582
            # There doesn't appear to be a way to prevent this compiler from
 
24583
            # explicitly linking system object files so we need to strip them
 
24584
            # from the output so that they don't get included in the library
 
24585
            # dependencies.
 
24586
            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'
 
24587
            ;;
 
24588
          xl* | mpixl* | bgxl*)
 
24589
            # IBM XL 8.0 on PPC, with GNU ld
 
24590
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
24591
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
24592
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24593
            if test "x$supports_anon_versioning" = xyes; then
 
24594
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
24595
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
24596
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
24597
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
24598
            fi
 
24599
            ;;
 
24600
          *)
 
24601
            case `$CC -V 2>&1 | sed 5q` in
 
24602
            *Sun\ C*)
 
24603
              # Sun C++ 5.9
 
24604
              no_undefined_flag_CXX=' -zdefs'
 
24605
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24606
              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'
 
24607
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
24608
              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'
 
24609
              compiler_needs_object_CXX=yes
 
24610
 
 
24611
              # Not sure whether something based on
 
24612
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
24613
              # would be better.
 
24614
              output_verbose_link_cmd='func_echo_all'
 
24615
 
 
24616
              # Archives containing C++ object files must be created using
 
24617
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
24618
              # necessary to make sure instantiated templates are included
 
24619
              # in the archive.
 
24620
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
24621
              ;;
 
24622
            esac
 
24623
            ;;
 
24624
        esac
 
24625
        ;;
 
24626
 
 
24627
      lynxos*)
 
24628
        # FIXME: insert proper C++ library support
 
24629
        ld_shlibs_CXX=no
 
24630
        ;;
 
24631
 
 
24632
      m88k*)
 
24633
        # FIXME: insert proper C++ library support
 
24634
        ld_shlibs_CXX=no
 
24635
        ;;
 
24636
 
 
24637
      mvs*)
 
24638
        case $cc_basename in
 
24639
          cxx*)
 
24640
            # FIXME: insert proper C++ library support
 
24641
            ld_shlibs_CXX=no
 
24642
            ;;
 
24643
          *)
 
24644
            # FIXME: insert proper C++ library support
 
24645
            ld_shlibs_CXX=no
 
24646
            ;;
 
24647
        esac
 
24648
        ;;
 
24649
 
 
24650
      netbsd*)
 
24651
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
24652
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
24653
          wlarc=
 
24654
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
24655
          hardcode_direct_CXX=yes
 
24656
          hardcode_shlibpath_var_CXX=no
 
24657
        fi
 
24658
        # Workaround some broken pre-1.5 toolchains
 
24659
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
24660
        ;;
 
24661
 
 
24662
      *nto* | *qnx*)
 
24663
        ld_shlibs_CXX=yes
 
24664
        ;;
 
24665
 
 
24666
      openbsd2*)
 
24667
        # C++ shared libraries are fairly broken
 
24668
        ld_shlibs_CXX=no
 
24669
        ;;
 
24670
 
 
24671
      openbsd*)
 
24672
        if test -f /usr/libexec/ld.so; then
 
24673
          hardcode_direct_CXX=yes
 
24674
          hardcode_shlibpath_var_CXX=no
 
24675
          hardcode_direct_absolute_CXX=yes
 
24676
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
24677
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
24678
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
24679
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
24680
            export_dynamic_flag_spec_CXX='${wl}-E'
 
24681
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
24682
          fi
 
24683
          output_verbose_link_cmd=func_echo_all
 
24684
        else
 
24685
          ld_shlibs_CXX=no
 
24686
        fi
 
24687
        ;;
 
24688
 
 
24689
      osf3* | osf4* | osf5*)
 
24690
        case $cc_basename in
 
24691
          KCC*)
 
24692
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
24693
 
 
24694
            # KCC will only create a shared library if the output file
 
24695
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
24696
            # to its proper name (with version) after linking.
 
24697
            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'
 
24698
 
 
24699
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
24700
            hardcode_libdir_separator_CXX=:
 
24701
 
 
24702
            # Archives containing C++ object files must be created using
 
24703
            # the KAI C++ compiler.
 
24704
            case $host in
 
24705
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
24706
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
24707
            esac
 
24708
            ;;
 
24709
          RCC*)
 
24710
            # Rational C++ 2.4.1
 
24711
            # FIXME: insert proper C++ library support
 
24712
            ld_shlibs_CXX=no
 
24713
            ;;
 
24714
          cxx*)
 
24715
            case $host in
 
24716
              osf3*)
 
24717
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
24718
                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'
 
24719
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
24720
                ;;
 
24721
              *)
 
24722
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
24723
                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'
 
24724
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
24725
                  echo "-hidden">> $lib.exp~
 
24726
                  $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~
 
24727
                  $RM $lib.exp'
 
24728
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
24729
                ;;
 
24730
            esac
 
24731
 
 
24732
            hardcode_libdir_separator_CXX=:
 
24733
 
 
24734
            # Commands to make compiler produce verbose output that lists
 
24735
            # what "hidden" libraries, object files and flags are used when
 
24736
            # linking a shared library.
 
24737
            #
 
24738
            # There doesn't appear to be a way to prevent this compiler from
 
24739
            # explicitly linking system object files so we need to strip them
 
24740
            # from the output so that they don't get included in the library
 
24741
            # dependencies.
 
24742
            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"'
 
24743
            ;;
 
24744
          *)
 
24745
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
24746
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
24747
              case $host in
 
24748
                osf3*)
 
24749
                  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'
 
24750
                  ;;
 
24751
                *)
 
24752
                  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'
 
24753
                  ;;
 
24754
              esac
 
24755
 
 
24756
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
24757
              hardcode_libdir_separator_CXX=:
 
24758
 
 
24759
              # Commands to make compiler produce verbose output that lists
 
24760
              # what "hidden" libraries, object files and flags are used when
 
24761
              # linking a shared library.
 
24762
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
24763
 
 
24764
            else
 
24765
              # FIXME: insert proper C++ library support
 
24766
              ld_shlibs_CXX=no
 
24767
            fi
 
24768
            ;;
 
24769
        esac
 
24770
        ;;
 
24771
 
 
24772
      psos*)
 
24773
        # FIXME: insert proper C++ library support
 
24774
        ld_shlibs_CXX=no
 
24775
        ;;
 
24776
 
 
24777
      sunos4*)
 
24778
        case $cc_basename in
 
24779
          CC*)
 
24780
            # Sun C++ 4.x
 
24781
            # FIXME: insert proper C++ library support
 
24782
            ld_shlibs_CXX=no
 
24783
            ;;
 
24784
          lcc*)
 
24785
            # Lucid
 
24786
            # FIXME: insert proper C++ library support
 
24787
            ld_shlibs_CXX=no
 
24788
            ;;
 
24789
          *)
 
24790
            # FIXME: insert proper C++ library support
 
24791
            ld_shlibs_CXX=no
 
24792
            ;;
 
24793
        esac
 
24794
        ;;
 
24795
 
 
24796
      solaris*)
 
24797
        case $cc_basename in
 
24798
          CC* | sunCC*)
 
24799
            # Sun C++ 4.2, 5.x and Centerline C++
 
24800
            archive_cmds_need_lc_CXX=yes
 
24801
            no_undefined_flag_CXX=' -zdefs'
 
24802
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
24803
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
24804
              $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'
 
24805
 
 
24806
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
24807
            hardcode_shlibpath_var_CXX=no
 
24808
            case $host_os in
 
24809
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
24810
              *)
 
24811
                # The compiler driver will combine and reorder linker options,
 
24812
                # but understands `-z linker_flag'.
 
24813
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
24814
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
24815
                ;;
 
24816
            esac
 
24817
            link_all_deplibs_CXX=yes
 
24818
 
 
24819
            output_verbose_link_cmd='func_echo_all'
 
24820
 
 
24821
            # Archives containing C++ object files must be created using
 
24822
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
24823
            # necessary to make sure instantiated templates are included
 
24824
            # in the archive.
 
24825
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
24826
            ;;
 
24827
          gcx*)
 
24828
            # Green Hills C++ Compiler
 
24829
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
24830
 
 
24831
            # The C++ compiler must be used to create the archive.
 
24832
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
24833
            ;;
 
24834
          *)
 
24835
            # GNU C++ compiler with Solaris linker
 
24836
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
24837
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
24838
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
24839
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
24840
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
24841
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
24842
 
 
24843
                # Commands to make compiler produce verbose output that lists
 
24844
                # what "hidden" libraries, object files and flags are used when
 
24845
                # linking a shared library.
 
24846
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
24847
              else
 
24848
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
24849
                # platform.
 
24850
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
24851
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
24852
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
24853
 
 
24854
                # Commands to make compiler produce verbose output that lists
 
24855
                # what "hidden" libraries, object files and flags are used when
 
24856
                # linking a shared library.
 
24857
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
24858
              fi
 
24859
 
 
24860
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
24861
              case $host_os in
 
24862
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
24863
                *)
 
24864
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
24865
                  ;;
 
24866
              esac
 
24867
            fi
 
24868
            ;;
 
24869
        esac
 
24870
        ;;
 
24871
 
 
24872
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
24873
      no_undefined_flag_CXX='${wl}-z,text'
 
24874
      archive_cmds_need_lc_CXX=no
 
24875
      hardcode_shlibpath_var_CXX=no
 
24876
      runpath_var='LD_RUN_PATH'
 
24877
 
 
24878
      case $cc_basename in
 
24879
        CC*)
 
24880
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24881
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24882
          ;;
 
24883
        *)
 
24884
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24885
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24886
          ;;
 
24887
      esac
 
24888
      ;;
 
24889
 
 
24890
      sysv5* | sco3.2v5* | sco5v6*)
 
24891
        # Note: We can NOT use -z defs as we might desire, because we do not
 
24892
        # link with -lc, and that would cause any symbols used from libc to
 
24893
        # always be unresolved, which means just about no library would
 
24894
        # ever link correctly.  If we're not using GNU ld we use -z text
 
24895
        # though, which does catch some bad symbols but isn't as heavy-handed
 
24896
        # as -z defs.
 
24897
        no_undefined_flag_CXX='${wl}-z,text'
 
24898
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
24899
        archive_cmds_need_lc_CXX=no
 
24900
        hardcode_shlibpath_var_CXX=no
 
24901
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
24902
        hardcode_libdir_separator_CXX=':'
 
24903
        link_all_deplibs_CXX=yes
 
24904
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
24905
        runpath_var='LD_RUN_PATH'
 
24906
 
 
24907
        case $cc_basename in
 
24908
          CC*)
 
24909
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24910
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24911
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
24912
              '"$old_archive_cmds_CXX"
 
24913
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
24914
              '"$reload_cmds_CXX"
 
24915
            ;;
 
24916
          *)
 
24917
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24918
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24919
            ;;
 
24920
        esac
 
24921
      ;;
 
24922
 
 
24923
      tandem*)
 
24924
        case $cc_basename in
 
24925
          NCC*)
 
24926
            # NonStop-UX NCC 3.20
 
24927
            # FIXME: insert proper C++ library support
 
24928
            ld_shlibs_CXX=no
 
24929
            ;;
 
24930
          *)
 
24931
            # FIXME: insert proper C++ library support
 
24932
            ld_shlibs_CXX=no
 
24933
            ;;
 
24934
        esac
 
24935
        ;;
 
24936
 
 
24937
      vxworks*)
 
24938
        # FIXME: insert proper C++ library support
 
24939
        ld_shlibs_CXX=no
 
24940
        ;;
 
24941
 
 
24942
      *)
 
24943
        # FIXME: insert proper C++ library support
 
24944
        ld_shlibs_CXX=no
 
24945
        ;;
 
24946
    esac
 
24947
 
 
24948
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
24949
$as_echo "$ld_shlibs_CXX" >&6; }
 
24950
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
24951
 
 
24952
    GCC_CXX="$GXX"
 
24953
    LD_CXX="$LD"
 
24954
 
 
24955
    ## CAVEAT EMPTOR:
 
24956
    ## There is no encapsulation within the following macros, do not change
 
24957
    ## the running order or otherwise move them around unless you know exactly
 
24958
    ## what you are doing...
 
24959
    # Dependencies to place before and after the object being linked:
 
24960
predep_objects_CXX=
 
24961
postdep_objects_CXX=
 
24962
predeps_CXX=
 
24963
postdeps_CXX=
 
24964
compiler_lib_search_path_CXX=
 
24965
 
 
24966
cat > conftest.$ac_ext <<_LT_EOF
 
24967
class Foo
 
24968
{
 
24969
public:
 
24970
  Foo (void) { a = 0; }
 
24971
private:
 
24972
  int a;
 
24973
};
 
24974
_LT_EOF
 
24975
 
 
24976
 
 
24977
_lt_libdeps_save_CFLAGS=$CFLAGS
 
24978
case "$CC $CFLAGS " in #(
 
24979
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
24980
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
24981
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
24982
esac
 
24983
 
 
24984
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
24985
  (eval $ac_compile) 2>&5
 
24986
  ac_status=$?
 
24987
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
24988
  test $ac_status = 0; }; then
 
24989
  # Parse the compiler output and extract the necessary
 
24990
  # objects, libraries and library flags.
 
24991
 
 
24992
  # Sentinel used to keep track of whether or not we are before
 
24993
  # the conftest object file.
 
24994
  pre_test_object_deps_done=no
 
24995
 
 
24996
  for p in `eval "$output_verbose_link_cmd"`; do
 
24997
    case ${prev}${p} in
 
24998
 
 
24999
    -L* | -R* | -l*)
 
25000
       # Some compilers place space between "-{L,R}" and the path.
 
25001
       # Remove the space.
 
25002
       if test $p = "-L" ||
 
25003
          test $p = "-R"; then
 
25004
         prev=$p
 
25005
         continue
 
25006
       fi
 
25007
 
 
25008
       # Expand the sysroot to ease extracting the directories later.
 
25009
       if test -z "$prev"; then
 
25010
         case $p in
 
25011
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
25012
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
25013
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
25014
         esac
 
25015
       fi
 
25016
       case $p in
 
25017
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
25018
       esac
 
25019
       if test "$pre_test_object_deps_done" = no; then
 
25020
         case ${prev} in
 
25021
         -L | -R)
 
25022
           # Internal compiler library paths should come after those
 
25023
           # provided the user.  The postdeps already come after the
 
25024
           # user supplied libs so there is no need to process them.
 
25025
           if test -z "$compiler_lib_search_path_CXX"; then
 
25026
             compiler_lib_search_path_CXX="${prev}${p}"
 
25027
           else
 
25028
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
25029
           fi
 
25030
           ;;
 
25031
         # The "-l" case would never come before the object being
 
25032
         # linked, so don't bother handling this case.
 
25033
         esac
 
25034
       else
 
25035
         if test -z "$postdeps_CXX"; then
 
25036
           postdeps_CXX="${prev}${p}"
 
25037
         else
 
25038
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
25039
         fi
 
25040
       fi
 
25041
       prev=
 
25042
       ;;
 
25043
 
 
25044
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
25045
    *.$objext)
 
25046
       # This assumes that the test object file only shows up
 
25047
       # once in the compiler output.
 
25048
       if test "$p" = "conftest.$objext"; then
 
25049
         pre_test_object_deps_done=yes
 
25050
         continue
 
25051
       fi
 
25052
 
 
25053
       if test "$pre_test_object_deps_done" = no; then
 
25054
         if test -z "$predep_objects_CXX"; then
 
25055
           predep_objects_CXX="$p"
 
25056
         else
 
25057
           predep_objects_CXX="$predep_objects_CXX $p"
 
25058
         fi
 
25059
       else
 
25060
         if test -z "$postdep_objects_CXX"; then
 
25061
           postdep_objects_CXX="$p"
 
25062
         else
 
25063
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
25064
         fi
 
25065
       fi
 
25066
       ;;
 
25067
 
 
25068
    *) ;; # Ignore the rest.
 
25069
 
 
25070
    esac
 
25071
  done
 
25072
 
 
25073
  # Clean up.
 
25074
  rm -f a.out a.exe
 
25075
else
 
25076
  echo "libtool.m4: error: problem compiling CXX test program"
 
25077
fi
 
25078
 
 
25079
$RM -f confest.$objext
 
25080
CFLAGS=$_lt_libdeps_save_CFLAGS
 
25081
 
 
25082
# PORTME: override above test on systems where it is broken
 
25083
case $host_os in
 
25084
interix[3-9]*)
 
25085
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
25086
  # hack all around it, let's just trust "g++" to DTRT.
 
25087
  predep_objects_CXX=
 
25088
  postdep_objects_CXX=
 
25089
  postdeps_CXX=
 
25090
  ;;
 
25091
 
 
25092
linux*)
 
25093
  case `$CC -V 2>&1 | sed 5q` in
 
25094
  *Sun\ C*)
 
25095
    # Sun C++ 5.9
 
25096
 
 
25097
    # The more standards-conforming stlport4 library is
 
25098
    # incompatible with the Cstd library. Avoid specifying
 
25099
    # it if it's in CXXFLAGS. Ignore libCrun as
 
25100
    # -library=stlport4 depends on it.
 
25101
    case " $CXX $CXXFLAGS " in
 
25102
    *" -library=stlport4 "*)
 
25103
      solaris_use_stlport4=yes
 
25104
      ;;
 
25105
    esac
 
25106
 
 
25107
    if test "$solaris_use_stlport4" != yes; then
 
25108
      postdeps_CXX='-library=Cstd -library=Crun'
 
25109
    fi
 
25110
    ;;
 
25111
  esac
 
25112
  ;;
 
25113
 
 
25114
solaris*)
 
25115
  case $cc_basename in
 
25116
  CC* | sunCC*)
 
25117
    # The more standards-conforming stlport4 library is
 
25118
    # incompatible with the Cstd library. Avoid specifying
 
25119
    # it if it's in CXXFLAGS. Ignore libCrun as
 
25120
    # -library=stlport4 depends on it.
 
25121
    case " $CXX $CXXFLAGS " in
 
25122
    *" -library=stlport4 "*)
 
25123
      solaris_use_stlport4=yes
 
25124
      ;;
 
25125
    esac
 
25126
 
 
25127
    # Adding this requires a known-good setup of shared libraries for
 
25128
    # Sun compiler versions before 5.6, else PIC objects from an old
 
25129
    # archive will be linked into the output, leading to subtle bugs.
 
25130
    if test "$solaris_use_stlport4" != yes; then
 
25131
      postdeps_CXX='-library=Cstd -library=Crun'
 
25132
    fi
 
25133
    ;;
 
25134
  esac
 
25135
  ;;
 
25136
esac
 
25137
 
 
25138
 
 
25139
case " $postdeps_CXX " in
 
25140
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
25141
esac
 
25142
 compiler_lib_search_dirs_CXX=
 
25143
if test -n "${compiler_lib_search_path_CXX}"; then
 
25144
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
25145
fi
 
25146
 
 
25147
 
 
25148
 
 
25149
 
 
25150
 
 
25151
 
 
25152
 
 
25153
 
 
25154
 
 
25155
 
 
25156
 
 
25157
 
 
25158
 
 
25159
 
 
25160
 
 
25161
 
 
25162
 
 
25163
 
 
25164
 
 
25165
 
 
25166
 
 
25167
 
 
25168
 
 
25169
 
 
25170
 
 
25171
 
 
25172
 
 
25173
 
 
25174
 
 
25175
 
 
25176
 
 
25177
    lt_prog_compiler_wl_CXX=
 
25178
lt_prog_compiler_pic_CXX=
 
25179
lt_prog_compiler_static_CXX=
 
25180
 
 
25181
 
 
25182
  # C++ specific cases for pic, static, wl, etc.
 
25183
  if test "$GXX" = yes; then
 
25184
    lt_prog_compiler_wl_CXX='-Wl,'
 
25185
    lt_prog_compiler_static_CXX='-static'
 
25186
 
 
25187
    case $host_os in
 
25188
    aix*)
 
25189
      # All AIX code is PIC.
 
25190
      if test "$host_cpu" = ia64; then
 
25191
        # AIX 5 now supports IA64 processor
 
25192
        lt_prog_compiler_static_CXX='-Bstatic'
 
25193
      fi
 
25194
      ;;
 
25195
 
 
25196
    amigaos*)
 
25197
      case $host_cpu in
 
25198
      powerpc)
 
25199
            # see comment about AmigaOS4 .so support
 
25200
            lt_prog_compiler_pic_CXX='-fPIC'
 
25201
        ;;
 
25202
      m68k)
 
25203
            # FIXME: we need at least 68020 code to build shared libraries, but
 
25204
            # adding the `-m68020' flag to GCC prevents building anything better,
 
25205
            # like `-m68040'.
 
25206
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
25207
        ;;
 
25208
      esac
 
25209
      ;;
 
25210
 
 
25211
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
25212
      # PIC is the default for these OSes.
 
25213
      ;;
 
25214
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
25215
      # This hack is so that the source file can tell whether it is being
 
25216
      # built for inclusion in a dll (and should export symbols for example).
 
25217
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
25218
      # (--disable-auto-import) libraries
 
25219
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
25220
      ;;
 
25221
    darwin* | rhapsody*)
 
25222
      # PIC is the default on this platform
 
25223
      # Common symbols not allowed in MH_DYLIB files
 
25224
      lt_prog_compiler_pic_CXX='-fno-common'
 
25225
      ;;
 
25226
    *djgpp*)
 
25227
      # DJGPP does not support shared libraries at all
 
25228
      lt_prog_compiler_pic_CXX=
 
25229
      ;;
 
25230
    haiku*)
 
25231
      # PIC is the default for Haiku.
 
25232
      # The "-static" flag exists, but is broken.
 
25233
      lt_prog_compiler_static_CXX=
 
25234
      ;;
 
25235
    interix[3-9]*)
 
25236
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
25237
      # Instead, we relocate shared libraries at runtime.
 
25238
      ;;
 
25239
    sysv4*MP*)
 
25240
      if test -d /usr/nec; then
 
25241
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
25242
      fi
 
25243
      ;;
 
25244
    hpux*)
 
25245
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
25246
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
25247
      # sets the default TLS model and affects inlining.
 
25248
      case $host_cpu in
 
25249
      hppa*64*)
 
25250
        ;;
 
25251
      *)
 
25252
        lt_prog_compiler_pic_CXX='-fPIC'
 
25253
        ;;
 
25254
      esac
 
25255
      ;;
 
25256
    *qnx* | *nto*)
 
25257
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
25258
      # it will coredump.
 
25259
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
25260
      ;;
 
25261
    *)
 
25262
      lt_prog_compiler_pic_CXX='-fPIC'
 
25263
      ;;
 
25264
    esac
 
25265
  else
 
25266
    case $host_os in
 
25267
      aix[4-9]*)
 
25268
        # All AIX code is PIC.
 
25269
        if test "$host_cpu" = ia64; then
 
25270
          # AIX 5 now supports IA64 processor
 
25271
          lt_prog_compiler_static_CXX='-Bstatic'
 
25272
        else
 
25273
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
25274
        fi
 
25275
        ;;
 
25276
      chorus*)
 
25277
        case $cc_basename in
 
25278
        cxch68*)
 
25279
          # Green Hills C++ Compiler
 
25280
          # _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"
 
25281
          ;;
 
25282
        esac
 
25283
        ;;
 
25284
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
25285
        # This hack is so that the source file can tell whether it is being
 
25286
        # built for inclusion in a dll (and should export symbols for example).
 
25287
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
25288
        ;;
 
25289
      dgux*)
 
25290
        case $cc_basename in
 
25291
          ec++*)
 
25292
            lt_prog_compiler_pic_CXX='-KPIC'
 
25293
            ;;
 
25294
          ghcx*)
 
25295
            # Green Hills C++ Compiler
 
25296
            lt_prog_compiler_pic_CXX='-pic'
 
25297
            ;;
 
25298
          *)
 
25299
            ;;
 
25300
        esac
 
25301
        ;;
 
25302
      freebsd* | dragonfly*)
 
25303
        # FreeBSD uses GNU C++
 
25304
        ;;
 
25305
      hpux9* | hpux10* | hpux11*)
 
25306
        case $cc_basename in
 
25307
          CC*)
 
25308
            lt_prog_compiler_wl_CXX='-Wl,'
 
25309
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
25310
            if test "$host_cpu" != ia64; then
 
25311
              lt_prog_compiler_pic_CXX='+Z'
 
25312
            fi
 
25313
            ;;
 
25314
          aCC*)
 
25315
            lt_prog_compiler_wl_CXX='-Wl,'
 
25316
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
25317
            case $host_cpu in
 
25318
            hppa*64*|ia64*)
 
25319
              # +Z the default
 
25320
              ;;
 
25321
            *)
 
25322
              lt_prog_compiler_pic_CXX='+Z'
 
25323
              ;;
 
25324
            esac
 
25325
            ;;
 
25326
          *)
 
25327
            ;;
 
25328
        esac
 
25329
        ;;
 
25330
      interix*)
 
25331
        # This is c89, which is MS Visual C++ (no shared libs)
 
25332
        # Anyone wants to do a port?
 
25333
        ;;
 
25334
      irix5* | irix6* | nonstopux*)
 
25335
        case $cc_basename in
 
25336
          CC*)
 
25337
            lt_prog_compiler_wl_CXX='-Wl,'
 
25338
            lt_prog_compiler_static_CXX='-non_shared'
 
25339
            # CC pic flag -KPIC is the default.
 
25340
            ;;
 
25341
          *)
 
25342
            ;;
 
25343
        esac
 
25344
        ;;
 
25345
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
25346
        case $cc_basename in
 
25347
          KCC*)
 
25348
            # KAI C++ Compiler
 
25349
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
25350
            lt_prog_compiler_pic_CXX='-fPIC'
 
25351
            ;;
 
25352
          ecpc* )
 
25353
            # old Intel C++ for x86_64 which still supported -KPIC.
 
25354
            lt_prog_compiler_wl_CXX='-Wl,'
 
25355
            lt_prog_compiler_pic_CXX='-KPIC'
 
25356
            lt_prog_compiler_static_CXX='-static'
 
25357
            ;;
 
25358
          icpc* )
 
25359
            # Intel C++, used to be incompatible with GCC.
 
25360
            # ICC 10 doesn't accept -KPIC any more.
 
25361
            lt_prog_compiler_wl_CXX='-Wl,'
 
25362
            lt_prog_compiler_pic_CXX='-fPIC'
 
25363
            lt_prog_compiler_static_CXX='-static'
 
25364
            ;;
 
25365
          pgCC* | pgcpp*)
 
25366
            # Portland Group C++ compiler
 
25367
            lt_prog_compiler_wl_CXX='-Wl,'
 
25368
            lt_prog_compiler_pic_CXX='-fpic'
 
25369
            lt_prog_compiler_static_CXX='-Bstatic'
 
25370
            ;;
 
25371
          cxx*)
 
25372
            # Compaq C++
 
25373
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
25374
            # Linux and Compaq Tru64 Unix objects are PIC.
 
25375
            lt_prog_compiler_pic_CXX=
 
25376
            lt_prog_compiler_static_CXX='-non_shared'
 
25377
            ;;
 
25378
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
25379
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
25380
            lt_prog_compiler_wl_CXX='-Wl,'
 
25381
            lt_prog_compiler_pic_CXX='-qpic'
 
25382
            lt_prog_compiler_static_CXX='-qstaticlink'
 
25383
            ;;
 
25384
          *)
 
25385
            case `$CC -V 2>&1 | sed 5q` in
 
25386
            *Sun\ C*)
 
25387
              # Sun C++ 5.9
 
25388
              lt_prog_compiler_pic_CXX='-KPIC'
 
25389
              lt_prog_compiler_static_CXX='-Bstatic'
 
25390
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
25391
              ;;
 
25392
            esac
 
25393
            ;;
 
25394
        esac
 
25395
        ;;
 
25396
      lynxos*)
 
25397
        ;;
 
25398
      m88k*)
 
25399
        ;;
 
25400
      mvs*)
 
25401
        case $cc_basename in
 
25402
          cxx*)
 
25403
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
25404
            ;;
 
25405
          *)
 
25406
            ;;
 
25407
        esac
 
25408
        ;;
 
25409
      netbsd*)
 
25410
        ;;
 
25411
      *qnx* | *nto*)
 
25412
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
25413
        # it will coredump.
 
25414
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
25415
        ;;
 
25416
      osf3* | osf4* | osf5*)
 
25417
        case $cc_basename in
 
25418
          KCC*)
 
25419
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
25420
            ;;
 
25421
          RCC*)
 
25422
            # Rational C++ 2.4.1
 
25423
            lt_prog_compiler_pic_CXX='-pic'
 
25424
            ;;
 
25425
          cxx*)
 
25426
            # Digital/Compaq C++
 
25427
            lt_prog_compiler_wl_CXX='-Wl,'
 
25428
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
25429
            # Linux and Compaq Tru64 Unix objects are PIC.
 
25430
            lt_prog_compiler_pic_CXX=
 
25431
            lt_prog_compiler_static_CXX='-non_shared'
 
25432
            ;;
 
25433
          *)
 
25434
            ;;
 
25435
        esac
 
25436
        ;;
 
25437
      psos*)
 
25438
        ;;
 
25439
      solaris*)
 
25440
        case $cc_basename in
 
25441
          CC* | sunCC*)
 
25442
            # Sun C++ 4.2, 5.x and Centerline C++
 
25443
            lt_prog_compiler_pic_CXX='-KPIC'
 
25444
            lt_prog_compiler_static_CXX='-Bstatic'
 
25445
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
25446
            ;;
 
25447
          gcx*)
 
25448
            # Green Hills C++ Compiler
 
25449
            lt_prog_compiler_pic_CXX='-PIC'
 
25450
            ;;
 
25451
          *)
 
25452
            ;;
 
25453
        esac
 
25454
        ;;
 
25455
      sunos4*)
 
25456
        case $cc_basename in
 
25457
          CC*)
 
25458
            # Sun C++ 4.x
 
25459
            lt_prog_compiler_pic_CXX='-pic'
 
25460
            lt_prog_compiler_static_CXX='-Bstatic'
 
25461
            ;;
 
25462
          lcc*)
 
25463
            # Lucid
 
25464
            lt_prog_compiler_pic_CXX='-pic'
 
25465
            ;;
 
25466
          *)
 
25467
            ;;
 
25468
        esac
 
25469
        ;;
 
25470
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
25471
        case $cc_basename in
 
25472
          CC*)
 
25473
            lt_prog_compiler_wl_CXX='-Wl,'
 
25474
            lt_prog_compiler_pic_CXX='-KPIC'
 
25475
            lt_prog_compiler_static_CXX='-Bstatic'
 
25476
            ;;
 
25477
        esac
 
25478
        ;;
 
25479
      tandem*)
 
25480
        case $cc_basename in
 
25481
          NCC*)
 
25482
            # NonStop-UX NCC 3.20
 
25483
            lt_prog_compiler_pic_CXX='-KPIC'
 
25484
            ;;
 
25485
          *)
 
25486
            ;;
 
25487
        esac
 
25488
        ;;
 
25489
      vxworks*)
 
25490
        ;;
 
25491
      *)
 
25492
        lt_prog_compiler_can_build_shared_CXX=no
 
25493
        ;;
 
25494
    esac
 
25495
  fi
 
25496
 
 
25497
case $host_os in
 
25498
  # For platforms which do not support PIC, -DPIC is meaningless:
 
25499
  *djgpp*)
 
25500
    lt_prog_compiler_pic_CXX=
 
25501
    ;;
 
25502
  *)
 
25503
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
25504
    ;;
 
25505
esac
 
25506
 
 
25507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
25508
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
25509
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
25510
  $as_echo_n "(cached) " >&6
 
25511
else
 
25512
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
25513
fi
 
25514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
25515
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
25516
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
25517
 
 
25518
#
 
25519
# Check to make sure the PIC flag actually works.
 
25520
#
 
25521
if test -n "$lt_prog_compiler_pic_CXX"; then
 
25522
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
25523
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
25524
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
25525
  $as_echo_n "(cached) " >&6
 
25526
else
 
25527
  lt_cv_prog_compiler_pic_works_CXX=no
 
25528
   ac_outfile=conftest.$ac_objext
 
25529
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
25530
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
25531
   # Insert the option either (1) after the last *FLAGS variable, or
 
25532
   # (2) before a word containing "conftest.", or (3) at the end.
 
25533
   # Note that $ac_compile itself does not contain backslashes and begins
 
25534
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
25535
   # The option is referenced via a variable to avoid confusing sed.
 
25536
   lt_compile=`echo "$ac_compile" | $SED \
 
25537
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
25538
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
25539
   -e 's:$: $lt_compiler_flag:'`
 
25540
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
25541
   (eval "$lt_compile" 2>conftest.err)
 
25542
   ac_status=$?
 
25543
   cat conftest.err >&5
 
25544
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25545
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
25546
     # The compiler can only warn and ignore the option if not recognized
 
25547
     # So say no if there are warnings other than the usual output.
 
25548
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
25549
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
25550
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
25551
       lt_cv_prog_compiler_pic_works_CXX=yes
 
25552
     fi
 
25553
   fi
 
25554
   $RM conftest*
 
25555
 
 
25556
fi
 
25557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
25558
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
25559
 
 
25560
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
25561
    case $lt_prog_compiler_pic_CXX in
 
25562
     "" | " "*) ;;
 
25563
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
25564
     esac
 
25565
else
 
25566
    lt_prog_compiler_pic_CXX=
 
25567
     lt_prog_compiler_can_build_shared_CXX=no
 
25568
fi
 
25569
 
 
25570
fi
 
25571
 
 
25572
 
 
25573
 
 
25574
 
 
25575
 
 
25576
#
 
25577
# Check to make sure the static flag actually works.
 
25578
#
 
25579
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
25580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
25581
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
25582
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
25583
  $as_echo_n "(cached) " >&6
 
25584
else
 
25585
  lt_cv_prog_compiler_static_works_CXX=no
 
25586
   save_LDFLAGS="$LDFLAGS"
 
25587
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
25588
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
25589
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
25590
     # The linker can only warn and ignore the option if not recognized
 
25591
     # So say no if there are warnings
 
25592
     if test -s conftest.err; then
 
25593
       # Append any errors to the config.log.
 
25594
       cat conftest.err 1>&5
 
25595
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
25596
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
25597
       if diff conftest.exp conftest.er2 >/dev/null; then
 
25598
         lt_cv_prog_compiler_static_works_CXX=yes
 
25599
       fi
 
25600
     else
 
25601
       lt_cv_prog_compiler_static_works_CXX=yes
 
25602
     fi
 
25603
   fi
 
25604
   $RM -r conftest*
 
25605
   LDFLAGS="$save_LDFLAGS"
 
25606
 
 
25607
fi
 
25608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
25609
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
25610
 
 
25611
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
25612
    :
 
25613
else
 
25614
    lt_prog_compiler_static_CXX=
 
25615
fi
 
25616
 
 
25617
 
 
25618
 
 
25619
 
 
25620
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
25621
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
25622
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
25623
  $as_echo_n "(cached) " >&6
 
25624
else
 
25625
  lt_cv_prog_compiler_c_o_CXX=no
 
25626
   $RM -r conftest 2>/dev/null
 
25627
   mkdir conftest
 
25628
   cd conftest
 
25629
   mkdir out
 
25630
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
25631
 
 
25632
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
25633
   # Insert the option either (1) after the last *FLAGS variable, or
 
25634
   # (2) before a word containing "conftest.", or (3) at the end.
 
25635
   # Note that $ac_compile itself does not contain backslashes and begins
 
25636
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
25637
   lt_compile=`echo "$ac_compile" | $SED \
 
25638
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
25639
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
25640
   -e 's:$: $lt_compiler_flag:'`
 
25641
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
25642
   (eval "$lt_compile" 2>out/conftest.err)
 
25643
   ac_status=$?
 
25644
   cat out/conftest.err >&5
 
25645
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25646
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
25647
   then
 
25648
     # The compiler can only warn and ignore the option if not recognized
 
25649
     # So say no if there are warnings
 
25650
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
25651
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
25652
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
25653
       lt_cv_prog_compiler_c_o_CXX=yes
 
25654
     fi
 
25655
   fi
 
25656
   chmod u+w . 2>&5
 
25657
   $RM conftest*
 
25658
   # SGI C++ compiler will create directory out/ii_files/ for
 
25659
   # template instantiation
 
25660
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
25661
   $RM out/* && rmdir out
 
25662
   cd ..
 
25663
   $RM -r conftest
 
25664
   $RM conftest*
 
25665
 
 
25666
fi
 
25667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
25668
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
25669
 
 
25670
 
 
25671
 
 
25672
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
25673
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
25674
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
25675
  $as_echo_n "(cached) " >&6
 
25676
else
 
25677
  lt_cv_prog_compiler_c_o_CXX=no
 
25678
   $RM -r conftest 2>/dev/null
 
25679
   mkdir conftest
 
25680
   cd conftest
 
25681
   mkdir out
 
25682
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
25683
 
 
25684
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
25685
   # Insert the option either (1) after the last *FLAGS variable, or
 
25686
   # (2) before a word containing "conftest.", or (3) at the end.
 
25687
   # Note that $ac_compile itself does not contain backslashes and begins
 
25688
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
25689
   lt_compile=`echo "$ac_compile" | $SED \
 
25690
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
25691
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
25692
   -e 's:$: $lt_compiler_flag:'`
 
25693
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
25694
   (eval "$lt_compile" 2>out/conftest.err)
 
25695
   ac_status=$?
 
25696
   cat out/conftest.err >&5
 
25697
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25698
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
25699
   then
 
25700
     # The compiler can only warn and ignore the option if not recognized
 
25701
     # So say no if there are warnings
 
25702
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
25703
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
25704
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
25705
       lt_cv_prog_compiler_c_o_CXX=yes
 
25706
     fi
 
25707
   fi
 
25708
   chmod u+w . 2>&5
 
25709
   $RM conftest*
 
25710
   # SGI C++ compiler will create directory out/ii_files/ for
 
25711
   # template instantiation
 
25712
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
25713
   $RM out/* && rmdir out
 
25714
   cd ..
 
25715
   $RM -r conftest
 
25716
   $RM conftest*
 
25717
 
 
25718
fi
 
25719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
25720
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
25721
 
 
25722
 
 
25723
 
 
25724
 
 
25725
hard_links="nottested"
 
25726
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
25727
  # do not overwrite the value of need_locks provided by the user
 
25728
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
25729
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
25730
  hard_links=yes
 
25731
  $RM conftest*
 
25732
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
25733
  touch conftest.a
 
25734
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
25735
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
25736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
25737
$as_echo "$hard_links" >&6; }
 
25738
  if test "$hard_links" = no; then
 
25739
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
25740
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
25741
    need_locks=warn
 
25742
  fi
 
25743
else
 
25744
  need_locks=no
 
25745
fi
 
25746
 
 
25747
 
 
25748
 
 
25749
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
25750
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
25751
 
 
25752
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
25753
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
25754
  case $host_os in
 
25755
  aix[4-9]*)
 
25756
    # If we're using GNU nm, then we don't want the "-C" option.
 
25757
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
25758
    # Also, AIX nm treats weak defined symbols like other global defined
 
25759
    # symbols, whereas GNU nm marks them as "W".
 
25760
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
25761
      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'
 
25762
    else
 
25763
      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'
 
25764
    fi
 
25765
    ;;
 
25766
  pw32*)
 
25767
    export_symbols_cmds_CXX="$ltdll_cmds"
 
25768
    ;;
 
25769
  cygwin* | mingw* | cegcc*)
 
25770
    case $cc_basename in
 
25771
    cl*)
 
25772
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
25773
      ;;
 
25774
    *)
 
25775
      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'
 
25776
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
25777
      ;;
 
25778
    esac
 
25779
    ;;
 
25780
  *)
 
25781
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
25782
    ;;
 
25783
  esac
 
25784
 
 
25785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
25786
$as_echo "$ld_shlibs_CXX" >&6; }
 
25787
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
25788
 
 
25789
with_gnu_ld_CXX=$with_gnu_ld
 
25790
 
 
25791
 
 
25792
 
 
25793
 
 
25794
 
 
25795
 
 
25796
#
 
25797
# Do we need to explicitly link libc?
 
25798
#
 
25799
case "x$archive_cmds_need_lc_CXX" in
 
25800
x|xyes)
 
25801
  # Assume -lc should be added
 
25802
  archive_cmds_need_lc_CXX=yes
 
25803
 
 
25804
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
25805
    case $archive_cmds_CXX in
 
25806
    *'~'*)
 
25807
      # FIXME: we may have to deal with multi-command sequences.
 
25808
      ;;
 
25809
    '$CC '*)
 
25810
      # Test whether the compiler implicitly links with -lc since on some
 
25811
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
25812
      # to ld, don't add -lc before -lgcc.
 
25813
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
25814
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
25815
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
25816
  $as_echo_n "(cached) " >&6
 
25817
else
 
25818
  $RM conftest*
 
25819
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
25820
 
 
25821
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
25822
  (eval $ac_compile) 2>&5
 
25823
  ac_status=$?
 
25824
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
25825
  test $ac_status = 0; } 2>conftest.err; then
 
25826
          soname=conftest
 
25827
          lib=conftest
 
25828
          libobjs=conftest.$ac_objext
 
25829
          deplibs=
 
25830
          wl=$lt_prog_compiler_wl_CXX
 
25831
          pic_flag=$lt_prog_compiler_pic_CXX
 
25832
          compiler_flags=-v
 
25833
          linker_flags=-v
 
25834
          verstring=
 
25835
          output_objdir=.
 
25836
          libname=conftest
 
25837
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
25838
          allow_undefined_flag_CXX=
 
25839
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
25840
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
25841
  ac_status=$?
 
25842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
25843
  test $ac_status = 0; }
 
25844
          then
 
25845
            lt_cv_archive_cmds_need_lc_CXX=no
 
25846
          else
 
25847
            lt_cv_archive_cmds_need_lc_CXX=yes
 
25848
          fi
 
25849
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
25850
        else
 
25851
          cat conftest.err 1>&5
 
25852
        fi
 
25853
        $RM conftest*
 
25854
 
 
25855
fi
 
25856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
25857
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
25858
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
25859
      ;;
 
25860
    esac
 
25861
  fi
 
25862
  ;;
 
25863
esac
 
25864
 
 
25865
 
 
25866
 
 
25867
 
 
25868
 
 
25869
 
 
25870
 
 
25871
 
 
25872
 
 
25873
 
 
25874
 
 
25875
 
 
25876
 
 
25877
 
 
25878
 
 
25879
 
 
25880
 
 
25881
 
 
25882
 
 
25883
 
 
25884
 
 
25885
 
 
25886
 
 
25887
 
 
25888
 
 
25889
 
 
25890
 
 
25891
 
 
25892
 
 
25893
 
 
25894
 
 
25895
 
 
25896
 
 
25897
 
 
25898
 
 
25899
 
 
25900
 
 
25901
 
 
25902
 
 
25903
 
 
25904
 
 
25905
 
 
25906
 
 
25907
 
 
25908
 
 
25909
 
 
25910
 
 
25911
 
 
25912
 
 
25913
 
 
25914
 
 
25915
 
 
25916
 
 
25917
 
 
25918
 
 
25919
 
 
25920
 
 
25921
 
 
25922
 
 
25923
 
 
25924
 
 
25925
 
 
25926
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
25927
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
25928
 
 
25929
library_names_spec=
 
25930
libname_spec='lib$name'
 
25931
soname_spec=
 
25932
shrext_cmds=".so"
 
25933
postinstall_cmds=
 
25934
postuninstall_cmds=
 
25935
finish_cmds=
 
25936
finish_eval=
 
25937
shlibpath_var=
 
25938
shlibpath_overrides_runpath=unknown
 
25939
version_type=none
 
25940
dynamic_linker="$host_os ld.so"
 
25941
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
25942
need_lib_prefix=unknown
 
25943
hardcode_into_libs=no
 
25944
 
 
25945
# when you set need_version to no, make sure it does not cause -set_version
 
25946
# flags to be left without arguments
 
25947
need_version=unknown
 
25948
 
 
25949
case $host_os in
 
25950
aix3*)
 
25951
  version_type=linux # correct to gnu/linux during the next big refactor
 
25952
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
25953
  shlibpath_var=LIBPATH
 
25954
 
 
25955
  # AIX 3 has no versioning support, so we append a major version to the name.
 
25956
  soname_spec='${libname}${release}${shared_ext}$major'
 
25957
  ;;
 
25958
 
 
25959
aix[4-9]*)
 
25960
  version_type=linux # correct to gnu/linux during the next big refactor
 
25961
  need_lib_prefix=no
 
25962
  need_version=no
 
25963
  hardcode_into_libs=yes
 
25964
  if test "$host_cpu" = ia64; then
 
25965
    # AIX 5 supports IA64
 
25966
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
25967
    shlibpath_var=LD_LIBRARY_PATH
 
25968
  else
 
25969
    # With GCC up to 2.95.x, collect2 would create an import file
 
25970
    # for dependence libraries.  The import file would start with
 
25971
    # the line `#! .'.  This would cause the generated library to
 
25972
    # depend on `.', always an invalid library.  This was fixed in
 
25973
    # development snapshots of GCC prior to 3.0.
 
25974
    case $host_os in
 
25975
      aix4 | aix4.[01] | aix4.[01].*)
 
25976
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
25977
           echo ' yes '
 
25978
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
25979
        :
 
25980
      else
 
25981
        can_build_shared=no
 
25982
      fi
 
25983
      ;;
 
25984
    esac
 
25985
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
25986
    # soname into executable. Probably we can add versioning support to
 
25987
    # collect2, so additional links can be useful in future.
 
25988
    if test "$aix_use_runtimelinking" = yes; then
 
25989
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
25990
      # instead of lib<name>.a to let people know that these are not
 
25991
      # typical AIX shared libraries.
 
25992
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25993
    else
 
25994
      # We preserve .a as extension for shared libraries through AIX4.2
 
25995
      # and later when we are not doing run time linking.
 
25996
      library_names_spec='${libname}${release}.a $libname.a'
 
25997
      soname_spec='${libname}${release}${shared_ext}$major'
 
25998
    fi
 
25999
    shlibpath_var=LIBPATH
 
26000
  fi
 
26001
  ;;
 
26002
 
 
26003
amigaos*)
 
26004
  case $host_cpu in
 
26005
  powerpc)
 
26006
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
26007
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
26008
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26009
    ;;
 
26010
  m68k)
 
26011
    library_names_spec='$libname.ixlibrary $libname.a'
 
26012
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
26013
    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'
 
26014
    ;;
 
26015
  esac
 
26016
  ;;
 
26017
 
 
26018
beos*)
 
26019
  library_names_spec='${libname}${shared_ext}'
 
26020
  dynamic_linker="$host_os ld.so"
 
26021
  shlibpath_var=LIBRARY_PATH
 
26022
  ;;
 
26023
 
 
26024
bsdi[45]*)
 
26025
  version_type=linux # correct to gnu/linux during the next big refactor
 
26026
  need_version=no
 
26027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26028
  soname_spec='${libname}${release}${shared_ext}$major'
 
26029
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
26030
  shlibpath_var=LD_LIBRARY_PATH
 
26031
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
26032
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
26033
  # the default ld.so.conf also contains /usr/contrib/lib and
 
26034
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
26035
  # libtool to hard-code these into programs
 
26036
  ;;
 
26037
 
 
26038
cygwin* | mingw* | pw32* | cegcc*)
 
26039
  version_type=windows
 
26040
  shrext_cmds=".dll"
 
26041
  need_version=no
 
26042
  need_lib_prefix=no
 
26043
 
 
26044
  case $GCC,$cc_basename in
 
26045
  yes,*)
 
26046
    # gcc
 
26047
    library_names_spec='$libname.dll.a'
 
26048
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
26049
    postinstall_cmds='base_file=`basename \${file}`~
 
26050
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
26051
      dldir=$destdir/`dirname \$dlpath`~
 
26052
      test -d \$dldir || mkdir -p \$dldir~
 
26053
      $install_prog $dir/$dlname \$dldir/$dlname~
 
26054
      chmod a+x \$dldir/$dlname~
 
26055
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
26056
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
26057
      fi'
 
26058
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
26059
      dlpath=$dir/\$dldll~
 
26060
       $RM \$dlpath'
 
26061
    shlibpath_overrides_runpath=yes
 
26062
 
 
26063
    case $host_os in
 
26064
    cygwin*)
 
26065
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
26066
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
26067
 
 
26068
      ;;
 
26069
    mingw* | cegcc*)
 
26070
      # MinGW DLLs use traditional 'lib' prefix
 
26071
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
26072
      ;;
 
26073
    pw32*)
 
26074
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
26075
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
26076
      ;;
 
26077
    esac
 
26078
    dynamic_linker='Win32 ld.exe'
 
26079
    ;;
 
26080
 
 
26081
  *,cl*)
 
26082
    # Native MSVC
 
26083
    libname_spec='$name'
 
26084
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
26085
    library_names_spec='${libname}.dll.lib'
 
26086
 
 
26087
    case $build_os in
 
26088
    mingw*)
 
26089
      sys_lib_search_path_spec=
 
26090
      lt_save_ifs=$IFS
 
26091
      IFS=';'
 
26092
      for lt_path in $LIB
 
26093
      do
 
26094
        IFS=$lt_save_ifs
 
26095
        # Let DOS variable expansion print the short 8.3 style file name.
 
26096
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
26097
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
26098
      done
 
26099
      IFS=$lt_save_ifs
 
26100
      # Convert to MSYS style.
 
26101
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
26102
      ;;
 
26103
    cygwin*)
 
26104
      # Convert to unix form, then to dos form, then back to unix form
 
26105
      # but this time dos style (no spaces!) so that the unix form looks
 
26106
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
26107
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
26108
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
26109
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
26110
      ;;
 
26111
    *)
 
26112
      sys_lib_search_path_spec="$LIB"
 
26113
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
26114
        # It is most probably a Windows format PATH.
 
26115
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
26116
      else
 
26117
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
26118
      fi
 
26119
      # FIXME: find the short name or the path components, as spaces are
 
26120
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
26121
      ;;
 
26122
    esac
 
26123
 
 
26124
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
26125
    postinstall_cmds='base_file=`basename \${file}`~
 
26126
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
26127
      dldir=$destdir/`dirname \$dlpath`~
 
26128
      test -d \$dldir || mkdir -p \$dldir~
 
26129
      $install_prog $dir/$dlname \$dldir/$dlname'
 
26130
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
26131
      dlpath=$dir/\$dldll~
 
26132
       $RM \$dlpath'
 
26133
    shlibpath_overrides_runpath=yes
 
26134
    dynamic_linker='Win32 link.exe'
 
26135
    ;;
 
26136
 
 
26137
  *)
 
26138
    # Assume MSVC wrapper
 
26139
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
26140
    dynamic_linker='Win32 ld.exe'
 
26141
    ;;
 
26142
  esac
 
26143
  # FIXME: first we should search . and the directory the executable is in
 
26144
  shlibpath_var=PATH
 
26145
  ;;
 
26146
 
 
26147
darwin* | rhapsody*)
 
26148
  dynamic_linker="$host_os dyld"
 
26149
  version_type=darwin
 
26150
  need_lib_prefix=no
 
26151
  need_version=no
 
26152
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
26153
  soname_spec='${libname}${release}${major}$shared_ext'
 
26154
  shlibpath_overrides_runpath=yes
 
26155
  shlibpath_var=DYLD_LIBRARY_PATH
 
26156
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
26157
 
 
26158
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
26159
  ;;
 
26160
 
 
26161
dgux*)
 
26162
  version_type=linux # correct to gnu/linux during the next big refactor
 
26163
  need_lib_prefix=no
 
26164
  need_version=no
 
26165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
26166
  soname_spec='${libname}${release}${shared_ext}$major'
 
26167
  shlibpath_var=LD_LIBRARY_PATH
 
26168
  ;;
 
26169
 
 
26170
freebsd* | dragonfly*)
 
26171
  # DragonFly does not have aout.  When/if they implement a new
 
26172
  # versioning mechanism, adjust this.
 
26173
  if test -x /usr/bin/objformat; then
 
26174
    objformat=`/usr/bin/objformat`
 
26175
  else
 
26176
    case $host_os in
 
26177
    freebsd[23].*) objformat=aout ;;
 
26178
    *) objformat=elf ;;
 
26179
    esac
 
26180
  fi
 
26181
  version_type=freebsd-$objformat
 
26182
  case $version_type in
 
26183
    freebsd-elf*)
 
26184
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
26185
      need_version=no
 
26186
      need_lib_prefix=no
 
26187
      ;;
 
26188
    freebsd-*)
 
26189
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
26190
      need_version=yes
 
26191
      ;;
 
26192
  esac
 
26193
  shlibpath_var=LD_LIBRARY_PATH
 
26194
  case $host_os in
 
26195
  freebsd2.*)
 
26196
    shlibpath_overrides_runpath=yes
 
26197
    ;;
 
26198
  freebsd3.[01]* | freebsdelf3.[01]*)
 
26199
    shlibpath_overrides_runpath=yes
 
26200
    hardcode_into_libs=yes
 
26201
    ;;
 
26202
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
26203
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
26204
    shlibpath_overrides_runpath=no
 
26205
    hardcode_into_libs=yes
 
26206
    ;;
 
26207
  *) # from 4.6 on, and DragonFly
 
26208
    shlibpath_overrides_runpath=yes
 
26209
    hardcode_into_libs=yes
 
26210
    ;;
 
26211
  esac
 
26212
  ;;
 
26213
 
 
26214
gnu*)
 
26215
  version_type=linux # correct to gnu/linux during the next big refactor
 
26216
  need_lib_prefix=no
 
26217
  need_version=no
 
26218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
26219
  soname_spec='${libname}${release}${shared_ext}$major'
 
26220
  shlibpath_var=LD_LIBRARY_PATH
 
26221
  shlibpath_overrides_runpath=no
 
26222
  hardcode_into_libs=yes
 
26223
  ;;
 
26224
 
 
26225
haiku*)
 
26226
  version_type=linux # correct to gnu/linux during the next big refactor
 
26227
  need_lib_prefix=no
 
26228
  need_version=no
 
26229
  dynamic_linker="$host_os runtime_loader"
 
26230
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
26231
  soname_spec='${libname}${release}${shared_ext}$major'
 
26232
  shlibpath_var=LIBRARY_PATH
 
26233
  shlibpath_overrides_runpath=yes
 
26234
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
26235
  hardcode_into_libs=yes
 
26236
  ;;
 
26237
 
 
26238
hpux9* | hpux10* | hpux11*)
 
26239
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
26240
  # link against other versions.
 
26241
  version_type=sunos
 
26242
  need_lib_prefix=no
 
26243
  need_version=no
 
26244
  case $host_cpu in
 
26245
  ia64*)
 
26246
    shrext_cmds='.so'
 
26247
    hardcode_into_libs=yes
 
26248
    dynamic_linker="$host_os dld.so"
 
26249
    shlibpath_var=LD_LIBRARY_PATH
 
26250
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
26251
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26252
    soname_spec='${libname}${release}${shared_ext}$major'
 
26253
    if test "X$HPUX_IA64_MODE" = X32; then
 
26254
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
26255
    else
 
26256
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
26257
    fi
 
26258
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
26259
    ;;
 
26260
  hppa*64*)
 
26261
    shrext_cmds='.sl'
 
26262
    hardcode_into_libs=yes
 
26263
    dynamic_linker="$host_os dld.sl"
 
26264
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
26265
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
26266
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26267
    soname_spec='${libname}${release}${shared_ext}$major'
 
26268
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
26269
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
26270
    ;;
 
26271
  *)
 
26272
    shrext_cmds='.sl'
 
26273
    dynamic_linker="$host_os dld.sl"
 
26274
    shlibpath_var=SHLIB_PATH
 
26275
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
26276
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26277
    soname_spec='${libname}${release}${shared_ext}$major'
 
26278
    ;;
 
26279
  esac
 
26280
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
26281
  postinstall_cmds='chmod 555 $lib'
 
26282
  # or fails outright, so override atomically:
 
26283
  install_override_mode=555
 
26284
  ;;
 
26285
 
 
26286
interix[3-9]*)
 
26287
  version_type=linux # correct to gnu/linux during the next big refactor
 
26288
  need_lib_prefix=no
 
26289
  need_version=no
 
26290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
26291
  soname_spec='${libname}${release}${shared_ext}$major'
 
26292
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
26293
  shlibpath_var=LD_LIBRARY_PATH
 
26294
  shlibpath_overrides_runpath=no
 
26295
  hardcode_into_libs=yes
 
26296
  ;;
 
26297
 
 
26298
irix5* | irix6* | nonstopux*)
 
26299
  case $host_os in
 
26300
    nonstopux*) version_type=nonstopux ;;
 
26301
    *)
 
26302
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
26303
                version_type=linux # correct to gnu/linux during the next big refactor
 
26304
        else
 
26305
                version_type=irix
 
26306
        fi ;;
 
26307
  esac
 
26308
  need_lib_prefix=no
 
26309
  need_version=no
 
26310
  soname_spec='${libname}${release}${shared_ext}$major'
 
26311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
26312
  case $host_os in
 
26313
  irix5* | nonstopux*)
 
26314
    libsuff= shlibsuff=
 
26315
    ;;
 
26316
  *)
 
26317
    case $LD in # libtool.m4 will add one of these switches to LD
 
26318
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
26319
      libsuff= shlibsuff= libmagic=32-bit;;
 
26320
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
26321
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
26322
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
26323
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
26324
    *) libsuff= shlibsuff= libmagic=never-match;;
 
26325
    esac
 
26326
    ;;
 
26327
  esac
 
26328
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
26329
  shlibpath_overrides_runpath=no
 
26330
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
26331
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
26332
  hardcode_into_libs=yes
 
26333
  ;;
 
26334
 
 
26335
# No shared lib support for Linux oldld, aout, or coff.
 
26336
linux*oldld* | linux*aout* | linux*coff*)
 
26337
  dynamic_linker=no
 
26338
  ;;
 
26339
 
 
26340
# This must be glibc/ELF.
 
26341
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
26342
  version_type=linux # correct to gnu/linux during the next big refactor
 
26343
  need_lib_prefix=no
 
26344
  need_version=no
 
26345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26346
  soname_spec='${libname}${release}${shared_ext}$major'
 
26347
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
26348
  shlibpath_var=LD_LIBRARY_PATH
 
26349
  shlibpath_overrides_runpath=no
 
26350
 
 
26351
  # Some binutils ld are patched to set DT_RUNPATH
 
26352
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
26353
  $as_echo_n "(cached) " >&6
 
26354
else
 
26355
  lt_cv_shlibpath_overrides_runpath=no
 
26356
    save_LDFLAGS=$LDFLAGS
 
26357
    save_libdir=$libdir
 
26358
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
26359
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
26360
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26361
/* end confdefs.h.  */
 
26362
 
 
26363
int
 
26364
main ()
 
26365
{
 
26366
 
 
26367
  ;
 
26368
  return 0;
 
26369
}
 
26370
_ACEOF
 
26371
if ac_fn_cxx_try_link "$LINENO"; then :
 
26372
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
26373
  lt_cv_shlibpath_overrides_runpath=yes
 
26374
fi
 
26375
fi
 
26376
rm -f core conftest.err conftest.$ac_objext \
 
26377
    conftest$ac_exeext conftest.$ac_ext
 
26378
    LDFLAGS=$save_LDFLAGS
 
26379
    libdir=$save_libdir
 
26380
 
 
26381
fi
 
26382
 
 
26383
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
26384
 
 
26385
  # This implies no fast_install, which is unacceptable.
 
26386
  # Some rework will be needed to allow for fast_install
 
26387
  # before this can be enabled.
 
26388
  hardcode_into_libs=yes
 
26389
 
 
26390
  # Append ld.so.conf contents to the search path
 
26391
  if test -f /etc/ld.so.conf; then
 
26392
    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' ' '`
 
26393
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
26394
  fi
 
26395
 
 
26396
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
26397
  # powerpc, because MkLinux only supported shared libraries with the
 
26398
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
26399
  # most powerpc-linux boxes support dynamic linking these days and
 
26400
  # people can always --disable-shared, the test was removed, and we
 
26401
  # assume the GNU/Linux dynamic linker is in use.
 
26402
  dynamic_linker='GNU/Linux ld.so'
 
26403
  ;;
 
26404
 
 
26405
netbsd*)
 
26406
  version_type=sunos
 
26407
  need_lib_prefix=no
 
26408
  need_version=no
 
26409
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
26410
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
26411
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
26412
    dynamic_linker='NetBSD (a.out) ld.so'
 
26413
  else
 
26414
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
26415
    soname_spec='${libname}${release}${shared_ext}$major'
 
26416
    dynamic_linker='NetBSD ld.elf_so'
 
26417
  fi
 
26418
  shlibpath_var=LD_LIBRARY_PATH
 
26419
  shlibpath_overrides_runpath=yes
 
26420
  hardcode_into_libs=yes
 
26421
  ;;
 
26422
 
 
26423
newsos6)
 
26424
  version_type=linux # correct to gnu/linux during the next big refactor
 
26425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26426
  shlibpath_var=LD_LIBRARY_PATH
 
26427
  shlibpath_overrides_runpath=yes
 
26428
  ;;
 
26429
 
 
26430
*nto* | *qnx*)
 
26431
  version_type=qnx
 
26432
  need_lib_prefix=no
 
26433
  need_version=no
 
26434
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26435
  soname_spec='${libname}${release}${shared_ext}$major'
 
26436
  shlibpath_var=LD_LIBRARY_PATH
 
26437
  shlibpath_overrides_runpath=no
 
26438
  hardcode_into_libs=yes
 
26439
  dynamic_linker='ldqnx.so'
 
26440
  ;;
 
26441
 
 
26442
openbsd*)
 
26443
  version_type=sunos
 
26444
  sys_lib_dlsearch_path_spec="/usr/lib"
 
26445
  need_lib_prefix=no
 
26446
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
26447
  case $host_os in
 
26448
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
26449
    *)                          need_version=no  ;;
 
26450
  esac
 
26451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
26452
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
26453
  shlibpath_var=LD_LIBRARY_PATH
 
26454
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
26455
    case $host_os in
 
26456
      openbsd2.[89] | openbsd2.[89].*)
 
26457
        shlibpath_overrides_runpath=no
 
26458
        ;;
 
26459
      *)
 
26460
        shlibpath_overrides_runpath=yes
 
26461
        ;;
 
26462
      esac
 
26463
  else
 
26464
    shlibpath_overrides_runpath=yes
 
26465
  fi
 
26466
  ;;
 
26467
 
 
26468
os2*)
 
26469
  libname_spec='$name'
 
26470
  shrext_cmds=".dll"
 
26471
  need_lib_prefix=no
 
26472
  library_names_spec='$libname${shared_ext} $libname.a'
 
26473
  dynamic_linker='OS/2 ld.exe'
 
26474
  shlibpath_var=LIBPATH
 
26475
  ;;
 
26476
 
 
26477
osf3* | osf4* | osf5*)
 
26478
  version_type=osf
 
26479
  need_lib_prefix=no
 
26480
  need_version=no
 
26481
  soname_spec='${libname}${release}${shared_ext}$major'
 
26482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26483
  shlibpath_var=LD_LIBRARY_PATH
 
26484
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
26485
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
26486
  ;;
 
26487
 
 
26488
rdos*)
 
26489
  dynamic_linker=no
 
26490
  ;;
 
26491
 
 
26492
solaris*)
 
26493
  version_type=linux # correct to gnu/linux during the next big refactor
 
26494
  need_lib_prefix=no
 
26495
  need_version=no
 
26496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26497
  soname_spec='${libname}${release}${shared_ext}$major'
 
26498
  shlibpath_var=LD_LIBRARY_PATH
 
26499
  shlibpath_overrides_runpath=yes
 
26500
  hardcode_into_libs=yes
 
26501
  # ldd complains unless libraries are executable
 
26502
  postinstall_cmds='chmod +x $lib'
 
26503
  ;;
 
26504
 
 
26505
sunos4*)
 
26506
  version_type=sunos
 
26507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
26508
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
26509
  shlibpath_var=LD_LIBRARY_PATH
 
26510
  shlibpath_overrides_runpath=yes
 
26511
  if test "$with_gnu_ld" = yes; then
 
26512
    need_lib_prefix=no
 
26513
  fi
 
26514
  need_version=yes
 
26515
  ;;
 
26516
 
 
26517
sysv4 | sysv4.3*)
 
26518
  version_type=linux # correct to gnu/linux during the next big refactor
 
26519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26520
  soname_spec='${libname}${release}${shared_ext}$major'
 
26521
  shlibpath_var=LD_LIBRARY_PATH
 
26522
  case $host_vendor in
 
26523
    sni)
 
26524
      shlibpath_overrides_runpath=no
 
26525
      need_lib_prefix=no
 
26526
      runpath_var=LD_RUN_PATH
 
26527
      ;;
 
26528
    siemens)
 
26529
      need_lib_prefix=no
 
26530
      ;;
 
26531
    motorola)
 
26532
      need_lib_prefix=no
 
26533
      need_version=no
 
26534
      shlibpath_overrides_runpath=no
 
26535
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
26536
      ;;
 
26537
  esac
 
26538
  ;;
 
26539
 
 
26540
sysv4*MP*)
 
26541
  if test -d /usr/nec ;then
 
26542
    version_type=linux # correct to gnu/linux during the next big refactor
 
26543
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
26544
    soname_spec='$libname${shared_ext}.$major'
 
26545
    shlibpath_var=LD_LIBRARY_PATH
 
26546
  fi
 
26547
  ;;
 
26548
 
 
26549
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
26550
  version_type=freebsd-elf
 
26551
  need_lib_prefix=no
 
26552
  need_version=no
 
26553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
26554
  soname_spec='${libname}${release}${shared_ext}$major'
 
26555
  shlibpath_var=LD_LIBRARY_PATH
 
26556
  shlibpath_overrides_runpath=yes
 
26557
  hardcode_into_libs=yes
 
26558
  if test "$with_gnu_ld" = yes; then
 
26559
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
26560
  else
 
26561
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
26562
    case $host_os in
 
26563
      sco3.2v5*)
 
26564
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
26565
        ;;
 
26566
    esac
 
26567
  fi
 
26568
  sys_lib_dlsearch_path_spec='/usr/lib'
 
26569
  ;;
 
26570
 
 
26571
tpf*)
 
26572
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
26573
  version_type=linux # correct to gnu/linux during the next big refactor
 
26574
  need_lib_prefix=no
 
26575
  need_version=no
 
26576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26577
  shlibpath_var=LD_LIBRARY_PATH
 
26578
  shlibpath_overrides_runpath=no
 
26579
  hardcode_into_libs=yes
 
26580
  ;;
 
26581
 
 
26582
uts4*)
 
26583
  version_type=linux # correct to gnu/linux during the next big refactor
 
26584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
26585
  soname_spec='${libname}${release}${shared_ext}$major'
 
26586
  shlibpath_var=LD_LIBRARY_PATH
 
26587
  ;;
 
26588
 
 
26589
*)
 
26590
  dynamic_linker=no
 
26591
  ;;
 
26592
esac
 
26593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
26594
$as_echo "$dynamic_linker" >&6; }
 
26595
test "$dynamic_linker" = no && can_build_shared=no
 
26596
 
 
26597
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
26598
if test "$GCC" = yes; then
 
26599
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
26600
fi
 
26601
 
 
26602
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
26603
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
26604
fi
 
26605
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
26606
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
26607
fi
 
26608
 
 
26609
 
 
26610
 
 
26611
 
 
26612
 
 
26613
 
 
26614
 
 
26615
 
 
26616
 
 
26617
 
 
26618
 
 
26619
 
 
26620
 
 
26621
 
 
26622
 
 
26623
 
 
26624
 
 
26625
 
 
26626
 
 
26627
 
 
26628
 
 
26629
 
 
26630
 
 
26631
 
 
26632
 
 
26633
 
 
26634
 
 
26635
 
 
26636
 
 
26637
 
 
26638
 
 
26639
 
 
26640
 
 
26641
 
 
26642
 
 
26643
 
 
26644
 
 
26645
 
 
26646
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
26647
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
26648
hardcode_action_CXX=
 
26649
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
26650
   test -n "$runpath_var_CXX" ||
 
26651
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
26652
 
 
26653
  # We can hardcode non-existent directories.
 
26654
  if test "$hardcode_direct_CXX" != no &&
 
26655
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
26656
     # have to relink, otherwise we might link with an installed library
 
26657
     # when we should be linking with a yet-to-be-installed one
 
26658
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
26659
     test "$hardcode_minus_L_CXX" != no; then
 
26660
    # Linking always hardcodes the temporary library directory.
 
26661
    hardcode_action_CXX=relink
 
26662
  else
 
26663
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
26664
    hardcode_action_CXX=immediate
 
26665
  fi
 
26666
else
 
26667
  # We cannot hardcode anything, or else we can only hardcode existing
 
26668
  # directories.
 
26669
  hardcode_action_CXX=unsupported
 
26670
fi
 
26671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
26672
$as_echo "$hardcode_action_CXX" >&6; }
 
26673
 
 
26674
if test "$hardcode_action_CXX" = relink ||
 
26675
   test "$inherit_rpath_CXX" = yes; then
 
26676
  # Fast installation is not supported
 
26677
  enable_fast_install=no
 
26678
elif test "$shlibpath_overrides_runpath" = yes ||
 
26679
     test "$enable_shared" = no; then
 
26680
  # Fast installation is not necessary
 
26681
  enable_fast_install=needless
 
26682
fi
 
26683
 
 
26684
 
 
26685
 
 
26686
 
 
26687
 
 
26688
 
 
26689
 
 
26690
  fi # test -n "$compiler"
 
26691
 
 
26692
  CC=$lt_save_CC
 
26693
  CFLAGS=$lt_save_CFLAGS
 
26694
  LDCXX=$LD
 
26695
  LD=$lt_save_LD
 
26696
  GCC=$lt_save_GCC
 
26697
  with_gnu_ld=$lt_save_with_gnu_ld
 
26698
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
26699
  lt_cv_path_LD=$lt_save_path_LD
 
26700
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
26701
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
26702
fi # test "$_lt_caught_CXX_error" != yes
 
26703
 
 
26704
ac_ext=c
 
26705
ac_cpp='$CPP $CPPFLAGS'
 
26706
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
26707
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
26708
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
26709
 
 
26710
 
 
26711
 
 
26712
 
 
26713
 
 
26714
 
 
26715
 
 
26716
 
 
26717
 
 
26718
 
 
26719
 
 
26720
 
 
26721
 
 
26722
 
 
26723
 
 
26724
        ac_config_commands="$ac_config_commands libtool"
 
26725
 
 
26726
 
 
26727
 
 
26728
 
 
26729
# Only expand once:
 
26730
 
 
26731
 
 
26732
# and now that that's over, put the MPI compilers back
 
26733
# also, the above hack incorrectly sets the base compiler as the linker
 
26734
if test x$with_mpi_wrappers = xyes; then :
 
26735
 
 
26736
 CC="$ga_mpi_unwrap_push_save_CC"
 
26737
CXX="$ga_mpi_unwrap_push_save_CXX"
 
26738
F77="$ga_mpi_unwrap_push_save_F77"
 
26739
 FC="$ga_mpi_unwrap_push_save_FC"
 
26740
 
 
26741
     compiler="$CC"
 
26742
     LTCC="$CC"
 
26743
     lt_save_CC="$CC"
 
26744
     compiler_DEFAULT="$CC"
 
26745
     compiler_CXX="$CXX"
 
26746
     compiler_F77="$F77"
 
26747
fi
 
26748
 
 
26749
###############################################################################
 
26750
# Remaining setup -- some tests, some individual components
 
26751
###############################################################################
 
26752
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
26753
$as_echo "$as_me: " >&6;}
 
26754
{ $as_echo "$as_me:${as_lineno-$LINENO}: Miscellaneous remaining setup" >&5
 
26755
$as_echo "$as_me: Miscellaneous remaining setup" >&6;}
 
26756
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
26757
$as_echo "$as_me: " >&6;}
 
26758
 
 
26759
# Establish some preprocessor symbols.
 
26760
 
 
26761
case $ga_armci_network in #(
 
26762
  BGML) :
 
26763
 
 
26764
 
 
26765
$as_echo "#define NO_SHM 1" >>confdefs.h
 
26766
 
 
26767
 
 
26768
$as_echo "#define USE_MALLOC 1" >>confdefs.h
 
26769
 
 
26770
 
 
26771
$as_echo "#define BGML 1" >>confdefs.h
 
26772
 
 
26773
     ;; #(
 
26774
  CRAY_SHMEM) :
 
26775
 
 
26776
 
 
26777
$as_echo "#define CLUSTER 1" >>confdefs.h
 
26778
 
 
26779
 
 
26780
$as_echo "#define CRAY_XT 1" >>confdefs.h
 
26781
 
 
26782
 
 
26783
$as_echo "#define CRAY_SHMEM 1" >>confdefs.h
 
26784
 
 
26785
     ;; #(
 
26786
  DCMF) :
 
26787
 
 
26788
 
 
26789
$as_echo "#define NO_SHM 1" >>confdefs.h
 
26790
 
 
26791
 
 
26792
$as_echo "#define ARMCIX 1" >>confdefs.h
 
26793
 
 
26794
 
 
26795
$as_echo "#define DCMF 1" >>confdefs.h
 
26796
 
 
26797
     ;; #(
 
26798
  ELAN3) :
 
26799
 
 
26800
 
 
26801
$as_echo "#define PTHREADS 1" >>confdefs.h
 
26802
 
 
26803
 
 
26804
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26805
 
 
26806
 
 
26807
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
26808
 
 
26809
 
 
26810
$as_echo "#define ACC_SMP 1" >>confdefs.h
 
26811
 
 
26812
 
 
26813
$as_echo "#define QUADRICS 1" >>confdefs.h
 
26814
 
 
26815
    if test x$LIBELAN_NATTACH != x; then :
 
26816
 
 
26817
$as_echo "#define MULTI_CTX 1" >>confdefs.h
 
26818
 
 
26819
else
 
26820
 
 
26821
$as_echo "#define ALLOC_MUNMAP 1" >>confdefs.h
 
26822
 
 
26823
fi
 
26824
     ;; #(
 
26825
  ELAN4) :
 
26826
 
 
26827
 
 
26828
$as_echo "#define PTHREADS 1" >>confdefs.h
 
26829
 
 
26830
 
 
26831
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26832
 
 
26833
 
 
26834
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
26835
 
 
26836
 
 
26837
$as_echo "#define ACC_SMP 1" >>confdefs.h
 
26838
 
 
26839
 
 
26840
$as_echo "#define QUADRICS 1" >>confdefs.h
 
26841
 
 
26842
 
 
26843
$as_echo "#define DOELAN4 1" >>confdefs.h
 
26844
 
 
26845
     ;; #(
 
26846
  GEMINI) :
 
26847
 
 
26848
 
 
26849
$as_echo "#define LIBONESIDED 1" >>confdefs.h
 
26850
 
 
26851
 
 
26852
$as_echo "#define CRAY_UGNI 1" >>confdefs.h
 
26853
 
 
26854
 
 
26855
$as_echo "#define GEMINI 1" >>confdefs.h
 
26856
 
 
26857
     ;; #(
 
26858
  GM) :
 
26859
 
 
26860
 
 
26861
$as_echo "#define PTHREADS 1" >>confdefs.h
 
26862
 
 
26863
 
 
26864
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26865
 
 
26866
 
 
26867
$as_echo "#define ALLOW_PIN 1" >>confdefs.h
 
26868
 
 
26869
 
 
26870
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26871
 
 
26872
 
 
26873
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
26874
 
 
26875
 
 
26876
$as_echo "#define GM 1" >>confdefs.h
 
26877
 
 
26878
     ;; #(
 
26879
  LAPI) :
 
26880
 
 
26881
 
 
26882
$as_echo "#define LAPI 1" >>confdefs.h
 
26883
 
 
26884
    if test x$LAPI_RDMA != x; then :
 
26885
 
 
26886
$as_echo "#define ALLOW_PIN 1" >>confdefs.h
 
26887
 
 
26888
 
 
26889
$as_echo "#define LAPI_RDMA 1" >>confdefs.h
 
26890
 
 
26891
fi
 
26892
     ;; #(
 
26893
  MELLANOX) :
 
26894
 
 
26895
 
 
26896
$as_echo "#define PTHREADS 1" >>confdefs.h
 
26897
 
 
26898
 
 
26899
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26900
 
 
26901
 
 
26902
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26903
 
 
26904
 
 
26905
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
26906
 
 
26907
 
 
26908
$as_echo "#define VAPI 1" >>confdefs.h
 
26909
 
 
26910
 
 
26911
$as_echo "#define ALLOW_PIN 1" >>confdefs.h
 
26912
 
 
26913
 
 
26914
$as_echo "#define MELLANOX 1" >>confdefs.h
 
26915
 
 
26916
     ;; #(
 
26917
  MPI_MT) :
 
26918
 
 
26919
 
 
26920
$as_echo "#define PTHREADS 1" >>confdefs.h
 
26921
 
 
26922
 
 
26923
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26924
 
 
26925
 
 
26926
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26927
 
 
26928
 
 
26929
$as_echo "#define MPI_MT 1" >>confdefs.h
 
26930
 
 
26931
     ;; #(
 
26932
  MPI_SPAWN) :
 
26933
 
 
26934
 
 
26935
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26936
 
 
26937
 
 
26938
$as_echo "#define MPI_SPAWN 1" >>confdefs.h
 
26939
 
 
26940
    if test x$ARMCI_SPAWN_CRAY_XT != x; then :
 
26941
 
 
26942
$as_echo "#define SPAWN_CRAY_XT 1" >>confdefs.h
 
26943
 
 
26944
fi
 
26945
     ;; #(
 
26946
  OPENIB) :
 
26947
 
 
26948
 
 
26949
$as_echo "#define PTHREADS 1" >>confdefs.h
 
26950
 
 
26951
 
 
26952
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26953
 
 
26954
 
 
26955
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26956
 
 
26957
 
 
26958
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
26959
 
 
26960
 
 
26961
$as_echo "#define VAPI 1" >>confdefs.h
 
26962
 
 
26963
 
 
26964
$as_echo "#define ALLOW_PIN 1" >>confdefs.h
 
26965
 
 
26966
 
 
26967
$as_echo "#define PEND_BUFS 1" >>confdefs.h
 
26968
 
 
26969
 
 
26970
$as_echo "#define OPENIB 1" >>confdefs.h
 
26971
 
 
26972
     ;; #(
 
26973
  PORTALS) :
 
26974
 
 
26975
 
 
26976
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26977
 
 
26978
 
 
26979
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
26980
 
 
26981
 
 
26982
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
26983
 
 
26984
 
 
26985
$as_echo "#define CRAY_XT 1" >>confdefs.h
 
26986
 
 
26987
 
 
26988
$as_echo "#define PORTALS 1" >>confdefs.h
 
26989
 
 
26990
     ;; #(
 
26991
  SOCKETS) :
 
26992
 
 
26993
 
 
26994
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
26995
 
 
26996
 
 
26997
$as_echo "#define SOCKETS 1" >>confdefs.h
 
26998
 
 
26999
     ;; #(
 
27000
  VIA) :
 
27001
 
 
27002
 
 
27003
$as_echo "#define PTHREADS 1" >>confdefs.h
 
27004
 
 
27005
 
 
27006
$as_echo "#define DATA_SERVER 1" >>confdefs.h
 
27007
 
 
27008
 
 
27009
$as_echo "#define SERVER_THREAD 1" >>confdefs.h
 
27010
 
 
27011
 
 
27012
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
27013
 
 
27014
 
 
27015
$as_echo "#define VIA 1" >>confdefs.h
 
27016
 
 
27017
 
 
27018
 ;; #(
 
27019
  *) :
 
27020
     ;;
 
27021
esac
 
27022
if test x$REPORT_SHMMAX != x; then :
 
27023
 
 
27024
$as_echo "#define REPORT_SHMMAX 1" >>confdefs.h
 
27025
 
 
27026
fi
 
27027
if test x$thread_safety = xyes; then :
 
27028
 
 
27029
$as_echo "#define POSIX_THREADS 1" >>confdefs.h
 
27030
 
 
27031
 
 
27032
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
27033
 
 
27034
fi
 
27035
 
 
27036
 
 
27037
# Set up TCGMSG.
 
27038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remote shell" >&5
 
27039
$as_echo "$as_me: checking for remote shell" >&6;}
 
27040
for ac_prog in rsh remsh ssh
 
27041
do
 
27042
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
27043
set dummy $ac_prog; ac_word=$2
 
27044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
27045
$as_echo_n "checking for $ac_word... " >&6; }
 
27046
if ${ac_cv_path_ga_cv_path_rsh+:} false; then :
 
27047
  $as_echo_n "(cached) " >&6
 
27048
else
 
27049
  case $ga_cv_path_rsh in
 
27050
  [\\/]* | ?:[\\/]*)
 
27051
  ac_cv_path_ga_cv_path_rsh="$ga_cv_path_rsh" # Let the user override the test with a path.
 
27052
  ;;
 
27053
  *)
 
27054
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27055
for as_dir in $PATH
 
27056
do
 
27057
  IFS=$as_save_IFS
 
27058
  test -z "$as_dir" && as_dir=.
 
27059
    for ac_exec_ext in '' $ac_executable_extensions; do
 
27060
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
27061
    ac_cv_path_ga_cv_path_rsh="$as_dir/$ac_word$ac_exec_ext"
 
27062
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
27063
    break 2
 
27064
  fi
 
27065
done
 
27066
  done
 
27067
IFS=$as_save_IFS
 
27068
 
 
27069
  ;;
 
27070
esac
 
27071
fi
 
27072
ga_cv_path_rsh=$ac_cv_path_ga_cv_path_rsh
 
27073
if test -n "$ga_cv_path_rsh"; then
 
27074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_path_rsh" >&5
 
27075
$as_echo "$ga_cv_path_rsh" >&6; }
 
27076
else
 
27077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27078
$as_echo "no" >&6; }
 
27079
fi
 
27080
 
 
27081
 
 
27082
  test -n "$ga_cv_path_rsh" && break
 
27083
done
 
27084
test -n "$ga_cv_path_rsh" || ga_cv_path_rsh="not found"
 
27085
 
 
27086
if test "x$ga_cv_path_rsh" = "xnot found"; then :
 
27087
  as_fn_error $? "Could not find remote shell for use by TCGMSG" "$LINENO" 5
 
27088
fi
 
27089
 
 
27090
cat >>confdefs.h <<_ACEOF
 
27091
#define TCGMSG_RSH "$ga_cv_path_rsh"
 
27092
_ACEOF
 
27093
 
 
27094
 
 
27095
 
 
27096
$as_echo "#define TCGMSG_TIMINGS 1" >>confdefs.h
 
27097
 
 
27098
 
 
27099
 
 
27100
# TODO not sure, but thus far required for 'dist' target at least
 
27101
 if test x != x; then
 
27102
  RANDOM_ACCESS_TRUE=
 
27103
  RANDOM_ACCESS_FALSE='#'
 
27104
else
 
27105
  RANDOM_ACCESS_TRUE='#'
 
27106
  RANDOM_ACCESS_FALSE=
 
27107
fi
 
27108
 # always false
 
27109
 
 
27110
# Whether to use PIC for the inline GCC code.
 
27111
 if test x$enable_shared = xyes; then
 
27112
  ENABLE_SHARED_TRUE=
 
27113
  ENABLE_SHARED_FALSE='#'
 
27114
else
 
27115
  ENABLE_SHARED_TRUE='#'
 
27116
  ENABLE_SHARED_FALSE=
 
27117
fi
 
27118
 
 
27119
 
 
27120
if test "x$ga_cv_target" = xLINUX64; then :
 
27121
  case $host_cpu in #(
 
27122
  x86_64|ppc64|ia64) :
 
27123
 
 
27124
$as_echo "#define NEED_MEM_SYNC 1" >>confdefs.h
 
27125
 ;; #(
 
27126
  *) :
 
27127
     ;;
 
27128
esac
 
27129
fi
 
27130
if test "x$host_cpu" = xPWR4; then :
 
27131
 
 
27132
$as_echo "#define NEED_MEM_SYNC 1" >>confdefs.h
 
27133
 
 
27134
fi
 
27135
 
 
27136
###############################################################################
 
27137
# Test suite setup
 
27138
###############################################################################
 
27139
 
 
27140
if test "x$NPROCS" = x; then :
 
27141
  NPROCS=4
 
27142
fi
 
27143
 
 
27144
 
 
27145
case $ga_msg_comms in #(
 
27146
  TCGMSG) :
 
27147
    TCGEXEC="`pwd`/parallel.x" ;; #(
 
27148
  TCGMSG5) :
 
27149
    TCGEXEC= ;; #(
 
27150
  MPI) :
 
27151
    if test "x$MPIEXEC" = x; then :
 
27152
  for ac_prog in mpirun mpiexec
 
27153
do
 
27154
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
27155
set dummy $ac_prog; ac_word=$2
 
27156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
27157
$as_echo_n "checking for $ac_word... " >&6; }
 
27158
if ${ac_cv_path_MPIEXEC+:} false; then :
 
27159
  $as_echo_n "(cached) " >&6
 
27160
else
 
27161
  case $MPIEXEC in
 
27162
  [\\/]* | ?:[\\/]*)
 
27163
  ac_cv_path_MPIEXEC="$MPIEXEC" # Let the user override the test with a path.
 
27164
  ;;
 
27165
  *)
 
27166
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27167
for as_dir in $PATH
 
27168
do
 
27169
  IFS=$as_save_IFS
 
27170
  test -z "$as_dir" && as_dir=.
 
27171
    for ac_exec_ext in '' $ac_executable_extensions; do
 
27172
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
27173
    ac_cv_path_MPIEXEC="$as_dir/$ac_word$ac_exec_ext"
 
27174
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
27175
    break 2
 
27176
  fi
 
27177
done
 
27178
  done
 
27179
IFS=$as_save_IFS
 
27180
 
 
27181
  ;;
 
27182
esac
 
27183
fi
 
27184
MPIEXEC=$ac_cv_path_MPIEXEC
 
27185
if test -n "$MPIEXEC"; then
 
27186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIEXEC" >&5
 
27187
$as_echo "$MPIEXEC" >&6; }
 
27188
else
 
27189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
27190
$as_echo "no" >&6; }
 
27191
fi
 
27192
 
 
27193
 
 
27194
  test -n "$MPIEXEC" && break
 
27195
done
 
27196
 
 
27197
                     MPIEXEC="$MPIEXEC -n %NP%"
 
27198
fi ;; #(
 
27199
  *) :
 
27200
     ;;
 
27201
esac
 
27202
 
 
27203
 
 
27204
 
 
27205
###############################################################################
 
27206
# The End
 
27207
###############################################################################
 
27208
ac_config_files="$ac_config_files Makefile"
 
27209
 
 
27210
cat >confcache <<\_ACEOF
 
27211
# This file is a shell script that caches the results of configure
 
27212
# tests run on this system so they can be shared between configure
 
27213
# scripts and configure runs, see configure's option --config-cache.
 
27214
# It is not useful on other systems.  If it contains results you don't
 
27215
# want to keep, you may remove or edit it.
 
27216
#
 
27217
# config.status only pays attention to the cache file if you give it
 
27218
# the --recheck option to rerun configure.
 
27219
#
 
27220
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
27221
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
27222
# following values.
 
27223
 
 
27224
_ACEOF
 
27225
 
 
27226
# The following way of writing the cache mishandles newlines in values,
 
27227
# but we know of no workaround that is simple, portable, and efficient.
 
27228
# So, we kill variables containing newlines.
 
27229
# Ultrix sh set writes to stderr and can't be redirected directly,
 
27230
# and sets the high bit in the cache file unless we assign to the vars.
 
27231
(
 
27232
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
27233
    eval ac_val=\$$ac_var
 
27234
    case $ac_val in #(
 
27235
    *${as_nl}*)
 
27236
      case $ac_var in #(
 
27237
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
27238
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
27239
      esac
 
27240
      case $ac_var in #(
 
27241
      _ | IFS | as_nl) ;; #(
 
27242
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
27243
      *) { eval $ac_var=; unset $ac_var;} ;;
 
27244
      esac ;;
 
27245
    esac
 
27246
  done
 
27247
 
 
27248
  (set) 2>&1 |
 
27249
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
27250
    *${as_nl}ac_space=\ *)
 
27251
      # `set' does not quote correctly, so add quotes: double-quote
 
27252
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
27253
      sed -n \
 
27254
        "s/'/'\\\\''/g;
 
27255
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
27256
      ;; #(
 
27257
    *)
 
27258
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
27259
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
27260
      ;;
 
27261
    esac |
 
27262
    sort
 
27263
) |
 
27264
  sed '
 
27265
     /^ac_cv_env_/b end
 
27266
     t clear
 
27267
     :clear
 
27268
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
27269
     t end
 
27270
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
27271
     :end' >>confcache
 
27272
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
27273
  if test -w "$cache_file"; then
 
27274
    if test "x$cache_file" != "x/dev/null"; then
 
27275
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
27276
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
27277
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
27278
        cat confcache >"$cache_file"
 
27279
      else
 
27280
        case $cache_file in #(
 
27281
        */* | ?:*)
 
27282
          mv -f confcache "$cache_file"$$ &&
 
27283
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
27284
        *)
 
27285
          mv -f confcache "$cache_file" ;;
 
27286
        esac
 
27287
      fi
 
27288
    fi
 
27289
  else
 
27290
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
27291
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
27292
  fi
 
27293
fi
 
27294
rm -f confcache
 
27295
 
 
27296
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
27297
# Let make expand exec_prefix.
 
27298
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
27299
 
 
27300
DEFS=-DHAVE_CONFIG_H
 
27301
 
 
27302
ac_libobjs=
 
27303
ac_ltlibobjs=
 
27304
U=
 
27305
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
27306
  # 1. Remove the extension, and $U if already installed.
 
27307
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
27308
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
27309
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
27310
  #    will be set to the directory where LIBOBJS objects are built.
 
27311
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
27312
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
27313
done
 
27314
LIBOBJS=$ac_libobjs
 
27315
 
 
27316
LTLIBOBJS=$ac_ltlibobjs
 
27317
 
 
27318
 
 
27319
if test -z "${BGL_TRUE}" && test -z "${BGL_FALSE}"; then
 
27320
  as_fn_error $? "conditional \"BGL\" was never defined.
 
27321
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27322
fi
 
27323
if test -z "${BGP_TRUE}" && test -z "${BGP_FALSE}"; then
 
27324
  as_fn_error $? "conditional \"BGP\" was never defined.
 
27325
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27326
fi
 
27327
if test -z "${CATAMOUNT_TRUE}" && test -z "${CATAMOUNT_FALSE}"; then
 
27328
  as_fn_error $? "conditional \"CATAMOUNT\" was never defined.
 
27329
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27330
fi
 
27331
if test -z "${CRAY_SV1_TRUE}" && test -z "${CRAY_SV1_FALSE}"; then
 
27332
  as_fn_error $? "conditional \"CRAY_SV1\" was never defined.
 
27333
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27334
fi
 
27335
if test -z "${CRAY_SV2_TRUE}" && test -z "${CRAY_SV2_FALSE}"; then
 
27336
  as_fn_error $? "conditional \"CRAY_SV2\" was never defined.
 
27337
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27338
fi
 
27339
if test -z "${CRAY_T3E_TRUE}" && test -z "${CRAY_T3E_FALSE}"; then
 
27340
  as_fn_error $? "conditional \"CRAY_T3E\" was never defined.
 
27341
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27342
fi
 
27343
if test -z "${CRAY_XT_TRUE}" && test -z "${CRAY_XT_FALSE}"; then
 
27344
  as_fn_error $? "conditional \"CRAY_XT\" was never defined.
 
27345
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27346
fi
 
27347
if test -z "${CRAY_YMP_TRUE}" && test -z "${CRAY_YMP_FALSE}"; then
 
27348
  as_fn_error $? "conditional \"CRAY_YMP\" was never defined.
 
27349
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27350
fi
 
27351
if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
 
27352
  as_fn_error $? "conditional \"CYGNUS\" was never defined.
 
27353
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27354
fi
 
27355
if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
 
27356
  as_fn_error $? "conditional \"CYGWIN\" was never defined.
 
27357
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27358
fi
 
27359
if test -z "${DECOSF_TRUE}" && test -z "${DECOSF_FALSE}"; then
 
27360
  as_fn_error $? "conditional \"DECOSF\" was never defined.
 
27361
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27362
fi
 
27363
if test -z "${FUJITSU_VPP_TRUE}" && test -z "${FUJITSU_VPP_FALSE}"; then
 
27364
  as_fn_error $? "conditional \"FUJITSU_VPP\" was never defined.
 
27365
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27366
fi
 
27367
if test -z "${HITACHI_TRUE}" && test -z "${HITACHI_FALSE}"; then
 
27368
  as_fn_error $? "conditional \"HITACHI\" was never defined.
 
27369
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27370
fi
 
27371
if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
 
27372
  as_fn_error $? "conditional \"HPUX\" was never defined.
 
27373
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27374
fi
 
27375
if test -z "${IBM_TRUE}" && test -z "${IBM_FALSE}"; then
 
27376
  as_fn_error $? "conditional \"IBM\" was never defined.
 
27377
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27378
fi
 
27379
if test -z "${INTERIX_TRUE}" && test -z "${INTERIX_FALSE}"; then
 
27380
  as_fn_error $? "conditional \"INTERIX\" was never defined.
 
27381
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27382
fi
 
27383
if test -z "${LAPI_TRUE}" && test -z "${LAPI_FALSE}"; then
 
27384
  as_fn_error $? "conditional \"LAPI\" was never defined.
 
27385
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27386
fi
 
27387
if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
 
27388
  as_fn_error $? "conditional \"LINUX\" was never defined.
 
27389
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27390
fi
 
27391
if test -z "${MACX_TRUE}" && test -z "${MACX_FALSE}"; then
 
27392
  as_fn_error $? "conditional \"MACX\" was never defined.
 
27393
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27394
fi
 
27395
if test -z "${NEC_TRUE}" && test -z "${NEC_FALSE}"; then
 
27396
  as_fn_error $? "conditional \"NEC\" was never defined.
 
27397
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27398
fi
 
27399
if test -z "${SGI_TRUE}" && test -z "${SGI_FALSE}"; then
 
27400
  as_fn_error $? "conditional \"SGI\" was never defined.
 
27401
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27402
fi
 
27403
if test -z "${SGI_N32_TRUE}" && test -z "${SGI_N32_FALSE}"; then
 
27404
  as_fn_error $? "conditional \"SGI_N32\" was never defined.
 
27405
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27406
fi
 
27407
if test -z "${SGITFP_TRUE}" && test -z "${SGITFP_FALSE}"; then
 
27408
  as_fn_error $? "conditional \"SGITFP\" was never defined.
 
27409
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27410
fi
 
27411
if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
 
27412
  as_fn_error $? "conditional \"SOLARIS\" was never defined.
 
27413
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27414
fi
 
27415
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
 
27416
  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
 
27417
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27418
fi
 
27419
 if test -n "$EXEEXT"; then
 
27420
  am__EXEEXT_TRUE=
 
27421
  am__EXEEXT_FALSE='#'
 
27422
else
 
27423
  am__EXEEXT_TRUE='#'
 
27424
  am__EXEEXT_FALSE=
 
27425
fi
 
27426
 
 
27427
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
27428
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
27429
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27430
fi
 
27431
if test -z "${MSG_COMMS_MPI_TRUE}" && test -z "${MSG_COMMS_MPI_FALSE}"; then
 
27432
  as_fn_error $? "conditional \"MSG_COMMS_MPI\" was never defined.
 
27433
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27434
fi
 
27435
if test -z "${MSG_COMMS_TCGMSG4_TRUE}" && test -z "${MSG_COMMS_TCGMSG4_FALSE}"; then
 
27436
  as_fn_error $? "conditional \"MSG_COMMS_TCGMSG4\" was never defined.
 
27437
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27438
fi
 
27439
if test -z "${MSG_COMMS_TCGMSG5_TRUE}" && test -z "${MSG_COMMS_TCGMSG5_FALSE}"; then
 
27440
  as_fn_error $? "conditional \"MSG_COMMS_TCGMSG5\" was never defined.
 
27441
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27442
fi
 
27443
if test -z "${PORTALS_ENABLE_NEW_MALLOC_TRUE}" && test -z "${PORTALS_ENABLE_NEW_MALLOC_FALSE}"; then
 
27444
  as_fn_error $? "conditional \"PORTALS_ENABLE_NEW_MALLOC\" was never defined.
 
27445
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27446
fi
 
27447
if test -z "${ARMCI_ENABLE_GPC_CALLS_TRUE}" && test -z "${ARMCI_ENABLE_GPC_CALLS_FALSE}"; then
 
27448
  as_fn_error $? "conditional \"ARMCI_ENABLE_GPC_CALLS\" was never defined.
 
27449
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27450
fi
 
27451
if test -z "${ARMCI_GROUP_TRUE}" && test -z "${ARMCI_GROUP_FALSE}"; then
 
27452
  as_fn_error $? "conditional \"ARMCI_GROUP\" was never defined.
 
27453
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27454
fi
 
27455
if test -z "${NB_NONCONT_TRUE}" && test -z "${NB_NONCONT_FALSE}"; then
 
27456
  as_fn_error $? "conditional \"NB_NONCONT\" was never defined.
 
27457
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27458
fi
 
27459
if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
 
27460
  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
 
27461
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27462
fi
 
27463
if test -z "${ENABLE_CHECKPOINT_TRUE}" && test -z "${ENABLE_CHECKPOINT_FALSE}"; then
 
27464
  as_fn_error $? "conditional \"ENABLE_CHECKPOINT\" was never defined.
 
27465
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27466
fi
 
27467
if test -z "${ENABLE_TRACE_TRUE}" && test -z "${ENABLE_TRACE_FALSE}"; then
 
27468
  as_fn_error $? "conditional \"ENABLE_TRACE\" was never defined.
 
27469
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27470
fi
 
27471
if test -z "${THREAD_SAFE_TRUE}" && test -z "${THREAD_SAFE_FALSE}"; then
 
27472
  as_fn_error $? "conditional \"THREAD_SAFE\" was never defined.
 
27473
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27474
fi
 
27475
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
27476
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
27477
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27478
fi
 
27479
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
27480
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
27481
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27482
fi
 
27483
if test -z "${HAVE_ARMCI_GROUP_COMM_TRUE}" && test -z "${HAVE_ARMCI_GROUP_COMM_FALSE}"; then
 
27484
  as_fn_error $? "conditional \"HAVE_ARMCI_GROUP_COMM\" was never defined.
 
27485
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27486
fi
 
27487
if test -z "${HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE}" && test -z "${HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE}"; then
 
27488
  as_fn_error $? "conditional \"HAVE_ARMCI_GROUP_COMM_MEMBER\" was never defined.
 
27489
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27490
fi
 
27491
if test -z "${HAVE_ARMCI_INITIALIZED_TRUE}" && test -z "${HAVE_ARMCI_INITIALIZED_FALSE}"; then
 
27492
  as_fn_error $? "conditional \"HAVE_ARMCI_INITIALIZED\" was never defined.
 
27493
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27494
fi
 
27495
if test -z "${HAVE_ARMCI_STRIDE_INFO_INIT_TRUE}" && test -z "${HAVE_ARMCI_STRIDE_INFO_INIT_FALSE}"; then
 
27496
  as_fn_error $? "conditional \"HAVE_ARMCI_STRIDE_INFO_INIT\" was never defined.
 
27497
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27498
fi
 
27499
if test -z "${HAVE_ARMCI_NOTIFY_TRUE}" && test -z "${HAVE_ARMCI_NOTIFY_FALSE}"; then
 
27500
  as_fn_error $? "conditional \"HAVE_ARMCI_NOTIFY\" was never defined.
 
27501
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27502
fi
 
27503
if test -z "${HAVE_ARMCI_MSG_INIT_TRUE}" && test -z "${HAVE_ARMCI_MSG_INIT_FALSE}"; then
 
27504
  as_fn_error $? "conditional \"HAVE_ARMCI_MSG_INIT\" was never defined.
 
27505
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27506
fi
 
27507
if test -z "${HAVE_ARMCI_MSG_FINALIZE_TRUE}" && test -z "${HAVE_ARMCI_MSG_FINALIZE_FALSE}"; then
 
27508
  as_fn_error $? "conditional \"HAVE_ARMCI_MSG_FINALIZE\" was never defined.
 
27509
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27510
fi
 
27511
if test -z "${HAVE_ARMCI_GROUP_COMM_TRUE}" && test -z "${HAVE_ARMCI_GROUP_COMM_FALSE}"; then
 
27512
  as_fn_error $? "conditional \"HAVE_ARMCI_GROUP_COMM\" was never defined.
 
27513
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27514
fi
 
27515
if test -z "${HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE}" && test -z "${HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE}"; then
 
27516
  as_fn_error $? "conditional \"HAVE_ARMCI_GROUP_COMM_MEMBER\" was never defined.
 
27517
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27518
fi
 
27519
if test -z "${HAVE_ARMCI_INITIALIZED_TRUE}" && test -z "${HAVE_ARMCI_INITIALIZED_FALSE}"; then
 
27520
  as_fn_error $? "conditional \"HAVE_ARMCI_INITIALIZED\" was never defined.
 
27521
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27522
fi
 
27523
if test -z "${HAVE_ARMCI_STRIDE_INFO_INIT_TRUE}" && test -z "${HAVE_ARMCI_STRIDE_INFO_INIT_FALSE}"; then
 
27524
  as_fn_error $? "conditional \"HAVE_ARMCI_STRIDE_INFO_INIT\" was never defined.
 
27525
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27526
fi
 
27527
if test -z "${HAVE_ARMCI_NOTIFY_TRUE}" && test -z "${HAVE_ARMCI_NOTIFY_FALSE}"; then
 
27528
  as_fn_error $? "conditional \"HAVE_ARMCI_NOTIFY\" was never defined.
 
27529
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27530
fi
 
27531
if test -z "${HAVE_ARMCI_MSG_INIT_TRUE}" && test -z "${HAVE_ARMCI_MSG_INIT_FALSE}"; then
 
27532
  as_fn_error $? "conditional \"HAVE_ARMCI_MSG_INIT\" was never defined.
 
27533
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27534
fi
 
27535
if test -z "${HAVE_ARMCI_MSG_FINALIZE_TRUE}" && test -z "${HAVE_ARMCI_MSG_FINALIZE_FALSE}"; then
 
27536
  as_fn_error $? "conditional \"HAVE_ARMCI_MSG_FINALIZE\" was never defined.
 
27537
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27538
fi
 
27539
if test -z "${ARMCI_NETWORK_ARMCI_TRUE}" && test -z "${ARMCI_NETWORK_ARMCI_FALSE}"; then
 
27540
  as_fn_error $? "conditional \"ARMCI_NETWORK_ARMCI\" was never defined.
 
27541
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27542
fi
 
27543
if test -z "${ARMCI_NETWORK_BGML_TRUE}" && test -z "${ARMCI_NETWORK_BGML_FALSE}"; then
 
27544
  as_fn_error $? "conditional \"ARMCI_NETWORK_BGML\" was never defined.
 
27545
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27546
fi
 
27547
if test -z "${ARMCI_NETWORK_CRAY_SHMEM_TRUE}" && test -z "${ARMCI_NETWORK_CRAY_SHMEM_FALSE}"; then
 
27548
  as_fn_error $? "conditional \"ARMCI_NETWORK_CRAY_SHMEM\" was never defined.
 
27549
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27550
fi
 
27551
if test -z "${ARMCI_NETWORK_DCMF_TRUE}" && test -z "${ARMCI_NETWORK_DCMF_FALSE}"; then
 
27552
  as_fn_error $? "conditional \"ARMCI_NETWORK_DCMF\" was never defined.
 
27553
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27554
fi
 
27555
if test -z "${ARMCI_NETWORK_DMAPP_TRUE}" && test -z "${ARMCI_NETWORK_DMAPP_FALSE}"; then
 
27556
  as_fn_error $? "conditional \"ARMCI_NETWORK_DMAPP\" was never defined.
 
27557
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27558
fi
 
27559
if test -z "${ARMCI_NETWORK_LAPI_TRUE}" && test -z "${ARMCI_NETWORK_LAPI_FALSE}"; then
 
27560
  as_fn_error $? "conditional \"ARMCI_NETWORK_LAPI\" was never defined.
 
27561
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27562
fi
 
27563
if test -z "${ARMCI_NETWORK_MPI_TS_TRUE}" && test -z "${ARMCI_NETWORK_MPI_TS_FALSE}"; then
 
27564
  as_fn_error $? "conditional \"ARMCI_NETWORK_MPI_TS\" was never defined.
 
27565
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27566
fi
 
27567
if test -z "${ARMCI_NETWORK_MPI_MT_TRUE}" && test -z "${ARMCI_NETWORK_MPI_MT_FALSE}"; then
 
27568
  as_fn_error $? "conditional \"ARMCI_NETWORK_MPI_MT\" was never defined.
 
27569
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27570
fi
 
27571
if test -z "${ARMCI_NETWORK_MPI_SPAWN_TRUE}" && test -z "${ARMCI_NETWORK_MPI_SPAWN_FALSE}"; then
 
27572
  as_fn_error $? "conditional \"ARMCI_NETWORK_MPI_SPAWN\" was never defined.
 
27573
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27574
fi
 
27575
if test -z "${ARMCI_NETWORK_OFA_TRUE}" && test -z "${ARMCI_NETWORK_OFA_FALSE}"; then
 
27576
  as_fn_error $? "conditional \"ARMCI_NETWORK_OFA\" was never defined.
 
27577
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27578
fi
 
27579
if test -z "${ARMCI_NETWORK_OPENIB_TRUE}" && test -z "${ARMCI_NETWORK_OPENIB_FALSE}"; then
 
27580
  as_fn_error $? "conditional \"ARMCI_NETWORK_OPENIB\" was never defined.
 
27581
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27582
fi
 
27583
if test -z "${ARMCI_NETWORK_GEMINI_TRUE}" && test -z "${ARMCI_NETWORK_GEMINI_FALSE}"; then
 
27584
  as_fn_error $? "conditional \"ARMCI_NETWORK_GEMINI\" was never defined.
 
27585
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27586
fi
 
27587
if test -z "${ARMCI_NETWORK_PORTALS_TRUE}" && test -z "${ARMCI_NETWORK_PORTALS_FALSE}"; then
 
27588
  as_fn_error $? "conditional \"ARMCI_NETWORK_PORTALS\" was never defined.
 
27589
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27590
fi
 
27591
if test -z "${ARMCI_NETWORK_SOCKETS_TRUE}" && test -z "${ARMCI_NETWORK_SOCKETS_FALSE}"; then
 
27592
  as_fn_error $? "conditional \"ARMCI_NETWORK_SOCKETS\" was never defined.
 
27593
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27594
fi
 
27595
if test -z "${DCMF_VER_2_TRUE}" && test -z "${DCMF_VER_2_FALSE}"; then
 
27596
  as_fn_error $? "conditional \"DCMF_VER_2\" was never defined.
 
27597
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27598
fi
 
27599
if test -z "${DCMF_VER_0_2_TRUE}" && test -z "${DCMF_VER_0_2_FALSE}"; then
 
27600
  as_fn_error $? "conditional \"DCMF_VER_0_2\" was never defined.
 
27601
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27602
fi
 
27603
if test -z "${DCMF_VER_0_3_TRUE}" && test -z "${DCMF_VER_0_3_FALSE}"; then
 
27604
  as_fn_error $? "conditional \"DCMF_VER_0_3\" was never defined.
 
27605
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27606
fi
 
27607
if test -z "${ARMCI_SRC_DIR_PORTALS_TRUE}" && test -z "${ARMCI_SRC_DIR_PORTALS_FALSE}"; then
 
27608
  as_fn_error $? "conditional \"ARMCI_SRC_DIR_PORTALS\" was never defined.
 
27609
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27610
fi
 
27611
if test -z "${ARMCI_SRC_DIR_GEMINI_TRUE}" && test -z "${ARMCI_SRC_DIR_GEMINI_FALSE}"; then
 
27612
  as_fn_error $? "conditional \"ARMCI_SRC_DIR_GEMINI\" was never defined.
 
27613
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27614
fi
 
27615
if test -z "${ARMCI_SRC_DIR_COMEX_TRUE}" && test -z "${ARMCI_SRC_DIR_COMEX_FALSE}"; then
 
27616
  as_fn_error $? "conditional \"ARMCI_SRC_DIR_COMEX\" was never defined.
 
27617
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27618
fi
 
27619
if test -z "${ARMCI_SRC_DIR_SRC_TRUE}" && test -z "${ARMCI_SRC_DIR_SRC_FALSE}"; then
 
27620
  as_fn_error $? "conditional \"ARMCI_SRC_DIR_SRC\" was never defined.
 
27621
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27622
fi
 
27623
if test -z "${CRAY_XT_NETWORKS_TRUE}" && test -z "${CRAY_XT_NETWORKS_FALSE}"; then
 
27624
  as_fn_error $? "conditional \"CRAY_XT_NETWORKS\" was never defined.
 
27625
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27626
fi
 
27627
if test -z "${SYSV_TRUE}" && test -z "${SYSV_FALSE}"; then
 
27628
  as_fn_error $? "conditional \"SYSV\" was never defined.
 
27629
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27630
fi
 
27631
if test -z "${HAVE_ARMCI_GROUP_COMM_MEMBER_TRUE}" && test -z "${HAVE_ARMCI_GROUP_COMM_MEMBER_FALSE}"; then
 
27632
  as_fn_error $? "conditional \"HAVE_ARMCI_GROUP_COMM_MEMBER\" was never defined.
 
27633
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27634
fi
 
27635
if test -z "${HAVE_ARMCI_GROUP_COMM_TRUE}" && test -z "${HAVE_ARMCI_GROUP_COMM_FALSE}"; then
 
27636
  as_fn_error $? "conditional \"HAVE_ARMCI_GROUP_COMM\" was never defined.
 
27637
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27638
fi
 
27639
if test -z "${HAVE_ARMCI_INITIALIZED_TRUE}" && test -z "${HAVE_ARMCI_INITIALIZED_FALSE}"; then
 
27640
  as_fn_error $? "conditional \"HAVE_ARMCI_INITIALIZED\" was never defined.
 
27641
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27642
fi
 
27643
if test -z "${HAVE_ARMCI_NOTIFY_TRUE}" && test -z "${HAVE_ARMCI_NOTIFY_FALSE}"; then
 
27644
  as_fn_error $? "conditional \"HAVE_ARMCI_NOTIFY\" was never defined.
 
27645
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27646
fi
 
27647
if test -z "${HAVE_ARMCI_MSG_INIT_TRUE}" && test -z "${HAVE_ARMCI_MSG_INIT_FALSE}"; then
 
27648
  as_fn_error $? "conditional \"HAVE_ARMCI_MSG_INIT\" was never defined.
 
27649
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27650
fi
 
27651
if test -z "${HAVE_ARMCI_MSG_FINALIZE_TRUE}" && test -z "${HAVE_ARMCI_MSG_FINALIZE_FALSE}"; then
 
27652
  as_fn_error $? "conditional \"HAVE_ARMCI_MSG_FINALIZE\" was never defined.
 
27653
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27654
fi
 
27655
if test -z "${HAVE_ARMCI_STRIDE_INFO_INIT_TRUE}" && test -z "${HAVE_ARMCI_STRIDE_INFO_INIT_FALSE}"; then
 
27656
  as_fn_error $? "conditional \"HAVE_ARMCI_STRIDE_INFO_INIT\" was never defined.
 
27657
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27658
fi
 
27659
if test -z "${HAVE_SYS_WEAK_ALIAS_PRAGMA_TRUE}" && test -z "${HAVE_SYS_WEAK_ALIAS_PRAGMA_FALSE}"; then
 
27660
  as_fn_error $? "conditional \"HAVE_SYS_WEAK_ALIAS_PRAGMA\" was never defined.
 
27661
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27662
fi
 
27663
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
27664
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
27665
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27666
fi
 
27667
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
 
27668
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
 
27669
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27670
fi
 
27671
if test -z "${HAVE_BLAS_TRUE}" && test -z "${HAVE_BLAS_FALSE}"; then
 
27672
  as_fn_error $? "conditional \"HAVE_BLAS\" was never defined.
 
27673
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27674
fi
 
27675
if test -z "${HAVE_LAPACK_TRUE}" && test -z "${HAVE_LAPACK_FALSE}"; then
 
27676
  as_fn_error $? "conditional \"HAVE_LAPACK\" was never defined.
 
27677
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27678
fi
 
27679
if test -z "${RANDOM_ACCESS_TRUE}" && test -z "${RANDOM_ACCESS_FALSE}"; then
 
27680
  as_fn_error $? "conditional \"RANDOM_ACCESS\" was never defined.
 
27681
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27682
fi
 
27683
if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
 
27684
  as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
 
27685
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
27686
fi
 
27687
 
 
27688
: "${CONFIG_STATUS=./config.status}"
 
27689
ac_write_fail=0
 
27690
ac_clean_files_save=$ac_clean_files
 
27691
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
27692
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
27693
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
27694
as_write_fail=0
 
27695
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
27696
#! $SHELL
 
27697
# Generated by $as_me.
 
27698
# Run this file to recreate the current configuration.
 
27699
# Compiler output produced by configure, useful for debugging
 
27700
# configure, is in config.log if it exists.
 
27701
 
 
27702
debug=false
 
27703
ac_cs_recheck=false
 
27704
ac_cs_silent=false
 
27705
 
 
27706
SHELL=\${CONFIG_SHELL-$SHELL}
 
27707
export SHELL
 
27708
_ASEOF
 
27709
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
27710
## -------------------- ##
 
27711
## M4sh Initialization. ##
 
27712
## -------------------- ##
 
27713
 
 
27714
# Be more Bourne compatible
 
27715
DUALCASE=1; export DUALCASE # for MKS sh
 
27716
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
27717
  emulate sh
 
27718
  NULLCMD=:
 
27719
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
27720
  # is contrary to our usage.  Disable this feature.
 
27721
  alias -g '${1+"$@"}'='"$@"'
 
27722
  setopt NO_GLOB_SUBST
 
27723
else
 
27724
  case `(set -o) 2>/dev/null` in #(
 
27725
  *posix*) :
 
27726
    set -o posix ;; #(
 
27727
  *) :
 
27728
     ;;
 
27729
esac
 
27730
fi
 
27731
 
 
27732
 
 
27733
as_nl='
 
27734
'
 
27735
export as_nl
 
27736
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
27737
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
27738
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
27739
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
27740
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
27741
# but without wasting forks for bash or zsh.
 
27742
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
27743
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
27744
  as_echo='print -r --'
 
27745
  as_echo_n='print -rn --'
 
27746
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
27747
  as_echo='printf %s\n'
 
27748
  as_echo_n='printf %s'
 
27749
else
 
27750
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
27751
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
27752
    as_echo_n='/usr/ucb/echo -n'
 
27753
  else
 
27754
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
27755
    as_echo_n_body='eval
 
27756
      arg=$1;
 
27757
      case $arg in #(
 
27758
      *"$as_nl"*)
 
27759
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
27760
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
27761
      esac;
 
27762
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
27763
    '
 
27764
    export as_echo_n_body
 
27765
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
27766
  fi
 
27767
  export as_echo_body
 
27768
  as_echo='sh -c $as_echo_body as_echo'
 
27769
fi
 
27770
 
 
27771
# The user is always right.
 
27772
if test "${PATH_SEPARATOR+set}" != set; then
 
27773
  PATH_SEPARATOR=:
 
27774
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
27775
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
27776
      PATH_SEPARATOR=';'
 
27777
  }
 
27778
fi
 
27779
 
 
27780
 
 
27781
# IFS
 
27782
# We need space, tab and new line, in precisely that order.  Quoting is
 
27783
# there to prevent editors from complaining about space-tab.
 
27784
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
27785
# splitting by setting IFS to empty value.)
 
27786
IFS=" ""        $as_nl"
 
27787
 
 
27788
# Find who we are.  Look in the path if we contain no directory separator.
 
27789
as_myself=
 
27790
case $0 in #((
 
27791
  *[\\/]* ) as_myself=$0 ;;
 
27792
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27793
for as_dir in $PATH
 
27794
do
 
27795
  IFS=$as_save_IFS
 
27796
  test -z "$as_dir" && as_dir=.
 
27797
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
27798
  done
 
27799
IFS=$as_save_IFS
 
27800
 
 
27801
     ;;
 
27802
esac
 
27803
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
27804
# in which case we are not to be found in the path.
 
27805
if test "x$as_myself" = x; then
 
27806
  as_myself=$0
 
27807
fi
 
27808
if test ! -f "$as_myself"; then
 
27809
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
27810
  exit 1
 
27811
fi
 
27812
 
 
27813
# Unset variables that we do not need and which cause bugs (e.g. in
 
27814
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
27815
# suppresses any "Segmentation fault" message there.  '((' could
 
27816
# trigger a bug in pdksh 5.2.14.
 
27817
for as_var in BASH_ENV ENV MAIL MAILPATH
 
27818
do eval test x\${$as_var+set} = xset \
 
27819
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
27820
done
 
27821
PS1='$ '
 
27822
PS2='> '
 
27823
PS4='+ '
 
27824
 
 
27825
# NLS nuisances.
 
27826
LC_ALL=C
 
27827
export LC_ALL
 
27828
LANGUAGE=C
 
27829
export LANGUAGE
 
27830
 
 
27831
# CDPATH.
 
27832
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
27833
 
 
27834
 
 
27835
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
27836
# ----------------------------------------
 
27837
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
27838
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
27839
# script with STATUS, using 1 if that was 0.
 
27840
as_fn_error ()
 
27841
{
 
27842
  as_status=$1; test $as_status -eq 0 && as_status=1
 
27843
  if test "$4"; then
 
27844
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
27845
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
27846
  fi
 
27847
  $as_echo "$as_me: error: $2" >&2
 
27848
  as_fn_exit $as_status
 
27849
} # as_fn_error
 
27850
 
 
27851
 
 
27852
# as_fn_set_status STATUS
 
27853
# -----------------------
 
27854
# Set $? to STATUS, without forking.
 
27855
as_fn_set_status ()
 
27856
{
 
27857
  return $1
 
27858
} # as_fn_set_status
 
27859
 
 
27860
# as_fn_exit STATUS
 
27861
# -----------------
 
27862
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
27863
as_fn_exit ()
 
27864
{
 
27865
  set +e
 
27866
  as_fn_set_status $1
 
27867
  exit $1
 
27868
} # as_fn_exit
 
27869
 
 
27870
# as_fn_unset VAR
 
27871
# ---------------
 
27872
# Portably unset VAR.
 
27873
as_fn_unset ()
 
27874
{
 
27875
  { eval $1=; unset $1;}
 
27876
}
 
27877
as_unset=as_fn_unset
 
27878
# as_fn_append VAR VALUE
 
27879
# ----------------------
 
27880
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
27881
# advantage of any shell optimizations that allow amortized linear growth over
 
27882
# repeated appends, instead of the typical quadratic growth present in naive
 
27883
# implementations.
 
27884
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
27885
  eval 'as_fn_append ()
 
27886
  {
 
27887
    eval $1+=\$2
 
27888
  }'
 
27889
else
 
27890
  as_fn_append ()
 
27891
  {
 
27892
    eval $1=\$$1\$2
 
27893
  }
 
27894
fi # as_fn_append
 
27895
 
 
27896
# as_fn_arith ARG...
 
27897
# ------------------
 
27898
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
27899
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
27900
# must be portable across $(()) and expr.
 
27901
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
27902
  eval 'as_fn_arith ()
 
27903
  {
 
27904
    as_val=$(( $* ))
 
27905
  }'
 
27906
else
 
27907
  as_fn_arith ()
 
27908
  {
 
27909
    as_val=`expr "$@" || test $? -eq 1`
 
27910
  }
 
27911
fi # as_fn_arith
 
27912
 
 
27913
 
 
27914
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
27915
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
27916
  as_expr=expr
 
27917
else
 
27918
  as_expr=false
 
27919
fi
 
27920
 
 
27921
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
27922
  as_basename=basename
 
27923
else
 
27924
  as_basename=false
 
27925
fi
 
27926
 
 
27927
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
27928
  as_dirname=dirname
 
27929
else
 
27930
  as_dirname=false
 
27931
fi
 
27932
 
 
27933
as_me=`$as_basename -- "$0" ||
 
27934
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
27935
         X"$0" : 'X\(//\)$' \| \
 
27936
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
27937
$as_echo X/"$0" |
 
27938
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
27939
            s//\1/
 
27940
            q
 
27941
          }
 
27942
          /^X\/\(\/\/\)$/{
 
27943
            s//\1/
 
27944
            q
 
27945
          }
 
27946
          /^X\/\(\/\).*/{
 
27947
            s//\1/
 
27948
            q
 
27949
          }
 
27950
          s/.*/./; q'`
 
27951
 
 
27952
# Avoid depending upon Character Ranges.
 
27953
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
27954
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
27955
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
27956
as_cr_digits='0123456789'
 
27957
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
27958
 
 
27959
ECHO_C= ECHO_N= ECHO_T=
 
27960
case `echo -n x` in #(((((
 
27961
-n*)
 
27962
  case `echo 'xy\c'` in
 
27963
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
27964
  xy)  ECHO_C='\c';;
 
27965
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
27966
       ECHO_T=' ';;
 
27967
  esac;;
 
27968
*)
 
27969
  ECHO_N='-n';;
 
27970
esac
 
27971
 
 
27972
rm -f conf$$ conf$$.exe conf$$.file
 
27973
if test -d conf$$.dir; then
 
27974
  rm -f conf$$.dir/conf$$.file
 
27975
else
 
27976
  rm -f conf$$.dir
 
27977
  mkdir conf$$.dir 2>/dev/null
 
27978
fi
 
27979
if (echo >conf$$.file) 2>/dev/null; then
 
27980
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
27981
    as_ln_s='ln -s'
 
27982
    # ... but there are two gotchas:
 
27983
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
27984
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
27985
    # In both cases, we have to default to `cp -pR'.
 
27986
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
27987
      as_ln_s='cp -pR'
 
27988
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
27989
    as_ln_s=ln
 
27990
  else
 
27991
    as_ln_s='cp -pR'
 
27992
  fi
 
27993
else
 
27994
  as_ln_s='cp -pR'
 
27995
fi
 
27996
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
27997
rmdir conf$$.dir 2>/dev/null
 
27998
 
 
27999
 
 
28000
# as_fn_mkdir_p
 
28001
# -------------
 
28002
# Create "$as_dir" as a directory, including parents if necessary.
 
28003
as_fn_mkdir_p ()
 
28004
{
 
28005
 
 
28006
  case $as_dir in #(
 
28007
  -*) as_dir=./$as_dir;;
 
28008
  esac
 
28009
  test -d "$as_dir" || eval $as_mkdir_p || {
 
28010
    as_dirs=
 
28011
    while :; do
 
28012
      case $as_dir in #(
 
28013
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
28014
      *) as_qdir=$as_dir;;
 
28015
      esac
 
28016
      as_dirs="'$as_qdir' $as_dirs"
 
28017
      as_dir=`$as_dirname -- "$as_dir" ||
 
28018
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28019
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28020
         X"$as_dir" : 'X\(//\)$' \| \
 
28021
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
28022
$as_echo X"$as_dir" |
 
28023
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
28024
            s//\1/
 
28025
            q
 
28026
          }
 
28027
          /^X\(\/\/\)[^/].*/{
 
28028
            s//\1/
 
28029
            q
 
28030
          }
 
28031
          /^X\(\/\/\)$/{
 
28032
            s//\1/
 
28033
            q
 
28034
          }
 
28035
          /^X\(\/\).*/{
 
28036
            s//\1/
 
28037
            q
 
28038
          }
 
28039
          s/.*/./; q'`
 
28040
      test -d "$as_dir" && break
 
28041
    done
 
28042
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
28043
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
28044
 
 
28045
 
 
28046
} # as_fn_mkdir_p
 
28047
if mkdir -p . 2>/dev/null; then
 
28048
  as_mkdir_p='mkdir -p "$as_dir"'
 
28049
else
 
28050
  test -d ./-p && rmdir ./-p
 
28051
  as_mkdir_p=false
 
28052
fi
 
28053
 
 
28054
 
 
28055
# as_fn_executable_p FILE
 
28056
# -----------------------
 
28057
# Test if FILE is an executable regular file.
 
28058
as_fn_executable_p ()
 
28059
{
 
28060
  test -f "$1" && test -x "$1"
 
28061
} # as_fn_executable_p
 
28062
as_test_x='test -x'
 
28063
as_executable_p=as_fn_executable_p
 
28064
 
 
28065
# Sed expression to map a string onto a valid CPP name.
 
28066
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
28067
 
 
28068
# Sed expression to map a string onto a valid variable name.
 
28069
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
28070
 
 
28071
 
 
28072
exec 6>&1
 
28073
## ----------------------------------- ##
 
28074
## Main body of $CONFIG_STATUS script. ##
 
28075
## ----------------------------------- ##
 
28076
_ASEOF
 
28077
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
28078
 
 
28079
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28080
# Save the log message, to keep $0 and so on meaningful, and to
 
28081
# report actual input values of CONFIG_FILES etc. instead of their
 
28082
# values after options handling.
 
28083
ac_log="
 
28084
This file was extended by Aggregate Remote Memory Copy Interface (ARMCI) $as_me 1.5, which was
 
28085
generated by GNU Autoconf 2.69.  Invocation command line was
 
28086
 
 
28087
  CONFIG_FILES    = $CONFIG_FILES
 
28088
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
28089
  CONFIG_LINKS    = $CONFIG_LINKS
 
28090
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
28091
  $ $0 $@
 
28092
 
 
28093
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
28094
"
 
28095
 
 
28096
_ACEOF
 
28097
 
 
28098
case $ac_config_files in *"
 
28099
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
28100
esac
 
28101
 
 
28102
case $ac_config_headers in *"
 
28103
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
28104
esac
 
28105
 
 
28106
 
 
28107
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28108
# Files that config.status was made for.
 
28109
config_files="$ac_config_files"
 
28110
config_headers="$ac_config_headers"
 
28111
config_commands="$ac_config_commands"
 
28112
 
 
28113
_ACEOF
 
28114
 
 
28115
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28116
ac_cs_usage="\
 
28117
\`$as_me' instantiates files and other configuration actions
 
28118
from templates according to the current configuration.  Unless the files
 
28119
and actions are specified as TAGs, all are instantiated by default.
 
28120
 
 
28121
Usage: $0 [OPTION]... [TAG]...
 
28122
 
 
28123
  -h, --help       print this help, then exit
 
28124
  -V, --version    print version number and configuration settings, then exit
 
28125
      --config     print configuration, then exit
 
28126
  -q, --quiet, --silent
 
28127
                   do not print progress messages
 
28128
  -d, --debug      don't remove temporary files
 
28129
      --recheck    update $as_me by reconfiguring in the same conditions
 
28130
      --file=FILE[:TEMPLATE]
 
28131
                   instantiate the configuration file FILE
 
28132
      --header=FILE[:TEMPLATE]
 
28133
                   instantiate the configuration header FILE
 
28134
 
 
28135
Configuration files:
 
28136
$config_files
 
28137
 
 
28138
Configuration headers:
 
28139
$config_headers
 
28140
 
 
28141
Configuration commands:
 
28142
$config_commands
 
28143
 
 
28144
Report bugs to <hpctools@pnl.gov>.
 
28145
Aggregate Remote Memory Copy Interface (ARMCI) home page: <http://www.emsl.pnl.gov/docs/parsoft/armci/>."
 
28146
 
 
28147
_ACEOF
 
28148
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28149
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
28150
ac_cs_version="\\
 
28151
Aggregate Remote Memory Copy Interface (ARMCI) config.status 1.5
 
28152
configured by $0, generated by GNU Autoconf 2.69,
 
28153
  with options \\"\$ac_cs_config\\"
 
28154
 
 
28155
Copyright (C) 2012 Free Software Foundation, Inc.
 
28156
This config.status script is free software; the Free Software Foundation
 
28157
gives unlimited permission to copy, distribute and modify it."
 
28158
 
 
28159
ac_pwd='$ac_pwd'
 
28160
srcdir='$srcdir'
 
28161
INSTALL='$INSTALL'
 
28162
MKDIR_P='$MKDIR_P'
 
28163
AWK='$AWK'
 
28164
test -n "\$AWK" || AWK=awk
 
28165
_ACEOF
 
28166
 
 
28167
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28168
# The default lists apply if the user does not specify any file.
 
28169
ac_need_defaults=:
 
28170
while test $# != 0
 
28171
do
 
28172
  case $1 in
 
28173
  --*=?*)
 
28174
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
28175
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
28176
    ac_shift=:
 
28177
    ;;
 
28178
  --*=)
 
28179
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
28180
    ac_optarg=
 
28181
    ac_shift=:
 
28182
    ;;
 
28183
  *)
 
28184
    ac_option=$1
 
28185
    ac_optarg=$2
 
28186
    ac_shift=shift
 
28187
    ;;
 
28188
  esac
 
28189
 
 
28190
  case $ac_option in
 
28191
  # Handling of the options.
 
28192
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
28193
    ac_cs_recheck=: ;;
 
28194
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
28195
    $as_echo "$ac_cs_version"; exit ;;
 
28196
  --config | --confi | --conf | --con | --co | --c )
 
28197
    $as_echo "$ac_cs_config"; exit ;;
 
28198
  --debug | --debu | --deb | --de | --d | -d )
 
28199
    debug=: ;;
 
28200
  --file | --fil | --fi | --f )
 
28201
    $ac_shift
 
28202
    case $ac_optarg in
 
28203
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
28204
    '') as_fn_error $? "missing file argument" ;;
 
28205
    esac
 
28206
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
28207
    ac_need_defaults=false;;
 
28208
  --header | --heade | --head | --hea )
 
28209
    $ac_shift
 
28210
    case $ac_optarg in
 
28211
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
28212
    esac
 
28213
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
28214
    ac_need_defaults=false;;
 
28215
  --he | --h)
 
28216
    # Conflict between --help and --header
 
28217
    as_fn_error $? "ambiguous option: \`$1'
 
28218
Try \`$0 --help' for more information.";;
 
28219
  --help | --hel | -h )
 
28220
    $as_echo "$ac_cs_usage"; exit ;;
 
28221
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
28222
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
28223
    ac_cs_silent=: ;;
 
28224
 
 
28225
  # This is an error.
 
28226
  -*) as_fn_error $? "unrecognized option: \`$1'
 
28227
Try \`$0 --help' for more information." ;;
 
28228
 
 
28229
  *) as_fn_append ac_config_targets " $1"
 
28230
     ac_need_defaults=false ;;
 
28231
 
 
28232
  esac
 
28233
  shift
 
28234
done
 
28235
 
 
28236
ac_configure_extra_args=
 
28237
 
 
28238
if $ac_cs_silent; then
 
28239
  exec 6>/dev/null
 
28240
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
28241
fi
 
28242
 
 
28243
_ACEOF
 
28244
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28245
if \$ac_cs_recheck; then
 
28246
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
28247
  shift
 
28248
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
28249
  CONFIG_SHELL='$SHELL'
 
28250
  export CONFIG_SHELL
 
28251
  exec "\$@"
 
28252
fi
 
28253
 
 
28254
_ACEOF
 
28255
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28256
exec 5>>config.log
 
28257
{
 
28258
  echo
 
28259
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
28260
## Running $as_me. ##
 
28261
_ASBOX
 
28262
  $as_echo "$ac_log"
 
28263
} >&5
 
28264
 
 
28265
_ACEOF
 
28266
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28267
#
 
28268
# INIT-COMMANDS
 
28269
#
 
28270
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
28271
 
 
28272
 
 
28273
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
28274
# if CDPATH is set.
 
28275
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
28276
 
 
28277
sed_quote_subst='$sed_quote_subst'
 
28278
double_quote_subst='$double_quote_subst'
 
28279
delay_variable_subst='$delay_variable_subst'
 
28280
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
28281
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
28282
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
28283
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
28284
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
28285
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
28286
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
28287
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
28288
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
28289
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
28290
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
28291
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
28292
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
28293
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
28294
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
28295
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
28296
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
28297
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
28298
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
28299
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
28300
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
28301
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
28302
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
28303
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
28304
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
28305
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
28306
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
28307
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
28308
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
28309
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
28310
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
28311
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
28312
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
28313
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
28314
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
28315
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
28316
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
28317
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
28318
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
28319
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
28320
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
28321
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
28322
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
28323
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
28324
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
28325
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
28326
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
28327
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
28328
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
28329
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
28330
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
28331
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
28332
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
28333
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
28334
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
28335
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
28336
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"`'
 
28337
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
28338
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
28339
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
28340
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
28341
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
28342
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
28343
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
28344
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
28345
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
28346
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
28347
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
28348
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
28349
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
28350
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
28351
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
28352
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
28353
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
28354
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
28355
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
28356
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
28357
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
28358
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
28359
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
28360
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
28361
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
28362
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
28363
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
28364
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
28365
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
28366
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
28367
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
28368
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
28369
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
28370
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
28371
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
28372
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
28373
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
28374
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
28375
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
28376
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
28377
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
28378
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
28379
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
28380
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
28381
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
28382
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
28383
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
28384
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
28385
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
28386
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
28387
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
28388
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
28389
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
28390
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
28391
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
28392
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
28393
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
28394
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
28395
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
28396
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
28397
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
28398
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
28399
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
28400
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
28401
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
28402
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
28403
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
28404
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
28405
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
28406
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
28407
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
28408
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
28409
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
28410
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
28411
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
28412
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
28413
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
28414
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
28415
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
28416
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
28417
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
28418
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28419
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28420
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
28421
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
28422
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
28423
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
28424
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
28425
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
28426
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
28427
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
28428
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
28429
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
28430
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
28431
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
28432
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28433
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28434
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28435
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28436
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28437
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28438
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
28439
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
28440
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
28441
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
28442
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
28443
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
28444
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
28445
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
28446
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
28447
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
28448
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
28449
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
28450
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
28451
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28452
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
28453
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
28454
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28455
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
28456
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
28457
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
28458
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
28459
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
28460
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
28461
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
28462
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
28463
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
28464
 
 
28465
LTCC='$LTCC'
 
28466
LTCFLAGS='$LTCFLAGS'
 
28467
compiler='$compiler_DEFAULT'
 
28468
 
 
28469
# A function that is used when there is no print builtin or printf.
 
28470
func_fallback_echo ()
 
28471
{
 
28472
  eval 'cat <<_LTECHO_EOF
 
28473
\$1
 
28474
_LTECHO_EOF'
 
28475
}
 
28476
 
 
28477
# Quote evaled strings.
 
28478
for var in SHELL \
 
28479
ECHO \
 
28480
PATH_SEPARATOR \
 
28481
SED \
 
28482
GREP \
 
28483
EGREP \
 
28484
FGREP \
 
28485
LD \
 
28486
NM \
 
28487
LN_S \
 
28488
lt_SP2NL \
 
28489
lt_NL2SP \
 
28490
reload_flag \
 
28491
OBJDUMP \
 
28492
deplibs_check_method \
 
28493
file_magic_cmd \
 
28494
file_magic_glob \
 
28495
want_nocaseglob \
 
28496
DLLTOOL \
 
28497
sharedlib_from_linklib_cmd \
 
28498
AR \
 
28499
AR_FLAGS \
 
28500
archiver_list_spec \
 
28501
STRIP \
 
28502
RANLIB \
 
28503
CC \
 
28504
CFLAGS \
 
28505
compiler \
 
28506
lt_cv_sys_global_symbol_pipe \
 
28507
lt_cv_sys_global_symbol_to_cdecl \
 
28508
lt_cv_sys_global_symbol_to_c_name_address \
 
28509
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
28510
nm_file_list_spec \
 
28511
lt_prog_compiler_no_builtin_flag \
 
28512
lt_prog_compiler_pic \
 
28513
lt_prog_compiler_wl \
 
28514
lt_prog_compiler_static \
 
28515
lt_cv_prog_compiler_c_o \
 
28516
need_locks \
 
28517
MANIFEST_TOOL \
 
28518
DSYMUTIL \
 
28519
NMEDIT \
 
28520
LIPO \
 
28521
OTOOL \
 
28522
OTOOL64 \
 
28523
shrext_cmds \
 
28524
export_dynamic_flag_spec \
 
28525
whole_archive_flag_spec \
 
28526
compiler_needs_object \
 
28527
with_gnu_ld \
 
28528
allow_undefined_flag \
 
28529
no_undefined_flag \
 
28530
hardcode_libdir_flag_spec \
 
28531
hardcode_libdir_separator \
 
28532
exclude_expsyms \
 
28533
include_expsyms \
 
28534
file_list_spec \
 
28535
variables_saved_for_relink \
 
28536
libname_spec \
 
28537
library_names_spec \
 
28538
soname_spec \
 
28539
install_override_mode \
 
28540
finish_eval \
 
28541
old_striplib \
 
28542
striplib \
 
28543
compiler_lib_search_dirs \
 
28544
predep_objects \
 
28545
postdep_objects \
 
28546
predeps \
 
28547
postdeps \
 
28548
compiler_lib_search_path \
 
28549
LD_CXX \
 
28550
reload_flag_CXX \
 
28551
compiler_CXX \
 
28552
lt_prog_compiler_no_builtin_flag_CXX \
 
28553
lt_prog_compiler_pic_CXX \
 
28554
lt_prog_compiler_wl_CXX \
 
28555
lt_prog_compiler_static_CXX \
 
28556
lt_cv_prog_compiler_c_o_CXX \
 
28557
export_dynamic_flag_spec_CXX \
 
28558
whole_archive_flag_spec_CXX \
 
28559
compiler_needs_object_CXX \
 
28560
with_gnu_ld_CXX \
 
28561
allow_undefined_flag_CXX \
 
28562
no_undefined_flag_CXX \
 
28563
hardcode_libdir_flag_spec_CXX \
 
28564
hardcode_libdir_separator_CXX \
 
28565
exclude_expsyms_CXX \
 
28566
include_expsyms_CXX \
 
28567
file_list_spec_CXX \
 
28568
compiler_lib_search_dirs_CXX \
 
28569
predep_objects_CXX \
 
28570
postdep_objects_CXX \
 
28571
predeps_CXX \
 
28572
postdeps_CXX \
 
28573
compiler_lib_search_path_CXX; do
 
28574
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
28575
    *[\\\\\\\`\\"\\\$]*)
 
28576
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
28577
      ;;
 
28578
    *)
 
28579
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
28580
      ;;
 
28581
    esac
 
28582
done
 
28583
 
 
28584
# Double-quote double-evaled strings.
 
28585
for var in reload_cmds \
 
28586
old_postinstall_cmds \
 
28587
old_postuninstall_cmds \
 
28588
old_archive_cmds \
 
28589
extract_expsyms_cmds \
 
28590
old_archive_from_new_cmds \
 
28591
old_archive_from_expsyms_cmds \
 
28592
archive_cmds \
 
28593
archive_expsym_cmds \
 
28594
module_cmds \
 
28595
module_expsym_cmds \
 
28596
export_symbols_cmds \
 
28597
prelink_cmds \
 
28598
postlink_cmds \
 
28599
postinstall_cmds \
 
28600
postuninstall_cmds \
 
28601
finish_cmds \
 
28602
sys_lib_search_path_spec \
 
28603
sys_lib_dlsearch_path_spec \
 
28604
reload_cmds_CXX \
 
28605
old_archive_cmds_CXX \
 
28606
old_archive_from_new_cmds_CXX \
 
28607
old_archive_from_expsyms_cmds_CXX \
 
28608
archive_cmds_CXX \
 
28609
archive_expsym_cmds_CXX \
 
28610
module_cmds_CXX \
 
28611
module_expsym_cmds_CXX \
 
28612
export_symbols_cmds_CXX \
 
28613
prelink_cmds_CXX \
 
28614
postlink_cmds_CXX; do
 
28615
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
28616
    *[\\\\\\\`\\"\\\$]*)
 
28617
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
28618
      ;;
 
28619
    *)
 
28620
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
28621
      ;;
 
28622
    esac
 
28623
done
 
28624
 
 
28625
ac_aux_dir='$ac_aux_dir'
 
28626
xsi_shell='$xsi_shell'
 
28627
lt_shell_append='$lt_shell_append'
 
28628
 
 
28629
# See if we are running on zsh, and set the options which allow our
 
28630
# commands through without removal of \ escapes INIT.
 
28631
if test -n "\${ZSH_VERSION+set}" ; then
 
28632
   setopt NO_GLOB_SUBST
 
28633
fi
 
28634
 
 
28635
 
 
28636
    PACKAGE='$PACKAGE'
 
28637
    VERSION='$VERSION'
 
28638
    TIMESTAMP='$TIMESTAMP'
 
28639
    RM='$RM'
 
28640
    ofile='$ofile'
 
28641
 
 
28642
 
 
28643
 
 
28644
 
 
28645
 
 
28646
 
 
28647
_ACEOF
 
28648
 
 
28649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28650
 
 
28651
# Handling of arguments.
 
28652
for ac_config_target in $ac_config_targets
 
28653
do
 
28654
  case $ac_config_target in
 
28655
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
28656
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
28657
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
28658
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
28659
 
 
28660
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
28661
  esac
 
28662
done
 
28663
 
 
28664
 
 
28665
# If the user did not use the arguments to specify the items to instantiate,
 
28666
# then the envvar interface is used.  Set only those that are not.
 
28667
# We use the long form for the default assignment because of an extremely
 
28668
# bizarre bug on SunOS 4.1.3.
 
28669
if $ac_need_defaults; then
 
28670
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
28671
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
28672
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
28673
fi
 
28674
 
 
28675
# Have a temporary directory for convenience.  Make it in the build tree
 
28676
# simply because there is no reason against having it here, and in addition,
 
28677
# creating and moving files from /tmp can sometimes cause problems.
 
28678
# Hook for its removal unless debugging.
 
28679
# Note that there is a small window in which the directory will not be cleaned:
 
28680
# after its creation but before its name has been assigned to `$tmp'.
 
28681
$debug ||
 
28682
{
 
28683
  tmp= ac_tmp=
 
28684
  trap 'exit_status=$?
 
28685
  : "${ac_tmp:=$tmp}"
 
28686
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
28687
' 0
 
28688
  trap 'as_fn_exit 1' 1 2 13 15
 
28689
}
 
28690
# Create a (secure) tmp directory for tmp files.
 
28691
 
 
28692
{
 
28693
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
28694
  test -d "$tmp"
 
28695
}  ||
 
28696
{
 
28697
  tmp=./conf$$-$RANDOM
 
28698
  (umask 077 && mkdir "$tmp")
 
28699
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
28700
ac_tmp=$tmp
 
28701
 
 
28702
# Set up the scripts for CONFIG_FILES section.
 
28703
# No need to generate them if there are no CONFIG_FILES.
 
28704
# This happens for instance with `./config.status config.h'.
 
28705
if test -n "$CONFIG_FILES"; then
 
28706
 
 
28707
 
 
28708
ac_cr=`echo X | tr X '\015'`
 
28709
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
28710
# But we know of no other shell where ac_cr would be empty at this
 
28711
# point, so we can use a bashism as a fallback.
 
28712
if test "x$ac_cr" = x; then
 
28713
  eval ac_cr=\$\'\\r\'
 
28714
fi
 
28715
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
28716
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
28717
  ac_cs_awk_cr='\\r'
 
28718
else
 
28719
  ac_cs_awk_cr=$ac_cr
 
28720
fi
 
28721
 
 
28722
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
28723
_ACEOF
 
28724
 
 
28725
 
 
28726
{
 
28727
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
28728
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
28729
  echo "_ACEOF"
 
28730
} >conf$$subs.sh ||
 
28731
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
28732
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
28733
ac_delim='%!_!# '
 
28734
for ac_last_try in false false false false false :; do
 
28735
  . ./conf$$subs.sh ||
 
28736
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
28737
 
 
28738
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
28739
  if test $ac_delim_n = $ac_delim_num; then
 
28740
    break
 
28741
  elif $ac_last_try; then
 
28742
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
28743
  else
 
28744
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
28745
  fi
 
28746
done
 
28747
rm -f conf$$subs.sh
 
28748
 
 
28749
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28750
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
28751
_ACEOF
 
28752
sed -n '
 
28753
h
 
28754
s/^/S["/; s/!.*/"]=/
 
28755
p
 
28756
g
 
28757
s/^[^!]*!//
 
28758
:repl
 
28759
t repl
 
28760
s/'"$ac_delim"'$//
 
28761
t delim
 
28762
:nl
 
28763
h
 
28764
s/\(.\{148\}\)..*/\1/
 
28765
t more1
 
28766
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
28767
p
 
28768
n
 
28769
b repl
 
28770
:more1
 
28771
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
28772
p
 
28773
g
 
28774
s/.\{148\}//
 
28775
t nl
 
28776
:delim
 
28777
h
 
28778
s/\(.\{148\}\)..*/\1/
 
28779
t more2
 
28780
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
28781
p
 
28782
b
 
28783
:more2
 
28784
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
28785
p
 
28786
g
 
28787
s/.\{148\}//
 
28788
t delim
 
28789
' <conf$$subs.awk | sed '
 
28790
/^[^""]/{
 
28791
  N
 
28792
  s/\n//
 
28793
}
 
28794
' >>$CONFIG_STATUS || ac_write_fail=1
 
28795
rm -f conf$$subs.awk
 
28796
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28797
_ACAWK
 
28798
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
28799
  for (key in S) S_is_set[key] = 1
 
28800
  FS = ""
 
28801
 
 
28802
}
 
28803
{
 
28804
  line = $ 0
 
28805
  nfields = split(line, field, "@")
 
28806
  substed = 0
 
28807
  len = length(field[1])
 
28808
  for (i = 2; i < nfields; i++) {
 
28809
    key = field[i]
 
28810
    keylen = length(key)
 
28811
    if (S_is_set[key]) {
 
28812
      value = S[key]
 
28813
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
28814
      len += length(value) + length(field[++i])
 
28815
      substed = 1
 
28816
    } else
 
28817
      len += 1 + keylen
 
28818
  }
 
28819
 
 
28820
  print line
 
28821
}
 
28822
 
 
28823
_ACAWK
 
28824
_ACEOF
 
28825
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28826
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
28827
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
28828
else
 
28829
  cat
 
28830
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
28831
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
28832
_ACEOF
 
28833
 
 
28834
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
28835
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
28836
# trailing colons and then remove the whole line if VPATH becomes empty
 
28837
# (actually we leave an empty line to preserve line numbers).
 
28838
if test "x$srcdir" = x.; then
 
28839
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
28840
h
 
28841
s///
 
28842
s/^/:/
 
28843
s/[      ]*$/:/
 
28844
s/:\$(srcdir):/:/g
 
28845
s/:\${srcdir}:/:/g
 
28846
s/:@srcdir@:/:/g
 
28847
s/^:*//
 
28848
s/:*$//
 
28849
x
 
28850
s/\(=[   ]*\).*/\1/
 
28851
G
 
28852
s/\n//
 
28853
s/^[^=]*=[       ]*$//
 
28854
}'
 
28855
fi
 
28856
 
 
28857
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28858
fi # test -n "$CONFIG_FILES"
 
28859
 
 
28860
# Set up the scripts for CONFIG_HEADERS section.
 
28861
# No need to generate them if there are no CONFIG_HEADERS.
 
28862
# This happens for instance with `./config.status Makefile'.
 
28863
if test -n "$CONFIG_HEADERS"; then
 
28864
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
28865
BEGIN {
 
28866
_ACEOF
 
28867
 
 
28868
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
28869
# here-document in config.status, that substitutes the proper values into
 
28870
# config.h.in to produce config.h.
 
28871
 
 
28872
# Create a delimiter string that does not exist in confdefs.h, to ease
 
28873
# handling of long lines.
 
28874
ac_delim='%!_!# '
 
28875
for ac_last_try in false false :; do
 
28876
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
28877
  if test -z "$ac_tt"; then
 
28878
    break
 
28879
  elif $ac_last_try; then
 
28880
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
28881
  else
 
28882
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
28883
  fi
 
28884
done
 
28885
 
 
28886
# For the awk script, D is an array of macro values keyed by name,
 
28887
# likewise P contains macro parameters if any.  Preserve backslash
 
28888
# newline sequences.
 
28889
 
 
28890
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
28891
sed -n '
 
28892
s/.\{148\}/&'"$ac_delim"'/g
 
28893
t rset
 
28894
:rset
 
28895
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
28896
t def
 
28897
d
 
28898
:def
 
28899
s/\\$//
 
28900
t bsnl
 
28901
s/["\\]/\\&/g
 
28902
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
28903
D["\1"]=" \3"/p
 
28904
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
28905
d
 
28906
:bsnl
 
28907
s/["\\]/\\&/g
 
28908
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
28909
D["\1"]=" \3\\\\\\n"\\/p
 
28910
t cont
 
28911
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
28912
t cont
 
28913
d
 
28914
:cont
 
28915
n
 
28916
s/.\{148\}/&'"$ac_delim"'/g
 
28917
t clear
 
28918
:clear
 
28919
s/\\$//
 
28920
t bsnlc
 
28921
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
28922
d
 
28923
:bsnlc
 
28924
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
28925
b cont
 
28926
' <confdefs.h | sed '
 
28927
s/'"$ac_delim"'/"\\\
 
28928
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
28929
 
 
28930
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
28931
  for (key in D) D_is_set[key] = 1
 
28932
  FS = ""
 
28933
}
 
28934
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
28935
  line = \$ 0
 
28936
  split(line, arg, " ")
 
28937
  if (arg[1] == "#") {
 
28938
    defundef = arg[2]
 
28939
    mac1 = arg[3]
 
28940
  } else {
 
28941
    defundef = substr(arg[1], 2)
 
28942
    mac1 = arg[2]
 
28943
  }
 
28944
  split(mac1, mac2, "(") #)
 
28945
  macro = mac2[1]
 
28946
  prefix = substr(line, 1, index(line, defundef) - 1)
 
28947
  if (D_is_set[macro]) {
 
28948
    # Preserve the white space surrounding the "#".
 
28949
    print prefix "define", macro P[macro] D[macro]
 
28950
    next
 
28951
  } else {
 
28952
    # Replace #undef with comments.  This is necessary, for example,
 
28953
    # in the case of _POSIX_SOURCE, which is predefined and required
 
28954
    # on some systems where configure will not decide to define it.
 
28955
    if (defundef == "undef") {
 
28956
      print "/*", prefix defundef, macro, "*/"
 
28957
      next
 
28958
    }
 
28959
  }
 
28960
}
 
28961
{ print }
 
28962
_ACAWK
 
28963
_ACEOF
 
28964
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
28965
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
28966
fi # test -n "$CONFIG_HEADERS"
 
28967
 
 
28968
 
 
28969
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
28970
shift
 
28971
for ac_tag
 
28972
do
 
28973
  case $ac_tag in
 
28974
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
28975
  esac
 
28976
  case $ac_mode$ac_tag in
 
28977
  :[FHL]*:*);;
 
28978
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
28979
  :[FH]-) ac_tag=-:-;;
 
28980
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
28981
  esac
 
28982
  ac_save_IFS=$IFS
 
28983
  IFS=:
 
28984
  set x $ac_tag
 
28985
  IFS=$ac_save_IFS
 
28986
  shift
 
28987
  ac_file=$1
 
28988
  shift
 
28989
 
 
28990
  case $ac_mode in
 
28991
  :L) ac_source=$1;;
 
28992
  :[FH])
 
28993
    ac_file_inputs=
 
28994
    for ac_f
 
28995
    do
 
28996
      case $ac_f in
 
28997
      -) ac_f="$ac_tmp/stdin";;
 
28998
      *) # Look for the file first in the build tree, then in the source tree
 
28999
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
29000
         # because $ac_f cannot contain `:'.
 
29001
         test -f "$ac_f" ||
 
29002
           case $ac_f in
 
29003
           [\\/$]*) false;;
 
29004
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
29005
           esac ||
 
29006
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
29007
      esac
 
29008
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
29009
      as_fn_append ac_file_inputs " '$ac_f'"
 
29010
    done
 
29011
 
 
29012
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
29013
    # use $as_me), people would be surprised to read:
 
29014
    #    /* config.h.  Generated by config.status.  */
 
29015
    configure_input='Generated from '`
 
29016
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
29017
        `' by configure.'
 
29018
    if test x"$ac_file" != x-; then
 
29019
      configure_input="$ac_file.  $configure_input"
 
29020
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
29021
$as_echo "$as_me: creating $ac_file" >&6;}
 
29022
    fi
 
29023
    # Neutralize special characters interpreted by sed in replacement strings.
 
29024
    case $configure_input in #(
 
29025
    *\&* | *\|* | *\\* )
 
29026
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
29027
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
29028
    *) ac_sed_conf_input=$configure_input;;
 
29029
    esac
 
29030
 
 
29031
    case $ac_tag in
 
29032
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
29033
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
29034
    esac
 
29035
    ;;
 
29036
  esac
 
29037
 
 
29038
  ac_dir=`$as_dirname -- "$ac_file" ||
 
29039
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
29040
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
29041
         X"$ac_file" : 'X\(//\)$' \| \
 
29042
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
29043
$as_echo X"$ac_file" |
 
29044
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
29045
            s//\1/
 
29046
            q
 
29047
          }
 
29048
          /^X\(\/\/\)[^/].*/{
 
29049
            s//\1/
 
29050
            q
 
29051
          }
 
29052
          /^X\(\/\/\)$/{
 
29053
            s//\1/
 
29054
            q
 
29055
          }
 
29056
          /^X\(\/\).*/{
 
29057
            s//\1/
 
29058
            q
 
29059
          }
 
29060
          s/.*/./; q'`
 
29061
  as_dir="$ac_dir"; as_fn_mkdir_p
 
29062
  ac_builddir=.
 
29063
 
 
29064
case "$ac_dir" in
 
29065
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
29066
*)
 
29067
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
29068
  # A ".." for each directory in $ac_dir_suffix.
 
29069
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
29070
  case $ac_top_builddir_sub in
 
29071
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
29072
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
29073
  esac ;;
 
29074
esac
 
29075
ac_abs_top_builddir=$ac_pwd
 
29076
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
29077
# for backward compatibility:
 
29078
ac_top_builddir=$ac_top_build_prefix
 
29079
 
 
29080
case $srcdir in
 
29081
  .)  # We are building in place.
 
29082
    ac_srcdir=.
 
29083
    ac_top_srcdir=$ac_top_builddir_sub
 
29084
    ac_abs_top_srcdir=$ac_pwd ;;
 
29085
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
29086
    ac_srcdir=$srcdir$ac_dir_suffix;
 
29087
    ac_top_srcdir=$srcdir
 
29088
    ac_abs_top_srcdir=$srcdir ;;
 
29089
  *) # Relative name.
 
29090
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
29091
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
29092
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
29093
esac
 
29094
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
29095
 
 
29096
 
 
29097
  case $ac_mode in
 
29098
  :F)
 
29099
  #
 
29100
  # CONFIG_FILE
 
29101
  #
 
29102
 
 
29103
  case $INSTALL in
 
29104
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
29105
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
29106
  esac
 
29107
  ac_MKDIR_P=$MKDIR_P
 
29108
  case $MKDIR_P in
 
29109
  [\\/$]* | ?:[\\/]* ) ;;
 
29110
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
29111
  esac
 
29112
_ACEOF
 
29113
 
 
29114
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
29115
# If the template does not know about datarootdir, expand it.
 
29116
# FIXME: This hack should be removed a few years after 2.60.
 
29117
ac_datarootdir_hack=; ac_datarootdir_seen=
 
29118
ac_sed_dataroot='
 
29119
/datarootdir/ {
 
29120
  p
 
29121
  q
 
29122
}
 
29123
/@datadir@/p
 
29124
/@docdir@/p
 
29125
/@infodir@/p
 
29126
/@localedir@/p
 
29127
/@mandir@/p'
 
29128
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
29129
*datarootdir*) ac_datarootdir_seen=yes;;
 
29130
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
29131
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
29132
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
29133
_ACEOF
 
29134
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
29135
  ac_datarootdir_hack='
 
29136
  s&@datadir@&$datadir&g
 
29137
  s&@docdir@&$docdir&g
 
29138
  s&@infodir@&$infodir&g
 
29139
  s&@localedir@&$localedir&g
 
29140
  s&@mandir@&$mandir&g
 
29141
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
29142
esac
 
29143
_ACEOF
 
29144
 
 
29145
# Neutralize VPATH when `$srcdir' = `.'.
 
29146
# Shell code in configure.ac might set extrasub.
 
29147
# FIXME: do we really want to maintain this feature?
 
29148
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
29149
ac_sed_extra="$ac_vpsub
 
29150
$extrasub
 
29151
_ACEOF
 
29152
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
29153
:t
 
29154
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
29155
s|@configure_input@|$ac_sed_conf_input|;t t
 
29156
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
29157
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
29158
s&@srcdir@&$ac_srcdir&;t t
 
29159
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
29160
s&@top_srcdir@&$ac_top_srcdir&;t t
 
29161
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
29162
s&@builddir@&$ac_builddir&;t t
 
29163
s&@abs_builddir@&$ac_abs_builddir&;t t
 
29164
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
29165
s&@INSTALL@&$ac_INSTALL&;t t
 
29166
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
29167
$ac_datarootdir_hack
 
29168
"
 
29169
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
29170
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
29171
 
 
29172
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
29173
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
29174
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
29175
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
29176
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
29177
which seems to be undefined.  Please make sure it is defined" >&5
 
29178
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
29179
which seems to be undefined.  Please make sure it is defined" >&2;}
 
29180
 
 
29181
  rm -f "$ac_tmp/stdin"
 
29182
  case $ac_file in
 
29183
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
29184
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
29185
  esac \
 
29186
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
29187
 ;;
 
29188
  :H)
 
29189
  #
 
29190
  # CONFIG_HEADER
 
29191
  #
 
29192
  if test x"$ac_file" != x-; then
 
29193
    {
 
29194
      $as_echo "/* $configure_input  */" \
 
29195
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
29196
    } >"$ac_tmp/config.h" \
 
29197
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
29198
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
29199
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
29200
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
29201
    else
 
29202
      rm -f "$ac_file"
 
29203
      mv "$ac_tmp/config.h" "$ac_file" \
 
29204
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
29205
    fi
 
29206
  else
 
29207
    $as_echo "/* $configure_input  */" \
 
29208
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
29209
      || as_fn_error $? "could not create -" "$LINENO" 5
 
29210
  fi
 
29211
# Compute "$ac_file"'s index in $config_headers.
 
29212
_am_arg="$ac_file"
 
29213
_am_stamp_count=1
 
29214
for _am_header in $config_headers :; do
 
29215
  case $_am_header in
 
29216
    $_am_arg | $_am_arg:* )
 
29217
      break ;;
 
29218
    * )
 
29219
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
29220
  esac
 
29221
done
 
29222
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
29223
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
29224
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
29225
         X"$_am_arg" : 'X\(//\)$' \| \
 
29226
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
29227
$as_echo X"$_am_arg" |
 
29228
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
29229
            s//\1/
 
29230
            q
 
29231
          }
 
29232
          /^X\(\/\/\)[^/].*/{
 
29233
            s//\1/
 
29234
            q
 
29235
          }
 
29236
          /^X\(\/\/\)$/{
 
29237
            s//\1/
 
29238
            q
 
29239
          }
 
29240
          /^X\(\/\).*/{
 
29241
            s//\1/
 
29242
            q
 
29243
          }
 
29244
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
29245
 ;;
 
29246
 
 
29247
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
29248
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
29249
 ;;
 
29250
  esac
 
29251
 
 
29252
 
 
29253
  case $ac_file$ac_mode in
 
29254
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
29255
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
29256
  # are listed without --file.  Let's play safe and only enable the eval
 
29257
  # if we detect the quoting.
 
29258
  case $CONFIG_FILES in
 
29259
  *\'*) eval set x "$CONFIG_FILES" ;;
 
29260
  *)   set x $CONFIG_FILES ;;
 
29261
  esac
 
29262
  shift
 
29263
  for mf
 
29264
  do
 
29265
    # Strip MF so we end up with the name of the file.
 
29266
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
29267
    # Check whether this is an Automake generated Makefile or not.
 
29268
    # We used to match only the files named `Makefile.in', but
 
29269
    # some people rename them; so instead we look at the file content.
 
29270
    # Grep'ing the first line is not enough: some people post-process
 
29271
    # each Makefile.in and add a new line on top of each file to say so.
 
29272
    # Grep'ing the whole file is not good either: AIX grep has a line
 
29273
    # limit of 2048, but all sed's we know have understand at least 4000.
 
29274
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
29275
      dirpart=`$as_dirname -- "$mf" ||
 
29276
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
29277
         X"$mf" : 'X\(//\)[^/]' \| \
 
29278
         X"$mf" : 'X\(//\)$' \| \
 
29279
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
29280
$as_echo X"$mf" |
 
29281
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
29282
            s//\1/
 
29283
            q
 
29284
          }
 
29285
          /^X\(\/\/\)[^/].*/{
 
29286
            s//\1/
 
29287
            q
 
29288
          }
 
29289
          /^X\(\/\/\)$/{
 
29290
            s//\1/
 
29291
            q
 
29292
          }
 
29293
          /^X\(\/\).*/{
 
29294
            s//\1/
 
29295
            q
 
29296
          }
 
29297
          s/.*/./; q'`
 
29298
    else
 
29299
      continue
 
29300
    fi
 
29301
    # Extract the definition of DEPDIR, am__include, and am__quote
 
29302
    # from the Makefile without running `make'.
 
29303
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
29304
    test -z "$DEPDIR" && continue
 
29305
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
29306
    test -z "am__include" && continue
 
29307
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
29308
    # When using ansi2knr, U may be empty or an underscore; expand it
 
29309
    U=`sed -n 's/^U = //p' < "$mf"`
 
29310
    # Find all dependency output files, they are included files with
 
29311
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
29312
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
29313
    # expansion.
 
29314
    for file in `sed -n "
 
29315
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
29316
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
29317
      # Make sure the directory exists.
 
29318
      test -f "$dirpart/$file" && continue
 
29319
      fdir=`$as_dirname -- "$file" ||
 
29320
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
29321
         X"$file" : 'X\(//\)[^/]' \| \
 
29322
         X"$file" : 'X\(//\)$' \| \
 
29323
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
29324
$as_echo X"$file" |
 
29325
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
29326
            s//\1/
 
29327
            q
 
29328
          }
 
29329
          /^X\(\/\/\)[^/].*/{
 
29330
            s//\1/
 
29331
            q
 
29332
          }
 
29333
          /^X\(\/\/\)$/{
 
29334
            s//\1/
 
29335
            q
 
29336
          }
 
29337
          /^X\(\/\).*/{
 
29338
            s//\1/
 
29339
            q
 
29340
          }
 
29341
          s/.*/./; q'`
 
29342
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
29343
      # echo "creating $dirpart/$file"
 
29344
      echo '# dummy' > "$dirpart/$file"
 
29345
    done
 
29346
  done
 
29347
}
 
29348
 ;;
 
29349
    "libtool":C)
 
29350
 
 
29351
    # See if we are running on zsh, and set the options which allow our
 
29352
    # commands through without removal of \ escapes.
 
29353
    if test -n "${ZSH_VERSION+set}" ; then
 
29354
      setopt NO_GLOB_SUBST
 
29355
    fi
 
29356
 
 
29357
    cfgfile="${ofile}T"
 
29358
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
29359
    $RM "$cfgfile"
 
29360
 
 
29361
    cat <<_LT_EOF >> "$cfgfile"
 
29362
#! $SHELL
 
29363
 
 
29364
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
29365
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
29366
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
29367
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
29368
#
 
29369
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
29370
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
29371
#                 Foundation, Inc.
 
29372
#   Written by Gordon Matzigkeit, 1996
 
29373
#
 
29374
#   This file is part of GNU Libtool.
 
29375
#
 
29376
# GNU Libtool is free software; you can redistribute it and/or
 
29377
# modify it under the terms of the GNU General Public License as
 
29378
# published by the Free Software Foundation; either version 2 of
 
29379
# the License, or (at your option) any later version.
 
29380
#
 
29381
# As a special exception to the GNU General Public License,
 
29382
# if you distribute this file as part of a program or library that
 
29383
# is built using GNU Libtool, you may include this file under the
 
29384
# same distribution terms that you use for the rest of that program.
 
29385
#
 
29386
# GNU Libtool is distributed in the hope that it will be useful,
 
29387
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
29388
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
29389
# GNU General Public License for more details.
 
29390
#
 
29391
# You should have received a copy of the GNU General Public License
 
29392
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
29393
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
29394
# obtained by writing to the Free Software Foundation, Inc.,
 
29395
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
29396
 
 
29397
 
 
29398
# The names of the tagged configurations supported by this script.
 
29399
available_tags="CXX "
 
29400
 
 
29401
# ### BEGIN LIBTOOL CONFIG
 
29402
 
 
29403
# Which release of libtool.m4 was used?
 
29404
macro_version=$macro_version
 
29405
macro_revision=$macro_revision
 
29406
 
 
29407
# Whether or not to build shared libraries.
 
29408
build_libtool_libs=$enable_shared
 
29409
 
 
29410
# Whether or not to build static libraries.
 
29411
build_old_libs=$enable_static
 
29412
 
 
29413
# What type of objects to build.
 
29414
pic_mode=$pic_mode
 
29415
 
 
29416
# Whether or not to optimize for fast installation.
 
29417
fast_install=$enable_fast_install
 
29418
 
 
29419
# Shell to use when invoking shell scripts.
 
29420
SHELL=$lt_SHELL
 
29421
 
 
29422
# An echo program that protects backslashes.
 
29423
ECHO=$lt_ECHO
 
29424
 
 
29425
# The PATH separator for the build system.
 
29426
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
29427
 
 
29428
# The host system.
 
29429
host_alias=$host_alias
 
29430
host=$host
 
29431
host_os=$host_os
 
29432
 
 
29433
# The build system.
 
29434
build_alias=$build_alias
 
29435
build=$build
 
29436
build_os=$build_os
 
29437
 
 
29438
# A sed program that does not truncate output.
 
29439
SED=$lt_SED
 
29440
 
 
29441
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
29442
Xsed="\$SED -e 1s/^X//"
 
29443
 
 
29444
# A grep program that handles long lines.
 
29445
GREP=$lt_GREP
 
29446
 
 
29447
# An ERE matcher.
 
29448
EGREP=$lt_EGREP
 
29449
 
 
29450
# A literal string matcher.
 
29451
FGREP=$lt_FGREP
 
29452
 
 
29453
# A BSD- or MS-compatible name lister.
 
29454
NM=$lt_NM
 
29455
 
 
29456
# Whether we need soft or hard links.
 
29457
LN_S=$lt_LN_S
 
29458
 
 
29459
# What is the maximum length of a command?
 
29460
max_cmd_len=$max_cmd_len
 
29461
 
 
29462
# Object file suffix (normally "o").
 
29463
objext=$ac_objext
 
29464
 
 
29465
# Executable file suffix (normally "").
 
29466
exeext=$exeext
 
29467
 
 
29468
# whether the shell understands "unset".
 
29469
lt_unset=$lt_unset
 
29470
 
 
29471
# turn spaces into newlines.
 
29472
SP2NL=$lt_lt_SP2NL
 
29473
 
 
29474
# turn newlines into spaces.
 
29475
NL2SP=$lt_lt_NL2SP
 
29476
 
 
29477
# convert \$build file names to \$host format.
 
29478
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
29479
 
 
29480
# convert \$build files to toolchain format.
 
29481
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
29482
 
 
29483
# An object symbol dumper.
 
29484
OBJDUMP=$lt_OBJDUMP
 
29485
 
 
29486
# Method to check whether dependent libraries are shared objects.
 
29487
deplibs_check_method=$lt_deplibs_check_method
 
29488
 
 
29489
# Command to use when deplibs_check_method = "file_magic".
 
29490
file_magic_cmd=$lt_file_magic_cmd
 
29491
 
 
29492
# How to find potential files when deplibs_check_method = "file_magic".
 
29493
file_magic_glob=$lt_file_magic_glob
 
29494
 
 
29495
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
29496
want_nocaseglob=$lt_want_nocaseglob
 
29497
 
 
29498
# DLL creation program.
 
29499
DLLTOOL=$lt_DLLTOOL
 
29500
 
 
29501
# Command to associate shared and link libraries.
 
29502
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
29503
 
 
29504
# The archiver.
 
29505
AR=$lt_AR
 
29506
 
 
29507
# Flags to create an archive.
 
29508
AR_FLAGS=$lt_AR_FLAGS
 
29509
 
 
29510
# How to feed a file listing to the archiver.
 
29511
archiver_list_spec=$lt_archiver_list_spec
 
29512
 
 
29513
# A symbol stripping program.
 
29514
STRIP=$lt_STRIP
 
29515
 
 
29516
# Commands used to install an old-style archive.
 
29517
RANLIB=$lt_RANLIB
 
29518
old_postinstall_cmds=$lt_old_postinstall_cmds
 
29519
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
29520
 
 
29521
# Whether to use a lock for old archive extraction.
 
29522
lock_old_archive_extraction=$lock_old_archive_extraction
 
29523
 
 
29524
# A C compiler.
 
29525
LTCC=$lt_CC
 
29526
 
 
29527
# LTCC compiler flags.
 
29528
LTCFLAGS=$lt_CFLAGS
 
29529
 
 
29530
# Take the output of nm and produce a listing of raw symbols and C names.
 
29531
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
29532
 
 
29533
# Transform the output of nm in a proper C declaration.
 
29534
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
29535
 
 
29536
# Transform the output of nm in a C name address pair.
 
29537
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
29538
 
 
29539
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
29540
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
29541
 
 
29542
# Specify filename containing input files for \$NM.
 
29543
nm_file_list_spec=$lt_nm_file_list_spec
 
29544
 
 
29545
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
29546
lt_sysroot=$lt_sysroot
 
29547
 
 
29548
# The name of the directory that contains temporary libtool files.
 
29549
objdir=$objdir
 
29550
 
 
29551
# Used to examine libraries when file_magic_cmd begins with "file".
 
29552
MAGIC_CMD=$MAGIC_CMD
 
29553
 
 
29554
# Must we lock files when doing compilation?
 
29555
need_locks=$lt_need_locks
 
29556
 
 
29557
# Manifest tool.
 
29558
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
29559
 
 
29560
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
29561
DSYMUTIL=$lt_DSYMUTIL
 
29562
 
 
29563
# Tool to change global to local symbols on Mac OS X.
 
29564
NMEDIT=$lt_NMEDIT
 
29565
 
 
29566
# Tool to manipulate fat objects and archives on Mac OS X.
 
29567
LIPO=$lt_LIPO
 
29568
 
 
29569
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
29570
OTOOL=$lt_OTOOL
 
29571
 
 
29572
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
29573
OTOOL64=$lt_OTOOL64
 
29574
 
 
29575
# Old archive suffix (normally "a").
 
29576
libext=$libext
 
29577
 
 
29578
# Shared library suffix (normally ".so").
 
29579
shrext_cmds=$lt_shrext_cmds
 
29580
 
 
29581
# The commands to extract the exported symbol list from a shared archive.
 
29582
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
29583
 
 
29584
# Variables whose values should be saved in libtool wrapper scripts and
 
29585
# restored at link time.
 
29586
variables_saved_for_relink=$lt_variables_saved_for_relink
 
29587
 
 
29588
# Do we need the "lib" prefix for modules?
 
29589
need_lib_prefix=$need_lib_prefix
 
29590
 
 
29591
# Do we need a version for libraries?
 
29592
need_version=$need_version
 
29593
 
 
29594
# Library versioning type.
 
29595
version_type=$version_type
 
29596
 
 
29597
# Shared library runtime path variable.
 
29598
runpath_var=$runpath_var
 
29599
 
 
29600
# Shared library path variable.
 
29601
shlibpath_var=$shlibpath_var
 
29602
 
 
29603
# Is shlibpath searched before the hard-coded library search path?
 
29604
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
29605
 
 
29606
# Format of library name prefix.
 
29607
libname_spec=$lt_libname_spec
 
29608
 
 
29609
# List of archive names.  First name is the real one, the rest are links.
 
29610
# The last name is the one that the linker finds with -lNAME
 
29611
library_names_spec=$lt_library_names_spec
 
29612
 
 
29613
# The coded name of the library, if different from the real name.
 
29614
soname_spec=$lt_soname_spec
 
29615
 
 
29616
# Permission mode override for installation of shared libraries.
 
29617
install_override_mode=$lt_install_override_mode
 
29618
 
 
29619
# Command to use after installation of a shared archive.
 
29620
postinstall_cmds=$lt_postinstall_cmds
 
29621
 
 
29622
# Command to use after uninstallation of a shared archive.
 
29623
postuninstall_cmds=$lt_postuninstall_cmds
 
29624
 
 
29625
# Commands used to finish a libtool library installation in a directory.
 
29626
finish_cmds=$lt_finish_cmds
 
29627
 
 
29628
# As "finish_cmds", except a single script fragment to be evaled but
 
29629
# not shown.
 
29630
finish_eval=$lt_finish_eval
 
29631
 
 
29632
# Whether we should hardcode library paths into libraries.
 
29633
hardcode_into_libs=$hardcode_into_libs
 
29634
 
 
29635
# Compile-time system search path for libraries.
 
29636
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
29637
 
 
29638
# Run-time system search path for libraries.
 
29639
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
29640
 
 
29641
# Whether dlopen is supported.
 
29642
dlopen_support=$enable_dlopen
 
29643
 
 
29644
# Whether dlopen of programs is supported.
 
29645
dlopen_self=$enable_dlopen_self
 
29646
 
 
29647
# Whether dlopen of statically linked programs is supported.
 
29648
dlopen_self_static=$enable_dlopen_self_static
 
29649
 
 
29650
# Commands to strip libraries.
 
29651
old_striplib=$lt_old_striplib
 
29652
striplib=$lt_striplib
 
29653
 
 
29654
 
 
29655
# The linker used to build libraries.
 
29656
LD=$lt_LD
 
29657
 
 
29658
# How to create reloadable object files.
 
29659
reload_flag=$lt_reload_flag
 
29660
reload_cmds=$lt_reload_cmds
 
29661
 
 
29662
# Commands used to build an old-style archive.
 
29663
old_archive_cmds=$lt_old_archive_cmds
 
29664
 
 
29665
# A language specific compiler.
 
29666
CC=$lt_compiler
 
29667
 
 
29668
# Is the compiler the GNU compiler?
 
29669
with_gcc=$GCC
 
29670
 
 
29671
# Compiler flag to turn off builtin functions.
 
29672
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
29673
 
 
29674
# Additional compiler flags for building library objects.
 
29675
pic_flag=$lt_lt_prog_compiler_pic
 
29676
 
 
29677
# How to pass a linker flag through the compiler.
 
29678
wl=$lt_lt_prog_compiler_wl
 
29679
 
 
29680
# Compiler flag to prevent dynamic linking.
 
29681
link_static_flag=$lt_lt_prog_compiler_static
 
29682
 
 
29683
# Does compiler simultaneously support -c and -o options?
 
29684
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
29685
 
 
29686
# Whether or not to add -lc for building shared libraries.
 
29687
build_libtool_need_lc=$archive_cmds_need_lc
 
29688
 
 
29689
# Whether or not to disallow shared libs when runtime libs are static.
 
29690
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
29691
 
 
29692
# Compiler flag to allow reflexive dlopens.
 
29693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
29694
 
 
29695
# Compiler flag to generate shared objects directly from archives.
 
29696
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
29697
 
 
29698
# Whether the compiler copes with passing no objects directly.
 
29699
compiler_needs_object=$lt_compiler_needs_object
 
29700
 
 
29701
# Create an old-style archive from a shared archive.
 
29702
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
29703
 
 
29704
# Create a temporary old-style archive to link instead of a shared archive.
 
29705
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
29706
 
 
29707
# Commands used to build a shared archive.
 
29708
archive_cmds=$lt_archive_cmds
 
29709
archive_expsym_cmds=$lt_archive_expsym_cmds
 
29710
 
 
29711
# Commands used to build a loadable module if different from building
 
29712
# a shared archive.
 
29713
module_cmds=$lt_module_cmds
 
29714
module_expsym_cmds=$lt_module_expsym_cmds
 
29715
 
 
29716
# Whether we are building with GNU ld or not.
 
29717
with_gnu_ld=$lt_with_gnu_ld
 
29718
 
 
29719
# Flag that allows shared libraries with undefined symbols to be built.
 
29720
allow_undefined_flag=$lt_allow_undefined_flag
 
29721
 
 
29722
# Flag that enforces no undefined symbols.
 
29723
no_undefined_flag=$lt_no_undefined_flag
 
29724
 
 
29725
# Flag to hardcode \$libdir into a binary during linking.
 
29726
# This must work even if \$libdir does not exist
 
29727
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
29728
 
 
29729
# Whether we need a single "-rpath" flag with a separated argument.
 
29730
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
29731
 
 
29732
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
29733
# DIR into the resulting binary.
 
29734
hardcode_direct=$hardcode_direct
 
29735
 
 
29736
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
29737
# DIR into the resulting binary and the resulting library dependency is
 
29738
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
29739
# library is relocated.
 
29740
hardcode_direct_absolute=$hardcode_direct_absolute
 
29741
 
 
29742
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
29743
# into the resulting binary.
 
29744
hardcode_minus_L=$hardcode_minus_L
 
29745
 
 
29746
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
29747
# into the resulting binary.
 
29748
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
29749
 
 
29750
# Set to "yes" if building a shared library automatically hardcodes DIR
 
29751
# into the library and all subsequent libraries and executables linked
 
29752
# against it.
 
29753
hardcode_automatic=$hardcode_automatic
 
29754
 
 
29755
# Set to yes if linker adds runtime paths of dependent libraries
 
29756
# to runtime path list.
 
29757
inherit_rpath=$inherit_rpath
 
29758
 
 
29759
# Whether libtool must link a program against all its dependency libraries.
 
29760
link_all_deplibs=$link_all_deplibs
 
29761
 
 
29762
# Set to "yes" if exported symbols are required.
 
29763
always_export_symbols=$always_export_symbols
 
29764
 
 
29765
# The commands to list exported symbols.
 
29766
export_symbols_cmds=$lt_export_symbols_cmds
 
29767
 
 
29768
# Symbols that should not be listed in the preloaded symbols.
 
29769
exclude_expsyms=$lt_exclude_expsyms
 
29770
 
 
29771
# Symbols that must always be exported.
 
29772
include_expsyms=$lt_include_expsyms
 
29773
 
 
29774
# Commands necessary for linking programs (against libraries) with templates.
 
29775
prelink_cmds=$lt_prelink_cmds
 
29776
 
 
29777
# Commands necessary for finishing linking programs.
 
29778
postlink_cmds=$lt_postlink_cmds
 
29779
 
 
29780
# Specify filename containing input files.
 
29781
file_list_spec=$lt_file_list_spec
 
29782
 
 
29783
# How to hardcode a shared library path into an executable.
 
29784
hardcode_action=$hardcode_action
 
29785
 
 
29786
# The directories searched by this compiler when creating a shared library.
 
29787
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
29788
 
 
29789
# Dependencies to place before and after the objects being linked to
 
29790
# create a shared library.
 
29791
predep_objects=$lt_predep_objects
 
29792
postdep_objects=$lt_postdep_objects
 
29793
predeps=$lt_predeps
 
29794
postdeps=$lt_postdeps
 
29795
 
 
29796
# The library search path used internally by the compiler when linking
 
29797
# a shared library.
 
29798
compiler_lib_search_path=$lt_compiler_lib_search_path
 
29799
 
 
29800
# ### END LIBTOOL CONFIG
 
29801
 
 
29802
_LT_EOF
 
29803
 
 
29804
  case $host_os in
 
29805
  aix3*)
 
29806
    cat <<\_LT_EOF >> "$cfgfile"
 
29807
# AIX sometimes has problems with the GCC collect2 program.  For some
 
29808
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
29809
# vanish in a puff of smoke.
 
29810
if test "X${COLLECT_NAMES+set}" != Xset; then
 
29811
  COLLECT_NAMES=
 
29812
  export COLLECT_NAMES
 
29813
fi
 
29814
_LT_EOF
 
29815
    ;;
 
29816
  esac
 
29817
 
 
29818
 
 
29819
ltmain="$ac_aux_dir/ltmain.sh"
 
29820
 
 
29821
 
 
29822
  # We use sed instead of cat because bash on DJGPP gets confused if
 
29823
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
29824
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
29825
  # is reportedly fixed, but why not run on old versions too?
 
29826
  sed '$q' "$ltmain" >> "$cfgfile" \
 
29827
     || (rm -f "$cfgfile"; exit 1)
 
29828
 
 
29829
  if test x"$xsi_shell" = xyes; then
 
29830
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
29831
func_dirname ()\
 
29832
{\
 
29833
\    case ${1} in\
 
29834
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
29835
\      *  ) func_dirname_result="${3}" ;;\
 
29836
\    esac\
 
29837
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
29838
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29839
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29840
test 0 -eq $? || _lt_function_replace_fail=:
 
29841
 
 
29842
 
 
29843
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
29844
func_basename ()\
 
29845
{\
 
29846
\    func_basename_result="${1##*/}"\
 
29847
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
29848
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29849
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29850
test 0 -eq $? || _lt_function_replace_fail=:
 
29851
 
 
29852
 
 
29853
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
29854
func_dirname_and_basename ()\
 
29855
{\
 
29856
\    case ${1} in\
 
29857
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
29858
\      *  ) func_dirname_result="${3}" ;;\
 
29859
\    esac\
 
29860
\    func_basename_result="${1##*/}"\
 
29861
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
29862
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29863
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29864
test 0 -eq $? || _lt_function_replace_fail=:
 
29865
 
 
29866
 
 
29867
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
29868
func_stripname ()\
 
29869
{\
 
29870
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
29871
\    # positional parameters, so assign one to ordinary parameter first.\
 
29872
\    func_stripname_result=${3}\
 
29873
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
29874
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
29875
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
29876
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29877
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29878
test 0 -eq $? || _lt_function_replace_fail=:
 
29879
 
 
29880
 
 
29881
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
29882
func_split_long_opt ()\
 
29883
{\
 
29884
\    func_split_long_opt_name=${1%%=*}\
 
29885
\    func_split_long_opt_arg=${1#*=}\
 
29886
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
29887
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29888
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29889
test 0 -eq $? || _lt_function_replace_fail=:
 
29890
 
 
29891
 
 
29892
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
29893
func_split_short_opt ()\
 
29894
{\
 
29895
\    func_split_short_opt_arg=${1#??}\
 
29896
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
29897
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
29898
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29899
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29900
test 0 -eq $? || _lt_function_replace_fail=:
 
29901
 
 
29902
 
 
29903
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
29904
func_lo2o ()\
 
29905
{\
 
29906
\    case ${1} in\
 
29907
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
29908
\      *)    func_lo2o_result=${1} ;;\
 
29909
\    esac\
 
29910
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
29911
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29912
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29913
test 0 -eq $? || _lt_function_replace_fail=:
 
29914
 
 
29915
 
 
29916
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
29917
func_xform ()\
 
29918
{\
 
29919
    func_xform_result=${1%.*}.lo\
 
29920
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
29921
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29922
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29923
test 0 -eq $? || _lt_function_replace_fail=:
 
29924
 
 
29925
 
 
29926
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
29927
func_arith ()\
 
29928
{\
 
29929
    func_arith_result=$(( $* ))\
 
29930
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
29931
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29932
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29933
test 0 -eq $? || _lt_function_replace_fail=:
 
29934
 
 
29935
 
 
29936
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
29937
func_len ()\
 
29938
{\
 
29939
    func_len_result=${#1}\
 
29940
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
29941
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29942
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29943
test 0 -eq $? || _lt_function_replace_fail=:
 
29944
 
 
29945
fi
 
29946
 
 
29947
if test x"$lt_shell_append" = xyes; then
 
29948
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
29949
func_append ()\
 
29950
{\
 
29951
    eval "${1}+=\\${2}"\
 
29952
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
29953
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29954
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29955
test 0 -eq $? || _lt_function_replace_fail=:
 
29956
 
 
29957
 
 
29958
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
29959
func_append_quoted ()\
 
29960
{\
 
29961
\    func_quote_for_eval "${2}"\
 
29962
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
29963
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
29964
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29965
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29966
test 0 -eq $? || _lt_function_replace_fail=:
 
29967
 
 
29968
 
 
29969
  # Save a `func_append' function call where possible by direct use of '+='
 
29970
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
29971
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29972
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29973
  test 0 -eq $? || _lt_function_replace_fail=:
 
29974
else
 
29975
  # Save a `func_append' function call even when '+=' is not available
 
29976
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
29977
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
29978
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
29979
  test 0 -eq $? || _lt_function_replace_fail=:
 
29980
fi
 
29981
 
 
29982
if test x"$_lt_function_replace_fail" = x":"; then
 
29983
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
29984
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
29985
fi
 
29986
 
 
29987
 
 
29988
   mv -f "$cfgfile" "$ofile" ||
 
29989
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
29990
  chmod +x "$ofile"
 
29991
 
 
29992
 
 
29993
    cat <<_LT_EOF >> "$ofile"
 
29994
 
 
29995
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
29996
 
 
29997
# The linker used to build libraries.
 
29998
LD=$lt_LD_CXX
 
29999
 
 
30000
# How to create reloadable object files.
 
30001
reload_flag=$lt_reload_flag_CXX
 
30002
reload_cmds=$lt_reload_cmds_CXX
 
30003
 
 
30004
# Commands used to build an old-style archive.
 
30005
old_archive_cmds=$lt_old_archive_cmds_CXX
 
30006
 
 
30007
# A language specific compiler.
 
30008
CC=$lt_compiler_CXX
 
30009
 
 
30010
# Is the compiler the GNU compiler?
 
30011
with_gcc=$GCC_CXX
 
30012
 
 
30013
# Compiler flag to turn off builtin functions.
 
30014
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
30015
 
 
30016
# Additional compiler flags for building library objects.
 
30017
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
30018
 
 
30019
# How to pass a linker flag through the compiler.
 
30020
wl=$lt_lt_prog_compiler_wl_CXX
 
30021
 
 
30022
# Compiler flag to prevent dynamic linking.
 
30023
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
30024
 
 
30025
# Does compiler simultaneously support -c and -o options?
 
30026
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
30027
 
 
30028
# Whether or not to add -lc for building shared libraries.
 
30029
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
30030
 
 
30031
# Whether or not to disallow shared libs when runtime libs are static.
 
30032
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
30033
 
 
30034
# Compiler flag to allow reflexive dlopens.
 
30035
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
30036
 
 
30037
# Compiler flag to generate shared objects directly from archives.
 
30038
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
30039
 
 
30040
# Whether the compiler copes with passing no objects directly.
 
30041
compiler_needs_object=$lt_compiler_needs_object_CXX
 
30042
 
 
30043
# Create an old-style archive from a shared archive.
 
30044
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
30045
 
 
30046
# Create a temporary old-style archive to link instead of a shared archive.
 
30047
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
30048
 
 
30049
# Commands used to build a shared archive.
 
30050
archive_cmds=$lt_archive_cmds_CXX
 
30051
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
30052
 
 
30053
# Commands used to build a loadable module if different from building
 
30054
# a shared archive.
 
30055
module_cmds=$lt_module_cmds_CXX
 
30056
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
30057
 
 
30058
# Whether we are building with GNU ld or not.
 
30059
with_gnu_ld=$lt_with_gnu_ld_CXX
 
30060
 
 
30061
# Flag that allows shared libraries with undefined symbols to be built.
 
30062
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
30063
 
 
30064
# Flag that enforces no undefined symbols.
 
30065
no_undefined_flag=$lt_no_undefined_flag_CXX
 
30066
 
 
30067
# Flag to hardcode \$libdir into a binary during linking.
 
30068
# This must work even if \$libdir does not exist
 
30069
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
30070
 
 
30071
# Whether we need a single "-rpath" flag with a separated argument.
 
30072
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
30073
 
 
30074
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
30075
# DIR into the resulting binary.
 
30076
hardcode_direct=$hardcode_direct_CXX
 
30077
 
 
30078
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
30079
# DIR into the resulting binary and the resulting library dependency is
 
30080
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
30081
# library is relocated.
 
30082
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
30083
 
 
30084
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
30085
# into the resulting binary.
 
30086
hardcode_minus_L=$hardcode_minus_L_CXX
 
30087
 
 
30088
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
30089
# into the resulting binary.
 
30090
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
30091
 
 
30092
# Set to "yes" if building a shared library automatically hardcodes DIR
 
30093
# into the library and all subsequent libraries and executables linked
 
30094
# against it.
 
30095
hardcode_automatic=$hardcode_automatic_CXX
 
30096
 
 
30097
# Set to yes if linker adds runtime paths of dependent libraries
 
30098
# to runtime path list.
 
30099
inherit_rpath=$inherit_rpath_CXX
 
30100
 
 
30101
# Whether libtool must link a program against all its dependency libraries.
 
30102
link_all_deplibs=$link_all_deplibs_CXX
 
30103
 
 
30104
# Set to "yes" if exported symbols are required.
 
30105
always_export_symbols=$always_export_symbols_CXX
 
30106
 
 
30107
# The commands to list exported symbols.
 
30108
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
30109
 
 
30110
# Symbols that should not be listed in the preloaded symbols.
 
30111
exclude_expsyms=$lt_exclude_expsyms_CXX
 
30112
 
 
30113
# Symbols that must always be exported.
 
30114
include_expsyms=$lt_include_expsyms_CXX
 
30115
 
 
30116
# Commands necessary for linking programs (against libraries) with templates.
 
30117
prelink_cmds=$lt_prelink_cmds_CXX
 
30118
 
 
30119
# Commands necessary for finishing linking programs.
 
30120
postlink_cmds=$lt_postlink_cmds_CXX
 
30121
 
 
30122
# Specify filename containing input files.
 
30123
file_list_spec=$lt_file_list_spec_CXX
 
30124
 
 
30125
# How to hardcode a shared library path into an executable.
 
30126
hardcode_action=$hardcode_action_CXX
 
30127
 
 
30128
# The directories searched by this compiler when creating a shared library.
 
30129
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
30130
 
 
30131
# Dependencies to place before and after the objects being linked to
 
30132
# create a shared library.
 
30133
predep_objects=$lt_predep_objects_CXX
 
30134
postdep_objects=$lt_postdep_objects_CXX
 
30135
predeps=$lt_predeps_CXX
 
30136
postdeps=$lt_postdeps_CXX
 
30137
 
 
30138
# The library search path used internally by the compiler when linking
 
30139
# a shared library.
 
30140
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
30141
 
 
30142
# ### END LIBTOOL TAG CONFIG: CXX
 
30143
_LT_EOF
 
30144
 
 
30145
 ;;
 
30146
 
 
30147
  esac
 
30148
done # for ac_tag
 
30149
 
 
30150
 
 
30151
as_fn_exit 0
 
30152
_ACEOF
 
30153
ac_clean_files=$ac_clean_files_save
 
30154
 
 
30155
test $ac_write_fail = 0 ||
 
30156
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
30157
 
 
30158
 
 
30159
# configure is writing to config.log, and then calls config.status.
 
30160
# config.status does its own redirection, appending to config.log.
 
30161
# Unfortunately, on DOS this fails, as config.log is still kept open
 
30162
# by configure, so config.status won't be able to write to it; its
 
30163
# output is simply discarded.  So we exec the FD to /dev/null,
 
30164
# effectively closing config.log, so it can be properly (re)opened and
 
30165
# appended to by config.status.  When coming back to configure, we
 
30166
# need to make the FD available again.
 
30167
if test "$no_create" != yes; then
 
30168
  ac_cs_success=:
 
30169
  ac_config_status_args=
 
30170
  test "$silent" = yes &&
 
30171
    ac_config_status_args="$ac_config_status_args --quiet"
 
30172
  exec 5>/dev/null
 
30173
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
30174
  exec 5>>config.log
 
30175
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
30176
  # would make configure fail if this is the last instruction.
 
30177
  $ac_cs_success || as_fn_exit 1
 
30178
fi
 
30179
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
30180
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
30181
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
30182
fi
 
30183
 
 
30184
 
 
30185
# Report on what we found.
 
30186
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
30187
$as_echo "$as_me: " >&6;}
 
30188
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************************************" >&5
 
30189
$as_echo "$as_me: **************************************************************" >&6;}
 
30190
{ $as_echo "$as_me:${as_lineno-$LINENO}:  $PACKAGE_NAME configured as follows:" >&5
 
30191
$as_echo "$as_me:  $PACKAGE_NAME configured as follows:" >&6;}
 
30192
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************************************" >&5
 
30193
$as_echo "$as_me: **************************************************************" >&6;}
 
30194
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
30195
$as_echo "$as_me: " >&6;}
 
30196
{ $as_echo "$as_me:${as_lineno-$LINENO}:                 TARGET=$ga_cv_target" >&5
 
30197
$as_echo "$as_me:                 TARGET=$ga_cv_target" >&6;}
 
30198
{ $as_echo "$as_me:${as_lineno-$LINENO}:              MSG_COMMS=$ga_msg_comms" >&5
 
30199
$as_echo "$as_me:              MSG_COMMS=$ga_msg_comms" >&6;}
 
30200
{ $as_echo "$as_me:${as_lineno-$LINENO}:             GA_MP_LIBS=$GA_MP_LIBS" >&5
 
30201
$as_echo "$as_me:             GA_MP_LIBS=$GA_MP_LIBS" >&6;}
 
30202
{ $as_echo "$as_me:${as_lineno-$LINENO}:          GA_MP_LDFLAGS=$GA_MP_LDFLAGS" >&5
 
30203
$as_echo "$as_me:          GA_MP_LDFLAGS=$GA_MP_LDFLAGS" >&6;}
 
30204
{ $as_echo "$as_me:${as_lineno-$LINENO}:         GA_MP_CPPFLAGS=$GA_MP_CPPFLAGS" >&5
 
30205
$as_echo "$as_me:         GA_MP_CPPFLAGS=$GA_MP_CPPFLAGS" >&6;}
 
30206
{ $as_echo "$as_me:${as_lineno-$LINENO}:          ARMCI_NETWORK=$ga_armci_network" >&5
 
30207
$as_echo "$as_me:          ARMCI_NETWORK=$ga_armci_network" >&6;}
 
30208
{ $as_echo "$as_me:${as_lineno-$LINENO}:  ARMCI_NETWORK_LDFLAGS=$ARMCI_NETWORK_LDFLAGS" >&5
 
30209
$as_echo "$as_me:  ARMCI_NETWORK_LDFLAGS=$ARMCI_NETWORK_LDFLAGS" >&6;}
 
30210
{ $as_echo "$as_me:${as_lineno-$LINENO}:     ARMCI_NETWORK_LIBS=$ARMCI_NETWORK_LIBS" >&5
 
30211
$as_echo "$as_me:     ARMCI_NETWORK_LIBS=$ARMCI_NETWORK_LIBS" >&6;}
 
30212
{ $as_echo "$as_me:${as_lineno-$LINENO}: ARMCI_NETWORK_CPPFLAGS=$ARMCI_NETWORK_CPPFLAGS" >&5
 
30213
$as_echo "$as_me: ARMCI_NETWORK_CPPFLAGS=$ARMCI_NETWORK_CPPFLAGS" >&6;}
 
30214
{ $as_echo "$as_me:${as_lineno-$LINENO}:                     CC=$CC" >&5
 
30215
$as_echo "$as_me:                     CC=$CC" >&6;}
 
30216
if test "x$with_mpi_wrappers" = xyes; then :
 
30217
 
 
30218
{ $as_echo "$as_me:${as_lineno-$LINENO}:           unwrapped CC=$ga_cv_mpic_naked" >&5
 
30219
$as_echo "$as_me:           unwrapped CC=$ga_cv_mpic_naked" >&6;}
 
30220
 
 
30221
fi
 
30222
{ $as_echo "$as_me:${as_lineno-$LINENO}:                 CFLAGS=$CFLAGS" >&5
 
30223
$as_echo "$as_me:                 CFLAGS=$CFLAGS" >&6;}
 
30224
{ $as_echo "$as_me:${as_lineno-$LINENO}:             ARMCI_COPT=$ARMCI_COPT" >&5
 
30225
$as_echo "$as_me:             ARMCI_COPT=$ARMCI_COPT" >&6;}
 
30226
if test "x$enable_cxx" = xyes; then :
 
30227
 
 
30228
{ $as_echo "$as_me:${as_lineno-$LINENO}:                    CXX=$CXX" >&5
 
30229
$as_echo "$as_me:                    CXX=$CXX" >&6;}
 
30230
if test "x$with_mpi_wrappers" = xyes; then :
 
30231
 
 
30232
{ $as_echo "$as_me:${as_lineno-$LINENO}:          unwrapped CXX=$ga_cv_mpicxx_naked" >&5
 
30233
$as_echo "$as_me:          unwrapped CXX=$ga_cv_mpicxx_naked" >&6;}
 
30234
 
 
30235
fi
 
30236
{ $as_echo "$as_me:${as_lineno-$LINENO}:               CXXFLAGS=$CXXFLAGS" >&5
 
30237
$as_echo "$as_me:               CXXFLAGS=$CXXFLAGS" >&6;}
 
30238
{ $as_echo "$as_me:${as_lineno-$LINENO}:           ARMCI_CXXOPT=$ARMCI_CXXOPT" >&5
 
30239
$as_echo "$as_me:           ARMCI_CXXOPT=$ARMCI_CXXOPT" >&6;}
 
30240
 
 
30241
fi
 
30242
{ $as_echo "$as_me:${as_lineno-$LINENO}:                    CPP=$CPP" >&5
 
30243
$as_echo "$as_me:                    CPP=$CPP" >&6;}
 
30244
{ $as_echo "$as_me:${as_lineno-$LINENO}:               CPPFLAGS=$CPPFLAGS" >&5
 
30245
$as_echo "$as_me:               CPPFLAGS=$CPPFLAGS" >&6;}
 
30246
{ $as_echo "$as_me:${as_lineno-$LINENO}:                LDFLAGS=$LDFLAGS" >&5
 
30247
$as_echo "$as_me:                LDFLAGS=$LDFLAGS" >&6;}
 
30248
{ $as_echo "$as_me:${as_lineno-$LINENO}:                   LIBS=$LIBS" >&5
 
30249
$as_echo "$as_me:                   LIBS=$LIBS" >&6;}
 
30250
{ $as_echo "$as_me:${as_lineno-$LINENO}:                  FLIBS=$FLIBS" >&5
 
30251
$as_echo "$as_me:                  FLIBS=$FLIBS" >&6;}
 
30252
{ $as_echo "$as_me:${as_lineno-$LINENO}:                     AR=$AR" >&5
 
30253
$as_echo "$as_me:                     AR=$AR" >&6;}
 
30254
{ $as_echo "$as_me:${as_lineno-$LINENO}:               AR_FLAGS=$AR_FLAGS" >&5
 
30255
$as_echo "$as_me:               AR_FLAGS=$AR_FLAGS" >&6;}
 
30256
{ $as_echo "$as_me:${as_lineno-$LINENO}:                   CCAS=$CCAS" >&5
 
30257
$as_echo "$as_me:                   CCAS=$CCAS" >&6;}
 
30258
{ $as_echo "$as_me:${as_lineno-$LINENO}:             CCAS_FLAGS=$CCAS_FLAGS" >&5
 
30259
$as_echo "$as_me:             CCAS_FLAGS=$CCAS_FLAGS" >&6;}
 
30260
{ $as_echo "$as_me:${as_lineno-$LINENO}:                   DEFS=$DEFS" >&5
 
30261
$as_echo "$as_me:                   DEFS=$DEFS" >&6;}
 
30262
{ $as_echo "$as_me:${as_lineno-$LINENO}:                  SHELL=$SHELL" >&5
 
30263
$as_echo "$as_me:                  SHELL=$SHELL" >&6;}
 
30264
case $ga_msg_comms in #(
 
30265
  MPI) :
 
30266
 
 
30267
{ $as_echo "$as_me:${as_lineno-$LINENO}:                MPIEXEC=$MPIEXEC" >&5
 
30268
$as_echo "$as_me:                MPIEXEC=$MPIEXEC" >&6;}
 
30269
 ;; #(
 
30270
  *) :
 
30271
     ;;
 
30272
esac
 
30273
{ $as_echo "$as_me:${as_lineno-$LINENO}:                 NPROCS=$NPROCS" >&5
 
30274
$as_echo "$as_me:                 NPROCS=$NPROCS" >&6;}
 
30275
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
 
30276
$as_echo "$as_me: " >&6;}