1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libfabric 1.10.1.
4#
5# Report bugs to <ofiwg@lists.openfabrics.org>.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 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
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
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
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
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
244fi; }
245IFS=$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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
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
278$0: ofiwg@lists.openfabrics.org about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_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.
316as_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.
326as_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.
374as_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.
384if (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  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # 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.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # 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.
419as_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
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_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.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_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
511ECHO_C= ECHO_N= ECHO_T=
512case `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';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (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
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_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.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 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.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libfabric'
592PACKAGE_TARNAME='libfabric'
593PACKAGE_VERSION='1.10.1'
594PACKAGE_STRING='libfabric 1.10.1'
595PACKAGE_BUGREPORT='ofiwg@lists.openfabrics.org'
596PACKAGE_URL=''
597
598ac_unique_file="src/fabric.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640HAVE_DIRECT_FALSE
641HAVE_DIRECT_TRUE
642PROVIDER_DIRECT
643FI_PC_PRIVATE_LIBS
644FI_PC_PUBLIC_LIBS
645FI_PC_CFLAGS
646PROVIDERS_STATIC
647PROVIDERS_DL
648PROVIDERS_TO_BUILD
649HAVE_HOOK_DEBUG_DL_FALSE
650HAVE_HOOK_DEBUG_DL_TRUE
651HAVE_HOOK_DEBUG_FALSE
652HAVE_HOOK_DEBUG_TRUE
653HAVE_PERF_DL_FALSE
654HAVE_PERF_DL_TRUE
655HAVE_PERF_FALSE
656HAVE_PERF_TRUE
657HAVE_RSTREAM_DL_FALSE
658HAVE_RSTREAM_DL_TRUE
659HAVE_RSTREAM_FALSE
660HAVE_RSTREAM_TRUE
661HAVE_SHM_DL_FALSE
662HAVE_SHM_DL_TRUE
663HAVE_SHM_FALSE
664HAVE_SHM_TRUE
665shm_lib_LIBS
666shm_lib_LDFLAGS
667shm_lib_CPPFLAGS
668HAVE_BGQ_DL_FALSE
669HAVE_BGQ_DL_TRUE
670HAVE_BGQ_FALSE
671HAVE_BGQ_TRUE
672bgq_fabric_direct_thread
673bgq_fabric_direct_mr
674bgq_fabric_direct_av
675bgq_fabric_direct_progress
676bgq_external_source
677bgq_driver
678HAVE_RXD_DL_FALSE
679HAVE_RXD_DL_TRUE
680HAVE_RXD_FALSE
681HAVE_RXD_TRUE
682HAVE_MRAIL_DL_FALSE
683HAVE_MRAIL_DL_TRUE
684HAVE_MRAIL_FALSE
685HAVE_MRAIL_TRUE
686HAVE_RXM_DL_FALSE
687HAVE_RXM_DL_TRUE
688HAVE_RXM_FALSE
689HAVE_RXM_TRUE
690HAVE_TCP_DL_FALSE
691HAVE_TCP_DL_TRUE
692HAVE_TCP_FALSE
693HAVE_TCP_TRUE
694HAVE_UDP_DL_FALSE
695HAVE_UDP_DL_TRUE
696HAVE_UDP_FALSE
697HAVE_UDP_TRUE
698udp_shm_LIBS
699udp_shm_LDFLAGS
700udp_shm_CPPFLAGS
701HAVE_GNI_DL_FALSE
702HAVE_GNI_DL_TRUE
703HAVE_GNI_FALSE
704HAVE_GNI_TRUE
705gnitest_LIBS
706gnitest_LDFLAGS
707gnitest_CPPFLAGS
708gni_LDFLAGS
709gni_CPPFLAGS
710HAVE_CRITERION_FALSE
711HAVE_CRITERION_TRUE
712CRAY_KDREG_LIBS
713CRAY_KDREG_CFLAGS
714CRAY_PMI_LIBS
715CRAY_PMI_CFLAGS
716CRAY_XPMEM_LIBS
717CRAY_XPMEM_CFLAGS
718CRAY_UDREG_LIBS
719CRAY_UDREG_CFLAGS
720CRAY_ALPS_UTIL_LIBS
721CRAY_ALPS_UTIL_CFLAGS
722CRAY_ALPS_LLI_STATIC_LIBS
723CRAY_ALPS_LLI_LIBS
724CRAY_ALPS_LLI_CFLAGS
725CRAY_UGNI_STATIC_LIBS
726CRAY_UGNI_LIBS
727CRAY_UGNI_CFLAGS
728CRAY_GNI_HEADERS_LIBS
729CRAY_GNI_HEADERS_CFLAGS
730FI_PKG_CONFIG_LIBDIR
731FI_PKG_CONFIG_PATH
732FI_PKG_CONFIG
733HAVE_USNIC_DL_FALSE
734HAVE_USNIC_DL_TRUE
735HAVE_USNIC_FALSE
736HAVE_USNIC_TRUE
737USNIC_BUILD_FAKE_VERBS_DRIVER_FALSE
738USNIC_BUILD_FAKE_VERBS_DRIVER_TRUE
739usnic_LIBS
740usnic_LDFLAGS
741usnic_CPPFLAGS
742HAVE_LIBNL3
743usnic_nl_LIBS
744usnic_nl_LDFLAGS
745usnic_nl_CPPFLAGS
746HAVE_EFA_DL_FALSE
747HAVE_EFA_DL_TRUE
748HAVE_EFA_FALSE
749HAVE_EFA_TRUE
750efa_LIBS
751efa_LDFLAGS
752efa_CPPFLAGS
753efadv_LIBS
754efadv_LDFLAGS
755efadv_CPPFLAGS
756efa_ibverbs_LIBS
757efa_ibverbs_LDFLAGS
758efa_ibverbs_CPPFLAGS
759HAVE_VERBS_DL_FALSE
760HAVE_VERBS_DL_TRUE
761HAVE_VERBS_FALSE
762HAVE_VERBS_TRUE
763verbs_LIBS
764verbs_LDFLAGS
765verbs_CPPFLAGS
766verbs_rdmacm_ex_LIBS
767verbs_rdmacm_ex_LDFLAGS
768verbs_rdmacm_ex_CPPFLAGS
769verbs_rdmacm_LIBS
770verbs_rdmacm_LDFLAGS
771verbs_rdmacm_CPPFLAGS
772verbs_ibverbs_LIBS
773verbs_ibverbs_LDFLAGS
774verbs_ibverbs_CPPFLAGS
775HAVE_SOCKETS_DL_FALSE
776HAVE_SOCKETS_DL_TRUE
777HAVE_SOCKETS_FALSE
778HAVE_SOCKETS_TRUE
779sockets_LIBS
780sockets_LDFLAGS
781sockets_CPPFLAGS
782HAVE_PSM2_DL_FALSE
783HAVE_PSM2_DL_TRUE
784HAVE_PSM2_FALSE
785HAVE_PSM2_TRUE
786psm2_LIBS
787psm2_LDFLAGS
788psm2_CPPFLAGS
789HAVE_PSM2_SRC_FALSE
790HAVE_PSM2_SRC_TRUE
791psm2_ARCH
792HAVE_PSM2_X86_64
793HAVE_PSM2_X86_64_FALSE
794HAVE_PSM2_X86_64_TRUE
795FI_DIRECT_H_IN_FALSE
796FI_DIRECT_H_IN_TRUE
797HAVE_PSM_DL_FALSE
798HAVE_PSM_DL_TRUE
799HAVE_PSM_FALSE
800HAVE_PSM_TRUE
801psm_LIBS
802psm_LDFLAGS
803psm_CPPFLAGS
804cuda_LIBS
805cuda_LDFLAGS
806cuda_CPPFLAGS
807HAVE_CLOCK_GETTIME_FALSE
808HAVE_CLOCK_GETTIME_TRUE
809HAVE_LD_VERSION_SCRIPT_FALSE
810HAVE_LD_VERSION_SCRIPT_TRUE
811EMBEDDED_FALSE
812EMBEDDED_TRUE
813HAVE_LINUX_PERF_RDPMC_FALSE
814HAVE_LINUX_PERF_RDPMC_TRUE
815LT_SYS_LIBRARY_PATH
816OTOOL64
817OTOOL
818LIPO
819NMEDIT
820DSYMUTIL
821MANIFEST_TOOL
822RANLIB
823DLLTOOL
824OBJDUMP
825LN_S
826NM
827ac_ct_DUMPBIN
828DUMPBIN
829LD
830FGREP
831SED
832LIBTOOL
833EGREP
834GREP
835CPP
836ac_ct_AR
837AR
838am__fastdepCCAS_FALSE
839am__fastdepCCAS_TRUE
840CCASDEPMODE
841CCASFLAGS
842CCAS
843am__fastdepCC_FALSE
844am__fastdepCC_TRUE
845CCDEPMODE
846am__nodep
847AMDEPBACKSLASH
848AMDEP_FALSE
849AMDEP_TRUE
850am__quote
851am__include
852DEPDIR
853OBJEXT
854EXEEXT
855ac_ct_CC
856CPPFLAGS
857LDFLAGS
858CFLAGS
859CC
860FREEBSD_FALSE
861FREEBSD_TRUE
862LINUX_FALSE
863LINUX_TRUE
864MACOS_FALSE
865MACOS_TRUE
866host_os
867host_vendor
868host_cpu
869host
870build_os
871build_vendor
872build_cpu
873build
874AM_BACKSLASH
875AM_DEFAULT_VERBOSITY
876AM_DEFAULT_V
877AM_V
878am__untar
879am__tar
880AMTAR
881am__leading_dot
882SET_MAKE
883AWK
884mkdir_p
885MKDIR_P
886INSTALL_STRIP_PROGRAM
887STRIP
888install_sh
889MAKEINFO
890AUTOHEADER
891AUTOMAKE
892AUTOCONF
893ACLOCAL
894VERSION
895PACKAGE
896CYGPATH_W
897am__isrc
898INSTALL_DATA
899INSTALL_SCRIPT
900INSTALL_PROGRAM
901target_alias
902host_alias
903build_alias
904LIBS
905ECHO_T
906ECHO_N
907ECHO_C
908DEFS
909mandir
910localedir
911libdir
912psdir
913pdfdir
914dvidir
915htmldir
916infodir
917docdir
918oldincludedir
919includedir
920localstatedir
921sharedstatedir
922sysconfdir
923datadir
924datarootdir
925libexecdir
926sbindir
927bindir
928program_transform_name
929prefix
930exec_prefix
931PACKAGE_URL
932PACKAGE_BUGREPORT
933PACKAGE_STRING
934PACKAGE_VERSION
935PACKAGE_TARNAME
936PACKAGE_NAME
937PATH_SEPARATOR
938SHELL'
939ac_subst_files='FI_DIRECT_PROVIDER_API_10'
940ac_user_opts='
941enable_option_checking
942enable_silent_rules
943with_build_id
944enable_dependency_tracking
945with_valgrind
946enable_direct
947enable_atomics
948enable_debug
949enable_shared
950enable_static
951with_pic
952enable_fast_install
953with_aix_soname
954with_gnu_ld
955with_sysroot
956enable_libtool_lock
957with_dlopen
958enable_picky
959enable_epoll
960enable_embedded
961with_cuda
962enable_psm
963enable_psm2
964with_psm2_src
965with_numa
966enable_psm2_mq_req_user
967enable_psm2_mq_fp_msg
968enable_sockets
969enable_verbs
970enable_efa
971enable_efa_mem_poisoning
972enable_usnic
973with_libnl
974enable_gni
975enable_xpmem
976enable_ugni_static
977with_criterion
978with_kdreg
979enable_udp
980enable_tcp
981enable_rxm
982enable_mrail
983enable_rxd
984enable_bgq
985with_bgq_driver
986with_bgq_src
987with_bgq_progress
988with_bgq_mr
989enable_shm
990enable_rstream
991enable_perf
992enable_hook_debug
993'
994      ac_precious_vars='build_alias
995host_alias
996target_alias
997CC
998CFLAGS
999LDFLAGS
1000LIBS
1001CPPFLAGS
1002CCAS
1003CCASFLAGS
1004CPP
1005LT_SYS_LIBRARY_PATH
1006FI_PKG_CONFIG
1007FI_PKG_CONFIG_PATH
1008FI_PKG_CONFIG_LIBDIR
1009CRAY_GNI_HEADERS_CFLAGS
1010CRAY_GNI_HEADERS_LIBS
1011CRAY_UGNI_CFLAGS
1012CRAY_UGNI_LIBS
1013CRAY_UGNI_STATIC_LIBS
1014CRAY_ALPS_LLI_CFLAGS
1015CRAY_ALPS_LLI_LIBS
1016CRAY_ALPS_LLI_STATIC_LIBS
1017CRAY_ALPS_UTIL_CFLAGS
1018CRAY_ALPS_UTIL_LIBS
1019CRAY_UDREG_CFLAGS
1020CRAY_UDREG_LIBS
1021CRAY_XPMEM_CFLAGS
1022CRAY_XPMEM_LIBS
1023CRAY_PMI_CFLAGS
1024CRAY_PMI_LIBS
1025CRAY_KDREG_CFLAGS
1026CRAY_KDREG_LIBS'
1027
1028
1029# Initialize some variables set by options.
1030ac_init_help=
1031ac_init_version=false
1032ac_unrecognized_opts=
1033ac_unrecognized_sep=
1034# The variables have the same names as the options, with
1035# dashes changed to underlines.
1036cache_file=/dev/null
1037exec_prefix=NONE
1038no_create=
1039no_recursion=
1040prefix=NONE
1041program_prefix=NONE
1042program_suffix=NONE
1043program_transform_name=s,x,x,
1044silent=
1045site=
1046srcdir=
1047verbose=
1048x_includes=NONE
1049x_libraries=NONE
1050
1051# Installation directory options.
1052# These are left unexpanded so users can "make install exec_prefix=/foo"
1053# and all the variables that are supposed to be based on exec_prefix
1054# by default will actually change.
1055# Use braces instead of parens because sh, perl, etc. also accept them.
1056# (The list follows the same order as the GNU Coding Standards.)
1057bindir='${exec_prefix}/bin'
1058sbindir='${exec_prefix}/sbin'
1059libexecdir='${exec_prefix}/libexec'
1060datarootdir='${prefix}/share'
1061datadir='${datarootdir}'
1062sysconfdir='${prefix}/etc'
1063sharedstatedir='${prefix}/com'
1064localstatedir='${prefix}/var'
1065includedir='${prefix}/include'
1066oldincludedir='/usr/include'
1067docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068infodir='${datarootdir}/info'
1069htmldir='${docdir}'
1070dvidir='${docdir}'
1071pdfdir='${docdir}'
1072psdir='${docdir}'
1073libdir='${exec_prefix}/lib'
1074localedir='${datarootdir}/locale'
1075mandir='${datarootdir}/man'
1076
1077ac_prev=
1078ac_dashdash=
1079for ac_option
1080do
1081  # If the previous option needs an argument, assign it.
1082  if test -n "$ac_prev"; then
1083    eval $ac_prev=\$ac_option
1084    ac_prev=
1085    continue
1086  fi
1087
1088  case $ac_option in
1089  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090  *=)   ac_optarg= ;;
1091  *)    ac_optarg=yes ;;
1092  esac
1093
1094  # Accept the important Cygnus configure options, so we can diagnose typos.
1095
1096  case $ac_dashdash$ac_option in
1097  --)
1098    ac_dashdash=yes ;;
1099
1100  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1101    ac_prev=bindir ;;
1102  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1103    bindir=$ac_optarg ;;
1104
1105  -build | --build | --buil | --bui | --bu)
1106    ac_prev=build_alias ;;
1107  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1108    build_alias=$ac_optarg ;;
1109
1110  -cache-file | --cache-file | --cache-fil | --cache-fi \
1111  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1112    ac_prev=cache_file ;;
1113  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1114  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1115    cache_file=$ac_optarg ;;
1116
1117  --config-cache | -C)
1118    cache_file=config.cache ;;
1119
1120  -datadir | --datadir | --datadi | --datad)
1121    ac_prev=datadir ;;
1122  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1123    datadir=$ac_optarg ;;
1124
1125  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1126  | --dataroo | --dataro | --datar)
1127    ac_prev=datarootdir ;;
1128  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1129  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1130    datarootdir=$ac_optarg ;;
1131
1132  -disable-* | --disable-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid feature name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"enable_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval enable_$ac_useropt=no ;;
1147
1148  -docdir | --docdir | --docdi | --doc | --do)
1149    ac_prev=docdir ;;
1150  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151    docdir=$ac_optarg ;;
1152
1153  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154    ac_prev=dvidir ;;
1155  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156    dvidir=$ac_optarg ;;
1157
1158  -enable-* | --enable-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid feature name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"enable_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval enable_$ac_useropt=\$ac_optarg ;;
1173
1174  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176  | --exec | --exe | --ex)
1177    ac_prev=exec_prefix ;;
1178  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180  | --exec=* | --exe=* | --ex=*)
1181    exec_prefix=$ac_optarg ;;
1182
1183  -gas | --gas | --ga | --g)
1184    # Obsolete; use --with-gas.
1185    with_gas=yes ;;
1186
1187  -help | --help | --hel | --he | -h)
1188    ac_init_help=long ;;
1189  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190    ac_init_help=recursive ;;
1191  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192    ac_init_help=short ;;
1193
1194  -host | --host | --hos | --ho)
1195    ac_prev=host_alias ;;
1196  -host=* | --host=* | --hos=* | --ho=*)
1197    host_alias=$ac_optarg ;;
1198
1199  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1200    ac_prev=htmldir ;;
1201  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1202  | --ht=*)
1203    htmldir=$ac_optarg ;;
1204
1205  -includedir | --includedir | --includedi | --included | --include \
1206  | --includ | --inclu | --incl | --inc)
1207    ac_prev=includedir ;;
1208  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209  | --includ=* | --inclu=* | --incl=* | --inc=*)
1210    includedir=$ac_optarg ;;
1211
1212  -infodir | --infodir | --infodi | --infod | --info | --inf)
1213    ac_prev=infodir ;;
1214  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215    infodir=$ac_optarg ;;
1216
1217  -libdir | --libdir | --libdi | --libd)
1218    ac_prev=libdir ;;
1219  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220    libdir=$ac_optarg ;;
1221
1222  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223  | --libexe | --libex | --libe)
1224    ac_prev=libexecdir ;;
1225  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226  | --libexe=* | --libex=* | --libe=*)
1227    libexecdir=$ac_optarg ;;
1228
1229  -localedir | --localedir | --localedi | --localed | --locale)
1230    ac_prev=localedir ;;
1231  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232    localedir=$ac_optarg ;;
1233
1234  -localstatedir | --localstatedir | --localstatedi | --localstated \
1235  | --localstate | --localstat | --localsta | --localst | --locals)
1236    ac_prev=localstatedir ;;
1237  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239    localstatedir=$ac_optarg ;;
1240
1241  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1242    ac_prev=mandir ;;
1243  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244    mandir=$ac_optarg ;;
1245
1246  -nfp | --nfp | --nf)
1247    # Obsolete; use --without-fp.
1248    with_fp=no ;;
1249
1250  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251  | --no-cr | --no-c | -n)
1252    no_create=yes ;;
1253
1254  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256    no_recursion=yes ;;
1257
1258  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260  | --oldin | --oldi | --old | --ol | --o)
1261    ac_prev=oldincludedir ;;
1262  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265    oldincludedir=$ac_optarg ;;
1266
1267  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1268    ac_prev=prefix ;;
1269  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270    prefix=$ac_optarg ;;
1271
1272  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273  | --program-pre | --program-pr | --program-p)
1274    ac_prev=program_prefix ;;
1275  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277    program_prefix=$ac_optarg ;;
1278
1279  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280  | --program-suf | --program-su | --program-s)
1281    ac_prev=program_suffix ;;
1282  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284    program_suffix=$ac_optarg ;;
1285
1286  -program-transform-name | --program-transform-name \
1287  | --program-transform-nam | --program-transform-na \
1288  | --program-transform-n | --program-transform- \
1289  | --program-transform | --program-transfor \
1290  | --program-transfo | --program-transf \
1291  | --program-trans | --program-tran \
1292  | --progr-tra | --program-tr | --program-t)
1293    ac_prev=program_transform_name ;;
1294  -program-transform-name=* | --program-transform-name=* \
1295  | --program-transform-nam=* | --program-transform-na=* \
1296  | --program-transform-n=* | --program-transform-=* \
1297  | --program-transform=* | --program-transfor=* \
1298  | --program-transfo=* | --program-transf=* \
1299  | --program-trans=* | --program-tran=* \
1300  | --progr-tra=* | --program-tr=* | --program-t=*)
1301    program_transform_name=$ac_optarg ;;
1302
1303  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1304    ac_prev=pdfdir ;;
1305  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306    pdfdir=$ac_optarg ;;
1307
1308  -psdir | --psdir | --psdi | --psd | --ps)
1309    ac_prev=psdir ;;
1310  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311    psdir=$ac_optarg ;;
1312
1313  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314  | -silent | --silent | --silen | --sile | --sil)
1315    silent=yes ;;
1316
1317  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318    ac_prev=sbindir ;;
1319  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320  | --sbi=* | --sb=*)
1321    sbindir=$ac_optarg ;;
1322
1323  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325  | --sharedst | --shareds | --shared | --share | --shar \
1326  | --sha | --sh)
1327    ac_prev=sharedstatedir ;;
1328  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331  | --sha=* | --sh=*)
1332    sharedstatedir=$ac_optarg ;;
1333
1334  -site | --site | --sit)
1335    ac_prev=site ;;
1336  -site=* | --site=* | --sit=*)
1337    site=$ac_optarg ;;
1338
1339  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340    ac_prev=srcdir ;;
1341  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342    srcdir=$ac_optarg ;;
1343
1344  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345  | --syscon | --sysco | --sysc | --sys | --sy)
1346    ac_prev=sysconfdir ;;
1347  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349    sysconfdir=$ac_optarg ;;
1350
1351  -target | --target | --targe | --targ | --tar | --ta | --t)
1352    ac_prev=target_alias ;;
1353  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354    target_alias=$ac_optarg ;;
1355
1356  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357    verbose=yes ;;
1358
1359  -version | --version | --versio | --versi | --vers | -V)
1360    ac_init_version=: ;;
1361
1362  -with-* | --with-*)
1363    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364    # Reject names that are not valid shell variable names.
1365    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366      as_fn_error $? "invalid package name: $ac_useropt"
1367    ac_useropt_orig=$ac_useropt
1368    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369    case $ac_user_opts in
1370      *"
1371"with_$ac_useropt"
1372"*) ;;
1373      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374	 ac_unrecognized_sep=', ';;
1375    esac
1376    eval with_$ac_useropt=\$ac_optarg ;;
1377
1378  -without-* | --without-*)
1379    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380    # Reject names that are not valid shell variable names.
1381    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382      as_fn_error $? "invalid package name: $ac_useropt"
1383    ac_useropt_orig=$ac_useropt
1384    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385    case $ac_user_opts in
1386      *"
1387"with_$ac_useropt"
1388"*) ;;
1389      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390	 ac_unrecognized_sep=', ';;
1391    esac
1392    eval with_$ac_useropt=no ;;
1393
1394  --x)
1395    # Obsolete; use --with-x.
1396    with_x=yes ;;
1397
1398  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399  | --x-incl | --x-inc | --x-in | --x-i)
1400    ac_prev=x_includes ;;
1401  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403    x_includes=$ac_optarg ;;
1404
1405  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407    ac_prev=x_libraries ;;
1408  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410    x_libraries=$ac_optarg ;;
1411
1412  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413Try \`$0 --help' for more information"
1414    ;;
1415
1416  *=*)
1417    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418    # Reject names that are not valid shell variable names.
1419    case $ac_envvar in #(
1420      '' | [0-9]* | *[!_$as_cr_alnum]* )
1421      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1422    esac
1423    eval $ac_envvar=\$ac_optarg
1424    export $ac_envvar ;;
1425
1426  *)
1427    # FIXME: should be removed in autoconf 3.0.
1428    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1432    ;;
1433
1434  esac
1435done
1436
1437if test -n "$ac_prev"; then
1438  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439  as_fn_error $? "missing argument to $ac_option"
1440fi
1441
1442if test -n "$ac_unrecognized_opts"; then
1443  case $enable_option_checking in
1444    no) ;;
1445    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1447  esac
1448fi
1449
1450# Check all directory arguments for consistency.
1451for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452		datadir sysconfdir sharedstatedir localstatedir includedir \
1453		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454		libdir localedir mandir
1455do
1456  eval ac_val=\$$ac_var
1457  # Remove trailing slashes.
1458  case $ac_val in
1459    */ )
1460      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461      eval $ac_var=\$ac_val;;
1462  esac
1463  # Be sure to have absolute directory names.
1464  case $ac_val in
1465    [\\/$]* | ?:[\\/]* )  continue;;
1466    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1467  esac
1468  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469done
1470
1471# There might be people who depend on the old broken behavior: `$host'
1472# used to hold the argument of --host etc.
1473# FIXME: To remove some day.
1474build=$build_alias
1475host=$host_alias
1476target=$target_alias
1477
1478# FIXME: To remove some day.
1479if test "x$host_alias" != x; then
1480  if test "x$build_alias" = x; then
1481    cross_compiling=maybe
1482  elif test "x$build_alias" != "x$host_alias"; then
1483    cross_compiling=yes
1484  fi
1485fi
1486
1487ac_tool_prefix=
1488test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490test "$silent" = yes && exec 6>/dev/null
1491
1492
1493ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494ac_ls_di=`ls -di .` &&
1495ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496  as_fn_error $? "working directory cannot be determined"
1497test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498  as_fn_error $? "pwd does not report name of working directory"
1499
1500
1501# Find the source files, if location was not specified.
1502if test -z "$srcdir"; then
1503  ac_srcdir_defaulted=yes
1504  # Try the directory containing this script, then the parent directory.
1505  ac_confdir=`$as_dirname -- "$as_myself" ||
1506$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507	 X"$as_myself" : 'X\(//\)[^/]' \| \
1508	 X"$as_myself" : 'X\(//\)$' \| \
1509	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510$as_echo X"$as_myself" |
1511    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512	    s//\1/
1513	    q
1514	  }
1515	  /^X\(\/\/\)[^/].*/{
1516	    s//\1/
1517	    q
1518	  }
1519	  /^X\(\/\/\)$/{
1520	    s//\1/
1521	    q
1522	  }
1523	  /^X\(\/\).*/{
1524	    s//\1/
1525	    q
1526	  }
1527	  s/.*/./; q'`
1528  srcdir=$ac_confdir
1529  if test ! -r "$srcdir/$ac_unique_file"; then
1530    srcdir=..
1531  fi
1532else
1533  ac_srcdir_defaulted=no
1534fi
1535if test ! -r "$srcdir/$ac_unique_file"; then
1536  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1538fi
1539ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540ac_abs_confdir=`(
1541	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1542	pwd)`
1543# When building in place, set srcdir=.
1544if test "$ac_abs_confdir" = "$ac_pwd"; then
1545  srcdir=.
1546fi
1547# Remove unnecessary trailing slashes from srcdir.
1548# Double slashes in file names in object file debugging info
1549# mess up M-x gdb in Emacs.
1550case $srcdir in
1551*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552esac
1553for ac_var in $ac_precious_vars; do
1554  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555  eval ac_env_${ac_var}_value=\$${ac_var}
1556  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558done
1559
1560#
1561# Report the --help message.
1562#
1563if test "$ac_init_help" = "long"; then
1564  # Omit some internal or obsolete options to make the list less imposing.
1565  # This message is too long to be a string in the A/UX 3.1 sh.
1566  cat <<_ACEOF
1567\`configure' configures libfabric 1.10.1 to adapt to many kinds of systems.
1568
1569Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574Defaults for the options are specified in brackets.
1575
1576Configuration:
1577  -h, --help              display this help and exit
1578      --help=short        display options specific to this package
1579      --help=recursive    display the short help of all the included packages
1580  -V, --version           display version information and exit
1581  -q, --quiet, --silent   do not print \`checking ...' messages
1582      --cache-file=FILE   cache test results in FILE [disabled]
1583  -C, --config-cache      alias for \`--cache-file=config.cache'
1584  -n, --no-create         do not create output files
1585      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587Installation directories:
1588  --prefix=PREFIX         install architecture-independent files in PREFIX
1589                          [$ac_default_prefix]
1590  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                          [PREFIX]
1592
1593By default, \`make install' will install all the files in
1594\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596for instance \`--prefix=\$HOME'.
1597
1598For better control, use the options below.
1599
1600Fine tuning of the installation directories:
1601  --bindir=DIR            user executables [EPREFIX/bin]
1602  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1603  --libexecdir=DIR        program executables [EPREFIX/libexec]
1604  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1605  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1606  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1607  --libdir=DIR            object code libraries [EPREFIX/lib]
1608  --includedir=DIR        C header files [PREFIX/include]
1609  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1610  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1611  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1612  --infodir=DIR           info documentation [DATAROOTDIR/info]
1613  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1614  --mandir=DIR            man documentation [DATAROOTDIR/man]
1615  --docdir=DIR            documentation root [DATAROOTDIR/doc/libfabric]
1616  --htmldir=DIR           html documentation [DOCDIR]
1617  --dvidir=DIR            dvi documentation [DOCDIR]
1618  --pdfdir=DIR            pdf documentation [DOCDIR]
1619  --psdir=DIR             ps documentation [DOCDIR]
1620_ACEOF
1621
1622  cat <<\_ACEOF
1623
1624Program names:
1625  --program-prefix=PREFIX            prepend PREFIX to installed program names
1626  --program-suffix=SUFFIX            append SUFFIX to installed program names
1627  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1628
1629System types:
1630  --build=BUILD     configure for building on BUILD [guessed]
1631  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632_ACEOF
1633fi
1634
1635if test -n "$ac_init_help"; then
1636  case $ac_init_help in
1637     short | recursive ) echo "Configuration of libfabric 1.10.1:";;
1638   esac
1639  cat <<\_ACEOF
1640
1641Optional Features:
1642  --disable-option-checking  ignore unrecognized --enable/--with options
1643  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1644  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1645  --enable-silent-rules   less verbose build output (undo: "make V=1")
1646  --disable-silent-rules  verbose build output (undo: "make V=0")
1647  --enable-dependency-tracking
1648                          do not reject slow dependency extractors
1649  --disable-dependency-tracking
1650                          speeds up one-time build
1651  --enable-direct=[provider]
1652                          Enable direct calls to a fabric provider
1653                          [default=no]
1654
1655  --enable-atomics        Enable atomics support [default=yes]
1656
1657  --enable-debug          Enable debugging [default=no]
1658
1659  --enable-shared[=PKGS]  build shared libraries [default=yes]
1660  --enable-static[=PKGS]  build static libraries [default=yes]
1661  --enable-fast-install[=PKGS]
1662                          optimize for fast installation [default=yes]
1663  --disable-libtool-lock  avoid locking (might break parallel builds)
1664  --enable-picky          Enable developer-level compiler pickyness when
1665                          building [default=no]
1666  --disable-epoll         Disable epoll if available[default=no]
1667  --enable-embedded       Enable embedded support (turns off symbol
1668                          versioning) [default=no]
1669
1670  --enable-psm[=yes|no|auto|dl|PATH|dl:PATH]
1671                          Enable psm provider [default=auto] (yes: enable psm
1672                          provider; no: disable psm provider; auto: enable psm
1673                          provider if possible; dl: enable psm provider and
1674                          build as a loadable library; PATH: enable psm
1675                          provider and use psm installed under PATH; dl:PATH:
1676                          enable psm provider and build as a loadable library
1677                          and use psm installed under PATH)
1678
1679  --enable-psm2[=yes|no|auto|dl|PATH|dl:PATH]
1680                          Enable psm2 provider [default=auto] (yes: enable
1681                          psm2 provider; no: disable psm2 provider; auto:
1682                          enable psm2 provider if possible; dl: enable psm2
1683                          provider and build as a loadable library; PATH:
1684                          enable psm2 provider and use psm2 installed under
1685                          PATH; dl:PATH: enable psm2 provider and build as a
1686                          loadable library and use psm2 installed under PATH)
1687
1688  --enable-psm2_mq_req_user
1689                          Enable the use of psm2_mq_req_user if present
1690  --enable-psm2_mq_fp_msg Enable the use of psm2_mq_fp_msg if present
1691  --enable-sockets[=yes|no|auto|dl|PATH|dl:PATH]
1692                          Enable sockets provider [default=auto] (yes: enable
1693                          sockets provider; no: disable sockets provider;
1694                          auto: enable sockets provider if possible; dl:
1695                          enable sockets provider and build as a loadable
1696                          library; PATH: enable sockets provider and use
1697                          sockets installed under PATH; dl:PATH: enable
1698                          sockets provider and build as a loadable library and
1699                          use sockets installed under PATH)
1700
1701  --enable-verbs[=yes|no|auto|dl|PATH|dl:PATH]
1702                          Enable verbs provider [default=auto] (yes: enable
1703                          verbs provider; no: disable verbs provider; auto:
1704                          enable verbs provider if possible; dl: enable verbs
1705                          provider and build as a loadable library; PATH:
1706                          enable verbs provider and use verbs installed under
1707                          PATH; dl:PATH: enable verbs provider and build as a
1708                          loadable library and use verbs installed under PATH)
1709
1710  --enable-efa[=yes|no|auto|dl|PATH|dl:PATH]
1711                          Enable efa provider [default=auto] (yes: enable efa
1712                          provider; no: disable efa provider; auto: enable efa
1713                          provider if possible; dl: enable efa provider and
1714                          build as a loadable library; PATH: enable efa
1715                          provider and use efa installed under PATH; dl:PATH:
1716                          enable efa provider and build as a loadable library
1717                          and use efa installed under PATH)
1718
1719  --enable-efa-mem-poisoning
1720                          Enable EFA memory poisoning support for debugging
1721                          [default=no]
1722
1723  --enable-usnic[=yes|no|auto|dl|PATH|dl:PATH]
1724                          Enable usnic provider [default=auto] (yes: enable
1725                          usnic provider; no: disable usnic provider; auto:
1726                          enable usnic provider if possible; dl: enable usnic
1727                          provider and build as a loadable library; PATH:
1728                          enable usnic provider and use usnic installed under
1729                          PATH; dl:PATH: enable usnic provider and build as a
1730                          loadable library and use usnic installed under PATH)
1731
1732  --enable-gni[=yes|no|auto|dl|PATH|dl:PATH]
1733                          Enable gni provider [default=auto] (yes: enable gni
1734                          provider; no: disable gni provider; auto: enable gni
1735                          provider if possible; dl: enable gni provider and
1736                          build as a loadable library; PATH: enable gni
1737                          provider and use gni installed under PATH; dl:PATH:
1738                          enable gni provider and build as a loadable library
1739                          and use gni installed under PATH)
1740
1741  --enable-xpmem          Enable xpmem (gni provider) [default=yes]
1742  --enable-ugni-static    Enable static linking with uGNI. Recommended for
1743                          KNL.
1744  --enable-udp[=yes|no|auto|dl|PATH|dl:PATH]
1745                          Enable udp provider [default=auto] (yes: enable udp
1746                          provider; no: disable udp provider; auto: enable udp
1747                          provider if possible; dl: enable udp provider and
1748                          build as a loadable library; PATH: enable udp
1749                          provider and use udp installed under PATH; dl:PATH:
1750                          enable udp provider and build as a loadable library
1751                          and use udp installed under PATH)
1752
1753  --enable-tcp[=yes|no|auto|dl|PATH|dl:PATH]
1754                          Enable tcp provider [default=auto] (yes: enable tcp
1755                          provider; no: disable tcp provider; auto: enable tcp
1756                          provider if possible; dl: enable tcp provider and
1757                          build as a loadable library; PATH: enable tcp
1758                          provider and use tcp installed under PATH; dl:PATH:
1759                          enable tcp provider and build as a loadable library
1760                          and use tcp installed under PATH)
1761
1762  --enable-rxm[=yes|no|auto|dl|PATH|dl:PATH]
1763                          Enable rxm provider [default=auto] (yes: enable rxm
1764                          provider; no: disable rxm provider; auto: enable rxm
1765                          provider if possible; dl: enable rxm provider and
1766                          build as a loadable library; PATH: enable rxm
1767                          provider and use rxm installed under PATH; dl:PATH:
1768                          enable rxm provider and build as a loadable library
1769                          and use rxm installed under PATH)
1770
1771  --enable-mrail[=yes|no|auto|dl|PATH|dl:PATH]
1772                          Enable mrail provider [default=auto] (yes: enable
1773                          mrail provider; no: disable mrail provider; auto:
1774                          enable mrail provider if possible; dl: enable mrail
1775                          provider and build as a loadable library; PATH:
1776                          enable mrail provider and use mrail installed under
1777                          PATH; dl:PATH: enable mrail provider and build as a
1778                          loadable library and use mrail installed under PATH)
1779
1780  --enable-rxd[=yes|no|auto|dl|PATH|dl:PATH]
1781                          Enable rxd provider [default=auto] (yes: enable rxd
1782                          provider; no: disable rxd provider; auto: enable rxd
1783                          provider if possible; dl: enable rxd provider and
1784                          build as a loadable library; PATH: enable rxd
1785                          provider and use rxd installed under PATH; dl:PATH:
1786                          enable rxd provider and build as a loadable library
1787                          and use rxd installed under PATH)
1788
1789  --enable-bgq[=yes|no|auto|dl|PATH|dl:PATH]
1790                          Enable bgq provider [default=auto] (yes: enable bgq
1791                          provider; no: disable bgq provider; auto: enable bgq
1792                          provider if possible; dl: enable bgq provider and
1793                          build as a loadable library; PATH: enable bgq
1794                          provider and use bgq installed under PATH; dl:PATH:
1795                          enable bgq provider and build as a loadable library
1796                          and use bgq installed under PATH)
1797
1798  --enable-shm[=yes|no|auto|dl|PATH|dl:PATH]
1799                          Enable shm provider [default=auto] (yes: enable shm
1800                          provider; no: disable shm provider; auto: enable shm
1801                          provider if possible; dl: enable shm provider and
1802                          build as a loadable library; PATH: enable shm
1803                          provider and use shm installed under PATH; dl:PATH:
1804                          enable shm provider and build as a loadable library
1805                          and use shm installed under PATH)
1806
1807  --enable-rstream[=yes|no|auto|dl|PATH|dl:PATH]
1808                          Enable rstream provider [default=auto] (yes: enable
1809                          rstream provider; no: disable rstream provider;
1810                          auto: enable rstream provider if possible; dl:
1811                          enable rstream provider and build as a loadable
1812                          library; PATH: enable rstream provider and use
1813                          rstream installed under PATH; dl:PATH: enable
1814                          rstream provider and build as a loadable library and
1815                          use rstream installed under PATH)
1816
1817  --enable-perf[=yes|no|auto|dl|PATH|dl:PATH]
1818                          Enable perf provider [default=auto] (yes: enable
1819                          perf provider; no: disable perf provider; auto:
1820                          enable perf provider if possible; dl: enable perf
1821                          provider and build as a loadable library; PATH:
1822                          enable perf provider and use perf installed under
1823                          PATH; dl:PATH: enable perf provider and build as a
1824                          loadable library and use perf installed under PATH)
1825
1826  --enable-hook_debug[=yes|no|auto|dl|PATH|dl:PATH]
1827                          Enable hook_debug provider [default=auto] (yes:
1828                          enable hook_debug provider; no: disable hook_debug
1829                          provider; auto: enable hook_debug provider if
1830                          possible; dl: enable hook_debug provider and build
1831                          as a loadable library; PATH: enable hook_debug
1832                          provider and use hook_debug installed under PATH;
1833                          dl:PATH: enable hook_debug provider and build as a
1834                          loadable library and use hook_debug installed under
1835                          PATH)
1836
1837
1838Optional Packages:
1839  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1840  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1841  --with-build_id         Enable build_id annotation [default=no]
1842  --with-valgrind         Enable valgrind annotations [default=no]
1843  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1844                          both]
1845  --with-aix-soname=aix|svr4|both
1846                          shared library versioning (aka "SONAME") variant to
1847                          provide on AIX, [default=aix].
1848  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1849  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1850                          compiler's sysroot if not specified).
1851  --with-dlopen           dl-loadable provider support [default=yes]
1852  --with-cuda=DIR         Provide path to where the CUDA development and
1853                          runtime libraries are installed.
1854  --with-psm2-src=DIR     Provide path to the source code of PSM2 library to
1855                          be compiled into the provider
1856  --with-numa=DIR         Provide path to where the numactl-devel or
1857                          libnuma-devel package is installed
1858  --with-libnl(=DIR)      Directory prefix for libnl (typically only necessary
1859                          if libnl is installed in a location that the
1860                          compiler/linker will not search by default)
1861  --with-criterion        Location for criterion unit testing framework
1862  --with-kdreg            Install directory for kdreg headers
1863  --with-bgq-driver=[BGQ driver installation path]
1864                          Provide path to where BGQ system headers are
1865                          installed
1866
1867  --with-bgq-src(=DIR)    bgq opensource distribution [default=auto]
1868
1869  --with-bgq-progress(=auto|manual|runtime)
1870                          Specify the bgq FABRIC_DIRECT progess mode
1871                          [default=manual]
1872
1873  --with-bgq-mr(=scalable|basic)
1874                          Specify the bgq FABRIC_DIRECT mr mode
1875                          [default=scalable]
1876
1877
1878Some influential environment variables:
1879  CC          C compiler command
1880  CFLAGS      C compiler flags
1881  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1882              nonstandard directory <lib dir>
1883  LIBS        libraries to pass to the linker, e.g. -l<library>
1884  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1885              you have headers in a nonstandard directory <include dir>
1886  CCAS        assembler compiler command (defaults to CC)
1887  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1888  CPP         C preprocessor
1889  LT_SYS_LIBRARY_PATH
1890              User-defined run-time library search path.
1891  FI_PKG_CONFIG
1892              path to pkg-config utility
1893  FI_PKG_CONFIG_PATH
1894              directories to add to pkg-config's search path
1895  FI_PKG_CONFIG_LIBDIR
1896              path overriding pkg-config's built-in search path
1897  CRAY_GNI_HEADERS_CFLAGS
1898              C compiler flags for CRAY_GNI_HEADERS, overriding pkg-config
1899  CRAY_GNI_HEADERS_LIBS
1900              linker flags for CRAY_GNI_HEADERS, overriding pkg-config
1901  CRAY_UGNI_CFLAGS
1902              C compiler flags for CRAY_UGNI, overriding pkg-config
1903  CRAY_UGNI_LIBS
1904              linker flags for CRAY_UGNI, overriding pkg-config
1905  CRAY_UGNI_STATIC_LIBS
1906              static linker flags for CRAY_UGNI, overriding pkg-config
1907  CRAY_ALPS_LLI_CFLAGS
1908              C compiler flags for CRAY_ALPS_LLI, overriding pkg-config
1909  CRAY_ALPS_LLI_LIBS
1910              linker flags for CRAY_ALPS_LLI, overriding pkg-config
1911  CRAY_ALPS_LLI_STATIC_LIBS
1912              static linker flags for CRAY_ALPS_LLI, overriding pkg-config
1913  CRAY_ALPS_UTIL_CFLAGS
1914              C compiler flags for CRAY_ALPS_UTIL, overriding pkg-config
1915  CRAY_ALPS_UTIL_LIBS
1916              linker flags for CRAY_ALPS_UTIL, overriding pkg-config
1917  CRAY_UDREG_CFLAGS
1918              C compiler flags for CRAY_UDREG, overriding pkg-config
1919  CRAY_UDREG_LIBS
1920              linker flags for CRAY_UDREG, overriding pkg-config
1921  CRAY_XPMEM_CFLAGS
1922              C compiler flags for CRAY_XPMEM, overriding pkg-config
1923  CRAY_XPMEM_LIBS
1924              linker flags for CRAY_XPMEM, overriding pkg-config
1925  CRAY_PMI_CFLAGS
1926              C compiler flags for CRAY_PMI, overriding pkg-config
1927  CRAY_PMI_LIBS
1928              linker flags for CRAY_PMI, overriding pkg-config
1929  CRAY_KDREG_CFLAGS
1930              C compiler flags for CRAY_KDREG, overriding pkg-config
1931  CRAY_KDREG_LIBS
1932              linker flags for CRAY_KDREG, overriding pkg-config
1933
1934Use these variables to override the choices made by `configure' or to help
1935it to find libraries and programs with nonstandard names/locations.
1936
1937Report bugs to <ofiwg@lists.openfabrics.org>.
1938_ACEOF
1939ac_status=$?
1940fi
1941
1942if test "$ac_init_help" = "recursive"; then
1943  # If there are subdirs, report their specific --help.
1944  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1945    test -d "$ac_dir" ||
1946      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1947      continue
1948    ac_builddir=.
1949
1950case "$ac_dir" in
1951.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1952*)
1953  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1954  # A ".." for each directory in $ac_dir_suffix.
1955  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1956  case $ac_top_builddir_sub in
1957  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1958  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1959  esac ;;
1960esac
1961ac_abs_top_builddir=$ac_pwd
1962ac_abs_builddir=$ac_pwd$ac_dir_suffix
1963# for backward compatibility:
1964ac_top_builddir=$ac_top_build_prefix
1965
1966case $srcdir in
1967  .)  # We are building in place.
1968    ac_srcdir=.
1969    ac_top_srcdir=$ac_top_builddir_sub
1970    ac_abs_top_srcdir=$ac_pwd ;;
1971  [\\/]* | ?:[\\/]* )  # Absolute name.
1972    ac_srcdir=$srcdir$ac_dir_suffix;
1973    ac_top_srcdir=$srcdir
1974    ac_abs_top_srcdir=$srcdir ;;
1975  *) # Relative name.
1976    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1977    ac_top_srcdir=$ac_top_build_prefix$srcdir
1978    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1979esac
1980ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1981
1982    cd "$ac_dir" || { ac_status=$?; continue; }
1983    # Check for guested configure.
1984    if test -f "$ac_srcdir/configure.gnu"; then
1985      echo &&
1986      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1987    elif test -f "$ac_srcdir/configure"; then
1988      echo &&
1989      $SHELL "$ac_srcdir/configure" --help=recursive
1990    else
1991      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1992    fi || ac_status=$?
1993    cd "$ac_pwd" || { ac_status=$?; break; }
1994  done
1995fi
1996
1997test -n "$ac_init_help" && exit $ac_status
1998if $ac_init_version; then
1999  cat <<\_ACEOF
2000libfabric configure 1.10.1
2001generated by GNU Autoconf 2.69
2002
2003Copyright (C) 2012 Free Software Foundation, Inc.
2004This configure script is free software; the Free Software Foundation
2005gives unlimited permission to copy, distribute and modify it.
2006_ACEOF
2007  exit
2008fi
2009
2010## ------------------------ ##
2011## Autoconf initialization. ##
2012## ------------------------ ##
2013
2014# ac_fn_c_try_compile LINENO
2015# --------------------------
2016# Try to compile conftest.$ac_ext, and return whether this succeeded.
2017ac_fn_c_try_compile ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  rm -f conftest.$ac_objext
2021  if { { ac_try="$ac_compile"
2022case "(($ac_try" in
2023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024  *) ac_try_echo=$ac_try;;
2025esac
2026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027$as_echo "$ac_try_echo"; } >&5
2028  (eval "$ac_compile") 2>conftest.err
2029  ac_status=$?
2030  if test -s conftest.err; then
2031    grep -v '^ *+' conftest.err >conftest.er1
2032    cat conftest.er1 >&5
2033    mv -f conftest.er1 conftest.err
2034  fi
2035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036  test $ac_status = 0; } && {
2037	 test -z "$ac_c_werror_flag" ||
2038	 test ! -s conftest.err
2039       } && test -s conftest.$ac_objext; then :
2040  ac_retval=0
2041else
2042  $as_echo "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045	ac_retval=1
2046fi
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048  as_fn_set_status $ac_retval
2049
2050} # ac_fn_c_try_compile
2051
2052# ac_fn_c_try_cpp LINENO
2053# ----------------------
2054# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_c_try_cpp ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  if { { ac_try="$ac_cpp conftest.$ac_ext"
2059case "(($ac_try" in
2060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061  *) ac_try_echo=$ac_try;;
2062esac
2063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064$as_echo "$ac_try_echo"; } >&5
2065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2066  ac_status=$?
2067  if test -s conftest.err; then
2068    grep -v '^ *+' conftest.err >conftest.er1
2069    cat conftest.er1 >&5
2070    mv -f conftest.er1 conftest.err
2071  fi
2072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073  test $ac_status = 0; } > conftest.i && {
2074	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2075	 test ! -s conftest.err
2076       }; then :
2077  ac_retval=0
2078else
2079  $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082    ac_retval=1
2083fi
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085  as_fn_set_status $ac_retval
2086
2087} # ac_fn_c_try_cpp
2088
2089# ac_fn_c_try_run LINENO
2090# ----------------------
2091# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2092# that executables *can* be run.
2093ac_fn_c_try_run ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  if { { ac_try="$ac_link"
2097case "(($ac_try" in
2098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099  *) ac_try_echo=$ac_try;;
2100esac
2101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102$as_echo "$ac_try_echo"; } >&5
2103  (eval "$ac_link") 2>&5
2104  ac_status=$?
2105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2107  { { case "(($ac_try" in
2108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109  *) ac_try_echo=$ac_try;;
2110esac
2111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112$as_echo "$ac_try_echo"; } >&5
2113  (eval "$ac_try") 2>&5
2114  ac_status=$?
2115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116  test $ac_status = 0; }; }; then :
2117  ac_retval=0
2118else
2119  $as_echo "$as_me: program exited with status $ac_status" >&5
2120       $as_echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123       ac_retval=$ac_status
2124fi
2125  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2126  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127  as_fn_set_status $ac_retval
2128
2129} # ac_fn_c_try_run
2130
2131# ac_fn_c_try_link LINENO
2132# -----------------------
2133# Try to link conftest.$ac_ext, and return whether this succeeded.
2134ac_fn_c_try_link ()
2135{
2136  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137  rm -f conftest.$ac_objext conftest$ac_exeext
2138  if { { ac_try="$ac_link"
2139case "(($ac_try" in
2140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141  *) ac_try_echo=$ac_try;;
2142esac
2143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144$as_echo "$ac_try_echo"; } >&5
2145  (eval "$ac_link") 2>conftest.err
2146  ac_status=$?
2147  if test -s conftest.err; then
2148    grep -v '^ *+' conftest.err >conftest.er1
2149    cat conftest.er1 >&5
2150    mv -f conftest.er1 conftest.err
2151  fi
2152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153  test $ac_status = 0; } && {
2154	 test -z "$ac_c_werror_flag" ||
2155	 test ! -s conftest.err
2156       } && test -s conftest$ac_exeext && {
2157	 test "$cross_compiling" = yes ||
2158	 test -x conftest$ac_exeext
2159       }; then :
2160  ac_retval=0
2161else
2162  $as_echo "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165	ac_retval=1
2166fi
2167  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2168  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2169  # interfere with the next link command; also delete a directory that is
2170  # left behind by Apple's compiler.  We do this before executing the actions.
2171  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2172  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173  as_fn_set_status $ac_retval
2174
2175} # ac_fn_c_try_link
2176
2177# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2178# -------------------------------------------------------
2179# Tests whether HEADER exists and can be compiled using the include files in
2180# INCLUDES, setting the cache variable VAR accordingly.
2181ac_fn_c_check_header_compile ()
2182{
2183  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185$as_echo_n "checking for $2... " >&6; }
2186if eval \${$3+:} false; then :
2187  $as_echo_n "(cached) " >&6
2188else
2189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191$4
2192#include <$2>
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195  eval "$3=yes"
2196else
2197  eval "$3=no"
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201eval ac_res=\$$3
2202	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206} # ac_fn_c_check_header_compile
2207
2208# ac_fn_c_check_func LINENO FUNC VAR
2209# ----------------------------------
2210# Tests whether FUNC exists, setting the cache variable VAR accordingly
2211ac_fn_c_check_func ()
2212{
2213  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215$as_echo_n "checking for $2... " >&6; }
2216if eval \${$3+:} false; then :
2217  $as_echo_n "(cached) " >&6
2218else
2219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2222   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2223#define $2 innocuous_$2
2224
2225/* System header to define __stub macros and hopefully few prototypes,
2226    which can conflict with char $2 (); below.
2227    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2228    <limits.h> exists even on freestanding compilers.  */
2229
2230#ifdef __STDC__
2231# include <limits.h>
2232#else
2233# include <assert.h>
2234#endif
2235
2236#undef $2
2237
2238/* Override any GCC internal prototype to avoid an error.
2239   Use char because int might match the return type of a GCC
2240   builtin and then its argument prototype would still apply.  */
2241#ifdef __cplusplus
2242extern "C"
2243#endif
2244char $2 ();
2245/* The GNU C library defines this for functions which it implements
2246    to always fail with ENOSYS.  Some functions are actually named
2247    something starting with __ and the normal name is an alias.  */
2248#if defined __stub_$2 || defined __stub___$2
2249choke me
2250#endif
2251
2252int
2253main ()
2254{
2255return $2 ();
2256  ;
2257  return 0;
2258}
2259_ACEOF
2260if ac_fn_c_try_link "$LINENO"; then :
2261  eval "$3=yes"
2262else
2263  eval "$3=no"
2264fi
2265rm -f core conftest.err conftest.$ac_objext \
2266    conftest$ac_exeext conftest.$ac_ext
2267fi
2268eval ac_res=\$$3
2269	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270$as_echo "$ac_res" >&6; }
2271  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272
2273} # ac_fn_c_check_func
2274
2275# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2276# -------------------------------------------------------
2277# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2278# the include files in INCLUDES and setting the cache variable VAR
2279# accordingly.
2280ac_fn_c_check_header_mongrel ()
2281{
2282  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283  if eval \${$3+:} false; then :
2284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285$as_echo_n "checking for $2... " >&6; }
2286if eval \${$3+:} false; then :
2287  $as_echo_n "(cached) " >&6
2288fi
2289eval ac_res=\$$3
2290	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291$as_echo "$ac_res" >&6; }
2292else
2293  # Is the header compilable?
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2295$as_echo_n "checking $2 usability... " >&6; }
2296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h.  */
2298$4
2299#include <$2>
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302  ac_header_compiler=yes
2303else
2304  ac_header_compiler=no
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2308$as_echo "$ac_header_compiler" >&6; }
2309
2310# Is the header present?
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2312$as_echo_n "checking $2 presence... " >&6; }
2313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314/* end confdefs.h.  */
2315#include <$2>
2316_ACEOF
2317if ac_fn_c_try_cpp "$LINENO"; then :
2318  ac_header_preproc=yes
2319else
2320  ac_header_preproc=no
2321fi
2322rm -f conftest.err conftest.i conftest.$ac_ext
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2324$as_echo "$ac_header_preproc" >&6; }
2325
2326# So?  What about this header?
2327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2328  yes:no: )
2329    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2330$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2331    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2332$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2333    ;;
2334  no:yes:* )
2335    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2336$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2337    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2338$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2339    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2340$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2341    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2342$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2343    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2344$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2345( $as_echo "## ------------------------------------------ ##
2346## Report this to ofiwg@lists.openfabrics.org ##
2347## ------------------------------------------ ##"
2348     ) | sed "s/^/$as_me: WARNING:     /" >&2
2349    ;;
2350esac
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352$as_echo_n "checking for $2... " >&6; }
2353if eval \${$3+:} false; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  eval "$3=\$ac_header_compiler"
2357fi
2358eval ac_res=\$$3
2359	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360$as_echo "$ac_res" >&6; }
2361fi
2362  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363
2364} # ac_fn_c_check_header_mongrel
2365
2366# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2367# ---------------------------------------------
2368# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2369# accordingly.
2370ac_fn_c_check_decl ()
2371{
2372  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373  as_decl_name=`echo $2|sed 's/ *(.*//'`
2374  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2376$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2377if eval \${$3+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381/* end confdefs.h.  */
2382$4
2383int
2384main ()
2385{
2386#ifndef $as_decl_name
2387#ifdef __cplusplus
2388  (void) $as_decl_use;
2389#else
2390  (void) $as_decl_name;
2391#endif
2392#endif
2393
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398if ac_fn_c_try_compile "$LINENO"; then :
2399  eval "$3=yes"
2400else
2401  eval "$3=no"
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404fi
2405eval ac_res=\$$3
2406	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410} # ac_fn_c_check_decl
2411
2412# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2413# -------------------------------------------
2414# Tests whether TYPE exists after having included INCLUDES, setting cache
2415# variable VAR accordingly.
2416ac_fn_c_check_type ()
2417{
2418  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420$as_echo_n "checking for $2... " >&6; }
2421if eval \${$3+:} false; then :
2422  $as_echo_n "(cached) " >&6
2423else
2424  eval "$3=no"
2425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426/* end confdefs.h.  */
2427$4
2428int
2429main ()
2430{
2431if (sizeof ($2))
2432	 return 0;
2433  ;
2434  return 0;
2435}
2436_ACEOF
2437if ac_fn_c_try_compile "$LINENO"; then :
2438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439/* end confdefs.h.  */
2440$4
2441int
2442main ()
2443{
2444if (sizeof (($2)))
2445	    return 0;
2446  ;
2447  return 0;
2448}
2449_ACEOF
2450if ac_fn_c_try_compile "$LINENO"; then :
2451
2452else
2453  eval "$3=yes"
2454fi
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456fi
2457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458fi
2459eval ac_res=\$$3
2460	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461$as_echo "$ac_res" >&6; }
2462  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463
2464} # ac_fn_c_check_type
2465
2466# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2467# ----------------------------------------------------
2468# Tries to find if the field MEMBER exists in type AGGR, after including
2469# INCLUDES, setting cache variable VAR accordingly.
2470ac_fn_c_check_member ()
2471{
2472  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2474$as_echo_n "checking for $2.$3... " >&6; }
2475if eval \${$4+:} false; then :
2476  $as_echo_n "(cached) " >&6
2477else
2478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479/* end confdefs.h.  */
2480$5
2481int
2482main ()
2483{
2484static $2 ac_aggr;
2485if (ac_aggr.$3)
2486return 0;
2487  ;
2488  return 0;
2489}
2490_ACEOF
2491if ac_fn_c_try_compile "$LINENO"; then :
2492  eval "$4=yes"
2493else
2494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495/* end confdefs.h.  */
2496$5
2497int
2498main ()
2499{
2500static $2 ac_aggr;
2501if (sizeof ac_aggr.$3)
2502return 0;
2503  ;
2504  return 0;
2505}
2506_ACEOF
2507if ac_fn_c_try_compile "$LINENO"; then :
2508  eval "$4=yes"
2509else
2510  eval "$4=no"
2511fi
2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516eval ac_res=\$$4
2517	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518$as_echo "$ac_res" >&6; }
2519  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520
2521} # ac_fn_c_check_member
2522cat >config.log <<_ACEOF
2523This file contains any messages produced by compilers while
2524running configure, to aid debugging if configure makes a mistake.
2525
2526It was created by libfabric $as_me 1.10.1, which was
2527generated by GNU Autoconf 2.69.  Invocation command line was
2528
2529  $ $0 $@
2530
2531_ACEOF
2532exec 5>>config.log
2533{
2534cat <<_ASUNAME
2535## --------- ##
2536## Platform. ##
2537## --------- ##
2538
2539hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2540uname -m = `(uname -m) 2>/dev/null || echo unknown`
2541uname -r = `(uname -r) 2>/dev/null || echo unknown`
2542uname -s = `(uname -s) 2>/dev/null || echo unknown`
2543uname -v = `(uname -v) 2>/dev/null || echo unknown`
2544
2545/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2546/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2547
2548/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2549/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2550/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2551/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2552/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2553/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2554/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2555
2556_ASUNAME
2557
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563    $as_echo "PATH: $as_dir"
2564  done
2565IFS=$as_save_IFS
2566
2567} >&5
2568
2569cat >&5 <<_ACEOF
2570
2571
2572## ----------- ##
2573## Core tests. ##
2574## ----------- ##
2575
2576_ACEOF
2577
2578
2579# Keep a trace of the command line.
2580# Strip out --no-create and --no-recursion so they do not pile up.
2581# Strip out --silent because we don't want to record it for future runs.
2582# Also quote any args containing shell meta-characters.
2583# Make two passes to allow for proper duplicate-argument suppression.
2584ac_configure_args=
2585ac_configure_args0=
2586ac_configure_args1=
2587ac_must_keep_next=false
2588for ac_pass in 1 2
2589do
2590  for ac_arg
2591  do
2592    case $ac_arg in
2593    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2594    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2595    | -silent | --silent | --silen | --sile | --sil)
2596      continue ;;
2597    *\'*)
2598      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2599    esac
2600    case $ac_pass in
2601    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2602    2)
2603      as_fn_append ac_configure_args1 " '$ac_arg'"
2604      if test $ac_must_keep_next = true; then
2605	ac_must_keep_next=false # Got value, back to normal.
2606      else
2607	case $ac_arg in
2608	  *=* | --config-cache | -C | -disable-* | --disable-* \
2609	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2610	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2611	  | -with-* | --with-* | -without-* | --without-* | --x)
2612	    case "$ac_configure_args0 " in
2613	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2614	    esac
2615	    ;;
2616	  -* ) ac_must_keep_next=true ;;
2617	esac
2618      fi
2619      as_fn_append ac_configure_args " '$ac_arg'"
2620      ;;
2621    esac
2622  done
2623done
2624{ ac_configure_args0=; unset ac_configure_args0;}
2625{ ac_configure_args1=; unset ac_configure_args1;}
2626
2627# When interrupted or exit'd, cleanup temporary files, and complete
2628# config.log.  We remove comments because anyway the quotes in there
2629# would cause problems or look ugly.
2630# WARNING: Use '\'' to represent an apostrophe within the trap.
2631# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2632trap 'exit_status=$?
2633  # Save into config.log some information that might help in debugging.
2634  {
2635    echo
2636
2637    $as_echo "## ---------------- ##
2638## Cache variables. ##
2639## ---------------- ##"
2640    echo
2641    # The following way of writing the cache mishandles newlines in values,
2642(
2643  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2644    eval ac_val=\$$ac_var
2645    case $ac_val in #(
2646    *${as_nl}*)
2647      case $ac_var in #(
2648      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2649$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2650      esac
2651      case $ac_var in #(
2652      _ | IFS | as_nl) ;; #(
2653      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2654      *) { eval $ac_var=; unset $ac_var;} ;;
2655      esac ;;
2656    esac
2657  done
2658  (set) 2>&1 |
2659    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2660    *${as_nl}ac_space=\ *)
2661      sed -n \
2662	"s/'\''/'\''\\\\'\'''\''/g;
2663	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2664      ;; #(
2665    *)
2666      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2667      ;;
2668    esac |
2669    sort
2670)
2671    echo
2672
2673    $as_echo "## ----------------- ##
2674## Output variables. ##
2675## ----------------- ##"
2676    echo
2677    for ac_var in $ac_subst_vars
2678    do
2679      eval ac_val=\$$ac_var
2680      case $ac_val in
2681      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2682      esac
2683      $as_echo "$ac_var='\''$ac_val'\''"
2684    done | sort
2685    echo
2686
2687    if test -n "$ac_subst_files"; then
2688      $as_echo "## ------------------- ##
2689## File substitutions. ##
2690## ------------------- ##"
2691      echo
2692      for ac_var in $ac_subst_files
2693      do
2694	eval ac_val=\$$ac_var
2695	case $ac_val in
2696	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2697	esac
2698	$as_echo "$ac_var='\''$ac_val'\''"
2699      done | sort
2700      echo
2701    fi
2702
2703    if test -s confdefs.h; then
2704      $as_echo "## ----------- ##
2705## confdefs.h. ##
2706## ----------- ##"
2707      echo
2708      cat confdefs.h
2709      echo
2710    fi
2711    test "$ac_signal" != 0 &&
2712      $as_echo "$as_me: caught signal $ac_signal"
2713    $as_echo "$as_me: exit $exit_status"
2714  } >&5
2715  rm -f core *.core core.conftest.* &&
2716    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2717    exit $exit_status
2718' 0
2719for ac_signal in 1 2 13 15; do
2720  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2721done
2722ac_signal=0
2723
2724# confdefs.h avoids OS command line length limits that DEFS can exceed.
2725rm -f -r conftest* confdefs.h
2726
2727$as_echo "/* confdefs.h */" > confdefs.h
2728
2729# Predefined preprocessor variables.
2730
2731cat >>confdefs.h <<_ACEOF
2732#define PACKAGE_NAME "$PACKAGE_NAME"
2733_ACEOF
2734
2735cat >>confdefs.h <<_ACEOF
2736#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2737_ACEOF
2738
2739cat >>confdefs.h <<_ACEOF
2740#define PACKAGE_VERSION "$PACKAGE_VERSION"
2741_ACEOF
2742
2743cat >>confdefs.h <<_ACEOF
2744#define PACKAGE_STRING "$PACKAGE_STRING"
2745_ACEOF
2746
2747cat >>confdefs.h <<_ACEOF
2748#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2749_ACEOF
2750
2751cat >>confdefs.h <<_ACEOF
2752#define PACKAGE_URL "$PACKAGE_URL"
2753_ACEOF
2754
2755
2756# Let the site file select an alternate cache file if it wants to.
2757# Prefer an explicitly selected file to automatically selected ones.
2758ac_site_file1=NONE
2759ac_site_file2=NONE
2760if test -n "$CONFIG_SITE"; then
2761  # We do not want a PATH search for config.site.
2762  case $CONFIG_SITE in #((
2763    -*)  ac_site_file1=./$CONFIG_SITE;;
2764    */*) ac_site_file1=$CONFIG_SITE;;
2765    *)   ac_site_file1=./$CONFIG_SITE;;
2766  esac
2767elif test "x$prefix" != xNONE; then
2768  ac_site_file1=$prefix/share/config.site
2769  ac_site_file2=$prefix/etc/config.site
2770else
2771  ac_site_file1=$ac_default_prefix/share/config.site
2772  ac_site_file2=$ac_default_prefix/etc/config.site
2773fi
2774for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2775do
2776  test "x$ac_site_file" = xNONE && continue
2777  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2778    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2779$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2780    sed 's/^/| /' "$ac_site_file" >&5
2781    . "$ac_site_file" \
2782      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784as_fn_error $? "failed to load site script $ac_site_file
2785See \`config.log' for more details" "$LINENO" 5; }
2786  fi
2787done
2788
2789if test -r "$cache_file"; then
2790  # Some versions of bash will fail to source /dev/null (special files
2791  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2792  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2793    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2794$as_echo "$as_me: loading cache $cache_file" >&6;}
2795    case $cache_file in
2796      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2797      *)                      . "./$cache_file";;
2798    esac
2799  fi
2800else
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2802$as_echo "$as_me: creating cache $cache_file" >&6;}
2803  >$cache_file
2804fi
2805
2806as_fn_append ac_header_list " elf.h"
2807as_fn_append ac_header_list " sys/auxv.h"
2808# Check that the precious variables saved in the cache have kept the same
2809# value.
2810ac_cache_corrupted=false
2811for ac_var in $ac_precious_vars; do
2812  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2813  eval ac_new_set=\$ac_env_${ac_var}_set
2814  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2815  eval ac_new_val=\$ac_env_${ac_var}_value
2816  case $ac_old_set,$ac_new_set in
2817    set,)
2818      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2819$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2820      ac_cache_corrupted=: ;;
2821    ,set)
2822      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2823$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2824      ac_cache_corrupted=: ;;
2825    ,);;
2826    *)
2827      if test "x$ac_old_val" != "x$ac_new_val"; then
2828	# differences in whitespace do not lead to failure.
2829	ac_old_val_w=`echo x $ac_old_val`
2830	ac_new_val_w=`echo x $ac_new_val`
2831	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2832	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2833$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2834	  ac_cache_corrupted=:
2835	else
2836	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2837$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2838	  eval $ac_var=\$ac_old_val
2839	fi
2840	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2841$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2842	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2843$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2844      fi;;
2845  esac
2846  # Pass precious variables to config.status.
2847  if test "$ac_new_set" = set; then
2848    case $ac_new_val in
2849    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2850    *) ac_arg=$ac_var=$ac_new_val ;;
2851    esac
2852    case " $ac_configure_args " in
2853      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2854      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2855    esac
2856  fi
2857done
2858if $ac_cache_corrupted; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2862$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2863  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2864fi
2865## -------------------- ##
2866## Main body of script. ##
2867## -------------------- ##
2868
2869ac_ext=c
2870ac_cpp='$CPP $CPPFLAGS'
2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874
2875
2876
2877ac_aux_dir=
2878for ac_dir in config "$srcdir"/config; do
2879  if test -f "$ac_dir/install-sh"; then
2880    ac_aux_dir=$ac_dir
2881    ac_install_sh="$ac_aux_dir/install-sh -c"
2882    break
2883  elif test -f "$ac_dir/install.sh"; then
2884    ac_aux_dir=$ac_dir
2885    ac_install_sh="$ac_aux_dir/install.sh -c"
2886    break
2887  elif test -f "$ac_dir/shtool"; then
2888    ac_aux_dir=$ac_dir
2889    ac_install_sh="$ac_aux_dir/shtool install -c"
2890    break
2891  fi
2892done
2893if test -z "$ac_aux_dir"; then
2894  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2895fi
2896
2897# These three variables are undocumented and unsupported,
2898# and are intended to be withdrawn in a future Autoconf release.
2899# They can cause serious problems if a builder's source tree is in a directory
2900# whose full name contains unusual characters.
2901ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2902ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2903ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2904
2905
2906
2907ac_config_headers="$ac_config_headers config.h"
2908
2909am__api_version='1.15'
2910
2911# Find a good install program.  We prefer a C program (faster),
2912# so one script is as good as another.  But avoid the broken or
2913# incompatible versions:
2914# SysV /etc/install, /usr/sbin/install
2915# SunOS /usr/etc/install
2916# IRIX /sbin/install
2917# AIX /bin/install
2918# AmigaOS /C/install, which installs bootblocks on floppy discs
2919# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2920# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2921# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2922# OS/2's system install, which has a completely different semantic
2923# ./install, which can be erroneously created by make from ./install.sh.
2924# Reject install programs that cannot install multiple files.
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2926$as_echo_n "checking for a BSD-compatible install... " >&6; }
2927if test -z "$INSTALL"; then
2928if ${ac_cv_path_install+:} false; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936    # Account for people who put trailing slashes in PATH elements.
2937case $as_dir/ in #((
2938  ./ | .// | /[cC]/* | \
2939  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2940  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2941  /usr/ucb/* ) ;;
2942  *)
2943    # OSF1 and SCO ODT 3.0 have their own names for install.
2944    # Don't use installbsd from OSF since it installs stuff as root
2945    # by default.
2946    for ac_prog in ginstall scoinst install; do
2947      for ac_exec_ext in '' $ac_executable_extensions; do
2948	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2949	  if test $ac_prog = install &&
2950	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2951	    # AIX install.  It has an incompatible calling convention.
2952	    :
2953	  elif test $ac_prog = install &&
2954	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2955	    # program-specific install script used by HP pwplus--don't use.
2956	    :
2957	  else
2958	    rm -rf conftest.one conftest.two conftest.dir
2959	    echo one > conftest.one
2960	    echo two > conftest.two
2961	    mkdir conftest.dir
2962	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2963	      test -s conftest.one && test -s conftest.two &&
2964	      test -s conftest.dir/conftest.one &&
2965	      test -s conftest.dir/conftest.two
2966	    then
2967	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2968	      break 3
2969	    fi
2970	  fi
2971	fi
2972      done
2973    done
2974    ;;
2975esac
2976
2977  done
2978IFS=$as_save_IFS
2979
2980rm -rf conftest.one conftest.two conftest.dir
2981
2982fi
2983  if test "${ac_cv_path_install+set}" = set; then
2984    INSTALL=$ac_cv_path_install
2985  else
2986    # As a last resort, use the slow shell script.  Don't cache a
2987    # value for INSTALL within a source directory, because that will
2988    # break other packages using the cache if that directory is
2989    # removed, or if the value is a relative name.
2990    INSTALL=$ac_install_sh
2991  fi
2992fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2994$as_echo "$INSTALL" >&6; }
2995
2996# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997# It thinks the first close brace ends the variable substitution.
2998test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999
3000test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001
3002test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3005$as_echo_n "checking whether build environment is sane... " >&6; }
3006# Reject unsafe characters in $srcdir or the absolute working directory
3007# name.  Accept space and tab only in the latter.
3008am_lf='
3009'
3010case `pwd` in
3011  *[\\\"\#\$\&\'\`$am_lf]*)
3012    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3013esac
3014case $srcdir in
3015  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3016    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3017esac
3018
3019# Do 'set' in a subshell so we don't clobber the current shell's
3020# arguments.  Must try -L first in case configure is actually a
3021# symlink; some systems play weird games with the mod time of symlinks
3022# (eg FreeBSD returns the mod time of the symlink's containing
3023# directory).
3024if (
3025   am_has_slept=no
3026   for am_try in 1 2; do
3027     echo "timestamp, slept: $am_has_slept" > conftest.file
3028     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3029     if test "$*" = "X"; then
3030	# -L didn't work.
3031	set X `ls -t "$srcdir/configure" conftest.file`
3032     fi
3033     if test "$*" != "X $srcdir/configure conftest.file" \
3034	&& test "$*" != "X conftest.file $srcdir/configure"; then
3035
3036	# If neither matched, then we have a broken ls.  This can happen
3037	# if, for instance, CONFIG_SHELL is bash and it inherits a
3038	# broken ls alias from the environment.  This has actually
3039	# happened.  Such a system could not be considered "sane".
3040	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3041  alias in your environment" "$LINENO" 5
3042     fi
3043     if test "$2" = conftest.file || test $am_try -eq 2; then
3044       break
3045     fi
3046     # Just in case.
3047     sleep 1
3048     am_has_slept=yes
3049   done
3050   test "$2" = conftest.file
3051   )
3052then
3053   # Ok.
3054   :
3055else
3056   as_fn_error $? "newly created file is older than distributed files!
3057Check your system clock" "$LINENO" 5
3058fi
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3060$as_echo "yes" >&6; }
3061# If we didn't sleep, we still need to ensure time stamps of config.status and
3062# generated files are strictly newer.
3063am_sleep_pid=
3064if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3065  ( sleep 1 ) &
3066  am_sleep_pid=$!
3067fi
3068
3069rm -f conftest.file
3070
3071test "$program_prefix" != NONE &&
3072  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3073# Use a double $ so make ignores it.
3074test "$program_suffix" != NONE &&
3075  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3076# Double any \ or $.
3077# By default was `s,x,x', remove it if useless.
3078ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3079program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3080
3081# Expand $ac_aux_dir to an absolute path.
3082am_aux_dir=`cd "$ac_aux_dir" && pwd`
3083
3084if test x"${MISSING+set}" != xset; then
3085  case $am_aux_dir in
3086  *\ * | *\	*)
3087    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3088  *)
3089    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3090  esac
3091fi
3092# Use eval to expand $SHELL
3093if eval "$MISSING --is-lightweight"; then
3094  am_missing_run="$MISSING "
3095else
3096  am_missing_run=
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3098$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3099fi
3100
3101if test x"${install_sh+set}" != xset; then
3102  case $am_aux_dir in
3103  *\ * | *\	*)
3104    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3105  *)
3106    install_sh="\${SHELL} $am_aux_dir/install-sh"
3107  esac
3108fi
3109
3110# Installed binaries are usually stripped using 'strip' when the user
3111# run "make install-strip".  However 'strip' might not be the right
3112# tool to use in cross-compilation environments, therefore Automake
3113# will honor the 'STRIP' environment variable to overrule this program.
3114if test "$cross_compiling" != no; then
3115  if test -n "$ac_tool_prefix"; then
3116  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3117set dummy ${ac_tool_prefix}strip; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if ${ac_cv_prog_STRIP+:} false; then :
3121  $as_echo_n "(cached) " >&6
3122else
3123  if test -n "$STRIP"; then
3124  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129  IFS=$as_save_IFS
3130  test -z "$as_dir" && as_dir=.
3131    for ac_exec_ext in '' $ac_executable_extensions; do
3132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135    break 2
3136  fi
3137done
3138  done
3139IFS=$as_save_IFS
3140
3141fi
3142fi
3143STRIP=$ac_cv_prog_STRIP
3144if test -n "$STRIP"; then
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3146$as_echo "$STRIP" >&6; }
3147else
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150fi
3151
3152
3153fi
3154if test -z "$ac_cv_prog_STRIP"; then
3155  ac_ct_STRIP=$STRIP
3156  # Extract the first word of "strip", so it can be a program name with args.
3157set dummy strip; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$ac_ct_STRIP"; then
3164  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173    ac_cv_prog_ac_ct_STRIP="strip"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3184if test -n "$ac_ct_STRIP"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3186$as_echo "$ac_ct_STRIP" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192  if test "x$ac_ct_STRIP" = x; then
3193    STRIP=":"
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    STRIP=$ac_ct_STRIP
3202  fi
3203else
3204  STRIP="$ac_cv_prog_STRIP"
3205fi
3206
3207fi
3208INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3209
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3211$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3212if test -z "$MKDIR_P"; then
3213  if ${ac_cv_path_mkdir+:} false; then :
3214  $as_echo_n "(cached) " >&6
3215else
3216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_prog in mkdir gmkdir; do
3222	 for ac_exec_ext in '' $ac_executable_extensions; do
3223	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3224	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3225	     'mkdir (GNU coreutils) '* | \
3226	     'mkdir (coreutils) '* | \
3227	     'mkdir (fileutils) '4.1*)
3228	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3229	       break 3;;
3230	   esac
3231	 done
3232       done
3233  done
3234IFS=$as_save_IFS
3235
3236fi
3237
3238  test -d ./--version && rmdir ./--version
3239  if test "${ac_cv_path_mkdir+set}" = set; then
3240    MKDIR_P="$ac_cv_path_mkdir -p"
3241  else
3242    # As a last resort, use the slow shell script.  Don't cache a
3243    # value for MKDIR_P within a source directory, because that will
3244    # break other packages using the cache if that directory is
3245    # removed, or if the value is a relative name.
3246    MKDIR_P="$ac_install_sh -d"
3247  fi
3248fi
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3250$as_echo "$MKDIR_P" >&6; }
3251
3252for ac_prog in gawk mawk nawk awk
3253do
3254  # Extract the first word of "$ac_prog", so it can be a program name with args.
3255set dummy $ac_prog; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_AWK+:} false; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$AWK"; then
3262  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271    ac_cv_prog_AWK="$ac_prog"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281AWK=$ac_cv_prog_AWK
3282if test -n "$AWK"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3284$as_echo "$AWK" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291  test -n "$AWK" && break
3292done
3293
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3295$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3296set x ${MAKE-make}
3297ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3298if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301  cat >conftest.make <<\_ACEOF
3302SHELL = /bin/sh
3303all:
3304	@echo '@@@%%%=$(MAKE)=@@@%%%'
3305_ACEOF
3306# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3307case `${MAKE-make} -f conftest.make 2>/dev/null` in
3308  *@@@%%%=?*=@@@%%%*)
3309    eval ac_cv_prog_make_${ac_make}_set=yes;;
3310  *)
3311    eval ac_cv_prog_make_${ac_make}_set=no;;
3312esac
3313rm -f conftest.make
3314fi
3315if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
3318  SET_MAKE=
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322  SET_MAKE="MAKE=${MAKE-make}"
3323fi
3324
3325rm -rf .tst 2>/dev/null
3326mkdir .tst 2>/dev/null
3327if test -d .tst; then
3328  am__leading_dot=.
3329else
3330  am__leading_dot=_
3331fi
3332rmdir .tst 2>/dev/null
3333
3334# Check whether --enable-silent-rules was given.
3335if test "${enable_silent_rules+set}" = set; then :
3336  enableval=$enable_silent_rules;
3337fi
3338
3339case $enable_silent_rules in # (((
3340  yes) AM_DEFAULT_VERBOSITY=0;;
3341   no) AM_DEFAULT_VERBOSITY=1;;
3342    *) AM_DEFAULT_VERBOSITY=1;;
3343esac
3344am_make=${MAKE-make}
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3346$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3347if ${am_cv_make_support_nested_variables+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  if $as_echo 'TRUE=$(BAR$(V))
3351BAR0=false
3352BAR1=true
3353V=1
3354am__doit:
3355	@$(TRUE)
3356.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3357  am_cv_make_support_nested_variables=yes
3358else
3359  am_cv_make_support_nested_variables=no
3360fi
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3363$as_echo "$am_cv_make_support_nested_variables" >&6; }
3364if test $am_cv_make_support_nested_variables = yes; then
3365    AM_V='$(V)'
3366  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3367else
3368  AM_V=$AM_DEFAULT_VERBOSITY
3369  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3370fi
3371AM_BACKSLASH='\'
3372
3373if test "`cd $srcdir && pwd`" != "`pwd`"; then
3374  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3375  # is not polluted with repeated "-I."
3376  am__isrc=' -I$(srcdir)'
3377  # test to see if srcdir already configured
3378  if test -f $srcdir/config.status; then
3379    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3380  fi
3381fi
3382
3383# test whether we have cygpath
3384if test -z "$CYGPATH_W"; then
3385  if (cygpath --version) >/dev/null 2>/dev/null; then
3386    CYGPATH_W='cygpath -w'
3387  else
3388    CYGPATH_W=echo
3389  fi
3390fi
3391
3392
3393# Define the identity of the package.
3394 PACKAGE='libfabric'
3395 VERSION='1.10.1'
3396
3397
3398cat >>confdefs.h <<_ACEOF
3399#define PACKAGE "$PACKAGE"
3400_ACEOF
3401
3402
3403cat >>confdefs.h <<_ACEOF
3404#define VERSION "$VERSION"
3405_ACEOF
3406
3407# Some tools Automake needs.
3408
3409ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3410
3411
3412AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3413
3414
3415AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3416
3417
3418AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3419
3420
3421MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3422
3423# For better backward compatibility.  To be removed once Automake 1.9.x
3424# dies out for good.  For more background, see:
3425# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3426# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3427mkdir_p='$(MKDIR_P)'
3428
3429# We need awk for the "check" target (and possibly the TAP driver).  The
3430# system "awk" is bad on some platforms.
3431# Always define AMTAR for backward compatibility.  Yes, it's still used
3432# in the wild :-(  We should find a proper way to deprecate it ...
3433AMTAR='$${TAR-tar}'
3434
3435
3436# We'll loop over all known methods to create a tar archive until one works.
3437_am_tools='gnutar  pax cpio none'
3438
3439
3440
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3442$as_echo_n "checking how to create a pax tar archive... " >&6; }
3443
3444  # Go ahead even if we have the value already cached.  We do so because we
3445  # need to set the values for the 'am__tar' and 'am__untar' variables.
3446  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3447
3448  for _am_tool in $_am_tools; do
3449    case $_am_tool in
3450    gnutar)
3451      for _am_tar in tar gnutar gtar; do
3452        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3453   ($_am_tar --version) >&5 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } && break
3457      done
3458      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3459      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3460      am__untar="$_am_tar -xf -"
3461      ;;
3462    plaintar)
3463      # Must skip GNU tar: if it does not support --format= it doesn't create
3464      # ustar tarball either.
3465      (tar --version) >/dev/null 2>&1 && continue
3466      am__tar='tar chf - "$$tardir"'
3467      am__tar_='tar chf - "$tardir"'
3468      am__untar='tar xf -'
3469      ;;
3470    pax)
3471      am__tar='pax -L -x pax -w "$$tardir"'
3472      am__tar_='pax -L -x pax -w "$tardir"'
3473      am__untar='pax -r'
3474      ;;
3475    cpio)
3476      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3477      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3478      am__untar='cpio -i -H pax -d'
3479      ;;
3480    none)
3481      am__tar=false
3482      am__tar_=false
3483      am__untar=false
3484      ;;
3485    esac
3486
3487    # If the value was cached, stop now.  We just wanted to have am__tar
3488    # and am__untar set.
3489    test -n "${am_cv_prog_tar_pax}" && break
3490
3491    # tar/untar a dummy directory, and stop if the command works.
3492    rm -rf conftest.dir
3493    mkdir conftest.dir
3494    echo GrepMe > conftest.dir/file
3495    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3496   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }
3500    rm -rf conftest.dir
3501    if test -s conftest.tar; then
3502      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3503   ($am__untar <conftest.tar) >&5 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3508   (cat conftest.dir/file) >&5 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3513    fi
3514  done
3515  rm -rf conftest.dir
3516
3517  if ${am_cv_prog_tar_pax+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  am_cv_prog_tar_pax=$_am_tool
3521fi
3522
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3524$as_echo "$am_cv_prog_tar_pax" >&6; }
3525
3526
3527
3528
3529
3530
3531# POSIX will say in a future version that running "rm -f" with no argument
3532# is OK; and we want to be able to make that assumption in our Makefile
3533# recipes.  So use an aggressive probe to check that the usage we want is
3534# actually supported "in the wild" to an acceptable degree.
3535# See automake bug#10828.
3536# To make any issue more visible, cause the running configure to be aborted
3537# by default if the 'rm' program in use doesn't match our expectations; the
3538# user can still override this though.
3539if rm -f && rm -fr && rm -rf; then : OK; else
3540  cat >&2 <<'END'
3541Oops!
3542
3543Your 'rm' program seems unable to run without file operands specified
3544on the command line, even when the '-f' option is present.  This is contrary
3545to the behaviour of most rm programs out there, and not conforming with
3546the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3547
3548Please tell bug-automake@gnu.org about your system, including the value
3549of your $PATH and any error possibly output before this message.  This
3550can help us improve future automake versions.
3551
3552END
3553  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3554    echo 'Configuration will proceed anyway, since you have set the' >&2
3555    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3556    echo >&2
3557  else
3558    cat >&2 <<'END'
3559Aborting the configuration process, to ensure you take notice of the issue.
3560
3561You can download and install GNU coreutils to get an 'rm' implementation
3562that behaves properly: <http://www.gnu.org/software/coreutils/>.
3563
3564If you want to complete the configuration process using your problematic
3565'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3566to "yes", and re-run configure.
3567
3568END
3569    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3570  fi
3571fi
3572
3573# Check whether --enable-silent-rules was given.
3574if test "${enable_silent_rules+set}" = set; then :
3575  enableval=$enable_silent_rules;
3576fi
3577
3578case $enable_silent_rules in # (((
3579  yes) AM_DEFAULT_VERBOSITY=0;;
3580   no) AM_DEFAULT_VERBOSITY=1;;
3581    *) AM_DEFAULT_VERBOSITY=0;;
3582esac
3583am_make=${MAKE-make}
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3585$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3586if ${am_cv_make_support_nested_variables+:} false; then :
3587  $as_echo_n "(cached) " >&6
3588else
3589  if $as_echo 'TRUE=$(BAR$(V))
3590BAR0=false
3591BAR1=true
3592V=1
3593am__doit:
3594	@$(TRUE)
3595.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3596  am_cv_make_support_nested_variables=yes
3597else
3598  am_cv_make_support_nested_variables=no
3599fi
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3602$as_echo "$am_cv_make_support_nested_variables" >&6; }
3603if test $am_cv_make_support_nested_variables = yes; then
3604    AM_V='$(V)'
3605  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3606else
3607  AM_V=$AM_DEFAULT_VERBOSITY
3608  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3609fi
3610AM_BACKSLASH='\'
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623# Make sure we can run config.sub.
3624$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3625  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3626
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3628$as_echo_n "checking build system type... " >&6; }
3629if ${ac_cv_build+:} false; then :
3630  $as_echo_n "(cached) " >&6
3631else
3632  ac_build_alias=$build_alias
3633test "x$ac_build_alias" = x &&
3634  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3635test "x$ac_build_alias" = x &&
3636  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3637ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3638  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3639
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3642$as_echo "$ac_cv_build" >&6; }
3643case $ac_cv_build in
3644*-*-*) ;;
3645*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3646esac
3647build=$ac_cv_build
3648ac_save_IFS=$IFS; IFS='-'
3649set x $ac_cv_build
3650shift
3651build_cpu=$1
3652build_vendor=$2
3653shift; shift
3654# Remember, the first character of IFS is used to create $*,
3655# except with old shells:
3656build_os=$*
3657IFS=$ac_save_IFS
3658case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3659
3660
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3662$as_echo_n "checking host system type... " >&6; }
3663if ${ac_cv_host+:} false; then :
3664  $as_echo_n "(cached) " >&6
3665else
3666  if test "x$host_alias" = x; then
3667  ac_cv_host=$ac_cv_build
3668else
3669  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3670    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3671fi
3672
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3675$as_echo "$ac_cv_host" >&6; }
3676case $ac_cv_host in
3677*-*-*) ;;
3678*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3679esac
3680host=$ac_cv_host
3681ac_save_IFS=$IFS; IFS='-'
3682set x $ac_cv_host
3683shift
3684host_cpu=$1
3685host_vendor=$2
3686shift; shift
3687# Remember, the first character of IFS is used to create $*,
3688# except with old shells:
3689host_os=$*
3690IFS=$ac_save_IFS
3691case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3692
3693
3694
3695macos=0
3696linux=0
3697freebsd=0
3698
3699case $host_os in
3700*darwin*)
3701	macos=1
3702	;;
3703*linux*)
3704	linux=1
3705	;;
3706*freebsd*)
3707	freebsd=1
3708	;;
3709*)
3710	as_fn_error $? "libfabric only builds on Linux, OS X, and FreeBSD" "$LINENO" 5
3711	;;
3712esac
3713
3714 if test "x$macos" = "x1"; then
3715  MACOS_TRUE=
3716  MACOS_FALSE='#'
3717else
3718  MACOS_TRUE='#'
3719  MACOS_FALSE=
3720fi
3721
3722 if test "x$linux" = "x1"; then
3723  LINUX_TRUE=
3724  LINUX_FALSE='#'
3725else
3726  LINUX_TRUE='#'
3727  LINUX_FALSE=
3728fi
3729
3730 if test "x$freebsd" = "x1"; then
3731  FREEBSD_TRUE=
3732  FREEBSD_FALSE='#'
3733else
3734  FREEBSD_TRUE='#'
3735  FREEBSD_FALSE=
3736fi
3737
3738
3739base_c_warn_flags="-Wall -Wundef -Wpointer-arith"
3740debug_c_warn_flags="-Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers"
3741debug_c_other_flags="-fstack-protector-strong"
3742picky_c_warn_flags="-Wno-long-long -Wmissing-prototypes -Wstrict-prototypes -Wcomment -pedantic"
3743
3744
3745# Check whether --with-build_id was given.
3746if test "${with_build_id+set}" = set; then :
3747  withval=$with_build_id;
3748else
3749  with_build_id=no
3750fi
3751
3752if test x"$with_build_id" = x"no"; then :
3753  with_build_id=""
3754fi
3755
3756cat >>confdefs.h <<_ACEOF
3757#define BUILD_ID "$with_build_id"
3758_ACEOF
3759
3760
3761# Override autoconf default CFLAG settings (e.g. "-g -O2") while still
3762# allowing the user to explicitly set CFLAGS=""
3763: ${CFLAGS="-fvisibility=hidden ${base_c_warn_flags}"}
3764
3765# AM_PROG_AS would set CFLAGS="-g -O2" by default if not set already so it
3766# should not be called earlier
3767DEPDIR="${am__leading_dot}deps"
3768
3769ac_config_commands="$ac_config_commands depfiles"
3770
3771
3772am_make=${MAKE-make}
3773cat > confinc << 'END'
3774am__doit:
3775	@echo this is the am__doit target
3776.PHONY: am__doit
3777END
3778# If we don't find an include directive, just comment out the code.
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3780$as_echo_n "checking for style of include used by $am_make... " >&6; }
3781am__include="#"
3782am__quote=
3783_am_result=none
3784# First try GNU make style include.
3785echo "include confinc" > confmf
3786# Ignore all kinds of additional output from 'make'.
3787case `$am_make -s -f confmf 2> /dev/null` in #(
3788*the\ am__doit\ target*)
3789  am__include=include
3790  am__quote=
3791  _am_result=GNU
3792  ;;
3793esac
3794# Now try BSD make style include.
3795if test "$am__include" = "#"; then
3796   echo '.include "confinc"' > confmf
3797   case `$am_make -s -f confmf 2> /dev/null` in #(
3798   *the\ am__doit\ target*)
3799     am__include=.include
3800     am__quote="\""
3801     _am_result=BSD
3802     ;;
3803   esac
3804fi
3805
3806
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3808$as_echo "$_am_result" >&6; }
3809rm -f confinc confmf
3810
3811# Check whether --enable-dependency-tracking was given.
3812if test "${enable_dependency_tracking+set}" = set; then :
3813  enableval=$enable_dependency_tracking;
3814fi
3815
3816if test "x$enable_dependency_tracking" != xno; then
3817  am_depcomp="$ac_aux_dir/depcomp"
3818  AMDEPBACKSLASH='\'
3819  am__nodep='_no'
3820fi
3821 if test "x$enable_dependency_tracking" != xno; then
3822  AMDEP_TRUE=
3823  AMDEP_FALSE='#'
3824else
3825  AMDEP_TRUE='#'
3826  AMDEP_FALSE=
3827fi
3828
3829
3830ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835if test -n "$ac_tool_prefix"; then
3836  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3837set dummy ${ac_tool_prefix}gcc; ac_word=$2
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
3840if ${ac_cv_prog_CC+:} false; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  if test -n "$CC"; then
3844  ac_cv_prog_CC="$CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849  IFS=$as_save_IFS
3850  test -z "$as_dir" && as_dir=.
3851    for ac_exec_ext in '' $ac_executable_extensions; do
3852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855    break 2
3856  fi
3857done
3858  done
3859IFS=$as_save_IFS
3860
3861fi
3862fi
3863CC=$ac_cv_prog_CC
3864if test -n "$CC"; then
3865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866$as_echo "$CC" >&6; }
3867else
3868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
3870fi
3871
3872
3873fi
3874if test -z "$ac_cv_prog_CC"; then
3875  ac_ct_CC=$CC
3876  # Extract the first word of "gcc", so it can be a program name with args.
3877set dummy gcc; ac_word=$2
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879$as_echo_n "checking for $ac_word... " >&6; }
3880if ${ac_cv_prog_ac_ct_CC+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883  if test -n "$ac_ct_CC"; then
3884  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885else
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891    for ac_exec_ext in '' $ac_executable_extensions; do
3892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893    ac_cv_prog_ac_ct_CC="gcc"
3894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895    break 2
3896  fi
3897done
3898  done
3899IFS=$as_save_IFS
3900
3901fi
3902fi
3903ac_ct_CC=$ac_cv_prog_ac_ct_CC
3904if test -n "$ac_ct_CC"; then
3905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3906$as_echo "$ac_ct_CC" >&6; }
3907else
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909$as_echo "no" >&6; }
3910fi
3911
3912  if test "x$ac_ct_CC" = x; then
3913    CC=""
3914  else
3915    case $cross_compiling:$ac_tool_warned in
3916yes:)
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3919ac_tool_warned=yes ;;
3920esac
3921    CC=$ac_ct_CC
3922  fi
3923else
3924  CC="$ac_cv_prog_CC"
3925fi
3926
3927if test -z "$CC"; then
3928          if test -n "$ac_tool_prefix"; then
3929    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3930set dummy ${ac_tool_prefix}cc; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if ${ac_cv_prog_CC+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -n "$CC"; then
3937  ac_cv_prog_CC="$CC" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946    ac_cv_prog_CC="${ac_tool_prefix}cc"
3947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956CC=$ac_cv_prog_CC
3957if test -n "$CC"; then
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959$as_echo "$CC" >&6; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966  fi
3967fi
3968if test -z "$CC"; then
3969  # Extract the first word of "cc", so it can be a program name with args.
3970set dummy cc; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
3973if ${ac_cv_prog_CC+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  if test -n "$CC"; then
3977  ac_cv_prog_CC="$CC" # Let the user override the test.
3978else
3979  ac_prog_rejected=no
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983  IFS=$as_save_IFS
3984  test -z "$as_dir" && as_dir=.
3985    for ac_exec_ext in '' $ac_executable_extensions; do
3986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3988       ac_prog_rejected=yes
3989       continue
3990     fi
3991    ac_cv_prog_CC="cc"
3992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993    break 2
3994  fi
3995done
3996  done
3997IFS=$as_save_IFS
3998
3999if test $ac_prog_rejected = yes; then
4000  # We found a bogon in the path, so make sure we never use it.
4001  set dummy $ac_cv_prog_CC
4002  shift
4003  if test $# != 0; then
4004    # We chose a different compiler from the bogus one.
4005    # However, it has the same basename, so the bogon will be chosen
4006    # first if we set CC to just the basename; use the full file name.
4007    shift
4008    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4009  fi
4010fi
4011fi
4012fi
4013CC=$ac_cv_prog_CC
4014if test -n "$CC"; then
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4016$as_echo "$CC" >&6; }
4017else
4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020fi
4021
4022
4023fi
4024if test -z "$CC"; then
4025  if test -n "$ac_tool_prefix"; then
4026  for ac_prog in cl.exe
4027  do
4028    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031$as_echo_n "checking for $ac_word... " >&6; }
4032if ${ac_cv_prog_CC+:} false; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  if test -n "$CC"; then
4036  ac_cv_prog_CC="$CC" # Let the user override the test.
4037else
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041  IFS=$as_save_IFS
4042  test -z "$as_dir" && as_dir=.
4043    for ac_exec_ext in '' $ac_executable_extensions; do
4044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047    break 2
4048  fi
4049done
4050  done
4051IFS=$as_save_IFS
4052
4053fi
4054fi
4055CC=$ac_cv_prog_CC
4056if test -n "$CC"; then
4057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058$as_echo "$CC" >&6; }
4059else
4060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
4062fi
4063
4064
4065    test -n "$CC" && break
4066  done
4067fi
4068if test -z "$CC"; then
4069  ac_ct_CC=$CC
4070  for ac_prog in cl.exe
4071do
4072  # Extract the first word of "$ac_prog", so it can be a program name with args.
4073set dummy $ac_prog; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if ${ac_cv_prog_ac_ct_CC+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$ac_ct_CC"; then
4080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089    ac_cv_prog_ac_ct_CC="$ac_prog"
4090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094  done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099ac_ct_CC=$ac_cv_prog_ac_ct_CC
4100if test -n "$ac_ct_CC"; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4102$as_echo "$ac_ct_CC" >&6; }
4103else
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109  test -n "$ac_ct_CC" && break
4110done
4111
4112  if test "x$ac_ct_CC" = x; then
4113    CC=""
4114  else
4115    case $cross_compiling:$ac_tool_warned in
4116yes:)
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119ac_tool_warned=yes ;;
4120esac
4121    CC=$ac_ct_CC
4122  fi
4123fi
4124
4125fi
4126
4127
4128test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130as_fn_error $? "no acceptable C compiler found in \$PATH
4131See \`config.log' for more details" "$LINENO" 5; }
4132
4133# Provide some information about the compiler.
4134$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4135set X $ac_compile
4136ac_compiler=$2
4137for ac_option in --version -v -V -qversion; do
4138  { { ac_try="$ac_compiler $ac_option >&5"
4139case "(($ac_try" in
4140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141  *) ac_try_echo=$ac_try;;
4142esac
4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144$as_echo "$ac_try_echo"; } >&5
4145  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4146  ac_status=$?
4147  if test -s conftest.err; then
4148    sed '10a\
4149... rest of stderr output deleted ...
4150         10q' conftest.err >conftest.er1
4151    cat conftest.er1 >&5
4152  fi
4153  rm -f conftest.er1 conftest.err
4154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155  test $ac_status = 0; }
4156done
4157
4158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h.  */
4160
4161int
4162main ()
4163{
4164
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169ac_clean_files_save=$ac_clean_files
4170ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4171# Try to create an executable without -o first, disregard a.out.
4172# It will help us diagnose broken compilers, and finding out an intuition
4173# of exeext.
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4175$as_echo_n "checking whether the C compiler works... " >&6; }
4176ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4177
4178# The possible output files:
4179ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4180
4181ac_rmfiles=
4182for ac_file in $ac_files
4183do
4184  case $ac_file in
4185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4186    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4187  esac
4188done
4189rm -f $ac_rmfiles
4190
4191if { { ac_try="$ac_link_default"
4192case "(($ac_try" in
4193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194  *) ac_try_echo=$ac_try;;
4195esac
4196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197$as_echo "$ac_try_echo"; } >&5
4198  (eval "$ac_link_default") 2>&5
4199  ac_status=$?
4200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201  test $ac_status = 0; }; then :
4202  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4203# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4204# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4205# so that the user can short-circuit this test for compilers unknown to
4206# Autoconf.
4207for ac_file in $ac_files ''
4208do
4209  test -f "$ac_file" || continue
4210  case $ac_file in
4211    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4212	;;
4213    [ab].out )
4214	# We found the default executable, but exeext='' is most
4215	# certainly right.
4216	break;;
4217    *.* )
4218	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4219	then :; else
4220	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4221	fi
4222	# We set ac_cv_exeext here because the later test for it is not
4223	# safe: cross compilers may not add the suffix if given an `-o'
4224	# argument, so we may need to know it at that point already.
4225	# Even if this section looks crufty: it has the advantage of
4226	# actually working.
4227	break;;
4228    * )
4229	break;;
4230  esac
4231done
4232test "$ac_cv_exeext" = no && ac_cv_exeext=
4233
4234else
4235  ac_file=''
4236fi
4237if test -z "$ac_file"; then :
4238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239$as_echo "no" >&6; }
4240$as_echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4245as_fn_error 77 "C compiler cannot create executables
4246See \`config.log' for more details" "$LINENO" 5; }
4247else
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4249$as_echo "yes" >&6; }
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4252$as_echo_n "checking for C compiler default output file name... " >&6; }
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4254$as_echo "$ac_file" >&6; }
4255ac_exeext=$ac_cv_exeext
4256
4257rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4258ac_clean_files=$ac_clean_files_save
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4260$as_echo_n "checking for suffix of executables... " >&6; }
4261if { { ac_try="$ac_link"
4262case "(($ac_try" in
4263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264  *) ac_try_echo=$ac_try;;
4265esac
4266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267$as_echo "$ac_try_echo"; } >&5
4268  (eval "$ac_link") 2>&5
4269  ac_status=$?
4270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271  test $ac_status = 0; }; then :
4272  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4273# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4274# work properly (i.e., refer to `conftest.exe'), while it won't with
4275# `rm'.
4276for ac_file in conftest.exe conftest conftest.*; do
4277  test -f "$ac_file" || continue
4278  case $ac_file in
4279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4280    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4281	  break;;
4282    * ) break;;
4283  esac
4284done
4285else
4286  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4289See \`config.log' for more details" "$LINENO" 5; }
4290fi
4291rm -f conftest conftest$ac_cv_exeext
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4293$as_echo "$ac_cv_exeext" >&6; }
4294
4295rm -f conftest.$ac_ext
4296EXEEXT=$ac_cv_exeext
4297ac_exeext=$EXEEXT
4298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h.  */
4300#include <stdio.h>
4301int
4302main ()
4303{
4304FILE *f = fopen ("conftest.out", "w");
4305 return ferror (f) || fclose (f) != 0;
4306
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311ac_clean_files="$ac_clean_files conftest.out"
4312# Check that the compiler produces executables we can run.  If not, either
4313# the compiler is broken, or we cross compile.
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4315$as_echo_n "checking whether we are cross compiling... " >&6; }
4316if test "$cross_compiling" != yes; then
4317  { { ac_try="$ac_link"
4318case "(($ac_try" in
4319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320  *) ac_try_echo=$ac_try;;
4321esac
4322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323$as_echo "$ac_try_echo"; } >&5
4324  (eval "$ac_link") 2>&5
4325  ac_status=$?
4326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327  test $ac_status = 0; }
4328  if { ac_try='./conftest$ac_cv_exeext'
4329  { { case "(($ac_try" in
4330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331  *) ac_try_echo=$ac_try;;
4332esac
4333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334$as_echo "$ac_try_echo"; } >&5
4335  (eval "$ac_try") 2>&5
4336  ac_status=$?
4337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338  test $ac_status = 0; }; }; then
4339    cross_compiling=no
4340  else
4341    if test "$cross_compiling" = maybe; then
4342	cross_compiling=yes
4343    else
4344	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346as_fn_error $? "cannot run C compiled programs.
4347If you meant to cross compile, use \`--host'.
4348See \`config.log' for more details" "$LINENO" 5; }
4349    fi
4350  fi
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4353$as_echo "$cross_compiling" >&6; }
4354
4355rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4356ac_clean_files=$ac_clean_files_save
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4358$as_echo_n "checking for suffix of object files... " >&6; }
4359if ${ac_cv_objext+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364
4365int
4366main ()
4367{
4368
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373rm -f conftest.o conftest.obj
4374if { { ac_try="$ac_compile"
4375case "(($ac_try" in
4376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377  *) ac_try_echo=$ac_try;;
4378esac
4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380$as_echo "$ac_try_echo"; } >&5
4381  (eval "$ac_compile") 2>&5
4382  ac_status=$?
4383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384  test $ac_status = 0; }; then :
4385  for ac_file in conftest.o conftest.obj conftest.*; do
4386  test -f "$ac_file" || continue;
4387  case $ac_file in
4388    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4389    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4390       break;;
4391  esac
4392done
4393else
4394  $as_echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399as_fn_error $? "cannot compute suffix of object files: cannot compile
4400See \`config.log' for more details" "$LINENO" 5; }
4401fi
4402rm -f conftest.$ac_cv_objext conftest.$ac_ext
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4405$as_echo "$ac_cv_objext" >&6; }
4406OBJEXT=$ac_cv_objext
4407ac_objext=$OBJEXT
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4409$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4410if ${ac_cv_c_compiler_gnu+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415
4416int
4417main ()
4418{
4419#ifndef __GNUC__
4420       choke me
4421#endif
4422
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_compile "$LINENO"; then :
4428  ac_compiler_gnu=yes
4429else
4430  ac_compiler_gnu=no
4431fi
4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433ac_cv_c_compiler_gnu=$ac_compiler_gnu
4434
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4437$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4438if test $ac_compiler_gnu = yes; then
4439  GCC=yes
4440else
4441  GCC=
4442fi
4443ac_test_CFLAGS=${CFLAGS+set}
4444ac_save_CFLAGS=$CFLAGS
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4446$as_echo_n "checking whether $CC accepts -g... " >&6; }
4447if ${ac_cv_prog_cc_g+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  ac_save_c_werror_flag=$ac_c_werror_flag
4451   ac_c_werror_flag=yes
4452   ac_cv_prog_cc_g=no
4453   CFLAGS="-g"
4454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h.  */
4456
4457int
4458main ()
4459{
4460
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465if ac_fn_c_try_compile "$LINENO"; then :
4466  ac_cv_prog_cc_g=yes
4467else
4468  CFLAGS=""
4469      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h.  */
4471
4472int
4473main ()
4474{
4475
4476  ;
4477  return 0;
4478}
4479_ACEOF
4480if ac_fn_c_try_compile "$LINENO"; then :
4481
4482else
4483  ac_c_werror_flag=$ac_save_c_werror_flag
4484	 CFLAGS="-g"
4485	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h.  */
4487
4488int
4489main ()
4490{
4491
4492  ;
4493  return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"; then :
4497  ac_cv_prog_cc_g=yes
4498fi
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500fi
4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502fi
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504   ac_c_werror_flag=$ac_save_c_werror_flag
4505fi
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4507$as_echo "$ac_cv_prog_cc_g" >&6; }
4508if test "$ac_test_CFLAGS" = set; then
4509  CFLAGS=$ac_save_CFLAGS
4510elif test $ac_cv_prog_cc_g = yes; then
4511  if test "$GCC" = yes; then
4512    CFLAGS="-g -O2"
4513  else
4514    CFLAGS="-g"
4515  fi
4516else
4517  if test "$GCC" = yes; then
4518    CFLAGS="-O2"
4519  else
4520    CFLAGS=
4521  fi
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4524$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4525if ${ac_cv_prog_cc_c89+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  ac_cv_prog_cc_c89=no
4529ac_save_CC=$CC
4530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532#include <stdarg.h>
4533#include <stdio.h>
4534struct stat;
4535/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4536struct buf { int x; };
4537FILE * (*rcsopen) (struct buf *, struct stat *, int);
4538static char *e (p, i)
4539     char **p;
4540     int i;
4541{
4542  return p[i];
4543}
4544static char *f (char * (*g) (char **, int), char **p, ...)
4545{
4546  char *s;
4547  va_list v;
4548  va_start (v,p);
4549  s = g (p, va_arg (v,int));
4550  va_end (v);
4551  return s;
4552}
4553
4554/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4555   function prototypes and stuff, but not '\xHH' hex character constants.
4556   These don't provoke an error unfortunately, instead are silently treated
4557   as 'x'.  The following induces an error, until -std is added to get
4558   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4559   array size at least.  It's necessary to write '\x00'==0 to get something
4560   that's true only with -std.  */
4561int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4562
4563/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4564   inside strings and character constants.  */
4565#define FOO(x) 'x'
4566int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4567
4568int test (int i, double x);
4569struct s1 {int (*f) (int a);};
4570struct s2 {int (*f) (double a);};
4571int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4572int argc;
4573char **argv;
4574int
4575main ()
4576{
4577return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4578  ;
4579  return 0;
4580}
4581_ACEOF
4582for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4583	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4584do
4585  CC="$ac_save_CC $ac_arg"
4586  if ac_fn_c_try_compile "$LINENO"; then :
4587  ac_cv_prog_cc_c89=$ac_arg
4588fi
4589rm -f core conftest.err conftest.$ac_objext
4590  test "x$ac_cv_prog_cc_c89" != "xno" && break
4591done
4592rm -f conftest.$ac_ext
4593CC=$ac_save_CC
4594
4595fi
4596# AC_CACHE_VAL
4597case "x$ac_cv_prog_cc_c89" in
4598  x)
4599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4600$as_echo "none needed" >&6; } ;;
4601  xno)
4602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4603$as_echo "unsupported" >&6; } ;;
4604  *)
4605    CC="$CC $ac_cv_prog_cc_c89"
4606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4607$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4608esac
4609if test "x$ac_cv_prog_cc_c89" != xno; then :
4610
4611fi
4612
4613ac_ext=c
4614ac_cpp='$CPP $CPPFLAGS'
4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4625$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4626if ${am_cv_prog_cc_c_o+:} false; then :
4627  $as_echo_n "(cached) " >&6
4628else
4629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h.  */
4631
4632int
4633main ()
4634{
4635
4636  ;
4637  return 0;
4638}
4639_ACEOF
4640  # Make sure it works both with $CC and with simple cc.
4641  # Following AC_PROG_CC_C_O, we do the test twice because some
4642  # compilers refuse to overwrite an existing .o file with -o,
4643  # though they will create one.
4644  am_cv_prog_cc_c_o=yes
4645  for am_i in 1 2; do
4646    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4647   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); } \
4651         && test -f conftest2.$ac_objext; then
4652      : OK
4653    else
4654      am_cv_prog_cc_c_o=no
4655      break
4656    fi
4657  done
4658  rm -f core conftest*
4659  unset am_i
4660fi
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4662$as_echo "$am_cv_prog_cc_c_o" >&6; }
4663if test "$am_cv_prog_cc_c_o" != yes; then
4664   # Losing compiler, so override with the script.
4665   # FIXME: It is wrong to rewrite CC.
4666   # But if we don't then we get into trouble of one sort or another.
4667   # A longer-term fix would be to have automake use am__CC in this case,
4668   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4669   CC="$am_aux_dir/compile $CC"
4670fi
4671ac_ext=c
4672ac_cpp='$CPP $CPPFLAGS'
4673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676
4677
4678depcc="$CC"   am_compiler_list=
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4681$as_echo_n "checking dependency style of $depcc... " >&6; }
4682if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4686  # We make a subdir and do the tests there.  Otherwise we can end up
4687  # making bogus files that we don't know about and never remove.  For
4688  # instance it was reported that on HP-UX the gcc test will end up
4689  # making a dummy file named 'D' -- because '-MD' means "put the output
4690  # in D".
4691  rm -rf conftest.dir
4692  mkdir conftest.dir
4693  # Copy depcomp to subdir because otherwise we won't find it if we're
4694  # using a relative directory.
4695  cp "$am_depcomp" conftest.dir
4696  cd conftest.dir
4697  # We will build objects and dependencies in a subdirectory because
4698  # it helps to detect inapplicable dependency modes.  For instance
4699  # both Tru64's cc and ICC support -MD to output dependencies as a
4700  # side effect of compilation, but ICC will put the dependencies in
4701  # the current directory while Tru64 will put them in the object
4702  # directory.
4703  mkdir sub
4704
4705  am_cv_CC_dependencies_compiler_type=none
4706  if test "$am_compiler_list" = ""; then
4707     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4708  fi
4709  am__universal=false
4710  case " $depcc " in #(
4711     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4712     esac
4713
4714  for depmode in $am_compiler_list; do
4715    # Setup a source with many dependencies, because some compilers
4716    # like to wrap large dependency lists on column 80 (with \), and
4717    # we should not choose a depcomp mode which is confused by this.
4718    #
4719    # We need to recreate these files for each test, as the compiler may
4720    # overwrite some of them when testing with obscure command lines.
4721    # This happens at least with the AIX C compiler.
4722    : > sub/conftest.c
4723    for i in 1 2 3 4 5 6; do
4724      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4725      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4726      # Solaris 10 /bin/sh.
4727      echo '/* dummy */' > sub/conftst$i.h
4728    done
4729    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4730
4731    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4732    # mode.  It turns out that the SunPro C++ compiler does not properly
4733    # handle '-M -o', and we need to detect this.  Also, some Intel
4734    # versions had trouble with output in subdirs.
4735    am__obj=sub/conftest.${OBJEXT-o}
4736    am__minus_obj="-o $am__obj"
4737    case $depmode in
4738    gcc)
4739      # This depmode causes a compiler race in universal mode.
4740      test "$am__universal" = false || continue
4741      ;;
4742    nosideeffect)
4743      # After this tag, mechanisms are not by side-effect, so they'll
4744      # only be used when explicitly requested.
4745      if test "x$enable_dependency_tracking" = xyes; then
4746	continue
4747      else
4748	break
4749      fi
4750      ;;
4751    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4752      # This compiler won't grok '-c -o', but also, the minuso test has
4753      # not run yet.  These depmodes are late enough in the game, and
4754      # so weak that their functioning should not be impacted.
4755      am__obj=conftest.${OBJEXT-o}
4756      am__minus_obj=
4757      ;;
4758    none) break ;;
4759    esac
4760    if depmode=$depmode \
4761       source=sub/conftest.c object=$am__obj \
4762       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4763       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4764         >/dev/null 2>conftest.err &&
4765       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4766       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4767       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4768       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4769      # icc doesn't choke on unknown options, it will just issue warnings
4770      # or remarks (even with -Werror).  So we grep stderr for any message
4771      # that says an option was ignored or not supported.
4772      # When given -MP, icc 7.0 and 7.1 complain thusly:
4773      #   icc: Command line warning: ignoring option '-M'; no argument required
4774      # The diagnosis changed in icc 8.0:
4775      #   icc: Command line remark: option '-MP' not supported
4776      if (grep 'ignoring option' conftest.err ||
4777          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4778        am_cv_CC_dependencies_compiler_type=$depmode
4779        break
4780      fi
4781    fi
4782  done
4783
4784  cd ..
4785  rm -rf conftest.dir
4786else
4787  am_cv_CC_dependencies_compiler_type=none
4788fi
4789
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4792$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4793CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4794
4795 if
4796  test "x$enable_dependency_tracking" != xno \
4797  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4798  am__fastdepCC_TRUE=
4799  am__fastdepCC_FALSE='#'
4800else
4801  am__fastdepCC_TRUE='#'
4802  am__fastdepCC_FALSE=
4803fi
4804
4805
4806# By default we simply use the C compiler to build assembly code.
4807
4808test "${CCAS+set}" = set || CCAS=$CC
4809test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4810
4811
4812
4813depcc="$CCAS"   am_compiler_list=
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4816$as_echo_n "checking dependency style of $depcc... " >&6; }
4817if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4821  # We make a subdir and do the tests there.  Otherwise we can end up
4822  # making bogus files that we don't know about and never remove.  For
4823  # instance it was reported that on HP-UX the gcc test will end up
4824  # making a dummy file named 'D' -- because '-MD' means "put the output
4825  # in D".
4826  rm -rf conftest.dir
4827  mkdir conftest.dir
4828  # Copy depcomp to subdir because otherwise we won't find it if we're
4829  # using a relative directory.
4830  cp "$am_depcomp" conftest.dir
4831  cd conftest.dir
4832  # We will build objects and dependencies in a subdirectory because
4833  # it helps to detect inapplicable dependency modes.  For instance
4834  # both Tru64's cc and ICC support -MD to output dependencies as a
4835  # side effect of compilation, but ICC will put the dependencies in
4836  # the current directory while Tru64 will put them in the object
4837  # directory.
4838  mkdir sub
4839
4840  am_cv_CCAS_dependencies_compiler_type=none
4841  if test "$am_compiler_list" = ""; then
4842     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4843  fi
4844  am__universal=false
4845
4846
4847  for depmode in $am_compiler_list; do
4848    # Setup a source with many dependencies, because some compilers
4849    # like to wrap large dependency lists on column 80 (with \), and
4850    # we should not choose a depcomp mode which is confused by this.
4851    #
4852    # We need to recreate these files for each test, as the compiler may
4853    # overwrite some of them when testing with obscure command lines.
4854    # This happens at least with the AIX C compiler.
4855    : > sub/conftest.c
4856    for i in 1 2 3 4 5 6; do
4857      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4858      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4859      # Solaris 10 /bin/sh.
4860      echo '/* dummy */' > sub/conftst$i.h
4861    done
4862    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4863
4864    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4865    # mode.  It turns out that the SunPro C++ compiler does not properly
4866    # handle '-M -o', and we need to detect this.  Also, some Intel
4867    # versions had trouble with output in subdirs.
4868    am__obj=sub/conftest.${OBJEXT-o}
4869    am__minus_obj="-o $am__obj"
4870    case $depmode in
4871    gcc)
4872      # This depmode causes a compiler race in universal mode.
4873      test "$am__universal" = false || continue
4874      ;;
4875    nosideeffect)
4876      # After this tag, mechanisms are not by side-effect, so they'll
4877      # only be used when explicitly requested.
4878      if test "x$enable_dependency_tracking" = xyes; then
4879	continue
4880      else
4881	break
4882      fi
4883      ;;
4884    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4885      # This compiler won't grok '-c -o', but also, the minuso test has
4886      # not run yet.  These depmodes are late enough in the game, and
4887      # so weak that their functioning should not be impacted.
4888      am__obj=conftest.${OBJEXT-o}
4889      am__minus_obj=
4890      ;;
4891    none) break ;;
4892    esac
4893    if depmode=$depmode \
4894       source=sub/conftest.c object=$am__obj \
4895       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4896       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4897         >/dev/null 2>conftest.err &&
4898       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4899       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4900       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4901       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4902      # icc doesn't choke on unknown options, it will just issue warnings
4903      # or remarks (even with -Werror).  So we grep stderr for any message
4904      # that says an option was ignored or not supported.
4905      # When given -MP, icc 7.0 and 7.1 complain thusly:
4906      #   icc: Command line warning: ignoring option '-M'; no argument required
4907      # The diagnosis changed in icc 8.0:
4908      #   icc: Command line remark: option '-MP' not supported
4909      if (grep 'ignoring option' conftest.err ||
4910          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4911        am_cv_CCAS_dependencies_compiler_type=$depmode
4912        break
4913      fi
4914    fi
4915  done
4916
4917  cd ..
4918  rm -rf conftest.dir
4919else
4920  am_cv_CCAS_dependencies_compiler_type=none
4921fi
4922
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4925$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4926CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4927
4928 if
4929  test "x$enable_dependency_tracking" != xno \
4930  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4931  am__fastdepCCAS_TRUE=
4932  am__fastdepCCAS_FALSE='#'
4933else
4934  am__fastdepCCAS_TRUE='#'
4935  am__fastdepCCAS_FALSE=
4936fi
4937
4938
4939
4940# AM PROG_AR did not exist pre AM 1.11.x (where x is somewhere >0 and
4941# <3), but it is necessary in AM 1.12.x.
4942
4943if test -n "$ac_tool_prefix"; then
4944  for ac_prog in ar lib "link -lib"
4945  do
4946    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949$as_echo_n "checking for $ac_word... " >&6; }
4950if ${ac_cv_prog_AR+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  if test -n "$AR"; then
4954  ac_cv_prog_AR="$AR" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961    for ac_exec_ext in '' $ac_executable_extensions; do
4962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965    break 2
4966  fi
4967done
4968  done
4969IFS=$as_save_IFS
4970
4971fi
4972fi
4973AR=$ac_cv_prog_AR
4974if test -n "$AR"; then
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4976$as_echo "$AR" >&6; }
4977else
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979$as_echo "no" >&6; }
4980fi
4981
4982
4983    test -n "$AR" && break
4984  done
4985fi
4986if test -z "$AR"; then
4987  ac_ct_AR=$AR
4988  for ac_prog in ar lib "link -lib"
4989do
4990  # Extract the first word of "$ac_prog", so it can be a program name with args.
4991set dummy $ac_prog; ac_word=$2
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993$as_echo_n "checking for $ac_word... " >&6; }
4994if ${ac_cv_prog_ac_ct_AR+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  if test -n "$ac_ct_AR"; then
4998  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4999else
5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001for as_dir in $PATH
5002do
5003  IFS=$as_save_IFS
5004  test -z "$as_dir" && as_dir=.
5005    for ac_exec_ext in '' $ac_executable_extensions; do
5006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007    ac_cv_prog_ac_ct_AR="$ac_prog"
5008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009    break 2
5010  fi
5011done
5012  done
5013IFS=$as_save_IFS
5014
5015fi
5016fi
5017ac_ct_AR=$ac_cv_prog_ac_ct_AR
5018if test -n "$ac_ct_AR"; then
5019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5020$as_echo "$ac_ct_AR" >&6; }
5021else
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023$as_echo "no" >&6; }
5024fi
5025
5026
5027  test -n "$ac_ct_AR" && break
5028done
5029
5030  if test "x$ac_ct_AR" = x; then
5031    AR="false"
5032  else
5033    case $cross_compiling:$ac_tool_warned in
5034yes:)
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037ac_tool_warned=yes ;;
5038esac
5039    AR=$ac_ct_AR
5040  fi
5041fi
5042
5043: ${AR=ar}
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5046$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5047if ${am_cv_ar_interface+:} false; then :
5048  $as_echo_n "(cached) " >&6
5049else
5050  ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055
5056   am_cv_ar_interface=ar
5057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058/* end confdefs.h.  */
5059int some_variable = 0;
5060_ACEOF
5061if ac_fn_c_try_compile "$LINENO"; then :
5062  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5063      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5064  (eval $am_ar_try) 2>&5
5065  ac_status=$?
5066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5067  test $ac_status = 0; }
5068      if test "$ac_status" -eq 0; then
5069        am_cv_ar_interface=ar
5070      else
5071        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5072        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5073  (eval $am_ar_try) 2>&5
5074  ac_status=$?
5075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076  test $ac_status = 0; }
5077        if test "$ac_status" -eq 0; then
5078          am_cv_ar_interface=lib
5079        else
5080          am_cv_ar_interface=unknown
5081        fi
5082      fi
5083      rm -f conftest.lib libconftest.a
5084
5085fi
5086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087   ac_ext=c
5088ac_cpp='$CPP $CPPFLAGS'
5089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093fi
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5095$as_echo "$am_cv_ar_interface" >&6; }
5096
5097case $am_cv_ar_interface in
5098ar)
5099  ;;
5100lib)
5101  # Microsoft lib, so override with the ar-lib wrapper script.
5102  # FIXME: It is wrong to rewrite AR.
5103  # But if we don't then we get into trouble of one sort or another.
5104  # A longer-term fix would be to have automake use am__AR in this case,
5105  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5106  # similar.
5107  AR="$am_aux_dir/ar-lib $AR"
5108  ;;
5109unknown)
5110  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5111  ;;
5112esac
5113
5114
5115
5116# Check whether --with-valgrind was given.
5117if test "${with_valgrind+set}" = set; then :
5118  withval=$with_valgrind;
5119fi
5120
5121
5122if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
5123
5124$as_echo "#define INCLUDE_VALGRIND 1" >>confdefs.h
5125
5126	if test -d $with_valgrind; then
5127		CPPFLAGS="$CPPFLAGS -I$with_valgrind/include"
5128	fi
5129fi
5130
5131# Check whether --enable-direct was given.
5132if test "${enable_direct+set}" = set; then :
5133  enableval=$enable_direct;
5134else
5135  enable_direct=no
5136fi
5137
5138
5139
5140# Check whether --enable-atomics was given.
5141if test "${enable_atomics+set}" = set; then :
5142  enableval=$enable_atomics;
5143else
5144  enable_atomics=yes
5145fi
5146
5147
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5149$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5150if ${ac_cv_prog_cc_c99+:} false; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  ac_cv_prog_cc_c99=no
5154ac_save_CC=$CC
5155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h.  */
5157#include <stdarg.h>
5158#include <stdbool.h>
5159#include <stdlib.h>
5160#include <wchar.h>
5161#include <stdio.h>
5162
5163// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5164#define debug(...) fprintf (stderr, __VA_ARGS__)
5165#define showlist(...) puts (#__VA_ARGS__)
5166#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5167static void
5168test_varargs_macros (void)
5169{
5170  int x = 1234;
5171  int y = 5678;
5172  debug ("Flag");
5173  debug ("X = %d\n", x);
5174  showlist (The first, second, and third items.);
5175  report (x>y, "x is %d but y is %d", x, y);
5176}
5177
5178// Check long long types.
5179#define BIG64 18446744073709551615ull
5180#define BIG32 4294967295ul
5181#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5182#if !BIG_OK
5183  your preprocessor is broken;
5184#endif
5185#if BIG_OK
5186#else
5187  your preprocessor is broken;
5188#endif
5189static long long int bignum = -9223372036854775807LL;
5190static unsigned long long int ubignum = BIG64;
5191
5192struct incomplete_array
5193{
5194  int datasize;
5195  double data[];
5196};
5197
5198struct named_init {
5199  int number;
5200  const wchar_t *name;
5201  double average;
5202};
5203
5204typedef const char *ccp;
5205
5206static inline int
5207test_restrict (ccp restrict text)
5208{
5209  // See if C++-style comments work.
5210  // Iterate through items via the restricted pointer.
5211  // Also check for declarations in for loops.
5212  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5213    continue;
5214  return 0;
5215}
5216
5217// Check varargs and va_copy.
5218static void
5219test_varargs (const char *format, ...)
5220{
5221  va_list args;
5222  va_start (args, format);
5223  va_list args_copy;
5224  va_copy (args_copy, args);
5225
5226  const char *str;
5227  int number;
5228  float fnumber;
5229
5230  while (*format)
5231    {
5232      switch (*format++)
5233	{
5234	case 's': // string
5235	  str = va_arg (args_copy, const char *);
5236	  break;
5237	case 'd': // int
5238	  number = va_arg (args_copy, int);
5239	  break;
5240	case 'f': // float
5241	  fnumber = va_arg (args_copy, double);
5242	  break;
5243	default:
5244	  break;
5245	}
5246    }
5247  va_end (args_copy);
5248  va_end (args);
5249}
5250
5251int
5252main ()
5253{
5254
5255  // Check bool.
5256  _Bool success = false;
5257
5258  // Check restrict.
5259  if (test_restrict ("String literal") == 0)
5260    success = true;
5261  char *restrict newvar = "Another string";
5262
5263  // Check varargs.
5264  test_varargs ("s, d' f .", "string", 65, 34.234);
5265  test_varargs_macros ();
5266
5267  // Check flexible array members.
5268  struct incomplete_array *ia =
5269    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5270  ia->datasize = 10;
5271  for (int i = 0; i < ia->datasize; ++i)
5272    ia->data[i] = i * 1.234;
5273
5274  // Check named initializers.
5275  struct named_init ni = {
5276    .number = 34,
5277    .name = L"Test wide string",
5278    .average = 543.34343,
5279  };
5280
5281  ni.number = 58;
5282
5283  int dynamic_array[ni.number];
5284  dynamic_array[ni.number - 1] = 543;
5285
5286  // work around unused variable warnings
5287  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5288	  || dynamic_array[ni.number - 1] != 543);
5289
5290  ;
5291  return 0;
5292}
5293_ACEOF
5294for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5295do
5296  CC="$ac_save_CC $ac_arg"
5297  if ac_fn_c_try_compile "$LINENO"; then :
5298  ac_cv_prog_cc_c99=$ac_arg
5299fi
5300rm -f core conftest.err conftest.$ac_objext
5301  test "x$ac_cv_prog_cc_c99" != "xno" && break
5302done
5303rm -f conftest.$ac_ext
5304CC=$ac_save_CC
5305
5306fi
5307# AC_CACHE_VAL
5308case "x$ac_cv_prog_cc_c99" in
5309  x)
5310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5311$as_echo "none needed" >&6; } ;;
5312  xno)
5313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5314$as_echo "unsupported" >&6; } ;;
5315  *)
5316    CC="$CC $ac_cv_prog_cc_c99"
5317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5318$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5319esac
5320if test "x$ac_cv_prog_cc_c99" != xno; then :
5321
5322fi
5323
5324
5325if test "$ac_cv_prog_cc_c99" = "no"; then :
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libfabric requires a C99-compliant compiler" >&5
5327$as_echo "$as_me: WARNING: Libfabric requires a C99-compliant compiler" >&2;}
5328       as_fn_error $? "Cannot continue" "$LINENO" 5
5329fi
5330
5331ac_ext=c
5332ac_cpp='$CPP $CPPFLAGS'
5333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5337$as_echo_n "checking how to run the C preprocessor... " >&6; }
5338# On Suns, sometimes $CPP names a directory.
5339if test -n "$CPP" && test -d "$CPP"; then
5340  CPP=
5341fi
5342if test -z "$CPP"; then
5343  if ${ac_cv_prog_CPP+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346      # Double quotes because CPP needs to be expanded
5347    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5348    do
5349      ac_preproc_ok=false
5350for ac_c_preproc_warn_flag in '' yes
5351do
5352  # Use a header file that comes with gcc, so configuring glibc
5353  # with a fresh cross-compiler works.
5354  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355  # <limits.h> exists even on freestanding compilers.
5356  # On the NeXT, cc -E runs the code through the compiler's parser,
5357  # not just through cpp. "Syntax error" is here to catch this case.
5358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h.  */
5360#ifdef __STDC__
5361# include <limits.h>
5362#else
5363# include <assert.h>
5364#endif
5365		     Syntax error
5366_ACEOF
5367if ac_fn_c_try_cpp "$LINENO"; then :
5368
5369else
5370  # Broken: fails on valid input.
5371continue
5372fi
5373rm -f conftest.err conftest.i conftest.$ac_ext
5374
5375  # OK, works on sane cases.  Now check whether nonexistent headers
5376  # can be detected and how.
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379#include <ac_nonexistent.h>
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382  # Broken: success on invalid input.
5383continue
5384else
5385  # Passes both tests.
5386ac_preproc_ok=:
5387break
5388fi
5389rm -f conftest.err conftest.i conftest.$ac_ext
5390
5391done
5392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5393rm -f conftest.i conftest.err conftest.$ac_ext
5394if $ac_preproc_ok; then :
5395  break
5396fi
5397
5398    done
5399    ac_cv_prog_CPP=$CPP
5400
5401fi
5402  CPP=$ac_cv_prog_CPP
5403else
5404  ac_cv_prog_CPP=$CPP
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5407$as_echo "$CPP" >&6; }
5408ac_preproc_ok=false
5409for ac_c_preproc_warn_flag in '' yes
5410do
5411  # Use a header file that comes with gcc, so configuring glibc
5412  # with a fresh cross-compiler works.
5413  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414  # <limits.h> exists even on freestanding compilers.
5415  # On the NeXT, cc -E runs the code through the compiler's parser,
5416  # not just through cpp. "Syntax error" is here to catch this case.
5417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h.  */
5419#ifdef __STDC__
5420# include <limits.h>
5421#else
5422# include <assert.h>
5423#endif
5424		     Syntax error
5425_ACEOF
5426if ac_fn_c_try_cpp "$LINENO"; then :
5427
5428else
5429  # Broken: fails on valid input.
5430continue
5431fi
5432rm -f conftest.err conftest.i conftest.$ac_ext
5433
5434  # OK, works on sane cases.  Now check whether nonexistent headers
5435  # can be detected and how.
5436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438#include <ac_nonexistent.h>
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441  # Broken: success on invalid input.
5442continue
5443else
5444  # Passes both tests.
5445ac_preproc_ok=:
5446break
5447fi
5448rm -f conftest.err conftest.i conftest.$ac_ext
5449
5450done
5451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452rm -f conftest.i conftest.err conftest.$ac_ext
5453if $ac_preproc_ok; then :
5454
5455else
5456  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5458as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5459See \`config.log' for more details" "$LINENO" 5; }
5460fi
5461
5462ac_ext=c
5463ac_cpp='$CPP $CPPFLAGS'
5464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469# Check whether --enable-debug was given.
5470if test "${enable_debug+set}" = set; then :
5471  enableval=$enable_debug;
5472else
5473  enable_debug=no
5474fi
5475
5476
5477if test x"$enable_debug" != x"no"; then :
5478  dbg=1
5479       # See if all the flags in $debug_c_other_flags work
5480       good_flags=
5481       CFLAGS_save="$CFLAGS"
5482       for flag in $debug_c_other_flags; do
5483           { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler supports $flag" >&5
5484$as_echo_n "checking to see if compiler supports $flag... " >&6; }
5485           CFLAGS="$flag $CFLAGS_save"
5486           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488
5489int
5490main ()
5491{
5492int i = 3;
5493  ;
5494  return 0;
5495}
5496_ACEOF
5497if ac_fn_c_try_compile "$LINENO"; then :
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499$as_echo "yes" >&6; }
5500			      good_flags="$flag $good_flags"
5501else
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503$as_echo "no" >&6; }
5504fi
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506       done
5507       debug_c_other_flags=$good_flags
5508       unset good_flags
5509
5510       CFLAGS="-g -O0 ${base_c_warn_flags} ${debug_c_warn_flags} ${debug_c_other_flags} ${CFLAGS_save}"
5511       unset CFLAGS_save
5512else
5513  dbg=0
5514       CFLAGS="-O2 -DNDEBUG $CFLAGS"
5515fi
5516
5517
5518cat >>confdefs.h <<_ACEOF
5519#define ENABLE_DEBUG $dbg
5520_ACEOF
5521
5522
5523
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5525$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5526if ${ac_cv_path_GREP+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  if test -z "$GREP"; then
5530  ac_path_GREP_found=false
5531  # Loop through the user's path and test for each of PROGNAME-LIST
5532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5534do
5535  IFS=$as_save_IFS
5536  test -z "$as_dir" && as_dir=.
5537    for ac_prog in grep ggrep; do
5538    for ac_exec_ext in '' $ac_executable_extensions; do
5539      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5540      as_fn_executable_p "$ac_path_GREP" || continue
5541# Check for GNU ac_path_GREP and select it if it is found.
5542  # Check for GNU $ac_path_GREP
5543case `"$ac_path_GREP" --version 2>&1` in
5544*GNU*)
5545  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5546*)
5547  ac_count=0
5548  $as_echo_n 0123456789 >"conftest.in"
5549  while :
5550  do
5551    cat "conftest.in" "conftest.in" >"conftest.tmp"
5552    mv "conftest.tmp" "conftest.in"
5553    cp "conftest.in" "conftest.nl"
5554    $as_echo 'GREP' >> "conftest.nl"
5555    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5556    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5557    as_fn_arith $ac_count + 1 && ac_count=$as_val
5558    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5559      # Best one so far, save it but keep looking for a better one
5560      ac_cv_path_GREP="$ac_path_GREP"
5561      ac_path_GREP_max=$ac_count
5562    fi
5563    # 10*(2^10) chars as input seems more than enough
5564    test $ac_count -gt 10 && break
5565  done
5566  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567esac
5568
5569      $ac_path_GREP_found && break 3
5570    done
5571  done
5572  done
5573IFS=$as_save_IFS
5574  if test -z "$ac_cv_path_GREP"; then
5575    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5576  fi
5577else
5578  ac_cv_path_GREP=$GREP
5579fi
5580
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5583$as_echo "$ac_cv_path_GREP" >&6; }
5584 GREP="$ac_cv_path_GREP"
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5588$as_echo_n "checking for egrep... " >&6; }
5589if ${ac_cv_path_EGREP+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5593   then ac_cv_path_EGREP="$GREP -E"
5594   else
5595     if test -z "$EGREP"; then
5596  ac_path_EGREP_found=false
5597  # Loop through the user's path and test for each of PROGNAME-LIST
5598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5600do
5601  IFS=$as_save_IFS
5602  test -z "$as_dir" && as_dir=.
5603    for ac_prog in egrep; do
5604    for ac_exec_ext in '' $ac_executable_extensions; do
5605      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5606      as_fn_executable_p "$ac_path_EGREP" || continue
5607# Check for GNU ac_path_EGREP and select it if it is found.
5608  # Check for GNU $ac_path_EGREP
5609case `"$ac_path_EGREP" --version 2>&1` in
5610*GNU*)
5611  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5612*)
5613  ac_count=0
5614  $as_echo_n 0123456789 >"conftest.in"
5615  while :
5616  do
5617    cat "conftest.in" "conftest.in" >"conftest.tmp"
5618    mv "conftest.tmp" "conftest.in"
5619    cp "conftest.in" "conftest.nl"
5620    $as_echo 'EGREP' >> "conftest.nl"
5621    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5622    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5623    as_fn_arith $ac_count + 1 && ac_count=$as_val
5624    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5625      # Best one so far, save it but keep looking for a better one
5626      ac_cv_path_EGREP="$ac_path_EGREP"
5627      ac_path_EGREP_max=$ac_count
5628    fi
5629    # 10*(2^10) chars as input seems more than enough
5630    test $ac_count -gt 10 && break
5631  done
5632  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5633esac
5634
5635      $ac_path_EGREP_found && break 3
5636    done
5637  done
5638  done
5639IFS=$as_save_IFS
5640  if test -z "$ac_cv_path_EGREP"; then
5641    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5642  fi
5643else
5644  ac_cv_path_EGREP=$EGREP
5645fi
5646
5647   fi
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5650$as_echo "$ac_cv_path_EGREP" >&6; }
5651 EGREP="$ac_cv_path_EGREP"
5652
5653
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5655$as_echo_n "checking for ANSI C header files... " >&6; }
5656if ${ac_cv_header_stdc+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661#include <stdlib.h>
5662#include <stdarg.h>
5663#include <string.h>
5664#include <float.h>
5665
5666int
5667main ()
5668{
5669
5670  ;
5671  return 0;
5672}
5673_ACEOF
5674if ac_fn_c_try_compile "$LINENO"; then :
5675  ac_cv_header_stdc=yes
5676else
5677  ac_cv_header_stdc=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680
5681if test $ac_cv_header_stdc = yes; then
5682  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685#include <string.h>
5686
5687_ACEOF
5688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689  $EGREP "memchr" >/dev/null 2>&1; then :
5690
5691else
5692  ac_cv_header_stdc=no
5693fi
5694rm -f conftest*
5695
5696fi
5697
5698if test $ac_cv_header_stdc = yes; then
5699  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h.  */
5702#include <stdlib.h>
5703
5704_ACEOF
5705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5706  $EGREP "free" >/dev/null 2>&1; then :
5707
5708else
5709  ac_cv_header_stdc=no
5710fi
5711rm -f conftest*
5712
5713fi
5714
5715if test $ac_cv_header_stdc = yes; then
5716  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5717  if test "$cross_compiling" = yes; then :
5718  :
5719else
5720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722#include <ctype.h>
5723#include <stdlib.h>
5724#if ((' ' & 0x0FF) == 0x020)
5725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5727#else
5728# define ISLOWER(c) \
5729		   (('a' <= (c) && (c) <= 'i') \
5730		     || ('j' <= (c) && (c) <= 'r') \
5731		     || ('s' <= (c) && (c) <= 'z'))
5732# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5733#endif
5734
5735#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5736int
5737main ()
5738{
5739  int i;
5740  for (i = 0; i < 256; i++)
5741    if (XOR (islower (i), ISLOWER (i))
5742	|| toupper (i) != TOUPPER (i))
5743      return 2;
5744  return 0;
5745}
5746_ACEOF
5747if ac_fn_c_try_run "$LINENO"; then :
5748
5749else
5750  ac_cv_header_stdc=no
5751fi
5752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5753  conftest.$ac_objext conftest.beam conftest.$ac_ext
5754fi
5755
5756fi
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5759$as_echo "$ac_cv_header_stdc" >&6; }
5760if test $ac_cv_header_stdc = yes; then
5761
5762$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5763
5764fi
5765
5766
5767
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
5769$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
5770if ${ac_cv_c_typeof+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  ac_cv_c_typeof=no
5774     for ac_kw in typeof __typeof__ no; do
5775       test $ac_kw = no && break
5776       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778
5779int
5780main ()
5781{
5782
5783	   int value;
5784	   typedef struct {
5785		   char a [1
5786			   + ! (($ac_kw (value))
5787				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
5788				 ? ($ac_kw (value)) - 1
5789				 : ~ (~ ($ac_kw (value)) 0
5790				      << sizeof ($ac_kw (value)))))]; }
5791	      ac__typeof_type_;
5792	   return
5793	     (! ((void) ((ac__typeof_type_ *) 0), 0));
5794
5795  ;
5796  return 0;
5797}
5798_ACEOF
5799if ac_fn_c_try_compile "$LINENO"; then :
5800  ac_cv_c_typeof=$ac_kw
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803       test $ac_cv_c_typeof != no && break
5804     done
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
5807$as_echo "$ac_cv_c_typeof" >&6; }
5808  if test $ac_cv_c_typeof != no; then
5809
5810$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
5811
5812    if test $ac_cv_c_typeof != typeof; then
5813
5814cat >>confdefs.h <<_ACEOF
5815#define typeof $ac_cv_c_typeof
5816_ACEOF
5817
5818    fi
5819  fi
5820
5821
5822case `pwd` in
5823  *\ * | *\	*)
5824    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5825$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5826esac
5827
5828
5829
5830macro_version='2.4.6'
5831macro_revision='2.4.6'
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845ltmain=$ac_aux_dir/ltmain.sh
5846
5847# Backslashify metacharacters that are still active within
5848# double-quoted strings.
5849sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5850
5851# Same as above, but do not quote variable references.
5852double_quote_subst='s/\(["`\\]\)/\\\1/g'
5853
5854# Sed substitution to delay expansion of an escaped shell variable in a
5855# double_quote_subst'ed string.
5856delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5857
5858# Sed substitution to delay expansion of an escaped single quote.
5859delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5860
5861# Sed substitution to avoid accidental globbing in evaled expressions
5862no_glob_subst='s/\*/\\\*/g'
5863
5864ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5865ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5866ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5867
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5869$as_echo_n "checking how to print strings... " >&6; }
5870# Test print first, because it will be a builtin if present.
5871if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5872   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5873  ECHO='print -r --'
5874elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5875  ECHO='printf %s\n'
5876else
5877  # Use this function as a fallback that always works.
5878  func_fallback_echo ()
5879  {
5880    eval 'cat <<_LTECHO_EOF
5881$1
5882_LTECHO_EOF'
5883  }
5884  ECHO='func_fallback_echo'
5885fi
5886
5887# func_echo_all arg...
5888# Invoke $ECHO with all args, space-separated.
5889func_echo_all ()
5890{
5891    $ECHO ""
5892}
5893
5894case $ECHO in
5895  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5896$as_echo "printf" >&6; } ;;
5897  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5898$as_echo "print -r" >&6; } ;;
5899  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5900$as_echo "cat" >&6; } ;;
5901esac
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5917$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5918if ${ac_cv_path_SED+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5922     for ac_i in 1 2 3 4 5 6 7; do
5923       ac_script="$ac_script$as_nl$ac_script"
5924     done
5925     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5926     { ac_script=; unset ac_script;}
5927     if test -z "$SED"; then
5928  ac_path_SED_found=false
5929  # Loop through the user's path and test for each of PROGNAME-LIST
5930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933  IFS=$as_save_IFS
5934  test -z "$as_dir" && as_dir=.
5935    for ac_prog in sed gsed; do
5936    for ac_exec_ext in '' $ac_executable_extensions; do
5937      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5938      as_fn_executable_p "$ac_path_SED" || continue
5939# Check for GNU ac_path_SED and select it if it is found.
5940  # Check for GNU $ac_path_SED
5941case `"$ac_path_SED" --version 2>&1` in
5942*GNU*)
5943  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5944*)
5945  ac_count=0
5946  $as_echo_n 0123456789 >"conftest.in"
5947  while :
5948  do
5949    cat "conftest.in" "conftest.in" >"conftest.tmp"
5950    mv "conftest.tmp" "conftest.in"
5951    cp "conftest.in" "conftest.nl"
5952    $as_echo '' >> "conftest.nl"
5953    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955    as_fn_arith $ac_count + 1 && ac_count=$as_val
5956    if test $ac_count -gt ${ac_path_SED_max-0}; then
5957      # Best one so far, save it but keep looking for a better one
5958      ac_cv_path_SED="$ac_path_SED"
5959      ac_path_SED_max=$ac_count
5960    fi
5961    # 10*(2^10) chars as input seems more than enough
5962    test $ac_count -gt 10 && break
5963  done
5964  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5965esac
5966
5967      $ac_path_SED_found && break 3
5968    done
5969  done
5970  done
5971IFS=$as_save_IFS
5972  if test -z "$ac_cv_path_SED"; then
5973    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5974  fi
5975else
5976  ac_cv_path_SED=$SED
5977fi
5978
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5981$as_echo "$ac_cv_path_SED" >&6; }
5982 SED="$ac_cv_path_SED"
5983  rm -f conftest.sed
5984
5985test -z "$SED" && SED=sed
5986Xsed="$SED -e 1s/^X//"
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5999$as_echo_n "checking for fgrep... " >&6; }
6000if ${ac_cv_path_FGREP+:} false; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6004   then ac_cv_path_FGREP="$GREP -F"
6005   else
6006     if test -z "$FGREP"; then
6007  ac_path_FGREP_found=false
6008  # Loop through the user's path and test for each of PROGNAME-LIST
6009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014    for ac_prog in fgrep; do
6015    for ac_exec_ext in '' $ac_executable_extensions; do
6016      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6017      as_fn_executable_p "$ac_path_FGREP" || continue
6018# Check for GNU ac_path_FGREP and select it if it is found.
6019  # Check for GNU $ac_path_FGREP
6020case `"$ac_path_FGREP" --version 2>&1` in
6021*GNU*)
6022  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6023*)
6024  ac_count=0
6025  $as_echo_n 0123456789 >"conftest.in"
6026  while :
6027  do
6028    cat "conftest.in" "conftest.in" >"conftest.tmp"
6029    mv "conftest.tmp" "conftest.in"
6030    cp "conftest.in" "conftest.nl"
6031    $as_echo 'FGREP' >> "conftest.nl"
6032    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034    as_fn_arith $ac_count + 1 && ac_count=$as_val
6035    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6036      # Best one so far, save it but keep looking for a better one
6037      ac_cv_path_FGREP="$ac_path_FGREP"
6038      ac_path_FGREP_max=$ac_count
6039    fi
6040    # 10*(2^10) chars as input seems more than enough
6041    test $ac_count -gt 10 && break
6042  done
6043  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6044esac
6045
6046      $ac_path_FGREP_found && break 3
6047    done
6048  done
6049  done
6050IFS=$as_save_IFS
6051  if test -z "$ac_cv_path_FGREP"; then
6052    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6053  fi
6054else
6055  ac_cv_path_FGREP=$FGREP
6056fi
6057
6058   fi
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6061$as_echo "$ac_cv_path_FGREP" >&6; }
6062 FGREP="$ac_cv_path_FGREP"
6063
6064
6065test -z "$GREP" && GREP=grep
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085# Check whether --with-gnu-ld was given.
6086if test "${with_gnu_ld+set}" = set; then :
6087  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6088else
6089  with_gnu_ld=no
6090fi
6091
6092ac_prog=ld
6093if test yes = "$GCC"; then
6094  # Check if gcc -print-prog-name=ld gives a path.
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6096$as_echo_n "checking for ld used by $CC... " >&6; }
6097  case $host in
6098  *-*-mingw*)
6099    # gcc leaves a trailing carriage return, which upsets mingw
6100    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6101  *)
6102    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6103  esac
6104  case $ac_prog in
6105    # Accept absolute paths.
6106    [\\/]* | ?:[\\/]*)
6107      re_direlt='/[^/][^/]*/\.\./'
6108      # Canonicalize the pathname of ld
6109      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6110      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6111	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6112      done
6113      test -z "$LD" && LD=$ac_prog
6114      ;;
6115  "")
6116    # If it fails, then pretend we aren't using GCC.
6117    ac_prog=ld
6118    ;;
6119  *)
6120    # If it is relative, then search for the first ld in PATH.
6121    with_gnu_ld=unknown
6122    ;;
6123  esac
6124elif test yes = "$with_gnu_ld"; then
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6126$as_echo_n "checking for GNU ld... " >&6; }
6127else
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6129$as_echo_n "checking for non-GNU ld... " >&6; }
6130fi
6131if ${lt_cv_path_LD+:} false; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  if test -z "$LD"; then
6135  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6136  for ac_dir in $PATH; do
6137    IFS=$lt_save_ifs
6138    test -z "$ac_dir" && ac_dir=.
6139    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6140      lt_cv_path_LD=$ac_dir/$ac_prog
6141      # Check to see if the program is GNU ld.  I'd rather use --version,
6142      # but apparently some variants of GNU ld only accept -v.
6143      # Break only if it was the GNU/non-GNU ld that we prefer.
6144      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6145      *GNU* | *'with BFD'*)
6146	test no != "$with_gnu_ld" && break
6147	;;
6148      *)
6149	test yes != "$with_gnu_ld" && break
6150	;;
6151      esac
6152    fi
6153  done
6154  IFS=$lt_save_ifs
6155else
6156  lt_cv_path_LD=$LD # Let the user override the test with a path.
6157fi
6158fi
6159
6160LD=$lt_cv_path_LD
6161if test -n "$LD"; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6163$as_echo "$LD" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6170$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6171if ${lt_cv_prog_gnu_ld+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6175case `$LD -v 2>&1 </dev/null` in
6176*GNU* | *'with BFD'*)
6177  lt_cv_prog_gnu_ld=yes
6178  ;;
6179*)
6180  lt_cv_prog_gnu_ld=no
6181  ;;
6182esac
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6185$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6186with_gnu_ld=$lt_cv_prog_gnu_ld
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6197$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6198if ${lt_cv_path_NM+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$NM"; then
6202  # Let the user override the test.
6203  lt_cv_path_NM=$NM
6204else
6205  lt_nm_to_check=${ac_tool_prefix}nm
6206  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6207    lt_nm_to_check="$lt_nm_to_check nm"
6208  fi
6209  for lt_tmp_nm in $lt_nm_to_check; do
6210    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6211    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6212      IFS=$lt_save_ifs
6213      test -z "$ac_dir" && ac_dir=.
6214      tmp_nm=$ac_dir/$lt_tmp_nm
6215      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6216	# Check to see if the nm accepts a BSD-compat flag.
6217	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6218	#   nm: unknown option "B" ignored
6219	# Tru64's nm complains that /dev/null is an invalid object file
6220	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6221	case $build_os in
6222	mingw*) lt_bad_file=conftest.nm/nofile ;;
6223	*) lt_bad_file=/dev/null ;;
6224	esac
6225	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6226	*$lt_bad_file* | *'Invalid file or object type'*)
6227	  lt_cv_path_NM="$tmp_nm -B"
6228	  break 2
6229	  ;;
6230	*)
6231	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6232	  */dev/null*)
6233	    lt_cv_path_NM="$tmp_nm -p"
6234	    break 2
6235	    ;;
6236	  *)
6237	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6238	    continue # so that we can try to find one that supports BSD flags
6239	    ;;
6240	  esac
6241	  ;;
6242	esac
6243      fi
6244    done
6245    IFS=$lt_save_ifs
6246  done
6247  : ${lt_cv_path_NM=no}
6248fi
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6251$as_echo "$lt_cv_path_NM" >&6; }
6252if test no != "$lt_cv_path_NM"; then
6253  NM=$lt_cv_path_NM
6254else
6255  # Didn't find any BSD compatible name lister, look for dumpbin.
6256  if test -n "$DUMPBIN"; then :
6257    # Let the user override the test.
6258  else
6259    if test -n "$ac_tool_prefix"; then
6260  for ac_prog in dumpbin "link -dump"
6261  do
6262    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265$as_echo_n "checking for $ac_word... " >&6; }
6266if ${ac_cv_prog_DUMPBIN+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  if test -n "$DUMPBIN"; then
6270  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275  IFS=$as_save_IFS
6276  test -z "$as_dir" && as_dir=.
6277    for ac_exec_ext in '' $ac_executable_extensions; do
6278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281    break 2
6282  fi
6283done
6284  done
6285IFS=$as_save_IFS
6286
6287fi
6288fi
6289DUMPBIN=$ac_cv_prog_DUMPBIN
6290if test -n "$DUMPBIN"; then
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6292$as_echo "$DUMPBIN" >&6; }
6293else
6294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295$as_echo "no" >&6; }
6296fi
6297
6298
6299    test -n "$DUMPBIN" && break
6300  done
6301fi
6302if test -z "$DUMPBIN"; then
6303  ac_ct_DUMPBIN=$DUMPBIN
6304  for ac_prog in dumpbin "link -dump"
6305do
6306  # Extract the first word of "$ac_prog", so it can be a program name with args.
6307set dummy $ac_prog; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -n "$ac_ct_DUMPBIN"; then
6314  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6334if test -n "$ac_ct_DUMPBIN"; then
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6336$as_echo "$ac_ct_DUMPBIN" >&6; }
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342
6343  test -n "$ac_ct_DUMPBIN" && break
6344done
6345
6346  if test "x$ac_ct_DUMPBIN" = x; then
6347    DUMPBIN=":"
6348  else
6349    case $cross_compiling:$ac_tool_warned in
6350yes:)
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353ac_tool_warned=yes ;;
6354esac
6355    DUMPBIN=$ac_ct_DUMPBIN
6356  fi
6357fi
6358
6359    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6360    *COFF*)
6361      DUMPBIN="$DUMPBIN -symbols -headers"
6362      ;;
6363    *)
6364      DUMPBIN=:
6365      ;;
6366    esac
6367  fi
6368
6369  if test : != "$DUMPBIN"; then
6370    NM=$DUMPBIN
6371  fi
6372fi
6373test -z "$NM" && NM=nm
6374
6375
6376
6377
6378
6379
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6381$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6382if ${lt_cv_nm_interface+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  lt_cv_nm_interface="BSD nm"
6386  echo "int some_variable = 0;" > conftest.$ac_ext
6387  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6388  (eval "$ac_compile" 2>conftest.err)
6389  cat conftest.err >&5
6390  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6391  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6392  cat conftest.err >&5
6393  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6394  cat conftest.out >&5
6395  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6396    lt_cv_nm_interface="MS dumpbin"
6397  fi
6398  rm -f conftest*
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6401$as_echo "$lt_cv_nm_interface" >&6; }
6402
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6404$as_echo_n "checking whether ln -s works... " >&6; }
6405LN_S=$as_ln_s
6406if test "$LN_S" = "ln -s"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6408$as_echo "yes" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6411$as_echo "no, using $LN_S" >&6; }
6412fi
6413
6414# find the maximum length of command line arguments
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6416$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6417if ${lt_cv_sys_max_cmd_len+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420    i=0
6421  teststring=ABCD
6422
6423  case $build_os in
6424  msdosdjgpp*)
6425    # On DJGPP, this test can blow up pretty badly due to problems in libc
6426    # (any single argument exceeding 2000 bytes causes a buffer overrun
6427    # during glob expansion).  Even if it were fixed, the result of this
6428    # check would be larger than it should be.
6429    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6430    ;;
6431
6432  gnu*)
6433    # Under GNU Hurd, this test is not required because there is
6434    # no limit to the length of command line arguments.
6435    # Libtool will interpret -1 as no limit whatsoever
6436    lt_cv_sys_max_cmd_len=-1;
6437    ;;
6438
6439  cygwin* | mingw* | cegcc*)
6440    # On Win9x/ME, this test blows up -- it succeeds, but takes
6441    # about 5 minutes as the teststring grows exponentially.
6442    # Worse, since 9x/ME are not pre-emptively multitasking,
6443    # you end up with a "frozen" computer, even though with patience
6444    # the test eventually succeeds (with a max line length of 256k).
6445    # Instead, let's just punt: use the minimum linelength reported by
6446    # all of the supported platforms: 8192 (on NT/2K/XP).
6447    lt_cv_sys_max_cmd_len=8192;
6448    ;;
6449
6450  mint*)
6451    # On MiNT this can take a long time and run out of memory.
6452    lt_cv_sys_max_cmd_len=8192;
6453    ;;
6454
6455  amigaos*)
6456    # On AmigaOS with pdksh, this test takes hours, literally.
6457    # So we just punt and use a minimum line length of 8192.
6458    lt_cv_sys_max_cmd_len=8192;
6459    ;;
6460
6461  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6462    # This has been around since 386BSD, at least.  Likely further.
6463    if test -x /sbin/sysctl; then
6464      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6465    elif test -x /usr/sbin/sysctl; then
6466      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6467    else
6468      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6469    fi
6470    # And add a safety zone
6471    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6472    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6473    ;;
6474
6475  interix*)
6476    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6477    lt_cv_sys_max_cmd_len=196608
6478    ;;
6479
6480  os2*)
6481    # The test takes a long time on OS/2.
6482    lt_cv_sys_max_cmd_len=8192
6483    ;;
6484
6485  osf*)
6486    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6487    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6488    # nice to cause kernel panics so lets avoid the loop below.
6489    # First set a reasonable default.
6490    lt_cv_sys_max_cmd_len=16384
6491    #
6492    if test -x /sbin/sysconfig; then
6493      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6494        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6495      esac
6496    fi
6497    ;;
6498  sco3.2v5*)
6499    lt_cv_sys_max_cmd_len=102400
6500    ;;
6501  sysv5* | sco5v6* | sysv4.2uw2*)
6502    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6503    if test -n "$kargmax"; then
6504      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6505    else
6506      lt_cv_sys_max_cmd_len=32768
6507    fi
6508    ;;
6509  *)
6510    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6511    if test -n "$lt_cv_sys_max_cmd_len" && \
6512       test undefined != "$lt_cv_sys_max_cmd_len"; then
6513      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6514      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6515    else
6516      # Make teststring a little bigger before we do anything with it.
6517      # a 1K string should be a reasonable start.
6518      for i in 1 2 3 4 5 6 7 8; do
6519        teststring=$teststring$teststring
6520      done
6521      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6522      # If test is not a shell built-in, we'll probably end up computing a
6523      # maximum length that is only half of the actual maximum length, but
6524      # we can't tell.
6525      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6526	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6527	      test 17 != "$i" # 1/2 MB should be enough
6528      do
6529        i=`expr $i + 1`
6530        teststring=$teststring$teststring
6531      done
6532      # Only check the string length outside the loop.
6533      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6534      teststring=
6535      # Add a significant safety factor because C++ compilers can tack on
6536      # massive amounts of additional arguments before passing them to the
6537      # linker.  It appears as though 1/2 is a usable value.
6538      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6539    fi
6540    ;;
6541  esac
6542
6543fi
6544
6545if test -n "$lt_cv_sys_max_cmd_len"; then
6546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6547$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6548else
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6550$as_echo "none" >&6; }
6551fi
6552max_cmd_len=$lt_cv_sys_max_cmd_len
6553
6554
6555
6556
6557
6558
6559: ${CP="cp -f"}
6560: ${MV="mv -f"}
6561: ${RM="rm -f"}
6562
6563if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6564  lt_unset=unset
6565else
6566  lt_unset=false
6567fi
6568
6569
6570
6571
6572
6573# test EBCDIC or ASCII
6574case `echo X|tr X '\101'` in
6575 A) # ASCII based system
6576    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6577  lt_SP2NL='tr \040 \012'
6578  lt_NL2SP='tr \015\012 \040\040'
6579  ;;
6580 *) # EBCDIC based system
6581  lt_SP2NL='tr \100 \n'
6582  lt_NL2SP='tr \r\n \100\100'
6583  ;;
6584esac
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6595$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6596if ${lt_cv_to_host_file_cmd+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  case $host in
6600  *-*-mingw* )
6601    case $build in
6602      *-*-mingw* ) # actually msys
6603        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6604        ;;
6605      *-*-cygwin* )
6606        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6607        ;;
6608      * ) # otherwise, assume *nix
6609        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6610        ;;
6611    esac
6612    ;;
6613  *-*-cygwin* )
6614    case $build in
6615      *-*-mingw* ) # actually msys
6616        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6617        ;;
6618      *-*-cygwin* )
6619        lt_cv_to_host_file_cmd=func_convert_file_noop
6620        ;;
6621      * ) # otherwise, assume *nix
6622        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6623        ;;
6624    esac
6625    ;;
6626  * ) # unhandled hosts (and "normal" native builds)
6627    lt_cv_to_host_file_cmd=func_convert_file_noop
6628    ;;
6629esac
6630
6631fi
6632
6633to_host_file_cmd=$lt_cv_to_host_file_cmd
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6635$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6636
6637
6638
6639
6640
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6642$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6643if ${lt_cv_to_tool_file_cmd+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  #assume ordinary cross tools, or native build.
6647lt_cv_to_tool_file_cmd=func_convert_file_noop
6648case $host in
6649  *-*-mingw* )
6650    case $build in
6651      *-*-mingw* ) # actually msys
6652        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6653        ;;
6654    esac
6655    ;;
6656esac
6657
6658fi
6659
6660to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6662$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6663
6664
6665
6666
6667
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6669$as_echo_n "checking for $LD option to reload object files... " >&6; }
6670if ${lt_cv_ld_reload_flag+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  lt_cv_ld_reload_flag='-r'
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6676$as_echo "$lt_cv_ld_reload_flag" >&6; }
6677reload_flag=$lt_cv_ld_reload_flag
6678case $reload_flag in
6679"" | " "*) ;;
6680*) reload_flag=" $reload_flag" ;;
6681esac
6682reload_cmds='$LD$reload_flag -o $output$reload_objs'
6683case $host_os in
6684  cygwin* | mingw* | pw32* | cegcc*)
6685    if test yes != "$GCC"; then
6686      reload_cmds=false
6687    fi
6688    ;;
6689  darwin*)
6690    if test yes = "$GCC"; then
6691      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6692    else
6693      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6694    fi
6695    ;;
6696esac
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706if test -n "$ac_tool_prefix"; then
6707  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6708set dummy ${ac_tool_prefix}objdump; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
6711if ${ac_cv_prog_OBJDUMP+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  if test -n "$OBJDUMP"; then
6715  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722    for ac_exec_ext in '' $ac_executable_extensions; do
6723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726    break 2
6727  fi
6728done
6729  done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734OBJDUMP=$ac_cv_prog_OBJDUMP
6735if test -n "$OBJDUMP"; then
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6737$as_echo "$OBJDUMP" >&6; }
6738else
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743
6744fi
6745if test -z "$ac_cv_prog_OBJDUMP"; then
6746  ac_ct_OBJDUMP=$OBJDUMP
6747  # Extract the first word of "objdump", so it can be a program name with args.
6748set dummy objdump; ac_word=$2
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  if test -n "$ac_ct_OBJDUMP"; then
6755  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762    for ac_exec_ext in '' $ac_executable_extensions; do
6763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766    break 2
6767  fi
6768done
6769  done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6775if test -n "$ac_ct_OBJDUMP"; then
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6777$as_echo "$ac_ct_OBJDUMP" >&6; }
6778else
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783  if test "x$ac_ct_OBJDUMP" = x; then
6784    OBJDUMP="false"
6785  else
6786    case $cross_compiling:$ac_tool_warned in
6787yes:)
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790ac_tool_warned=yes ;;
6791esac
6792    OBJDUMP=$ac_ct_OBJDUMP
6793  fi
6794else
6795  OBJDUMP="$ac_cv_prog_OBJDUMP"
6796fi
6797
6798test -z "$OBJDUMP" && OBJDUMP=objdump
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6809$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6810if ${lt_cv_deplibs_check_method+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  lt_cv_file_magic_cmd='$MAGIC_CMD'
6814lt_cv_file_magic_test_file=
6815lt_cv_deplibs_check_method='unknown'
6816# Need to set the preceding variable on all platforms that support
6817# interlibrary dependencies.
6818# 'none' -- dependencies not supported.
6819# 'unknown' -- same as none, but documents that we really don't know.
6820# 'pass_all' -- all dependencies passed with no checks.
6821# 'test_compile' -- check by making test program.
6822# 'file_magic [[regex]]' -- check by looking for files in library path
6823# that responds to the $file_magic_cmd with a given extended regex.
6824# If you have 'file' or equivalent on your system and you're not sure
6825# whether 'pass_all' will *always* work, you probably want this one.
6826
6827case $host_os in
6828aix[4-9]*)
6829  lt_cv_deplibs_check_method=pass_all
6830  ;;
6831
6832beos*)
6833  lt_cv_deplibs_check_method=pass_all
6834  ;;
6835
6836bsdi[45]*)
6837  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6838  lt_cv_file_magic_cmd='/usr/bin/file -L'
6839  lt_cv_file_magic_test_file=/shlib/libc.so
6840  ;;
6841
6842cygwin*)
6843  # func_win32_libid is a shell function defined in ltmain.sh
6844  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6845  lt_cv_file_magic_cmd='func_win32_libid'
6846  ;;
6847
6848mingw* | pw32*)
6849  # Base MSYS/MinGW do not provide the 'file' command needed by
6850  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6851  # unless we find 'file', for example because we are cross-compiling.
6852  if ( file / ) >/dev/null 2>&1; then
6853    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6854    lt_cv_file_magic_cmd='func_win32_libid'
6855  else
6856    # Keep this pattern in sync with the one in func_win32_libid.
6857    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6858    lt_cv_file_magic_cmd='$OBJDUMP -f'
6859  fi
6860  ;;
6861
6862cegcc*)
6863  # use the weaker test based on 'objdump'. See mingw*.
6864  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6865  lt_cv_file_magic_cmd='$OBJDUMP -f'
6866  ;;
6867
6868darwin* | rhapsody*)
6869  lt_cv_deplibs_check_method=pass_all
6870  ;;
6871
6872freebsd* | dragonfly*)
6873  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6874    case $host_cpu in
6875    i*86 )
6876      # Not sure whether the presence of OpenBSD here was a mistake.
6877      # Let's accept both of them until this is cleared up.
6878      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6879      lt_cv_file_magic_cmd=/usr/bin/file
6880      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6881      ;;
6882    esac
6883  else
6884    lt_cv_deplibs_check_method=pass_all
6885  fi
6886  ;;
6887
6888haiku*)
6889  lt_cv_deplibs_check_method=pass_all
6890  ;;
6891
6892hpux10.20* | hpux11*)
6893  lt_cv_file_magic_cmd=/usr/bin/file
6894  case $host_cpu in
6895  ia64*)
6896    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6897    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6898    ;;
6899  hppa*64*)
6900    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]'
6901    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6902    ;;
6903  *)
6904    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6905    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6906    ;;
6907  esac
6908  ;;
6909
6910interix[3-9]*)
6911  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6912  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6913  ;;
6914
6915irix5* | irix6* | nonstopux*)
6916  case $LD in
6917  *-32|*"-32 ") libmagic=32-bit;;
6918  *-n32|*"-n32 ") libmagic=N32;;
6919  *-64|*"-64 ") libmagic=64-bit;;
6920  *) libmagic=never-match;;
6921  esac
6922  lt_cv_deplibs_check_method=pass_all
6923  ;;
6924
6925# This must be glibc/ELF.
6926linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6927  lt_cv_deplibs_check_method=pass_all
6928  ;;
6929
6930netbsd*)
6931  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6932    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6933  else
6934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6935  fi
6936  ;;
6937
6938newos6*)
6939  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6940  lt_cv_file_magic_cmd=/usr/bin/file
6941  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6942  ;;
6943
6944*nto* | *qnx*)
6945  lt_cv_deplibs_check_method=pass_all
6946  ;;
6947
6948openbsd* | bitrig*)
6949  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6951  else
6952    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6953  fi
6954  ;;
6955
6956osf3* | osf4* | osf5*)
6957  lt_cv_deplibs_check_method=pass_all
6958  ;;
6959
6960rdos*)
6961  lt_cv_deplibs_check_method=pass_all
6962  ;;
6963
6964solaris*)
6965  lt_cv_deplibs_check_method=pass_all
6966  ;;
6967
6968sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6969  lt_cv_deplibs_check_method=pass_all
6970  ;;
6971
6972sysv4 | sysv4.3*)
6973  case $host_vendor in
6974  motorola)
6975    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]'
6976    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6977    ;;
6978  ncr)
6979    lt_cv_deplibs_check_method=pass_all
6980    ;;
6981  sequent)
6982    lt_cv_file_magic_cmd='/bin/file'
6983    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6984    ;;
6985  sni)
6986    lt_cv_file_magic_cmd='/bin/file'
6987    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6988    lt_cv_file_magic_test_file=/lib/libc.so
6989    ;;
6990  siemens)
6991    lt_cv_deplibs_check_method=pass_all
6992    ;;
6993  pc)
6994    lt_cv_deplibs_check_method=pass_all
6995    ;;
6996  esac
6997  ;;
6998
6999tpf*)
7000  lt_cv_deplibs_check_method=pass_all
7001  ;;
7002os2*)
7003  lt_cv_deplibs_check_method=pass_all
7004  ;;
7005esac
7006
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7009$as_echo "$lt_cv_deplibs_check_method" >&6; }
7010
7011file_magic_glob=
7012want_nocaseglob=no
7013if test "$build" = "$host"; then
7014  case $host_os in
7015  mingw* | pw32*)
7016    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7017      want_nocaseglob=yes
7018    else
7019      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7020    fi
7021    ;;
7022  esac
7023fi
7024
7025file_magic_cmd=$lt_cv_file_magic_cmd
7026deplibs_check_method=$lt_cv_deplibs_check_method
7027test -z "$deplibs_check_method" && deplibs_check_method=unknown
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050if test -n "$ac_tool_prefix"; then
7051  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7052set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054$as_echo_n "checking for $ac_word... " >&6; }
7055if ${ac_cv_prog_DLLTOOL+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058  if test -n "$DLLTOOL"; then
7059  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064  IFS=$as_save_IFS
7065  test -z "$as_dir" && as_dir=.
7066    for ac_exec_ext in '' $ac_executable_extensions; do
7067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070    break 2
7071  fi
7072done
7073  done
7074IFS=$as_save_IFS
7075
7076fi
7077fi
7078DLLTOOL=$ac_cv_prog_DLLTOOL
7079if test -n "$DLLTOOL"; then
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7081$as_echo "$DLLTOOL" >&6; }
7082else
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084$as_echo "no" >&6; }
7085fi
7086
7087
7088fi
7089if test -z "$ac_cv_prog_DLLTOOL"; then
7090  ac_ct_DLLTOOL=$DLLTOOL
7091  # Extract the first word of "dlltool", so it can be a program name with args.
7092set dummy dlltool; ac_word=$2
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094$as_echo_n "checking for $ac_word... " >&6; }
7095if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  if test -n "$ac_ct_DLLTOOL"; then
7099  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  test -z "$as_dir" && as_dir=.
7106    for ac_exec_ext in '' $ac_executable_extensions; do
7107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110    break 2
7111  fi
7112done
7113  done
7114IFS=$as_save_IFS
7115
7116fi
7117fi
7118ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7119if test -n "$ac_ct_DLLTOOL"; then
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7121$as_echo "$ac_ct_DLLTOOL" >&6; }
7122else
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124$as_echo "no" >&6; }
7125fi
7126
7127  if test "x$ac_ct_DLLTOOL" = x; then
7128    DLLTOOL="false"
7129  else
7130    case $cross_compiling:$ac_tool_warned in
7131yes:)
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134ac_tool_warned=yes ;;
7135esac
7136    DLLTOOL=$ac_ct_DLLTOOL
7137  fi
7138else
7139  DLLTOOL="$ac_cv_prog_DLLTOOL"
7140fi
7141
7142test -z "$DLLTOOL" && DLLTOOL=dlltool
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7154$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7155if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7156  $as_echo_n "(cached) " >&6
7157else
7158  lt_cv_sharedlib_from_linklib_cmd='unknown'
7159
7160case $host_os in
7161cygwin* | mingw* | pw32* | cegcc*)
7162  # two different shell functions defined in ltmain.sh;
7163  # decide which one to use based on capabilities of $DLLTOOL
7164  case `$DLLTOOL --help 2>&1` in
7165  *--identify-strict*)
7166    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7167    ;;
7168  *)
7169    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7170    ;;
7171  esac
7172  ;;
7173*)
7174  # fallback: assume linklib IS sharedlib
7175  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7176  ;;
7177esac
7178
7179fi
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7181$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7182sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7183test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7184
7185
7186
7187
7188
7189
7190
7191if test -n "$ac_tool_prefix"; then
7192  for ac_prog in ar
7193  do
7194    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_prog_AR+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$AR"; then
7202  ac_cv_prog_AR="$AR" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221AR=$ac_cv_prog_AR
7222if test -n "$AR"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7224$as_echo "$AR" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231    test -n "$AR" && break
7232  done
7233fi
7234if test -z "$AR"; then
7235  ac_ct_AR=$AR
7236  for ac_prog in ar
7237do
7238  # Extract the first word of "$ac_prog", so it can be a program name with args.
7239set dummy $ac_prog; ac_word=$2
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if ${ac_cv_prog_ac_ct_AR+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  if test -n "$ac_ct_AR"; then
7246  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  test -z "$as_dir" && as_dir=.
7253    for ac_exec_ext in '' $ac_executable_extensions; do
7254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255    ac_cv_prog_ac_ct_AR="$ac_prog"
7256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257    break 2
7258  fi
7259done
7260  done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265ac_ct_AR=$ac_cv_prog_ac_ct_AR
7266if test -n "$ac_ct_AR"; then
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7268$as_echo "$ac_ct_AR" >&6; }
7269else
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274
7275  test -n "$ac_ct_AR" && break
7276done
7277
7278  if test "x$ac_ct_AR" = x; then
7279    AR="false"
7280  else
7281    case $cross_compiling:$ac_tool_warned in
7282yes:)
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285ac_tool_warned=yes ;;
7286esac
7287    AR=$ac_ct_AR
7288  fi
7289fi
7290
7291: ${AR=ar}
7292: ${AR_FLAGS=cru}
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7305$as_echo_n "checking for archiver @FILE support... " >&6; }
7306if ${lt_cv_ar_at_file+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  lt_cv_ar_at_file=no
7310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312
7313int
7314main ()
7315{
7316
7317  ;
7318  return 0;
7319}
7320_ACEOF
7321if ac_fn_c_try_compile "$LINENO"; then :
7322  echo conftest.$ac_objext > conftest.lst
7323      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7324      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7325  (eval $lt_ar_try) 2>&5
7326  ac_status=$?
7327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328  test $ac_status = 0; }
7329      if test 0 -eq "$ac_status"; then
7330	# Ensure the archiver fails upon bogus file names.
7331	rm -f conftest.$ac_objext libconftest.a
7332	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7333  (eval $lt_ar_try) 2>&5
7334  ac_status=$?
7335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336  test $ac_status = 0; }
7337	if test 0 -ne "$ac_status"; then
7338          lt_cv_ar_at_file=@
7339        fi
7340      fi
7341      rm -f conftest.* libconftest.a
7342
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345
7346fi
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7348$as_echo "$lt_cv_ar_at_file" >&6; }
7349
7350if test no = "$lt_cv_ar_at_file"; then
7351  archiver_list_spec=
7352else
7353  archiver_list_spec=$lt_cv_ar_at_file
7354fi
7355
7356
7357
7358
7359
7360
7361
7362if test -n "$ac_tool_prefix"; then
7363  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7364set dummy ${ac_tool_prefix}strip; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if ${ac_cv_prog_STRIP+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  if test -n "$STRIP"; then
7371  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376  IFS=$as_save_IFS
7377  test -z "$as_dir" && as_dir=.
7378    for ac_exec_ext in '' $ac_executable_extensions; do
7379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382    break 2
7383  fi
7384done
7385  done
7386IFS=$as_save_IFS
7387
7388fi
7389fi
7390STRIP=$ac_cv_prog_STRIP
7391if test -n "$STRIP"; then
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7393$as_echo "$STRIP" >&6; }
7394else
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399
7400fi
7401if test -z "$ac_cv_prog_STRIP"; then
7402  ac_ct_STRIP=$STRIP
7403  # Extract the first word of "strip", so it can be a program name with args.
7404set dummy strip; ac_word=$2
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  if test -n "$ac_ct_STRIP"; then
7411  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418    for ac_exec_ext in '' $ac_executable_extensions; do
7419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420    ac_cv_prog_ac_ct_STRIP="strip"
7421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425  done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7431if test -n "$ac_ct_STRIP"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7433$as_echo "$ac_ct_STRIP" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439  if test "x$ac_ct_STRIP" = x; then
7440    STRIP=":"
7441  else
7442    case $cross_compiling:$ac_tool_warned in
7443yes:)
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446ac_tool_warned=yes ;;
7447esac
7448    STRIP=$ac_ct_STRIP
7449  fi
7450else
7451  STRIP="$ac_cv_prog_STRIP"
7452fi
7453
7454test -z "$STRIP" && STRIP=:
7455
7456
7457
7458
7459
7460
7461if test -n "$ac_tool_prefix"; then
7462  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
7466if ${ac_cv_prog_RANLIB+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  if test -n "$RANLIB"; then
7470  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475  IFS=$as_save_IFS
7476  test -z "$as_dir" && as_dir=.
7477    for ac_exec_ext in '' $ac_executable_extensions; do
7478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481    break 2
7482  fi
7483done
7484  done
7485IFS=$as_save_IFS
7486
7487fi
7488fi
7489RANLIB=$ac_cv_prog_RANLIB
7490if test -n "$RANLIB"; then
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7492$as_echo "$RANLIB" >&6; }
7493else
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
7496fi
7497
7498
7499fi
7500if test -z "$ac_cv_prog_RANLIB"; then
7501  ac_ct_RANLIB=$RANLIB
7502  # Extract the first word of "ranlib", so it can be a program name with args.
7503set dummy ranlib; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  if test -n "$ac_ct_RANLIB"; then
7510  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519    ac_cv_prog_ac_ct_RANLIB="ranlib"
7520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7530if test -n "$ac_ct_RANLIB"; then
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7532$as_echo "$ac_ct_RANLIB" >&6; }
7533else
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538  if test "x$ac_ct_RANLIB" = x; then
7539    RANLIB=":"
7540  else
7541    case $cross_compiling:$ac_tool_warned in
7542yes:)
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547    RANLIB=$ac_ct_RANLIB
7548  fi
7549else
7550  RANLIB="$ac_cv_prog_RANLIB"
7551fi
7552
7553test -z "$RANLIB" && RANLIB=:
7554
7555
7556
7557
7558
7559
7560# Determine commands to create old-style static archives.
7561old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7562old_postinstall_cmds='chmod 644 $oldlib'
7563old_postuninstall_cmds=
7564
7565if test -n "$RANLIB"; then
7566  case $host_os in
7567  bitrig* | openbsd*)
7568    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7569    ;;
7570  *)
7571    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7572    ;;
7573  esac
7574  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7575fi
7576
7577case $host_os in
7578  darwin*)
7579    lock_old_archive_extraction=yes ;;
7580  *)
7581    lock_old_archive_extraction=no ;;
7582esac
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622# If no C compiler was specified, use CC.
7623LTCC=${LTCC-"$CC"}
7624
7625# If no C compiler flags were specified, use CFLAGS.
7626LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7627
7628# Allow CC to be a program name with arguments.
7629compiler=$CC
7630
7631
7632# Check for command to grab the raw symbol name followed by C symbol from nm.
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7634$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7635if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638
7639# These are sane defaults that work on at least a few old systems.
7640# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7641
7642# Character class describing NM global symbol codes.
7643symcode='[BCDEGRST]'
7644
7645# Regexp to match symbols that can be accessed directly from C.
7646sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7647
7648# Define system-specific variables.
7649case $host_os in
7650aix*)
7651  symcode='[BCDT]'
7652  ;;
7653cygwin* | mingw* | pw32* | cegcc*)
7654  symcode='[ABCDGISTW]'
7655  ;;
7656hpux*)
7657  if test ia64 = "$host_cpu"; then
7658    symcode='[ABCDEGRST]'
7659  fi
7660  ;;
7661irix* | nonstopux*)
7662  symcode='[BCDEGRST]'
7663  ;;
7664osf*)
7665  symcode='[BCDEGQRST]'
7666  ;;
7667solaris*)
7668  symcode='[BDRT]'
7669  ;;
7670sco3.2v5*)
7671  symcode='[DT]'
7672  ;;
7673sysv4.2uw2*)
7674  symcode='[DT]'
7675  ;;
7676sysv5* | sco5v6* | unixware* | OpenUNIX*)
7677  symcode='[ABDT]'
7678  ;;
7679sysv4)
7680  symcode='[DFNSTU]'
7681  ;;
7682esac
7683
7684# If we're using GNU nm, then use its standard symbol codes.
7685case `$NM -V 2>&1` in
7686*GNU* | *'with BFD'*)
7687  symcode='[ABCDGIRSTW]' ;;
7688esac
7689
7690if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7691  # Gets list of data symbols to import.
7692  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7693  # Adjust the below global symbol transforms to fixup imported variables.
7694  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7695  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7696  lt_c_name_lib_hook="\
7697  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7698  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7699else
7700  # Disable hooks by default.
7701  lt_cv_sys_global_symbol_to_import=
7702  lt_cdecl_hook=
7703  lt_c_name_hook=
7704  lt_c_name_lib_hook=
7705fi
7706
7707# Transform an extracted symbol line into a proper C declaration.
7708# Some systems (esp. on ia64) link data and code symbols differently,
7709# so use this general approach.
7710lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7711$lt_cdecl_hook\
7712" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7713" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7714
7715# Transform an extracted symbol line into symbol name and symbol address
7716lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7717$lt_c_name_hook\
7718" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7719" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7720
7721# Transform an extracted symbol line into symbol name with lib prefix and
7722# symbol address.
7723lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7724$lt_c_name_lib_hook\
7725" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7726" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7727" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7728
7729# Handle CRLF in mingw tool chain
7730opt_cr=
7731case $build_os in
7732mingw*)
7733  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7734  ;;
7735esac
7736
7737# Try without a prefix underscore, then with it.
7738for ac_symprfx in "" "_"; do
7739
7740  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7741  symxfrm="\\1 $ac_symprfx\\2 \\2"
7742
7743  # Write the raw and C identifiers.
7744  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7745    # Fake it for dumpbin and say T for any non-static function,
7746    # D for any global variable and I for any imported variable.
7747    # Also find C++ and __fastcall symbols from MSVC++,
7748    # which start with @ or ?.
7749    lt_cv_sys_global_symbol_pipe="$AWK '"\
7750"     {last_section=section; section=\$ 3};"\
7751"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7752"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7753"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7754"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7755"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7756"     \$ 0!~/External *\|/{next};"\
7757"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7758"     {if(hide[section]) next};"\
7759"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7760"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7761"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7762"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7763"     ' prfx=^$ac_symprfx"
7764  else
7765    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7766  fi
7767  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7768
7769  # Check to see that the pipe works correctly.
7770  pipe_works=no
7771
7772  rm -f conftest*
7773  cat > conftest.$ac_ext <<_LT_EOF
7774#ifdef __cplusplus
7775extern "C" {
7776#endif
7777char nm_test_var;
7778void nm_test_func(void);
7779void nm_test_func(void){}
7780#ifdef __cplusplus
7781}
7782#endif
7783int main(){nm_test_var='a';nm_test_func();return(0);}
7784_LT_EOF
7785
7786  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7787  (eval $ac_compile) 2>&5
7788  ac_status=$?
7789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790  test $ac_status = 0; }; then
7791    # Now try to grab the symbols.
7792    nlist=conftest.nm
7793    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7794  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7795  ac_status=$?
7796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797  test $ac_status = 0; } && test -s "$nlist"; then
7798      # Try sorting and uniquifying the output.
7799      if sort "$nlist" | uniq > "$nlist"T; then
7800	mv -f "$nlist"T "$nlist"
7801      else
7802	rm -f "$nlist"T
7803      fi
7804
7805      # Make sure that we snagged all the symbols we need.
7806      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7807	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7808	  cat <<_LT_EOF > conftest.$ac_ext
7809/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7810#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7811/* DATA imports from DLLs on WIN32 can't be const, because runtime
7812   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7813# define LT_DLSYM_CONST
7814#elif defined __osf__
7815/* This system does not cope well with relocations in const data.  */
7816# define LT_DLSYM_CONST
7817#else
7818# define LT_DLSYM_CONST const
7819#endif
7820
7821#ifdef __cplusplus
7822extern "C" {
7823#endif
7824
7825_LT_EOF
7826	  # Now generate the symbol file.
7827	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7828
7829	  cat <<_LT_EOF >> conftest.$ac_ext
7830
7831/* The mapping between symbol names and symbols.  */
7832LT_DLSYM_CONST struct {
7833  const char *name;
7834  void       *address;
7835}
7836lt__PROGRAM__LTX_preloaded_symbols[] =
7837{
7838  { "@PROGRAM@", (void *) 0 },
7839_LT_EOF
7840	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7841	  cat <<\_LT_EOF >> conftest.$ac_ext
7842  {0, (void *) 0}
7843};
7844
7845/* This works around a problem in FreeBSD linker */
7846#ifdef FREEBSD_WORKAROUND
7847static const void *lt_preloaded_setup() {
7848  return lt__PROGRAM__LTX_preloaded_symbols;
7849}
7850#endif
7851
7852#ifdef __cplusplus
7853}
7854#endif
7855_LT_EOF
7856	  # Now try linking the two files.
7857	  mv conftest.$ac_objext conftstm.$ac_objext
7858	  lt_globsym_save_LIBS=$LIBS
7859	  lt_globsym_save_CFLAGS=$CFLAGS
7860	  LIBS=conftstm.$ac_objext
7861	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7862	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7863  (eval $ac_link) 2>&5
7864  ac_status=$?
7865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7867	    pipe_works=yes
7868	  fi
7869	  LIBS=$lt_globsym_save_LIBS
7870	  CFLAGS=$lt_globsym_save_CFLAGS
7871	else
7872	  echo "cannot find nm_test_func in $nlist" >&5
7873	fi
7874      else
7875	echo "cannot find nm_test_var in $nlist" >&5
7876      fi
7877    else
7878      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7879    fi
7880  else
7881    echo "$progname: failed program was:" >&5
7882    cat conftest.$ac_ext >&5
7883  fi
7884  rm -rf conftest* conftst*
7885
7886  # Do not use the global_symbol_pipe unless it works.
7887  if test yes = "$pipe_works"; then
7888    break
7889  else
7890    lt_cv_sys_global_symbol_pipe=
7891  fi
7892done
7893
7894fi
7895
7896if test -z "$lt_cv_sys_global_symbol_pipe"; then
7897  lt_cv_sys_global_symbol_to_cdecl=
7898fi
7899if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7901$as_echo "failed" >&6; }
7902else
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7904$as_echo "ok" >&6; }
7905fi
7906
7907# Response file support.
7908if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7909  nm_file_list_spec='@'
7910elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7911  nm_file_list_spec='@'
7912fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7951$as_echo_n "checking for sysroot... " >&6; }
7952
7953# Check whether --with-sysroot was given.
7954if test "${with_sysroot+set}" = set; then :
7955  withval=$with_sysroot;
7956else
7957  with_sysroot=no
7958fi
7959
7960
7961lt_sysroot=
7962case $with_sysroot in #(
7963 yes)
7964   if test yes = "$GCC"; then
7965     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7966   fi
7967   ;; #(
7968 /*)
7969   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7970   ;; #(
7971 no|'')
7972   ;; #(
7973 *)
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7975$as_echo "$with_sysroot" >&6; }
7976   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7977   ;;
7978esac
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7981$as_echo "${lt_sysroot:-no}" >&6; }
7982
7983
7984
7985
7986
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7988$as_echo_n "checking for a working dd... " >&6; }
7989if ${ac_cv_path_lt_DD+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  printf 0123456789abcdef0123456789abcdef >conftest.i
7993cat conftest.i conftest.i >conftest2.i
7994: ${lt_DD:=$DD}
7995if test -z "$lt_DD"; then
7996  ac_path_lt_DD_found=false
7997  # Loop through the user's path and test for each of PROGNAME-LIST
7998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_prog in dd; do
8004    for ac_exec_ext in '' $ac_executable_extensions; do
8005      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8006      as_fn_executable_p "$ac_path_lt_DD" || continue
8007if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8008  cmp -s conftest.i conftest.out \
8009  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8010fi
8011      $ac_path_lt_DD_found && break 3
8012    done
8013  done
8014  done
8015IFS=$as_save_IFS
8016  if test -z "$ac_cv_path_lt_DD"; then
8017    :
8018  fi
8019else
8020  ac_cv_path_lt_DD=$lt_DD
8021fi
8022
8023rm -f conftest.i conftest2.i conftest.out
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8026$as_echo "$ac_cv_path_lt_DD" >&6; }
8027
8028
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8030$as_echo_n "checking how to truncate binary pipes... " >&6; }
8031if ${lt_cv_truncate_bin+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  printf 0123456789abcdef0123456789abcdef >conftest.i
8035cat conftest.i conftest.i >conftest2.i
8036lt_cv_truncate_bin=
8037if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8038  cmp -s conftest.i conftest.out \
8039  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8040fi
8041rm -f conftest.i conftest2.i conftest.out
8042test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8045$as_echo "$lt_cv_truncate_bin" >&6; }
8046
8047
8048
8049
8050
8051
8052
8053# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8054func_cc_basename ()
8055{
8056    for cc_temp in $*""; do
8057      case $cc_temp in
8058        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8059        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8060        \-*) ;;
8061        *) break;;
8062      esac
8063    done
8064    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8065}
8066
8067# Check whether --enable-libtool-lock was given.
8068if test "${enable_libtool_lock+set}" = set; then :
8069  enableval=$enable_libtool_lock;
8070fi
8071
8072test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8073
8074# Some flags need to be propagated to the compiler or linker for good
8075# libtool support.
8076case $host in
8077ia64-*-hpux*)
8078  # Find out what ABI is being produced by ac_compile, and set mode
8079  # options accordingly.
8080  echo 'int i;' > conftest.$ac_ext
8081  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8082  (eval $ac_compile) 2>&5
8083  ac_status=$?
8084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085  test $ac_status = 0; }; then
8086    case `/usr/bin/file conftest.$ac_objext` in
8087      *ELF-32*)
8088	HPUX_IA64_MODE=32
8089	;;
8090      *ELF-64*)
8091	HPUX_IA64_MODE=64
8092	;;
8093    esac
8094  fi
8095  rm -rf conftest*
8096  ;;
8097*-*-irix6*)
8098  # Find out what ABI is being produced by ac_compile, and set linker
8099  # options accordingly.
8100  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8101  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8102  (eval $ac_compile) 2>&5
8103  ac_status=$?
8104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8105  test $ac_status = 0; }; then
8106    if test yes = "$lt_cv_prog_gnu_ld"; then
8107      case `/usr/bin/file conftest.$ac_objext` in
8108	*32-bit*)
8109	  LD="${LD-ld} -melf32bsmip"
8110	  ;;
8111	*N32*)
8112	  LD="${LD-ld} -melf32bmipn32"
8113	  ;;
8114	*64-bit*)
8115	  LD="${LD-ld} -melf64bmip"
8116	;;
8117      esac
8118    else
8119      case `/usr/bin/file conftest.$ac_objext` in
8120	*32-bit*)
8121	  LD="${LD-ld} -32"
8122	  ;;
8123	*N32*)
8124	  LD="${LD-ld} -n32"
8125	  ;;
8126	*64-bit*)
8127	  LD="${LD-ld} -64"
8128	  ;;
8129      esac
8130    fi
8131  fi
8132  rm -rf conftest*
8133  ;;
8134
8135mips64*-*linux*)
8136  # Find out what ABI is being produced by ac_compile, and set linker
8137  # options accordingly.
8138  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8139  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8140  (eval $ac_compile) 2>&5
8141  ac_status=$?
8142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8143  test $ac_status = 0; }; then
8144    emul=elf
8145    case `/usr/bin/file conftest.$ac_objext` in
8146      *32-bit*)
8147	emul="${emul}32"
8148	;;
8149      *64-bit*)
8150	emul="${emul}64"
8151	;;
8152    esac
8153    case `/usr/bin/file conftest.$ac_objext` in
8154      *MSB*)
8155	emul="${emul}btsmip"
8156	;;
8157      *LSB*)
8158	emul="${emul}ltsmip"
8159	;;
8160    esac
8161    case `/usr/bin/file conftest.$ac_objext` in
8162      *N32*)
8163	emul="${emul}n32"
8164	;;
8165    esac
8166    LD="${LD-ld} -m $emul"
8167  fi
8168  rm -rf conftest*
8169  ;;
8170
8171x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8172s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8173  # Find out what ABI is being produced by ac_compile, and set linker
8174  # options accordingly.  Note that the listed cases only cover the
8175  # situations where additional linker options are needed (such as when
8176  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8177  # vice versa); the common cases where no linker options are needed do
8178  # not appear in the list.
8179  echo 'int i;' > conftest.$ac_ext
8180  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8181  (eval $ac_compile) 2>&5
8182  ac_status=$?
8183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8184  test $ac_status = 0; }; then
8185    case `/usr/bin/file conftest.o` in
8186      *32-bit*)
8187	case $host in
8188	  x86_64-*kfreebsd*-gnu)
8189	    LD="${LD-ld} -m elf_i386_fbsd"
8190	    ;;
8191	  x86_64-*linux*)
8192	    case `/usr/bin/file conftest.o` in
8193	      *x86-64*)
8194		LD="${LD-ld} -m elf32_x86_64"
8195		;;
8196	      *)
8197		LD="${LD-ld} -m elf_i386"
8198		;;
8199	    esac
8200	    ;;
8201	  powerpc64le-*linux*)
8202	    LD="${LD-ld} -m elf32lppclinux"
8203	    ;;
8204	  powerpc64-*linux*)
8205	    LD="${LD-ld} -m elf32ppclinux"
8206	    ;;
8207	  s390x-*linux*)
8208	    LD="${LD-ld} -m elf_s390"
8209	    ;;
8210	  sparc64-*linux*)
8211	    LD="${LD-ld} -m elf32_sparc"
8212	    ;;
8213	esac
8214	;;
8215      *64-bit*)
8216	case $host in
8217	  x86_64-*kfreebsd*-gnu)
8218	    LD="${LD-ld} -m elf_x86_64_fbsd"
8219	    ;;
8220	  x86_64-*linux*)
8221	    LD="${LD-ld} -m elf_x86_64"
8222	    ;;
8223	  powerpcle-*linux*)
8224	    LD="${LD-ld} -m elf64lppc"
8225	    ;;
8226	  powerpc-*linux*)
8227	    LD="${LD-ld} -m elf64ppc"
8228	    ;;
8229	  s390*-*linux*|s390*-*tpf*)
8230	    LD="${LD-ld} -m elf64_s390"
8231	    ;;
8232	  sparc*-*linux*)
8233	    LD="${LD-ld} -m elf64_sparc"
8234	    ;;
8235	esac
8236	;;
8237    esac
8238  fi
8239  rm -rf conftest*
8240  ;;
8241
8242*-*-sco3.2v5*)
8243  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8244  SAVE_CFLAGS=$CFLAGS
8245  CFLAGS="$CFLAGS -belf"
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8247$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8248if ${lt_cv_cc_needs_belf+:} false; then :
8249  $as_echo_n "(cached) " >&6
8250else
8251  ac_ext=c
8252ac_cpp='$CPP $CPPFLAGS'
8253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258/* end confdefs.h.  */
8259
8260int
8261main ()
8262{
8263
8264  ;
8265  return 0;
8266}
8267_ACEOF
8268if ac_fn_c_try_link "$LINENO"; then :
8269  lt_cv_cc_needs_belf=yes
8270else
8271  lt_cv_cc_needs_belf=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext \
8274    conftest$ac_exeext conftest.$ac_ext
8275     ac_ext=c
8276ac_cpp='$CPP $CPPFLAGS'
8277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8279ac_compiler_gnu=$ac_cv_c_compiler_gnu
8280
8281fi
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8283$as_echo "$lt_cv_cc_needs_belf" >&6; }
8284  if test yes != "$lt_cv_cc_needs_belf"; then
8285    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8286    CFLAGS=$SAVE_CFLAGS
8287  fi
8288  ;;
8289*-*solaris*)
8290  # Find out what ABI is being produced by ac_compile, and set linker
8291  # options accordingly.
8292  echo 'int i;' > conftest.$ac_ext
8293  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8294  (eval $ac_compile) 2>&5
8295  ac_status=$?
8296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8297  test $ac_status = 0; }; then
8298    case `/usr/bin/file conftest.o` in
8299    *64-bit*)
8300      case $lt_cv_prog_gnu_ld in
8301      yes*)
8302        case $host in
8303        i?86-*-solaris*|x86_64-*-solaris*)
8304          LD="${LD-ld} -m elf_x86_64"
8305          ;;
8306        sparc*-*-solaris*)
8307          LD="${LD-ld} -m elf64_sparc"
8308          ;;
8309        esac
8310        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8311        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8312          LD=${LD-ld}_sol2
8313        fi
8314        ;;
8315      *)
8316	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8317	  LD="${LD-ld} -64"
8318	fi
8319	;;
8320      esac
8321      ;;
8322    esac
8323  fi
8324  rm -rf conftest*
8325  ;;
8326esac
8327
8328need_locks=$enable_libtool_lock
8329
8330if test -n "$ac_tool_prefix"; then
8331  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8332set dummy ${ac_tool_prefix}mt; ac_word=$2
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  if test -n "$MANIFEST_TOOL"; then
8339  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346    for ac_exec_ext in '' $ac_executable_extensions; do
8347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353  done
8354IFS=$as_save_IFS
8355
8356fi
8357fi
8358MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8359if test -n "$MANIFEST_TOOL"; then
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8361$as_echo "$MANIFEST_TOOL" >&6; }
8362else
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367
8368fi
8369if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8370  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8371  # Extract the first word of "mt", so it can be a program name with args.
8372set dummy mt; ac_word=$2
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8376  $as_echo_n "(cached) " >&6
8377else
8378  if test -n "$ac_ct_MANIFEST_TOOL"; then
8379  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384  IFS=$as_save_IFS
8385  test -z "$as_dir" && as_dir=.
8386    for ac_exec_ext in '' $ac_executable_extensions; do
8387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390    break 2
8391  fi
8392done
8393  done
8394IFS=$as_save_IFS
8395
8396fi
8397fi
8398ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8399if test -n "$ac_ct_MANIFEST_TOOL"; then
8400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8401$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8402else
8403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
8405fi
8406
8407  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8408    MANIFEST_TOOL=":"
8409  else
8410    case $cross_compiling:$ac_tool_warned in
8411yes:)
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414ac_tool_warned=yes ;;
8415esac
8416    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8417  fi
8418else
8419  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8420fi
8421
8422test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8424$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8425if ${lt_cv_path_mainfest_tool+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  lt_cv_path_mainfest_tool=no
8429  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8430  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8431  cat conftest.err >&5
8432  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8433    lt_cv_path_mainfest_tool=yes
8434  fi
8435  rm -f conftest*
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8438$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8439if test yes != "$lt_cv_path_mainfest_tool"; then
8440  MANIFEST_TOOL=:
8441fi
8442
8443
8444
8445
8446
8447
8448  case $host_os in
8449    rhapsody* | darwin*)
8450    if test -n "$ac_tool_prefix"; then
8451  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8452set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if ${ac_cv_prog_DSYMUTIL+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  if test -n "$DSYMUTIL"; then
8459  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8460else
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464  IFS=$as_save_IFS
8465  test -z "$as_dir" && as_dir=.
8466    for ac_exec_ext in '' $ac_executable_extensions; do
8467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470    break 2
8471  fi
8472done
8473  done
8474IFS=$as_save_IFS
8475
8476fi
8477fi
8478DSYMUTIL=$ac_cv_prog_DSYMUTIL
8479if test -n "$DSYMUTIL"; then
8480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8481$as_echo "$DSYMUTIL" >&6; }
8482else
8483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485fi
8486
8487
8488fi
8489if test -z "$ac_cv_prog_DSYMUTIL"; then
8490  ac_ct_DSYMUTIL=$DSYMUTIL
8491  # Extract the first word of "dsymutil", so it can be a program name with args.
8492set dummy dsymutil; ac_word=$2
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494$as_echo_n "checking for $ac_word... " >&6; }
8495if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  if test -n "$ac_ct_DSYMUTIL"; then
8499  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8500else
8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH
8503do
8504  IFS=$as_save_IFS
8505  test -z "$as_dir" && as_dir=.
8506    for ac_exec_ext in '' $ac_executable_extensions; do
8507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510    break 2
8511  fi
8512done
8513  done
8514IFS=$as_save_IFS
8515
8516fi
8517fi
8518ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8519if test -n "$ac_ct_DSYMUTIL"; then
8520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8521$as_echo "$ac_ct_DSYMUTIL" >&6; }
8522else
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524$as_echo "no" >&6; }
8525fi
8526
8527  if test "x$ac_ct_DSYMUTIL" = x; then
8528    DSYMUTIL=":"
8529  else
8530    case $cross_compiling:$ac_tool_warned in
8531yes:)
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534ac_tool_warned=yes ;;
8535esac
8536    DSYMUTIL=$ac_ct_DSYMUTIL
8537  fi
8538else
8539  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8540fi
8541
8542    if test -n "$ac_tool_prefix"; then
8543  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8544set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if ${ac_cv_prog_NMEDIT+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  if test -n "$NMEDIT"; then
8551  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8552else
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556  IFS=$as_save_IFS
8557  test -z "$as_dir" && as_dir=.
8558    for ac_exec_ext in '' $ac_executable_extensions; do
8559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8560    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562    break 2
8563  fi
8564done
8565  done
8566IFS=$as_save_IFS
8567
8568fi
8569fi
8570NMEDIT=$ac_cv_prog_NMEDIT
8571if test -n "$NMEDIT"; then
8572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8573$as_echo "$NMEDIT" >&6; }
8574else
8575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
8577fi
8578
8579
8580fi
8581if test -z "$ac_cv_prog_NMEDIT"; then
8582  ac_ct_NMEDIT=$NMEDIT
8583  # Extract the first word of "nmedit", so it can be a program name with args.
8584set dummy nmedit; ac_word=$2
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586$as_echo_n "checking for $ac_word... " >&6; }
8587if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8588  $as_echo_n "(cached) " >&6
8589else
8590  if test -n "$ac_ct_NMEDIT"; then
8591  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8592else
8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594for as_dir in $PATH
8595do
8596  IFS=$as_save_IFS
8597  test -z "$as_dir" && as_dir=.
8598    for ac_exec_ext in '' $ac_executable_extensions; do
8599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602    break 2
8603  fi
8604done
8605  done
8606IFS=$as_save_IFS
8607
8608fi
8609fi
8610ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8611if test -n "$ac_ct_NMEDIT"; then
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8613$as_echo "$ac_ct_NMEDIT" >&6; }
8614else
8615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619  if test "x$ac_ct_NMEDIT" = x; then
8620    NMEDIT=":"
8621  else
8622    case $cross_compiling:$ac_tool_warned in
8623yes:)
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8626ac_tool_warned=yes ;;
8627esac
8628    NMEDIT=$ac_ct_NMEDIT
8629  fi
8630else
8631  NMEDIT="$ac_cv_prog_NMEDIT"
8632fi
8633
8634    if test -n "$ac_tool_prefix"; then
8635  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8636set dummy ${ac_tool_prefix}lipo; ac_word=$2
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638$as_echo_n "checking for $ac_word... " >&6; }
8639if ${ac_cv_prog_LIPO+:} false; then :
8640  $as_echo_n "(cached) " >&6
8641else
8642  if test -n "$LIPO"; then
8643  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8644else
8645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646for as_dir in $PATH
8647do
8648  IFS=$as_save_IFS
8649  test -z "$as_dir" && as_dir=.
8650    for ac_exec_ext in '' $ac_executable_extensions; do
8651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654    break 2
8655  fi
8656done
8657  done
8658IFS=$as_save_IFS
8659
8660fi
8661fi
8662LIPO=$ac_cv_prog_LIPO
8663if test -n "$LIPO"; then
8664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8665$as_echo "$LIPO" >&6; }
8666else
8667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
8669fi
8670
8671
8672fi
8673if test -z "$ac_cv_prog_LIPO"; then
8674  ac_ct_LIPO=$LIPO
8675  # Extract the first word of "lipo", so it can be a program name with args.
8676set dummy lipo; ac_word=$2
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678$as_echo_n "checking for $ac_word... " >&6; }
8679if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8680  $as_echo_n "(cached) " >&6
8681else
8682  if test -n "$ac_ct_LIPO"; then
8683  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8684else
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688  IFS=$as_save_IFS
8689  test -z "$as_dir" && as_dir=.
8690    for ac_exec_ext in '' $ac_executable_extensions; do
8691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692    ac_cv_prog_ac_ct_LIPO="lipo"
8693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694    break 2
8695  fi
8696done
8697  done
8698IFS=$as_save_IFS
8699
8700fi
8701fi
8702ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8703if test -n "$ac_ct_LIPO"; then
8704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8705$as_echo "$ac_ct_LIPO" >&6; }
8706else
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708$as_echo "no" >&6; }
8709fi
8710
8711  if test "x$ac_ct_LIPO" = x; then
8712    LIPO=":"
8713  else
8714    case $cross_compiling:$ac_tool_warned in
8715yes:)
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8718ac_tool_warned=yes ;;
8719esac
8720    LIPO=$ac_ct_LIPO
8721  fi
8722else
8723  LIPO="$ac_cv_prog_LIPO"
8724fi
8725
8726    if test -n "$ac_tool_prefix"; then
8727  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8728set dummy ${ac_tool_prefix}otool; ac_word=$2
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730$as_echo_n "checking for $ac_word... " >&6; }
8731if ${ac_cv_prog_OTOOL+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  if test -n "$OTOOL"; then
8735  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8736else
8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738for as_dir in $PATH
8739do
8740  IFS=$as_save_IFS
8741  test -z "$as_dir" && as_dir=.
8742    for ac_exec_ext in '' $ac_executable_extensions; do
8743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746    break 2
8747  fi
8748done
8749  done
8750IFS=$as_save_IFS
8751
8752fi
8753fi
8754OTOOL=$ac_cv_prog_OTOOL
8755if test -n "$OTOOL"; then
8756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8757$as_echo "$OTOOL" >&6; }
8758else
8759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760$as_echo "no" >&6; }
8761fi
8762
8763
8764fi
8765if test -z "$ac_cv_prog_OTOOL"; then
8766  ac_ct_OTOOL=$OTOOL
8767  # Extract the first word of "otool", so it can be a program name with args.
8768set dummy otool; ac_word=$2
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770$as_echo_n "checking for $ac_word... " >&6; }
8771if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  if test -n "$ac_ct_OTOOL"; then
8775  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8776else
8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780  IFS=$as_save_IFS
8781  test -z "$as_dir" && as_dir=.
8782    for ac_exec_ext in '' $ac_executable_extensions; do
8783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8784    ac_cv_prog_ac_ct_OTOOL="otool"
8785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786    break 2
8787  fi
8788done
8789  done
8790IFS=$as_save_IFS
8791
8792fi
8793fi
8794ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8795if test -n "$ac_ct_OTOOL"; then
8796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8797$as_echo "$ac_ct_OTOOL" >&6; }
8798else
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800$as_echo "no" >&6; }
8801fi
8802
8803  if test "x$ac_ct_OTOOL" = x; then
8804    OTOOL=":"
8805  else
8806    case $cross_compiling:$ac_tool_warned in
8807yes:)
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8810ac_tool_warned=yes ;;
8811esac
8812    OTOOL=$ac_ct_OTOOL
8813  fi
8814else
8815  OTOOL="$ac_cv_prog_OTOOL"
8816fi
8817
8818    if test -n "$ac_tool_prefix"; then
8819  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8820set dummy ${ac_tool_prefix}otool64; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_prog_OTOOL64+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  if test -n "$OTOOL64"; then
8827  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8828else
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832  IFS=$as_save_IFS
8833  test -z "$as_dir" && as_dir=.
8834    for ac_exec_ext in '' $ac_executable_extensions; do
8835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838    break 2
8839  fi
8840done
8841  done
8842IFS=$as_save_IFS
8843
8844fi
8845fi
8846OTOOL64=$ac_cv_prog_OTOOL64
8847if test -n "$OTOOL64"; then
8848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8849$as_echo "$OTOOL64" >&6; }
8850else
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855
8856fi
8857if test -z "$ac_cv_prog_OTOOL64"; then
8858  ac_ct_OTOOL64=$OTOOL64
8859  # Extract the first word of "otool64", so it can be a program name with args.
8860set dummy otool64; ac_word=$2
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
8863if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  if test -n "$ac_ct_OTOOL64"; then
8867  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8868else
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872  IFS=$as_save_IFS
8873  test -z "$as_dir" && as_dir=.
8874    for ac_exec_ext in '' $ac_executable_extensions; do
8875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876    ac_cv_prog_ac_ct_OTOOL64="otool64"
8877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878    break 2
8879  fi
8880done
8881  done
8882IFS=$as_save_IFS
8883
8884fi
8885fi
8886ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8887if test -n "$ac_ct_OTOOL64"; then
8888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8889$as_echo "$ac_ct_OTOOL64" >&6; }
8890else
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
8893fi
8894
8895  if test "x$ac_ct_OTOOL64" = x; then
8896    OTOOL64=":"
8897  else
8898    case $cross_compiling:$ac_tool_warned in
8899yes:)
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902ac_tool_warned=yes ;;
8903esac
8904    OTOOL64=$ac_ct_OTOOL64
8905  fi
8906else
8907  OTOOL64="$ac_cv_prog_OTOOL64"
8908fi
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8937$as_echo_n "checking for -single_module linker flag... " >&6; }
8938if ${lt_cv_apple_cc_single_mod+:} false; then :
8939  $as_echo_n "(cached) " >&6
8940else
8941  lt_cv_apple_cc_single_mod=no
8942      if test -z "$LT_MULTI_MODULE"; then
8943	# By default we will add the -single_module flag. You can override
8944	# by either setting the environment variable LT_MULTI_MODULE
8945	# non-empty at configure time, or by adding -multi_module to the
8946	# link flags.
8947	rm -rf libconftest.dylib*
8948	echo "int foo(void){return 1;}" > conftest.c
8949	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8950-dynamiclib -Wl,-single_module conftest.c" >&5
8951	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8952	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8953        _lt_result=$?
8954	# If there is a non-empty error log, and "single_module"
8955	# appears in it, assume the flag caused a linker warning
8956        if test -s conftest.err && $GREP single_module conftest.err; then
8957	  cat conftest.err >&5
8958	# Otherwise, if the output was created with a 0 exit code from
8959	# the compiler, it worked.
8960	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8961	  lt_cv_apple_cc_single_mod=yes
8962	else
8963	  cat conftest.err >&5
8964	fi
8965	rm -rf libconftest.dylib*
8966	rm -f conftest.*
8967      fi
8968fi
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8970$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8971
8972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8973$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8974if ${lt_cv_ld_exported_symbols_list+:} false; then :
8975  $as_echo_n "(cached) " >&6
8976else
8977  lt_cv_ld_exported_symbols_list=no
8978      save_LDFLAGS=$LDFLAGS
8979      echo "_main" > conftest.sym
8980      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982/* end confdefs.h.  */
8983
8984int
8985main ()
8986{
8987
8988  ;
8989  return 0;
8990}
8991_ACEOF
8992if ac_fn_c_try_link "$LINENO"; then :
8993  lt_cv_ld_exported_symbols_list=yes
8994else
8995  lt_cv_ld_exported_symbols_list=no
8996fi
8997rm -f core conftest.err conftest.$ac_objext \
8998    conftest$ac_exeext conftest.$ac_ext
8999	LDFLAGS=$save_LDFLAGS
9000
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9003$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9004
9005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9006$as_echo_n "checking for -force_load linker flag... " >&6; }
9007if ${lt_cv_ld_force_load+:} false; then :
9008  $as_echo_n "(cached) " >&6
9009else
9010  lt_cv_ld_force_load=no
9011      cat > conftest.c << _LT_EOF
9012int forced_loaded() { return 2;}
9013_LT_EOF
9014      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9015      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9016      echo "$AR cru libconftest.a conftest.o" >&5
9017      $AR cru libconftest.a conftest.o 2>&5
9018      echo "$RANLIB libconftest.a" >&5
9019      $RANLIB libconftest.a 2>&5
9020      cat > conftest.c << _LT_EOF
9021int main() { return 0;}
9022_LT_EOF
9023      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9024      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9025      _lt_result=$?
9026      if test -s conftest.err && $GREP force_load conftest.err; then
9027	cat conftest.err >&5
9028      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9029	lt_cv_ld_force_load=yes
9030      else
9031	cat conftest.err >&5
9032      fi
9033        rm -f conftest.err libconftest.a conftest conftest.c
9034        rm -rf conftest.dSYM
9035
9036fi
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9038$as_echo "$lt_cv_ld_force_load" >&6; }
9039    case $host_os in
9040    rhapsody* | darwin1.[012])
9041      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9042    darwin1.*)
9043      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9044    darwin*) # darwin 5.x on
9045      # if running on 10.5 or later, the deployment target defaults
9046      # to the OS version, if on x86, and 10.4, the deployment
9047      # target defaults to 10.4. Don't you love it?
9048      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9049	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9050	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9051	10.[012][,.]*)
9052	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9053	10.*)
9054	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9055      esac
9056    ;;
9057  esac
9058    if test yes = "$lt_cv_apple_cc_single_mod"; then
9059      _lt_dar_single_mod='$single_module'
9060    fi
9061    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9062      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9063    else
9064      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9065    fi
9066    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9067      _lt_dsymutil='~$DSYMUTIL $lib || :'
9068    else
9069      _lt_dsymutil=
9070    fi
9071    ;;
9072  esac
9073
9074# func_munge_path_list VARIABLE PATH
9075# -----------------------------------
9076# VARIABLE is name of variable containing _space_ separated list of
9077# directories to be munged by the contents of PATH, which is string
9078# having a format:
9079# "DIR[:DIR]:"
9080#       string "DIR[ DIR]" will be prepended to VARIABLE
9081# ":DIR[:DIR]"
9082#       string "DIR[ DIR]" will be appended to VARIABLE
9083# "DIRP[:DIRP]::[DIRA:]DIRA"
9084#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9085#       "DIRA[ DIRA]" will be appended to VARIABLE
9086# "DIR[:DIR]"
9087#       VARIABLE will be replaced by "DIR[ DIR]"
9088func_munge_path_list ()
9089{
9090    case x$2 in
9091    x)
9092        ;;
9093    *:)
9094        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9095        ;;
9096    x:*)
9097        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9098        ;;
9099    *::*)
9100        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9101        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9102        ;;
9103    *)
9104        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9105        ;;
9106    esac
9107}
9108
9109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9110for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9111		  inttypes.h stdint.h unistd.h
9112do :
9113  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9115"
9116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9117  cat >>confdefs.h <<_ACEOF
9118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9119_ACEOF
9120
9121fi
9122
9123done
9124
9125
9126for ac_header in dlfcn.h
9127do :
9128  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9129"
9130if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9131  cat >>confdefs.h <<_ACEOF
9132#define HAVE_DLFCN_H 1
9133_ACEOF
9134
9135fi
9136
9137done
9138
9139
9140
9141
9142
9143# Set options
9144
9145
9146
9147        enable_dlopen=no
9148
9149
9150  enable_win32_dll=no
9151
9152
9153            # Check whether --enable-shared was given.
9154if test "${enable_shared+set}" = set; then :
9155  enableval=$enable_shared; p=${PACKAGE-default}
9156    case $enableval in
9157    yes) enable_shared=yes ;;
9158    no) enable_shared=no ;;
9159    *)
9160      enable_shared=no
9161      # Look at the argument we got.  We use all the common list separators.
9162      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9163      for pkg in $enableval; do
9164	IFS=$lt_save_ifs
9165	if test "X$pkg" = "X$p"; then
9166	  enable_shared=yes
9167	fi
9168      done
9169      IFS=$lt_save_ifs
9170      ;;
9171    esac
9172else
9173  enable_shared=yes
9174fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184  # Check whether --enable-static was given.
9185if test "${enable_static+set}" = set; then :
9186  enableval=$enable_static; p=${PACKAGE-default}
9187    case $enableval in
9188    yes) enable_static=yes ;;
9189    no) enable_static=no ;;
9190    *)
9191     enable_static=no
9192      # Look at the argument we got.  We use all the common list separators.
9193      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9194      for pkg in $enableval; do
9195	IFS=$lt_save_ifs
9196	if test "X$pkg" = "X$p"; then
9197	  enable_static=yes
9198	fi
9199      done
9200      IFS=$lt_save_ifs
9201      ;;
9202    esac
9203else
9204  enable_static=yes
9205fi
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216# Check whether --with-pic was given.
9217if test "${with_pic+set}" = set; then :
9218  withval=$with_pic; lt_p=${PACKAGE-default}
9219    case $withval in
9220    yes|no) pic_mode=$withval ;;
9221    *)
9222      pic_mode=default
9223      # Look at the argument we got.  We use all the common list separators.
9224      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9225      for lt_pkg in $withval; do
9226	IFS=$lt_save_ifs
9227	if test "X$lt_pkg" = "X$lt_p"; then
9228	  pic_mode=yes
9229	fi
9230      done
9231      IFS=$lt_save_ifs
9232      ;;
9233    esac
9234else
9235  pic_mode=default
9236fi
9237
9238
9239
9240
9241
9242
9243
9244
9245  # Check whether --enable-fast-install was given.
9246if test "${enable_fast_install+set}" = set; then :
9247  enableval=$enable_fast_install; p=${PACKAGE-default}
9248    case $enableval in
9249    yes) enable_fast_install=yes ;;
9250    no) enable_fast_install=no ;;
9251    *)
9252      enable_fast_install=no
9253      # Look at the argument we got.  We use all the common list separators.
9254      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9255      for pkg in $enableval; do
9256	IFS=$lt_save_ifs
9257	if test "X$pkg" = "X$p"; then
9258	  enable_fast_install=yes
9259	fi
9260      done
9261      IFS=$lt_save_ifs
9262      ;;
9263    esac
9264else
9265  enable_fast_install=yes
9266fi
9267
9268
9269
9270
9271
9272
9273
9274
9275  shared_archive_member_spec=
9276case $host,$enable_shared in
9277power*-*-aix[5-9]*,yes)
9278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9279$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9280
9281# Check whether --with-aix-soname was given.
9282if test "${with_aix_soname+set}" = set; then :
9283  withval=$with_aix_soname; case $withval in
9284    aix|svr4|both)
9285      ;;
9286    *)
9287      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9288      ;;
9289    esac
9290    lt_cv_with_aix_soname=$with_aix_soname
9291else
9292  if ${lt_cv_with_aix_soname+:} false; then :
9293  $as_echo_n "(cached) " >&6
9294else
9295  lt_cv_with_aix_soname=aix
9296fi
9297
9298    with_aix_soname=$lt_cv_with_aix_soname
9299fi
9300
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9302$as_echo "$with_aix_soname" >&6; }
9303  if test aix != "$with_aix_soname"; then
9304    # For the AIX way of multilib, we name the shared archive member
9305    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9306    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9307    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9308    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9309    if test 64 = "${OBJECT_MODE-32}"; then
9310      shared_archive_member_spec=shr_64
9311    else
9312      shared_archive_member_spec=shr
9313    fi
9314  fi
9315  ;;
9316*)
9317  with_aix_soname=aix
9318  ;;
9319esac
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330# This can be used to rebuild libtool when needed
9331LIBTOOL_DEPS=$ltmain
9332
9333# Always use our own libtool.
9334LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365test -z "$LN_S" && LN_S="ln -s"
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380if test -n "${ZSH_VERSION+set}"; then
9381   setopt NO_GLOB_SUBST
9382fi
9383
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9385$as_echo_n "checking for objdir... " >&6; }
9386if ${lt_cv_objdir+:} false; then :
9387  $as_echo_n "(cached) " >&6
9388else
9389  rm -f .libs 2>/dev/null
9390mkdir .libs 2>/dev/null
9391if test -d .libs; then
9392  lt_cv_objdir=.libs
9393else
9394  # MS-DOS does not allow filenames that begin with a dot.
9395  lt_cv_objdir=_libs
9396fi
9397rmdir .libs 2>/dev/null
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9400$as_echo "$lt_cv_objdir" >&6; }
9401objdir=$lt_cv_objdir
9402
9403
9404
9405
9406
9407cat >>confdefs.h <<_ACEOF
9408#define LT_OBJDIR "$lt_cv_objdir/"
9409_ACEOF
9410
9411
9412
9413
9414case $host_os in
9415aix3*)
9416  # AIX sometimes has problems with the GCC collect2 program.  For some
9417  # reason, if we set the COLLECT_NAMES environment variable, the problems
9418  # vanish in a puff of smoke.
9419  if test set != "${COLLECT_NAMES+set}"; then
9420    COLLECT_NAMES=
9421    export COLLECT_NAMES
9422  fi
9423  ;;
9424esac
9425
9426# Global variables:
9427ofile=libtool
9428can_build_shared=yes
9429
9430# All known linkers require a '.a' archive for static linking (except MSVC,
9431# which needs '.lib').
9432libext=a
9433
9434with_gnu_ld=$lt_cv_prog_gnu_ld
9435
9436old_CC=$CC
9437old_CFLAGS=$CFLAGS
9438
9439# Set sane defaults for various variables
9440test -z "$CC" && CC=cc
9441test -z "$LTCC" && LTCC=$CC
9442test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9443test -z "$LD" && LD=ld
9444test -z "$ac_objext" && ac_objext=o
9445
9446func_cc_basename $compiler
9447cc_basename=$func_cc_basename_result
9448
9449
9450# Only perform the check for file, if the check method requires it
9451test -z "$MAGIC_CMD" && MAGIC_CMD=file
9452case $deplibs_check_method in
9453file_magic*)
9454  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9456$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9457if ${lt_cv_path_MAGIC_CMD+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  case $MAGIC_CMD in
9461[\\/*] |  ?:[\\/]*)
9462  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9463  ;;
9464*)
9465  lt_save_MAGIC_CMD=$MAGIC_CMD
9466  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9467  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9468  for ac_dir in $ac_dummy; do
9469    IFS=$lt_save_ifs
9470    test -z "$ac_dir" && ac_dir=.
9471    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9472      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9473      if test -n "$file_magic_test_file"; then
9474	case $deplibs_check_method in
9475	"file_magic "*)
9476	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9477	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9478	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9479	    $EGREP "$file_magic_regex" > /dev/null; then
9480	    :
9481	  else
9482	    cat <<_LT_EOF 1>&2
9483
9484*** Warning: the command libtool uses to detect shared libraries,
9485*** $file_magic_cmd, produces output that libtool cannot recognize.
9486*** The result is that libtool may fail to recognize shared libraries
9487*** as such.  This will affect the creation of libtool libraries that
9488*** depend on shared libraries, but programs linked with such libtool
9489*** libraries will work regardless of this problem.  Nevertheless, you
9490*** may want to report the problem to your system manager and/or to
9491*** bug-libtool@gnu.org
9492
9493_LT_EOF
9494	  fi ;;
9495	esac
9496      fi
9497      break
9498    fi
9499  done
9500  IFS=$lt_save_ifs
9501  MAGIC_CMD=$lt_save_MAGIC_CMD
9502  ;;
9503esac
9504fi
9505
9506MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9507if test -n "$MAGIC_CMD"; then
9508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9509$as_echo "$MAGIC_CMD" >&6; }
9510else
9511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
9513fi
9514
9515
9516
9517
9518
9519if test -z "$lt_cv_path_MAGIC_CMD"; then
9520  if test -n "$ac_tool_prefix"; then
9521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9522$as_echo_n "checking for file... " >&6; }
9523if ${lt_cv_path_MAGIC_CMD+:} false; then :
9524  $as_echo_n "(cached) " >&6
9525else
9526  case $MAGIC_CMD in
9527[\\/*] |  ?:[\\/]*)
9528  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9529  ;;
9530*)
9531  lt_save_MAGIC_CMD=$MAGIC_CMD
9532  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9533  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9534  for ac_dir in $ac_dummy; do
9535    IFS=$lt_save_ifs
9536    test -z "$ac_dir" && ac_dir=.
9537    if test -f "$ac_dir/file"; then
9538      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9539      if test -n "$file_magic_test_file"; then
9540	case $deplibs_check_method in
9541	"file_magic "*)
9542	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9543	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9544	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9545	    $EGREP "$file_magic_regex" > /dev/null; then
9546	    :
9547	  else
9548	    cat <<_LT_EOF 1>&2
9549
9550*** Warning: the command libtool uses to detect shared libraries,
9551*** $file_magic_cmd, produces output that libtool cannot recognize.
9552*** The result is that libtool may fail to recognize shared libraries
9553*** as such.  This will affect the creation of libtool libraries that
9554*** depend on shared libraries, but programs linked with such libtool
9555*** libraries will work regardless of this problem.  Nevertheless, you
9556*** may want to report the problem to your system manager and/or to
9557*** bug-libtool@gnu.org
9558
9559_LT_EOF
9560	  fi ;;
9561	esac
9562      fi
9563      break
9564    fi
9565  done
9566  IFS=$lt_save_ifs
9567  MAGIC_CMD=$lt_save_MAGIC_CMD
9568  ;;
9569esac
9570fi
9571
9572MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9573if test -n "$MAGIC_CMD"; then
9574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9575$as_echo "$MAGIC_CMD" >&6; }
9576else
9577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578$as_echo "no" >&6; }
9579fi
9580
9581
9582  else
9583    MAGIC_CMD=:
9584  fi
9585fi
9586
9587  fi
9588  ;;
9589esac
9590
9591# Use C for the default configuration in the libtool script
9592
9593lt_save_CC=$CC
9594ac_ext=c
9595ac_cpp='$CPP $CPPFLAGS'
9596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599
9600
9601# Source file extension for C test sources.
9602ac_ext=c
9603
9604# Object file extension for compiled C test sources.
9605objext=o
9606objext=$objext
9607
9608# Code to be used in simple compile tests
9609lt_simple_compile_test_code="int some_variable = 0;"
9610
9611# Code to be used in simple link tests
9612lt_simple_link_test_code='int main(){return(0);}'
9613
9614
9615
9616
9617
9618
9619
9620# If no C compiler was specified, use CC.
9621LTCC=${LTCC-"$CC"}
9622
9623# If no C compiler flags were specified, use CFLAGS.
9624LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9625
9626# Allow CC to be a program name with arguments.
9627compiler=$CC
9628
9629# Save the default compiler, since it gets overwritten when the other
9630# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9631compiler_DEFAULT=$CC
9632
9633# save warnings/boilerplate of simple test code
9634ac_outfile=conftest.$ac_objext
9635echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9637_lt_compiler_boilerplate=`cat conftest.err`
9638$RM conftest*
9639
9640ac_outfile=conftest.$ac_objext
9641echo "$lt_simple_link_test_code" >conftest.$ac_ext
9642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9643_lt_linker_boilerplate=`cat conftest.err`
9644$RM -r conftest*
9645
9646
9647## CAVEAT EMPTOR:
9648## There is no encapsulation within the following macros, do not change
9649## the running order or otherwise move them around unless you know exactly
9650## what you are doing...
9651if test -n "$compiler"; then
9652
9653lt_prog_compiler_no_builtin_flag=
9654
9655if test yes = "$GCC"; then
9656  case $cc_basename in
9657  nvcc*)
9658    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9659  *)
9660    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9661  esac
9662
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9664$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9665if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9666  $as_echo_n "(cached) " >&6
9667else
9668  lt_cv_prog_compiler_rtti_exceptions=no
9669   ac_outfile=conftest.$ac_objext
9670   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9672   # Insert the option either (1) after the last *FLAGS variable, or
9673   # (2) before a word containing "conftest.", or (3) at the end.
9674   # Note that $ac_compile itself does not contain backslashes and begins
9675   # with a dollar sign (not a hyphen), so the echo should work correctly.
9676   # The option is referenced via a variable to avoid confusing sed.
9677   lt_compile=`echo "$ac_compile" | $SED \
9678   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9679   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9680   -e 's:$: $lt_compiler_flag:'`
9681   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9682   (eval "$lt_compile" 2>conftest.err)
9683   ac_status=$?
9684   cat conftest.err >&5
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   if (exit $ac_status) && test -s "$ac_outfile"; then
9687     # The compiler can only warn and ignore the option if not recognized
9688     # So say no if there are warnings other than the usual output.
9689     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9690     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9691     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9692       lt_cv_prog_compiler_rtti_exceptions=yes
9693     fi
9694   fi
9695   $RM conftest*
9696
9697fi
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9699$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9700
9701if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9702    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9703else
9704    :
9705fi
9706
9707fi
9708
9709
9710
9711
9712
9713
9714  lt_prog_compiler_wl=
9715lt_prog_compiler_pic=
9716lt_prog_compiler_static=
9717
9718
9719  if test yes = "$GCC"; then
9720    lt_prog_compiler_wl='-Wl,'
9721    lt_prog_compiler_static='-static'
9722
9723    case $host_os in
9724      aix*)
9725      # All AIX code is PIC.
9726      if test ia64 = "$host_cpu"; then
9727	# AIX 5 now supports IA64 processor
9728	lt_prog_compiler_static='-Bstatic'
9729      fi
9730      lt_prog_compiler_pic='-fPIC'
9731      ;;
9732
9733    amigaos*)
9734      case $host_cpu in
9735      powerpc)
9736            # see comment about AmigaOS4 .so support
9737            lt_prog_compiler_pic='-fPIC'
9738        ;;
9739      m68k)
9740            # FIXME: we need at least 68020 code to build shared libraries, but
9741            # adding the '-m68020' flag to GCC prevents building anything better,
9742            # like '-m68040'.
9743            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9744        ;;
9745      esac
9746      ;;
9747
9748    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9749      # PIC is the default for these OSes.
9750      ;;
9751
9752    mingw* | cygwin* | pw32* | os2* | cegcc*)
9753      # This hack is so that the source file can tell whether it is being
9754      # built for inclusion in a dll (and should export symbols for example).
9755      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9756      # (--disable-auto-import) libraries
9757      lt_prog_compiler_pic='-DDLL_EXPORT'
9758      case $host_os in
9759      os2*)
9760	lt_prog_compiler_static='$wl-static'
9761	;;
9762      esac
9763      ;;
9764
9765    darwin* | rhapsody*)
9766      # PIC is the default on this platform
9767      # Common symbols not allowed in MH_DYLIB files
9768      lt_prog_compiler_pic='-fno-common'
9769      ;;
9770
9771    haiku*)
9772      # PIC is the default for Haiku.
9773      # The "-static" flag exists, but is broken.
9774      lt_prog_compiler_static=
9775      ;;
9776
9777    hpux*)
9778      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9779      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9780      # sets the default TLS model and affects inlining.
9781      case $host_cpu in
9782      hppa*64*)
9783	# +Z the default
9784	;;
9785      *)
9786	lt_prog_compiler_pic='-fPIC'
9787	;;
9788      esac
9789      ;;
9790
9791    interix[3-9]*)
9792      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9793      # Instead, we relocate shared libraries at runtime.
9794      ;;
9795
9796    msdosdjgpp*)
9797      # Just because we use GCC doesn't mean we suddenly get shared libraries
9798      # on systems that don't support them.
9799      lt_prog_compiler_can_build_shared=no
9800      enable_shared=no
9801      ;;
9802
9803    *nto* | *qnx*)
9804      # QNX uses GNU C++, but need to define -shared option too, otherwise
9805      # it will coredump.
9806      lt_prog_compiler_pic='-fPIC -shared'
9807      ;;
9808
9809    sysv4*MP*)
9810      if test -d /usr/nec; then
9811	lt_prog_compiler_pic=-Kconform_pic
9812      fi
9813      ;;
9814
9815    *)
9816      lt_prog_compiler_pic='-fPIC'
9817      ;;
9818    esac
9819
9820    case $cc_basename in
9821    nvcc*) # Cuda Compiler Driver 2.2
9822      lt_prog_compiler_wl='-Xlinker '
9823      if test -n "$lt_prog_compiler_pic"; then
9824        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9825      fi
9826      ;;
9827    esac
9828  else
9829    # PORTME Check for flag to pass linker flags through the system compiler.
9830    case $host_os in
9831    aix*)
9832      lt_prog_compiler_wl='-Wl,'
9833      if test ia64 = "$host_cpu"; then
9834	# AIX 5 now supports IA64 processor
9835	lt_prog_compiler_static='-Bstatic'
9836      else
9837	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9838      fi
9839      ;;
9840
9841    darwin* | rhapsody*)
9842      # PIC is the default on this platform
9843      # Common symbols not allowed in MH_DYLIB files
9844      lt_prog_compiler_pic='-fno-common'
9845      case $cc_basename in
9846      nagfor*)
9847        # NAG Fortran compiler
9848        lt_prog_compiler_wl='-Wl,-Wl,,'
9849        lt_prog_compiler_pic='-PIC'
9850        lt_prog_compiler_static='-Bstatic'
9851        ;;
9852      esac
9853      ;;
9854
9855    mingw* | cygwin* | pw32* | os2* | cegcc*)
9856      # This hack is so that the source file can tell whether it is being
9857      # built for inclusion in a dll (and should export symbols for example).
9858      lt_prog_compiler_pic='-DDLL_EXPORT'
9859      case $host_os in
9860      os2*)
9861	lt_prog_compiler_static='$wl-static'
9862	;;
9863      esac
9864      ;;
9865
9866    hpux9* | hpux10* | hpux11*)
9867      lt_prog_compiler_wl='-Wl,'
9868      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9869      # not for PA HP-UX.
9870      case $host_cpu in
9871      hppa*64*|ia64*)
9872	# +Z the default
9873	;;
9874      *)
9875	lt_prog_compiler_pic='+Z'
9876	;;
9877      esac
9878      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9879      lt_prog_compiler_static='$wl-a ${wl}archive'
9880      ;;
9881
9882    irix5* | irix6* | nonstopux*)
9883      lt_prog_compiler_wl='-Wl,'
9884      # PIC (with -KPIC) is the default.
9885      lt_prog_compiler_static='-non_shared'
9886      ;;
9887
9888    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9889      case $cc_basename in
9890      # old Intel for x86_64, which still supported -KPIC.
9891      ecc*)
9892	lt_prog_compiler_wl='-Wl,'
9893	lt_prog_compiler_pic='-KPIC'
9894	lt_prog_compiler_static='-static'
9895        ;;
9896      # icc used to be incompatible with GCC.
9897      # ICC 10 doesn't accept -KPIC any more.
9898      icc* | ifort*)
9899	lt_prog_compiler_wl='-Wl,'
9900	lt_prog_compiler_pic='-fPIC'
9901	lt_prog_compiler_static='-static'
9902        ;;
9903      # Lahey Fortran 8.1.
9904      lf95*)
9905	lt_prog_compiler_wl='-Wl,'
9906	lt_prog_compiler_pic='--shared'
9907	lt_prog_compiler_static='--static'
9908	;;
9909      nagfor*)
9910	# NAG Fortran compiler
9911	lt_prog_compiler_wl='-Wl,-Wl,,'
9912	lt_prog_compiler_pic='-PIC'
9913	lt_prog_compiler_static='-Bstatic'
9914	;;
9915      tcc*)
9916	# Fabrice Bellard et al's Tiny C Compiler
9917	lt_prog_compiler_wl='-Wl,'
9918	lt_prog_compiler_pic='-fPIC'
9919	lt_prog_compiler_static='-static'
9920	;;
9921      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9922        # Portland Group compilers (*not* the Pentium gcc compiler,
9923	# which looks to be a dead project)
9924	lt_prog_compiler_wl='-Wl,'
9925	lt_prog_compiler_pic='-fpic'
9926	lt_prog_compiler_static='-Bstatic'
9927        ;;
9928      ccc*)
9929        lt_prog_compiler_wl='-Wl,'
9930        # All Alpha code is PIC.
9931        lt_prog_compiler_static='-non_shared'
9932        ;;
9933      xl* | bgxl* | bgf* | mpixl*)
9934	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9935	lt_prog_compiler_wl='-Wl,'
9936	lt_prog_compiler_pic='-qpic'
9937	lt_prog_compiler_static='-qstaticlink'
9938	;;
9939      *)
9940	case `$CC -V 2>&1 | sed 5q` in
9941	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9942	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9943	  lt_prog_compiler_pic='-KPIC'
9944	  lt_prog_compiler_static='-Bstatic'
9945	  lt_prog_compiler_wl=''
9946	  ;;
9947	*Sun\ F* | *Sun*Fortran*)
9948	  lt_prog_compiler_pic='-KPIC'
9949	  lt_prog_compiler_static='-Bstatic'
9950	  lt_prog_compiler_wl='-Qoption ld '
9951	  ;;
9952	*Sun\ C*)
9953	  # Sun C 5.9
9954	  lt_prog_compiler_pic='-KPIC'
9955	  lt_prog_compiler_static='-Bstatic'
9956	  lt_prog_compiler_wl='-Wl,'
9957	  ;;
9958        *Intel*\ [CF]*Compiler*)
9959	  lt_prog_compiler_wl='-Wl,'
9960	  lt_prog_compiler_pic='-fPIC'
9961	  lt_prog_compiler_static='-static'
9962	  ;;
9963	*Portland\ Group*)
9964	  lt_prog_compiler_wl='-Wl,'
9965	  lt_prog_compiler_pic='-fpic'
9966	  lt_prog_compiler_static='-Bstatic'
9967	  ;;
9968	esac
9969	;;
9970      esac
9971      ;;
9972
9973    newsos6)
9974      lt_prog_compiler_pic='-KPIC'
9975      lt_prog_compiler_static='-Bstatic'
9976      ;;
9977
9978    *nto* | *qnx*)
9979      # QNX uses GNU C++, but need to define -shared option too, otherwise
9980      # it will coredump.
9981      lt_prog_compiler_pic='-fPIC -shared'
9982      ;;
9983
9984    osf3* | osf4* | osf5*)
9985      lt_prog_compiler_wl='-Wl,'
9986      # All OSF/1 code is PIC.
9987      lt_prog_compiler_static='-non_shared'
9988      ;;
9989
9990    rdos*)
9991      lt_prog_compiler_static='-non_shared'
9992      ;;
9993
9994    solaris*)
9995      lt_prog_compiler_pic='-KPIC'
9996      lt_prog_compiler_static='-Bstatic'
9997      case $cc_basename in
9998      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9999	lt_prog_compiler_wl='-Qoption ld ';;
10000      *)
10001	lt_prog_compiler_wl='-Wl,';;
10002      esac
10003      ;;
10004
10005    sunos4*)
10006      lt_prog_compiler_wl='-Qoption ld '
10007      lt_prog_compiler_pic='-PIC'
10008      lt_prog_compiler_static='-Bstatic'
10009      ;;
10010
10011    sysv4 | sysv4.2uw2* | sysv4.3*)
10012      lt_prog_compiler_wl='-Wl,'
10013      lt_prog_compiler_pic='-KPIC'
10014      lt_prog_compiler_static='-Bstatic'
10015      ;;
10016
10017    sysv4*MP*)
10018      if test -d /usr/nec; then
10019	lt_prog_compiler_pic='-Kconform_pic'
10020	lt_prog_compiler_static='-Bstatic'
10021      fi
10022      ;;
10023
10024    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10025      lt_prog_compiler_wl='-Wl,'
10026      lt_prog_compiler_pic='-KPIC'
10027      lt_prog_compiler_static='-Bstatic'
10028      ;;
10029
10030    unicos*)
10031      lt_prog_compiler_wl='-Wl,'
10032      lt_prog_compiler_can_build_shared=no
10033      ;;
10034
10035    uts4*)
10036      lt_prog_compiler_pic='-pic'
10037      lt_prog_compiler_static='-Bstatic'
10038      ;;
10039
10040    *)
10041      lt_prog_compiler_can_build_shared=no
10042      ;;
10043    esac
10044  fi
10045
10046case $host_os in
10047  # For platforms that do not support PIC, -DPIC is meaningless:
10048  *djgpp*)
10049    lt_prog_compiler_pic=
10050    ;;
10051  *)
10052    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10053    ;;
10054esac
10055
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10057$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10058if ${lt_cv_prog_compiler_pic+:} false; then :
10059  $as_echo_n "(cached) " >&6
10060else
10061  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10062fi
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10064$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10065lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10066
10067#
10068# Check to make sure the PIC flag actually works.
10069#
10070if test -n "$lt_prog_compiler_pic"; then
10071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10072$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10073if ${lt_cv_prog_compiler_pic_works+:} false; then :
10074  $as_echo_n "(cached) " >&6
10075else
10076  lt_cv_prog_compiler_pic_works=no
10077   ac_outfile=conftest.$ac_objext
10078   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10079   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10080   # Insert the option either (1) after the last *FLAGS variable, or
10081   # (2) before a word containing "conftest.", or (3) at the end.
10082   # Note that $ac_compile itself does not contain backslashes and begins
10083   # with a dollar sign (not a hyphen), so the echo should work correctly.
10084   # The option is referenced via a variable to avoid confusing sed.
10085   lt_compile=`echo "$ac_compile" | $SED \
10086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10088   -e 's:$: $lt_compiler_flag:'`
10089   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10090   (eval "$lt_compile" 2>conftest.err)
10091   ac_status=$?
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   if (exit $ac_status) && test -s "$ac_outfile"; then
10095     # The compiler can only warn and ignore the option if not recognized
10096     # So say no if there are warnings other than the usual output.
10097     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10098     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10099     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10100       lt_cv_prog_compiler_pic_works=yes
10101     fi
10102   fi
10103   $RM conftest*
10104
10105fi
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10107$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10108
10109if test yes = "$lt_cv_prog_compiler_pic_works"; then
10110    case $lt_prog_compiler_pic in
10111     "" | " "*) ;;
10112     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10113     esac
10114else
10115    lt_prog_compiler_pic=
10116     lt_prog_compiler_can_build_shared=no
10117fi
10118
10119fi
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131#
10132# Check to make sure the static flag actually works.
10133#
10134wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10136$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10137if ${lt_cv_prog_compiler_static_works+:} false; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  lt_cv_prog_compiler_static_works=no
10141   save_LDFLAGS=$LDFLAGS
10142   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10143   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10144   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10145     # The linker can only warn and ignore the option if not recognized
10146     # So say no if there are warnings
10147     if test -s conftest.err; then
10148       # Append any errors to the config.log.
10149       cat conftest.err 1>&5
10150       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10151       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10152       if diff conftest.exp conftest.er2 >/dev/null; then
10153         lt_cv_prog_compiler_static_works=yes
10154       fi
10155     else
10156       lt_cv_prog_compiler_static_works=yes
10157     fi
10158   fi
10159   $RM -r conftest*
10160   LDFLAGS=$save_LDFLAGS
10161
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10164$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10165
10166if test yes = "$lt_cv_prog_compiler_static_works"; then
10167    :
10168else
10169    lt_prog_compiler_static=
10170fi
10171
10172
10173
10174
10175
10176
10177
10178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10179$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10180if ${lt_cv_prog_compiler_c_o+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  lt_cv_prog_compiler_c_o=no
10184   $RM -r conftest 2>/dev/null
10185   mkdir conftest
10186   cd conftest
10187   mkdir out
10188   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10189
10190   lt_compiler_flag="-o out/conftest2.$ac_objext"
10191   # Insert the option either (1) after the last *FLAGS variable, or
10192   # (2) before a word containing "conftest.", or (3) at the end.
10193   # Note that $ac_compile itself does not contain backslashes and begins
10194   # with a dollar sign (not a hyphen), so the echo should work correctly.
10195   lt_compile=`echo "$ac_compile" | $SED \
10196   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10198   -e 's:$: $lt_compiler_flag:'`
10199   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10200   (eval "$lt_compile" 2>out/conftest.err)
10201   ac_status=$?
10202   cat out/conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10205   then
10206     # The compiler can only warn and ignore the option if not recognized
10207     # So say no if there are warnings
10208     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10209     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10210     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10211       lt_cv_prog_compiler_c_o=yes
10212     fi
10213   fi
10214   chmod u+w . 2>&5
10215   $RM conftest*
10216   # SGI C++ compiler will create directory out/ii_files/ for
10217   # template instantiation
10218   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10219   $RM out/* && rmdir out
10220   cd ..
10221   $RM -r conftest
10222   $RM conftest*
10223
10224fi
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10226$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10227
10228
10229
10230
10231
10232
10233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10234$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10235if ${lt_cv_prog_compiler_c_o+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  lt_cv_prog_compiler_c_o=no
10239   $RM -r conftest 2>/dev/null
10240   mkdir conftest
10241   cd conftest
10242   mkdir out
10243   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10244
10245   lt_compiler_flag="-o out/conftest2.$ac_objext"
10246   # Insert the option either (1) after the last *FLAGS variable, or
10247   # (2) before a word containing "conftest.", or (3) at the end.
10248   # Note that $ac_compile itself does not contain backslashes and begins
10249   # with a dollar sign (not a hyphen), so the echo should work correctly.
10250   lt_compile=`echo "$ac_compile" | $SED \
10251   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10252   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10253   -e 's:$: $lt_compiler_flag:'`
10254   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10255   (eval "$lt_compile" 2>out/conftest.err)
10256   ac_status=$?
10257   cat out/conftest.err >&5
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10260   then
10261     # The compiler can only warn and ignore the option if not recognized
10262     # So say no if there are warnings
10263     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10264     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10265     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10266       lt_cv_prog_compiler_c_o=yes
10267     fi
10268   fi
10269   chmod u+w . 2>&5
10270   $RM conftest*
10271   # SGI C++ compiler will create directory out/ii_files/ for
10272   # template instantiation
10273   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10274   $RM out/* && rmdir out
10275   cd ..
10276   $RM -r conftest
10277   $RM conftest*
10278
10279fi
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10281$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10282
10283
10284
10285
10286hard_links=nottested
10287if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10288  # do not overwrite the value of need_locks provided by the user
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10290$as_echo_n "checking if we can lock with hard links... " >&6; }
10291  hard_links=yes
10292  $RM conftest*
10293  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10294  touch conftest.a
10295  ln conftest.a conftest.b 2>&5 || hard_links=no
10296  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10298$as_echo "$hard_links" >&6; }
10299  if test no = "$hard_links"; then
10300    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10301$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10302    need_locks=warn
10303  fi
10304else
10305  need_locks=no
10306fi
10307
10308
10309
10310
10311
10312
10313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10314$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10315
10316  runpath_var=
10317  allow_undefined_flag=
10318  always_export_symbols=no
10319  archive_cmds=
10320  archive_expsym_cmds=
10321  compiler_needs_object=no
10322  enable_shared_with_static_runtimes=no
10323  export_dynamic_flag_spec=
10324  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10325  hardcode_automatic=no
10326  hardcode_direct=no
10327  hardcode_direct_absolute=no
10328  hardcode_libdir_flag_spec=
10329  hardcode_libdir_separator=
10330  hardcode_minus_L=no
10331  hardcode_shlibpath_var=unsupported
10332  inherit_rpath=no
10333  link_all_deplibs=unknown
10334  module_cmds=
10335  module_expsym_cmds=
10336  old_archive_from_new_cmds=
10337  old_archive_from_expsyms_cmds=
10338  thread_safe_flag_spec=
10339  whole_archive_flag_spec=
10340  # include_expsyms should be a list of space-separated symbols to be *always*
10341  # included in the symbol list
10342  include_expsyms=
10343  # exclude_expsyms can be an extended regexp of symbols to exclude
10344  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10345  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10346  # as well as any symbol that contains 'd'.
10347  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10348  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10349  # platforms (ab)use it in PIC code, but their linkers get confused if
10350  # the symbol is explicitly referenced.  Since portable code cannot
10351  # rely on this symbol name, it's probably fine to never include it in
10352  # preloaded symbol tables.
10353  # Exclude shared library initialization/finalization symbols.
10354  extract_expsyms_cmds=
10355
10356  case $host_os in
10357  cygwin* | mingw* | pw32* | cegcc*)
10358    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10359    # When not using gcc, we currently assume that we are using
10360    # Microsoft Visual C++.
10361    if test yes != "$GCC"; then
10362      with_gnu_ld=no
10363    fi
10364    ;;
10365  interix*)
10366    # we just hope/assume this is gcc and not c89 (= MSVC++)
10367    with_gnu_ld=yes
10368    ;;
10369  openbsd* | bitrig*)
10370    with_gnu_ld=no
10371    ;;
10372  esac
10373
10374  ld_shlibs=yes
10375
10376  # On some targets, GNU ld is compatible enough with the native linker
10377  # that we're better off using the native interface for both.
10378  lt_use_gnu_ld_interface=no
10379  if test yes = "$with_gnu_ld"; then
10380    case $host_os in
10381      aix*)
10382	# The AIX port of GNU ld has always aspired to compatibility
10383	# with the native linker.  However, as the warning in the GNU ld
10384	# block says, versions before 2.19.5* couldn't really create working
10385	# shared libraries, regardless of the interface used.
10386	case `$LD -v 2>&1` in
10387	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10388	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10389	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10390	  *)
10391	    lt_use_gnu_ld_interface=yes
10392	    ;;
10393	esac
10394	;;
10395      *)
10396	lt_use_gnu_ld_interface=yes
10397	;;
10398    esac
10399  fi
10400
10401  if test yes = "$lt_use_gnu_ld_interface"; then
10402    # If archive_cmds runs LD, not CC, wlarc should be empty
10403    wlarc='$wl'
10404
10405    # Set some defaults for GNU ld with shared library support. These
10406    # are reset later if shared libraries are not supported. Putting them
10407    # here allows them to be overridden if necessary.
10408    runpath_var=LD_RUN_PATH
10409    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10410    export_dynamic_flag_spec='$wl--export-dynamic'
10411    # ancient GNU ld didn't support --whole-archive et. al.
10412    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10413      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10414    else
10415      whole_archive_flag_spec=
10416    fi
10417    supports_anon_versioning=no
10418    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10419      *GNU\ gold*) supports_anon_versioning=yes ;;
10420      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10421      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10422      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10423      *\ 2.11.*) ;; # other 2.11 versions
10424      *) supports_anon_versioning=yes ;;
10425    esac
10426
10427    # See if GNU ld supports shared libraries.
10428    case $host_os in
10429    aix[3-9]*)
10430      # On AIX/PPC, the GNU linker is very broken
10431      if test ia64 != "$host_cpu"; then
10432	ld_shlibs=no
10433	cat <<_LT_EOF 1>&2
10434
10435*** Warning: the GNU linker, at least up to release 2.19, is reported
10436*** to be unable to reliably create shared libraries on AIX.
10437*** Therefore, libtool is disabling shared libraries support.  If you
10438*** really care for shared libraries, you may want to install binutils
10439*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10440*** You will then need to restart the configuration process.
10441
10442_LT_EOF
10443      fi
10444      ;;
10445
10446    amigaos*)
10447      case $host_cpu in
10448      powerpc)
10449            # see comment about AmigaOS4 .so support
10450            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10451            archive_expsym_cmds=''
10452        ;;
10453      m68k)
10454            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)'
10455            hardcode_libdir_flag_spec='-L$libdir'
10456            hardcode_minus_L=yes
10457        ;;
10458      esac
10459      ;;
10460
10461    beos*)
10462      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10463	allow_undefined_flag=unsupported
10464	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10465	# support --undefined.  This deserves some investigation.  FIXME
10466	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10467      else
10468	ld_shlibs=no
10469      fi
10470      ;;
10471
10472    cygwin* | mingw* | pw32* | cegcc*)
10473      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10474      # as there is no search path for DLLs.
10475      hardcode_libdir_flag_spec='-L$libdir'
10476      export_dynamic_flag_spec='$wl--export-all-symbols'
10477      allow_undefined_flag=unsupported
10478      always_export_symbols=no
10479      enable_shared_with_static_runtimes=yes
10480      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'
10481      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10482
10483      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10484        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10485	# If the export-symbols file already is a .def file, use it as
10486	# is; otherwise, prepend EXPORTS...
10487	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10488          cp $export_symbols $output_objdir/$soname.def;
10489        else
10490          echo EXPORTS > $output_objdir/$soname.def;
10491          cat $export_symbols >> $output_objdir/$soname.def;
10492        fi~
10493        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10494      else
10495	ld_shlibs=no
10496      fi
10497      ;;
10498
10499    haiku*)
10500      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10501      link_all_deplibs=yes
10502      ;;
10503
10504    os2*)
10505      hardcode_libdir_flag_spec='-L$libdir'
10506      hardcode_minus_L=yes
10507      allow_undefined_flag=unsupported
10508      shrext_cmds=.dll
10509      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10510	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10511	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10512	$ECHO EXPORTS >> $output_objdir/$libname.def~
10513	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10514	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10515	emximp -o $lib $output_objdir/$libname.def'
10516      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10517	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10518	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10519	$ECHO EXPORTS >> $output_objdir/$libname.def~
10520	prefix_cmds="$SED"~
10521	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10522	  prefix_cmds="$prefix_cmds -e 1d";
10523	fi~
10524	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10525	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10526	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10527	emximp -o $lib $output_objdir/$libname.def'
10528      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10529      enable_shared_with_static_runtimes=yes
10530      ;;
10531
10532    interix[3-9]*)
10533      hardcode_direct=no
10534      hardcode_shlibpath_var=no
10535      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10536      export_dynamic_flag_spec='$wl-E'
10537      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10538      # Instead, shared libraries are loaded at an image base (0x10000000 by
10539      # default) and relocated if they conflict, which is a slow very memory
10540      # consuming and fragmenting process.  To avoid this, we pick a random,
10541      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10542      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10543      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10544      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'
10545      ;;
10546
10547    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10548      tmp_diet=no
10549      if test linux-dietlibc = "$host_os"; then
10550	case $cc_basename in
10551	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10552	esac
10553      fi
10554      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10555	 && test no = "$tmp_diet"
10556      then
10557	tmp_addflag=' $pic_flag'
10558	tmp_sharedflag='-shared'
10559	case $cc_basename,$host_cpu in
10560        pgcc*)				# Portland Group C compiler
10561	  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'
10562	  tmp_addflag=' $pic_flag'
10563	  ;;
10564	pgf77* | pgf90* | pgf95* | pgfortran*)
10565					# Portland Group f77 and f90 compilers
10566	  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'
10567	  tmp_addflag=' $pic_flag -Mnomain' ;;
10568	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10569	  tmp_addflag=' -i_dynamic' ;;
10570	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10571	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10572	ifc* | ifort*)			# Intel Fortran compiler
10573	  tmp_addflag=' -nofor_main' ;;
10574	lf95*)				# Lahey Fortran 8.1
10575	  whole_archive_flag_spec=
10576	  tmp_sharedflag='--shared' ;;
10577        nagfor*)                        # NAGFOR 5.3
10578          tmp_sharedflag='-Wl,-shared' ;;
10579	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10580	  tmp_sharedflag='-qmkshrobj'
10581	  tmp_addflag= ;;
10582	nvcc*)	# Cuda Compiler Driver 2.2
10583	  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'
10584	  compiler_needs_object=yes
10585	  ;;
10586	esac
10587	case `$CC -V 2>&1 | sed 5q` in
10588	*Sun\ C*)			# Sun C 5.9
10589	  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'
10590	  compiler_needs_object=yes
10591	  tmp_sharedflag='-G' ;;
10592	*Sun\ F*)			# Sun Fortran 8.3
10593	  tmp_sharedflag='-G' ;;
10594	esac
10595	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10596
10597        if test yes = "$supports_anon_versioning"; then
10598          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10599            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10600            echo "local: *; };" >> $output_objdir/$libname.ver~
10601            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10602        fi
10603
10604	case $cc_basename in
10605	tcc*)
10606	  export_dynamic_flag_spec='-rdynamic'
10607	  ;;
10608	xlf* | bgf* | bgxlf* | mpixlf*)
10609	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10610	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10611	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10612	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10613	  if test yes = "$supports_anon_versioning"; then
10614	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10615              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10616              echo "local: *; };" >> $output_objdir/$libname.ver~
10617              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10618	  fi
10619	  ;;
10620	esac
10621      else
10622        ld_shlibs=no
10623      fi
10624      ;;
10625
10626    netbsd*)
10627      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10628	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10629	wlarc=
10630      else
10631	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10632	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10633      fi
10634      ;;
10635
10636    solaris*)
10637      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10638	ld_shlibs=no
10639	cat <<_LT_EOF 1>&2
10640
10641*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10642*** create shared libraries on Solaris systems.  Therefore, libtool
10643*** is disabling shared libraries support.  We urge you to upgrade GNU
10644*** binutils to release 2.9.1 or newer.  Another option is to modify
10645*** your PATH or compiler configuration so that the native linker is
10646*** used, and then restart.
10647
10648_LT_EOF
10649      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10650	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10651	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10652      else
10653	ld_shlibs=no
10654      fi
10655      ;;
10656
10657    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10658      case `$LD -v 2>&1` in
10659        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10660	ld_shlibs=no
10661	cat <<_LT_EOF 1>&2
10662
10663*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10664*** reliably create shared libraries on SCO systems.  Therefore, libtool
10665*** is disabling shared libraries support.  We urge you to upgrade GNU
10666*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10667*** your PATH or compiler configuration so that the native linker is
10668*** used, and then restart.
10669
10670_LT_EOF
10671	;;
10672	*)
10673	  # For security reasons, it is highly recommended that you always
10674	  # use absolute paths for naming shared libraries, and exclude the
10675	  # DT_RUNPATH tag from executables and libraries.  But doing so
10676	  # requires that you compile everything twice, which is a pain.
10677	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10678	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10679	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10680	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10681	  else
10682	    ld_shlibs=no
10683	  fi
10684	;;
10685      esac
10686      ;;
10687
10688    sunos4*)
10689      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10690      wlarc=
10691      hardcode_direct=yes
10692      hardcode_shlibpath_var=no
10693      ;;
10694
10695    *)
10696      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10697	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10698	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10699      else
10700	ld_shlibs=no
10701      fi
10702      ;;
10703    esac
10704
10705    if test no = "$ld_shlibs"; then
10706      runpath_var=
10707      hardcode_libdir_flag_spec=
10708      export_dynamic_flag_spec=
10709      whole_archive_flag_spec=
10710    fi
10711  else
10712    # PORTME fill in a description of your system's linker (not GNU ld)
10713    case $host_os in
10714    aix3*)
10715      allow_undefined_flag=unsupported
10716      always_export_symbols=yes
10717      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'
10718      # Note: this linker hardcodes the directories in LIBPATH if there
10719      # are no directories specified by -L.
10720      hardcode_minus_L=yes
10721      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10722	# Neither direct hardcoding nor static linking is supported with a
10723	# broken collect2.
10724	hardcode_direct=unsupported
10725      fi
10726      ;;
10727
10728    aix[4-9]*)
10729      if test ia64 = "$host_cpu"; then
10730	# On IA64, the linker does run time linking by default, so we don't
10731	# have to do anything special.
10732	aix_use_runtimelinking=no
10733	exp_sym_flag='-Bexport'
10734	no_entry_flag=
10735      else
10736	# If we're using GNU nm, then we don't want the "-C" option.
10737	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10738	# Without the "-l" option, or with the "-B" option, AIX nm treats
10739	# weak defined symbols like other global defined symbols, whereas
10740	# GNU nm marks them as "W".
10741	# While the 'weak' keyword is ignored in the Export File, we need
10742	# it in the Import File for the 'aix-soname' feature, so we have
10743	# to replace the "-B" option with "-P" for AIX nm.
10744	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10745	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10746	else
10747	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10748	fi
10749	aix_use_runtimelinking=no
10750
10751	# Test if we are trying to use run time linking or normal
10752	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10753	# have runtime linking enabled, and use it for executables.
10754	# For shared libraries, we enable/disable runtime linking
10755	# depending on the kind of the shared library created -
10756	# when "with_aix_soname,aix_use_runtimelinking" is:
10757	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10758	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10759	#            lib.a           static archive
10760	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10761	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10762	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10763	#            lib.a(lib.so.V) shared, rtl:no
10764	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10765	#            lib.a           static archive
10766	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10767	  for ld_flag in $LDFLAGS; do
10768	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10769	    aix_use_runtimelinking=yes
10770	    break
10771	  fi
10772	  done
10773	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10774	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10775	    # so we don't have lib.a shared libs to link our executables.
10776	    # We have to force runtime linking in this case.
10777	    aix_use_runtimelinking=yes
10778	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10779	  fi
10780	  ;;
10781	esac
10782
10783	exp_sym_flag='-bexport'
10784	no_entry_flag='-bnoentry'
10785      fi
10786
10787      # When large executables or shared objects are built, AIX ld can
10788      # have problems creating the table of contents.  If linking a library
10789      # or program results in "error TOC overflow" add -mminimal-toc to
10790      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10791      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10792
10793      archive_cmds=''
10794      hardcode_direct=yes
10795      hardcode_direct_absolute=yes
10796      hardcode_libdir_separator=':'
10797      link_all_deplibs=yes
10798      file_list_spec='$wl-f,'
10799      case $with_aix_soname,$aix_use_runtimelinking in
10800      aix,*) ;; # traditional, no import file
10801      svr4,* | *,yes) # use import file
10802	# The Import File defines what to hardcode.
10803	hardcode_direct=no
10804	hardcode_direct_absolute=no
10805	;;
10806      esac
10807
10808      if test yes = "$GCC"; then
10809	case $host_os in aix4.[012]|aix4.[012].*)
10810	# We only want to do this on AIX 4.2 and lower, the check
10811	# below for broken collect2 doesn't work under 4.3+
10812	  collect2name=`$CC -print-prog-name=collect2`
10813	  if test -f "$collect2name" &&
10814	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10815	  then
10816	  # We have reworked collect2
10817	  :
10818	  else
10819	  # We have old collect2
10820	  hardcode_direct=unsupported
10821	  # It fails to find uninstalled libraries when the uninstalled
10822	  # path is not listed in the libpath.  Setting hardcode_minus_L
10823	  # to unsupported forces relinking
10824	  hardcode_minus_L=yes
10825	  hardcode_libdir_flag_spec='-L$libdir'
10826	  hardcode_libdir_separator=
10827	  fi
10828	  ;;
10829	esac
10830	shared_flag='-shared'
10831	if test yes = "$aix_use_runtimelinking"; then
10832	  shared_flag="$shared_flag "'$wl-G'
10833	fi
10834	# Need to ensure runtime linking is disabled for the traditional
10835	# shared library, or the linker may eventually find shared libraries
10836	# /with/ Import File - we do not want to mix them.
10837	shared_flag_aix='-shared'
10838	shared_flag_svr4='-shared $wl-G'
10839      else
10840	# not using gcc
10841	if test ia64 = "$host_cpu"; then
10842	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10843	# chokes on -Wl,-G. The following line is correct:
10844	  shared_flag='-G'
10845	else
10846	  if test yes = "$aix_use_runtimelinking"; then
10847	    shared_flag='$wl-G'
10848	  else
10849	    shared_flag='$wl-bM:SRE'
10850	  fi
10851	  shared_flag_aix='$wl-bM:SRE'
10852	  shared_flag_svr4='$wl-G'
10853	fi
10854      fi
10855
10856      export_dynamic_flag_spec='$wl-bexpall'
10857      # It seems that -bexpall does not export symbols beginning with
10858      # underscore (_), so it is better to generate a list of symbols to export.
10859      always_export_symbols=yes
10860      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10861	# Warning - without using the other runtime loading flags (-brtl),
10862	# -berok will link without error, but may produce a broken library.
10863	allow_undefined_flag='-berok'
10864        # Determine the default libpath from the value encoded in an
10865        # empty executable.
10866        if test set = "${lt_cv_aix_libpath+set}"; then
10867  aix_libpath=$lt_cv_aix_libpath
10868else
10869  if ${lt_cv_aix_libpath_+:} false; then :
10870  $as_echo_n "(cached) " >&6
10871else
10872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h.  */
10874
10875int
10876main ()
10877{
10878
10879  ;
10880  return 0;
10881}
10882_ACEOF
10883if ac_fn_c_try_link "$LINENO"; then :
10884
10885  lt_aix_libpath_sed='
10886      /Import File Strings/,/^$/ {
10887	  /^0/ {
10888	      s/^0  *\([^ ]*\) *$/\1/
10889	      p
10890	  }
10891      }'
10892  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10893  # Check for a 64-bit object if we didn't find anything.
10894  if test -z "$lt_cv_aix_libpath_"; then
10895    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10896  fi
10897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899    conftest$ac_exeext conftest.$ac_ext
10900  if test -z "$lt_cv_aix_libpath_"; then
10901    lt_cv_aix_libpath_=/usr/lib:/lib
10902  fi
10903
10904fi
10905
10906  aix_libpath=$lt_cv_aix_libpath_
10907fi
10908
10909        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10910        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10911      else
10912	if test ia64 = "$host_cpu"; then
10913	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10914	  allow_undefined_flag="-z nodefs"
10915	  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"
10916	else
10917	 # Determine the default libpath from the value encoded in an
10918	 # empty executable.
10919	 if test set = "${lt_cv_aix_libpath+set}"; then
10920  aix_libpath=$lt_cv_aix_libpath
10921else
10922  if ${lt_cv_aix_libpath_+:} false; then :
10923  $as_echo_n "(cached) " >&6
10924else
10925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h.  */
10927
10928int
10929main ()
10930{
10931
10932  ;
10933  return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_link "$LINENO"; then :
10937
10938  lt_aix_libpath_sed='
10939      /Import File Strings/,/^$/ {
10940	  /^0/ {
10941	      s/^0  *\([^ ]*\) *$/\1/
10942	      p
10943	  }
10944      }'
10945  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946  # Check for a 64-bit object if we didn't find anything.
10947  if test -z "$lt_cv_aix_libpath_"; then
10948    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10949  fi
10950fi
10951rm -f core conftest.err conftest.$ac_objext \
10952    conftest$ac_exeext conftest.$ac_ext
10953  if test -z "$lt_cv_aix_libpath_"; then
10954    lt_cv_aix_libpath_=/usr/lib:/lib
10955  fi
10956
10957fi
10958
10959  aix_libpath=$lt_cv_aix_libpath_
10960fi
10961
10962	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10963	  # Warning - without using the other run time loading flags,
10964	  # -berok will link without error, but may produce a broken library.
10965	  no_undefined_flag=' $wl-bernotok'
10966	  allow_undefined_flag=' $wl-berok'
10967	  if test yes = "$with_gnu_ld"; then
10968	    # We only use this code for GNU lds that support --whole-archive.
10969	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10970	  else
10971	    # Exported symbols can be pulled into shared objects from archives
10972	    whole_archive_flag_spec='$convenience'
10973	  fi
10974	  archive_cmds_need_lc=yes
10975	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10976	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10977	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10978	  if test svr4 != "$with_aix_soname"; then
10979	    # This is similar to how AIX traditionally builds its shared libraries.
10980	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10981	  fi
10982	  if test aix != "$with_aix_soname"; then
10983	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10984	  else
10985	    # used by -dlpreopen to get the symbols
10986	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10987	  fi
10988	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10989	fi
10990      fi
10991      ;;
10992
10993    amigaos*)
10994      case $host_cpu in
10995      powerpc)
10996            # see comment about AmigaOS4 .so support
10997            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10998            archive_expsym_cmds=''
10999        ;;
11000      m68k)
11001            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)'
11002            hardcode_libdir_flag_spec='-L$libdir'
11003            hardcode_minus_L=yes
11004        ;;
11005      esac
11006      ;;
11007
11008    bsdi[45]*)
11009      export_dynamic_flag_spec=-rdynamic
11010      ;;
11011
11012    cygwin* | mingw* | pw32* | cegcc*)
11013      # When not using gcc, we currently assume that we are using
11014      # Microsoft Visual C++.
11015      # hardcode_libdir_flag_spec is actually meaningless, as there is
11016      # no search path for DLLs.
11017      case $cc_basename in
11018      cl*)
11019	# Native MSVC
11020	hardcode_libdir_flag_spec=' '
11021	allow_undefined_flag=unsupported
11022	always_export_symbols=yes
11023	file_list_spec='@'
11024	# Tell ltmain to make .lib files, not .a files.
11025	libext=lib
11026	# Tell ltmain to make .dll files, not .so files.
11027	shrext_cmds=.dll
11028	# FIXME: Setting linknames here is a bad hack.
11029	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11030	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11031            cp "$export_symbols" "$output_objdir/$soname.def";
11032            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11033          else
11034            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11035          fi~
11036          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11037          linknames='
11038	# The linker will not automatically build a static lib if we build a DLL.
11039	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11040	enable_shared_with_static_runtimes=yes
11041	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11042	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11043	# Don't use ranlib
11044	old_postinstall_cmds='chmod 644 $oldlib'
11045	postlink_cmds='lt_outputfile="@OUTPUT@"~
11046          lt_tool_outputfile="@TOOL_OUTPUT@"~
11047          case $lt_outputfile in
11048            *.exe|*.EXE) ;;
11049            *)
11050              lt_outputfile=$lt_outputfile.exe
11051              lt_tool_outputfile=$lt_tool_outputfile.exe
11052              ;;
11053          esac~
11054          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11055            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11056            $RM "$lt_outputfile.manifest";
11057          fi'
11058	;;
11059      *)
11060	# Assume MSVC wrapper
11061	hardcode_libdir_flag_spec=' '
11062	allow_undefined_flag=unsupported
11063	# Tell ltmain to make .lib files, not .a files.
11064	libext=lib
11065	# Tell ltmain to make .dll files, not .so files.
11066	shrext_cmds=.dll
11067	# FIXME: Setting linknames here is a bad hack.
11068	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11069	# The linker will automatically build a .lib file if we build a DLL.
11070	old_archive_from_new_cmds='true'
11071	# FIXME: Should let the user specify the lib program.
11072	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11073	enable_shared_with_static_runtimes=yes
11074	;;
11075      esac
11076      ;;
11077
11078    darwin* | rhapsody*)
11079
11080
11081  archive_cmds_need_lc=no
11082  hardcode_direct=no
11083  hardcode_automatic=yes
11084  hardcode_shlibpath_var=unsupported
11085  if test yes = "$lt_cv_ld_force_load"; then
11086    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\"`'
11087
11088  else
11089    whole_archive_flag_spec=''
11090  fi
11091  link_all_deplibs=yes
11092  allow_undefined_flag=$_lt_dar_allow_undefined
11093  case $cc_basename in
11094     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11095     *) _lt_dar_can_shared=$GCC ;;
11096  esac
11097  if test yes = "$_lt_dar_can_shared"; then
11098    output_verbose_link_cmd=func_echo_all
11099    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11100    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11101    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"
11102    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"
11103
11104  else
11105  ld_shlibs=no
11106  fi
11107
11108      ;;
11109
11110    dgux*)
11111      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11112      hardcode_libdir_flag_spec='-L$libdir'
11113      hardcode_shlibpath_var=no
11114      ;;
11115
11116    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11117    # support.  Future versions do this automatically, but an explicit c++rt0.o
11118    # does not break anything, and helps significantly (at the cost of a little
11119    # extra space).
11120    freebsd2.2*)
11121      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11122      hardcode_libdir_flag_spec='-R$libdir'
11123      hardcode_direct=yes
11124      hardcode_shlibpath_var=no
11125      ;;
11126
11127    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11128    freebsd2.*)
11129      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11130      hardcode_direct=yes
11131      hardcode_minus_L=yes
11132      hardcode_shlibpath_var=no
11133      ;;
11134
11135    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11136    freebsd* | dragonfly*)
11137      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11138      hardcode_libdir_flag_spec='-R$libdir'
11139      hardcode_direct=yes
11140      hardcode_shlibpath_var=no
11141      ;;
11142
11143    hpux9*)
11144      if test yes = "$GCC"; then
11145	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11146      else
11147	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11148      fi
11149      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11150      hardcode_libdir_separator=:
11151      hardcode_direct=yes
11152
11153      # hardcode_minus_L: Not really in the search PATH,
11154      # but as the default location of the library.
11155      hardcode_minus_L=yes
11156      export_dynamic_flag_spec='$wl-E'
11157      ;;
11158
11159    hpux10*)
11160      if test yes,no = "$GCC,$with_gnu_ld"; then
11161	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11162      else
11163	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11164      fi
11165      if test no = "$with_gnu_ld"; then
11166	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11167	hardcode_libdir_separator=:
11168	hardcode_direct=yes
11169	hardcode_direct_absolute=yes
11170	export_dynamic_flag_spec='$wl-E'
11171	# hardcode_minus_L: Not really in the search PATH,
11172	# but as the default location of the library.
11173	hardcode_minus_L=yes
11174      fi
11175      ;;
11176
11177    hpux11*)
11178      if test yes,no = "$GCC,$with_gnu_ld"; then
11179	case $host_cpu in
11180	hppa*64*)
11181	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11182	  ;;
11183	ia64*)
11184	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11185	  ;;
11186	*)
11187	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11188	  ;;
11189	esac
11190      else
11191	case $host_cpu in
11192	hppa*64*)
11193	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11194	  ;;
11195	ia64*)
11196	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11197	  ;;
11198	*)
11199
11200	  # Older versions of the 11.00 compiler do not understand -b yet
11201	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11202	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11203$as_echo_n "checking if $CC understands -b... " >&6; }
11204if ${lt_cv_prog_compiler__b+:} false; then :
11205  $as_echo_n "(cached) " >&6
11206else
11207  lt_cv_prog_compiler__b=no
11208   save_LDFLAGS=$LDFLAGS
11209   LDFLAGS="$LDFLAGS -b"
11210   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11211   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11212     # The linker can only warn and ignore the option if not recognized
11213     # So say no if there are warnings
11214     if test -s conftest.err; then
11215       # Append any errors to the config.log.
11216       cat conftest.err 1>&5
11217       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11218       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11219       if diff conftest.exp conftest.er2 >/dev/null; then
11220         lt_cv_prog_compiler__b=yes
11221       fi
11222     else
11223       lt_cv_prog_compiler__b=yes
11224     fi
11225   fi
11226   $RM -r conftest*
11227   LDFLAGS=$save_LDFLAGS
11228
11229fi
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11231$as_echo "$lt_cv_prog_compiler__b" >&6; }
11232
11233if test yes = "$lt_cv_prog_compiler__b"; then
11234    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11235else
11236    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11237fi
11238
11239	  ;;
11240	esac
11241      fi
11242      if test no = "$with_gnu_ld"; then
11243	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11244	hardcode_libdir_separator=:
11245
11246	case $host_cpu in
11247	hppa*64*|ia64*)
11248	  hardcode_direct=no
11249	  hardcode_shlibpath_var=no
11250	  ;;
11251	*)
11252	  hardcode_direct=yes
11253	  hardcode_direct_absolute=yes
11254	  export_dynamic_flag_spec='$wl-E'
11255
11256	  # hardcode_minus_L: Not really in the search PATH,
11257	  # but as the default location of the library.
11258	  hardcode_minus_L=yes
11259	  ;;
11260	esac
11261      fi
11262      ;;
11263
11264    irix5* | irix6* | nonstopux*)
11265      if test yes = "$GCC"; then
11266	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'
11267	# Try to use the -exported_symbol ld option, if it does not
11268	# work, assume that -exports_file does not work either and
11269	# implicitly export all symbols.
11270	# This should be the same for all languages, so no per-tag cache variable.
11271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11272$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11273if ${lt_cv_irix_exported_symbol+:} false; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276  save_LDFLAGS=$LDFLAGS
11277	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11278	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279/* end confdefs.h.  */
11280int foo (void) { return 0; }
11281_ACEOF
11282if ac_fn_c_try_link "$LINENO"; then :
11283  lt_cv_irix_exported_symbol=yes
11284else
11285  lt_cv_irix_exported_symbol=no
11286fi
11287rm -f core conftest.err conftest.$ac_objext \
11288    conftest$ac_exeext conftest.$ac_ext
11289           LDFLAGS=$save_LDFLAGS
11290fi
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11292$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11293	if test yes = "$lt_cv_irix_exported_symbol"; then
11294          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'
11295	fi
11296      else
11297	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'
11298	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'
11299      fi
11300      archive_cmds_need_lc='no'
11301      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11302      hardcode_libdir_separator=:
11303      inherit_rpath=yes
11304      link_all_deplibs=yes
11305      ;;
11306
11307    linux*)
11308      case $cc_basename in
11309      tcc*)
11310	# Fabrice Bellard et al's Tiny C Compiler
11311	ld_shlibs=yes
11312	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11313	;;
11314      esac
11315      ;;
11316
11317    netbsd*)
11318      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11319	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11320      else
11321	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11322      fi
11323      hardcode_libdir_flag_spec='-R$libdir'
11324      hardcode_direct=yes
11325      hardcode_shlibpath_var=no
11326      ;;
11327
11328    newsos6)
11329      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330      hardcode_direct=yes
11331      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11332      hardcode_libdir_separator=:
11333      hardcode_shlibpath_var=no
11334      ;;
11335
11336    *nto* | *qnx*)
11337      ;;
11338
11339    openbsd* | bitrig*)
11340      if test -f /usr/libexec/ld.so; then
11341	hardcode_direct=yes
11342	hardcode_shlibpath_var=no
11343	hardcode_direct_absolute=yes
11344	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11345	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11346	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11347	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11348	  export_dynamic_flag_spec='$wl-E'
11349	else
11350	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11351	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11352	fi
11353      else
11354	ld_shlibs=no
11355      fi
11356      ;;
11357
11358    os2*)
11359      hardcode_libdir_flag_spec='-L$libdir'
11360      hardcode_minus_L=yes
11361      allow_undefined_flag=unsupported
11362      shrext_cmds=.dll
11363      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11364	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11365	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11366	$ECHO EXPORTS >> $output_objdir/$libname.def~
11367	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11368	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11369	emximp -o $lib $output_objdir/$libname.def'
11370      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11371	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11372	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11373	$ECHO EXPORTS >> $output_objdir/$libname.def~
11374	prefix_cmds="$SED"~
11375	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11376	  prefix_cmds="$prefix_cmds -e 1d";
11377	fi~
11378	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11379	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11380	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11381	emximp -o $lib $output_objdir/$libname.def'
11382      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11383      enable_shared_with_static_runtimes=yes
11384      ;;
11385
11386    osf3*)
11387      if test yes = "$GCC"; then
11388	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11389	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'
11390      else
11391	allow_undefined_flag=' -expect_unresolved \*'
11392	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'
11393      fi
11394      archive_cmds_need_lc='no'
11395      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11396      hardcode_libdir_separator=:
11397      ;;
11398
11399    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11400      if test yes = "$GCC"; then
11401	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11402	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'
11403	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11404      else
11405	allow_undefined_flag=' -expect_unresolved \*'
11406	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'
11407	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~
11408          $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'
11409
11410	# Both c and cxx compiler support -rpath directly
11411	hardcode_libdir_flag_spec='-rpath $libdir'
11412      fi
11413      archive_cmds_need_lc='no'
11414      hardcode_libdir_separator=:
11415      ;;
11416
11417    solaris*)
11418      no_undefined_flag=' -z defs'
11419      if test yes = "$GCC"; then
11420	wlarc='$wl'
11421	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11422	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11423          $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'
11424      else
11425	case `$CC -V 2>&1` in
11426	*"Compilers 5.0"*)
11427	  wlarc=''
11428	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11429	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11430            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11431	  ;;
11432	*)
11433	  wlarc='$wl'
11434	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11435	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11436            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11437	  ;;
11438	esac
11439      fi
11440      hardcode_libdir_flag_spec='-R$libdir'
11441      hardcode_shlibpath_var=no
11442      case $host_os in
11443      solaris2.[0-5] | solaris2.[0-5].*) ;;
11444      *)
11445	# The compiler driver will combine and reorder linker options,
11446	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11447	# but is careful enough not to reorder.
11448	# Supported since Solaris 2.6 (maybe 2.5.1?)
11449	if test yes = "$GCC"; then
11450	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11451	else
11452	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11453	fi
11454	;;
11455      esac
11456      link_all_deplibs=yes
11457      ;;
11458
11459    sunos4*)
11460      if test sequent = "$host_vendor"; then
11461	# Use $CC to link under sequent, because it throws in some extra .o
11462	# files that make .init and .fini sections work.
11463	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11464      else
11465	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11466      fi
11467      hardcode_libdir_flag_spec='-L$libdir'
11468      hardcode_direct=yes
11469      hardcode_minus_L=yes
11470      hardcode_shlibpath_var=no
11471      ;;
11472
11473    sysv4)
11474      case $host_vendor in
11475	sni)
11476	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477	  hardcode_direct=yes # is this really true???
11478	;;
11479	siemens)
11480	  ## LD is ld it makes a PLAMLIB
11481	  ## CC just makes a GrossModule.
11482	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11483	  reload_cmds='$CC -r -o $output$reload_objs'
11484	  hardcode_direct=no
11485        ;;
11486	motorola)
11487	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11488	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11489	;;
11490      esac
11491      runpath_var='LD_RUN_PATH'
11492      hardcode_shlibpath_var=no
11493      ;;
11494
11495    sysv4.3*)
11496      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497      hardcode_shlibpath_var=no
11498      export_dynamic_flag_spec='-Bexport'
11499      ;;
11500
11501    sysv4*MP*)
11502      if test -d /usr/nec; then
11503	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11504	hardcode_shlibpath_var=no
11505	runpath_var=LD_RUN_PATH
11506	hardcode_runpath_var=yes
11507	ld_shlibs=yes
11508      fi
11509      ;;
11510
11511    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11512      no_undefined_flag='$wl-z,text'
11513      archive_cmds_need_lc=no
11514      hardcode_shlibpath_var=no
11515      runpath_var='LD_RUN_PATH'
11516
11517      if test yes = "$GCC"; then
11518	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11519	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11520      else
11521	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11523      fi
11524      ;;
11525
11526    sysv5* | sco3.2v5* | sco5v6*)
11527      # Note: We CANNOT use -z defs as we might desire, because we do not
11528      # link with -lc, and that would cause any symbols used from libc to
11529      # always be unresolved, which means just about no library would
11530      # ever link correctly.  If we're not using GNU ld we use -z text
11531      # though, which does catch some bad symbols but isn't as heavy-handed
11532      # as -z defs.
11533      no_undefined_flag='$wl-z,text'
11534      allow_undefined_flag='$wl-z,nodefs'
11535      archive_cmds_need_lc=no
11536      hardcode_shlibpath_var=no
11537      hardcode_libdir_flag_spec='$wl-R,$libdir'
11538      hardcode_libdir_separator=':'
11539      link_all_deplibs=yes
11540      export_dynamic_flag_spec='$wl-Bexport'
11541      runpath_var='LD_RUN_PATH'
11542
11543      if test yes = "$GCC"; then
11544	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11545	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11546      else
11547	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11548	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11549      fi
11550      ;;
11551
11552    uts4*)
11553      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11554      hardcode_libdir_flag_spec='-L$libdir'
11555      hardcode_shlibpath_var=no
11556      ;;
11557
11558    *)
11559      ld_shlibs=no
11560      ;;
11561    esac
11562
11563    if test sni = "$host_vendor"; then
11564      case $host in
11565      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11566	export_dynamic_flag_spec='$wl-Blargedynsym'
11567	;;
11568      esac
11569    fi
11570  fi
11571
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11573$as_echo "$ld_shlibs" >&6; }
11574test no = "$ld_shlibs" && can_build_shared=no
11575
11576with_gnu_ld=$with_gnu_ld
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592#
11593# Do we need to explicitly link libc?
11594#
11595case "x$archive_cmds_need_lc" in
11596x|xyes)
11597  # Assume -lc should be added
11598  archive_cmds_need_lc=yes
11599
11600  if test yes,yes = "$GCC,$enable_shared"; then
11601    case $archive_cmds in
11602    *'~'*)
11603      # FIXME: we may have to deal with multi-command sequences.
11604      ;;
11605    '$CC '*)
11606      # Test whether the compiler implicitly links with -lc since on some
11607      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11608      # to ld, don't add -lc before -lgcc.
11609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11610$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11611if ${lt_cv_archive_cmds_need_lc+:} false; then :
11612  $as_echo_n "(cached) " >&6
11613else
11614  $RM conftest*
11615	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11616
11617	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11618  (eval $ac_compile) 2>&5
11619  ac_status=$?
11620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621  test $ac_status = 0; } 2>conftest.err; then
11622	  soname=conftest
11623	  lib=conftest
11624	  libobjs=conftest.$ac_objext
11625	  deplibs=
11626	  wl=$lt_prog_compiler_wl
11627	  pic_flag=$lt_prog_compiler_pic
11628	  compiler_flags=-v
11629	  linker_flags=-v
11630	  verstring=
11631	  output_objdir=.
11632	  libname=conftest
11633	  lt_save_allow_undefined_flag=$allow_undefined_flag
11634	  allow_undefined_flag=
11635	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11636  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11637  ac_status=$?
11638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639  test $ac_status = 0; }
11640	  then
11641	    lt_cv_archive_cmds_need_lc=no
11642	  else
11643	    lt_cv_archive_cmds_need_lc=yes
11644	  fi
11645	  allow_undefined_flag=$lt_save_allow_undefined_flag
11646	else
11647	  cat conftest.err 1>&5
11648	fi
11649	$RM conftest*
11650
11651fi
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11653$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11654      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11655      ;;
11656    esac
11657  fi
11658  ;;
11659esac
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11813$as_echo_n "checking dynamic linker characteristics... " >&6; }
11814
11815if test yes = "$GCC"; then
11816  case $host_os in
11817    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11818    *) lt_awk_arg='/^libraries:/' ;;
11819  esac
11820  case $host_os in
11821    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11822    *) lt_sed_strip_eq='s|=/|/|g' ;;
11823  esac
11824  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11825  case $lt_search_path_spec in
11826  *\;*)
11827    # if the path contains ";" then we assume it to be the separator
11828    # otherwise default to the standard path separator (i.e. ":") - it is
11829    # assumed that no part of a normal pathname contains ";" but that should
11830    # okay in the real world where ";" in dirpaths is itself problematic.
11831    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11832    ;;
11833  *)
11834    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11835    ;;
11836  esac
11837  # Ok, now we have the path, separated by spaces, we can step through it
11838  # and add multilib dir if necessary...
11839  lt_tmp_lt_search_path_spec=
11840  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11841  # ...but if some path component already ends with the multilib dir we assume
11842  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11843  case "$lt_multi_os_dir; $lt_search_path_spec " in
11844  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11845    lt_multi_os_dir=
11846    ;;
11847  esac
11848  for lt_sys_path in $lt_search_path_spec; do
11849    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11850      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11851    elif test -n "$lt_multi_os_dir"; then
11852      test -d "$lt_sys_path" && \
11853	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11854    fi
11855  done
11856  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11857BEGIN {RS = " "; FS = "/|\n";} {
11858  lt_foo = "";
11859  lt_count = 0;
11860  for (lt_i = NF; lt_i > 0; lt_i--) {
11861    if ($lt_i != "" && $lt_i != ".") {
11862      if ($lt_i == "..") {
11863        lt_count++;
11864      } else {
11865        if (lt_count == 0) {
11866          lt_foo = "/" $lt_i lt_foo;
11867        } else {
11868          lt_count--;
11869        }
11870      }
11871    }
11872  }
11873  if (lt_foo != "") { lt_freq[lt_foo]++; }
11874  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11875}'`
11876  # AWK program above erroneously prepends '/' to C:/dos/paths
11877  # for these hosts.
11878  case $host_os in
11879    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11880      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11881  esac
11882  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11883else
11884  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11885fi
11886library_names_spec=
11887libname_spec='lib$name'
11888soname_spec=
11889shrext_cmds=.so
11890postinstall_cmds=
11891postuninstall_cmds=
11892finish_cmds=
11893finish_eval=
11894shlibpath_var=
11895shlibpath_overrides_runpath=unknown
11896version_type=none
11897dynamic_linker="$host_os ld.so"
11898sys_lib_dlsearch_path_spec="/lib /usr/lib"
11899need_lib_prefix=unknown
11900hardcode_into_libs=no
11901
11902# when you set need_version to no, make sure it does not cause -set_version
11903# flags to be left without arguments
11904need_version=unknown
11905
11906
11907
11908case $host_os in
11909aix3*)
11910  version_type=linux # correct to gnu/linux during the next big refactor
11911  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11912  shlibpath_var=LIBPATH
11913
11914  # AIX 3 has no versioning support, so we append a major version to the name.
11915  soname_spec='$libname$release$shared_ext$major'
11916  ;;
11917
11918aix[4-9]*)
11919  version_type=linux # correct to gnu/linux during the next big refactor
11920  need_lib_prefix=no
11921  need_version=no
11922  hardcode_into_libs=yes
11923  if test ia64 = "$host_cpu"; then
11924    # AIX 5 supports IA64
11925    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11926    shlibpath_var=LD_LIBRARY_PATH
11927  else
11928    # With GCC up to 2.95.x, collect2 would create an import file
11929    # for dependence libraries.  The import file would start with
11930    # the line '#! .'.  This would cause the generated library to
11931    # depend on '.', always an invalid library.  This was fixed in
11932    # development snapshots of GCC prior to 3.0.
11933    case $host_os in
11934      aix4 | aix4.[01] | aix4.[01].*)
11935      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11936	   echo ' yes '
11937	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11938	:
11939      else
11940	can_build_shared=no
11941      fi
11942      ;;
11943    esac
11944    # Using Import Files as archive members, it is possible to support
11945    # filename-based versioning of shared library archives on AIX. While
11946    # this would work for both with and without runtime linking, it will
11947    # prevent static linking of such archives. So we do filename-based
11948    # shared library versioning with .so extension only, which is used
11949    # when both runtime linking and shared linking is enabled.
11950    # Unfortunately, runtime linking may impact performance, so we do
11951    # not want this to be the default eventually. Also, we use the
11952    # versioned .so libs for executables only if there is the -brtl
11953    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11954    # To allow for filename-based versioning support, we need to create
11955    # libNAME.so.V as an archive file, containing:
11956    # *) an Import File, referring to the versioned filename of the
11957    #    archive as well as the shared archive member, telling the
11958    #    bitwidth (32 or 64) of that shared object, and providing the
11959    #    list of exported symbols of that shared object, eventually
11960    #    decorated with the 'weak' keyword
11961    # *) the shared object with the F_LOADONLY flag set, to really avoid
11962    #    it being seen by the linker.
11963    # At run time we better use the real file rather than another symlink,
11964    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11965
11966    case $with_aix_soname,$aix_use_runtimelinking in
11967    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11968    # soname into executable. Probably we can add versioning support to
11969    # collect2, so additional links can be useful in future.
11970    aix,yes) # traditional libtool
11971      dynamic_linker='AIX unversionable lib.so'
11972      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11973      # instead of lib<name>.a to let people know that these are not
11974      # typical AIX shared libraries.
11975      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11976      ;;
11977    aix,no) # traditional AIX only
11978      dynamic_linker='AIX lib.a(lib.so.V)'
11979      # We preserve .a as extension for shared libraries through AIX4.2
11980      # and later when we are not doing run time linking.
11981      library_names_spec='$libname$release.a $libname.a'
11982      soname_spec='$libname$release$shared_ext$major'
11983      ;;
11984    svr4,*) # full svr4 only
11985      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11986      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11987      # We do not specify a path in Import Files, so LIBPATH fires.
11988      shlibpath_overrides_runpath=yes
11989      ;;
11990    *,yes) # both, prefer svr4
11991      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11992      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11993      # unpreferred sharedlib libNAME.a needs extra handling
11994      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11995      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11996      # We do not specify a path in Import Files, so LIBPATH fires.
11997      shlibpath_overrides_runpath=yes
11998      ;;
11999    *,no) # both, prefer aix
12000      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12001      library_names_spec='$libname$release.a $libname.a'
12002      soname_spec='$libname$release$shared_ext$major'
12003      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12004      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12005      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12006      ;;
12007    esac
12008    shlibpath_var=LIBPATH
12009  fi
12010  ;;
12011
12012amigaos*)
12013  case $host_cpu in
12014  powerpc)
12015    # Since July 2007 AmigaOS4 officially supports .so libraries.
12016    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12017    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12018    ;;
12019  m68k)
12020    library_names_spec='$libname.ixlibrary $libname.a'
12021    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12022    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12023    ;;
12024  esac
12025  ;;
12026
12027beos*)
12028  library_names_spec='$libname$shared_ext'
12029  dynamic_linker="$host_os ld.so"
12030  shlibpath_var=LIBRARY_PATH
12031  ;;
12032
12033bsdi[45]*)
12034  version_type=linux # correct to gnu/linux during the next big refactor
12035  need_version=no
12036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037  soname_spec='$libname$release$shared_ext$major'
12038  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12039  shlibpath_var=LD_LIBRARY_PATH
12040  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12041  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12042  # the default ld.so.conf also contains /usr/contrib/lib and
12043  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12044  # libtool to hard-code these into programs
12045  ;;
12046
12047cygwin* | mingw* | pw32* | cegcc*)
12048  version_type=windows
12049  shrext_cmds=.dll
12050  need_version=no
12051  need_lib_prefix=no
12052
12053  case $GCC,$cc_basename in
12054  yes,*)
12055    # gcc
12056    library_names_spec='$libname.dll.a'
12057    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12058    postinstall_cmds='base_file=`basename \$file`~
12059      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12060      dldir=$destdir/`dirname \$dlpath`~
12061      test -d \$dldir || mkdir -p \$dldir~
12062      $install_prog $dir/$dlname \$dldir/$dlname~
12063      chmod a+x \$dldir/$dlname~
12064      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12065        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12066      fi'
12067    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12068      dlpath=$dir/\$dldll~
12069       $RM \$dlpath'
12070    shlibpath_overrides_runpath=yes
12071
12072    case $host_os in
12073    cygwin*)
12074      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12075      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12076
12077      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12078      ;;
12079    mingw* | cegcc*)
12080      # MinGW DLLs use traditional 'lib' prefix
12081      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12082      ;;
12083    pw32*)
12084      # pw32 DLLs use 'pw' prefix rather than 'lib'
12085      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12086      ;;
12087    esac
12088    dynamic_linker='Win32 ld.exe'
12089    ;;
12090
12091  *,cl*)
12092    # Native MSVC
12093    libname_spec='$name'
12094    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12095    library_names_spec='$libname.dll.lib'
12096
12097    case $build_os in
12098    mingw*)
12099      sys_lib_search_path_spec=
12100      lt_save_ifs=$IFS
12101      IFS=';'
12102      for lt_path in $LIB
12103      do
12104        IFS=$lt_save_ifs
12105        # Let DOS variable expansion print the short 8.3 style file name.
12106        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12107        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12108      done
12109      IFS=$lt_save_ifs
12110      # Convert to MSYS style.
12111      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12112      ;;
12113    cygwin*)
12114      # Convert to unix form, then to dos form, then back to unix form
12115      # but this time dos style (no spaces!) so that the unix form looks
12116      # like /cygdrive/c/PROGRA~1:/cygdr...
12117      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12118      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12119      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12120      ;;
12121    *)
12122      sys_lib_search_path_spec=$LIB
12123      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12124        # It is most probably a Windows format PATH.
12125        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12126      else
12127        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12128      fi
12129      # FIXME: find the short name or the path components, as spaces are
12130      # common. (e.g. "Program Files" -> "PROGRA~1")
12131      ;;
12132    esac
12133
12134    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12135    postinstall_cmds='base_file=`basename \$file`~
12136      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12137      dldir=$destdir/`dirname \$dlpath`~
12138      test -d \$dldir || mkdir -p \$dldir~
12139      $install_prog $dir/$dlname \$dldir/$dlname'
12140    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12141      dlpath=$dir/\$dldll~
12142       $RM \$dlpath'
12143    shlibpath_overrides_runpath=yes
12144    dynamic_linker='Win32 link.exe'
12145    ;;
12146
12147  *)
12148    # Assume MSVC wrapper
12149    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12150    dynamic_linker='Win32 ld.exe'
12151    ;;
12152  esac
12153  # FIXME: first we should search . and the directory the executable is in
12154  shlibpath_var=PATH
12155  ;;
12156
12157darwin* | rhapsody*)
12158  dynamic_linker="$host_os dyld"
12159  version_type=darwin
12160  need_lib_prefix=no
12161  need_version=no
12162  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12163  soname_spec='$libname$release$major$shared_ext'
12164  shlibpath_overrides_runpath=yes
12165  shlibpath_var=DYLD_LIBRARY_PATH
12166  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12167
12168  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12169  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12170  ;;
12171
12172dgux*)
12173  version_type=linux # correct to gnu/linux during the next big refactor
12174  need_lib_prefix=no
12175  need_version=no
12176  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12177  soname_spec='$libname$release$shared_ext$major'
12178  shlibpath_var=LD_LIBRARY_PATH
12179  ;;
12180
12181freebsd* | dragonfly*)
12182  # DragonFly does not have aout.  When/if they implement a new
12183  # versioning mechanism, adjust this.
12184  if test -x /usr/bin/objformat; then
12185    objformat=`/usr/bin/objformat`
12186  else
12187    case $host_os in
12188    freebsd[23].*) objformat=aout ;;
12189    *) objformat=elf ;;
12190    esac
12191  fi
12192  version_type=freebsd-$objformat
12193  case $version_type in
12194    freebsd-elf*)
12195      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12196      soname_spec='$libname$release$shared_ext$major'
12197      need_version=no
12198      need_lib_prefix=no
12199      ;;
12200    freebsd-*)
12201      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12202      need_version=yes
12203      ;;
12204  esac
12205  shlibpath_var=LD_LIBRARY_PATH
12206  case $host_os in
12207  freebsd2.*)
12208    shlibpath_overrides_runpath=yes
12209    ;;
12210  freebsd3.[01]* | freebsdelf3.[01]*)
12211    shlibpath_overrides_runpath=yes
12212    hardcode_into_libs=yes
12213    ;;
12214  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12215  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12216    shlibpath_overrides_runpath=no
12217    hardcode_into_libs=yes
12218    ;;
12219  *) # from 4.6 on, and DragonFly
12220    shlibpath_overrides_runpath=yes
12221    hardcode_into_libs=yes
12222    ;;
12223  esac
12224  ;;
12225
12226haiku*)
12227  version_type=linux # correct to gnu/linux during the next big refactor
12228  need_lib_prefix=no
12229  need_version=no
12230  dynamic_linker="$host_os runtime_loader"
12231  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232  soname_spec='$libname$release$shared_ext$major'
12233  shlibpath_var=LIBRARY_PATH
12234  shlibpath_overrides_runpath=no
12235  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12236  hardcode_into_libs=yes
12237  ;;
12238
12239hpux9* | hpux10* | hpux11*)
12240  # Give a soname corresponding to the major version so that dld.sl refuses to
12241  # link against other versions.
12242  version_type=sunos
12243  need_lib_prefix=no
12244  need_version=no
12245  case $host_cpu in
12246  ia64*)
12247    shrext_cmds='.so'
12248    hardcode_into_libs=yes
12249    dynamic_linker="$host_os dld.so"
12250    shlibpath_var=LD_LIBRARY_PATH
12251    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12252    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253    soname_spec='$libname$release$shared_ext$major'
12254    if test 32 = "$HPUX_IA64_MODE"; then
12255      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12256      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12257    else
12258      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12259      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12260    fi
12261    ;;
12262  hppa*64*)
12263    shrext_cmds='.sl'
12264    hardcode_into_libs=yes
12265    dynamic_linker="$host_os dld.sl"
12266    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12267    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12268    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12269    soname_spec='$libname$release$shared_ext$major'
12270    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12271    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12272    ;;
12273  *)
12274    shrext_cmds='.sl'
12275    dynamic_linker="$host_os dld.sl"
12276    shlibpath_var=SHLIB_PATH
12277    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12278    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279    soname_spec='$libname$release$shared_ext$major'
12280    ;;
12281  esac
12282  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12283  postinstall_cmds='chmod 555 $lib'
12284  # or fails outright, so override atomically:
12285  install_override_mode=555
12286  ;;
12287
12288interix[3-9]*)
12289  version_type=linux # correct to gnu/linux during the next big refactor
12290  need_lib_prefix=no
12291  need_version=no
12292  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12293  soname_spec='$libname$release$shared_ext$major'
12294  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12295  shlibpath_var=LD_LIBRARY_PATH
12296  shlibpath_overrides_runpath=no
12297  hardcode_into_libs=yes
12298  ;;
12299
12300irix5* | irix6* | nonstopux*)
12301  case $host_os in
12302    nonstopux*) version_type=nonstopux ;;
12303    *)
12304	if test yes = "$lt_cv_prog_gnu_ld"; then
12305		version_type=linux # correct to gnu/linux during the next big refactor
12306	else
12307		version_type=irix
12308	fi ;;
12309  esac
12310  need_lib_prefix=no
12311  need_version=no
12312  soname_spec='$libname$release$shared_ext$major'
12313  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12314  case $host_os in
12315  irix5* | nonstopux*)
12316    libsuff= shlibsuff=
12317    ;;
12318  *)
12319    case $LD in # libtool.m4 will add one of these switches to LD
12320    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12321      libsuff= shlibsuff= libmagic=32-bit;;
12322    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12323      libsuff=32 shlibsuff=N32 libmagic=N32;;
12324    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12325      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12326    *) libsuff= shlibsuff= libmagic=never-match;;
12327    esac
12328    ;;
12329  esac
12330  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12331  shlibpath_overrides_runpath=no
12332  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12333  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12334  hardcode_into_libs=yes
12335  ;;
12336
12337# No shared lib support for Linux oldld, aout, or coff.
12338linux*oldld* | linux*aout* | linux*coff*)
12339  dynamic_linker=no
12340  ;;
12341
12342linux*android*)
12343  version_type=none # Android doesn't support versioned libraries.
12344  need_lib_prefix=no
12345  need_version=no
12346  library_names_spec='$libname$release$shared_ext'
12347  soname_spec='$libname$release$shared_ext'
12348  finish_cmds=
12349  shlibpath_var=LD_LIBRARY_PATH
12350  shlibpath_overrides_runpath=yes
12351
12352  # This implies no fast_install, which is unacceptable.
12353  # Some rework will be needed to allow for fast_install
12354  # before this can be enabled.
12355  hardcode_into_libs=yes
12356
12357  dynamic_linker='Android linker'
12358  # Don't embed -rpath directories since the linker doesn't support them.
12359  hardcode_libdir_flag_spec='-L$libdir'
12360  ;;
12361
12362# This must be glibc/ELF.
12363linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12364  version_type=linux # correct to gnu/linux during the next big refactor
12365  need_lib_prefix=no
12366  need_version=no
12367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368  soname_spec='$libname$release$shared_ext$major'
12369  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12370  shlibpath_var=LD_LIBRARY_PATH
12371  shlibpath_overrides_runpath=no
12372
12373  # Some binutils ld are patched to set DT_RUNPATH
12374  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12375  $as_echo_n "(cached) " >&6
12376else
12377  lt_cv_shlibpath_overrides_runpath=no
12378    save_LDFLAGS=$LDFLAGS
12379    save_libdir=$libdir
12380    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12381	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12382    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383/* end confdefs.h.  */
12384
12385int
12386main ()
12387{
12388
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"; then :
12394  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12395  lt_cv_shlibpath_overrides_runpath=yes
12396fi
12397fi
12398rm -f core conftest.err conftest.$ac_objext \
12399    conftest$ac_exeext conftest.$ac_ext
12400    LDFLAGS=$save_LDFLAGS
12401    libdir=$save_libdir
12402
12403fi
12404
12405  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12406
12407  # This implies no fast_install, which is unacceptable.
12408  # Some rework will be needed to allow for fast_install
12409  # before this can be enabled.
12410  hardcode_into_libs=yes
12411
12412  # Ideally, we could use ldconfig to report *all* directores which are
12413  # searched for libraries, however this is still not possible.  Aside from not
12414  # being certain /sbin/ldconfig is available, command
12415  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12416  # even though it is searched at run-time.  Try to do the best guess by
12417  # appending ld.so.conf contents (and includes) to the search path.
12418  if test -f /etc/ld.so.conf; then
12419    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' ' '`
12420    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12421  fi
12422
12423  # We used to test for /lib/ld.so.1 and disable shared libraries on
12424  # powerpc, because MkLinux only supported shared libraries with the
12425  # GNU dynamic linker.  Since this was broken with cross compilers,
12426  # most powerpc-linux boxes support dynamic linking these days and
12427  # people can always --disable-shared, the test was removed, and we
12428  # assume the GNU/Linux dynamic linker is in use.
12429  dynamic_linker='GNU/Linux ld.so'
12430  ;;
12431
12432netbsd*)
12433  version_type=sunos
12434  need_lib_prefix=no
12435  need_version=no
12436  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12437    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12438    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12439    dynamic_linker='NetBSD (a.out) ld.so'
12440  else
12441    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12442    soname_spec='$libname$release$shared_ext$major'
12443    dynamic_linker='NetBSD ld.elf_so'
12444  fi
12445  shlibpath_var=LD_LIBRARY_PATH
12446  shlibpath_overrides_runpath=yes
12447  hardcode_into_libs=yes
12448  ;;
12449
12450newsos6)
12451  version_type=linux # correct to gnu/linux during the next big refactor
12452  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12453  shlibpath_var=LD_LIBRARY_PATH
12454  shlibpath_overrides_runpath=yes
12455  ;;
12456
12457*nto* | *qnx*)
12458  version_type=qnx
12459  need_lib_prefix=no
12460  need_version=no
12461  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12462  soname_spec='$libname$release$shared_ext$major'
12463  shlibpath_var=LD_LIBRARY_PATH
12464  shlibpath_overrides_runpath=no
12465  hardcode_into_libs=yes
12466  dynamic_linker='ldqnx.so'
12467  ;;
12468
12469openbsd* | bitrig*)
12470  version_type=sunos
12471  sys_lib_dlsearch_path_spec=/usr/lib
12472  need_lib_prefix=no
12473  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12474    need_version=no
12475  else
12476    need_version=yes
12477  fi
12478  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12479  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12480  shlibpath_var=LD_LIBRARY_PATH
12481  shlibpath_overrides_runpath=yes
12482  ;;
12483
12484os2*)
12485  libname_spec='$name'
12486  version_type=windows
12487  shrext_cmds=.dll
12488  need_version=no
12489  need_lib_prefix=no
12490  # OS/2 can only load a DLL with a base name of 8 characters or less.
12491  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12492    v=$($ECHO $release$versuffix | tr -d .-);
12493    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12494    $ECHO $n$v`$shared_ext'
12495  library_names_spec='${libname}_dll.$libext'
12496  dynamic_linker='OS/2 ld.exe'
12497  shlibpath_var=BEGINLIBPATH
12498  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12499  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12500  postinstall_cmds='base_file=`basename \$file`~
12501    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12502    dldir=$destdir/`dirname \$dlpath`~
12503    test -d \$dldir || mkdir -p \$dldir~
12504    $install_prog $dir/$dlname \$dldir/$dlname~
12505    chmod a+x \$dldir/$dlname~
12506    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12507      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12508    fi'
12509  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12510    dlpath=$dir/\$dldll~
12511    $RM \$dlpath'
12512  ;;
12513
12514osf3* | osf4* | osf5*)
12515  version_type=osf
12516  need_lib_prefix=no
12517  need_version=no
12518  soname_spec='$libname$release$shared_ext$major'
12519  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12520  shlibpath_var=LD_LIBRARY_PATH
12521  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12522  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12523  ;;
12524
12525rdos*)
12526  dynamic_linker=no
12527  ;;
12528
12529solaris*)
12530  version_type=linux # correct to gnu/linux during the next big refactor
12531  need_lib_prefix=no
12532  need_version=no
12533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12534  soname_spec='$libname$release$shared_ext$major'
12535  shlibpath_var=LD_LIBRARY_PATH
12536  shlibpath_overrides_runpath=yes
12537  hardcode_into_libs=yes
12538  # ldd complains unless libraries are executable
12539  postinstall_cmds='chmod +x $lib'
12540  ;;
12541
12542sunos4*)
12543  version_type=sunos
12544  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12545  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12546  shlibpath_var=LD_LIBRARY_PATH
12547  shlibpath_overrides_runpath=yes
12548  if test yes = "$with_gnu_ld"; then
12549    need_lib_prefix=no
12550  fi
12551  need_version=yes
12552  ;;
12553
12554sysv4 | sysv4.3*)
12555  version_type=linux # correct to gnu/linux during the next big refactor
12556  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12557  soname_spec='$libname$release$shared_ext$major'
12558  shlibpath_var=LD_LIBRARY_PATH
12559  case $host_vendor in
12560    sni)
12561      shlibpath_overrides_runpath=no
12562      need_lib_prefix=no
12563      runpath_var=LD_RUN_PATH
12564      ;;
12565    siemens)
12566      need_lib_prefix=no
12567      ;;
12568    motorola)
12569      need_lib_prefix=no
12570      need_version=no
12571      shlibpath_overrides_runpath=no
12572      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12573      ;;
12574  esac
12575  ;;
12576
12577sysv4*MP*)
12578  if test -d /usr/nec; then
12579    version_type=linux # correct to gnu/linux during the next big refactor
12580    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12581    soname_spec='$libname$shared_ext.$major'
12582    shlibpath_var=LD_LIBRARY_PATH
12583  fi
12584  ;;
12585
12586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12587  version_type=sco
12588  need_lib_prefix=no
12589  need_version=no
12590  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12591  soname_spec='$libname$release$shared_ext$major'
12592  shlibpath_var=LD_LIBRARY_PATH
12593  shlibpath_overrides_runpath=yes
12594  hardcode_into_libs=yes
12595  if test yes = "$with_gnu_ld"; then
12596    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12597  else
12598    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12599    case $host_os in
12600      sco3.2v5*)
12601        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12602	;;
12603    esac
12604  fi
12605  sys_lib_dlsearch_path_spec='/usr/lib'
12606  ;;
12607
12608tpf*)
12609  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12610  version_type=linux # correct to gnu/linux during the next big refactor
12611  need_lib_prefix=no
12612  need_version=no
12613  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12614  shlibpath_var=LD_LIBRARY_PATH
12615  shlibpath_overrides_runpath=no
12616  hardcode_into_libs=yes
12617  ;;
12618
12619uts4*)
12620  version_type=linux # correct to gnu/linux during the next big refactor
12621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12622  soname_spec='$libname$release$shared_ext$major'
12623  shlibpath_var=LD_LIBRARY_PATH
12624  ;;
12625
12626*)
12627  dynamic_linker=no
12628  ;;
12629esac
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12631$as_echo "$dynamic_linker" >&6; }
12632test no = "$dynamic_linker" && can_build_shared=no
12633
12634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12635if test yes = "$GCC"; then
12636  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12637fi
12638
12639if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12640  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12641fi
12642
12643if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12644  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12645fi
12646
12647# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12648configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12649
12650# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12651func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12652
12653# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12654configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12753$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12754hardcode_action=
12755if test -n "$hardcode_libdir_flag_spec" ||
12756   test -n "$runpath_var" ||
12757   test yes = "$hardcode_automatic"; then
12758
12759  # We can hardcode non-existent directories.
12760  if test no != "$hardcode_direct" &&
12761     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12762     # have to relink, otherwise we might link with an installed library
12763     # when we should be linking with a yet-to-be-installed one
12764     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12765     test no != "$hardcode_minus_L"; then
12766    # Linking always hardcodes the temporary library directory.
12767    hardcode_action=relink
12768  else
12769    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12770    hardcode_action=immediate
12771  fi
12772else
12773  # We cannot hardcode anything, or else we can only hardcode existing
12774  # directories.
12775  hardcode_action=unsupported
12776fi
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12778$as_echo "$hardcode_action" >&6; }
12779
12780if test relink = "$hardcode_action" ||
12781   test yes = "$inherit_rpath"; then
12782  # Fast installation is not supported
12783  enable_fast_install=no
12784elif test yes = "$shlibpath_overrides_runpath" ||
12785     test no = "$enable_shared"; then
12786  # Fast installation is not necessary
12787  enable_fast_install=needless
12788fi
12789
12790
12791
12792
12793
12794
12795  if test yes != "$enable_dlopen"; then
12796  enable_dlopen=unknown
12797  enable_dlopen_self=unknown
12798  enable_dlopen_self_static=unknown
12799else
12800  lt_cv_dlopen=no
12801  lt_cv_dlopen_libs=
12802
12803  case $host_os in
12804  beos*)
12805    lt_cv_dlopen=load_add_on
12806    lt_cv_dlopen_libs=
12807    lt_cv_dlopen_self=yes
12808    ;;
12809
12810  mingw* | pw32* | cegcc*)
12811    lt_cv_dlopen=LoadLibrary
12812    lt_cv_dlopen_libs=
12813    ;;
12814
12815  cygwin*)
12816    lt_cv_dlopen=dlopen
12817    lt_cv_dlopen_libs=
12818    ;;
12819
12820  darwin*)
12821    # if libdl is installed we need to link against it
12822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12823$as_echo_n "checking for dlopen in -ldl... " >&6; }
12824if ${ac_cv_lib_dl_dlopen+:} false; then :
12825  $as_echo_n "(cached) " >&6
12826else
12827  ac_check_lib_save_LIBS=$LIBS
12828LIBS="-ldl  $LIBS"
12829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830/* end confdefs.h.  */
12831
12832/* Override any GCC internal prototype to avoid an error.
12833   Use char because int might match the return type of a GCC
12834   builtin and then its argument prototype would still apply.  */
12835#ifdef __cplusplus
12836extern "C"
12837#endif
12838char dlopen ();
12839int
12840main ()
12841{
12842return dlopen ();
12843  ;
12844  return 0;
12845}
12846_ACEOF
12847if ac_fn_c_try_link "$LINENO"; then :
12848  ac_cv_lib_dl_dlopen=yes
12849else
12850  ac_cv_lib_dl_dlopen=no
12851fi
12852rm -f core conftest.err conftest.$ac_objext \
12853    conftest$ac_exeext conftest.$ac_ext
12854LIBS=$ac_check_lib_save_LIBS
12855fi
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12857$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12858if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12859  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12860else
12861
12862    lt_cv_dlopen=dyld
12863    lt_cv_dlopen_libs=
12864    lt_cv_dlopen_self=yes
12865
12866fi
12867
12868    ;;
12869
12870  tpf*)
12871    # Don't try to run any link tests for TPF.  We know it's impossible
12872    # because TPF is a cross-compiler, and we know how we open DSOs.
12873    lt_cv_dlopen=dlopen
12874    lt_cv_dlopen_libs=
12875    lt_cv_dlopen_self=no
12876    ;;
12877
12878  *)
12879    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12880if test "x$ac_cv_func_shl_load" = xyes; then :
12881  lt_cv_dlopen=shl_load
12882else
12883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12884$as_echo_n "checking for shl_load in -ldld... " >&6; }
12885if ${ac_cv_lib_dld_shl_load+:} false; then :
12886  $as_echo_n "(cached) " >&6
12887else
12888  ac_check_lib_save_LIBS=$LIBS
12889LIBS="-ldld  $LIBS"
12890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891/* end confdefs.h.  */
12892
12893/* Override any GCC internal prototype to avoid an error.
12894   Use char because int might match the return type of a GCC
12895   builtin and then its argument prototype would still apply.  */
12896#ifdef __cplusplus
12897extern "C"
12898#endif
12899char shl_load ();
12900int
12901main ()
12902{
12903return shl_load ();
12904  ;
12905  return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_link "$LINENO"; then :
12909  ac_cv_lib_dld_shl_load=yes
12910else
12911  ac_cv_lib_dld_shl_load=no
12912fi
12913rm -f core conftest.err conftest.$ac_objext \
12914    conftest$ac_exeext conftest.$ac_ext
12915LIBS=$ac_check_lib_save_LIBS
12916fi
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12918$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12919if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12920  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12921else
12922  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12923if test "x$ac_cv_func_dlopen" = xyes; then :
12924  lt_cv_dlopen=dlopen
12925else
12926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12927$as_echo_n "checking for dlopen in -ldl... " >&6; }
12928if ${ac_cv_lib_dl_dlopen+:} false; then :
12929  $as_echo_n "(cached) " >&6
12930else
12931  ac_check_lib_save_LIBS=$LIBS
12932LIBS="-ldl  $LIBS"
12933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934/* end confdefs.h.  */
12935
12936/* Override any GCC internal prototype to avoid an error.
12937   Use char because int might match the return type of a GCC
12938   builtin and then its argument prototype would still apply.  */
12939#ifdef __cplusplus
12940extern "C"
12941#endif
12942char dlopen ();
12943int
12944main ()
12945{
12946return dlopen ();
12947  ;
12948  return 0;
12949}
12950_ACEOF
12951if ac_fn_c_try_link "$LINENO"; then :
12952  ac_cv_lib_dl_dlopen=yes
12953else
12954  ac_cv_lib_dl_dlopen=no
12955fi
12956rm -f core conftest.err conftest.$ac_objext \
12957    conftest$ac_exeext conftest.$ac_ext
12958LIBS=$ac_check_lib_save_LIBS
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12961$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12962if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12963  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12964else
12965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12966$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12967if ${ac_cv_lib_svld_dlopen+:} false; then :
12968  $as_echo_n "(cached) " >&6
12969else
12970  ac_check_lib_save_LIBS=$LIBS
12971LIBS="-lsvld  $LIBS"
12972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h.  */
12974
12975/* Override any GCC internal prototype to avoid an error.
12976   Use char because int might match the return type of a GCC
12977   builtin and then its argument prototype would still apply.  */
12978#ifdef __cplusplus
12979extern "C"
12980#endif
12981char dlopen ();
12982int
12983main ()
12984{
12985return dlopen ();
12986  ;
12987  return 0;
12988}
12989_ACEOF
12990if ac_fn_c_try_link "$LINENO"; then :
12991  ac_cv_lib_svld_dlopen=yes
12992else
12993  ac_cv_lib_svld_dlopen=no
12994fi
12995rm -f core conftest.err conftest.$ac_objext \
12996    conftest$ac_exeext conftest.$ac_ext
12997LIBS=$ac_check_lib_save_LIBS
12998fi
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13000$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13001if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13002  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13003else
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13005$as_echo_n "checking for dld_link in -ldld... " >&6; }
13006if ${ac_cv_lib_dld_dld_link+:} false; then :
13007  $as_echo_n "(cached) " >&6
13008else
13009  ac_check_lib_save_LIBS=$LIBS
13010LIBS="-ldld  $LIBS"
13011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012/* end confdefs.h.  */
13013
13014/* Override any GCC internal prototype to avoid an error.
13015   Use char because int might match the return type of a GCC
13016   builtin and then its argument prototype would still apply.  */
13017#ifdef __cplusplus
13018extern "C"
13019#endif
13020char dld_link ();
13021int
13022main ()
13023{
13024return dld_link ();
13025  ;
13026  return 0;
13027}
13028_ACEOF
13029if ac_fn_c_try_link "$LINENO"; then :
13030  ac_cv_lib_dld_dld_link=yes
13031else
13032  ac_cv_lib_dld_dld_link=no
13033fi
13034rm -f core conftest.err conftest.$ac_objext \
13035    conftest$ac_exeext conftest.$ac_ext
13036LIBS=$ac_check_lib_save_LIBS
13037fi
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13039$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13040if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13041  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13042fi
13043
13044
13045fi
13046
13047
13048fi
13049
13050
13051fi
13052
13053
13054fi
13055
13056
13057fi
13058
13059    ;;
13060  esac
13061
13062  if test no = "$lt_cv_dlopen"; then
13063    enable_dlopen=no
13064  else
13065    enable_dlopen=yes
13066  fi
13067
13068  case $lt_cv_dlopen in
13069  dlopen)
13070    save_CPPFLAGS=$CPPFLAGS
13071    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13072
13073    save_LDFLAGS=$LDFLAGS
13074    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13075
13076    save_LIBS=$LIBS
13077    LIBS="$lt_cv_dlopen_libs $LIBS"
13078
13079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13080$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13081if ${lt_cv_dlopen_self+:} false; then :
13082  $as_echo_n "(cached) " >&6
13083else
13084  	  if test yes = "$cross_compiling"; then :
13085  lt_cv_dlopen_self=cross
13086else
13087  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13088  lt_status=$lt_dlunknown
13089  cat > conftest.$ac_ext <<_LT_EOF
13090#line $LINENO "configure"
13091#include "confdefs.h"
13092
13093#if HAVE_DLFCN_H
13094#include <dlfcn.h>
13095#endif
13096
13097#include <stdio.h>
13098
13099#ifdef RTLD_GLOBAL
13100#  define LT_DLGLOBAL		RTLD_GLOBAL
13101#else
13102#  ifdef DL_GLOBAL
13103#    define LT_DLGLOBAL		DL_GLOBAL
13104#  else
13105#    define LT_DLGLOBAL		0
13106#  endif
13107#endif
13108
13109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13110   find out it does not work in some platform. */
13111#ifndef LT_DLLAZY_OR_NOW
13112#  ifdef RTLD_LAZY
13113#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13114#  else
13115#    ifdef DL_LAZY
13116#      define LT_DLLAZY_OR_NOW		DL_LAZY
13117#    else
13118#      ifdef RTLD_NOW
13119#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13120#      else
13121#        ifdef DL_NOW
13122#          define LT_DLLAZY_OR_NOW	DL_NOW
13123#        else
13124#          define LT_DLLAZY_OR_NOW	0
13125#        endif
13126#      endif
13127#    endif
13128#  endif
13129#endif
13130
13131/* When -fvisibility=hidden is used, assume the code has been annotated
13132   correspondingly for the symbols needed.  */
13133#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13134int fnord () __attribute__((visibility("default")));
13135#endif
13136
13137int fnord () { return 42; }
13138int main ()
13139{
13140  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13141  int status = $lt_dlunknown;
13142
13143  if (self)
13144    {
13145      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13146      else
13147        {
13148	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13149          else puts (dlerror ());
13150	}
13151      /* dlclose (self); */
13152    }
13153  else
13154    puts (dlerror ());
13155
13156  return status;
13157}
13158_LT_EOF
13159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13160  (eval $ac_link) 2>&5
13161  ac_status=$?
13162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13163  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13164    (./conftest; exit; ) >&5 2>/dev/null
13165    lt_status=$?
13166    case x$lt_status in
13167      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13168      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13169      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13170    esac
13171  else :
13172    # compilation failed
13173    lt_cv_dlopen_self=no
13174  fi
13175fi
13176rm -fr conftest*
13177
13178
13179fi
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13181$as_echo "$lt_cv_dlopen_self" >&6; }
13182
13183    if test yes = "$lt_cv_dlopen_self"; then
13184      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13185      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13186$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13187if ${lt_cv_dlopen_self_static+:} false; then :
13188  $as_echo_n "(cached) " >&6
13189else
13190  	  if test yes = "$cross_compiling"; then :
13191  lt_cv_dlopen_self_static=cross
13192else
13193  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13194  lt_status=$lt_dlunknown
13195  cat > conftest.$ac_ext <<_LT_EOF
13196#line $LINENO "configure"
13197#include "confdefs.h"
13198
13199#if HAVE_DLFCN_H
13200#include <dlfcn.h>
13201#endif
13202
13203#include <stdio.h>
13204
13205#ifdef RTLD_GLOBAL
13206#  define LT_DLGLOBAL		RTLD_GLOBAL
13207#else
13208#  ifdef DL_GLOBAL
13209#    define LT_DLGLOBAL		DL_GLOBAL
13210#  else
13211#    define LT_DLGLOBAL		0
13212#  endif
13213#endif
13214
13215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13216   find out it does not work in some platform. */
13217#ifndef LT_DLLAZY_OR_NOW
13218#  ifdef RTLD_LAZY
13219#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13220#  else
13221#    ifdef DL_LAZY
13222#      define LT_DLLAZY_OR_NOW		DL_LAZY
13223#    else
13224#      ifdef RTLD_NOW
13225#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13226#      else
13227#        ifdef DL_NOW
13228#          define LT_DLLAZY_OR_NOW	DL_NOW
13229#        else
13230#          define LT_DLLAZY_OR_NOW	0
13231#        endif
13232#      endif
13233#    endif
13234#  endif
13235#endif
13236
13237/* When -fvisibility=hidden is used, assume the code has been annotated
13238   correspondingly for the symbols needed.  */
13239#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13240int fnord () __attribute__((visibility("default")));
13241#endif
13242
13243int fnord () { return 42; }
13244int main ()
13245{
13246  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13247  int status = $lt_dlunknown;
13248
13249  if (self)
13250    {
13251      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13252      else
13253        {
13254	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13255          else puts (dlerror ());
13256	}
13257      /* dlclose (self); */
13258    }
13259  else
13260    puts (dlerror ());
13261
13262  return status;
13263}
13264_LT_EOF
13265  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13266  (eval $ac_link) 2>&5
13267  ac_status=$?
13268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13270    (./conftest; exit; ) >&5 2>/dev/null
13271    lt_status=$?
13272    case x$lt_status in
13273      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13274      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13275      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13276    esac
13277  else :
13278    # compilation failed
13279    lt_cv_dlopen_self_static=no
13280  fi
13281fi
13282rm -fr conftest*
13283
13284
13285fi
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13287$as_echo "$lt_cv_dlopen_self_static" >&6; }
13288    fi
13289
13290    CPPFLAGS=$save_CPPFLAGS
13291    LDFLAGS=$save_LDFLAGS
13292    LIBS=$save_LIBS
13293    ;;
13294  esac
13295
13296  case $lt_cv_dlopen_self in
13297  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13298  *) enable_dlopen_self=unknown ;;
13299  esac
13300
13301  case $lt_cv_dlopen_self_static in
13302  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13303  *) enable_dlopen_self_static=unknown ;;
13304  esac
13305fi
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323striplib=
13324old_striplib=
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13326$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13327if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13328  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13329  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13331$as_echo "yes" >&6; }
13332else
13333# FIXME - insert some real tests, host_os isn't really good enough
13334  case $host_os in
13335  darwin*)
13336    if test -n "$STRIP"; then
13337      striplib="$STRIP -x"
13338      old_striplib="$STRIP -S"
13339      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340$as_echo "yes" >&6; }
13341    else
13342      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
13344    fi
13345    ;;
13346  *)
13347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349    ;;
13350  esac
13351fi
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364  # Report what library types will actually be built
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13366$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13368$as_echo "$can_build_shared" >&6; }
13369
13370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13371$as_echo_n "checking whether to build shared libraries... " >&6; }
13372  test no = "$can_build_shared" && enable_shared=no
13373
13374  # On AIX, shared libraries and static libraries use the same namespace, and
13375  # are all built from PIC.
13376  case $host_os in
13377  aix3*)
13378    test yes = "$enable_shared" && enable_static=no
13379    if test -n "$RANLIB"; then
13380      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13381      postinstall_cmds='$RANLIB $lib'
13382    fi
13383    ;;
13384
13385  aix[4-9]*)
13386    if test ia64 != "$host_cpu"; then
13387      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13388      yes,aix,yes) ;;			# shared object as lib.so file only
13389      yes,svr4,*) ;;			# shared object as lib.so archive member only
13390      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13391      esac
13392    fi
13393    ;;
13394  esac
13395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13396$as_echo "$enable_shared" >&6; }
13397
13398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13399$as_echo_n "checking whether to build static libraries... " >&6; }
13400  # Make sure either enable_shared or enable_static is yes.
13401  test yes = "$enable_shared" || enable_static=yes
13402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13403$as_echo "$enable_static" >&6; }
13404
13405
13406
13407
13408fi
13409ac_ext=c
13410ac_cpp='$CPP $CPPFLAGS'
13411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13413ac_compiler_gnu=$ac_cv_c_compiler_gnu
13414
13415CC=$lt_save_CC
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431        ac_config_commands="$ac_config_commands libtool"
13432
13433
13434
13435
13436# Only expand once:
13437
13438
13439: ${CONFIG_LT=./config.lt}
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
13441$as_echo "$as_me: creating $CONFIG_LT" >&6;}
13442as_write_fail=0
13443cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
13444#! $SHELL
13445# Generated by $as_me.
13446# Run this file to recreate a libtool stub with the current configuration.
13447SHELL=\${CONFIG_SHELL-$SHELL}
13448export SHELL
13449_ASEOF
13450cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
13451## -------------------- ##
13452## M4sh Initialization. ##
13453## -------------------- ##
13454
13455# Be more Bourne compatible
13456DUALCASE=1; export DUALCASE # for MKS sh
13457if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13458  emulate sh
13459  NULLCMD=:
13460  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13461  # is contrary to our usage.  Disable this feature.
13462  alias -g '${1+"$@"}'='"$@"'
13463  setopt NO_GLOB_SUBST
13464else
13465  case `(set -o) 2>/dev/null` in #(
13466  *posix*) :
13467    set -o posix ;; #(
13468  *) :
13469     ;;
13470esac
13471fi
13472
13473
13474as_nl='
13475'
13476export as_nl
13477# Printing a long string crashes Solaris 7 /usr/bin/printf.
13478as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13479as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13480as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13481# Prefer a ksh shell builtin over an external printf program on Solaris,
13482# but without wasting forks for bash or zsh.
13483if test -z "$BASH_VERSION$ZSH_VERSION" \
13484    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13485  as_echo='print -r --'
13486  as_echo_n='print -rn --'
13487elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13488  as_echo='printf %s\n'
13489  as_echo_n='printf %s'
13490else
13491  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13492    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13493    as_echo_n='/usr/ucb/echo -n'
13494  else
13495    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13496    as_echo_n_body='eval
13497      arg=$1;
13498      case $arg in #(
13499      *"$as_nl"*)
13500	expr "X$arg" : "X\\(.*\\)$as_nl";
13501	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13502      esac;
13503      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13504    '
13505    export as_echo_n_body
13506    as_echo_n='sh -c $as_echo_n_body as_echo'
13507  fi
13508  export as_echo_body
13509  as_echo='sh -c $as_echo_body as_echo'
13510fi
13511
13512# The user is always right.
13513if test "${PATH_SEPARATOR+set}" != set; then
13514  PATH_SEPARATOR=:
13515  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13516    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13517      PATH_SEPARATOR=';'
13518  }
13519fi
13520
13521
13522# IFS
13523# We need space, tab and new line, in precisely that order.  Quoting is
13524# there to prevent editors from complaining about space-tab.
13525# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13526# splitting by setting IFS to empty value.)
13527IFS=" ""	$as_nl"
13528
13529# Find who we are.  Look in the path if we contain no directory separator.
13530as_myself=
13531case $0 in #((
13532  *[\\/]* ) as_myself=$0 ;;
13533  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534for as_dir in $PATH
13535do
13536  IFS=$as_save_IFS
13537  test -z "$as_dir" && as_dir=.
13538    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13539  done
13540IFS=$as_save_IFS
13541
13542     ;;
13543esac
13544# We did not find ourselves, most probably we were run as `sh COMMAND'
13545# in which case we are not to be found in the path.
13546if test "x$as_myself" = x; then
13547  as_myself=$0
13548fi
13549if test ! -f "$as_myself"; then
13550  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13551  exit 1
13552fi
13553
13554# Unset variables that we do not need and which cause bugs (e.g. in
13555# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13556# suppresses any "Segmentation fault" message there.  '((' could
13557# trigger a bug in pdksh 5.2.14.
13558for as_var in BASH_ENV ENV MAIL MAILPATH
13559do eval test x\${$as_var+set} = xset \
13560  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13561done
13562PS1='$ '
13563PS2='> '
13564PS4='+ '
13565
13566# NLS nuisances.
13567LC_ALL=C
13568export LC_ALL
13569LANGUAGE=C
13570export LANGUAGE
13571
13572# CDPATH.
13573(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13574
13575
13576# as_fn_error STATUS ERROR [LINENO LOG_FD]
13577# ----------------------------------------
13578# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13579# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13580# script with STATUS, using 1 if that was 0.
13581as_fn_error ()
13582{
13583  as_status=$1; test $as_status -eq 0 && as_status=1
13584  if test "$4"; then
13585    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13586    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13587  fi
13588  $as_echo "$as_me: error: $2" >&2
13589  as_fn_exit $as_status
13590} # as_fn_error
13591
13592
13593# as_fn_set_status STATUS
13594# -----------------------
13595# Set $? to STATUS, without forking.
13596as_fn_set_status ()
13597{
13598  return $1
13599} # as_fn_set_status
13600
13601# as_fn_exit STATUS
13602# -----------------
13603# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13604as_fn_exit ()
13605{
13606  set +e
13607  as_fn_set_status $1
13608  exit $1
13609} # as_fn_exit
13610
13611# as_fn_unset VAR
13612# ---------------
13613# Portably unset VAR.
13614as_fn_unset ()
13615{
13616  { eval $1=; unset $1;}
13617}
13618as_unset=as_fn_unset
13619# as_fn_append VAR VALUE
13620# ----------------------
13621# Append the text in VALUE to the end of the definition contained in VAR. Take
13622# advantage of any shell optimizations that allow amortized linear growth over
13623# repeated appends, instead of the typical quadratic growth present in naive
13624# implementations.
13625if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13626  eval 'as_fn_append ()
13627  {
13628    eval $1+=\$2
13629  }'
13630else
13631  as_fn_append ()
13632  {
13633    eval $1=\$$1\$2
13634  }
13635fi # as_fn_append
13636
13637# as_fn_arith ARG...
13638# ------------------
13639# Perform arithmetic evaluation on the ARGs, and store the result in the
13640# global $as_val. Take advantage of shells that can avoid forks. The arguments
13641# must be portable across $(()) and expr.
13642if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13643  eval 'as_fn_arith ()
13644  {
13645    as_val=$(( $* ))
13646  }'
13647else
13648  as_fn_arith ()
13649  {
13650    as_val=`expr "$@" || test $? -eq 1`
13651  }
13652fi # as_fn_arith
13653
13654
13655if expr a : '\(a\)' >/dev/null 2>&1 &&
13656   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13657  as_expr=expr
13658else
13659  as_expr=false
13660fi
13661
13662if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13663  as_basename=basename
13664else
13665  as_basename=false
13666fi
13667
13668if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13669  as_dirname=dirname
13670else
13671  as_dirname=false
13672fi
13673
13674as_me=`$as_basename -- "$0" ||
13675$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13676	 X"$0" : 'X\(//\)$' \| \
13677	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13678$as_echo X/"$0" |
13679    sed '/^.*\/\([^/][^/]*\)\/*$/{
13680	    s//\1/
13681	    q
13682	  }
13683	  /^X\/\(\/\/\)$/{
13684	    s//\1/
13685	    q
13686	  }
13687	  /^X\/\(\/\).*/{
13688	    s//\1/
13689	    q
13690	  }
13691	  s/.*/./; q'`
13692
13693# Avoid depending upon Character Ranges.
13694as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13695as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13696as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13697as_cr_digits='0123456789'
13698as_cr_alnum=$as_cr_Letters$as_cr_digits
13699
13700ECHO_C= ECHO_N= ECHO_T=
13701case `echo -n x` in #(((((
13702-n*)
13703  case `echo 'xy\c'` in
13704  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13705  xy)  ECHO_C='\c';;
13706  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13707       ECHO_T='	';;
13708  esac;;
13709*)
13710  ECHO_N='-n';;
13711esac
13712
13713rm -f conf$$ conf$$.exe conf$$.file
13714if test -d conf$$.dir; then
13715  rm -f conf$$.dir/conf$$.file
13716else
13717  rm -f conf$$.dir
13718  mkdir conf$$.dir 2>/dev/null
13719fi
13720if (echo >conf$$.file) 2>/dev/null; then
13721  if ln -s conf$$.file conf$$ 2>/dev/null; then
13722    as_ln_s='ln -s'
13723    # ... but there are two gotchas:
13724    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13725    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13726    # In both cases, we have to default to `cp -pR'.
13727    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13728      as_ln_s='cp -pR'
13729  elif ln conf$$.file conf$$ 2>/dev/null; then
13730    as_ln_s=ln
13731  else
13732    as_ln_s='cp -pR'
13733  fi
13734else
13735  as_ln_s='cp -pR'
13736fi
13737rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13738rmdir conf$$.dir 2>/dev/null
13739
13740
13741# as_fn_mkdir_p
13742# -------------
13743# Create "$as_dir" as a directory, including parents if necessary.
13744as_fn_mkdir_p ()
13745{
13746
13747  case $as_dir in #(
13748  -*) as_dir=./$as_dir;;
13749  esac
13750  test -d "$as_dir" || eval $as_mkdir_p || {
13751    as_dirs=
13752    while :; do
13753      case $as_dir in #(
13754      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13755      *) as_qdir=$as_dir;;
13756      esac
13757      as_dirs="'$as_qdir' $as_dirs"
13758      as_dir=`$as_dirname -- "$as_dir" ||
13759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760	 X"$as_dir" : 'X\(//\)[^/]' \| \
13761	 X"$as_dir" : 'X\(//\)$' \| \
13762	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13763$as_echo X"$as_dir" |
13764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13765	    s//\1/
13766	    q
13767	  }
13768	  /^X\(\/\/\)[^/].*/{
13769	    s//\1/
13770	    q
13771	  }
13772	  /^X\(\/\/\)$/{
13773	    s//\1/
13774	    q
13775	  }
13776	  /^X\(\/\).*/{
13777	    s//\1/
13778	    q
13779	  }
13780	  s/.*/./; q'`
13781      test -d "$as_dir" && break
13782    done
13783    test -z "$as_dirs" || eval "mkdir $as_dirs"
13784  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13785
13786
13787} # as_fn_mkdir_p
13788if mkdir -p . 2>/dev/null; then
13789  as_mkdir_p='mkdir -p "$as_dir"'
13790else
13791  test -d ./-p && rmdir ./-p
13792  as_mkdir_p=false
13793fi
13794
13795
13796# as_fn_executable_p FILE
13797# -----------------------
13798# Test if FILE is an executable regular file.
13799as_fn_executable_p ()
13800{
13801  test -f "$1" && test -x "$1"
13802} # as_fn_executable_p
13803as_test_x='test -x'
13804as_executable_p=as_fn_executable_p
13805
13806# Sed expression to map a string onto a valid CPP name.
13807as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13808
13809# Sed expression to map a string onto a valid variable name.
13810as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13811
13812
13813exec 6>&1
13814## --------------------------------- ##
13815## Main body of "$CONFIG_LT" script. ##
13816## --------------------------------- ##
13817_ASEOF
13818test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
13819
13820cat >>"$CONFIG_LT" <<\_LTEOF
13821lt_cl_silent=false
13822exec 5>>config.log
13823{
13824  echo
13825  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13826## Running $as_me. ##
13827_ASBOX
13828} >&5
13829
13830lt_cl_help="\
13831'$as_me' creates a local libtool stub from the current configuration,
13832for use in further configure time tests before the real libtool is
13833generated.
13834
13835Usage: $0 [OPTIONS]
13836
13837  -h, --help      print this help, then exit
13838  -V, --version   print version number, then exit
13839  -q, --quiet     do not print progress messages
13840  -d, --debug     don't remove temporary files
13841
13842Report bugs to <bug-libtool@gnu.org>."
13843
13844lt_cl_version="\
13845libfabric config.lt 1.10.1
13846configured by $0, generated by GNU Autoconf 2.69.
13847
13848Copyright (C) 2011 Free Software Foundation, Inc.
13849This config.lt script is free software; the Free Software Foundation
13850gives unlimited permision to copy, distribute and modify it."
13851
13852while test 0 != $#
13853do
13854  case $1 in
13855    --version | --v* | -V )
13856      echo "$lt_cl_version"; exit 0 ;;
13857    --help | --h* | -h )
13858      echo "$lt_cl_help"; exit 0 ;;
13859    --debug | --d* | -d )
13860      debug=: ;;
13861    --quiet | --q* | --silent | --s* | -q )
13862      lt_cl_silent=: ;;
13863
13864    -*) as_fn_error $? "unrecognized option: $1
13865Try '$0 --help' for more information." "$LINENO" 5 ;;
13866
13867    *) as_fn_error $? "unrecognized argument: $1
13868Try '$0 --help' for more information." "$LINENO" 5 ;;
13869  esac
13870  shift
13871done
13872
13873if $lt_cl_silent; then
13874  exec 6>/dev/null
13875fi
13876_LTEOF
13877
13878cat >>"$CONFIG_LT" <<_LTEOF
13879
13880
13881# The HP-UX ksh and POSIX shell print the target directory to stdout
13882# if CDPATH is set.
13883(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13884
13885sed_quote_subst='$sed_quote_subst'
13886double_quote_subst='$double_quote_subst'
13887delay_variable_subst='$delay_variable_subst'
13888macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13889macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13890enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13891enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13892pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13893enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13894shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13895SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13896ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13897PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13898host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13899host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13900host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13901build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13902build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13903build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13904SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13905Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13906GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13907EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13908FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13909LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13910NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13911LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13912max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13913ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13914exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13915lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13916lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13917lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13918lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13919lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13920reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13921reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13922OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13923deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13924file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13925file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13926want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13927DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13928sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13929AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13930AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13931archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13932STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13933RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13934old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13935old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13936old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13937lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13938CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13939CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13940compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13941GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13942lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13943lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13944lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13945lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13946lt_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"`'
13947lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13948nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13949lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13950lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13951objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13952MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13953lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13954lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13955lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13956lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13957lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13958need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13959MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13960DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13961NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13962LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13963OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13964OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13965libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13966shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13967extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13968archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13969enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13970export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13971whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13972compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13973old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13974old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13975archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13976archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13977module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13978module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13979with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13980allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13981no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13982hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13983hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13984hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13985hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13986hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13987hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13988hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13989inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13990link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13991always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13992export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13993exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13994include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13995prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13996postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13997file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13998variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13999need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14000need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14001version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14002runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14003shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14004shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14005libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14006library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14007soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14008install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14009postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14010postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14011finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14012finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14013hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14014sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14015configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14016configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14017hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14018enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14019enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14020enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14021old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14022striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14023
14024LTCC='$LTCC'
14025LTCFLAGS='$LTCFLAGS'
14026compiler='$compiler_DEFAULT'
14027
14028# A function that is used when there is no print builtin or printf.
14029func_fallback_echo ()
14030{
14031  eval 'cat <<_LTECHO_EOF
14032\$1
14033_LTECHO_EOF'
14034}
14035
14036# Quote evaled strings.
14037for var in SHELL \
14038ECHO \
14039PATH_SEPARATOR \
14040SED \
14041GREP \
14042EGREP \
14043FGREP \
14044LD \
14045NM \
14046LN_S \
14047lt_SP2NL \
14048lt_NL2SP \
14049reload_flag \
14050OBJDUMP \
14051deplibs_check_method \
14052file_magic_cmd \
14053file_magic_glob \
14054want_nocaseglob \
14055DLLTOOL \
14056sharedlib_from_linklib_cmd \
14057AR \
14058AR_FLAGS \
14059archiver_list_spec \
14060STRIP \
14061RANLIB \
14062CC \
14063CFLAGS \
14064compiler \
14065lt_cv_sys_global_symbol_pipe \
14066lt_cv_sys_global_symbol_to_cdecl \
14067lt_cv_sys_global_symbol_to_import \
14068lt_cv_sys_global_symbol_to_c_name_address \
14069lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14070lt_cv_nm_interface \
14071nm_file_list_spec \
14072lt_cv_truncate_bin \
14073lt_prog_compiler_no_builtin_flag \
14074lt_prog_compiler_pic \
14075lt_prog_compiler_wl \
14076lt_prog_compiler_static \
14077lt_cv_prog_compiler_c_o \
14078need_locks \
14079MANIFEST_TOOL \
14080DSYMUTIL \
14081NMEDIT \
14082LIPO \
14083OTOOL \
14084OTOOL64 \
14085shrext_cmds \
14086export_dynamic_flag_spec \
14087whole_archive_flag_spec \
14088compiler_needs_object \
14089with_gnu_ld \
14090allow_undefined_flag \
14091no_undefined_flag \
14092hardcode_libdir_flag_spec \
14093hardcode_libdir_separator \
14094exclude_expsyms \
14095include_expsyms \
14096file_list_spec \
14097variables_saved_for_relink \
14098libname_spec \
14099library_names_spec \
14100soname_spec \
14101install_override_mode \
14102finish_eval \
14103old_striplib \
14104striplib; do
14105    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14106    *[\\\\\\\`\\"\\\$]*)
14107      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14108      ;;
14109    *)
14110      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14111      ;;
14112    esac
14113done
14114
14115# Double-quote double-evaled strings.
14116for var in reload_cmds \
14117old_postinstall_cmds \
14118old_postuninstall_cmds \
14119old_archive_cmds \
14120extract_expsyms_cmds \
14121old_archive_from_new_cmds \
14122old_archive_from_expsyms_cmds \
14123archive_cmds \
14124archive_expsym_cmds \
14125module_cmds \
14126module_expsym_cmds \
14127export_symbols_cmds \
14128prelink_cmds \
14129postlink_cmds \
14130postinstall_cmds \
14131postuninstall_cmds \
14132finish_cmds \
14133sys_lib_search_path_spec \
14134configure_time_dlsearch_path \
14135configure_time_lt_sys_library_path; do
14136    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14137    *[\\\\\\\`\\"\\\$]*)
14138      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14139      ;;
14140    *)
14141      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14142      ;;
14143    esac
14144done
14145
14146ac_aux_dir='$ac_aux_dir'
14147
14148# See if we are running on zsh, and set the options that allow our
14149# commands through without removal of \ escapes INIT.
14150if test -n "\${ZSH_VERSION+set}"; then
14151   setopt NO_GLOB_SUBST
14152fi
14153
14154
14155    PACKAGE='$PACKAGE'
14156    VERSION='$VERSION'
14157    RM='$RM'
14158    ofile='$ofile'
14159
14160
14161
14162_LTEOF
14163
14164cat >>"$CONFIG_LT" <<\_LTEOF
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
14166$as_echo "$as_me: creating $ofile" >&6;}
14167
14168
14169    # See if we are running on zsh, and set the options that allow our
14170    # commands through without removal of \ escapes.
14171    if test -n "${ZSH_VERSION+set}"; then
14172      setopt NO_GLOB_SUBST
14173    fi
14174
14175    cfgfile=${ofile}T
14176    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14177    $RM "$cfgfile"
14178
14179    cat <<_LT_EOF >> "$cfgfile"
14180#! $SHELL
14181# Generated automatically by $as_me ($PACKAGE) $VERSION
14182# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14183# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14184
14185# Provide generalized library-building support services.
14186# Written by Gordon Matzigkeit, 1996
14187
14188# Copyright (C) 2014 Free Software Foundation, Inc.
14189# This is free software; see the source for copying conditions.  There is NO
14190# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14191
14192# GNU Libtool is free software; you can redistribute it and/or modify
14193# it under the terms of the GNU General Public License as published by
14194# the Free Software Foundation; either version 2 of of the License, or
14195# (at your option) any later version.
14196#
14197# As a special exception to the GNU General Public License, if you
14198# distribute this file as part of a program or library that is built
14199# using GNU Libtool, you may include this file under the  same
14200# distribution terms that you use for the rest of that program.
14201#
14202# GNU Libtool is distributed in the hope that it will be useful, but
14203# WITHOUT ANY WARRANTY; without even the implied warranty of
14204# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14205# GNU General Public License for more details.
14206#
14207# You should have received a copy of the GNU General Public License
14208# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14209
14210
14211# The names of the tagged configurations supported by this script.
14212available_tags=''
14213
14214# Configured defaults for sys_lib_dlsearch_path munging.
14215: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14216
14217# ### BEGIN LIBTOOL CONFIG
14218
14219# Which release of libtool.m4 was used?
14220macro_version=$macro_version
14221macro_revision=$macro_revision
14222
14223# Whether or not to build shared libraries.
14224build_libtool_libs=$enable_shared
14225
14226# Whether or not to build static libraries.
14227build_old_libs=$enable_static
14228
14229# What type of objects to build.
14230pic_mode=$pic_mode
14231
14232# Whether or not to optimize for fast installation.
14233fast_install=$enable_fast_install
14234
14235# Shared archive member basename,for filename based shared library versioning on AIX.
14236shared_archive_member_spec=$shared_archive_member_spec
14237
14238# Shell to use when invoking shell scripts.
14239SHELL=$lt_SHELL
14240
14241# An echo program that protects backslashes.
14242ECHO=$lt_ECHO
14243
14244# The PATH separator for the build system.
14245PATH_SEPARATOR=$lt_PATH_SEPARATOR
14246
14247# The host system.
14248host_alias=$host_alias
14249host=$host
14250host_os=$host_os
14251
14252# The build system.
14253build_alias=$build_alias
14254build=$build
14255build_os=$build_os
14256
14257# A sed program that does not truncate output.
14258SED=$lt_SED
14259
14260# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14261Xsed="\$SED -e 1s/^X//"
14262
14263# A grep program that handles long lines.
14264GREP=$lt_GREP
14265
14266# An ERE matcher.
14267EGREP=$lt_EGREP
14268
14269# A literal string matcher.
14270FGREP=$lt_FGREP
14271
14272# A BSD- or MS-compatible name lister.
14273NM=$lt_NM
14274
14275# Whether we need soft or hard links.
14276LN_S=$lt_LN_S
14277
14278# What is the maximum length of a command?
14279max_cmd_len=$max_cmd_len
14280
14281# Object file suffix (normally "o").
14282objext=$ac_objext
14283
14284# Executable file suffix (normally "").
14285exeext=$exeext
14286
14287# whether the shell understands "unset".
14288lt_unset=$lt_unset
14289
14290# turn spaces into newlines.
14291SP2NL=$lt_lt_SP2NL
14292
14293# turn newlines into spaces.
14294NL2SP=$lt_lt_NL2SP
14295
14296# convert \$build file names to \$host format.
14297to_host_file_cmd=$lt_cv_to_host_file_cmd
14298
14299# convert \$build files to toolchain format.
14300to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14301
14302# An object symbol dumper.
14303OBJDUMP=$lt_OBJDUMP
14304
14305# Method to check whether dependent libraries are shared objects.
14306deplibs_check_method=$lt_deplibs_check_method
14307
14308# Command to use when deplibs_check_method = "file_magic".
14309file_magic_cmd=$lt_file_magic_cmd
14310
14311# How to find potential files when deplibs_check_method = "file_magic".
14312file_magic_glob=$lt_file_magic_glob
14313
14314# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14315want_nocaseglob=$lt_want_nocaseglob
14316
14317# DLL creation program.
14318DLLTOOL=$lt_DLLTOOL
14319
14320# Command to associate shared and link libraries.
14321sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14322
14323# The archiver.
14324AR=$lt_AR
14325
14326# Flags to create an archive.
14327AR_FLAGS=$lt_AR_FLAGS
14328
14329# How to feed a file listing to the archiver.
14330archiver_list_spec=$lt_archiver_list_spec
14331
14332# A symbol stripping program.
14333STRIP=$lt_STRIP
14334
14335# Commands used to install an old-style archive.
14336RANLIB=$lt_RANLIB
14337old_postinstall_cmds=$lt_old_postinstall_cmds
14338old_postuninstall_cmds=$lt_old_postuninstall_cmds
14339
14340# Whether to use a lock for old archive extraction.
14341lock_old_archive_extraction=$lock_old_archive_extraction
14342
14343# A C compiler.
14344LTCC=$lt_CC
14345
14346# LTCC compiler flags.
14347LTCFLAGS=$lt_CFLAGS
14348
14349# Take the output of nm and produce a listing of raw symbols and C names.
14350global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14351
14352# Transform the output of nm in a proper C declaration.
14353global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14354
14355# Transform the output of nm into a list of symbols to manually relocate.
14356global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14357
14358# Transform the output of nm in a C name address pair.
14359global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14360
14361# Transform the output of nm in a C name address pair when lib prefix is needed.
14362global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14363
14364# The name lister interface.
14365nm_interface=$lt_lt_cv_nm_interface
14366
14367# Specify filename containing input files for \$NM.
14368nm_file_list_spec=$lt_nm_file_list_spec
14369
14370# The root where to search for dependent libraries,and where our libraries should be installed.
14371lt_sysroot=$lt_sysroot
14372
14373# Command to truncate a binary pipe.
14374lt_truncate_bin=$lt_lt_cv_truncate_bin
14375
14376# The name of the directory that contains temporary libtool files.
14377objdir=$objdir
14378
14379# Used to examine libraries when file_magic_cmd begins with "file".
14380MAGIC_CMD=$MAGIC_CMD
14381
14382# Must we lock files when doing compilation?
14383need_locks=$lt_need_locks
14384
14385# Manifest tool.
14386MANIFEST_TOOL=$lt_MANIFEST_TOOL
14387
14388# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14389DSYMUTIL=$lt_DSYMUTIL
14390
14391# Tool to change global to local symbols on Mac OS X.
14392NMEDIT=$lt_NMEDIT
14393
14394# Tool to manipulate fat objects and archives on Mac OS X.
14395LIPO=$lt_LIPO
14396
14397# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14398OTOOL=$lt_OTOOL
14399
14400# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14401OTOOL64=$lt_OTOOL64
14402
14403# Old archive suffix (normally "a").
14404libext=$libext
14405
14406# Shared library suffix (normally ".so").
14407shrext_cmds=$lt_shrext_cmds
14408
14409# The commands to extract the exported symbol list from a shared archive.
14410extract_expsyms_cmds=$lt_extract_expsyms_cmds
14411
14412# Variables whose values should be saved in libtool wrapper scripts and
14413# restored at link time.
14414variables_saved_for_relink=$lt_variables_saved_for_relink
14415
14416# Do we need the "lib" prefix for modules?
14417need_lib_prefix=$need_lib_prefix
14418
14419# Do we need a version for libraries?
14420need_version=$need_version
14421
14422# Library versioning type.
14423version_type=$version_type
14424
14425# Shared library runtime path variable.
14426runpath_var=$runpath_var
14427
14428# Shared library path variable.
14429shlibpath_var=$shlibpath_var
14430
14431# Is shlibpath searched before the hard-coded library search path?
14432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14433
14434# Format of library name prefix.
14435libname_spec=$lt_libname_spec
14436
14437# List of archive names.  First name is the real one, the rest are links.
14438# The last name is the one that the linker finds with -lNAME
14439library_names_spec=$lt_library_names_spec
14440
14441# The coded name of the library, if different from the real name.
14442soname_spec=$lt_soname_spec
14443
14444# Permission mode override for installation of shared libraries.
14445install_override_mode=$lt_install_override_mode
14446
14447# Command to use after installation of a shared archive.
14448postinstall_cmds=$lt_postinstall_cmds
14449
14450# Command to use after uninstallation of a shared archive.
14451postuninstall_cmds=$lt_postuninstall_cmds
14452
14453# Commands used to finish a libtool library installation in a directory.
14454finish_cmds=$lt_finish_cmds
14455
14456# As "finish_cmds", except a single script fragment to be evaled but
14457# not shown.
14458finish_eval=$lt_finish_eval
14459
14460# Whether we should hardcode library paths into libraries.
14461hardcode_into_libs=$hardcode_into_libs
14462
14463# Compile-time system search path for libraries.
14464sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14465
14466# Detected run-time system search path for libraries.
14467sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14468
14469# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14470configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14471
14472# Whether dlopen is supported.
14473dlopen_support=$enable_dlopen
14474
14475# Whether dlopen of programs is supported.
14476dlopen_self=$enable_dlopen_self
14477
14478# Whether dlopen of statically linked programs is supported.
14479dlopen_self_static=$enable_dlopen_self_static
14480
14481# Commands to strip libraries.
14482old_striplib=$lt_old_striplib
14483striplib=$lt_striplib
14484
14485
14486# The linker used to build libraries.
14487LD=$lt_LD
14488
14489# How to create reloadable object files.
14490reload_flag=$lt_reload_flag
14491reload_cmds=$lt_reload_cmds
14492
14493# Commands used to build an old-style archive.
14494old_archive_cmds=$lt_old_archive_cmds
14495
14496# A language specific compiler.
14497CC=$lt_compiler
14498
14499# Is the compiler the GNU compiler?
14500with_gcc=$GCC
14501
14502# Compiler flag to turn off builtin functions.
14503no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14504
14505# Additional compiler flags for building library objects.
14506pic_flag=$lt_lt_prog_compiler_pic
14507
14508# How to pass a linker flag through the compiler.
14509wl=$lt_lt_prog_compiler_wl
14510
14511# Compiler flag to prevent dynamic linking.
14512link_static_flag=$lt_lt_prog_compiler_static
14513
14514# Does compiler simultaneously support -c and -o options?
14515compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14516
14517# Whether or not to add -lc for building shared libraries.
14518build_libtool_need_lc=$archive_cmds_need_lc
14519
14520# Whether or not to disallow shared libs when runtime libs are static.
14521allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14522
14523# Compiler flag to allow reflexive dlopens.
14524export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14525
14526# Compiler flag to generate shared objects directly from archives.
14527whole_archive_flag_spec=$lt_whole_archive_flag_spec
14528
14529# Whether the compiler copes with passing no objects directly.
14530compiler_needs_object=$lt_compiler_needs_object
14531
14532# Create an old-style archive from a shared archive.
14533old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14534
14535# Create a temporary old-style archive to link instead of a shared archive.
14536old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14537
14538# Commands used to build a shared archive.
14539archive_cmds=$lt_archive_cmds
14540archive_expsym_cmds=$lt_archive_expsym_cmds
14541
14542# Commands used to build a loadable module if different from building
14543# a shared archive.
14544module_cmds=$lt_module_cmds
14545module_expsym_cmds=$lt_module_expsym_cmds
14546
14547# Whether we are building with GNU ld or not.
14548with_gnu_ld=$lt_with_gnu_ld
14549
14550# Flag that allows shared libraries with undefined symbols to be built.
14551allow_undefined_flag=$lt_allow_undefined_flag
14552
14553# Flag that enforces no undefined symbols.
14554no_undefined_flag=$lt_no_undefined_flag
14555
14556# Flag to hardcode \$libdir into a binary during linking.
14557# This must work even if \$libdir does not exist
14558hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14559
14560# Whether we need a single "-rpath" flag with a separated argument.
14561hardcode_libdir_separator=$lt_hardcode_libdir_separator
14562
14563# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14564# DIR into the resulting binary.
14565hardcode_direct=$hardcode_direct
14566
14567# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14568# DIR into the resulting binary and the resulting library dependency is
14569# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14570# library is relocated.
14571hardcode_direct_absolute=$hardcode_direct_absolute
14572
14573# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14574# into the resulting binary.
14575hardcode_minus_L=$hardcode_minus_L
14576
14577# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14578# into the resulting binary.
14579hardcode_shlibpath_var=$hardcode_shlibpath_var
14580
14581# Set to "yes" if building a shared library automatically hardcodes DIR
14582# into the library and all subsequent libraries and executables linked
14583# against it.
14584hardcode_automatic=$hardcode_automatic
14585
14586# Set to yes if linker adds runtime paths of dependent libraries
14587# to runtime path list.
14588inherit_rpath=$inherit_rpath
14589
14590# Whether libtool must link a program against all its dependency libraries.
14591link_all_deplibs=$link_all_deplibs
14592
14593# Set to "yes" if exported symbols are required.
14594always_export_symbols=$always_export_symbols
14595
14596# The commands to list exported symbols.
14597export_symbols_cmds=$lt_export_symbols_cmds
14598
14599# Symbols that should not be listed in the preloaded symbols.
14600exclude_expsyms=$lt_exclude_expsyms
14601
14602# Symbols that must always be exported.
14603include_expsyms=$lt_include_expsyms
14604
14605# Commands necessary for linking programs (against libraries) with templates.
14606prelink_cmds=$lt_prelink_cmds
14607
14608# Commands necessary for finishing linking programs.
14609postlink_cmds=$lt_postlink_cmds
14610
14611# Specify filename containing input files.
14612file_list_spec=$lt_file_list_spec
14613
14614# How to hardcode a shared library path into an executable.
14615hardcode_action=$hardcode_action
14616
14617# ### END LIBTOOL CONFIG
14618
14619_LT_EOF
14620
14621    cat <<'_LT_EOF' >> "$cfgfile"
14622
14623# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14624
14625# func_munge_path_list VARIABLE PATH
14626# -----------------------------------
14627# VARIABLE is name of variable containing _space_ separated list of
14628# directories to be munged by the contents of PATH, which is string
14629# having a format:
14630# "DIR[:DIR]:"
14631#       string "DIR[ DIR]" will be prepended to VARIABLE
14632# ":DIR[:DIR]"
14633#       string "DIR[ DIR]" will be appended to VARIABLE
14634# "DIRP[:DIRP]::[DIRA:]DIRA"
14635#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14636#       "DIRA[ DIRA]" will be appended to VARIABLE
14637# "DIR[:DIR]"
14638#       VARIABLE will be replaced by "DIR[ DIR]"
14639func_munge_path_list ()
14640{
14641    case x$2 in
14642    x)
14643        ;;
14644    *:)
14645        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14646        ;;
14647    x:*)
14648        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14649        ;;
14650    *::*)
14651        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14652        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14653        ;;
14654    *)
14655        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14656        ;;
14657    esac
14658}
14659
14660
14661# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14662func_cc_basename ()
14663{
14664    for cc_temp in $*""; do
14665      case $cc_temp in
14666        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14667        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14668        \-*) ;;
14669        *) break;;
14670      esac
14671    done
14672    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14673}
14674
14675
14676# ### END FUNCTIONS SHARED WITH CONFIGURE
14677
14678_LT_EOF
14679
14680  case $host_os in
14681  aix3*)
14682    cat <<\_LT_EOF >> "$cfgfile"
14683# AIX sometimes has problems with the GCC collect2 program.  For some
14684# reason, if we set the COLLECT_NAMES environment variable, the problems
14685# vanish in a puff of smoke.
14686if test set != "${COLLECT_NAMES+set}"; then
14687  COLLECT_NAMES=
14688  export COLLECT_NAMES
14689fi
14690_LT_EOF
14691    ;;
14692  esac
14693
14694
14695ltmain=$ac_aux_dir/ltmain.sh
14696
14697
14698  # We use sed instead of cat because bash on DJGPP gets confused if
14699  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14700  # text mode, it properly converts lines to CR/LF.  This bash problem
14701  # is reportedly fixed, but why not run on old versions too?
14702  sed '$q' "$ltmain" >> "$cfgfile" \
14703     || (rm -f "$cfgfile"; exit 1)
14704
14705   mv -f "$cfgfile" "$ofile" ||
14706    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14707  chmod +x "$ofile"
14708
14709
14710as_fn_exit 0
14711_LTEOF
14712chmod +x "$CONFIG_LT"
14713
14714# configure is writing to config.log, but config.lt does its own redirection,
14715# appending to config.log, which fails on DOS, as config.log is still kept
14716# open by configure.  Here we exec the FD to /dev/null, effectively closing
14717# config.log, so it can be properly (re)opened and appended to by config.lt.
14718lt_cl_success=:
14719test yes = "$silent" &&
14720  lt_config_lt_args="$lt_config_lt_args --quiet"
14721exec 5>/dev/null
14722$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
14723exec 5>>config.log
14724$lt_cl_success || as_fn_exit 1
14725
14726
14727
14728# Check whether --with-dlopen was given.
14729if test "${with_dlopen+set}" = set; then :
14730  withval=$with_dlopen;
14731fi
14732
14733
14734if test "$freebsd" == "0"; then
14735if test x"$with_dlopen" != x"no"; then :
14736
14737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14738$as_echo_n "checking for dlopen in -ldl... " >&6; }
14739if ${ac_cv_lib_dl_dlopen+:} false; then :
14740  $as_echo_n "(cached) " >&6
14741else
14742  ac_check_lib_save_LIBS=$LIBS
14743LIBS="-ldl  $LIBS"
14744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745/* end confdefs.h.  */
14746
14747/* Override any GCC internal prototype to avoid an error.
14748   Use char because int might match the return type of a GCC
14749   builtin and then its argument prototype would still apply.  */
14750#ifdef __cplusplus
14751extern "C"
14752#endif
14753char dlopen ();
14754int
14755main ()
14756{
14757return dlopen ();
14758  ;
14759  return 0;
14760}
14761_ACEOF
14762if ac_fn_c_try_link "$LINENO"; then :
14763  ac_cv_lib_dl_dlopen=yes
14764else
14765  ac_cv_lib_dl_dlopen=no
14766fi
14767rm -f core conftest.err conftest.$ac_objext \
14768    conftest$ac_exeext conftest.$ac_ext
14769LIBS=$ac_check_lib_save_LIBS
14770fi
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14772$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14773if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14774  cat >>confdefs.h <<_ACEOF
14775#define HAVE_LIBDL 1
14776_ACEOF
14777
14778  LIBS="-ldl $LIBS"
14779
14780else
14781  as_fn_error $? "dlopen not found.  libfabric requires libdl." "$LINENO" 5
14782fi
14783
14784
14785fi
14786fi
14787
14788# Check whether --enable-picky was given.
14789if test "${enable_picky+set}" = set; then :
14790  enableval=$enable_picky;
14791fi
14792
14793if test x"$enable_picky" = x"yes" && test x"$GCC" = x"yes"; then :
14794  if test x"$enable_debug" = x"no"; then :
14795  CFLAGS="${base_c_warn_flags} ${debug_c_warn_flags}
14796		      ${debug_c_other_flags} ${picky_c_warn_flags} $CFLAGS"
14797else
14798  CFLAGS="${picky_c_warn_flags} $CFLAGS"
14799fi
14800
14801fi
14802
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
14804$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
14805if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
14806  $as_echo_n "(cached) " >&6
14807else
14808  ac_check_lib_save_LIBS=$LIBS
14809LIBS="-lpthread  $LIBS"
14810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811/* end confdefs.h.  */
14812
14813/* Override any GCC internal prototype to avoid an error.
14814   Use char because int might match the return type of a GCC
14815   builtin and then its argument prototype would still apply.  */
14816#ifdef __cplusplus
14817extern "C"
14818#endif
14819char pthread_mutex_init ();
14820int
14821main ()
14822{
14823return pthread_mutex_init ();
14824  ;
14825  return 0;
14826}
14827_ACEOF
14828if ac_fn_c_try_link "$LINENO"; then :
14829  ac_cv_lib_pthread_pthread_mutex_init=yes
14830else
14831  ac_cv_lib_pthread_pthread_mutex_init=no
14832fi
14833rm -f core conftest.err conftest.$ac_objext \
14834    conftest$ac_exeext conftest.$ac_ext
14835LIBS=$ac_check_lib_save_LIBS
14836fi
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14838$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14839if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
14840  cat >>confdefs.h <<_ACEOF
14841#define HAVE_LIBPTHREAD 1
14842_ACEOF
14843
14844  LIBS="-lpthread $LIBS"
14845
14846else
14847  as_fn_error $? "pthread_mutex_init() not found.  libfabric requires libpthread." "$LINENO" 5
14848fi
14849
14850
14851ac_fn_c_check_func "$LINENO" "pthread_spin_init" "ac_cv_func_pthread_spin_init"
14852if test "x$ac_cv_func_pthread_spin_init" = xyes; then :
14853  have_spinlock=1
14854else
14855  have_spinlock=0
14856fi
14857
14858
14859
14860if test "$macos" -eq 0; then
14861ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
14862if test "x$ac_cv_func_shm_open" = xyes; then :
14863
14864else
14865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
14866$as_echo_n "checking for library containing shm_open... " >&6; }
14867if ${ac_cv_search_shm_open+:} false; then :
14868  $as_echo_n "(cached) " >&6
14869else
14870  ac_func_search_save_LIBS=$LIBS
14871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872/* end confdefs.h.  */
14873
14874/* Override any GCC internal prototype to avoid an error.
14875   Use char because int might match the return type of a GCC
14876   builtin and then its argument prototype would still apply.  */
14877#ifdef __cplusplus
14878extern "C"
14879#endif
14880char shm_open ();
14881int
14882main ()
14883{
14884return shm_open ();
14885  ;
14886  return 0;
14887}
14888_ACEOF
14889for ac_lib in '' rt; do
14890  if test -z "$ac_lib"; then
14891    ac_res="none required"
14892  else
14893    ac_res=-l$ac_lib
14894    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14895  fi
14896  if ac_fn_c_try_link "$LINENO"; then :
14897  ac_cv_search_shm_open=$ac_res
14898fi
14899rm -f core conftest.err conftest.$ac_objext \
14900    conftest$ac_exeext
14901  if ${ac_cv_search_shm_open+:} false; then :
14902  break
14903fi
14904done
14905if ${ac_cv_search_shm_open+:} false; then :
14906
14907else
14908  ac_cv_search_shm_open=no
14909fi
14910rm conftest.$ac_ext
14911LIBS=$ac_func_search_save_LIBS
14912fi
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
14914$as_echo "$ac_cv_search_shm_open" >&6; }
14915ac_res=$ac_cv_search_shm_open
14916if test "$ac_res" != no; then :
14917  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14918
14919else
14920  as_fn_error $? "shm_open() not found.  libfabric requires shm_open." "$LINENO" 5
14921fi
14922
14923fi
14924
14925fi
14926
14927
14928cat >>confdefs.h <<_ACEOF
14929#define PT_LOCK_SPIN $have_spinlock
14930_ACEOF
14931
14932
14933# Check whether --enable-epoll was given.
14934if test "${enable_epoll+set}" = set; then :
14935  enableval=$enable_epoll;
14936else
14937  enable_epoll=auto
14938
14939fi
14940
14941
14942if test x"$enable_epoll" != x"no"; then :
14943  for ac_func in epoll_create
14944do :
14945  ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
14946if test "x$ac_cv_func_epoll_create" = xyes; then :
14947  cat >>confdefs.h <<_ACEOF
14948#define HAVE_EPOLL_CREATE 1
14949_ACEOF
14950
14951fi
14952done
14953
14954     if test "$ac_cv_func_epoll_create" = yes; then
14955
14956$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14957
14958     fi
14959
14960fi
14961
14962ac_fn_c_check_header_mongrel "$LINENO" "linux/perf_event.h" "ac_cv_header_linux_perf_event_h" "$ac_includes_default"
14963if test "x$ac_cv_header_linux_perf_event_h" = xyes; then :
14964  ac_fn_c_check_decl "$LINENO" "__builtin_ia32_rdpmc" "ac_cv_have_decl___builtin_ia32_rdpmc" "#include <linux/perf_event.h>
14965"
14966if test "x$ac_cv_have_decl___builtin_ia32_rdpmc" = xyes; then :
14967
14968            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969/* end confdefs.h.  */
14970#include <linux/perf_event.h>
14971int
14972main ()
14973{
14974__builtin_ia32_rdpmc(0);
14975  ;
14976  return 0;
14977}
14978_ACEOF
14979if ac_fn_c_try_link "$LINENO"; then :
14980  linux_perf_rdpmc=1
14981else
14982  linux_perf_rdpmc=0
14983fi
14984rm -f core conftest.err conftest.$ac_objext \
14985    conftest$ac_exeext conftest.$ac_ext
14986
14987else
14988  linux_perf_rdpmc=0
14989fi
14990
14991else
14992  linux_perf_rdpmc=0
14993fi
14994
14995
14996
14997cat >>confdefs.h <<_ACEOF
14998#define HAVE_LINUX_PERF_RDPMC $linux_perf_rdpmc
14999_ACEOF
15000
15001 if test "x$linux_perf_rdpmc" = "x1"; then
15002  HAVE_LINUX_PERF_RDPMC_TRUE=
15003  HAVE_LINUX_PERF_RDPMC_FALSE='#'
15004else
15005  HAVE_LINUX_PERF_RDPMC_TRUE='#'
15006  HAVE_LINUX_PERF_RDPMC_FALSE=
15007fi
15008
15009
15010if test x"$enable_atomics" != x"no"; then :
15011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for c11 atomics" >&5
15012$as_echo_n "checking compiler support for c11 atomics... " >&6; }
15013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014/* end confdefs.h.  */
15015#include <stdatomic.h>
15016int
15017main ()
15018{
15019atomic_int a;
15020         atomic_init(&a, 0);
15021         #ifdef __STDC_NO_ATOMICS__
15022           #error c11 atomics are not supported
15023         #else
15024           return 0;
15025         #endif
15026
15027  ;
15028  return 0;
15029}
15030_ACEOF
15031if ac_fn_c_try_link "$LINENO"; then :
15032
15033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15034$as_echo "yes" >&6; }
15035
15036$as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
15037
15038
15039else
15040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041$as_echo "no" >&6; }
15042fi
15043rm -f core conftest.err conftest.$ac_objext \
15044    conftest$ac_exeext conftest.$ac_ext
15045
15046
15047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for c11 atomic \`least\` types" >&5
15048$as_echo_n "checking compiler support for c11 atomic \`least\` types... " >&6; }
15049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h.  */
15051#include <stdatomic.h>
15052int
15053main ()
15054{
15055atomic_int_least32_t a;
15056         atomic_int_least64_t b;
15057
15058  ;
15059  return 0;
15060}
15061_ACEOF
15062if ac_fn_c_try_link "$LINENO"; then :
15063
15064            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15065$as_echo "yes" >&6; }
15066
15067$as_echo "#define HAVE_ATOMICS_LEAST_TYPES 1" >>confdefs.h
15068
15069
15070else
15071
15072            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073$as_echo "no" >&6; }
15074
15075fi
15076rm -f core conftest.err conftest.$ac_objext \
15077    conftest$ac_exeext conftest.$ac_ext
15078else
15079
15080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: configure: atomics support for c11 is disabled" >&5
15081$as_echo "configure: atomics support for c11 is disabled" >&6; }
15082
15083fi
15084
15085if test x"$enable_atomics" != x"no"; then :
15086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for built-in atomics" >&5
15087$as_echo_n "checking compiler support for built-in atomics... " >&6; }
15088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089/* end confdefs.h.  */
15090#include <stdint.h>
15091int
15092main ()
15093{
15094int32_t a;
15095         __sync_add_and_fetch(&a, 0);
15096         __sync_sub_and_fetch(&a, 0);
15097         #if defined(__PPC__) && !defined(__PPC64__)
15098           #error compiler built-in atomics are not supported on PowerPC 32-bit
15099         #else
15100           return 0;
15101         #endif
15102
15103  ;
15104  return 0;
15105}
15106_ACEOF
15107if ac_fn_c_try_link "$LINENO"; then :
15108
15109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15110$as_echo "yes" >&6; }
15111
15112$as_echo "#define HAVE_BUILTIN_ATOMICS 1" >>confdefs.h
15113
15114
15115else
15116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117$as_echo "no" >&6; }
15118fi
15119rm -f core conftest.err conftest.$ac_objext \
15120    conftest$ac_exeext conftest.$ac_ext
15121else
15122
15123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: configure: atomics support built-in is disabled" >&5
15124$as_echo "configure: atomics support built-in is disabled" >&6; }
15125
15126fi
15127
15128LIBS_save=$LIBS
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __atomic_load_8" >&5
15130$as_echo_n "checking for library containing __atomic_load_8... " >&6; }
15131if ${ac_cv_search___atomic_load_8+:} false; then :
15132  $as_echo_n "(cached) " >&6
15133else
15134  ac_func_search_save_LIBS=$LIBS
15135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136/* end confdefs.h.  */
15137
15138/* Override any GCC internal prototype to avoid an error.
15139   Use char because int might match the return type of a GCC
15140   builtin and then its argument prototype would still apply.  */
15141#ifdef __cplusplus
15142extern "C"
15143#endif
15144char __atomic_load_8 ();
15145int
15146main ()
15147{
15148return __atomic_load_8 ();
15149  ;
15150  return 0;
15151}
15152_ACEOF
15153for ac_lib in '' atomic; do
15154  if test -z "$ac_lib"; then
15155    ac_res="none required"
15156  else
15157    ac_res=-l$ac_lib
15158    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15159  fi
15160  if ac_fn_c_try_link "$LINENO"; then :
15161  ac_cv_search___atomic_load_8=$ac_res
15162fi
15163rm -f core conftest.err conftest.$ac_objext \
15164    conftest$ac_exeext
15165  if ${ac_cv_search___atomic_load_8+:} false; then :
15166  break
15167fi
15168done
15169if ${ac_cv_search___atomic_load_8+:} false; then :
15170
15171else
15172  ac_cv_search___atomic_load_8=no
15173fi
15174rm conftest.$ac_ext
15175LIBS=$ac_func_search_save_LIBS
15176fi
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___atomic_load_8" >&5
15178$as_echo "$ac_cv_search___atomic_load_8" >&6; }
15179ac_res=$ac_cv_search___atomic_load_8
15180if test "$ac_res" != no; then :
15181  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15182
15183fi
15184
15185if test x"$enable_atomics" != x"no"; then :
15186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for built-in memory model aware atomics" >&5
15187$as_echo_n "checking compiler support for built-in memory model aware atomics... " >&6; }
15188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190#include <stdint.h>
15191int
15192main ()
15193{
15194uint64_t d;
15195         uint64_t s;
15196         uint64_t c;
15197         uint64_t r;
15198          r = __atomic_fetch_add(&d, s, __ATOMIC_SEQ_CST);
15199          r = __atomic_load_8(&d, __ATOMIC_SEQ_CST);
15200          __atomic_exchange(&d, &s, &r, __ATOMIC_SEQ_CST);
15201          __atomic_compare_exchange(&d,&c,&s,0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
15202         #if defined(__PPC__) && !defined(__PPC64__)
15203           #error compiler built-in memory model aware atomics are not supported on PowerPC 32-bit
15204         #else
15205           return 0;
15206         #endif
15207
15208  ;
15209  return 0;
15210}
15211_ACEOF
15212if ac_fn_c_try_link "$LINENO"; then :
15213
15214            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15215$as_echo "yes" >&6; }
15216
15217$as_echo "#define HAVE_BUILTIN_MM_ATOMICS 1" >>confdefs.h
15218
15219
15220else
15221
15222            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15223$as_echo "no" >&6; }
15224            LIBS=$LIBS_save
15225
15226fi
15227rm -f core conftest.err conftest.$ac_objext \
15228    conftest$ac_exeext conftest.$ac_ext
15229else
15230
15231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: configure: -latomic key is disabled" >&5
15232$as_echo "configure: -latomic key is disabled" >&6; }
15233    LIBS=$LIBS_save
15234
15235fi
15236unset LIBS_save
15237
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for cpuid" >&5
15239$as_echo_n "checking compiler support for cpuid... " >&6; }
15240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h.  */
15242
15243     #include <stddef.h>
15244     #include <cpuid.h>
15245int
15246main ()
15247{
15248
15249     int a, b, c, d;
15250     __cpuid_count(0, 0, a, b, c, d);
15251
15252  ;
15253  return 0;
15254}
15255_ACEOF
15256if ac_fn_c_try_link "$LINENO"; then :
15257
15258	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15259$as_echo "yes" >&6; }
15260
15261$as_echo "#define HAVE_CPUID 1" >>confdefs.h
15262
15263
15264else
15265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266$as_echo "no" >&6; }
15267fi
15268rm -f core conftest.err conftest.$ac_objext \
15269    conftest$ac_exeext conftest.$ac_ext
15270
15271if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then
15272ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15273if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
15274
15275else
15276  as_fn_error $? "valgrind requested but <valgrind/memcheck.h> not found." "$LINENO" 5
15277fi
15278
15279
15280fi
15281
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld accepts --version-script" >&5
15283$as_echo_n "checking whether ld accepts --version-script... " >&6; }
15284if ${ac_cv_version_script+:} false; then :
15285  $as_echo_n "(cached) " >&6
15286else
15287  if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
15288        ac_cv_version_script=yes
15289    else
15290        ac_cv_version_script=no
15291    fi
15292fi
15293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_version_script" >&5
15294$as_echo "$ac_cv_version_script" >&6; }
15295
15296# Check whether --enable-embedded was given.
15297if test "${enable_embedded+set}" = set; then :
15298  enableval=$enable_embedded; ac_asm_symver_support=0
15299               icc_symver_hack=1
15300else
15301  enable_embedded=no
15302fi
15303
15304 if test x"$enable_embedded" = x"yes"; then
15305  EMBEDDED_TRUE=
15306  EMBEDDED_FALSE='#'
15307else
15308  EMBEDDED_TRUE='#'
15309  EMBEDDED_FALSE=
15310fi
15311
15312
15313 if test "$ac_cv_version_script" = "yes"; then
15314  HAVE_LD_VERSION_SCRIPT_TRUE=
15315  HAVE_LD_VERSION_SCRIPT_FALSE='#'
15316else
15317  HAVE_LD_VERSION_SCRIPT_TRUE='#'
15318  HAVE_LD_VERSION_SCRIPT_FALSE=
15319fi
15320
15321
15322case $CFLAGS in #(
15323  *-ipo*) :
15324
15325		{ $as_echo "$as_me:${as_lineno-$LINENO}: disabling symbol versioning support with -ipo CFLAG" >&5
15326$as_echo "$as_me: disabling symbol versioning support with -ipo CFLAG" >&6;}
15327		icc_symver_hack=1
15328		ac_asm_symver_support=0
15329	 ;; #(
15330  *) :
15331
15332 ;;
15333esac
15334
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler support" >&5
15336$as_echo_n "checking for .symver assembler support... " >&6; }
15337if test "$icc_symver_hack"; then :
15338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15339$as_echo "disabled" >&6; }
15340else
15341
15342
15343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h.  */
15345
15346int
15347main ()
15348{
15349__asm__(".symver main_, main@ABIVER_1.0");
15350  ;
15351  return 0;
15352}
15353_ACEOF
15354if ac_fn_c_try_link "$LINENO"; then :
15355
15356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15357$as_echo "yes" >&6; }
15358		ac_asm_symver_support=1
15359
15360else
15361
15362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363$as_echo "no" >&6; }
15364		ac_asm_symver_support=0
15365
15366fi
15367rm -f core conftest.err conftest.$ac_objext \
15368    conftest$ac_exeext conftest.$ac_ext
15369
15370
15371fi
15372
15373cat >>confdefs.h <<_ACEOF
15374#define HAVE_SYMVER_SUPPORT $ac_asm_symver_support
15375_ACEOF
15376
15377
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alias__ attribute support" >&5
15379$as_echo_n "checking for __alias__ attribute support... " >&6; }
15380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h.  */
15382
15383		int foo(int arg);
15384		int foo(int arg) { return arg + 3; };
15385		int foo2(int arg) __attribute__ (( __alias__("foo")));
15386
15387int
15388main ()
15389{
15390 foo2(1);
15391  ;
15392  return 0;
15393}
15394_ACEOF
15395if ac_fn_c_try_link "$LINENO"; then :
15396
15397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15398$as_echo "yes" >&6; }
15399		ac_prog_cc_alias_symbols=1
15400
15401else
15402
15403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15404$as_echo "no" >&6; }
15405		ac_prog_cc_alias_symbols=0
15406
15407fi
15408rm -f core conftest.err conftest.$ac_objext \
15409    conftest$ac_exeext conftest.$ac_ext
15410
15411
15412cat >>confdefs.h <<_ACEOF
15413#define HAVE_ALIAS_ATTRIBUTE $ac_prog_cc_alias_symbols
15414_ACEOF
15415
15416for ac_func in getifaddrs
15417do :
15418  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15419if test "x$ac_cv_func_getifaddrs" = xyes; then :
15420  cat >>confdefs.h <<_ACEOF
15421#define HAVE_GETIFADDRS 1
15422_ACEOF
15423
15424fi
15425done
15426
15427
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ethtool support" >&5
15429$as_echo_n "checking ethtool support... " >&6; }
15430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431/* end confdefs.h.  */
15432
15433    #include <net/if.h>
15434    #include <sys/types.h>
15435    #include <linux/ethtool.h>
15436    #include <linux/sockios.h>
15437    #include <sys/ioctl.h>
15438int
15439main ()
15440{
15441
15442        unsigned long ioctl_req = SIOCETHTOOL;
15443        struct ethtool_cmd cmd = {
15444            .cmd = ETHTOOL_GSET,
15445        };
15446        long speed = cmd.speed;
15447
15448  ;
15449  return 0;
15450}
15451_ACEOF
15452if ac_fn_c_try_link "$LINENO"; then :
15453
15454	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15455$as_echo "yes" >&6; }
15456
15457$as_echo "#define HAVE_ETHTOOL 1" >>confdefs.h
15458
15459
15460
15461else
15462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15463$as_echo "no" >&6; }
15464fi
15465rm -f core conftest.err conftest.$ac_objext \
15466    conftest$ac_exeext conftest.$ac_ext
15467
15468ac_fn_c_check_decl "$LINENO" "ethtool_cmd_speed" "ac_cv_have_decl_ethtool_cmd_speed" "#include <linux/ethtool.h>
15469"
15470if test "x$ac_cv_have_decl_ethtool_cmd_speed" = xyes; then :
15471  ac_have_decl=1
15472else
15473  ac_have_decl=0
15474fi
15475
15476cat >>confdefs.h <<_ACEOF
15477#define HAVE_DECL_ETHTOOL_CMD_SPEED $ac_have_decl
15478_ACEOF
15479ac_fn_c_check_decl "$LINENO" "SPEED_UNKNOWN" "ac_cv_have_decl_SPEED_UNKNOWN" "#include <linux/ethtool.h>
15480"
15481if test "x$ac_cv_have_decl_SPEED_UNKNOWN" = xyes; then :
15482  ac_have_decl=1
15483else
15484  ac_have_decl=0
15485fi
15486
15487cat >>confdefs.h <<_ACEOF
15488#define HAVE_DECL_SPEED_UNKNOWN $ac_have_decl
15489_ACEOF
15490
15491
15492have_uffd=0
15493for ac_header in linux/userfaultfd.h
15494do :
15495  ac_fn_c_check_header_mongrel "$LINENO" "linux/userfaultfd.h" "ac_cv_header_linux_userfaultfd_h" "$ac_includes_default"
15496if test "x$ac_cv_header_linux_userfaultfd_h" = xyes; then :
15497  cat >>confdefs.h <<_ACEOF
15498#define HAVE_LINUX_USERFAULTFD_H 1
15499_ACEOF
15500 ac_fn_c_check_decl "$LINENO" "__NR_userfaultfd" "ac_cv_have_decl___NR_userfaultfd" "#include <sys/syscall.h>
15501"
15502if test "x$ac_cv_have_decl___NR_userfaultfd" = xyes; then :
15503  have_uffd=1
15504fi
15505
15506fi
15507
15508done
15509
15510
15511if test $have_uffd -eq 1; then :
15512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for userfaultfd unmap support" >&5
15513$as_echo_n "checking for userfaultfd unmap support... " >&6; }
15514	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515/* end confdefs.h.  */
15516
15517			#include <sys/types.h>
15518			#include <linux/userfaultfd.h>
15519			#include <unistd.h>
15520			#include <sys/syscall.h>
15521			#include <fcntl.h>
15522			#include <sys/ioctl.h>
15523
15524int
15525main ()
15526{
15527
15528			int fd;
15529			struct uffdio_api api_obj;
15530			api_obj.api = UFFD_API;
15531			api_obj.features = UFFD_FEATURE_EVENT_UNMAP |
15532					UFFD_FEATURE_EVENT_REMOVE |
15533					UFFD_FEATURE_EVENT_REMAP;
15534			fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
15535			return ioctl(fd, UFFDIO_API, &api_obj);
15536
15537  ;
15538  return 0;
15539}
15540
15541_ACEOF
15542if ac_fn_c_try_compile "$LINENO"; then :
15543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544$as_echo "yes" >&6; }
15545else
15546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547$as_echo "no" >&6; }
15548		have_uffd=0
15549fi
15550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551fi
15552
15553
15554cat >>confdefs.h <<_ACEOF
15555#define HAVE_UFFD_UNMAP $have_uffd
15556_ACEOF
15557
15558
15559
15560
15561
15562  for ac_header in $ac_header_list
15563do :
15564  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15566"
15567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15568  cat >>confdefs.h <<_ACEOF
15569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15570_ACEOF
15571
15572fi
15573
15574done
15575
15576
15577
15578
15579
15580
15581
15582have_clock_gettime=0
15583
15584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15585$as_echo_n "checking for library containing clock_gettime... " >&6; }
15586if ${ac_cv_search_clock_gettime+:} false; then :
15587  $as_echo_n "(cached) " >&6
15588else
15589  ac_func_search_save_LIBS=$LIBS
15590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591/* end confdefs.h.  */
15592
15593/* Override any GCC internal prototype to avoid an error.
15594   Use char because int might match the return type of a GCC
15595   builtin and then its argument prototype would still apply.  */
15596#ifdef __cplusplus
15597extern "C"
15598#endif
15599char clock_gettime ();
15600int
15601main ()
15602{
15603return clock_gettime ();
15604  ;
15605  return 0;
15606}
15607_ACEOF
15608for ac_lib in '' rt; do
15609  if test -z "$ac_lib"; then
15610    ac_res="none required"
15611  else
15612    ac_res=-l$ac_lib
15613    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15614  fi
15615  if ac_fn_c_try_link "$LINENO"; then :
15616  ac_cv_search_clock_gettime=$ac_res
15617fi
15618rm -f core conftest.err conftest.$ac_objext \
15619    conftest$ac_exeext
15620  if ${ac_cv_search_clock_gettime+:} false; then :
15621  break
15622fi
15623done
15624if ${ac_cv_search_clock_gettime+:} false; then :
15625
15626else
15627  ac_cv_search_clock_gettime=no
15628fi
15629rm conftest.$ac_ext
15630LIBS=$ac_func_search_save_LIBS
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15633$as_echo "$ac_cv_search_clock_gettime" >&6; }
15634ac_res=$ac_cv_search_clock_gettime
15635if test "$ac_res" != no; then :
15636  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15637  have_clock_gettime=1
15638fi
15639
15640
15641
15642cat >>confdefs.h <<_ACEOF
15643#define HAVE_CLOCK_GETTIME $have_clock_gettime
15644_ACEOF
15645
15646 if test $have_clock_gettime -eq 1; then
15647  HAVE_CLOCK_GETTIME_TRUE=
15648  HAVE_CLOCK_GETTIME_FALSE='#'
15649else
15650  HAVE_CLOCK_GETTIME_TRUE='#'
15651  HAVE_CLOCK_GETTIME_FALSE=
15652fi
15653
15654
15655
15656# Check whether --with-cuda was given.
15657if test "${with_cuda+set}" = set; then :
15658  withval=$with_cuda;
15659fi
15660
15661
15662
15663    fi_check_package_cuda_save_CPPFLAGS="$CPPFLAGS"
15664    fi_check_package_cuda_save_LDFLAGS="$LDFLAGS"
15665    fi_check_package_cuda_save_LIBS="$LIBS"
15666
15667    fi_check_package_cuda_orig_CPPFLAGS="$cuda_CPPFLAGS"
15668    fi_check_package_cuda_orig_LDFLAGS="$cuda_LDFLAGS"
15669    fi_check_package_cuda_orig_LIBS="$cuda_LIBS"
15670
15671
15672    # This is stolen from autoconf to peek under the covers to get the
15673    # cache variable for the library check.
15674
15675
15676    # There's unfortunately no way to get through the progression of
15677    # header includes without killing off the cache variable and
15678    # trying again...
15679    unset ac_cv_header_cuda_runtime_h
15680
15681    fi_check_package_header_happy="no"
15682    if test "$with_cuda" = "/usr" || test "$with_cuda" = "/usr/local"; then :
15683   # try as is...
15684            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
15685$as_echo "looking for header without includes" >&6; }
15686            for ac_header in cuda_runtime.h
15687do :
15688  ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime.h" "ac_cv_header_cuda_runtime_h" "$ac_includes_default"
15689if test "x$ac_cv_header_cuda_runtime_h" = xyes; then :
15690  cat >>confdefs.h <<_ACEOF
15691#define HAVE_CUDA_RUNTIME_H 1
15692_ACEOF
15693 fi_check_package_header_happy="yes"
15694fi
15695
15696done
15697
15698            if test "$fi_check_package_header_happy" = "no"; then :
15699  # no go on the as is - reset the cache and try again
15700                   unset ac_cv_header_cuda_runtime_h
15701fi
15702fi
15703
15704    if test "$fi_check_package_header_happy" = "no"; then :
15705  if test "$with_cuda" != ""; then :
15706  cuda_CPPFLAGS="$cuda_CPPFLAGS -I$with_cuda/include"
15707                  CPPFLAGS="$CPPFLAGS -I$with_cuda/include"
15708fi
15709          for ac_header in cuda_runtime.h
15710do :
15711  ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime.h" "ac_cv_header_cuda_runtime_h" "$ac_includes_default"
15712if test "x$ac_cv_header_cuda_runtime_h" = xyes; then :
15713  cat >>confdefs.h <<_ACEOF
15714#define HAVE_CUDA_RUNTIME_H 1
15715_ACEOF
15716 fi_check_package_header_happy="yes"
15717fi
15718
15719done
15720
15721          if test "$fi_check_package_header_happy" = "yes"; then :
15722
15723    # This is stolen from autoconf to peek under the covers to get the
15724    # cache variable for the library check.
15725
15726    # See comment above
15727    unset ac_cv_lib_cudart_cudaMemcpy
15728    fi_check_package_lib_happy="no"
15729    if test "" != ""; then :
15730   # libdir was specified - search only there
15731           cuda_LDFLAGS="$cuda_LDFLAGS -L"
15732           LDFLAGS="$LDFLAGS -L"
15733           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
15734$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
15735if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
15736  $as_echo_n "(cached) " >&6
15737else
15738  ac_check_lib_save_LIBS=$LIBS
15739LIBS="-lcudart -lcuda $LIBS"
15740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741/* end confdefs.h.  */
15742
15743/* Override any GCC internal prototype to avoid an error.
15744   Use char because int might match the return type of a GCC
15745   builtin and then its argument prototype would still apply.  */
15746#ifdef __cplusplus
15747extern "C"
15748#endif
15749char cudaMemcpy ();
15750int
15751main ()
15752{
15753return cudaMemcpy ();
15754  ;
15755  return 0;
15756}
15757_ACEOF
15758if ac_fn_c_try_link "$LINENO"; then :
15759  ac_cv_lib_cudart_cudaMemcpy=yes
15760else
15761  ac_cv_lib_cudart_cudaMemcpy=no
15762fi
15763rm -f core conftest.err conftest.$ac_objext \
15764    conftest$ac_exeext conftest.$ac_ext
15765LIBS=$ac_check_lib_save_LIBS
15766fi
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
15768$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
15769if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
15770  fi_check_package_lib_happy="yes"
15771else
15772  fi_check_package_lib_happy="no"
15773fi
15774
15775           if test "$fi_check_package_lib_happy" = "no"; then :
15776  LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
15777                  cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
15778                  unset ac_cv_lib_cudart_cudaMemcpy
15779fi
15780else
15781   # libdir was not specified - go through search path
15782           fi_check_package_libdir="$with_cuda"
15783           if test "$fi_check_package_libdir" = "" || \
15784                  test "$fi_check_package_libdir" = "/usr" || \
15785                  test "$fi_check_package_libdir" = "/usr/local"; then :
15786   # try as is...
15787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
15788$as_echo "looking for library without search path" >&6; }
15789                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
15790$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
15791if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  ac_check_lib_save_LIBS=$LIBS
15795LIBS="-lcudart -lcuda $LIBS"
15796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798
15799/* Override any GCC internal prototype to avoid an error.
15800   Use char because int might match the return type of a GCC
15801   builtin and then its argument prototype would still apply.  */
15802#ifdef __cplusplus
15803extern "C"
15804#endif
15805char cudaMemcpy ();
15806int
15807main ()
15808{
15809return cudaMemcpy ();
15810  ;
15811  return 0;
15812}
15813_ACEOF
15814if ac_fn_c_try_link "$LINENO"; then :
15815  ac_cv_lib_cudart_cudaMemcpy=yes
15816else
15817  ac_cv_lib_cudart_cudaMemcpy=no
15818fi
15819rm -f core conftest.err conftest.$ac_objext \
15820    conftest$ac_exeext conftest.$ac_ext
15821LIBS=$ac_check_lib_save_LIBS
15822fi
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
15824$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
15825if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
15826  fi_check_package_lib_happy="yes"
15827else
15828  fi_check_package_lib_happy="no"
15829fi
15830
15831                if test "$fi_check_package_lib_happy" = "no"; then :
15832   # no go on the as is..  see what happens later...
15833                     LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
15834                     cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
15835                     unset ac_cv_lib_cudart_cudaMemcpy
15836fi
15837fi
15838
15839           if test "$fi_check_package_lib_happy" = "no"; then :
15840  if test "$fi_check_package_libdir" != ""; then :
15841  cuda_LDFLAGS="$cuda_LDFLAGS -L$fi_check_package_libdir/lib64"
15842                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
15843                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
15844$as_echo "looking for library in lib64" >&6; }
15845                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
15846$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
15847if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
15848  $as_echo_n "(cached) " >&6
15849else
15850  ac_check_lib_save_LIBS=$LIBS
15851LIBS="-lcudart -lcuda $LIBS"
15852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854
15855/* Override any GCC internal prototype to avoid an error.
15856   Use char because int might match the return type of a GCC
15857   builtin and then its argument prototype would still apply.  */
15858#ifdef __cplusplus
15859extern "C"
15860#endif
15861char cudaMemcpy ();
15862int
15863main ()
15864{
15865return cudaMemcpy ();
15866  ;
15867  return 0;
15868}
15869_ACEOF
15870if ac_fn_c_try_link "$LINENO"; then :
15871  ac_cv_lib_cudart_cudaMemcpy=yes
15872else
15873  ac_cv_lib_cudart_cudaMemcpy=no
15874fi
15875rm -f core conftest.err conftest.$ac_objext \
15876    conftest$ac_exeext conftest.$ac_ext
15877LIBS=$ac_check_lib_save_LIBS
15878fi
15879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
15880$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
15881if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
15882  fi_check_package_lib_happy="yes"
15883else
15884  fi_check_package_lib_happy="no"
15885fi
15886
15887                     if test "$fi_check_package_lib_happy" = "no"; then :
15888   # no go on the as is..  see what happens later...
15889                          LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
15890                          cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
15891                          unset ac_cv_lib_cudart_cudaMemcpy
15892fi
15893fi
15894fi
15895
15896           if test "$fi_check_package_lib_happy" = "no"; then :
15897  if test "$fi_check_package_libdir" != ""; then :
15898  cuda_LDFLAGS="$cuda_LDFLAGS -L$fi_check_package_libdir/lib"
15899                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
15900                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
15901$as_echo "looking for library in lib" >&6; }
15902                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
15903$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
15904if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
15905  $as_echo_n "(cached) " >&6
15906else
15907  ac_check_lib_save_LIBS=$LIBS
15908LIBS="-lcudart -lcuda $LIBS"
15909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910/* end confdefs.h.  */
15911
15912/* Override any GCC internal prototype to avoid an error.
15913   Use char because int might match the return type of a GCC
15914   builtin and then its argument prototype would still apply.  */
15915#ifdef __cplusplus
15916extern "C"
15917#endif
15918char cudaMemcpy ();
15919int
15920main ()
15921{
15922return cudaMemcpy ();
15923  ;
15924  return 0;
15925}
15926_ACEOF
15927if ac_fn_c_try_link "$LINENO"; then :
15928  ac_cv_lib_cudart_cudaMemcpy=yes
15929else
15930  ac_cv_lib_cudart_cudaMemcpy=no
15931fi
15932rm -f core conftest.err conftest.$ac_objext \
15933    conftest$ac_exeext conftest.$ac_ext
15934LIBS=$ac_check_lib_save_LIBS
15935fi
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
15937$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
15938if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
15939  fi_check_package_lib_happy="yes"
15940else
15941  fi_check_package_lib_happy="no"
15942fi
15943
15944                     if test "$fi_check_package_lib_happy" = "no"; then :
15945   # no go on the as is..  see what happens later...
15946                          LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
15947                          cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
15948                          unset ac_cv_lib_cudart_cudaMemcpy
15949fi
15950fi
15951fi
15952fi
15953
15954    if test "$fi_check_package_lib_happy" = "yes"; then :
15955  cuda_LIBS="-lcudart -lcuda"
15956           fi_check_package_happy="yes"
15957else
15958  fi_check_package_happy="no"
15959fi
15960
15961
15962else
15963  fi_check_package_happy="no"
15964fi
15965else
15966
15967    # This is stolen from autoconf to peek under the covers to get the
15968    # cache variable for the library check.
15969
15970    # See comment above
15971    unset ac_cv_lib_cudart_cudaMemcpy
15972    fi_check_package_lib_happy="no"
15973    if test "" != ""; then :
15974   # libdir was specified - search only there
15975           cuda_LDFLAGS="$cuda_LDFLAGS -L"
15976           LDFLAGS="$LDFLAGS -L"
15977           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
15978$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
15979if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
15980  $as_echo_n "(cached) " >&6
15981else
15982  ac_check_lib_save_LIBS=$LIBS
15983LIBS="-lcudart -lcuda $LIBS"
15984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985/* end confdefs.h.  */
15986
15987/* Override any GCC internal prototype to avoid an error.
15988   Use char because int might match the return type of a GCC
15989   builtin and then its argument prototype would still apply.  */
15990#ifdef __cplusplus
15991extern "C"
15992#endif
15993char cudaMemcpy ();
15994int
15995main ()
15996{
15997return cudaMemcpy ();
15998  ;
15999  return 0;
16000}
16001_ACEOF
16002if ac_fn_c_try_link "$LINENO"; then :
16003  ac_cv_lib_cudart_cudaMemcpy=yes
16004else
16005  ac_cv_lib_cudart_cudaMemcpy=no
16006fi
16007rm -f core conftest.err conftest.$ac_objext \
16008    conftest$ac_exeext conftest.$ac_ext
16009LIBS=$ac_check_lib_save_LIBS
16010fi
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
16012$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
16013if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
16014  fi_check_package_lib_happy="yes"
16015else
16016  fi_check_package_lib_happy="no"
16017fi
16018
16019           if test "$fi_check_package_lib_happy" = "no"; then :
16020  LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
16021                  cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
16022                  unset ac_cv_lib_cudart_cudaMemcpy
16023fi
16024else
16025   # libdir was not specified - go through search path
16026           fi_check_package_libdir="$with_cuda"
16027           if test "$fi_check_package_libdir" = "" || \
16028                  test "$fi_check_package_libdir" = "/usr" || \
16029                  test "$fi_check_package_libdir" = "/usr/local"; then :
16030   # try as is...
16031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
16032$as_echo "looking for library without search path" >&6; }
16033                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
16034$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
16035if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  ac_check_lib_save_LIBS=$LIBS
16039LIBS="-lcudart -lcuda $LIBS"
16040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042
16043/* Override any GCC internal prototype to avoid an error.
16044   Use char because int might match the return type of a GCC
16045   builtin and then its argument prototype would still apply.  */
16046#ifdef __cplusplus
16047extern "C"
16048#endif
16049char cudaMemcpy ();
16050int
16051main ()
16052{
16053return cudaMemcpy ();
16054  ;
16055  return 0;
16056}
16057_ACEOF
16058if ac_fn_c_try_link "$LINENO"; then :
16059  ac_cv_lib_cudart_cudaMemcpy=yes
16060else
16061  ac_cv_lib_cudart_cudaMemcpy=no
16062fi
16063rm -f core conftest.err conftest.$ac_objext \
16064    conftest$ac_exeext conftest.$ac_ext
16065LIBS=$ac_check_lib_save_LIBS
16066fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
16068$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
16069if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
16070  fi_check_package_lib_happy="yes"
16071else
16072  fi_check_package_lib_happy="no"
16073fi
16074
16075                if test "$fi_check_package_lib_happy" = "no"; then :
16076   # no go on the as is..  see what happens later...
16077                     LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
16078                     cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
16079                     unset ac_cv_lib_cudart_cudaMemcpy
16080fi
16081fi
16082
16083           if test "$fi_check_package_lib_happy" = "no"; then :
16084  if test "$fi_check_package_libdir" != ""; then :
16085  cuda_LDFLAGS="$cuda_LDFLAGS -L$fi_check_package_libdir/lib64"
16086                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
16087                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
16088$as_echo "looking for library in lib64" >&6; }
16089                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
16090$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
16091if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
16092  $as_echo_n "(cached) " >&6
16093else
16094  ac_check_lib_save_LIBS=$LIBS
16095LIBS="-lcudart -lcuda $LIBS"
16096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097/* end confdefs.h.  */
16098
16099/* Override any GCC internal prototype to avoid an error.
16100   Use char because int might match the return type of a GCC
16101   builtin and then its argument prototype would still apply.  */
16102#ifdef __cplusplus
16103extern "C"
16104#endif
16105char cudaMemcpy ();
16106int
16107main ()
16108{
16109return cudaMemcpy ();
16110  ;
16111  return 0;
16112}
16113_ACEOF
16114if ac_fn_c_try_link "$LINENO"; then :
16115  ac_cv_lib_cudart_cudaMemcpy=yes
16116else
16117  ac_cv_lib_cudart_cudaMemcpy=no
16118fi
16119rm -f core conftest.err conftest.$ac_objext \
16120    conftest$ac_exeext conftest.$ac_ext
16121LIBS=$ac_check_lib_save_LIBS
16122fi
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
16124$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
16125if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
16126  fi_check_package_lib_happy="yes"
16127else
16128  fi_check_package_lib_happy="no"
16129fi
16130
16131                     if test "$fi_check_package_lib_happy" = "no"; then :
16132   # no go on the as is..  see what happens later...
16133                          LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
16134                          cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
16135                          unset ac_cv_lib_cudart_cudaMemcpy
16136fi
16137fi
16138fi
16139
16140           if test "$fi_check_package_lib_happy" = "no"; then :
16141  if test "$fi_check_package_libdir" != ""; then :
16142  cuda_LDFLAGS="$cuda_LDFLAGS -L$fi_check_package_libdir/lib"
16143                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
16144                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
16145$as_echo "looking for library in lib" >&6; }
16146                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaMemcpy in -lcudart" >&5
16147$as_echo_n "checking for cudaMemcpy in -lcudart... " >&6; }
16148if ${ac_cv_lib_cudart_cudaMemcpy+:} false; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151  ac_check_lib_save_LIBS=$LIBS
16152LIBS="-lcudart -lcuda $LIBS"
16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h.  */
16155
16156/* Override any GCC internal prototype to avoid an error.
16157   Use char because int might match the return type of a GCC
16158   builtin and then its argument prototype would still apply.  */
16159#ifdef __cplusplus
16160extern "C"
16161#endif
16162char cudaMemcpy ();
16163int
16164main ()
16165{
16166return cudaMemcpy ();
16167  ;
16168  return 0;
16169}
16170_ACEOF
16171if ac_fn_c_try_link "$LINENO"; then :
16172  ac_cv_lib_cudart_cudaMemcpy=yes
16173else
16174  ac_cv_lib_cudart_cudaMemcpy=no
16175fi
16176rm -f core conftest.err conftest.$ac_objext \
16177    conftest$ac_exeext conftest.$ac_ext
16178LIBS=$ac_check_lib_save_LIBS
16179fi
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaMemcpy" >&5
16181$as_echo "$ac_cv_lib_cudart_cudaMemcpy" >&6; }
16182if test "x$ac_cv_lib_cudart_cudaMemcpy" = xyes; then :
16183  fi_check_package_lib_happy="yes"
16184else
16185  fi_check_package_lib_happy="no"
16186fi
16187
16188                     if test "$fi_check_package_lib_happy" = "no"; then :
16189   # no go on the as is..  see what happens later...
16190                          LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
16191                          cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
16192                          unset ac_cv_lib_cudart_cudaMemcpy
16193fi
16194fi
16195fi
16196fi
16197
16198    if test "$fi_check_package_lib_happy" = "yes"; then :
16199  cuda_LIBS="-lcudart -lcuda"
16200           fi_check_package_happy="yes"
16201else
16202  fi_check_package_happy="no"
16203fi
16204
16205
16206fi
16207    unset fi_check_package_header_happy
16208
16209
16210
16211    if test "$fi_check_package_happy" = "yes"; then :
16212
16213$as_echo "#define HAVE_LIBCUDA 1" >>confdefs.h
16214
16215else
16216  cuda_CPPFLAGS="$fi_check_package_cuda_orig_CPPFLAGS"
16217           cuda_LDFLAGS="$fi_check_package_cuda_orig_LDFLAGS"
16218           cuda_LIBS="$fi_check_package_cuda_orig_LIBS"
16219
16220fi
16221
16222
16223
16224
16225
16226    CPPFLAGS="$fi_check_package_cuda_save_CPPFLAGS"
16227    LDFLAGS="$fi_check_package_cuda_save_LDFLAGS"
16228    LIBS="$fi_check_package_cuda_save_LIBS"
16229
16230
16231CPPFLAGS="$CPPFLAGS $cuda_CPPFLAGS"
16232LDFLAGS="$LDFLAGS $cuda_LDFLAGS"
16233LIBS="$LIBS $cuda_LIBS"
16234
16235
16236	PROVIDERS_TO_BUILD=
16237	PROVIDERS_DL=
16238	PROVIDERS_STATIC=
16239	PROVIDERS_COUNT=
16240
16241
16242
16243	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"psm"; then :
16244  enable_psm=no
16245               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping psm provider because $enable_direct direct requested" >&5
16246$as_echo "$as_me: *** Skipping psm provider because $enable_direct direct requested" >&6;}
16247else
16248  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring psm provider" >&5
16249$as_echo "$as_me: *** Configuring psm provider" >&6;}
16250	       # Check whether --enable-psm was given.
16251if test "${enable_psm+set}" = set; then :
16252  enableval=$enable_psm;
16253else
16254  enable_psm=auto
16255fi
16256
16257fi
16258
16259	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
16260	# Provider's local macros could use the value if needed.
16261	# Also save LIBS, as a matter of principle.
16262	psm_orig_CPPFLAGS=$CPPFLAGS
16263	psm_orig_LDFLAGS=$LDFLAGS
16264	psm_orig_LIBS=$LIBS
16265
16266	# Check the --enable-<psm> value
16267	psm_dl=0
16268	case $enable_psm in #(
16269  yes|no) :
16270     ;; #(
16271  dl) :
16272    enable_psm=yes psm_dl=1 ;; #(
16273  auto) :
16274     ;; #(
16275  dl:*) :
16276
16277	# Check that the base directory exists
16278	if test ! -d "${enable_psm:3}"; then :
16279  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_psm:3}\" does not exist" >&5
16280$as_echo "$as_me: WARNING: supplied directory \"${enable_psm:3}\" does not exist" >&2;}
16281	        as_fn_error $? "Cannot continue" "$LINENO" 5
16282
16283fi
16284
16285	# Check that base/include exists
16286	 if test -d "${enable_psm:3}/include"; then :
16287  psm_PREFIX="${enable_psm:3}"
16288else
16289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_psm:3}\" directory\"" >&5
16290$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_psm:3}\" directory\"" >&2;}
16291	        as_fn_error $? "Cannot continue" "$LINENO" 5
16292
16293fi
16294
16295	# Check that base/lib or base/lib64 exists
16296	 if test -d "${enable_psm:3}/lib64"; then :
16297  psm_LIBDIR="${enable_psm:3}/lib64"
16298else
16299  if test -d "${enable_psm:3}/lib"; then :
16300  psm_LIBDIR="${enable_psm:3}/lib"
16301else
16302  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_psm:3}\" directory\"" >&5
16303$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_psm:3}\" directory\"" >&2;}
16304		       as_fn_error $? "Cannot continue" "$LINENO" 5
16305
16306fi
16307
16308fi
16309
16310		   enable_psm=yes psm_dl=1 ;; #(
16311  *) :
16312
16313	# Check that the base directory exists
16314	if test ! -d "$enable_psm"; then :
16315  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_psm\" does not exist" >&5
16316$as_echo "$as_me: WARNING: supplied directory \"$enable_psm\" does not exist" >&2;}
16317	        as_fn_error $? "Cannot continue" "$LINENO" 5
16318
16319fi
16320
16321	# Check that base/include exists
16322	 if test -d "$enable_psm/include"; then :
16323  psm_PREFIX="$enable_psm"
16324else
16325  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_psm\" directory\"" >&5
16326$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_psm\" directory\"" >&2;}
16327	        as_fn_error $? "Cannot continue" "$LINENO" 5
16328
16329fi
16330
16331	# Check that base/lib or base/lib64 exists
16332	 if test -d "$enable_psm/lib64"; then :
16333  psm_LIBDIR="$enable_psm/lib64"
16334else
16335  if test -d "$enable_psm/lib"; then :
16336  psm_LIBDIR="$enable_psm/lib"
16337else
16338  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_psm\" directory\"" >&5
16339$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_psm\" directory\"" >&2;}
16340		       as_fn_error $? "Cannot continue" "$LINENO" 5
16341
16342fi
16343
16344fi
16345
16346	 enable_psm=yes
16347	 ;;
16348esac
16349
16350	# Call the provider's CONFIGURE and CONDITIONALS macros
16351
16352
16353
16354
16355
16356
16357
16358	# Determine if we can support the psm provider
16359	psm_happy=0
16360
16361	# Save CPPFLAGS and LDFLAGS because if PSM is found, we need
16362	# to do additional tests which require resetting them (and
16363	# then we want to set them back to their original values when
16364	# done).
16365	psm_CPPFLAGS_SAVE=$CPPFLAGS
16366	psm_LDFLAGS_SAVE=$LDFLAGS
16367
16368	if test x"$enable_psm" != x"no"; then :
16369
16370    fi_check_package_psm_save_CPPFLAGS="$CPPFLAGS"
16371    fi_check_package_psm_save_LDFLAGS="$LDFLAGS"
16372    fi_check_package_psm_save_LIBS="$LIBS"
16373
16374    fi_check_package_psm_orig_CPPFLAGS="$psm_CPPFLAGS"
16375    fi_check_package_psm_orig_LDFLAGS="$psm_LDFLAGS"
16376    fi_check_package_psm_orig_LIBS="$psm_LIBS"
16377
16378
16379    # This is stolen from autoconf to peek under the covers to get the
16380    # cache variable for the library check.
16381
16382
16383    # There's unfortunately no way to get through the progression of
16384    # header includes without killing off the cache variable and
16385    # trying again...
16386    unset ac_cv_header_psm_h
16387
16388    fi_check_package_header_happy="no"
16389    if test "$psm_PREFIX" = "/usr" || test "$psm_PREFIX" = "/usr/local"; then :
16390   # try as is...
16391            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
16392$as_echo "looking for header without includes" >&6; }
16393            for ac_header in psm.h
16394do :
16395  ac_fn_c_check_header_mongrel "$LINENO" "psm.h" "ac_cv_header_psm_h" "$ac_includes_default"
16396if test "x$ac_cv_header_psm_h" = xyes; then :
16397  cat >>confdefs.h <<_ACEOF
16398#define HAVE_PSM_H 1
16399_ACEOF
16400 fi_check_package_header_happy="yes"
16401fi
16402
16403done
16404
16405            if test "$fi_check_package_header_happy" = "no"; then :
16406  # no go on the as is - reset the cache and try again
16407                   unset ac_cv_header_psm_h
16408fi
16409fi
16410
16411    if test "$fi_check_package_header_happy" = "no"; then :
16412  if test "$psm_PREFIX" != ""; then :
16413  psm_CPPFLAGS="$psm_CPPFLAGS -I$psm_PREFIX/include"
16414                  CPPFLAGS="$CPPFLAGS -I$psm_PREFIX/include"
16415fi
16416          for ac_header in psm.h
16417do :
16418  ac_fn_c_check_header_mongrel "$LINENO" "psm.h" "ac_cv_header_psm_h" "$ac_includes_default"
16419if test "x$ac_cv_header_psm_h" = xyes; then :
16420  cat >>confdefs.h <<_ACEOF
16421#define HAVE_PSM_H 1
16422_ACEOF
16423 fi_check_package_header_happy="yes"
16424fi
16425
16426done
16427
16428          if test "$fi_check_package_header_happy" = "yes"; then :
16429
16430    # This is stolen from autoconf to peek under the covers to get the
16431    # cache variable for the library check.
16432
16433    # See comment above
16434    unset ac_cv_lib_psm_infinipath_psm_init
16435    fi_check_package_lib_happy="no"
16436    if test "$psm_LIBDIR" != ""; then :
16437   # libdir was specified - search only there
16438           psm_LDFLAGS="$psm_LDFLAGS -L$psm_LIBDIR"
16439           LDFLAGS="$LDFLAGS -L$psm_LIBDIR"
16440           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16441$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16442if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16443  $as_echo_n "(cached) " >&6
16444else
16445  ac_check_lib_save_LIBS=$LIBS
16446LIBS="-lpsm_infinipath  $LIBS"
16447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448/* end confdefs.h.  */
16449
16450/* Override any GCC internal prototype to avoid an error.
16451   Use char because int might match the return type of a GCC
16452   builtin and then its argument prototype would still apply.  */
16453#ifdef __cplusplus
16454extern "C"
16455#endif
16456char psm_init ();
16457int
16458main ()
16459{
16460return psm_init ();
16461  ;
16462  return 0;
16463}
16464_ACEOF
16465if ac_fn_c_try_link "$LINENO"; then :
16466  ac_cv_lib_psm_infinipath_psm_init=yes
16467else
16468  ac_cv_lib_psm_infinipath_psm_init=no
16469fi
16470rm -f core conftest.err conftest.$ac_objext \
16471    conftest$ac_exeext conftest.$ac_ext
16472LIBS=$ac_check_lib_save_LIBS
16473fi
16474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16475$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16476if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16477  fi_check_package_lib_happy="yes"
16478else
16479  fi_check_package_lib_happy="no"
16480fi
16481
16482           if test "$fi_check_package_lib_happy" = "no"; then :
16483  LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16484                  psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16485                  unset ac_cv_lib_psm_infinipath_psm_init
16486fi
16487else
16488   # libdir was not specified - go through search path
16489           fi_check_package_libdir="$psm_PREFIX"
16490           if test "$fi_check_package_libdir" = "" || \
16491                  test "$fi_check_package_libdir" = "/usr" || \
16492                  test "$fi_check_package_libdir" = "/usr/local"; then :
16493   # try as is...
16494                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
16495$as_echo "looking for library without search path" >&6; }
16496                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16497$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16498if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16499  $as_echo_n "(cached) " >&6
16500else
16501  ac_check_lib_save_LIBS=$LIBS
16502LIBS="-lpsm_infinipath  $LIBS"
16503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504/* end confdefs.h.  */
16505
16506/* Override any GCC internal prototype to avoid an error.
16507   Use char because int might match the return type of a GCC
16508   builtin and then its argument prototype would still apply.  */
16509#ifdef __cplusplus
16510extern "C"
16511#endif
16512char psm_init ();
16513int
16514main ()
16515{
16516return psm_init ();
16517  ;
16518  return 0;
16519}
16520_ACEOF
16521if ac_fn_c_try_link "$LINENO"; then :
16522  ac_cv_lib_psm_infinipath_psm_init=yes
16523else
16524  ac_cv_lib_psm_infinipath_psm_init=no
16525fi
16526rm -f core conftest.err conftest.$ac_objext \
16527    conftest$ac_exeext conftest.$ac_ext
16528LIBS=$ac_check_lib_save_LIBS
16529fi
16530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16531$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16532if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16533  fi_check_package_lib_happy="yes"
16534else
16535  fi_check_package_lib_happy="no"
16536fi
16537
16538                if test "$fi_check_package_lib_happy" = "no"; then :
16539   # no go on the as is..  see what happens later...
16540                     LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16541                     psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16542                     unset ac_cv_lib_psm_infinipath_psm_init
16543fi
16544fi
16545
16546           if test "$fi_check_package_lib_happy" = "no"; then :
16547  if test "$fi_check_package_libdir" != ""; then :
16548  psm_LDFLAGS="$psm_LDFLAGS -L$fi_check_package_libdir/lib64"
16549                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
16550                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
16551$as_echo "looking for library in lib64" >&6; }
16552                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16553$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16554if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16555  $as_echo_n "(cached) " >&6
16556else
16557  ac_check_lib_save_LIBS=$LIBS
16558LIBS="-lpsm_infinipath  $LIBS"
16559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560/* end confdefs.h.  */
16561
16562/* Override any GCC internal prototype to avoid an error.
16563   Use char because int might match the return type of a GCC
16564   builtin and then its argument prototype would still apply.  */
16565#ifdef __cplusplus
16566extern "C"
16567#endif
16568char psm_init ();
16569int
16570main ()
16571{
16572return psm_init ();
16573  ;
16574  return 0;
16575}
16576_ACEOF
16577if ac_fn_c_try_link "$LINENO"; then :
16578  ac_cv_lib_psm_infinipath_psm_init=yes
16579else
16580  ac_cv_lib_psm_infinipath_psm_init=no
16581fi
16582rm -f core conftest.err conftest.$ac_objext \
16583    conftest$ac_exeext conftest.$ac_ext
16584LIBS=$ac_check_lib_save_LIBS
16585fi
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16587$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16588if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16589  fi_check_package_lib_happy="yes"
16590else
16591  fi_check_package_lib_happy="no"
16592fi
16593
16594                     if test "$fi_check_package_lib_happy" = "no"; then :
16595   # no go on the as is..  see what happens later...
16596                          LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16597                          psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16598                          unset ac_cv_lib_psm_infinipath_psm_init
16599fi
16600fi
16601fi
16602
16603           if test "$fi_check_package_lib_happy" = "no"; then :
16604  if test "$fi_check_package_libdir" != ""; then :
16605  psm_LDFLAGS="$psm_LDFLAGS -L$fi_check_package_libdir/lib"
16606                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
16607                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
16608$as_echo "looking for library in lib" >&6; }
16609                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16610$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16611if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16612  $as_echo_n "(cached) " >&6
16613else
16614  ac_check_lib_save_LIBS=$LIBS
16615LIBS="-lpsm_infinipath  $LIBS"
16616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617/* end confdefs.h.  */
16618
16619/* Override any GCC internal prototype to avoid an error.
16620   Use char because int might match the return type of a GCC
16621   builtin and then its argument prototype would still apply.  */
16622#ifdef __cplusplus
16623extern "C"
16624#endif
16625char psm_init ();
16626int
16627main ()
16628{
16629return psm_init ();
16630  ;
16631  return 0;
16632}
16633_ACEOF
16634if ac_fn_c_try_link "$LINENO"; then :
16635  ac_cv_lib_psm_infinipath_psm_init=yes
16636else
16637  ac_cv_lib_psm_infinipath_psm_init=no
16638fi
16639rm -f core conftest.err conftest.$ac_objext \
16640    conftest$ac_exeext conftest.$ac_ext
16641LIBS=$ac_check_lib_save_LIBS
16642fi
16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16644$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16645if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16646  fi_check_package_lib_happy="yes"
16647else
16648  fi_check_package_lib_happy="no"
16649fi
16650
16651                     if test "$fi_check_package_lib_happy" = "no"; then :
16652   # no go on the as is..  see what happens later...
16653                          LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16654                          psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16655                          unset ac_cv_lib_psm_infinipath_psm_init
16656fi
16657fi
16658fi
16659fi
16660
16661    if test "$fi_check_package_lib_happy" = "yes"; then :
16662  psm_LIBS="-lpsm_infinipath "
16663           fi_check_package_happy="yes"
16664else
16665  fi_check_package_happy="no"
16666fi
16667
16668
16669else
16670  fi_check_package_happy="no"
16671fi
16672else
16673
16674    # This is stolen from autoconf to peek under the covers to get the
16675    # cache variable for the library check.
16676
16677    # See comment above
16678    unset ac_cv_lib_psm_infinipath_psm_init
16679    fi_check_package_lib_happy="no"
16680    if test "$psm_LIBDIR" != ""; then :
16681   # libdir was specified - search only there
16682           psm_LDFLAGS="$psm_LDFLAGS -L$psm_LIBDIR"
16683           LDFLAGS="$LDFLAGS -L$psm_LIBDIR"
16684           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16685$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16686if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689  ac_check_lib_save_LIBS=$LIBS
16690LIBS="-lpsm_infinipath  $LIBS"
16691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692/* end confdefs.h.  */
16693
16694/* Override any GCC internal prototype to avoid an error.
16695   Use char because int might match the return type of a GCC
16696   builtin and then its argument prototype would still apply.  */
16697#ifdef __cplusplus
16698extern "C"
16699#endif
16700char psm_init ();
16701int
16702main ()
16703{
16704return psm_init ();
16705  ;
16706  return 0;
16707}
16708_ACEOF
16709if ac_fn_c_try_link "$LINENO"; then :
16710  ac_cv_lib_psm_infinipath_psm_init=yes
16711else
16712  ac_cv_lib_psm_infinipath_psm_init=no
16713fi
16714rm -f core conftest.err conftest.$ac_objext \
16715    conftest$ac_exeext conftest.$ac_ext
16716LIBS=$ac_check_lib_save_LIBS
16717fi
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16719$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16720if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16721  fi_check_package_lib_happy="yes"
16722else
16723  fi_check_package_lib_happy="no"
16724fi
16725
16726           if test "$fi_check_package_lib_happy" = "no"; then :
16727  LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16728                  psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16729                  unset ac_cv_lib_psm_infinipath_psm_init
16730fi
16731else
16732   # libdir was not specified - go through search path
16733           fi_check_package_libdir="$psm_PREFIX"
16734           if test "$fi_check_package_libdir" = "" || \
16735                  test "$fi_check_package_libdir" = "/usr" || \
16736                  test "$fi_check_package_libdir" = "/usr/local"; then :
16737   # try as is...
16738                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
16739$as_echo "looking for library without search path" >&6; }
16740                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16741$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16742if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16743  $as_echo_n "(cached) " >&6
16744else
16745  ac_check_lib_save_LIBS=$LIBS
16746LIBS="-lpsm_infinipath  $LIBS"
16747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749
16750/* Override any GCC internal prototype to avoid an error.
16751   Use char because int might match the return type of a GCC
16752   builtin and then its argument prototype would still apply.  */
16753#ifdef __cplusplus
16754extern "C"
16755#endif
16756char psm_init ();
16757int
16758main ()
16759{
16760return psm_init ();
16761  ;
16762  return 0;
16763}
16764_ACEOF
16765if ac_fn_c_try_link "$LINENO"; then :
16766  ac_cv_lib_psm_infinipath_psm_init=yes
16767else
16768  ac_cv_lib_psm_infinipath_psm_init=no
16769fi
16770rm -f core conftest.err conftest.$ac_objext \
16771    conftest$ac_exeext conftest.$ac_ext
16772LIBS=$ac_check_lib_save_LIBS
16773fi
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16775$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16776if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16777  fi_check_package_lib_happy="yes"
16778else
16779  fi_check_package_lib_happy="no"
16780fi
16781
16782                if test "$fi_check_package_lib_happy" = "no"; then :
16783   # no go on the as is..  see what happens later...
16784                     LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16785                     psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16786                     unset ac_cv_lib_psm_infinipath_psm_init
16787fi
16788fi
16789
16790           if test "$fi_check_package_lib_happy" = "no"; then :
16791  if test "$fi_check_package_libdir" != ""; then :
16792  psm_LDFLAGS="$psm_LDFLAGS -L$fi_check_package_libdir/lib64"
16793                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
16794                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
16795$as_echo "looking for library in lib64" >&6; }
16796                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16797$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16798if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16799  $as_echo_n "(cached) " >&6
16800else
16801  ac_check_lib_save_LIBS=$LIBS
16802LIBS="-lpsm_infinipath  $LIBS"
16803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804/* end confdefs.h.  */
16805
16806/* Override any GCC internal prototype to avoid an error.
16807   Use char because int might match the return type of a GCC
16808   builtin and then its argument prototype would still apply.  */
16809#ifdef __cplusplus
16810extern "C"
16811#endif
16812char psm_init ();
16813int
16814main ()
16815{
16816return psm_init ();
16817  ;
16818  return 0;
16819}
16820_ACEOF
16821if ac_fn_c_try_link "$LINENO"; then :
16822  ac_cv_lib_psm_infinipath_psm_init=yes
16823else
16824  ac_cv_lib_psm_infinipath_psm_init=no
16825fi
16826rm -f core conftest.err conftest.$ac_objext \
16827    conftest$ac_exeext conftest.$ac_ext
16828LIBS=$ac_check_lib_save_LIBS
16829fi
16830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16831$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16832if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16833  fi_check_package_lib_happy="yes"
16834else
16835  fi_check_package_lib_happy="no"
16836fi
16837
16838                     if test "$fi_check_package_lib_happy" = "no"; then :
16839   # no go on the as is..  see what happens later...
16840                          LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16841                          psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16842                          unset ac_cv_lib_psm_infinipath_psm_init
16843fi
16844fi
16845fi
16846
16847           if test "$fi_check_package_lib_happy" = "no"; then :
16848  if test "$fi_check_package_libdir" != ""; then :
16849  psm_LDFLAGS="$psm_LDFLAGS -L$fi_check_package_libdir/lib"
16850                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
16851                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
16852$as_echo "looking for library in lib" >&6; }
16853                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_init in -lpsm_infinipath" >&5
16854$as_echo_n "checking for psm_init in -lpsm_infinipath... " >&6; }
16855if ${ac_cv_lib_psm_infinipath_psm_init+:} false; then :
16856  $as_echo_n "(cached) " >&6
16857else
16858  ac_check_lib_save_LIBS=$LIBS
16859LIBS="-lpsm_infinipath  $LIBS"
16860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h.  */
16862
16863/* Override any GCC internal prototype to avoid an error.
16864   Use char because int might match the return type of a GCC
16865   builtin and then its argument prototype would still apply.  */
16866#ifdef __cplusplus
16867extern "C"
16868#endif
16869char psm_init ();
16870int
16871main ()
16872{
16873return psm_init ();
16874  ;
16875  return 0;
16876}
16877_ACEOF
16878if ac_fn_c_try_link "$LINENO"; then :
16879  ac_cv_lib_psm_infinipath_psm_init=yes
16880else
16881  ac_cv_lib_psm_infinipath_psm_init=no
16882fi
16883rm -f core conftest.err conftest.$ac_objext \
16884    conftest$ac_exeext conftest.$ac_ext
16885LIBS=$ac_check_lib_save_LIBS
16886fi
16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_init" >&5
16888$as_echo "$ac_cv_lib_psm_infinipath_psm_init" >&6; }
16889if test "x$ac_cv_lib_psm_infinipath_psm_init" = xyes; then :
16890  fi_check_package_lib_happy="yes"
16891else
16892  fi_check_package_lib_happy="no"
16893fi
16894
16895                     if test "$fi_check_package_lib_happy" = "no"; then :
16896   # no go on the as is..  see what happens later...
16897                          LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16898                          psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16899                          unset ac_cv_lib_psm_infinipath_psm_init
16900fi
16901fi
16902fi
16903fi
16904
16905    if test "$fi_check_package_lib_happy" = "yes"; then :
16906  psm_LIBS="-lpsm_infinipath "
16907           fi_check_package_happy="yes"
16908else
16909  fi_check_package_happy="no"
16910fi
16911
16912
16913fi
16914    unset fi_check_package_header_happy
16915
16916
16917
16918    if test "$fi_check_package_happy" = "yes"; then :
16919  psm_happy=1
16920else
16921  psm_CPPFLAGS="$fi_check_package_psm_orig_CPPFLAGS"
16922           psm_LDFLAGS="$fi_check_package_psm_orig_LDFLAGS"
16923           psm_LIBS="$fi_check_package_psm_orig_LIBS"
16924           psm_happy=0
16925fi
16926
16927
16928
16929
16930
16931    CPPFLAGS="$fi_check_package_psm_save_CPPFLAGS"
16932    LDFLAGS="$fi_check_package_psm_save_LDFLAGS"
16933    LIBS="$fi_check_package_psm_save_LIBS"
16934
16935	       if test $psm_happy -eq 1; then :
16936  LDFLAGS="$LDFLAGS $psm_LDFLAGS"
16937		      CPPFLAGS="$CPPFLAGS $psm_CPPFLAGS"
16938fi
16939	       if test $psm_happy -eq 1; then :
16940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm_am_get_source in -lpsm_infinipath" >&5
16941$as_echo_n "checking for psm_am_get_source in -lpsm_infinipath... " >&6; }
16942if ${ac_cv_lib_psm_infinipath_psm_am_get_source+:} false; then :
16943  $as_echo_n "(cached) " >&6
16944else
16945  ac_check_lib_save_LIBS=$LIBS
16946LIBS="-lpsm_infinipath  $LIBS"
16947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948/* end confdefs.h.  */
16949
16950/* Override any GCC internal prototype to avoid an error.
16951   Use char because int might match the return type of a GCC
16952   builtin and then its argument prototype would still apply.  */
16953#ifdef __cplusplus
16954extern "C"
16955#endif
16956char psm_am_get_source ();
16957int
16958main ()
16959{
16960return psm_am_get_source ();
16961  ;
16962  return 0;
16963}
16964_ACEOF
16965if ac_fn_c_try_link "$LINENO"; then :
16966  ac_cv_lib_psm_infinipath_psm_am_get_source=yes
16967else
16968  ac_cv_lib_psm_infinipath_psm_am_get_source=no
16969fi
16970rm -f core conftest.err conftest.$ac_objext \
16971    conftest$ac_exeext conftest.$ac_ext
16972LIBS=$ac_check_lib_save_LIBS
16973fi
16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm_infinipath_psm_am_get_source" >&5
16975$as_echo "$ac_cv_lib_psm_infinipath_psm_am_get_source" >&6; }
16976if test "x$ac_cv_lib_psm_infinipath_psm_am_get_source" = xyes; then :
16977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: PSM version is not 1.x" >&5
16978$as_echo "PSM version is not 1.x" >&6; }; psm_happy=0
16979else
16980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: PSM version is 1.x" >&5
16981$as_echo "PSM version is 1.x" >&6; }
16982fi
16983
16984
16985fi
16986	       if test $psm_happy -eq 1; then :
16987  ac_fn_c_check_type "$LINENO" "psm_epconn_t" "ac_cv_type_psm_epconn_t" "#include <psm.h>
16988"
16989if test "x$ac_cv_type_psm_epconn_t" = xyes; then :
16990
16991else
16992  psm_happy=0
16993fi
16994
16995fi
16996
16997fi
16998
16999	if test $psm_happy -eq 1; then :
17000  psm_happy=1
17001else
17002  psm_happy=0
17003fi
17004
17005	# Reset CPPFLAGS and LDFLAGS back to their original values and
17006	# tidy up
17007	CPPFLAGS=$psm_CPPFLAGS_SAVE
17008	unset psm_CPPFLAGS_SAVE
17009	LDFLAGS=$psm_LDFLAGS_SAVE
17010	unset psm_LDFLAGS_SAVE
17011
17012
17013
17014
17015
17016
17017
17018	# See if the provider configured successfully
17019	if test $psm_happy -eq 1; then :
17020  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD psm"
17021		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
17022
17023	 FI_PC_CFLAGS="$FI_PC_CFLAGS $psm_CFLAGS $psm_CPPFLAGS"
17024	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $psm_LDFLAGS $psm_LIBS"
17025
17026		 if test $psm_dl -eq 1; then :
17027  PROVIDERS_DL="prov/psm/libpsm.la $PROVIDERS_DL"
17028			 if test x"$enable_static" = x"yes" &&
17029				test x"$enable_shared" = x"no"; then :
17030  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: psm provider was selected to be built as DL" >&5
17031$as_echo "$as_me: WARNING: psm provider was selected to be built as DL" >&2;}
17032				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
17033$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
17034				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
17035fi
17036			 { $as_echo "$as_me:${as_lineno-$LINENO}: psm provider: build as plugin" >&5
17037$as_echo "$as_me: psm provider: build as plugin" >&6;}
17038
17039			 # See if this provider has a specfile that
17040			 # needs to be generated
17041			 ac_config_files="$ac_config_files prov/psm/libfabric-psm.spec"
17042
17043
17044else
17045  PROVIDERS_STATIC="prov/psm/libpsm.la $PROVIDERS_STATIC"
17046			 { $as_echo "$as_me:${as_lineno-$LINENO}: psm provider: include in libfabric" >&5
17047$as_echo "$as_me: psm provider: include in libfabric" >&6;}
17048fi
17049
17050else
17051  { $as_echo "$as_me:${as_lineno-$LINENO}: psm provider: disabled" >&5
17052$as_echo "$as_me: psm provider: disabled" >&6;}
17053fi
17054
17055
17056cat >>confdefs.h <<_ACEOF
17057#define HAVE_PSM $psm_happy
17058_ACEOF
17059
17060
17061cat >>confdefs.h <<_ACEOF
17062#define HAVE_PSM_DL $psm_dl
17063_ACEOF
17064
17065
17066	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
17067	# as well as AC defines
17068	 if test $psm_happy -eq 1; then
17069  HAVE_PSM_TRUE=
17070  HAVE_PSM_FALSE='#'
17071else
17072  HAVE_PSM_TRUE='#'
17073  HAVE_PSM_FALSE=
17074fi
17075
17076	 if test $psm_dl -eq 1; then
17077  HAVE_PSM_DL_TRUE=
17078  HAVE_PSM_DL_FALSE='#'
17079else
17080  HAVE_PSM_DL_TRUE='#'
17081  HAVE_PSM_DL_FALSE=
17082fi
17083
17084
17085	# If this provider was specifically requested but we can't
17086	# build it, error.
17087	if test "$enable_psm $psm_happy" = "yes 0"; then :
17088  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: psm provider was requested, but cannot be compiled" >&5
17089$as_echo "$as_me: WARNING: psm provider was requested, but cannot be compiled" >&2;}
17090	       as_fn_error $? "Cannot continue" "$LINENO" 5
17091
17092fi
17093	# If this provider was requested for direct build, ensure that
17094	# provider's fi_direct.h exists in tree. Error otherwise.
17095	if test x"$enable_direct" = x"psm"; then :
17096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/psm/include/rdma/fi_direct.h" >&5
17097$as_echo_n "checking for $srcdir/prov/psm/include/rdma/fi_direct.h... " >&6; }
17098		 if test -f "$srcdir/prov/psm/include/rdma/fi_direct.h"; then :
17099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17100$as_echo "yes" >&6; }
17101else
17102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103$as_echo "no" >&6; }
17104			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/psm/include/rdma/fi_direct.h.in" >&5
17105$as_echo_n "checking for $srcdir/prov/psm/include/rdma/fi_direct.h.in... " >&6; }
17106			 if test -f "$srcdir/prov/psm/include/rdma/fi_direct.h.in"; then :
17107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17108$as_echo "yes" >&6; }
17109else
17110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111$as_echo "no" >&6; }
17112				 as_fn_error $? "psm provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
17113
17114fi
17115fi
17116fi
17117
17118	 if test -f "$srcdir/prov/psm/include/rdma/fi_direct.h.in"; then
17119  FI_DIRECT_H_IN_TRUE=
17120  FI_DIRECT_H_IN_FALSE='#'
17121else
17122  FI_DIRECT_H_IN_TRUE='#'
17123  FI_DIRECT_H_IN_FALSE=
17124fi
17125
17126
17127
17128	# Restore CPPFLAGS/LDFLAGS/LIBS
17129	CPPFLAGS=$psm_orig_CPPFLAGS
17130	unset psm_orig_CPPFLAGS
17131	LDFLAGS=$psm_orig_LDFLAGS
17132	unset psm_orig_LDFLAGS
17133	LIBS=$psm_orig_LIBS
17134	unset psm_orig_LIBS
17135
17136
17137
17138	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"psm2"; then :
17139  enable_psm2=no
17140               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping psm2 provider because $enable_direct direct requested" >&5
17141$as_echo "$as_me: *** Skipping psm2 provider because $enable_direct direct requested" >&6;}
17142else
17143  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring psm2 provider" >&5
17144$as_echo "$as_me: *** Configuring psm2 provider" >&6;}
17145	       # Check whether --enable-psm2 was given.
17146if test "${enable_psm2+set}" = set; then :
17147  enableval=$enable_psm2;
17148else
17149  enable_psm2=auto
17150fi
17151
17152fi
17153
17154	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
17155	# Provider's local macros could use the value if needed.
17156	# Also save LIBS, as a matter of principle.
17157	psm2_orig_CPPFLAGS=$CPPFLAGS
17158	psm2_orig_LDFLAGS=$LDFLAGS
17159	psm2_orig_LIBS=$LIBS
17160
17161	# Check the --enable-<psm2> value
17162	psm2_dl=0
17163	case $enable_psm2 in #(
17164  yes|no) :
17165     ;; #(
17166  dl) :
17167    enable_psm2=yes psm2_dl=1 ;; #(
17168  auto) :
17169     ;; #(
17170  dl:*) :
17171
17172	# Check that the base directory exists
17173	if test ! -d "${enable_psm2:3}"; then :
17174  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_psm2:3}\" does not exist" >&5
17175$as_echo "$as_me: WARNING: supplied directory \"${enable_psm2:3}\" does not exist" >&2;}
17176	        as_fn_error $? "Cannot continue" "$LINENO" 5
17177
17178fi
17179
17180	# Check that base/include exists
17181	 if test -d "${enable_psm2:3}/include"; then :
17182  psm2_PREFIX="${enable_psm2:3}"
17183else
17184  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_psm2:3}\" directory\"" >&5
17185$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_psm2:3}\" directory\"" >&2;}
17186	        as_fn_error $? "Cannot continue" "$LINENO" 5
17187
17188fi
17189
17190	# Check that base/lib or base/lib64 exists
17191	 if test -d "${enable_psm2:3}/lib64"; then :
17192  psm2_LIBDIR="${enable_psm2:3}/lib64"
17193else
17194  if test -d "${enable_psm2:3}/lib"; then :
17195  psm2_LIBDIR="${enable_psm2:3}/lib"
17196else
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_psm2:3}\" directory\"" >&5
17198$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_psm2:3}\" directory\"" >&2;}
17199		       as_fn_error $? "Cannot continue" "$LINENO" 5
17200
17201fi
17202
17203fi
17204
17205		   enable_psm2=yes psm2_dl=1 ;; #(
17206  *) :
17207
17208	# Check that the base directory exists
17209	if test ! -d "$enable_psm2"; then :
17210  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_psm2\" does not exist" >&5
17211$as_echo "$as_me: WARNING: supplied directory \"$enable_psm2\" does not exist" >&2;}
17212	        as_fn_error $? "Cannot continue" "$LINENO" 5
17213
17214fi
17215
17216	# Check that base/include exists
17217	 if test -d "$enable_psm2/include"; then :
17218  psm2_PREFIX="$enable_psm2"
17219else
17220  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_psm2\" directory\"" >&5
17221$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_psm2\" directory\"" >&2;}
17222	        as_fn_error $? "Cannot continue" "$LINENO" 5
17223
17224fi
17225
17226	# Check that base/lib or base/lib64 exists
17227	 if test -d "$enable_psm2/lib64"; then :
17228  psm2_LIBDIR="$enable_psm2/lib64"
17229else
17230  if test -d "$enable_psm2/lib"; then :
17231  psm2_LIBDIR="$enable_psm2/lib"
17232else
17233  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_psm2\" directory\"" >&5
17234$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_psm2\" directory\"" >&2;}
17235		       as_fn_error $? "Cannot continue" "$LINENO" 5
17236
17237fi
17238
17239fi
17240
17241	 enable_psm2=yes
17242	 ;;
17243esac
17244
17245	# Call the provider's CONFIGURE and CONDITIONALS macros
17246
17247
17248
17249
17250# Check whether --with-psm2-src was given.
17251if test "${with_psm2_src+set}" = set; then :
17252  withval=$with_psm2_src;
17253fi
17254
17255
17256
17257# Check whether --with-numa was given.
17258if test "${with_numa+set}" = set; then :
17259  withval=$with_numa;
17260fi
17261
17262
17263# Check whether --enable-psm2_mq_req_user was given.
17264if test "${enable_psm2_mq_req_user+set}" = set; then :
17265  enableval=$enable_psm2_mq_req_user;
17266fi
17267
17268
17269# Check whether --enable-psm2_mq_fp_msg was given.
17270if test "${enable_psm2_mq_fp_msg+set}" = set; then :
17271  enableval=$enable_psm2_mq_fp_msg;
17272fi
17273
17274
17275
17276
17277
17278
17279
17280	 # Determine if we can support the psm2 provider
17281	 psm2_ARCH=$host_cpu
17282	  if test x$psm2_ARCH = xx86_64; then
17283  HAVE_PSM2_X86_64_TRUE=
17284  HAVE_PSM2_X86_64_FALSE='#'
17285else
17286  HAVE_PSM2_X86_64_TRUE='#'
17287  HAVE_PSM2_X86_64_FALSE=
17288fi
17289
17290
17291
17292	 if test x$with_psm2_src = x; then :
17293  have_psm2_src=0
17294else
17295  have_psm2_src=1
17296fi
17297	  if test x$have_psm2_src = x1; then
17298  HAVE_PSM2_SRC_TRUE=
17299  HAVE_PSM2_SRC_FALSE='#'
17300else
17301  HAVE_PSM2_SRC_TRUE='#'
17302  HAVE_PSM2_SRC_FALSE=
17303fi
17304
17305
17306cat >>confdefs.h <<_ACEOF
17307#define HAVE_PSM2_SRC $have_psm2_src
17308_ACEOF
17309
17310	 psm2_happy=0
17311	 have_psm2_am_register_handlers_2=1
17312	 have_psm2_mq_fp_msg=1
17313	 have_psm2_mq_req_user=1
17314	 have_psm2_info_query=1
17315	 if test x"$enable_psm2" != x"no"; then :
17316  if test x$have_psm2_src = x0; then :
17317
17318
17319    fi_check_package_psm2_save_CPPFLAGS="$CPPFLAGS"
17320    fi_check_package_psm2_save_LDFLAGS="$LDFLAGS"
17321    fi_check_package_psm2_save_LIBS="$LIBS"
17322
17323    fi_check_package_psm2_orig_CPPFLAGS="$psm2_CPPFLAGS"
17324    fi_check_package_psm2_orig_LDFLAGS="$psm2_LDFLAGS"
17325    fi_check_package_psm2_orig_LIBS="$psm2_LIBS"
17326
17327
17328    # This is stolen from autoconf to peek under the covers to get the
17329    # cache variable for the library check.
17330
17331
17332    # There's unfortunately no way to get through the progression of
17333    # header includes without killing off the cache variable and
17334    # trying again...
17335    unset ac_cv_header_psm2_h
17336
17337    fi_check_package_header_happy="no"
17338    if test "$psm2_PREFIX" = "/usr" || test "$psm2_PREFIX" = "/usr/local"; then :
17339   # try as is...
17340            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
17341$as_echo "looking for header without includes" >&6; }
17342            for ac_header in psm2.h
17343do :
17344  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
17345if test "x$ac_cv_header_psm2_h" = xyes; then :
17346  cat >>confdefs.h <<_ACEOF
17347#define HAVE_PSM2_H 1
17348_ACEOF
17349 fi_check_package_header_happy="yes"
17350fi
17351
17352done
17353
17354            if test "$fi_check_package_header_happy" = "no"; then :
17355  # no go on the as is - reset the cache and try again
17356                   unset ac_cv_header_psm2_h
17357fi
17358fi
17359
17360    if test "$fi_check_package_header_happy" = "no"; then :
17361  if test "$psm2_PREFIX" != ""; then :
17362  psm2_CPPFLAGS="$psm2_CPPFLAGS -I$psm2_PREFIX/include"
17363                  CPPFLAGS="$CPPFLAGS -I$psm2_PREFIX/include"
17364fi
17365          for ac_header in psm2.h
17366do :
17367  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
17368if test "x$ac_cv_header_psm2_h" = xyes; then :
17369  cat >>confdefs.h <<_ACEOF
17370#define HAVE_PSM2_H 1
17371_ACEOF
17372 fi_check_package_header_happy="yes"
17373fi
17374
17375done
17376
17377          if test "$fi_check_package_header_happy" = "yes"; then :
17378
17379    # This is stolen from autoconf to peek under the covers to get the
17380    # cache variable for the library check.
17381
17382    # See comment above
17383    unset ac_cv_lib_psm2_psm2_info_query
17384    fi_check_package_lib_happy="no"
17385    if test "$psm2_LIBDIR" != ""; then :
17386   # libdir was specified - search only there
17387           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
17388           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
17389           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17390$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17391if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17392  $as_echo_n "(cached) " >&6
17393else
17394  ac_check_lib_save_LIBS=$LIBS
17395LIBS="-lpsm2  $LIBS"
17396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h.  */
17398
17399/* Override any GCC internal prototype to avoid an error.
17400   Use char because int might match the return type of a GCC
17401   builtin and then its argument prototype would still apply.  */
17402#ifdef __cplusplus
17403extern "C"
17404#endif
17405char psm2_info_query ();
17406int
17407main ()
17408{
17409return psm2_info_query ();
17410  ;
17411  return 0;
17412}
17413_ACEOF
17414if ac_fn_c_try_link "$LINENO"; then :
17415  ac_cv_lib_psm2_psm2_info_query=yes
17416else
17417  ac_cv_lib_psm2_psm2_info_query=no
17418fi
17419rm -f core conftest.err conftest.$ac_objext \
17420    conftest$ac_exeext conftest.$ac_ext
17421LIBS=$ac_check_lib_save_LIBS
17422fi
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17424$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17425if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17426  fi_check_package_lib_happy="yes"
17427else
17428  fi_check_package_lib_happy="no"
17429fi
17430
17431           if test "$fi_check_package_lib_happy" = "no"; then :
17432  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17433                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17434                  unset ac_cv_lib_psm2_psm2_info_query
17435fi
17436else
17437   # libdir was not specified - go through search path
17438           fi_check_package_libdir="$psm2_PREFIX"
17439           if test "$fi_check_package_libdir" = "" || \
17440                  test "$fi_check_package_libdir" = "/usr" || \
17441                  test "$fi_check_package_libdir" = "/usr/local"; then :
17442   # try as is...
17443                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
17444$as_echo "looking for library without search path" >&6; }
17445                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17446$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17447if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17448  $as_echo_n "(cached) " >&6
17449else
17450  ac_check_lib_save_LIBS=$LIBS
17451LIBS="-lpsm2  $LIBS"
17452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453/* end confdefs.h.  */
17454
17455/* Override any GCC internal prototype to avoid an error.
17456   Use char because int might match the return type of a GCC
17457   builtin and then its argument prototype would still apply.  */
17458#ifdef __cplusplus
17459extern "C"
17460#endif
17461char psm2_info_query ();
17462int
17463main ()
17464{
17465return psm2_info_query ();
17466  ;
17467  return 0;
17468}
17469_ACEOF
17470if ac_fn_c_try_link "$LINENO"; then :
17471  ac_cv_lib_psm2_psm2_info_query=yes
17472else
17473  ac_cv_lib_psm2_psm2_info_query=no
17474fi
17475rm -f core conftest.err conftest.$ac_objext \
17476    conftest$ac_exeext conftest.$ac_ext
17477LIBS=$ac_check_lib_save_LIBS
17478fi
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17480$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17481if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17482  fi_check_package_lib_happy="yes"
17483else
17484  fi_check_package_lib_happy="no"
17485fi
17486
17487                if test "$fi_check_package_lib_happy" = "no"; then :
17488   # no go on the as is..  see what happens later...
17489                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17490                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17491                     unset ac_cv_lib_psm2_psm2_info_query
17492fi
17493fi
17494
17495           if test "$fi_check_package_lib_happy" = "no"; then :
17496  if test "$fi_check_package_libdir" != ""; then :
17497  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
17498                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
17499                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
17500$as_echo "looking for library in lib64" >&6; }
17501                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17502$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17503if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17504  $as_echo_n "(cached) " >&6
17505else
17506  ac_check_lib_save_LIBS=$LIBS
17507LIBS="-lpsm2  $LIBS"
17508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509/* end confdefs.h.  */
17510
17511/* Override any GCC internal prototype to avoid an error.
17512   Use char because int might match the return type of a GCC
17513   builtin and then its argument prototype would still apply.  */
17514#ifdef __cplusplus
17515extern "C"
17516#endif
17517char psm2_info_query ();
17518int
17519main ()
17520{
17521return psm2_info_query ();
17522  ;
17523  return 0;
17524}
17525_ACEOF
17526if ac_fn_c_try_link "$LINENO"; then :
17527  ac_cv_lib_psm2_psm2_info_query=yes
17528else
17529  ac_cv_lib_psm2_psm2_info_query=no
17530fi
17531rm -f core conftest.err conftest.$ac_objext \
17532    conftest$ac_exeext conftest.$ac_ext
17533LIBS=$ac_check_lib_save_LIBS
17534fi
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17536$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17537if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17538  fi_check_package_lib_happy="yes"
17539else
17540  fi_check_package_lib_happy="no"
17541fi
17542
17543                     if test "$fi_check_package_lib_happy" = "no"; then :
17544   # no go on the as is..  see what happens later...
17545                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17546                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17547                          unset ac_cv_lib_psm2_psm2_info_query
17548fi
17549fi
17550fi
17551
17552           if test "$fi_check_package_lib_happy" = "no"; then :
17553  if test "$fi_check_package_libdir" != ""; then :
17554  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
17555                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
17556                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
17557$as_echo "looking for library in lib" >&6; }
17558                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17559$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17560if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17561  $as_echo_n "(cached) " >&6
17562else
17563  ac_check_lib_save_LIBS=$LIBS
17564LIBS="-lpsm2  $LIBS"
17565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566/* end confdefs.h.  */
17567
17568/* Override any GCC internal prototype to avoid an error.
17569   Use char because int might match the return type of a GCC
17570   builtin and then its argument prototype would still apply.  */
17571#ifdef __cplusplus
17572extern "C"
17573#endif
17574char psm2_info_query ();
17575int
17576main ()
17577{
17578return psm2_info_query ();
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_link "$LINENO"; then :
17584  ac_cv_lib_psm2_psm2_info_query=yes
17585else
17586  ac_cv_lib_psm2_psm2_info_query=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext \
17589    conftest$ac_exeext conftest.$ac_ext
17590LIBS=$ac_check_lib_save_LIBS
17591fi
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17593$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17594if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17595  fi_check_package_lib_happy="yes"
17596else
17597  fi_check_package_lib_happy="no"
17598fi
17599
17600                     if test "$fi_check_package_lib_happy" = "no"; then :
17601   # no go on the as is..  see what happens later...
17602                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17603                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17604                          unset ac_cv_lib_psm2_psm2_info_query
17605fi
17606fi
17607fi
17608fi
17609
17610    if test "$fi_check_package_lib_happy" = "yes"; then :
17611  psm2_LIBS="-lpsm2 "
17612           fi_check_package_happy="yes"
17613else
17614  fi_check_package_happy="no"
17615fi
17616
17617
17618else
17619  fi_check_package_happy="no"
17620fi
17621else
17622
17623    # This is stolen from autoconf to peek under the covers to get the
17624    # cache variable for the library check.
17625
17626    # See comment above
17627    unset ac_cv_lib_psm2_psm2_info_query
17628    fi_check_package_lib_happy="no"
17629    if test "$psm2_LIBDIR" != ""; then :
17630   # libdir was specified - search only there
17631           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
17632           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
17633           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17634$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17635if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17636  $as_echo_n "(cached) " >&6
17637else
17638  ac_check_lib_save_LIBS=$LIBS
17639LIBS="-lpsm2  $LIBS"
17640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641/* end confdefs.h.  */
17642
17643/* Override any GCC internal prototype to avoid an error.
17644   Use char because int might match the return type of a GCC
17645   builtin and then its argument prototype would still apply.  */
17646#ifdef __cplusplus
17647extern "C"
17648#endif
17649char psm2_info_query ();
17650int
17651main ()
17652{
17653return psm2_info_query ();
17654  ;
17655  return 0;
17656}
17657_ACEOF
17658if ac_fn_c_try_link "$LINENO"; then :
17659  ac_cv_lib_psm2_psm2_info_query=yes
17660else
17661  ac_cv_lib_psm2_psm2_info_query=no
17662fi
17663rm -f core conftest.err conftest.$ac_objext \
17664    conftest$ac_exeext conftest.$ac_ext
17665LIBS=$ac_check_lib_save_LIBS
17666fi
17667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17668$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17669if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17670  fi_check_package_lib_happy="yes"
17671else
17672  fi_check_package_lib_happy="no"
17673fi
17674
17675           if test "$fi_check_package_lib_happy" = "no"; then :
17676  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17677                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17678                  unset ac_cv_lib_psm2_psm2_info_query
17679fi
17680else
17681   # libdir was not specified - go through search path
17682           fi_check_package_libdir="$psm2_PREFIX"
17683           if test "$fi_check_package_libdir" = "" || \
17684                  test "$fi_check_package_libdir" = "/usr" || \
17685                  test "$fi_check_package_libdir" = "/usr/local"; then :
17686   # try as is...
17687                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
17688$as_echo "looking for library without search path" >&6; }
17689                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17690$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17691if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17692  $as_echo_n "(cached) " >&6
17693else
17694  ac_check_lib_save_LIBS=$LIBS
17695LIBS="-lpsm2  $LIBS"
17696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697/* end confdefs.h.  */
17698
17699/* Override any GCC internal prototype to avoid an error.
17700   Use char because int might match the return type of a GCC
17701   builtin and then its argument prototype would still apply.  */
17702#ifdef __cplusplus
17703extern "C"
17704#endif
17705char psm2_info_query ();
17706int
17707main ()
17708{
17709return psm2_info_query ();
17710  ;
17711  return 0;
17712}
17713_ACEOF
17714if ac_fn_c_try_link "$LINENO"; then :
17715  ac_cv_lib_psm2_psm2_info_query=yes
17716else
17717  ac_cv_lib_psm2_psm2_info_query=no
17718fi
17719rm -f core conftest.err conftest.$ac_objext \
17720    conftest$ac_exeext conftest.$ac_ext
17721LIBS=$ac_check_lib_save_LIBS
17722fi
17723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17724$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17725if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17726  fi_check_package_lib_happy="yes"
17727else
17728  fi_check_package_lib_happy="no"
17729fi
17730
17731                if test "$fi_check_package_lib_happy" = "no"; then :
17732   # no go on the as is..  see what happens later...
17733                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17734                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17735                     unset ac_cv_lib_psm2_psm2_info_query
17736fi
17737fi
17738
17739           if test "$fi_check_package_lib_happy" = "no"; then :
17740  if test "$fi_check_package_libdir" != ""; then :
17741  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
17742                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
17743                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
17744$as_echo "looking for library in lib64" >&6; }
17745                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17746$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17747if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17748  $as_echo_n "(cached) " >&6
17749else
17750  ac_check_lib_save_LIBS=$LIBS
17751LIBS="-lpsm2  $LIBS"
17752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753/* end confdefs.h.  */
17754
17755/* Override any GCC internal prototype to avoid an error.
17756   Use char because int might match the return type of a GCC
17757   builtin and then its argument prototype would still apply.  */
17758#ifdef __cplusplus
17759extern "C"
17760#endif
17761char psm2_info_query ();
17762int
17763main ()
17764{
17765return psm2_info_query ();
17766  ;
17767  return 0;
17768}
17769_ACEOF
17770if ac_fn_c_try_link "$LINENO"; then :
17771  ac_cv_lib_psm2_psm2_info_query=yes
17772else
17773  ac_cv_lib_psm2_psm2_info_query=no
17774fi
17775rm -f core conftest.err conftest.$ac_objext \
17776    conftest$ac_exeext conftest.$ac_ext
17777LIBS=$ac_check_lib_save_LIBS
17778fi
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17780$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17781if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17782  fi_check_package_lib_happy="yes"
17783else
17784  fi_check_package_lib_happy="no"
17785fi
17786
17787                     if test "$fi_check_package_lib_happy" = "no"; then :
17788   # no go on the as is..  see what happens later...
17789                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17790                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17791                          unset ac_cv_lib_psm2_psm2_info_query
17792fi
17793fi
17794fi
17795
17796           if test "$fi_check_package_lib_happy" = "no"; then :
17797  if test "$fi_check_package_libdir" != ""; then :
17798  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
17799                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
17800                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
17801$as_echo "looking for library in lib" >&6; }
17802                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_info_query in -lpsm2" >&5
17803$as_echo_n "checking for psm2_info_query in -lpsm2... " >&6; }
17804if ${ac_cv_lib_psm2_psm2_info_query+:} false; then :
17805  $as_echo_n "(cached) " >&6
17806else
17807  ac_check_lib_save_LIBS=$LIBS
17808LIBS="-lpsm2  $LIBS"
17809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h.  */
17811
17812/* Override any GCC internal prototype to avoid an error.
17813   Use char because int might match the return type of a GCC
17814   builtin and then its argument prototype would still apply.  */
17815#ifdef __cplusplus
17816extern "C"
17817#endif
17818char psm2_info_query ();
17819int
17820main ()
17821{
17822return psm2_info_query ();
17823  ;
17824  return 0;
17825}
17826_ACEOF
17827if ac_fn_c_try_link "$LINENO"; then :
17828  ac_cv_lib_psm2_psm2_info_query=yes
17829else
17830  ac_cv_lib_psm2_psm2_info_query=no
17831fi
17832rm -f core conftest.err conftest.$ac_objext \
17833    conftest$ac_exeext conftest.$ac_ext
17834LIBS=$ac_check_lib_save_LIBS
17835fi
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_info_query" >&5
17837$as_echo "$ac_cv_lib_psm2_psm2_info_query" >&6; }
17838if test "x$ac_cv_lib_psm2_psm2_info_query" = xyes; then :
17839  fi_check_package_lib_happy="yes"
17840else
17841  fi_check_package_lib_happy="no"
17842fi
17843
17844                     if test "$fi_check_package_lib_happy" = "no"; then :
17845   # no go on the as is..  see what happens later...
17846                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17847                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17848                          unset ac_cv_lib_psm2_psm2_info_query
17849fi
17850fi
17851fi
17852fi
17853
17854    if test "$fi_check_package_lib_happy" = "yes"; then :
17855  psm2_LIBS="-lpsm2 "
17856           fi_check_package_happy="yes"
17857else
17858  fi_check_package_happy="no"
17859fi
17860
17861
17862fi
17863    unset fi_check_package_header_happy
17864
17865
17866
17867    if test "$fi_check_package_happy" = "yes"; then :
17868  psm2_happy=1
17869else
17870  psm2_CPPFLAGS="$fi_check_package_psm2_orig_CPPFLAGS"
17871           psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
17872           psm2_LIBS="$fi_check_package_psm2_orig_LIBS"
17873           psm2_happy=0
17874fi
17875
17876
17877
17878
17879
17880    CPPFLAGS="$fi_check_package_psm2_save_CPPFLAGS"
17881    LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
17882    LIBS="$fi_check_package_psm2_save_LIBS"
17883
17884			if test x$psm2_happy = x0; then :
17885
17886				$as_echo "$as_me: recheck psm2 without psm2_info_query."
17887				have_psm2_info_query=0
17888
17889    fi_check_package_psm2_save_CPPFLAGS="$CPPFLAGS"
17890    fi_check_package_psm2_save_LDFLAGS="$LDFLAGS"
17891    fi_check_package_psm2_save_LIBS="$LIBS"
17892
17893    fi_check_package_psm2_orig_CPPFLAGS="$psm2_CPPFLAGS"
17894    fi_check_package_psm2_orig_LDFLAGS="$psm2_LDFLAGS"
17895    fi_check_package_psm2_orig_LIBS="$psm2_LIBS"
17896
17897
17898    # This is stolen from autoconf to peek under the covers to get the
17899    # cache variable for the library check.
17900
17901
17902    # There's unfortunately no way to get through the progression of
17903    # header includes without killing off the cache variable and
17904    # trying again...
17905    unset ac_cv_header_psm2_h
17906
17907    fi_check_package_header_happy="no"
17908    if test "$psm2_PREFIX" = "/usr" || test "$psm2_PREFIX" = "/usr/local"; then :
17909   # try as is...
17910            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
17911$as_echo "looking for header without includes" >&6; }
17912            for ac_header in psm2.h
17913do :
17914  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
17915if test "x$ac_cv_header_psm2_h" = xyes; then :
17916  cat >>confdefs.h <<_ACEOF
17917#define HAVE_PSM2_H 1
17918_ACEOF
17919 fi_check_package_header_happy="yes"
17920fi
17921
17922done
17923
17924            if test "$fi_check_package_header_happy" = "no"; then :
17925  # no go on the as is - reset the cache and try again
17926                   unset ac_cv_header_psm2_h
17927fi
17928fi
17929
17930    if test "$fi_check_package_header_happy" = "no"; then :
17931  if test "$psm2_PREFIX" != ""; then :
17932  psm2_CPPFLAGS="$psm2_CPPFLAGS -I$psm2_PREFIX/include"
17933                  CPPFLAGS="$CPPFLAGS -I$psm2_PREFIX/include"
17934fi
17935          for ac_header in psm2.h
17936do :
17937  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
17938if test "x$ac_cv_header_psm2_h" = xyes; then :
17939  cat >>confdefs.h <<_ACEOF
17940#define HAVE_PSM2_H 1
17941_ACEOF
17942 fi_check_package_header_happy="yes"
17943fi
17944
17945done
17946
17947          if test "$fi_check_package_header_happy" = "yes"; then :
17948
17949    # This is stolen from autoconf to peek under the covers to get the
17950    # cache variable for the library check.
17951
17952    # See comment above
17953    unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
17954    fi_check_package_lib_happy="no"
17955    if test "$psm2_LIBDIR" != ""; then :
17956   # libdir was specified - search only there
17957           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
17958           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
17959           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
17960$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
17961if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
17962  $as_echo_n "(cached) " >&6
17963else
17964  ac_check_lib_save_LIBS=$LIBS
17965LIBS="-lpsm2  $LIBS"
17966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967/* end confdefs.h.  */
17968
17969/* Override any GCC internal prototype to avoid an error.
17970   Use char because int might match the return type of a GCC
17971   builtin and then its argument prototype would still apply.  */
17972#ifdef __cplusplus
17973extern "C"
17974#endif
17975char psm2_mq_ipeek_dequeue_multi ();
17976int
17977main ()
17978{
17979return psm2_mq_ipeek_dequeue_multi ();
17980  ;
17981  return 0;
17982}
17983_ACEOF
17984if ac_fn_c_try_link "$LINENO"; then :
17985  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
17986else
17987  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
17988fi
17989rm -f core conftest.err conftest.$ac_objext \
17990    conftest$ac_exeext conftest.$ac_ext
17991LIBS=$ac_check_lib_save_LIBS
17992fi
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
17994$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
17995if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
17996  fi_check_package_lib_happy="yes"
17997else
17998  fi_check_package_lib_happy="no"
17999fi
18000
18001           if test "$fi_check_package_lib_happy" = "no"; then :
18002  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18003                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18004                  unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18005fi
18006else
18007   # libdir was not specified - go through search path
18008           fi_check_package_libdir="$psm2_PREFIX"
18009           if test "$fi_check_package_libdir" = "" || \
18010                  test "$fi_check_package_libdir" = "/usr" || \
18011                  test "$fi_check_package_libdir" = "/usr/local"; then :
18012   # try as is...
18013                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
18014$as_echo "looking for library without search path" >&6; }
18015                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18016$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18017if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18018  $as_echo_n "(cached) " >&6
18019else
18020  ac_check_lib_save_LIBS=$LIBS
18021LIBS="-lpsm2  $LIBS"
18022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023/* end confdefs.h.  */
18024
18025/* Override any GCC internal prototype to avoid an error.
18026   Use char because int might match the return type of a GCC
18027   builtin and then its argument prototype would still apply.  */
18028#ifdef __cplusplus
18029extern "C"
18030#endif
18031char psm2_mq_ipeek_dequeue_multi ();
18032int
18033main ()
18034{
18035return psm2_mq_ipeek_dequeue_multi ();
18036  ;
18037  return 0;
18038}
18039_ACEOF
18040if ac_fn_c_try_link "$LINENO"; then :
18041  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18042else
18043  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18044fi
18045rm -f core conftest.err conftest.$ac_objext \
18046    conftest$ac_exeext conftest.$ac_ext
18047LIBS=$ac_check_lib_save_LIBS
18048fi
18049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18050$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18051if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18052  fi_check_package_lib_happy="yes"
18053else
18054  fi_check_package_lib_happy="no"
18055fi
18056
18057                if test "$fi_check_package_lib_happy" = "no"; then :
18058   # no go on the as is..  see what happens later...
18059                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18060                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18061                     unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18062fi
18063fi
18064
18065           if test "$fi_check_package_lib_happy" = "no"; then :
18066  if test "$fi_check_package_libdir" != ""; then :
18067  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
18068                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
18069                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
18070$as_echo "looking for library in lib64" >&6; }
18071                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18072$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18073if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18074  $as_echo_n "(cached) " >&6
18075else
18076  ac_check_lib_save_LIBS=$LIBS
18077LIBS="-lpsm2  $LIBS"
18078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079/* end confdefs.h.  */
18080
18081/* Override any GCC internal prototype to avoid an error.
18082   Use char because int might match the return type of a GCC
18083   builtin and then its argument prototype would still apply.  */
18084#ifdef __cplusplus
18085extern "C"
18086#endif
18087char psm2_mq_ipeek_dequeue_multi ();
18088int
18089main ()
18090{
18091return psm2_mq_ipeek_dequeue_multi ();
18092  ;
18093  return 0;
18094}
18095_ACEOF
18096if ac_fn_c_try_link "$LINENO"; then :
18097  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18098else
18099  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18100fi
18101rm -f core conftest.err conftest.$ac_objext \
18102    conftest$ac_exeext conftest.$ac_ext
18103LIBS=$ac_check_lib_save_LIBS
18104fi
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18106$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18107if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18108  fi_check_package_lib_happy="yes"
18109else
18110  fi_check_package_lib_happy="no"
18111fi
18112
18113                     if test "$fi_check_package_lib_happy" = "no"; then :
18114   # no go on the as is..  see what happens later...
18115                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18116                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18117                          unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18118fi
18119fi
18120fi
18121
18122           if test "$fi_check_package_lib_happy" = "no"; then :
18123  if test "$fi_check_package_libdir" != ""; then :
18124  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
18125                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
18126                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
18127$as_echo "looking for library in lib" >&6; }
18128                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18129$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18130if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18131  $as_echo_n "(cached) " >&6
18132else
18133  ac_check_lib_save_LIBS=$LIBS
18134LIBS="-lpsm2  $LIBS"
18135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136/* end confdefs.h.  */
18137
18138/* Override any GCC internal prototype to avoid an error.
18139   Use char because int might match the return type of a GCC
18140   builtin and then its argument prototype would still apply.  */
18141#ifdef __cplusplus
18142extern "C"
18143#endif
18144char psm2_mq_ipeek_dequeue_multi ();
18145int
18146main ()
18147{
18148return psm2_mq_ipeek_dequeue_multi ();
18149  ;
18150  return 0;
18151}
18152_ACEOF
18153if ac_fn_c_try_link "$LINENO"; then :
18154  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18155else
18156  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18157fi
18158rm -f core conftest.err conftest.$ac_objext \
18159    conftest$ac_exeext conftest.$ac_ext
18160LIBS=$ac_check_lib_save_LIBS
18161fi
18162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18163$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18164if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18165  fi_check_package_lib_happy="yes"
18166else
18167  fi_check_package_lib_happy="no"
18168fi
18169
18170                     if test "$fi_check_package_lib_happy" = "no"; then :
18171   # no go on the as is..  see what happens later...
18172                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18173                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18174                          unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18175fi
18176fi
18177fi
18178fi
18179
18180    if test "$fi_check_package_lib_happy" = "yes"; then :
18181  psm2_LIBS="-lpsm2 "
18182           fi_check_package_happy="yes"
18183else
18184  fi_check_package_happy="no"
18185fi
18186
18187
18188else
18189  fi_check_package_happy="no"
18190fi
18191else
18192
18193    # This is stolen from autoconf to peek under the covers to get the
18194    # cache variable for the library check.
18195
18196    # See comment above
18197    unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18198    fi_check_package_lib_happy="no"
18199    if test "$psm2_LIBDIR" != ""; then :
18200   # libdir was specified - search only there
18201           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
18202           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
18203           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18204$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18205if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18206  $as_echo_n "(cached) " >&6
18207else
18208  ac_check_lib_save_LIBS=$LIBS
18209LIBS="-lpsm2  $LIBS"
18210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211/* end confdefs.h.  */
18212
18213/* Override any GCC internal prototype to avoid an error.
18214   Use char because int might match the return type of a GCC
18215   builtin and then its argument prototype would still apply.  */
18216#ifdef __cplusplus
18217extern "C"
18218#endif
18219char psm2_mq_ipeek_dequeue_multi ();
18220int
18221main ()
18222{
18223return psm2_mq_ipeek_dequeue_multi ();
18224  ;
18225  return 0;
18226}
18227_ACEOF
18228if ac_fn_c_try_link "$LINENO"; then :
18229  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18230else
18231  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18232fi
18233rm -f core conftest.err conftest.$ac_objext \
18234    conftest$ac_exeext conftest.$ac_ext
18235LIBS=$ac_check_lib_save_LIBS
18236fi
18237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18238$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18239if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18240  fi_check_package_lib_happy="yes"
18241else
18242  fi_check_package_lib_happy="no"
18243fi
18244
18245           if test "$fi_check_package_lib_happy" = "no"; then :
18246  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18247                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18248                  unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18249fi
18250else
18251   # libdir was not specified - go through search path
18252           fi_check_package_libdir="$psm2_PREFIX"
18253           if test "$fi_check_package_libdir" = "" || \
18254                  test "$fi_check_package_libdir" = "/usr" || \
18255                  test "$fi_check_package_libdir" = "/usr/local"; then :
18256   # try as is...
18257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
18258$as_echo "looking for library without search path" >&6; }
18259                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18260$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18261if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18262  $as_echo_n "(cached) " >&6
18263else
18264  ac_check_lib_save_LIBS=$LIBS
18265LIBS="-lpsm2  $LIBS"
18266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267/* end confdefs.h.  */
18268
18269/* Override any GCC internal prototype to avoid an error.
18270   Use char because int might match the return type of a GCC
18271   builtin and then its argument prototype would still apply.  */
18272#ifdef __cplusplus
18273extern "C"
18274#endif
18275char psm2_mq_ipeek_dequeue_multi ();
18276int
18277main ()
18278{
18279return psm2_mq_ipeek_dequeue_multi ();
18280  ;
18281  return 0;
18282}
18283_ACEOF
18284if ac_fn_c_try_link "$LINENO"; then :
18285  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18286else
18287  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18288fi
18289rm -f core conftest.err conftest.$ac_objext \
18290    conftest$ac_exeext conftest.$ac_ext
18291LIBS=$ac_check_lib_save_LIBS
18292fi
18293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18294$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18295if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18296  fi_check_package_lib_happy="yes"
18297else
18298  fi_check_package_lib_happy="no"
18299fi
18300
18301                if test "$fi_check_package_lib_happy" = "no"; then :
18302   # no go on the as is..  see what happens later...
18303                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18304                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18305                     unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18306fi
18307fi
18308
18309           if test "$fi_check_package_lib_happy" = "no"; then :
18310  if test "$fi_check_package_libdir" != ""; then :
18311  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
18312                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
18313                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
18314$as_echo "looking for library in lib64" >&6; }
18315                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18316$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18317if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18318  $as_echo_n "(cached) " >&6
18319else
18320  ac_check_lib_save_LIBS=$LIBS
18321LIBS="-lpsm2  $LIBS"
18322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323/* end confdefs.h.  */
18324
18325/* Override any GCC internal prototype to avoid an error.
18326   Use char because int might match the return type of a GCC
18327   builtin and then its argument prototype would still apply.  */
18328#ifdef __cplusplus
18329extern "C"
18330#endif
18331char psm2_mq_ipeek_dequeue_multi ();
18332int
18333main ()
18334{
18335return psm2_mq_ipeek_dequeue_multi ();
18336  ;
18337  return 0;
18338}
18339_ACEOF
18340if ac_fn_c_try_link "$LINENO"; then :
18341  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18342else
18343  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18344fi
18345rm -f core conftest.err conftest.$ac_objext \
18346    conftest$ac_exeext conftest.$ac_ext
18347LIBS=$ac_check_lib_save_LIBS
18348fi
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18350$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18351if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18352  fi_check_package_lib_happy="yes"
18353else
18354  fi_check_package_lib_happy="no"
18355fi
18356
18357                     if test "$fi_check_package_lib_happy" = "no"; then :
18358   # no go on the as is..  see what happens later...
18359                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18360                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18361                          unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18362fi
18363fi
18364fi
18365
18366           if test "$fi_check_package_lib_happy" = "no"; then :
18367  if test "$fi_check_package_libdir" != ""; then :
18368  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
18369                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
18370                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
18371$as_echo "looking for library in lib" >&6; }
18372                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_ipeek_dequeue_multi in -lpsm2" >&5
18373$as_echo_n "checking for psm2_mq_ipeek_dequeue_multi in -lpsm2... " >&6; }
18374if ${ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi+:} false; then :
18375  $as_echo_n "(cached) " >&6
18376else
18377  ac_check_lib_save_LIBS=$LIBS
18378LIBS="-lpsm2  $LIBS"
18379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380/* end confdefs.h.  */
18381
18382/* Override any GCC internal prototype to avoid an error.
18383   Use char because int might match the return type of a GCC
18384   builtin and then its argument prototype would still apply.  */
18385#ifdef __cplusplus
18386extern "C"
18387#endif
18388char psm2_mq_ipeek_dequeue_multi ();
18389int
18390main ()
18391{
18392return psm2_mq_ipeek_dequeue_multi ();
18393  ;
18394  return 0;
18395}
18396_ACEOF
18397if ac_fn_c_try_link "$LINENO"; then :
18398  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=yes
18399else
18400  ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi=no
18401fi
18402rm -f core conftest.err conftest.$ac_objext \
18403    conftest$ac_exeext conftest.$ac_ext
18404LIBS=$ac_check_lib_save_LIBS
18405fi
18406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&5
18407$as_echo "$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" >&6; }
18408if test "x$ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi" = xyes; then :
18409  fi_check_package_lib_happy="yes"
18410else
18411  fi_check_package_lib_happy="no"
18412fi
18413
18414                     if test "$fi_check_package_lib_happy" = "no"; then :
18415   # no go on the as is..  see what happens later...
18416                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18417                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18418                          unset ac_cv_lib_psm2_psm2_mq_ipeek_dequeue_multi
18419fi
18420fi
18421fi
18422fi
18423
18424    if test "$fi_check_package_lib_happy" = "yes"; then :
18425  psm2_LIBS="-lpsm2 "
18426           fi_check_package_happy="yes"
18427else
18428  fi_check_package_happy="no"
18429fi
18430
18431
18432fi
18433    unset fi_check_package_header_happy
18434
18435
18436
18437    if test "$fi_check_package_happy" = "yes"; then :
18438  psm2_happy=1
18439else
18440  psm2_CPPFLAGS="$fi_check_package_psm2_orig_CPPFLAGS"
18441           psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18442           psm2_LIBS="$fi_check_package_psm2_orig_LIBS"
18443           psm2_happy=0
18444fi
18445
18446
18447
18448
18449
18450    CPPFLAGS="$fi_check_package_psm2_save_CPPFLAGS"
18451    LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18452    LIBS="$fi_check_package_psm2_save_LIBS"
18453
18454
18455fi
18456			if test x$psm2_happy = x0; then :
18457
18458				$as_echo "$as_me: recheck psm2 without psm2_mq_ipeek_dequeue_multi."
18459				have_psm2_mq_req_user=0
18460
18461    fi_check_package_psm2_save_CPPFLAGS="$CPPFLAGS"
18462    fi_check_package_psm2_save_LDFLAGS="$LDFLAGS"
18463    fi_check_package_psm2_save_LIBS="$LIBS"
18464
18465    fi_check_package_psm2_orig_CPPFLAGS="$psm2_CPPFLAGS"
18466    fi_check_package_psm2_orig_LDFLAGS="$psm2_LDFLAGS"
18467    fi_check_package_psm2_orig_LIBS="$psm2_LIBS"
18468
18469
18470    # This is stolen from autoconf to peek under the covers to get the
18471    # cache variable for the library check.
18472
18473
18474    # There's unfortunately no way to get through the progression of
18475    # header includes without killing off the cache variable and
18476    # trying again...
18477    unset ac_cv_header_psm2_h
18478
18479    fi_check_package_header_happy="no"
18480    if test "$psm2_PREFIX" = "/usr" || test "$psm2_PREFIX" = "/usr/local"; then :
18481   # try as is...
18482            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
18483$as_echo "looking for header without includes" >&6; }
18484            for ac_header in psm2.h
18485do :
18486  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
18487if test "x$ac_cv_header_psm2_h" = xyes; then :
18488  cat >>confdefs.h <<_ACEOF
18489#define HAVE_PSM2_H 1
18490_ACEOF
18491 fi_check_package_header_happy="yes"
18492fi
18493
18494done
18495
18496            if test "$fi_check_package_header_happy" = "no"; then :
18497  # no go on the as is - reset the cache and try again
18498                   unset ac_cv_header_psm2_h
18499fi
18500fi
18501
18502    if test "$fi_check_package_header_happy" = "no"; then :
18503  if test "$psm2_PREFIX" != ""; then :
18504  psm2_CPPFLAGS="$psm2_CPPFLAGS -I$psm2_PREFIX/include"
18505                  CPPFLAGS="$CPPFLAGS -I$psm2_PREFIX/include"
18506fi
18507          for ac_header in psm2.h
18508do :
18509  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
18510if test "x$ac_cv_header_psm2_h" = xyes; then :
18511  cat >>confdefs.h <<_ACEOF
18512#define HAVE_PSM2_H 1
18513_ACEOF
18514 fi_check_package_header_happy="yes"
18515fi
18516
18517done
18518
18519          if test "$fi_check_package_header_happy" = "yes"; then :
18520
18521    # This is stolen from autoconf to peek under the covers to get the
18522    # cache variable for the library check.
18523
18524    # See comment above
18525    unset ac_cv_lib_psm2_psm2_mq_fp_msg
18526    fi_check_package_lib_happy="no"
18527    if test "$psm2_LIBDIR" != ""; then :
18528   # libdir was specified - search only there
18529           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
18530           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
18531           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18532$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18533if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18534  $as_echo_n "(cached) " >&6
18535else
18536  ac_check_lib_save_LIBS=$LIBS
18537LIBS="-lpsm2  $LIBS"
18538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539/* end confdefs.h.  */
18540
18541/* Override any GCC internal prototype to avoid an error.
18542   Use char because int might match the return type of a GCC
18543   builtin and then its argument prototype would still apply.  */
18544#ifdef __cplusplus
18545extern "C"
18546#endif
18547char psm2_mq_fp_msg ();
18548int
18549main ()
18550{
18551return psm2_mq_fp_msg ();
18552  ;
18553  return 0;
18554}
18555_ACEOF
18556if ac_fn_c_try_link "$LINENO"; then :
18557  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18558else
18559  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18560fi
18561rm -f core conftest.err conftest.$ac_objext \
18562    conftest$ac_exeext conftest.$ac_ext
18563LIBS=$ac_check_lib_save_LIBS
18564fi
18565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18566$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18567if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18568  fi_check_package_lib_happy="yes"
18569else
18570  fi_check_package_lib_happy="no"
18571fi
18572
18573           if test "$fi_check_package_lib_happy" = "no"; then :
18574  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18575                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18576                  unset ac_cv_lib_psm2_psm2_mq_fp_msg
18577fi
18578else
18579   # libdir was not specified - go through search path
18580           fi_check_package_libdir="$psm2_PREFIX"
18581           if test "$fi_check_package_libdir" = "" || \
18582                  test "$fi_check_package_libdir" = "/usr" || \
18583                  test "$fi_check_package_libdir" = "/usr/local"; then :
18584   # try as is...
18585                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
18586$as_echo "looking for library without search path" >&6; }
18587                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18588$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18589if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18590  $as_echo_n "(cached) " >&6
18591else
18592  ac_check_lib_save_LIBS=$LIBS
18593LIBS="-lpsm2  $LIBS"
18594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595/* end confdefs.h.  */
18596
18597/* Override any GCC internal prototype to avoid an error.
18598   Use char because int might match the return type of a GCC
18599   builtin and then its argument prototype would still apply.  */
18600#ifdef __cplusplus
18601extern "C"
18602#endif
18603char psm2_mq_fp_msg ();
18604int
18605main ()
18606{
18607return psm2_mq_fp_msg ();
18608  ;
18609  return 0;
18610}
18611_ACEOF
18612if ac_fn_c_try_link "$LINENO"; then :
18613  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18614else
18615  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18616fi
18617rm -f core conftest.err conftest.$ac_objext \
18618    conftest$ac_exeext conftest.$ac_ext
18619LIBS=$ac_check_lib_save_LIBS
18620fi
18621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18622$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18623if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18624  fi_check_package_lib_happy="yes"
18625else
18626  fi_check_package_lib_happy="no"
18627fi
18628
18629                if test "$fi_check_package_lib_happy" = "no"; then :
18630   # no go on the as is..  see what happens later...
18631                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18632                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18633                     unset ac_cv_lib_psm2_psm2_mq_fp_msg
18634fi
18635fi
18636
18637           if test "$fi_check_package_lib_happy" = "no"; then :
18638  if test "$fi_check_package_libdir" != ""; then :
18639  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
18640                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
18641                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
18642$as_echo "looking for library in lib64" >&6; }
18643                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18644$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18645if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18646  $as_echo_n "(cached) " >&6
18647else
18648  ac_check_lib_save_LIBS=$LIBS
18649LIBS="-lpsm2  $LIBS"
18650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651/* end confdefs.h.  */
18652
18653/* Override any GCC internal prototype to avoid an error.
18654   Use char because int might match the return type of a GCC
18655   builtin and then its argument prototype would still apply.  */
18656#ifdef __cplusplus
18657extern "C"
18658#endif
18659char psm2_mq_fp_msg ();
18660int
18661main ()
18662{
18663return psm2_mq_fp_msg ();
18664  ;
18665  return 0;
18666}
18667_ACEOF
18668if ac_fn_c_try_link "$LINENO"; then :
18669  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18670else
18671  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18672fi
18673rm -f core conftest.err conftest.$ac_objext \
18674    conftest$ac_exeext conftest.$ac_ext
18675LIBS=$ac_check_lib_save_LIBS
18676fi
18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18678$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18679if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18680  fi_check_package_lib_happy="yes"
18681else
18682  fi_check_package_lib_happy="no"
18683fi
18684
18685                     if test "$fi_check_package_lib_happy" = "no"; then :
18686   # no go on the as is..  see what happens later...
18687                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18688                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18689                          unset ac_cv_lib_psm2_psm2_mq_fp_msg
18690fi
18691fi
18692fi
18693
18694           if test "$fi_check_package_lib_happy" = "no"; then :
18695  if test "$fi_check_package_libdir" != ""; then :
18696  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
18697                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
18698                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
18699$as_echo "looking for library in lib" >&6; }
18700                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18701$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18702if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18703  $as_echo_n "(cached) " >&6
18704else
18705  ac_check_lib_save_LIBS=$LIBS
18706LIBS="-lpsm2  $LIBS"
18707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708/* end confdefs.h.  */
18709
18710/* Override any GCC internal prototype to avoid an error.
18711   Use char because int might match the return type of a GCC
18712   builtin and then its argument prototype would still apply.  */
18713#ifdef __cplusplus
18714extern "C"
18715#endif
18716char psm2_mq_fp_msg ();
18717int
18718main ()
18719{
18720return psm2_mq_fp_msg ();
18721  ;
18722  return 0;
18723}
18724_ACEOF
18725if ac_fn_c_try_link "$LINENO"; then :
18726  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18727else
18728  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18729fi
18730rm -f core conftest.err conftest.$ac_objext \
18731    conftest$ac_exeext conftest.$ac_ext
18732LIBS=$ac_check_lib_save_LIBS
18733fi
18734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18735$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18736if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18737  fi_check_package_lib_happy="yes"
18738else
18739  fi_check_package_lib_happy="no"
18740fi
18741
18742                     if test "$fi_check_package_lib_happy" = "no"; then :
18743   # no go on the as is..  see what happens later...
18744                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18745                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18746                          unset ac_cv_lib_psm2_psm2_mq_fp_msg
18747fi
18748fi
18749fi
18750fi
18751
18752    if test "$fi_check_package_lib_happy" = "yes"; then :
18753  psm2_LIBS="-lpsm2 "
18754           fi_check_package_happy="yes"
18755else
18756  fi_check_package_happy="no"
18757fi
18758
18759
18760else
18761  fi_check_package_happy="no"
18762fi
18763else
18764
18765    # This is stolen from autoconf to peek under the covers to get the
18766    # cache variable for the library check.
18767
18768    # See comment above
18769    unset ac_cv_lib_psm2_psm2_mq_fp_msg
18770    fi_check_package_lib_happy="no"
18771    if test "$psm2_LIBDIR" != ""; then :
18772   # libdir was specified - search only there
18773           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
18774           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
18775           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18776$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18777if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18778  $as_echo_n "(cached) " >&6
18779else
18780  ac_check_lib_save_LIBS=$LIBS
18781LIBS="-lpsm2  $LIBS"
18782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783/* end confdefs.h.  */
18784
18785/* Override any GCC internal prototype to avoid an error.
18786   Use char because int might match the return type of a GCC
18787   builtin and then its argument prototype would still apply.  */
18788#ifdef __cplusplus
18789extern "C"
18790#endif
18791char psm2_mq_fp_msg ();
18792int
18793main ()
18794{
18795return psm2_mq_fp_msg ();
18796  ;
18797  return 0;
18798}
18799_ACEOF
18800if ac_fn_c_try_link "$LINENO"; then :
18801  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18802else
18803  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18804fi
18805rm -f core conftest.err conftest.$ac_objext \
18806    conftest$ac_exeext conftest.$ac_ext
18807LIBS=$ac_check_lib_save_LIBS
18808fi
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18810$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18811if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18812  fi_check_package_lib_happy="yes"
18813else
18814  fi_check_package_lib_happy="no"
18815fi
18816
18817           if test "$fi_check_package_lib_happy" = "no"; then :
18818  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18819                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18820                  unset ac_cv_lib_psm2_psm2_mq_fp_msg
18821fi
18822else
18823   # libdir was not specified - go through search path
18824           fi_check_package_libdir="$psm2_PREFIX"
18825           if test "$fi_check_package_libdir" = "" || \
18826                  test "$fi_check_package_libdir" = "/usr" || \
18827                  test "$fi_check_package_libdir" = "/usr/local"; then :
18828   # try as is...
18829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
18830$as_echo "looking for library without search path" >&6; }
18831                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18832$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18833if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18834  $as_echo_n "(cached) " >&6
18835else
18836  ac_check_lib_save_LIBS=$LIBS
18837LIBS="-lpsm2  $LIBS"
18838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839/* end confdefs.h.  */
18840
18841/* Override any GCC internal prototype to avoid an error.
18842   Use char because int might match the return type of a GCC
18843   builtin and then its argument prototype would still apply.  */
18844#ifdef __cplusplus
18845extern "C"
18846#endif
18847char psm2_mq_fp_msg ();
18848int
18849main ()
18850{
18851return psm2_mq_fp_msg ();
18852  ;
18853  return 0;
18854}
18855_ACEOF
18856if ac_fn_c_try_link "$LINENO"; then :
18857  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18858else
18859  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18860fi
18861rm -f core conftest.err conftest.$ac_objext \
18862    conftest$ac_exeext conftest.$ac_ext
18863LIBS=$ac_check_lib_save_LIBS
18864fi
18865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18866$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18867if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18868  fi_check_package_lib_happy="yes"
18869else
18870  fi_check_package_lib_happy="no"
18871fi
18872
18873                if test "$fi_check_package_lib_happy" = "no"; then :
18874   # no go on the as is..  see what happens later...
18875                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18876                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18877                     unset ac_cv_lib_psm2_psm2_mq_fp_msg
18878fi
18879fi
18880
18881           if test "$fi_check_package_lib_happy" = "no"; then :
18882  if test "$fi_check_package_libdir" != ""; then :
18883  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
18884                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
18885                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
18886$as_echo "looking for library in lib64" >&6; }
18887                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18888$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18889if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18890  $as_echo_n "(cached) " >&6
18891else
18892  ac_check_lib_save_LIBS=$LIBS
18893LIBS="-lpsm2  $LIBS"
18894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895/* end confdefs.h.  */
18896
18897/* Override any GCC internal prototype to avoid an error.
18898   Use char because int might match the return type of a GCC
18899   builtin and then its argument prototype would still apply.  */
18900#ifdef __cplusplus
18901extern "C"
18902#endif
18903char psm2_mq_fp_msg ();
18904int
18905main ()
18906{
18907return psm2_mq_fp_msg ();
18908  ;
18909  return 0;
18910}
18911_ACEOF
18912if ac_fn_c_try_link "$LINENO"; then :
18913  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18914else
18915  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18916fi
18917rm -f core conftest.err conftest.$ac_objext \
18918    conftest$ac_exeext conftest.$ac_ext
18919LIBS=$ac_check_lib_save_LIBS
18920fi
18921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18922$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18923if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18924  fi_check_package_lib_happy="yes"
18925else
18926  fi_check_package_lib_happy="no"
18927fi
18928
18929                     if test "$fi_check_package_lib_happy" = "no"; then :
18930   # no go on the as is..  see what happens later...
18931                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18932                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18933                          unset ac_cv_lib_psm2_psm2_mq_fp_msg
18934fi
18935fi
18936fi
18937
18938           if test "$fi_check_package_lib_happy" = "no"; then :
18939  if test "$fi_check_package_libdir" != ""; then :
18940  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
18941                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
18942                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
18943$as_echo "looking for library in lib" >&6; }
18944                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_mq_fp_msg in -lpsm2" >&5
18945$as_echo_n "checking for psm2_mq_fp_msg in -lpsm2... " >&6; }
18946if ${ac_cv_lib_psm2_psm2_mq_fp_msg+:} false; then :
18947  $as_echo_n "(cached) " >&6
18948else
18949  ac_check_lib_save_LIBS=$LIBS
18950LIBS="-lpsm2  $LIBS"
18951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952/* end confdefs.h.  */
18953
18954/* Override any GCC internal prototype to avoid an error.
18955   Use char because int might match the return type of a GCC
18956   builtin and then its argument prototype would still apply.  */
18957#ifdef __cplusplus
18958extern "C"
18959#endif
18960char psm2_mq_fp_msg ();
18961int
18962main ()
18963{
18964return psm2_mq_fp_msg ();
18965  ;
18966  return 0;
18967}
18968_ACEOF
18969if ac_fn_c_try_link "$LINENO"; then :
18970  ac_cv_lib_psm2_psm2_mq_fp_msg=yes
18971else
18972  ac_cv_lib_psm2_psm2_mq_fp_msg=no
18973fi
18974rm -f core conftest.err conftest.$ac_objext \
18975    conftest$ac_exeext conftest.$ac_ext
18976LIBS=$ac_check_lib_save_LIBS
18977fi
18978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_mq_fp_msg" >&5
18979$as_echo "$ac_cv_lib_psm2_psm2_mq_fp_msg" >&6; }
18980if test "x$ac_cv_lib_psm2_psm2_mq_fp_msg" = xyes; then :
18981  fi_check_package_lib_happy="yes"
18982else
18983  fi_check_package_lib_happy="no"
18984fi
18985
18986                     if test "$fi_check_package_lib_happy" = "no"; then :
18987   # no go on the as is..  see what happens later...
18988                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
18989                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
18990                          unset ac_cv_lib_psm2_psm2_mq_fp_msg
18991fi
18992fi
18993fi
18994fi
18995
18996    if test "$fi_check_package_lib_happy" = "yes"; then :
18997  psm2_LIBS="-lpsm2 "
18998           fi_check_package_happy="yes"
18999else
19000  fi_check_package_happy="no"
19001fi
19002
19003
19004fi
19005    unset fi_check_package_header_happy
19006
19007
19008
19009    if test "$fi_check_package_happy" = "yes"; then :
19010  psm2_happy=1
19011else
19012  psm2_CPPFLAGS="$fi_check_package_psm2_orig_CPPFLAGS"
19013           psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19014           psm2_LIBS="$fi_check_package_psm2_orig_LIBS"
19015           psm2_happy=0
19016fi
19017
19018
19019
19020
19021
19022    CPPFLAGS="$fi_check_package_psm2_save_CPPFLAGS"
19023    LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19024    LIBS="$fi_check_package_psm2_save_LIBS"
19025
19026
19027fi
19028			if test x$psm2_happy = x0; then :
19029
19030				$as_echo "$as_me: recheck psm2 without psm2_mq_fp_msg."
19031				have_psm2_mq_fp_msg=0
19032
19033    fi_check_package_psm2_save_CPPFLAGS="$CPPFLAGS"
19034    fi_check_package_psm2_save_LDFLAGS="$LDFLAGS"
19035    fi_check_package_psm2_save_LIBS="$LIBS"
19036
19037    fi_check_package_psm2_orig_CPPFLAGS="$psm2_CPPFLAGS"
19038    fi_check_package_psm2_orig_LDFLAGS="$psm2_LDFLAGS"
19039    fi_check_package_psm2_orig_LIBS="$psm2_LIBS"
19040
19041
19042    # This is stolen from autoconf to peek under the covers to get the
19043    # cache variable for the library check.
19044
19045
19046    # There's unfortunately no way to get through the progression of
19047    # header includes without killing off the cache variable and
19048    # trying again...
19049    unset ac_cv_header_psm2_h
19050
19051    fi_check_package_header_happy="no"
19052    if test "$psm2_PREFIX" = "/usr" || test "$psm2_PREFIX" = "/usr/local"; then :
19053   # try as is...
19054            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
19055$as_echo "looking for header without includes" >&6; }
19056            for ac_header in psm2.h
19057do :
19058  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
19059if test "x$ac_cv_header_psm2_h" = xyes; then :
19060  cat >>confdefs.h <<_ACEOF
19061#define HAVE_PSM2_H 1
19062_ACEOF
19063 fi_check_package_header_happy="yes"
19064fi
19065
19066done
19067
19068            if test "$fi_check_package_header_happy" = "no"; then :
19069  # no go on the as is - reset the cache and try again
19070                   unset ac_cv_header_psm2_h
19071fi
19072fi
19073
19074    if test "$fi_check_package_header_happy" = "no"; then :
19075  if test "$psm2_PREFIX" != ""; then :
19076  psm2_CPPFLAGS="$psm2_CPPFLAGS -I$psm2_PREFIX/include"
19077                  CPPFLAGS="$CPPFLAGS -I$psm2_PREFIX/include"
19078fi
19079          for ac_header in psm2.h
19080do :
19081  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
19082if test "x$ac_cv_header_psm2_h" = xyes; then :
19083  cat >>confdefs.h <<_ACEOF
19084#define HAVE_PSM2_H 1
19085_ACEOF
19086 fi_check_package_header_happy="yes"
19087fi
19088
19089done
19090
19091          if test "$fi_check_package_header_happy" = "yes"; then :
19092
19093    # This is stolen from autoconf to peek under the covers to get the
19094    # cache variable for the library check.
19095
19096    # See comment above
19097    unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19098    fi_check_package_lib_happy="no"
19099    if test "$psm2_LIBDIR" != ""; then :
19100   # libdir was specified - search only there
19101           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
19102           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
19103           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19104$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19105if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19106  $as_echo_n "(cached) " >&6
19107else
19108  ac_check_lib_save_LIBS=$LIBS
19109LIBS="-lpsm2  $LIBS"
19110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111/* end confdefs.h.  */
19112
19113/* Override any GCC internal prototype to avoid an error.
19114   Use char because int might match the return type of a GCC
19115   builtin and then its argument prototype would still apply.  */
19116#ifdef __cplusplus
19117extern "C"
19118#endif
19119char psm2_am_register_handlers_2 ();
19120int
19121main ()
19122{
19123return psm2_am_register_handlers_2 ();
19124  ;
19125  return 0;
19126}
19127_ACEOF
19128if ac_fn_c_try_link "$LINENO"; then :
19129  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19130else
19131  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19132fi
19133rm -f core conftest.err conftest.$ac_objext \
19134    conftest$ac_exeext conftest.$ac_ext
19135LIBS=$ac_check_lib_save_LIBS
19136fi
19137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19138$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19139if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19140  fi_check_package_lib_happy="yes"
19141else
19142  fi_check_package_lib_happy="no"
19143fi
19144
19145           if test "$fi_check_package_lib_happy" = "no"; then :
19146  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19147                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19148                  unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19149fi
19150else
19151   # libdir was not specified - go through search path
19152           fi_check_package_libdir="$psm2_PREFIX"
19153           if test "$fi_check_package_libdir" = "" || \
19154                  test "$fi_check_package_libdir" = "/usr" || \
19155                  test "$fi_check_package_libdir" = "/usr/local"; then :
19156   # try as is...
19157                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
19158$as_echo "looking for library without search path" >&6; }
19159                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19160$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19161if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19162  $as_echo_n "(cached) " >&6
19163else
19164  ac_check_lib_save_LIBS=$LIBS
19165LIBS="-lpsm2  $LIBS"
19166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167/* end confdefs.h.  */
19168
19169/* Override any GCC internal prototype to avoid an error.
19170   Use char because int might match the return type of a GCC
19171   builtin and then its argument prototype would still apply.  */
19172#ifdef __cplusplus
19173extern "C"
19174#endif
19175char psm2_am_register_handlers_2 ();
19176int
19177main ()
19178{
19179return psm2_am_register_handlers_2 ();
19180  ;
19181  return 0;
19182}
19183_ACEOF
19184if ac_fn_c_try_link "$LINENO"; then :
19185  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19186else
19187  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19188fi
19189rm -f core conftest.err conftest.$ac_objext \
19190    conftest$ac_exeext conftest.$ac_ext
19191LIBS=$ac_check_lib_save_LIBS
19192fi
19193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19194$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19195if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19196  fi_check_package_lib_happy="yes"
19197else
19198  fi_check_package_lib_happy="no"
19199fi
19200
19201                if test "$fi_check_package_lib_happy" = "no"; then :
19202   # no go on the as is..  see what happens later...
19203                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19204                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19205                     unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19206fi
19207fi
19208
19209           if test "$fi_check_package_lib_happy" = "no"; then :
19210  if test "$fi_check_package_libdir" != ""; then :
19211  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
19212                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
19213                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
19214$as_echo "looking for library in lib64" >&6; }
19215                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19216$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19217if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19218  $as_echo_n "(cached) " >&6
19219else
19220  ac_check_lib_save_LIBS=$LIBS
19221LIBS="-lpsm2  $LIBS"
19222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223/* end confdefs.h.  */
19224
19225/* Override any GCC internal prototype to avoid an error.
19226   Use char because int might match the return type of a GCC
19227   builtin and then its argument prototype would still apply.  */
19228#ifdef __cplusplus
19229extern "C"
19230#endif
19231char psm2_am_register_handlers_2 ();
19232int
19233main ()
19234{
19235return psm2_am_register_handlers_2 ();
19236  ;
19237  return 0;
19238}
19239_ACEOF
19240if ac_fn_c_try_link "$LINENO"; then :
19241  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19242else
19243  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19244fi
19245rm -f core conftest.err conftest.$ac_objext \
19246    conftest$ac_exeext conftest.$ac_ext
19247LIBS=$ac_check_lib_save_LIBS
19248fi
19249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19250$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19251if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19252  fi_check_package_lib_happy="yes"
19253else
19254  fi_check_package_lib_happy="no"
19255fi
19256
19257                     if test "$fi_check_package_lib_happy" = "no"; then :
19258   # no go on the as is..  see what happens later...
19259                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19260                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19261                          unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19262fi
19263fi
19264fi
19265
19266           if test "$fi_check_package_lib_happy" = "no"; then :
19267  if test "$fi_check_package_libdir" != ""; then :
19268  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
19269                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
19270                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
19271$as_echo "looking for library in lib" >&6; }
19272                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19273$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19274if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19275  $as_echo_n "(cached) " >&6
19276else
19277  ac_check_lib_save_LIBS=$LIBS
19278LIBS="-lpsm2  $LIBS"
19279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280/* end confdefs.h.  */
19281
19282/* Override any GCC internal prototype to avoid an error.
19283   Use char because int might match the return type of a GCC
19284   builtin and then its argument prototype would still apply.  */
19285#ifdef __cplusplus
19286extern "C"
19287#endif
19288char psm2_am_register_handlers_2 ();
19289int
19290main ()
19291{
19292return psm2_am_register_handlers_2 ();
19293  ;
19294  return 0;
19295}
19296_ACEOF
19297if ac_fn_c_try_link "$LINENO"; then :
19298  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19299else
19300  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19301fi
19302rm -f core conftest.err conftest.$ac_objext \
19303    conftest$ac_exeext conftest.$ac_ext
19304LIBS=$ac_check_lib_save_LIBS
19305fi
19306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19307$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19308if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19309  fi_check_package_lib_happy="yes"
19310else
19311  fi_check_package_lib_happy="no"
19312fi
19313
19314                     if test "$fi_check_package_lib_happy" = "no"; then :
19315   # no go on the as is..  see what happens later...
19316                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19317                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19318                          unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19319fi
19320fi
19321fi
19322fi
19323
19324    if test "$fi_check_package_lib_happy" = "yes"; then :
19325  psm2_LIBS="-lpsm2 "
19326           fi_check_package_happy="yes"
19327else
19328  fi_check_package_happy="no"
19329fi
19330
19331
19332else
19333  fi_check_package_happy="no"
19334fi
19335else
19336
19337    # This is stolen from autoconf to peek under the covers to get the
19338    # cache variable for the library check.
19339
19340    # See comment above
19341    unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19342    fi_check_package_lib_happy="no"
19343    if test "$psm2_LIBDIR" != ""; then :
19344   # libdir was specified - search only there
19345           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
19346           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
19347           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19348$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19349if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19350  $as_echo_n "(cached) " >&6
19351else
19352  ac_check_lib_save_LIBS=$LIBS
19353LIBS="-lpsm2  $LIBS"
19354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355/* end confdefs.h.  */
19356
19357/* Override any GCC internal prototype to avoid an error.
19358   Use char because int might match the return type of a GCC
19359   builtin and then its argument prototype would still apply.  */
19360#ifdef __cplusplus
19361extern "C"
19362#endif
19363char psm2_am_register_handlers_2 ();
19364int
19365main ()
19366{
19367return psm2_am_register_handlers_2 ();
19368  ;
19369  return 0;
19370}
19371_ACEOF
19372if ac_fn_c_try_link "$LINENO"; then :
19373  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19374else
19375  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19376fi
19377rm -f core conftest.err conftest.$ac_objext \
19378    conftest$ac_exeext conftest.$ac_ext
19379LIBS=$ac_check_lib_save_LIBS
19380fi
19381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19382$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19383if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19384  fi_check_package_lib_happy="yes"
19385else
19386  fi_check_package_lib_happy="no"
19387fi
19388
19389           if test "$fi_check_package_lib_happy" = "no"; then :
19390  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19391                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19392                  unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19393fi
19394else
19395   # libdir was not specified - go through search path
19396           fi_check_package_libdir="$psm2_PREFIX"
19397           if test "$fi_check_package_libdir" = "" || \
19398                  test "$fi_check_package_libdir" = "/usr" || \
19399                  test "$fi_check_package_libdir" = "/usr/local"; then :
19400   # try as is...
19401                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
19402$as_echo "looking for library without search path" >&6; }
19403                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19404$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19405if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19406  $as_echo_n "(cached) " >&6
19407else
19408  ac_check_lib_save_LIBS=$LIBS
19409LIBS="-lpsm2  $LIBS"
19410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411/* end confdefs.h.  */
19412
19413/* Override any GCC internal prototype to avoid an error.
19414   Use char because int might match the return type of a GCC
19415   builtin and then its argument prototype would still apply.  */
19416#ifdef __cplusplus
19417extern "C"
19418#endif
19419char psm2_am_register_handlers_2 ();
19420int
19421main ()
19422{
19423return psm2_am_register_handlers_2 ();
19424  ;
19425  return 0;
19426}
19427_ACEOF
19428if ac_fn_c_try_link "$LINENO"; then :
19429  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19430else
19431  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19432fi
19433rm -f core conftest.err conftest.$ac_objext \
19434    conftest$ac_exeext conftest.$ac_ext
19435LIBS=$ac_check_lib_save_LIBS
19436fi
19437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19438$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19439if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19440  fi_check_package_lib_happy="yes"
19441else
19442  fi_check_package_lib_happy="no"
19443fi
19444
19445                if test "$fi_check_package_lib_happy" = "no"; then :
19446   # no go on the as is..  see what happens later...
19447                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19448                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19449                     unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19450fi
19451fi
19452
19453           if test "$fi_check_package_lib_happy" = "no"; then :
19454  if test "$fi_check_package_libdir" != ""; then :
19455  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
19456                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
19457                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
19458$as_echo "looking for library in lib64" >&6; }
19459                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19460$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19461if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19462  $as_echo_n "(cached) " >&6
19463else
19464  ac_check_lib_save_LIBS=$LIBS
19465LIBS="-lpsm2  $LIBS"
19466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467/* end confdefs.h.  */
19468
19469/* Override any GCC internal prototype to avoid an error.
19470   Use char because int might match the return type of a GCC
19471   builtin and then its argument prototype would still apply.  */
19472#ifdef __cplusplus
19473extern "C"
19474#endif
19475char psm2_am_register_handlers_2 ();
19476int
19477main ()
19478{
19479return psm2_am_register_handlers_2 ();
19480  ;
19481  return 0;
19482}
19483_ACEOF
19484if ac_fn_c_try_link "$LINENO"; then :
19485  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19486else
19487  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19488fi
19489rm -f core conftest.err conftest.$ac_objext \
19490    conftest$ac_exeext conftest.$ac_ext
19491LIBS=$ac_check_lib_save_LIBS
19492fi
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19494$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19495if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19496  fi_check_package_lib_happy="yes"
19497else
19498  fi_check_package_lib_happy="no"
19499fi
19500
19501                     if test "$fi_check_package_lib_happy" = "no"; then :
19502   # no go on the as is..  see what happens later...
19503                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19504                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19505                          unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19506fi
19507fi
19508fi
19509
19510           if test "$fi_check_package_lib_happy" = "no"; then :
19511  if test "$fi_check_package_libdir" != ""; then :
19512  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
19513                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
19514                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
19515$as_echo "looking for library in lib" >&6; }
19516                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_am_register_handlers_2 in -lpsm2" >&5
19517$as_echo_n "checking for psm2_am_register_handlers_2 in -lpsm2... " >&6; }
19518if ${ac_cv_lib_psm2_psm2_am_register_handlers_2+:} false; then :
19519  $as_echo_n "(cached) " >&6
19520else
19521  ac_check_lib_save_LIBS=$LIBS
19522LIBS="-lpsm2  $LIBS"
19523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19524/* end confdefs.h.  */
19525
19526/* Override any GCC internal prototype to avoid an error.
19527   Use char because int might match the return type of a GCC
19528   builtin and then its argument prototype would still apply.  */
19529#ifdef __cplusplus
19530extern "C"
19531#endif
19532char psm2_am_register_handlers_2 ();
19533int
19534main ()
19535{
19536return psm2_am_register_handlers_2 ();
19537  ;
19538  return 0;
19539}
19540_ACEOF
19541if ac_fn_c_try_link "$LINENO"; then :
19542  ac_cv_lib_psm2_psm2_am_register_handlers_2=yes
19543else
19544  ac_cv_lib_psm2_psm2_am_register_handlers_2=no
19545fi
19546rm -f core conftest.err conftest.$ac_objext \
19547    conftest$ac_exeext conftest.$ac_ext
19548LIBS=$ac_check_lib_save_LIBS
19549fi
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_am_register_handlers_2" >&5
19551$as_echo "$ac_cv_lib_psm2_psm2_am_register_handlers_2" >&6; }
19552if test "x$ac_cv_lib_psm2_psm2_am_register_handlers_2" = xyes; then :
19553  fi_check_package_lib_happy="yes"
19554else
19555  fi_check_package_lib_happy="no"
19556fi
19557
19558                     if test "$fi_check_package_lib_happy" = "no"; then :
19559   # no go on the as is..  see what happens later...
19560                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19561                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19562                          unset ac_cv_lib_psm2_psm2_am_register_handlers_2
19563fi
19564fi
19565fi
19566fi
19567
19568    if test "$fi_check_package_lib_happy" = "yes"; then :
19569  psm2_LIBS="-lpsm2 "
19570           fi_check_package_happy="yes"
19571else
19572  fi_check_package_happy="no"
19573fi
19574
19575
19576fi
19577    unset fi_check_package_header_happy
19578
19579
19580
19581    if test "$fi_check_package_happy" = "yes"; then :
19582  psm2_happy=1
19583else
19584  psm2_CPPFLAGS="$fi_check_package_psm2_orig_CPPFLAGS"
19585           psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19586           psm2_LIBS="$fi_check_package_psm2_orig_LIBS"
19587           psm2_happy=0
19588fi
19589
19590
19591
19592
19593
19594    CPPFLAGS="$fi_check_package_psm2_save_CPPFLAGS"
19595    LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19596    LIBS="$fi_check_package_psm2_save_LIBS"
19597
19598
19599fi
19600			if test x$psm2_happy = x0; then :
19601
19602				$as_echo "$as_me: recheck psm2 without psm2_am_register_handlers_2."
19603				have_psm2_am_register_handlers_2=0
19604
19605    fi_check_package_psm2_save_CPPFLAGS="$CPPFLAGS"
19606    fi_check_package_psm2_save_LDFLAGS="$LDFLAGS"
19607    fi_check_package_psm2_save_LIBS="$LIBS"
19608
19609    fi_check_package_psm2_orig_CPPFLAGS="$psm2_CPPFLAGS"
19610    fi_check_package_psm2_orig_LDFLAGS="$psm2_LDFLAGS"
19611    fi_check_package_psm2_orig_LIBS="$psm2_LIBS"
19612
19613
19614    # This is stolen from autoconf to peek under the covers to get the
19615    # cache variable for the library check.
19616
19617
19618    # There's unfortunately no way to get through the progression of
19619    # header includes without killing off the cache variable and
19620    # trying again...
19621    unset ac_cv_header_psm2_h
19622
19623    fi_check_package_header_happy="no"
19624    if test "$psm2_PREFIX" = "/usr" || test "$psm2_PREFIX" = "/usr/local"; then :
19625   # try as is...
19626            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
19627$as_echo "looking for header without includes" >&6; }
19628            for ac_header in psm2.h
19629do :
19630  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
19631if test "x$ac_cv_header_psm2_h" = xyes; then :
19632  cat >>confdefs.h <<_ACEOF
19633#define HAVE_PSM2_H 1
19634_ACEOF
19635 fi_check_package_header_happy="yes"
19636fi
19637
19638done
19639
19640            if test "$fi_check_package_header_happy" = "no"; then :
19641  # no go on the as is - reset the cache and try again
19642                   unset ac_cv_header_psm2_h
19643fi
19644fi
19645
19646    if test "$fi_check_package_header_happy" = "no"; then :
19647  if test "$psm2_PREFIX" != ""; then :
19648  psm2_CPPFLAGS="$psm2_CPPFLAGS -I$psm2_PREFIX/include"
19649                  CPPFLAGS="$CPPFLAGS -I$psm2_PREFIX/include"
19650fi
19651          for ac_header in psm2.h
19652do :
19653  ac_fn_c_check_header_mongrel "$LINENO" "psm2.h" "ac_cv_header_psm2_h" "$ac_includes_default"
19654if test "x$ac_cv_header_psm2_h" = xyes; then :
19655  cat >>confdefs.h <<_ACEOF
19656#define HAVE_PSM2_H 1
19657_ACEOF
19658 fi_check_package_header_happy="yes"
19659fi
19660
19661done
19662
19663          if test "$fi_check_package_header_happy" = "yes"; then :
19664
19665    # This is stolen from autoconf to peek under the covers to get the
19666    # cache variable for the library check.
19667
19668    # See comment above
19669    unset ac_cv_lib_psm2_psm2_ep_disconnect2
19670    fi_check_package_lib_happy="no"
19671    if test "$psm2_LIBDIR" != ""; then :
19672   # libdir was specified - search only there
19673           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
19674           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
19675           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
19676$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
19677if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
19678  $as_echo_n "(cached) " >&6
19679else
19680  ac_check_lib_save_LIBS=$LIBS
19681LIBS="-lpsm2  $LIBS"
19682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683/* end confdefs.h.  */
19684
19685/* Override any GCC internal prototype to avoid an error.
19686   Use char because int might match the return type of a GCC
19687   builtin and then its argument prototype would still apply.  */
19688#ifdef __cplusplus
19689extern "C"
19690#endif
19691char psm2_ep_disconnect2 ();
19692int
19693main ()
19694{
19695return psm2_ep_disconnect2 ();
19696  ;
19697  return 0;
19698}
19699_ACEOF
19700if ac_fn_c_try_link "$LINENO"; then :
19701  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
19702else
19703  ac_cv_lib_psm2_psm2_ep_disconnect2=no
19704fi
19705rm -f core conftest.err conftest.$ac_objext \
19706    conftest$ac_exeext conftest.$ac_ext
19707LIBS=$ac_check_lib_save_LIBS
19708fi
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
19710$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
19711if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
19712  fi_check_package_lib_happy="yes"
19713else
19714  fi_check_package_lib_happy="no"
19715fi
19716
19717           if test "$fi_check_package_lib_happy" = "no"; then :
19718  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19719                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19720                  unset ac_cv_lib_psm2_psm2_ep_disconnect2
19721fi
19722else
19723   # libdir was not specified - go through search path
19724           fi_check_package_libdir="$psm2_PREFIX"
19725           if test "$fi_check_package_libdir" = "" || \
19726                  test "$fi_check_package_libdir" = "/usr" || \
19727                  test "$fi_check_package_libdir" = "/usr/local"; then :
19728   # try as is...
19729                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
19730$as_echo "looking for library without search path" >&6; }
19731                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
19732$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
19733if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
19734  $as_echo_n "(cached) " >&6
19735else
19736  ac_check_lib_save_LIBS=$LIBS
19737LIBS="-lpsm2  $LIBS"
19738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739/* end confdefs.h.  */
19740
19741/* Override any GCC internal prototype to avoid an error.
19742   Use char because int might match the return type of a GCC
19743   builtin and then its argument prototype would still apply.  */
19744#ifdef __cplusplus
19745extern "C"
19746#endif
19747char psm2_ep_disconnect2 ();
19748int
19749main ()
19750{
19751return psm2_ep_disconnect2 ();
19752  ;
19753  return 0;
19754}
19755_ACEOF
19756if ac_fn_c_try_link "$LINENO"; then :
19757  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
19758else
19759  ac_cv_lib_psm2_psm2_ep_disconnect2=no
19760fi
19761rm -f core conftest.err conftest.$ac_objext \
19762    conftest$ac_exeext conftest.$ac_ext
19763LIBS=$ac_check_lib_save_LIBS
19764fi
19765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
19766$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
19767if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
19768  fi_check_package_lib_happy="yes"
19769else
19770  fi_check_package_lib_happy="no"
19771fi
19772
19773                if test "$fi_check_package_lib_happy" = "no"; then :
19774   # no go on the as is..  see what happens later...
19775                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19776                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19777                     unset ac_cv_lib_psm2_psm2_ep_disconnect2
19778fi
19779fi
19780
19781           if test "$fi_check_package_lib_happy" = "no"; then :
19782  if test "$fi_check_package_libdir" != ""; then :
19783  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
19784                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
19785                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
19786$as_echo "looking for library in lib64" >&6; }
19787                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
19788$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
19789if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
19790  $as_echo_n "(cached) " >&6
19791else
19792  ac_check_lib_save_LIBS=$LIBS
19793LIBS="-lpsm2  $LIBS"
19794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795/* end confdefs.h.  */
19796
19797/* Override any GCC internal prototype to avoid an error.
19798   Use char because int might match the return type of a GCC
19799   builtin and then its argument prototype would still apply.  */
19800#ifdef __cplusplus
19801extern "C"
19802#endif
19803char psm2_ep_disconnect2 ();
19804int
19805main ()
19806{
19807return psm2_ep_disconnect2 ();
19808  ;
19809  return 0;
19810}
19811_ACEOF
19812if ac_fn_c_try_link "$LINENO"; then :
19813  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
19814else
19815  ac_cv_lib_psm2_psm2_ep_disconnect2=no
19816fi
19817rm -f core conftest.err conftest.$ac_objext \
19818    conftest$ac_exeext conftest.$ac_ext
19819LIBS=$ac_check_lib_save_LIBS
19820fi
19821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
19822$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
19823if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
19824  fi_check_package_lib_happy="yes"
19825else
19826  fi_check_package_lib_happy="no"
19827fi
19828
19829                     if test "$fi_check_package_lib_happy" = "no"; then :
19830   # no go on the as is..  see what happens later...
19831                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19832                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19833                          unset ac_cv_lib_psm2_psm2_ep_disconnect2
19834fi
19835fi
19836fi
19837
19838           if test "$fi_check_package_lib_happy" = "no"; then :
19839  if test "$fi_check_package_libdir" != ""; then :
19840  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
19841                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
19842                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
19843$as_echo "looking for library in lib" >&6; }
19844                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
19845$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
19846if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
19847  $as_echo_n "(cached) " >&6
19848else
19849  ac_check_lib_save_LIBS=$LIBS
19850LIBS="-lpsm2  $LIBS"
19851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852/* end confdefs.h.  */
19853
19854/* Override any GCC internal prototype to avoid an error.
19855   Use char because int might match the return type of a GCC
19856   builtin and then its argument prototype would still apply.  */
19857#ifdef __cplusplus
19858extern "C"
19859#endif
19860char psm2_ep_disconnect2 ();
19861int
19862main ()
19863{
19864return psm2_ep_disconnect2 ();
19865  ;
19866  return 0;
19867}
19868_ACEOF
19869if ac_fn_c_try_link "$LINENO"; then :
19870  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
19871else
19872  ac_cv_lib_psm2_psm2_ep_disconnect2=no
19873fi
19874rm -f core conftest.err conftest.$ac_objext \
19875    conftest$ac_exeext conftest.$ac_ext
19876LIBS=$ac_check_lib_save_LIBS
19877fi
19878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
19879$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
19880if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
19881  fi_check_package_lib_happy="yes"
19882else
19883  fi_check_package_lib_happy="no"
19884fi
19885
19886                     if test "$fi_check_package_lib_happy" = "no"; then :
19887   # no go on the as is..  see what happens later...
19888                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19889                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19890                          unset ac_cv_lib_psm2_psm2_ep_disconnect2
19891fi
19892fi
19893fi
19894fi
19895
19896    if test "$fi_check_package_lib_happy" = "yes"; then :
19897  psm2_LIBS="-lpsm2 "
19898           fi_check_package_happy="yes"
19899else
19900  fi_check_package_happy="no"
19901fi
19902
19903
19904else
19905  fi_check_package_happy="no"
19906fi
19907else
19908
19909    # This is stolen from autoconf to peek under the covers to get the
19910    # cache variable for the library check.
19911
19912    # See comment above
19913    unset ac_cv_lib_psm2_psm2_ep_disconnect2
19914    fi_check_package_lib_happy="no"
19915    if test "$psm2_LIBDIR" != ""; then :
19916   # libdir was specified - search only there
19917           psm2_LDFLAGS="$psm2_LDFLAGS -L$psm2_LIBDIR"
19918           LDFLAGS="$LDFLAGS -L$psm2_LIBDIR"
19919           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
19920$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
19921if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
19922  $as_echo_n "(cached) " >&6
19923else
19924  ac_check_lib_save_LIBS=$LIBS
19925LIBS="-lpsm2  $LIBS"
19926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927/* end confdefs.h.  */
19928
19929/* Override any GCC internal prototype to avoid an error.
19930   Use char because int might match the return type of a GCC
19931   builtin and then its argument prototype would still apply.  */
19932#ifdef __cplusplus
19933extern "C"
19934#endif
19935char psm2_ep_disconnect2 ();
19936int
19937main ()
19938{
19939return psm2_ep_disconnect2 ();
19940  ;
19941  return 0;
19942}
19943_ACEOF
19944if ac_fn_c_try_link "$LINENO"; then :
19945  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
19946else
19947  ac_cv_lib_psm2_psm2_ep_disconnect2=no
19948fi
19949rm -f core conftest.err conftest.$ac_objext \
19950    conftest$ac_exeext conftest.$ac_ext
19951LIBS=$ac_check_lib_save_LIBS
19952fi
19953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
19954$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
19955if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
19956  fi_check_package_lib_happy="yes"
19957else
19958  fi_check_package_lib_happy="no"
19959fi
19960
19961           if test "$fi_check_package_lib_happy" = "no"; then :
19962  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
19963                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
19964                  unset ac_cv_lib_psm2_psm2_ep_disconnect2
19965fi
19966else
19967   # libdir was not specified - go through search path
19968           fi_check_package_libdir="$psm2_PREFIX"
19969           if test "$fi_check_package_libdir" = "" || \
19970                  test "$fi_check_package_libdir" = "/usr" || \
19971                  test "$fi_check_package_libdir" = "/usr/local"; then :
19972   # try as is...
19973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
19974$as_echo "looking for library without search path" >&6; }
19975                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
19976$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
19977if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
19978  $as_echo_n "(cached) " >&6
19979else
19980  ac_check_lib_save_LIBS=$LIBS
19981LIBS="-lpsm2  $LIBS"
19982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983/* end confdefs.h.  */
19984
19985/* Override any GCC internal prototype to avoid an error.
19986   Use char because int might match the return type of a GCC
19987   builtin and then its argument prototype would still apply.  */
19988#ifdef __cplusplus
19989extern "C"
19990#endif
19991char psm2_ep_disconnect2 ();
19992int
19993main ()
19994{
19995return psm2_ep_disconnect2 ();
19996  ;
19997  return 0;
19998}
19999_ACEOF
20000if ac_fn_c_try_link "$LINENO"; then :
20001  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
20002else
20003  ac_cv_lib_psm2_psm2_ep_disconnect2=no
20004fi
20005rm -f core conftest.err conftest.$ac_objext \
20006    conftest$ac_exeext conftest.$ac_ext
20007LIBS=$ac_check_lib_save_LIBS
20008fi
20009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
20010$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
20011if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
20012  fi_check_package_lib_happy="yes"
20013else
20014  fi_check_package_lib_happy="no"
20015fi
20016
20017                if test "$fi_check_package_lib_happy" = "no"; then :
20018   # no go on the as is..  see what happens later...
20019                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20020                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20021                     unset ac_cv_lib_psm2_psm2_ep_disconnect2
20022fi
20023fi
20024
20025           if test "$fi_check_package_lib_happy" = "no"; then :
20026  if test "$fi_check_package_libdir" != ""; then :
20027  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
20028                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
20029                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
20030$as_echo "looking for library in lib64" >&6; }
20031                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
20032$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
20033if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
20034  $as_echo_n "(cached) " >&6
20035else
20036  ac_check_lib_save_LIBS=$LIBS
20037LIBS="-lpsm2  $LIBS"
20038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039/* end confdefs.h.  */
20040
20041/* Override any GCC internal prototype to avoid an error.
20042   Use char because int might match the return type of a GCC
20043   builtin and then its argument prototype would still apply.  */
20044#ifdef __cplusplus
20045extern "C"
20046#endif
20047char psm2_ep_disconnect2 ();
20048int
20049main ()
20050{
20051return psm2_ep_disconnect2 ();
20052  ;
20053  return 0;
20054}
20055_ACEOF
20056if ac_fn_c_try_link "$LINENO"; then :
20057  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
20058else
20059  ac_cv_lib_psm2_psm2_ep_disconnect2=no
20060fi
20061rm -f core conftest.err conftest.$ac_objext \
20062    conftest$ac_exeext conftest.$ac_ext
20063LIBS=$ac_check_lib_save_LIBS
20064fi
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
20066$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
20067if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
20068  fi_check_package_lib_happy="yes"
20069else
20070  fi_check_package_lib_happy="no"
20071fi
20072
20073                     if test "$fi_check_package_lib_happy" = "no"; then :
20074   # no go on the as is..  see what happens later...
20075                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20076                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20077                          unset ac_cv_lib_psm2_psm2_ep_disconnect2
20078fi
20079fi
20080fi
20081
20082           if test "$fi_check_package_lib_happy" = "no"; then :
20083  if test "$fi_check_package_libdir" != ""; then :
20084  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
20085                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
20086                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
20087$as_echo "looking for library in lib" >&6; }
20088                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psm2_ep_disconnect2 in -lpsm2" >&5
20089$as_echo_n "checking for psm2_ep_disconnect2 in -lpsm2... " >&6; }
20090if ${ac_cv_lib_psm2_psm2_ep_disconnect2+:} false; then :
20091  $as_echo_n "(cached) " >&6
20092else
20093  ac_check_lib_save_LIBS=$LIBS
20094LIBS="-lpsm2  $LIBS"
20095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096/* end confdefs.h.  */
20097
20098/* Override any GCC internal prototype to avoid an error.
20099   Use char because int might match the return type of a GCC
20100   builtin and then its argument prototype would still apply.  */
20101#ifdef __cplusplus
20102extern "C"
20103#endif
20104char psm2_ep_disconnect2 ();
20105int
20106main ()
20107{
20108return psm2_ep_disconnect2 ();
20109  ;
20110  return 0;
20111}
20112_ACEOF
20113if ac_fn_c_try_link "$LINENO"; then :
20114  ac_cv_lib_psm2_psm2_ep_disconnect2=yes
20115else
20116  ac_cv_lib_psm2_psm2_ep_disconnect2=no
20117fi
20118rm -f core conftest.err conftest.$ac_objext \
20119    conftest$ac_exeext conftest.$ac_ext
20120LIBS=$ac_check_lib_save_LIBS
20121fi
20122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psm2_psm2_ep_disconnect2" >&5
20123$as_echo "$ac_cv_lib_psm2_psm2_ep_disconnect2" >&6; }
20124if test "x$ac_cv_lib_psm2_psm2_ep_disconnect2" = xyes; then :
20125  fi_check_package_lib_happy="yes"
20126else
20127  fi_check_package_lib_happy="no"
20128fi
20129
20130                     if test "$fi_check_package_lib_happy" = "no"; then :
20131   # no go on the as is..  see what happens later...
20132                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20133                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20134                          unset ac_cv_lib_psm2_psm2_ep_disconnect2
20135fi
20136fi
20137fi
20138fi
20139
20140    if test "$fi_check_package_lib_happy" = "yes"; then :
20141  psm2_LIBS="-lpsm2 "
20142           fi_check_package_happy="yes"
20143else
20144  fi_check_package_happy="no"
20145fi
20146
20147
20148fi
20149    unset fi_check_package_header_happy
20150
20151
20152
20153    if test "$fi_check_package_happy" = "yes"; then :
20154  psm2_happy=1
20155else
20156  psm2_CPPFLAGS="$fi_check_package_psm2_orig_CPPFLAGS"
20157           psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20158           psm2_LIBS="$fi_check_package_psm2_orig_LIBS"
20159           psm2_happy=0
20160fi
20161
20162
20163
20164
20165
20166    CPPFLAGS="$fi_check_package_psm2_save_CPPFLAGS"
20167    LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20168    LIBS="$fi_check_package_psm2_save_LIBS"
20169
20170
20171fi
20172
20173else
20174
20175						psm2_happy=1
20176			have_psm2_mq_req_user=1
20177			if test $cc_basename = icc; then :
20178  psm2_CPPFLAGS="-march=core-avx2"
20179else
20180  psm2_CPPFLAGS="-mavx2"
20181fi
20182			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183/* end confdefs.h.  */
20184#include <rdma/hfi/hfi1_user.h>
20185int
20186main ()
20187{
20188
20189							#if HFI1_USER_SWMAJOR != 6
20190							#error "incorrect version of hfi1_user.h"
20191							#endif
20192
20193  ;
20194  return 0;
20195}
20196_ACEOF
20197if ac_fn_c_try_compile "$LINENO"; then :
20198
20199else
20200
20201						$as_echo "$as_me: hfi1_user.h version 6.x not found"
20202						psm2_happy=0
20203
20204fi
20205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20206			if test x$psm2_happy = x1; then :
20207
20208    fi_check_package_psm2_save_CPPFLAGS="$CPPFLAGS"
20209    fi_check_package_psm2_save_LDFLAGS="$LDFLAGS"
20210    fi_check_package_psm2_save_LIBS="$LIBS"
20211
20212    fi_check_package_psm2_orig_CPPFLAGS="$psm2_CPPFLAGS"
20213    fi_check_package_psm2_orig_LDFLAGS="$psm2_LDFLAGS"
20214    fi_check_package_psm2_orig_LIBS="$psm2_LIBS"
20215
20216
20217    # This is stolen from autoconf to peek under the covers to get the
20218    # cache variable for the library check.
20219
20220
20221    # There's unfortunately no way to get through the progression of
20222    # header includes without killing off the cache variable and
20223    # trying again...
20224    unset ac_cv_header_numa_h
20225
20226    fi_check_package_header_happy="no"
20227    if test "$with_numa" = "/usr" || test "$with_numa" = "/usr/local"; then :
20228   # try as is...
20229            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
20230$as_echo "looking for header without includes" >&6; }
20231            for ac_header in numa.h
20232do :
20233  ac_fn_c_check_header_mongrel "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default"
20234if test "x$ac_cv_header_numa_h" = xyes; then :
20235  cat >>confdefs.h <<_ACEOF
20236#define HAVE_NUMA_H 1
20237_ACEOF
20238 fi_check_package_header_happy="yes"
20239fi
20240
20241done
20242
20243            if test "$fi_check_package_header_happy" = "no"; then :
20244  # no go on the as is - reset the cache and try again
20245                   unset ac_cv_header_numa_h
20246fi
20247fi
20248
20249    if test "$fi_check_package_header_happy" = "no"; then :
20250  if test "$with_numa" != ""; then :
20251  psm2_CPPFLAGS="$psm2_CPPFLAGS -I$with_numa/include"
20252                  CPPFLAGS="$CPPFLAGS -I$with_numa/include"
20253fi
20254          for ac_header in numa.h
20255do :
20256  ac_fn_c_check_header_mongrel "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default"
20257if test "x$ac_cv_header_numa_h" = xyes; then :
20258  cat >>confdefs.h <<_ACEOF
20259#define HAVE_NUMA_H 1
20260_ACEOF
20261 fi_check_package_header_happy="yes"
20262fi
20263
20264done
20265
20266          if test "$fi_check_package_header_happy" = "yes"; then :
20267
20268    # This is stolen from autoconf to peek under the covers to get the
20269    # cache variable for the library check.
20270
20271    # See comment above
20272    unset ac_cv_lib_numa_numa_node_of_cpu
20273    fi_check_package_lib_happy="no"
20274    if test "" != ""; then :
20275   # libdir was specified - search only there
20276           psm2_LDFLAGS="$psm2_LDFLAGS -L"
20277           LDFLAGS="$LDFLAGS -L"
20278           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20279$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20280if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20281  $as_echo_n "(cached) " >&6
20282else
20283  ac_check_lib_save_LIBS=$LIBS
20284LIBS="-lnuma  $LIBS"
20285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20286/* end confdefs.h.  */
20287
20288/* Override any GCC internal prototype to avoid an error.
20289   Use char because int might match the return type of a GCC
20290   builtin and then its argument prototype would still apply.  */
20291#ifdef __cplusplus
20292extern "C"
20293#endif
20294char numa_node_of_cpu ();
20295int
20296main ()
20297{
20298return numa_node_of_cpu ();
20299  ;
20300  return 0;
20301}
20302_ACEOF
20303if ac_fn_c_try_link "$LINENO"; then :
20304  ac_cv_lib_numa_numa_node_of_cpu=yes
20305else
20306  ac_cv_lib_numa_numa_node_of_cpu=no
20307fi
20308rm -f core conftest.err conftest.$ac_objext \
20309    conftest$ac_exeext conftest.$ac_ext
20310LIBS=$ac_check_lib_save_LIBS
20311fi
20312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20313$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20314if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20315  fi_check_package_lib_happy="yes"
20316else
20317  fi_check_package_lib_happy="no"
20318fi
20319
20320           if test "$fi_check_package_lib_happy" = "no"; then :
20321  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20322                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20323                  unset ac_cv_lib_numa_numa_node_of_cpu
20324fi
20325else
20326   # libdir was not specified - go through search path
20327           fi_check_package_libdir="$with_numa"
20328           if test "$fi_check_package_libdir" = "" || \
20329                  test "$fi_check_package_libdir" = "/usr" || \
20330                  test "$fi_check_package_libdir" = "/usr/local"; then :
20331   # try as is...
20332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
20333$as_echo "looking for library without search path" >&6; }
20334                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20335$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20336if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20337  $as_echo_n "(cached) " >&6
20338else
20339  ac_check_lib_save_LIBS=$LIBS
20340LIBS="-lnuma  $LIBS"
20341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342/* end confdefs.h.  */
20343
20344/* Override any GCC internal prototype to avoid an error.
20345   Use char because int might match the return type of a GCC
20346   builtin and then its argument prototype would still apply.  */
20347#ifdef __cplusplus
20348extern "C"
20349#endif
20350char numa_node_of_cpu ();
20351int
20352main ()
20353{
20354return numa_node_of_cpu ();
20355  ;
20356  return 0;
20357}
20358_ACEOF
20359if ac_fn_c_try_link "$LINENO"; then :
20360  ac_cv_lib_numa_numa_node_of_cpu=yes
20361else
20362  ac_cv_lib_numa_numa_node_of_cpu=no
20363fi
20364rm -f core conftest.err conftest.$ac_objext \
20365    conftest$ac_exeext conftest.$ac_ext
20366LIBS=$ac_check_lib_save_LIBS
20367fi
20368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20369$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20370if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20371  fi_check_package_lib_happy="yes"
20372else
20373  fi_check_package_lib_happy="no"
20374fi
20375
20376                if test "$fi_check_package_lib_happy" = "no"; then :
20377   # no go on the as is..  see what happens later...
20378                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20379                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20380                     unset ac_cv_lib_numa_numa_node_of_cpu
20381fi
20382fi
20383
20384           if test "$fi_check_package_lib_happy" = "no"; then :
20385  if test "$fi_check_package_libdir" != ""; then :
20386  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
20387                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
20388                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
20389$as_echo "looking for library in lib64" >&6; }
20390                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20391$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20392if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20393  $as_echo_n "(cached) " >&6
20394else
20395  ac_check_lib_save_LIBS=$LIBS
20396LIBS="-lnuma  $LIBS"
20397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398/* end confdefs.h.  */
20399
20400/* Override any GCC internal prototype to avoid an error.
20401   Use char because int might match the return type of a GCC
20402   builtin and then its argument prototype would still apply.  */
20403#ifdef __cplusplus
20404extern "C"
20405#endif
20406char numa_node_of_cpu ();
20407int
20408main ()
20409{
20410return numa_node_of_cpu ();
20411  ;
20412  return 0;
20413}
20414_ACEOF
20415if ac_fn_c_try_link "$LINENO"; then :
20416  ac_cv_lib_numa_numa_node_of_cpu=yes
20417else
20418  ac_cv_lib_numa_numa_node_of_cpu=no
20419fi
20420rm -f core conftest.err conftest.$ac_objext \
20421    conftest$ac_exeext conftest.$ac_ext
20422LIBS=$ac_check_lib_save_LIBS
20423fi
20424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20425$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20426if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20427  fi_check_package_lib_happy="yes"
20428else
20429  fi_check_package_lib_happy="no"
20430fi
20431
20432                     if test "$fi_check_package_lib_happy" = "no"; then :
20433   # no go on the as is..  see what happens later...
20434                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20435                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20436                          unset ac_cv_lib_numa_numa_node_of_cpu
20437fi
20438fi
20439fi
20440
20441           if test "$fi_check_package_lib_happy" = "no"; then :
20442  if test "$fi_check_package_libdir" != ""; then :
20443  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
20444                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
20445                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
20446$as_echo "looking for library in lib" >&6; }
20447                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20448$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20449if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20450  $as_echo_n "(cached) " >&6
20451else
20452  ac_check_lib_save_LIBS=$LIBS
20453LIBS="-lnuma  $LIBS"
20454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455/* end confdefs.h.  */
20456
20457/* Override any GCC internal prototype to avoid an error.
20458   Use char because int might match the return type of a GCC
20459   builtin and then its argument prototype would still apply.  */
20460#ifdef __cplusplus
20461extern "C"
20462#endif
20463char numa_node_of_cpu ();
20464int
20465main ()
20466{
20467return numa_node_of_cpu ();
20468  ;
20469  return 0;
20470}
20471_ACEOF
20472if ac_fn_c_try_link "$LINENO"; then :
20473  ac_cv_lib_numa_numa_node_of_cpu=yes
20474else
20475  ac_cv_lib_numa_numa_node_of_cpu=no
20476fi
20477rm -f core conftest.err conftest.$ac_objext \
20478    conftest$ac_exeext conftest.$ac_ext
20479LIBS=$ac_check_lib_save_LIBS
20480fi
20481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20482$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20483if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20484  fi_check_package_lib_happy="yes"
20485else
20486  fi_check_package_lib_happy="no"
20487fi
20488
20489                     if test "$fi_check_package_lib_happy" = "no"; then :
20490   # no go on the as is..  see what happens later...
20491                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20492                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20493                          unset ac_cv_lib_numa_numa_node_of_cpu
20494fi
20495fi
20496fi
20497fi
20498
20499    if test "$fi_check_package_lib_happy" = "yes"; then :
20500  psm2_LIBS="-lnuma "
20501           fi_check_package_happy="yes"
20502else
20503  fi_check_package_happy="no"
20504fi
20505
20506
20507else
20508  fi_check_package_happy="no"
20509fi
20510else
20511
20512    # This is stolen from autoconf to peek under the covers to get the
20513    # cache variable for the library check.
20514
20515    # See comment above
20516    unset ac_cv_lib_numa_numa_node_of_cpu
20517    fi_check_package_lib_happy="no"
20518    if test "" != ""; then :
20519   # libdir was specified - search only there
20520           psm2_LDFLAGS="$psm2_LDFLAGS -L"
20521           LDFLAGS="$LDFLAGS -L"
20522           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20523$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20524if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20525  $as_echo_n "(cached) " >&6
20526else
20527  ac_check_lib_save_LIBS=$LIBS
20528LIBS="-lnuma  $LIBS"
20529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530/* end confdefs.h.  */
20531
20532/* Override any GCC internal prototype to avoid an error.
20533   Use char because int might match the return type of a GCC
20534   builtin and then its argument prototype would still apply.  */
20535#ifdef __cplusplus
20536extern "C"
20537#endif
20538char numa_node_of_cpu ();
20539int
20540main ()
20541{
20542return numa_node_of_cpu ();
20543  ;
20544  return 0;
20545}
20546_ACEOF
20547if ac_fn_c_try_link "$LINENO"; then :
20548  ac_cv_lib_numa_numa_node_of_cpu=yes
20549else
20550  ac_cv_lib_numa_numa_node_of_cpu=no
20551fi
20552rm -f core conftest.err conftest.$ac_objext \
20553    conftest$ac_exeext conftest.$ac_ext
20554LIBS=$ac_check_lib_save_LIBS
20555fi
20556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20557$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20558if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20559  fi_check_package_lib_happy="yes"
20560else
20561  fi_check_package_lib_happy="no"
20562fi
20563
20564           if test "$fi_check_package_lib_happy" = "no"; then :
20565  LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20566                  psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20567                  unset ac_cv_lib_numa_numa_node_of_cpu
20568fi
20569else
20570   # libdir was not specified - go through search path
20571           fi_check_package_libdir="$with_numa"
20572           if test "$fi_check_package_libdir" = "" || \
20573                  test "$fi_check_package_libdir" = "/usr" || \
20574                  test "$fi_check_package_libdir" = "/usr/local"; then :
20575   # try as is...
20576                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
20577$as_echo "looking for library without search path" >&6; }
20578                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20579$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20580if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20581  $as_echo_n "(cached) " >&6
20582else
20583  ac_check_lib_save_LIBS=$LIBS
20584LIBS="-lnuma  $LIBS"
20585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20586/* end confdefs.h.  */
20587
20588/* Override any GCC internal prototype to avoid an error.
20589   Use char because int might match the return type of a GCC
20590   builtin and then its argument prototype would still apply.  */
20591#ifdef __cplusplus
20592extern "C"
20593#endif
20594char numa_node_of_cpu ();
20595int
20596main ()
20597{
20598return numa_node_of_cpu ();
20599  ;
20600  return 0;
20601}
20602_ACEOF
20603if ac_fn_c_try_link "$LINENO"; then :
20604  ac_cv_lib_numa_numa_node_of_cpu=yes
20605else
20606  ac_cv_lib_numa_numa_node_of_cpu=no
20607fi
20608rm -f core conftest.err conftest.$ac_objext \
20609    conftest$ac_exeext conftest.$ac_ext
20610LIBS=$ac_check_lib_save_LIBS
20611fi
20612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20613$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20614if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20615  fi_check_package_lib_happy="yes"
20616else
20617  fi_check_package_lib_happy="no"
20618fi
20619
20620                if test "$fi_check_package_lib_happy" = "no"; then :
20621   # no go on the as is..  see what happens later...
20622                     LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20623                     psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20624                     unset ac_cv_lib_numa_numa_node_of_cpu
20625fi
20626fi
20627
20628           if test "$fi_check_package_lib_happy" = "no"; then :
20629  if test "$fi_check_package_libdir" != ""; then :
20630  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib64"
20631                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
20632                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
20633$as_echo "looking for library in lib64" >&6; }
20634                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20635$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20636if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20637  $as_echo_n "(cached) " >&6
20638else
20639  ac_check_lib_save_LIBS=$LIBS
20640LIBS="-lnuma  $LIBS"
20641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20642/* end confdefs.h.  */
20643
20644/* Override any GCC internal prototype to avoid an error.
20645   Use char because int might match the return type of a GCC
20646   builtin and then its argument prototype would still apply.  */
20647#ifdef __cplusplus
20648extern "C"
20649#endif
20650char numa_node_of_cpu ();
20651int
20652main ()
20653{
20654return numa_node_of_cpu ();
20655  ;
20656  return 0;
20657}
20658_ACEOF
20659if ac_fn_c_try_link "$LINENO"; then :
20660  ac_cv_lib_numa_numa_node_of_cpu=yes
20661else
20662  ac_cv_lib_numa_numa_node_of_cpu=no
20663fi
20664rm -f core conftest.err conftest.$ac_objext \
20665    conftest$ac_exeext conftest.$ac_ext
20666LIBS=$ac_check_lib_save_LIBS
20667fi
20668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20669$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20670if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20671  fi_check_package_lib_happy="yes"
20672else
20673  fi_check_package_lib_happy="no"
20674fi
20675
20676                     if test "$fi_check_package_lib_happy" = "no"; then :
20677   # no go on the as is..  see what happens later...
20678                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20679                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20680                          unset ac_cv_lib_numa_numa_node_of_cpu
20681fi
20682fi
20683fi
20684
20685           if test "$fi_check_package_lib_happy" = "no"; then :
20686  if test "$fi_check_package_libdir" != ""; then :
20687  psm2_LDFLAGS="$psm2_LDFLAGS -L$fi_check_package_libdir/lib"
20688                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
20689                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
20690$as_echo "looking for library in lib" >&6; }
20691                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_node_of_cpu in -lnuma" >&5
20692$as_echo_n "checking for numa_node_of_cpu in -lnuma... " >&6; }
20693if ${ac_cv_lib_numa_numa_node_of_cpu+:} false; then :
20694  $as_echo_n "(cached) " >&6
20695else
20696  ac_check_lib_save_LIBS=$LIBS
20697LIBS="-lnuma  $LIBS"
20698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20699/* end confdefs.h.  */
20700
20701/* Override any GCC internal prototype to avoid an error.
20702   Use char because int might match the return type of a GCC
20703   builtin and then its argument prototype would still apply.  */
20704#ifdef __cplusplus
20705extern "C"
20706#endif
20707char numa_node_of_cpu ();
20708int
20709main ()
20710{
20711return numa_node_of_cpu ();
20712  ;
20713  return 0;
20714}
20715_ACEOF
20716if ac_fn_c_try_link "$LINENO"; then :
20717  ac_cv_lib_numa_numa_node_of_cpu=yes
20718else
20719  ac_cv_lib_numa_numa_node_of_cpu=no
20720fi
20721rm -f core conftest.err conftest.$ac_objext \
20722    conftest$ac_exeext conftest.$ac_ext
20723LIBS=$ac_check_lib_save_LIBS
20724fi
20725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_node_of_cpu" >&5
20726$as_echo "$ac_cv_lib_numa_numa_node_of_cpu" >&6; }
20727if test "x$ac_cv_lib_numa_numa_node_of_cpu" = xyes; then :
20728  fi_check_package_lib_happy="yes"
20729else
20730  fi_check_package_lib_happy="no"
20731fi
20732
20733                     if test "$fi_check_package_lib_happy" = "no"; then :
20734   # no go on the as is..  see what happens later...
20735                          LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20736                          psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20737                          unset ac_cv_lib_numa_numa_node_of_cpu
20738fi
20739fi
20740fi
20741fi
20742
20743    if test "$fi_check_package_lib_happy" = "yes"; then :
20744  psm2_LIBS="-lnuma "
20745           fi_check_package_happy="yes"
20746else
20747  fi_check_package_happy="no"
20748fi
20749
20750
20751fi
20752    unset fi_check_package_header_happy
20753
20754
20755
20756    if test "$fi_check_package_happy" = "yes"; then :
20757
20758else
20759  psm2_CPPFLAGS="$fi_check_package_psm2_orig_CPPFLAGS"
20760           psm2_LDFLAGS="$fi_check_package_psm2_orig_LDFLAGS"
20761           psm2_LIBS="$fi_check_package_psm2_orig_LIBS"
20762
20763							$as_echo "$as_me: numactl-devel or libnuma-devel not found"
20764							psm2_happy=0
20765
20766fi
20767
20768
20769
20770
20771
20772    CPPFLAGS="$fi_check_package_psm2_save_CPPFLAGS"
20773    LDFLAGS="$fi_check_package_psm2_save_LDFLAGS"
20774    LIBS="$fi_check_package_psm2_save_LIBS"
20775
20776fi
20777			if test x$psm2_happy = x1; then :
20778  if test -f $with_psm2_src/psm_hal_gen1/opa_common_gen1.h; then :
20779
20780					$as_echo "$as_me: creating links for PSM2 source code."
20781					mkdir -p $srcdir/prov/psm2/src/psm2
20782					cp -srf $with_psm2_src/* $srcdir/prov/psm2/src/psm2/
20783					ln -sf ../include/rbtree.h $srcdir/prov/psm2/src/psm2/ptl_ips/
20784					ln -sf ../include/rbtree.h $srcdir/prov/psm2/src/psm2/ptl_am/
20785
20786					hal_decl_file=$srcdir/prov/psm2/src/psm2/psm2_hal_inlines_d.h
20787					hal_impl_file=$srcdir/prov/psm2/src/psm2/psm2_hal_inlines_i.h
20788					$as_echo "#define PSMI_HAL_INST_CNT 1" >$hal_decl_file
20789					$as_echo "#define PSMI_HAL_INLINE inline" >>$hal_decl_file
20790					$as_echo "#define PSMI_HAL_CAT_INL_SYM(KERNEL) hfp_gen1_##KERNEL" >>$hal_decl_file
20791					$as_echo "#include \"psm2_hal_inline_t.h\"" >>$hal_decl_file
20792					$as_echo "#include \"psm_hal_gen1/psm_hal_inline_i.h\"" >$hal_impl_file
20793
20794else
20795
20796					$as_echo "$as_me: PSM2 source under <$with_psm2_src> is missing or too old."
20797					$as_echo "$as_me: Please get the latest source from https://github.com/intel/opa-psm2."
20798					psm2_happy=0
20799
20800fi
20801
20802fi
20803
20804fi
20805
20806fi
20807	 if test $psm2_happy -eq 1; then :
20808  psm2_happy=1
20809else
20810  psm2_happy=0
20811fi
20812	 if test x"$enable_psm2_mq_fp_msg" != x"yes"; then :
20813  have_psm2_mq_fp_msg=0
20814fi
20815	 if test x"$enable_psm2_mq_req_user" != x"yes"; then :
20816  have_psm2_mq_req_user=0
20817fi
20818
20819cat >>confdefs.h <<_ACEOF
20820#define HAVE_PSM2_AM_REGISTER_HANDLERS_2 $have_psm2_am_register_handlers_2
20821_ACEOF
20822
20823
20824cat >>confdefs.h <<_ACEOF
20825#define HAVE_PSM2_MQ_FP_MSG $have_psm2_mq_fp_msg
20826_ACEOF
20827
20828
20829cat >>confdefs.h <<_ACEOF
20830#define HAVE_PSM2_MQ_REQ_USER $have_psm2_mq_req_user
20831_ACEOF
20832
20833
20834cat >>confdefs.h <<_ACEOF
20835#define HAVE_PSM2_INFO_QUERY $have_psm2_info_query
20836_ACEOF
20837
20838
20839
20840
20841
20842
20843
20844
20845	# See if the provider configured successfully
20846	if test $psm2_happy -eq 1; then :
20847  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD psm2"
20848		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
20849
20850	 FI_PC_CFLAGS="$FI_PC_CFLAGS $psm2_CFLAGS $psm2_CPPFLAGS"
20851	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $psm2_LDFLAGS $psm2_LIBS"
20852
20853		 if test $psm2_dl -eq 1; then :
20854  PROVIDERS_DL="prov/psm2/libpsm2.la $PROVIDERS_DL"
20855			 if test x"$enable_static" = x"yes" &&
20856				test x"$enable_shared" = x"no"; then :
20857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: psm2 provider was selected to be built as DL" >&5
20858$as_echo "$as_me: WARNING: psm2 provider was selected to be built as DL" >&2;}
20859				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
20860$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
20861				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
20862fi
20863			 { $as_echo "$as_me:${as_lineno-$LINENO}: psm2 provider: build as plugin" >&5
20864$as_echo "$as_me: psm2 provider: build as plugin" >&6;}
20865
20866			 # See if this provider has a specfile that
20867			 # needs to be generated
20868			 ac_config_files="$ac_config_files prov/psm2/libfabric-psm2.spec"
20869
20870
20871else
20872  PROVIDERS_STATIC="prov/psm2/libpsm2.la $PROVIDERS_STATIC"
20873			 { $as_echo "$as_me:${as_lineno-$LINENO}: psm2 provider: include in libfabric" >&5
20874$as_echo "$as_me: psm2 provider: include in libfabric" >&6;}
20875fi
20876
20877else
20878  { $as_echo "$as_me:${as_lineno-$LINENO}: psm2 provider: disabled" >&5
20879$as_echo "$as_me: psm2 provider: disabled" >&6;}
20880fi
20881
20882
20883cat >>confdefs.h <<_ACEOF
20884#define HAVE_PSM2 $psm2_happy
20885_ACEOF
20886
20887
20888cat >>confdefs.h <<_ACEOF
20889#define HAVE_PSM2_DL $psm2_dl
20890_ACEOF
20891
20892
20893	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
20894	# as well as AC defines
20895	 if test $psm2_happy -eq 1; then
20896  HAVE_PSM2_TRUE=
20897  HAVE_PSM2_FALSE='#'
20898else
20899  HAVE_PSM2_TRUE='#'
20900  HAVE_PSM2_FALSE=
20901fi
20902
20903	 if test $psm2_dl -eq 1; then
20904  HAVE_PSM2_DL_TRUE=
20905  HAVE_PSM2_DL_FALSE='#'
20906else
20907  HAVE_PSM2_DL_TRUE='#'
20908  HAVE_PSM2_DL_FALSE=
20909fi
20910
20911
20912	# If this provider was specifically requested but we can't
20913	# build it, error.
20914	if test "$enable_psm2 $psm2_happy" = "yes 0"; then :
20915  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: psm2 provider was requested, but cannot be compiled" >&5
20916$as_echo "$as_me: WARNING: psm2 provider was requested, but cannot be compiled" >&2;}
20917	       as_fn_error $? "Cannot continue" "$LINENO" 5
20918
20919fi
20920	# If this provider was requested for direct build, ensure that
20921	# provider's fi_direct.h exists in tree. Error otherwise.
20922	if test x"$enable_direct" = x"psm2"; then :
20923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/psm2/include/rdma/fi_direct.h" >&5
20924$as_echo_n "checking for $srcdir/prov/psm2/include/rdma/fi_direct.h... " >&6; }
20925		 if test -f "$srcdir/prov/psm2/include/rdma/fi_direct.h"; then :
20926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20927$as_echo "yes" >&6; }
20928else
20929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930$as_echo "no" >&6; }
20931			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/psm2/include/rdma/fi_direct.h.in" >&5
20932$as_echo_n "checking for $srcdir/prov/psm2/include/rdma/fi_direct.h.in... " >&6; }
20933			 if test -f "$srcdir/prov/psm2/include/rdma/fi_direct.h.in"; then :
20934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20935$as_echo "yes" >&6; }
20936else
20937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938$as_echo "no" >&6; }
20939				 as_fn_error $? "psm2 provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
20940
20941fi
20942fi
20943fi
20944
20945	 if test -f "$srcdir/prov/psm2/include/rdma/fi_direct.h.in"; then
20946  FI_DIRECT_H_IN_TRUE=
20947  FI_DIRECT_H_IN_FALSE='#'
20948else
20949  FI_DIRECT_H_IN_TRUE='#'
20950  FI_DIRECT_H_IN_FALSE=
20951fi
20952
20953
20954
20955	# Restore CPPFLAGS/LDFLAGS/LIBS
20956	CPPFLAGS=$psm2_orig_CPPFLAGS
20957	unset psm2_orig_CPPFLAGS
20958	LDFLAGS=$psm2_orig_LDFLAGS
20959	unset psm2_orig_LDFLAGS
20960	LIBS=$psm2_orig_LIBS
20961	unset psm2_orig_LIBS
20962
20963
20964
20965	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"sockets"; then :
20966  enable_sockets=no
20967               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping sockets provider because $enable_direct direct requested" >&5
20968$as_echo "$as_me: *** Skipping sockets provider because $enable_direct direct requested" >&6;}
20969else
20970  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring sockets provider" >&5
20971$as_echo "$as_me: *** Configuring sockets provider" >&6;}
20972	       # Check whether --enable-sockets was given.
20973if test "${enable_sockets+set}" = set; then :
20974  enableval=$enable_sockets;
20975else
20976  enable_sockets=auto
20977fi
20978
20979fi
20980
20981	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
20982	# Provider's local macros could use the value if needed.
20983	# Also save LIBS, as a matter of principle.
20984	sockets_orig_CPPFLAGS=$CPPFLAGS
20985	sockets_orig_LDFLAGS=$LDFLAGS
20986	sockets_orig_LIBS=$LIBS
20987
20988	# Check the --enable-<sockets> value
20989	sockets_dl=0
20990	case $enable_sockets in #(
20991  yes|no) :
20992     ;; #(
20993  dl) :
20994    enable_sockets=yes sockets_dl=1 ;; #(
20995  auto) :
20996     ;; #(
20997  dl:*) :
20998
20999	# Check that the base directory exists
21000	if test ! -d "${enable_sockets:3}"; then :
21001  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_sockets:3}\" does not exist" >&5
21002$as_echo "$as_me: WARNING: supplied directory \"${enable_sockets:3}\" does not exist" >&2;}
21003	        as_fn_error $? "Cannot continue" "$LINENO" 5
21004
21005fi
21006
21007	# Check that base/include exists
21008	 if test -d "${enable_sockets:3}/include"; then :
21009  sockets_PREFIX="${enable_sockets:3}"
21010else
21011  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_sockets:3}\" directory\"" >&5
21012$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_sockets:3}\" directory\"" >&2;}
21013	        as_fn_error $? "Cannot continue" "$LINENO" 5
21014
21015fi
21016
21017	# Check that base/lib or base/lib64 exists
21018	 if test -d "${enable_sockets:3}/lib64"; then :
21019  sockets_LIBDIR="${enable_sockets:3}/lib64"
21020else
21021  if test -d "${enable_sockets:3}/lib"; then :
21022  sockets_LIBDIR="${enable_sockets:3}/lib"
21023else
21024  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_sockets:3}\" directory\"" >&5
21025$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_sockets:3}\" directory\"" >&2;}
21026		       as_fn_error $? "Cannot continue" "$LINENO" 5
21027
21028fi
21029
21030fi
21031
21032		   enable_sockets=yes sockets_dl=1 ;; #(
21033  *) :
21034
21035	# Check that the base directory exists
21036	if test ! -d "$enable_sockets"; then :
21037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_sockets\" does not exist" >&5
21038$as_echo "$as_me: WARNING: supplied directory \"$enable_sockets\" does not exist" >&2;}
21039	        as_fn_error $? "Cannot continue" "$LINENO" 5
21040
21041fi
21042
21043	# Check that base/include exists
21044	 if test -d "$enable_sockets/include"; then :
21045  sockets_PREFIX="$enable_sockets"
21046else
21047  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_sockets\" directory\"" >&5
21048$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_sockets\" directory\"" >&2;}
21049	        as_fn_error $? "Cannot continue" "$LINENO" 5
21050
21051fi
21052
21053	# Check that base/lib or base/lib64 exists
21054	 if test -d "$enable_sockets/lib64"; then :
21055  sockets_LIBDIR="$enable_sockets/lib64"
21056else
21057  if test -d "$enable_sockets/lib"; then :
21058  sockets_LIBDIR="$enable_sockets/lib"
21059else
21060  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_sockets\" directory\"" >&5
21061$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_sockets\" directory\"" >&2;}
21062		       as_fn_error $? "Cannot continue" "$LINENO" 5
21063
21064fi
21065
21066fi
21067
21068	 enable_sockets=yes
21069	 ;;
21070esac
21071
21072	# Call the provider's CONFIGURE and CONDITIONALS macros
21073
21074
21075
21076
21077
21078
21079
21080	# Determine if we can support the sockets provider
21081	sockets_h_happy=0
21082	sockets_shm_happy=0
21083	if test x"$enable_sockets" != x"no"; then :
21084  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21085if test "x$ac_cv_header_sys_socket_h" = xyes; then :
21086  sockets_h_happy=1
21087else
21088  sockets_h_happy=0
21089fi
21090
21091
21092
21093
21094	       # check if shm_open is already present
21095	       ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
21096if test "x$ac_cv_func_shm_open" = xyes; then :
21097  sockets_shm_happy=1
21098else
21099  sockets_shm_happy=0
21100fi
21101
21102
21103	       # look for shm_open in librt if not already present
21104	       if test $sockets_shm_happy -eq 0; then :
21105
21106    fi_check_package_sockets_save_CPPFLAGS="$CPPFLAGS"
21107    fi_check_package_sockets_save_LDFLAGS="$LDFLAGS"
21108    fi_check_package_sockets_save_LIBS="$LIBS"
21109
21110    fi_check_package_sockets_orig_CPPFLAGS="$sockets_CPPFLAGS"
21111    fi_check_package_sockets_orig_LDFLAGS="$sockets_LDFLAGS"
21112    fi_check_package_sockets_orig_LIBS="$sockets_LIBS"
21113
21114
21115    # This is stolen from autoconf to peek under the covers to get the
21116    # cache variable for the library check.
21117
21118
21119    # There's unfortunately no way to get through the progression of
21120    # header includes without killing off the cache variable and
21121    # trying again...
21122    unset ac_cv_header_sys_mman_h
21123
21124    fi_check_package_header_happy="no"
21125    if test "" = "/usr" || test "" = "/usr/local"; then :
21126   # try as is...
21127            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
21128$as_echo "looking for header without includes" >&6; }
21129            for ac_header in sys/mman.h
21130do :
21131  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
21132if test "x$ac_cv_header_sys_mman_h" = xyes; then :
21133  cat >>confdefs.h <<_ACEOF
21134#define HAVE_SYS_MMAN_H 1
21135_ACEOF
21136 fi_check_package_header_happy="yes"
21137fi
21138
21139done
21140
21141            if test "$fi_check_package_header_happy" = "no"; then :
21142  # no go on the as is - reset the cache and try again
21143                   unset ac_cv_header_sys_mman_h
21144fi
21145fi
21146
21147    if test "$fi_check_package_header_happy" = "no"; then :
21148  if test "" != ""; then :
21149  sockets_CPPFLAGS="$sockets_CPPFLAGS -I/include"
21150                  CPPFLAGS="$CPPFLAGS -I/include"
21151fi
21152          for ac_header in sys/mman.h
21153do :
21154  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
21155if test "x$ac_cv_header_sys_mman_h" = xyes; then :
21156  cat >>confdefs.h <<_ACEOF
21157#define HAVE_SYS_MMAN_H 1
21158_ACEOF
21159 fi_check_package_header_happy="yes"
21160fi
21161
21162done
21163
21164          if test "$fi_check_package_header_happy" = "yes"; then :
21165
21166    # This is stolen from autoconf to peek under the covers to get the
21167    # cache variable for the library check.
21168
21169    # See comment above
21170    unset ac_cv_lib_rt_shm_open
21171    fi_check_package_lib_happy="no"
21172    if test "" != ""; then :
21173   # libdir was specified - search only there
21174           sockets_LDFLAGS="$sockets_LDFLAGS -L"
21175           LDFLAGS="$LDFLAGS -L"
21176           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21177$as_echo_n "checking for shm_open in -lrt... " >&6; }
21178if ${ac_cv_lib_rt_shm_open+:} false; then :
21179  $as_echo_n "(cached) " >&6
21180else
21181  ac_check_lib_save_LIBS=$LIBS
21182LIBS="-lrt  $LIBS"
21183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184/* end confdefs.h.  */
21185
21186/* Override any GCC internal prototype to avoid an error.
21187   Use char because int might match the return type of a GCC
21188   builtin and then its argument prototype would still apply.  */
21189#ifdef __cplusplus
21190extern "C"
21191#endif
21192char shm_open ();
21193int
21194main ()
21195{
21196return shm_open ();
21197  ;
21198  return 0;
21199}
21200_ACEOF
21201if ac_fn_c_try_link "$LINENO"; then :
21202  ac_cv_lib_rt_shm_open=yes
21203else
21204  ac_cv_lib_rt_shm_open=no
21205fi
21206rm -f core conftest.err conftest.$ac_objext \
21207    conftest$ac_exeext conftest.$ac_ext
21208LIBS=$ac_check_lib_save_LIBS
21209fi
21210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21211$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21212if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21213  fi_check_package_lib_happy="yes"
21214else
21215  fi_check_package_lib_happy="no"
21216fi
21217
21218           if test "$fi_check_package_lib_happy" = "no"; then :
21219  LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21220                  sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21221                  unset ac_cv_lib_rt_shm_open
21222fi
21223else
21224   # libdir was not specified - go through search path
21225           fi_check_package_libdir=""
21226           if test "$fi_check_package_libdir" = "" || \
21227                  test "$fi_check_package_libdir" = "/usr" || \
21228                  test "$fi_check_package_libdir" = "/usr/local"; then :
21229   # try as is...
21230                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
21231$as_echo "looking for library without search path" >&6; }
21232                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21233$as_echo_n "checking for shm_open in -lrt... " >&6; }
21234if ${ac_cv_lib_rt_shm_open+:} false; then :
21235  $as_echo_n "(cached) " >&6
21236else
21237  ac_check_lib_save_LIBS=$LIBS
21238LIBS="-lrt  $LIBS"
21239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21240/* end confdefs.h.  */
21241
21242/* Override any GCC internal prototype to avoid an error.
21243   Use char because int might match the return type of a GCC
21244   builtin and then its argument prototype would still apply.  */
21245#ifdef __cplusplus
21246extern "C"
21247#endif
21248char shm_open ();
21249int
21250main ()
21251{
21252return shm_open ();
21253  ;
21254  return 0;
21255}
21256_ACEOF
21257if ac_fn_c_try_link "$LINENO"; then :
21258  ac_cv_lib_rt_shm_open=yes
21259else
21260  ac_cv_lib_rt_shm_open=no
21261fi
21262rm -f core conftest.err conftest.$ac_objext \
21263    conftest$ac_exeext conftest.$ac_ext
21264LIBS=$ac_check_lib_save_LIBS
21265fi
21266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21267$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21268if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21269  fi_check_package_lib_happy="yes"
21270else
21271  fi_check_package_lib_happy="no"
21272fi
21273
21274                if test "$fi_check_package_lib_happy" = "no"; then :
21275   # no go on the as is..  see what happens later...
21276                     LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21277                     sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21278                     unset ac_cv_lib_rt_shm_open
21279fi
21280fi
21281
21282           if test "$fi_check_package_lib_happy" = "no"; then :
21283  if test "$fi_check_package_libdir" != ""; then :
21284  sockets_LDFLAGS="$sockets_LDFLAGS -L$fi_check_package_libdir/lib64"
21285                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
21286                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
21287$as_echo "looking for library in lib64" >&6; }
21288                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21289$as_echo_n "checking for shm_open in -lrt... " >&6; }
21290if ${ac_cv_lib_rt_shm_open+:} false; then :
21291  $as_echo_n "(cached) " >&6
21292else
21293  ac_check_lib_save_LIBS=$LIBS
21294LIBS="-lrt  $LIBS"
21295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h.  */
21297
21298/* Override any GCC internal prototype to avoid an error.
21299   Use char because int might match the return type of a GCC
21300   builtin and then its argument prototype would still apply.  */
21301#ifdef __cplusplus
21302extern "C"
21303#endif
21304char shm_open ();
21305int
21306main ()
21307{
21308return shm_open ();
21309  ;
21310  return 0;
21311}
21312_ACEOF
21313if ac_fn_c_try_link "$LINENO"; then :
21314  ac_cv_lib_rt_shm_open=yes
21315else
21316  ac_cv_lib_rt_shm_open=no
21317fi
21318rm -f core conftest.err conftest.$ac_objext \
21319    conftest$ac_exeext conftest.$ac_ext
21320LIBS=$ac_check_lib_save_LIBS
21321fi
21322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21323$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21324if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21325  fi_check_package_lib_happy="yes"
21326else
21327  fi_check_package_lib_happy="no"
21328fi
21329
21330                     if test "$fi_check_package_lib_happy" = "no"; then :
21331   # no go on the as is..  see what happens later...
21332                          LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21333                          sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21334                          unset ac_cv_lib_rt_shm_open
21335fi
21336fi
21337fi
21338
21339           if test "$fi_check_package_lib_happy" = "no"; then :
21340  if test "$fi_check_package_libdir" != ""; then :
21341  sockets_LDFLAGS="$sockets_LDFLAGS -L$fi_check_package_libdir/lib"
21342                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
21343                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
21344$as_echo "looking for library in lib" >&6; }
21345                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21346$as_echo_n "checking for shm_open in -lrt... " >&6; }
21347if ${ac_cv_lib_rt_shm_open+:} false; then :
21348  $as_echo_n "(cached) " >&6
21349else
21350  ac_check_lib_save_LIBS=$LIBS
21351LIBS="-lrt  $LIBS"
21352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353/* end confdefs.h.  */
21354
21355/* Override any GCC internal prototype to avoid an error.
21356   Use char because int might match the return type of a GCC
21357   builtin and then its argument prototype would still apply.  */
21358#ifdef __cplusplus
21359extern "C"
21360#endif
21361char shm_open ();
21362int
21363main ()
21364{
21365return shm_open ();
21366  ;
21367  return 0;
21368}
21369_ACEOF
21370if ac_fn_c_try_link "$LINENO"; then :
21371  ac_cv_lib_rt_shm_open=yes
21372else
21373  ac_cv_lib_rt_shm_open=no
21374fi
21375rm -f core conftest.err conftest.$ac_objext \
21376    conftest$ac_exeext conftest.$ac_ext
21377LIBS=$ac_check_lib_save_LIBS
21378fi
21379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21380$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21381if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21382  fi_check_package_lib_happy="yes"
21383else
21384  fi_check_package_lib_happy="no"
21385fi
21386
21387                     if test "$fi_check_package_lib_happy" = "no"; then :
21388   # no go on the as is..  see what happens later...
21389                          LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21390                          sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21391                          unset ac_cv_lib_rt_shm_open
21392fi
21393fi
21394fi
21395fi
21396
21397    if test "$fi_check_package_lib_happy" = "yes"; then :
21398  sockets_LIBS="-lrt "
21399           fi_check_package_happy="yes"
21400else
21401  fi_check_package_happy="no"
21402fi
21403
21404
21405else
21406  fi_check_package_happy="no"
21407fi
21408else
21409
21410    # This is stolen from autoconf to peek under the covers to get the
21411    # cache variable for the library check.
21412
21413    # See comment above
21414    unset ac_cv_lib_rt_shm_open
21415    fi_check_package_lib_happy="no"
21416    if test "" != ""; then :
21417   # libdir was specified - search only there
21418           sockets_LDFLAGS="$sockets_LDFLAGS -L"
21419           LDFLAGS="$LDFLAGS -L"
21420           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21421$as_echo_n "checking for shm_open in -lrt... " >&6; }
21422if ${ac_cv_lib_rt_shm_open+:} false; then :
21423  $as_echo_n "(cached) " >&6
21424else
21425  ac_check_lib_save_LIBS=$LIBS
21426LIBS="-lrt  $LIBS"
21427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21428/* end confdefs.h.  */
21429
21430/* Override any GCC internal prototype to avoid an error.
21431   Use char because int might match the return type of a GCC
21432   builtin and then its argument prototype would still apply.  */
21433#ifdef __cplusplus
21434extern "C"
21435#endif
21436char shm_open ();
21437int
21438main ()
21439{
21440return shm_open ();
21441  ;
21442  return 0;
21443}
21444_ACEOF
21445if ac_fn_c_try_link "$LINENO"; then :
21446  ac_cv_lib_rt_shm_open=yes
21447else
21448  ac_cv_lib_rt_shm_open=no
21449fi
21450rm -f core conftest.err conftest.$ac_objext \
21451    conftest$ac_exeext conftest.$ac_ext
21452LIBS=$ac_check_lib_save_LIBS
21453fi
21454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21455$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21456if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21457  fi_check_package_lib_happy="yes"
21458else
21459  fi_check_package_lib_happy="no"
21460fi
21461
21462           if test "$fi_check_package_lib_happy" = "no"; then :
21463  LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21464                  sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21465                  unset ac_cv_lib_rt_shm_open
21466fi
21467else
21468   # libdir was not specified - go through search path
21469           fi_check_package_libdir=""
21470           if test "$fi_check_package_libdir" = "" || \
21471                  test "$fi_check_package_libdir" = "/usr" || \
21472                  test "$fi_check_package_libdir" = "/usr/local"; then :
21473   # try as is...
21474                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
21475$as_echo "looking for library without search path" >&6; }
21476                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21477$as_echo_n "checking for shm_open in -lrt... " >&6; }
21478if ${ac_cv_lib_rt_shm_open+:} false; then :
21479  $as_echo_n "(cached) " >&6
21480else
21481  ac_check_lib_save_LIBS=$LIBS
21482LIBS="-lrt  $LIBS"
21483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21484/* end confdefs.h.  */
21485
21486/* Override any GCC internal prototype to avoid an error.
21487   Use char because int might match the return type of a GCC
21488   builtin and then its argument prototype would still apply.  */
21489#ifdef __cplusplus
21490extern "C"
21491#endif
21492char shm_open ();
21493int
21494main ()
21495{
21496return shm_open ();
21497  ;
21498  return 0;
21499}
21500_ACEOF
21501if ac_fn_c_try_link "$LINENO"; then :
21502  ac_cv_lib_rt_shm_open=yes
21503else
21504  ac_cv_lib_rt_shm_open=no
21505fi
21506rm -f core conftest.err conftest.$ac_objext \
21507    conftest$ac_exeext conftest.$ac_ext
21508LIBS=$ac_check_lib_save_LIBS
21509fi
21510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21511$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21512if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21513  fi_check_package_lib_happy="yes"
21514else
21515  fi_check_package_lib_happy="no"
21516fi
21517
21518                if test "$fi_check_package_lib_happy" = "no"; then :
21519   # no go on the as is..  see what happens later...
21520                     LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21521                     sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21522                     unset ac_cv_lib_rt_shm_open
21523fi
21524fi
21525
21526           if test "$fi_check_package_lib_happy" = "no"; then :
21527  if test "$fi_check_package_libdir" != ""; then :
21528  sockets_LDFLAGS="$sockets_LDFLAGS -L$fi_check_package_libdir/lib64"
21529                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
21530                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
21531$as_echo "looking for library in lib64" >&6; }
21532                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21533$as_echo_n "checking for shm_open in -lrt... " >&6; }
21534if ${ac_cv_lib_rt_shm_open+:} false; then :
21535  $as_echo_n "(cached) " >&6
21536else
21537  ac_check_lib_save_LIBS=$LIBS
21538LIBS="-lrt  $LIBS"
21539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540/* end confdefs.h.  */
21541
21542/* Override any GCC internal prototype to avoid an error.
21543   Use char because int might match the return type of a GCC
21544   builtin and then its argument prototype would still apply.  */
21545#ifdef __cplusplus
21546extern "C"
21547#endif
21548char shm_open ();
21549int
21550main ()
21551{
21552return shm_open ();
21553  ;
21554  return 0;
21555}
21556_ACEOF
21557if ac_fn_c_try_link "$LINENO"; then :
21558  ac_cv_lib_rt_shm_open=yes
21559else
21560  ac_cv_lib_rt_shm_open=no
21561fi
21562rm -f core conftest.err conftest.$ac_objext \
21563    conftest$ac_exeext conftest.$ac_ext
21564LIBS=$ac_check_lib_save_LIBS
21565fi
21566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21567$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21568if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21569  fi_check_package_lib_happy="yes"
21570else
21571  fi_check_package_lib_happy="no"
21572fi
21573
21574                     if test "$fi_check_package_lib_happy" = "no"; then :
21575   # no go on the as is..  see what happens later...
21576                          LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21577                          sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21578                          unset ac_cv_lib_rt_shm_open
21579fi
21580fi
21581fi
21582
21583           if test "$fi_check_package_lib_happy" = "no"; then :
21584  if test "$fi_check_package_libdir" != ""; then :
21585  sockets_LDFLAGS="$sockets_LDFLAGS -L$fi_check_package_libdir/lib"
21586                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
21587                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
21588$as_echo "looking for library in lib" >&6; }
21589                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
21590$as_echo_n "checking for shm_open in -lrt... " >&6; }
21591if ${ac_cv_lib_rt_shm_open+:} false; then :
21592  $as_echo_n "(cached) " >&6
21593else
21594  ac_check_lib_save_LIBS=$LIBS
21595LIBS="-lrt  $LIBS"
21596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21597/* end confdefs.h.  */
21598
21599/* Override any GCC internal prototype to avoid an error.
21600   Use char because int might match the return type of a GCC
21601   builtin and then its argument prototype would still apply.  */
21602#ifdef __cplusplus
21603extern "C"
21604#endif
21605char shm_open ();
21606int
21607main ()
21608{
21609return shm_open ();
21610  ;
21611  return 0;
21612}
21613_ACEOF
21614if ac_fn_c_try_link "$LINENO"; then :
21615  ac_cv_lib_rt_shm_open=yes
21616else
21617  ac_cv_lib_rt_shm_open=no
21618fi
21619rm -f core conftest.err conftest.$ac_objext \
21620    conftest$ac_exeext conftest.$ac_ext
21621LIBS=$ac_check_lib_save_LIBS
21622fi
21623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
21624$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
21625if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
21626  fi_check_package_lib_happy="yes"
21627else
21628  fi_check_package_lib_happy="no"
21629fi
21630
21631                     if test "$fi_check_package_lib_happy" = "no"; then :
21632   # no go on the as is..  see what happens later...
21633                          LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21634                          sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21635                          unset ac_cv_lib_rt_shm_open
21636fi
21637fi
21638fi
21639fi
21640
21641    if test "$fi_check_package_lib_happy" = "yes"; then :
21642  sockets_LIBS="-lrt "
21643           fi_check_package_happy="yes"
21644else
21645  fi_check_package_happy="no"
21646fi
21647
21648
21649fi
21650    unset fi_check_package_header_happy
21651
21652
21653
21654    if test "$fi_check_package_happy" = "yes"; then :
21655  sockets_shm_happy=1
21656else
21657  sockets_CPPFLAGS="$fi_check_package_sockets_orig_CPPFLAGS"
21658           sockets_LDFLAGS="$fi_check_package_sockets_orig_LDFLAGS"
21659           sockets_LIBS="$fi_check_package_sockets_orig_LIBS"
21660           sockets_shm_happy=0
21661fi
21662
21663
21664
21665
21666
21667    CPPFLAGS="$fi_check_package_sockets_save_CPPFLAGS"
21668    LDFLAGS="$fi_check_package_sockets_save_LDFLAGS"
21669    LIBS="$fi_check_package_sockets_save_LIBS"
21670
21671fi
21672
21673fi
21674
21675	      for ac_func in getifaddrs
21676do :
21677  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21678if test "x$ac_cv_func_getifaddrs" = xyes; then :
21679  cat >>confdefs.h <<_ACEOF
21680#define HAVE_GETIFADDRS 1
21681_ACEOF
21682
21683fi
21684done
21685
21686
21687	if test $sockets_h_happy -eq 1 && \
21688	       test $sockets_shm_happy -eq 1; then :
21689  sockets_happy=1
21690else
21691  sockets_happy=0
21692fi
21693
21694
21695
21696
21697
21698
21699
21700	# See if the provider configured successfully
21701	if test $sockets_happy -eq 1; then :
21702  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD sockets"
21703		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
21704
21705	 FI_PC_CFLAGS="$FI_PC_CFLAGS $sockets_CFLAGS $sockets_CPPFLAGS"
21706	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $sockets_LDFLAGS $sockets_LIBS"
21707
21708		 if test $sockets_dl -eq 1; then :
21709  PROVIDERS_DL="prov/sockets/libsockets.la $PROVIDERS_DL"
21710			 if test x"$enable_static" = x"yes" &&
21711				test x"$enable_shared" = x"no"; then :
21712  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sockets provider was selected to be built as DL" >&5
21713$as_echo "$as_me: WARNING: sockets provider was selected to be built as DL" >&2;}
21714				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
21715$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
21716				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
21717fi
21718			 { $as_echo "$as_me:${as_lineno-$LINENO}: sockets provider: build as plugin" >&5
21719$as_echo "$as_me: sockets provider: build as plugin" >&6;}
21720
21721			 # See if this provider has a specfile that
21722			 # needs to be generated
21723			 ac_config_files="$ac_config_files prov/sockets/libfabric-sockets.spec"
21724
21725
21726else
21727  PROVIDERS_STATIC="prov/sockets/libsockets.la $PROVIDERS_STATIC"
21728			 { $as_echo "$as_me:${as_lineno-$LINENO}: sockets provider: include in libfabric" >&5
21729$as_echo "$as_me: sockets provider: include in libfabric" >&6;}
21730fi
21731
21732else
21733  { $as_echo "$as_me:${as_lineno-$LINENO}: sockets provider: disabled" >&5
21734$as_echo "$as_me: sockets provider: disabled" >&6;}
21735fi
21736
21737
21738cat >>confdefs.h <<_ACEOF
21739#define HAVE_SOCKETS $sockets_happy
21740_ACEOF
21741
21742
21743cat >>confdefs.h <<_ACEOF
21744#define HAVE_SOCKETS_DL $sockets_dl
21745_ACEOF
21746
21747
21748	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
21749	# as well as AC defines
21750	 if test $sockets_happy -eq 1; then
21751  HAVE_SOCKETS_TRUE=
21752  HAVE_SOCKETS_FALSE='#'
21753else
21754  HAVE_SOCKETS_TRUE='#'
21755  HAVE_SOCKETS_FALSE=
21756fi
21757
21758	 if test $sockets_dl -eq 1; then
21759  HAVE_SOCKETS_DL_TRUE=
21760  HAVE_SOCKETS_DL_FALSE='#'
21761else
21762  HAVE_SOCKETS_DL_TRUE='#'
21763  HAVE_SOCKETS_DL_FALSE=
21764fi
21765
21766
21767	# If this provider was specifically requested but we can't
21768	# build it, error.
21769	if test "$enable_sockets $sockets_happy" = "yes 0"; then :
21770  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sockets provider was requested, but cannot be compiled" >&5
21771$as_echo "$as_me: WARNING: sockets provider was requested, but cannot be compiled" >&2;}
21772	       as_fn_error $? "Cannot continue" "$LINENO" 5
21773
21774fi
21775	# If this provider was requested for direct build, ensure that
21776	# provider's fi_direct.h exists in tree. Error otherwise.
21777	if test x"$enable_direct" = x"sockets"; then :
21778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/sockets/include/rdma/fi_direct.h" >&5
21779$as_echo_n "checking for $srcdir/prov/sockets/include/rdma/fi_direct.h... " >&6; }
21780		 if test -f "$srcdir/prov/sockets/include/rdma/fi_direct.h"; then :
21781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21782$as_echo "yes" >&6; }
21783else
21784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21785$as_echo "no" >&6; }
21786			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/sockets/include/rdma/fi_direct.h.in" >&5
21787$as_echo_n "checking for $srcdir/prov/sockets/include/rdma/fi_direct.h.in... " >&6; }
21788			 if test -f "$srcdir/prov/sockets/include/rdma/fi_direct.h.in"; then :
21789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21790$as_echo "yes" >&6; }
21791else
21792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793$as_echo "no" >&6; }
21794				 as_fn_error $? "sockets provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
21795
21796fi
21797fi
21798fi
21799
21800	 if test -f "$srcdir/prov/sockets/include/rdma/fi_direct.h.in"; then
21801  FI_DIRECT_H_IN_TRUE=
21802  FI_DIRECT_H_IN_FALSE='#'
21803else
21804  FI_DIRECT_H_IN_TRUE='#'
21805  FI_DIRECT_H_IN_FALSE=
21806fi
21807
21808
21809
21810	# Restore CPPFLAGS/LDFLAGS/LIBS
21811	CPPFLAGS=$sockets_orig_CPPFLAGS
21812	unset sockets_orig_CPPFLAGS
21813	LDFLAGS=$sockets_orig_LDFLAGS
21814	unset sockets_orig_LDFLAGS
21815	LIBS=$sockets_orig_LIBS
21816	unset sockets_orig_LIBS
21817
21818
21819
21820	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"verbs"; then :
21821  enable_verbs=no
21822               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping verbs provider because $enable_direct direct requested" >&5
21823$as_echo "$as_me: *** Skipping verbs provider because $enable_direct direct requested" >&6;}
21824else
21825  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring verbs provider" >&5
21826$as_echo "$as_me: *** Configuring verbs provider" >&6;}
21827	       # Check whether --enable-verbs was given.
21828if test "${enable_verbs+set}" = set; then :
21829  enableval=$enable_verbs;
21830else
21831  enable_verbs=auto
21832fi
21833
21834fi
21835
21836	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
21837	# Provider's local macros could use the value if needed.
21838	# Also save LIBS, as a matter of principle.
21839	verbs_orig_CPPFLAGS=$CPPFLAGS
21840	verbs_orig_LDFLAGS=$LDFLAGS
21841	verbs_orig_LIBS=$LIBS
21842
21843	# Check the --enable-<verbs> value
21844	verbs_dl=0
21845	case $enable_verbs in #(
21846  yes|no) :
21847     ;; #(
21848  dl) :
21849    enable_verbs=yes verbs_dl=1 ;; #(
21850  auto) :
21851     ;; #(
21852  dl:*) :
21853
21854	# Check that the base directory exists
21855	if test ! -d "${enable_verbs:3}"; then :
21856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_verbs:3}\" does not exist" >&5
21857$as_echo "$as_me: WARNING: supplied directory \"${enable_verbs:3}\" does not exist" >&2;}
21858	        as_fn_error $? "Cannot continue" "$LINENO" 5
21859
21860fi
21861
21862	# Check that base/include exists
21863	 if test -d "${enable_verbs:3}/include"; then :
21864  verbs_PREFIX="${enable_verbs:3}"
21865else
21866  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_verbs:3}\" directory\"" >&5
21867$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_verbs:3}\" directory\"" >&2;}
21868	        as_fn_error $? "Cannot continue" "$LINENO" 5
21869
21870fi
21871
21872	# Check that base/lib or base/lib64 exists
21873	 if test -d "${enable_verbs:3}/lib64"; then :
21874  verbs_LIBDIR="${enable_verbs:3}/lib64"
21875else
21876  if test -d "${enable_verbs:3}/lib"; then :
21877  verbs_LIBDIR="${enable_verbs:3}/lib"
21878else
21879  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_verbs:3}\" directory\"" >&5
21880$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_verbs:3}\" directory\"" >&2;}
21881		       as_fn_error $? "Cannot continue" "$LINENO" 5
21882
21883fi
21884
21885fi
21886
21887		   enable_verbs=yes verbs_dl=1 ;; #(
21888  *) :
21889
21890	# Check that the base directory exists
21891	if test ! -d "$enable_verbs"; then :
21892  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_verbs\" does not exist" >&5
21893$as_echo "$as_me: WARNING: supplied directory \"$enable_verbs\" does not exist" >&2;}
21894	        as_fn_error $? "Cannot continue" "$LINENO" 5
21895
21896fi
21897
21898	# Check that base/include exists
21899	 if test -d "$enable_verbs/include"; then :
21900  verbs_PREFIX="$enable_verbs"
21901else
21902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_verbs\" directory\"" >&5
21903$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_verbs\" directory\"" >&2;}
21904	        as_fn_error $? "Cannot continue" "$LINENO" 5
21905
21906fi
21907
21908	# Check that base/lib or base/lib64 exists
21909	 if test -d "$enable_verbs/lib64"; then :
21910  verbs_LIBDIR="$enable_verbs/lib64"
21911else
21912  if test -d "$enable_verbs/lib"; then :
21913  verbs_LIBDIR="$enable_verbs/lib"
21914else
21915  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_verbs\" directory\"" >&5
21916$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_verbs\" directory\"" >&2;}
21917		       as_fn_error $? "Cannot continue" "$LINENO" 5
21918
21919fi
21920
21921fi
21922
21923	 enable_verbs=yes
21924	 ;;
21925esac
21926
21927	# Call the provider's CONFIGURE and CONDITIONALS macros
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937	# Determine if we can support the verbs provider
21938	verbs_ibverbs_happy=0
21939	verbs_rdmacm_happy=0
21940	if test x"$enable_verbs" != x"no"; then :
21941
21942    fi_check_package_verbs_ibverbs_save_CPPFLAGS="$CPPFLAGS"
21943    fi_check_package_verbs_ibverbs_save_LDFLAGS="$LDFLAGS"
21944    fi_check_package_verbs_ibverbs_save_LIBS="$LIBS"
21945
21946    fi_check_package_verbs_ibverbs_orig_CPPFLAGS="$verbs_ibverbs_CPPFLAGS"
21947    fi_check_package_verbs_ibverbs_orig_LDFLAGS="$verbs_ibverbs_LDFLAGS"
21948    fi_check_package_verbs_ibverbs_orig_LIBS="$verbs_ibverbs_LIBS"
21949
21950
21951    # This is stolen from autoconf to peek under the covers to get the
21952    # cache variable for the library check.
21953
21954
21955    # There's unfortunately no way to get through the progression of
21956    # header includes without killing off the cache variable and
21957    # trying again...
21958    unset ac_cv_header_infiniband_verbs_h
21959
21960    fi_check_package_header_happy="no"
21961    if test "$verbs_PREFIX" = "/usr" || test "$verbs_PREFIX" = "/usr/local"; then :
21962   # try as is...
21963            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
21964$as_echo "looking for header without includes" >&6; }
21965            for ac_header in infiniband/verbs.h
21966do :
21967  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
21968if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
21969  cat >>confdefs.h <<_ACEOF
21970#define HAVE_INFINIBAND_VERBS_H 1
21971_ACEOF
21972 fi_check_package_header_happy="yes"
21973fi
21974
21975done
21976
21977            if test "$fi_check_package_header_happy" = "no"; then :
21978  # no go on the as is - reset the cache and try again
21979                   unset ac_cv_header_infiniband_verbs_h
21980fi
21981fi
21982
21983    if test "$fi_check_package_header_happy" = "no"; then :
21984  if test "$verbs_PREFIX" != ""; then :
21985  verbs_ibverbs_CPPFLAGS="$verbs_ibverbs_CPPFLAGS -I$verbs_PREFIX/include"
21986                  CPPFLAGS="$CPPFLAGS -I$verbs_PREFIX/include"
21987fi
21988          for ac_header in infiniband/verbs.h
21989do :
21990  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
21991if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
21992  cat >>confdefs.h <<_ACEOF
21993#define HAVE_INFINIBAND_VERBS_H 1
21994_ACEOF
21995 fi_check_package_header_happy="yes"
21996fi
21997
21998done
21999
22000          if test "$fi_check_package_header_happy" = "yes"; then :
22001
22002    # This is stolen from autoconf to peek under the covers to get the
22003    # cache variable for the library check.
22004
22005    # See comment above
22006    unset ac_cv_lib_ibverbs_ibv_open_device
22007    fi_check_package_lib_happy="no"
22008    if test "$verbs_LIBDIR" != ""; then :
22009   # libdir was specified - search only there
22010           verbs_ibverbs_LDFLAGS="$verbs_ibverbs_LDFLAGS -L$verbs_LIBDIR"
22011           LDFLAGS="$LDFLAGS -L$verbs_LIBDIR"
22012           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22013$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22014if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22015  $as_echo_n "(cached) " >&6
22016else
22017  ac_check_lib_save_LIBS=$LIBS
22018LIBS="-libverbs  $LIBS"
22019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020/* end confdefs.h.  */
22021
22022/* Override any GCC internal prototype to avoid an error.
22023   Use char because int might match the return type of a GCC
22024   builtin and then its argument prototype would still apply.  */
22025#ifdef __cplusplus
22026extern "C"
22027#endif
22028char ibv_open_device ();
22029int
22030main ()
22031{
22032return ibv_open_device ();
22033  ;
22034  return 0;
22035}
22036_ACEOF
22037if ac_fn_c_try_link "$LINENO"; then :
22038  ac_cv_lib_ibverbs_ibv_open_device=yes
22039else
22040  ac_cv_lib_ibverbs_ibv_open_device=no
22041fi
22042rm -f core conftest.err conftest.$ac_objext \
22043    conftest$ac_exeext conftest.$ac_ext
22044LIBS=$ac_check_lib_save_LIBS
22045fi
22046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22047$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22048if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22049  fi_check_package_lib_happy="yes"
22050else
22051  fi_check_package_lib_happy="no"
22052fi
22053
22054           if test "$fi_check_package_lib_happy" = "no"; then :
22055  LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22056                  verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22057                  unset ac_cv_lib_ibverbs_ibv_open_device
22058fi
22059else
22060   # libdir was not specified - go through search path
22061           fi_check_package_libdir="$verbs_PREFIX"
22062           if test "$fi_check_package_libdir" = "" || \
22063                  test "$fi_check_package_libdir" = "/usr" || \
22064                  test "$fi_check_package_libdir" = "/usr/local"; then :
22065   # try as is...
22066                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
22067$as_echo "looking for library without search path" >&6; }
22068                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22069$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22070if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22071  $as_echo_n "(cached) " >&6
22072else
22073  ac_check_lib_save_LIBS=$LIBS
22074LIBS="-libverbs  $LIBS"
22075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076/* end confdefs.h.  */
22077
22078/* Override any GCC internal prototype to avoid an error.
22079   Use char because int might match the return type of a GCC
22080   builtin and then its argument prototype would still apply.  */
22081#ifdef __cplusplus
22082extern "C"
22083#endif
22084char ibv_open_device ();
22085int
22086main ()
22087{
22088return ibv_open_device ();
22089  ;
22090  return 0;
22091}
22092_ACEOF
22093if ac_fn_c_try_link "$LINENO"; then :
22094  ac_cv_lib_ibverbs_ibv_open_device=yes
22095else
22096  ac_cv_lib_ibverbs_ibv_open_device=no
22097fi
22098rm -f core conftest.err conftest.$ac_objext \
22099    conftest$ac_exeext conftest.$ac_ext
22100LIBS=$ac_check_lib_save_LIBS
22101fi
22102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22103$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22104if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22105  fi_check_package_lib_happy="yes"
22106else
22107  fi_check_package_lib_happy="no"
22108fi
22109
22110                if test "$fi_check_package_lib_happy" = "no"; then :
22111   # no go on the as is..  see what happens later...
22112                     LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22113                     verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22114                     unset ac_cv_lib_ibverbs_ibv_open_device
22115fi
22116fi
22117
22118           if test "$fi_check_package_lib_happy" = "no"; then :
22119  if test "$fi_check_package_libdir" != ""; then :
22120  verbs_ibverbs_LDFLAGS="$verbs_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib64"
22121                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
22122                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
22123$as_echo "looking for library in lib64" >&6; }
22124                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22125$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22126if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22127  $as_echo_n "(cached) " >&6
22128else
22129  ac_check_lib_save_LIBS=$LIBS
22130LIBS="-libverbs  $LIBS"
22131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132/* end confdefs.h.  */
22133
22134/* Override any GCC internal prototype to avoid an error.
22135   Use char because int might match the return type of a GCC
22136   builtin and then its argument prototype would still apply.  */
22137#ifdef __cplusplus
22138extern "C"
22139#endif
22140char ibv_open_device ();
22141int
22142main ()
22143{
22144return ibv_open_device ();
22145  ;
22146  return 0;
22147}
22148_ACEOF
22149if ac_fn_c_try_link "$LINENO"; then :
22150  ac_cv_lib_ibverbs_ibv_open_device=yes
22151else
22152  ac_cv_lib_ibverbs_ibv_open_device=no
22153fi
22154rm -f core conftest.err conftest.$ac_objext \
22155    conftest$ac_exeext conftest.$ac_ext
22156LIBS=$ac_check_lib_save_LIBS
22157fi
22158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22159$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22160if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22161  fi_check_package_lib_happy="yes"
22162else
22163  fi_check_package_lib_happy="no"
22164fi
22165
22166                     if test "$fi_check_package_lib_happy" = "no"; then :
22167   # no go on the as is..  see what happens later...
22168                          LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22169                          verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22170                          unset ac_cv_lib_ibverbs_ibv_open_device
22171fi
22172fi
22173fi
22174
22175           if test "$fi_check_package_lib_happy" = "no"; then :
22176  if test "$fi_check_package_libdir" != ""; then :
22177  verbs_ibverbs_LDFLAGS="$verbs_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib"
22178                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
22179                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
22180$as_echo "looking for library in lib" >&6; }
22181                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22182$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22183if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22184  $as_echo_n "(cached) " >&6
22185else
22186  ac_check_lib_save_LIBS=$LIBS
22187LIBS="-libverbs  $LIBS"
22188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189/* end confdefs.h.  */
22190
22191/* Override any GCC internal prototype to avoid an error.
22192   Use char because int might match the return type of a GCC
22193   builtin and then its argument prototype would still apply.  */
22194#ifdef __cplusplus
22195extern "C"
22196#endif
22197char ibv_open_device ();
22198int
22199main ()
22200{
22201return ibv_open_device ();
22202  ;
22203  return 0;
22204}
22205_ACEOF
22206if ac_fn_c_try_link "$LINENO"; then :
22207  ac_cv_lib_ibverbs_ibv_open_device=yes
22208else
22209  ac_cv_lib_ibverbs_ibv_open_device=no
22210fi
22211rm -f core conftest.err conftest.$ac_objext \
22212    conftest$ac_exeext conftest.$ac_ext
22213LIBS=$ac_check_lib_save_LIBS
22214fi
22215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22216$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22217if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22218  fi_check_package_lib_happy="yes"
22219else
22220  fi_check_package_lib_happy="no"
22221fi
22222
22223                     if test "$fi_check_package_lib_happy" = "no"; then :
22224   # no go on the as is..  see what happens later...
22225                          LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22226                          verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22227                          unset ac_cv_lib_ibverbs_ibv_open_device
22228fi
22229fi
22230fi
22231fi
22232
22233    if test "$fi_check_package_lib_happy" = "yes"; then :
22234  verbs_ibverbs_LIBS="-libverbs "
22235           fi_check_package_happy="yes"
22236else
22237  fi_check_package_happy="no"
22238fi
22239
22240
22241else
22242  fi_check_package_happy="no"
22243fi
22244else
22245
22246    # This is stolen from autoconf to peek under the covers to get the
22247    # cache variable for the library check.
22248
22249    # See comment above
22250    unset ac_cv_lib_ibverbs_ibv_open_device
22251    fi_check_package_lib_happy="no"
22252    if test "$verbs_LIBDIR" != ""; then :
22253   # libdir was specified - search only there
22254           verbs_ibverbs_LDFLAGS="$verbs_ibverbs_LDFLAGS -L$verbs_LIBDIR"
22255           LDFLAGS="$LDFLAGS -L$verbs_LIBDIR"
22256           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22257$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22258if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22259  $as_echo_n "(cached) " >&6
22260else
22261  ac_check_lib_save_LIBS=$LIBS
22262LIBS="-libverbs  $LIBS"
22263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264/* end confdefs.h.  */
22265
22266/* Override any GCC internal prototype to avoid an error.
22267   Use char because int might match the return type of a GCC
22268   builtin and then its argument prototype would still apply.  */
22269#ifdef __cplusplus
22270extern "C"
22271#endif
22272char ibv_open_device ();
22273int
22274main ()
22275{
22276return ibv_open_device ();
22277  ;
22278  return 0;
22279}
22280_ACEOF
22281if ac_fn_c_try_link "$LINENO"; then :
22282  ac_cv_lib_ibverbs_ibv_open_device=yes
22283else
22284  ac_cv_lib_ibverbs_ibv_open_device=no
22285fi
22286rm -f core conftest.err conftest.$ac_objext \
22287    conftest$ac_exeext conftest.$ac_ext
22288LIBS=$ac_check_lib_save_LIBS
22289fi
22290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22291$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22292if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22293  fi_check_package_lib_happy="yes"
22294else
22295  fi_check_package_lib_happy="no"
22296fi
22297
22298           if test "$fi_check_package_lib_happy" = "no"; then :
22299  LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22300                  verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22301                  unset ac_cv_lib_ibverbs_ibv_open_device
22302fi
22303else
22304   # libdir was not specified - go through search path
22305           fi_check_package_libdir="$verbs_PREFIX"
22306           if test "$fi_check_package_libdir" = "" || \
22307                  test "$fi_check_package_libdir" = "/usr" || \
22308                  test "$fi_check_package_libdir" = "/usr/local"; then :
22309   # try as is...
22310                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
22311$as_echo "looking for library without search path" >&6; }
22312                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22313$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22314if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22315  $as_echo_n "(cached) " >&6
22316else
22317  ac_check_lib_save_LIBS=$LIBS
22318LIBS="-libverbs  $LIBS"
22319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320/* end confdefs.h.  */
22321
22322/* Override any GCC internal prototype to avoid an error.
22323   Use char because int might match the return type of a GCC
22324   builtin and then its argument prototype would still apply.  */
22325#ifdef __cplusplus
22326extern "C"
22327#endif
22328char ibv_open_device ();
22329int
22330main ()
22331{
22332return ibv_open_device ();
22333  ;
22334  return 0;
22335}
22336_ACEOF
22337if ac_fn_c_try_link "$LINENO"; then :
22338  ac_cv_lib_ibverbs_ibv_open_device=yes
22339else
22340  ac_cv_lib_ibverbs_ibv_open_device=no
22341fi
22342rm -f core conftest.err conftest.$ac_objext \
22343    conftest$ac_exeext conftest.$ac_ext
22344LIBS=$ac_check_lib_save_LIBS
22345fi
22346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22347$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22348if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22349  fi_check_package_lib_happy="yes"
22350else
22351  fi_check_package_lib_happy="no"
22352fi
22353
22354                if test "$fi_check_package_lib_happy" = "no"; then :
22355   # no go on the as is..  see what happens later...
22356                     LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22357                     verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22358                     unset ac_cv_lib_ibverbs_ibv_open_device
22359fi
22360fi
22361
22362           if test "$fi_check_package_lib_happy" = "no"; then :
22363  if test "$fi_check_package_libdir" != ""; then :
22364  verbs_ibverbs_LDFLAGS="$verbs_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib64"
22365                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
22366                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
22367$as_echo "looking for library in lib64" >&6; }
22368                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22369$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22370if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22371  $as_echo_n "(cached) " >&6
22372else
22373  ac_check_lib_save_LIBS=$LIBS
22374LIBS="-libverbs  $LIBS"
22375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376/* end confdefs.h.  */
22377
22378/* Override any GCC internal prototype to avoid an error.
22379   Use char because int might match the return type of a GCC
22380   builtin and then its argument prototype would still apply.  */
22381#ifdef __cplusplus
22382extern "C"
22383#endif
22384char ibv_open_device ();
22385int
22386main ()
22387{
22388return ibv_open_device ();
22389  ;
22390  return 0;
22391}
22392_ACEOF
22393if ac_fn_c_try_link "$LINENO"; then :
22394  ac_cv_lib_ibverbs_ibv_open_device=yes
22395else
22396  ac_cv_lib_ibverbs_ibv_open_device=no
22397fi
22398rm -f core conftest.err conftest.$ac_objext \
22399    conftest$ac_exeext conftest.$ac_ext
22400LIBS=$ac_check_lib_save_LIBS
22401fi
22402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22403$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22404if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22405  fi_check_package_lib_happy="yes"
22406else
22407  fi_check_package_lib_happy="no"
22408fi
22409
22410                     if test "$fi_check_package_lib_happy" = "no"; then :
22411   # no go on the as is..  see what happens later...
22412                          LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22413                          verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22414                          unset ac_cv_lib_ibverbs_ibv_open_device
22415fi
22416fi
22417fi
22418
22419           if test "$fi_check_package_lib_happy" = "no"; then :
22420  if test "$fi_check_package_libdir" != ""; then :
22421  verbs_ibverbs_LDFLAGS="$verbs_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib"
22422                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
22423                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
22424$as_echo "looking for library in lib" >&6; }
22425                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
22426$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
22427if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
22428  $as_echo_n "(cached) " >&6
22429else
22430  ac_check_lib_save_LIBS=$LIBS
22431LIBS="-libverbs  $LIBS"
22432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433/* end confdefs.h.  */
22434
22435/* Override any GCC internal prototype to avoid an error.
22436   Use char because int might match the return type of a GCC
22437   builtin and then its argument prototype would still apply.  */
22438#ifdef __cplusplus
22439extern "C"
22440#endif
22441char ibv_open_device ();
22442int
22443main ()
22444{
22445return ibv_open_device ();
22446  ;
22447  return 0;
22448}
22449_ACEOF
22450if ac_fn_c_try_link "$LINENO"; then :
22451  ac_cv_lib_ibverbs_ibv_open_device=yes
22452else
22453  ac_cv_lib_ibverbs_ibv_open_device=no
22454fi
22455rm -f core conftest.err conftest.$ac_objext \
22456    conftest$ac_exeext conftest.$ac_ext
22457LIBS=$ac_check_lib_save_LIBS
22458fi
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
22460$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
22461if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
22462  fi_check_package_lib_happy="yes"
22463else
22464  fi_check_package_lib_happy="no"
22465fi
22466
22467                     if test "$fi_check_package_lib_happy" = "no"; then :
22468   # no go on the as is..  see what happens later...
22469                          LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22470                          verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22471                          unset ac_cv_lib_ibverbs_ibv_open_device
22472fi
22473fi
22474fi
22475fi
22476
22477    if test "$fi_check_package_lib_happy" = "yes"; then :
22478  verbs_ibverbs_LIBS="-libverbs "
22479           fi_check_package_happy="yes"
22480else
22481  fi_check_package_happy="no"
22482fi
22483
22484
22485fi
22486    unset fi_check_package_header_happy
22487
22488
22489
22490    if test "$fi_check_package_happy" = "yes"; then :
22491
22492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libibverbs is linkable by libtool" >&5
22493$as_echo_n "checking if libibverbs is linkable by libtool... " >&6; }
22494	file=conftemp.$$.c
22495	rm -f $file conftemp
22496	cat > $file <<-EOF
22497char ibv_open_device ();
22498int main ()
22499{ return ibv_open_device (); }
22500EOF
22501
22502	cmd="./libtool --mode=link --tag=CC $CC $CPPFLAGS $CFLAGS $file -o conftemp $LDFLAGS -libverbs"
22503	echo "configure:$LINENO: $cmd" >> config.log 2>&1
22504	eval $cmd >> config.log 2>&1
22505	status=$?
22506	if test $status -eq 0 && test -x conftemp; then :
22507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22508$as_echo "yes" >&6; }
22509		verbs_ibverbs_happy=1
22510else
22511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22512$as_echo "no" >&6; }
22513		echo "configure: failed program was" >> config.log
22514		cat $file >> config.log
22515		verbs_ibverbs_happy=0
22516fi
22517
22518	rm -f $file conftemp
22519
22520else
22521  verbs_ibverbs_CPPFLAGS="$fi_check_package_verbs_ibverbs_orig_CPPFLAGS"
22522           verbs_ibverbs_LDFLAGS="$fi_check_package_verbs_ibverbs_orig_LDFLAGS"
22523           verbs_ibverbs_LIBS="$fi_check_package_verbs_ibverbs_orig_LIBS"
22524           verbs_ibverbs_happy=0
22525fi
22526
22527
22528
22529
22530
22531    CPPFLAGS="$fi_check_package_verbs_ibverbs_save_CPPFLAGS"
22532    LDFLAGS="$fi_check_package_verbs_ibverbs_save_LDFLAGS"
22533    LIBS="$fi_check_package_verbs_ibverbs_save_LIBS"
22534
22535
22536
22537    fi_check_package_verbs_rdmacm_save_CPPFLAGS="$CPPFLAGS"
22538    fi_check_package_verbs_rdmacm_save_LDFLAGS="$LDFLAGS"
22539    fi_check_package_verbs_rdmacm_save_LIBS="$LIBS"
22540
22541    fi_check_package_verbs_rdmacm_orig_CPPFLAGS="$verbs_rdmacm_CPPFLAGS"
22542    fi_check_package_verbs_rdmacm_orig_LDFLAGS="$verbs_rdmacm_LDFLAGS"
22543    fi_check_package_verbs_rdmacm_orig_LIBS="$verbs_rdmacm_LIBS"
22544
22545
22546    # This is stolen from autoconf to peek under the covers to get the
22547    # cache variable for the library check.
22548
22549
22550    # There's unfortunately no way to get through the progression of
22551    # header includes without killing off the cache variable and
22552    # trying again...
22553    unset ac_cv_header_rdma_rdma_cma_h
22554
22555    fi_check_package_header_happy="no"
22556    if test "$verbs_PREFIX" = "/usr" || test "$verbs_PREFIX" = "/usr/local"; then :
22557   # try as is...
22558            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
22559$as_echo "looking for header without includes" >&6; }
22560            for ac_header in rdma/rdma_cma.h
22561do :
22562  ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default"
22563if test "x$ac_cv_header_rdma_rdma_cma_h" = xyes; then :
22564  cat >>confdefs.h <<_ACEOF
22565#define HAVE_RDMA_RDMA_CMA_H 1
22566_ACEOF
22567 fi_check_package_header_happy="yes"
22568fi
22569
22570done
22571
22572            if test "$fi_check_package_header_happy" = "no"; then :
22573  # no go on the as is - reset the cache and try again
22574                   unset ac_cv_header_rdma_rdma_cma_h
22575fi
22576fi
22577
22578    if test "$fi_check_package_header_happy" = "no"; then :
22579  if test "$verbs_PREFIX" != ""; then :
22580  verbs_rdmacm_CPPFLAGS="$verbs_rdmacm_CPPFLAGS -I$verbs_PREFIX/include"
22581                  CPPFLAGS="$CPPFLAGS -I$verbs_PREFIX/include"
22582fi
22583          for ac_header in rdma/rdma_cma.h
22584do :
22585  ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default"
22586if test "x$ac_cv_header_rdma_rdma_cma_h" = xyes; then :
22587  cat >>confdefs.h <<_ACEOF
22588#define HAVE_RDMA_RDMA_CMA_H 1
22589_ACEOF
22590 fi_check_package_header_happy="yes"
22591fi
22592
22593done
22594
22595          if test "$fi_check_package_header_happy" = "yes"; then :
22596
22597    # This is stolen from autoconf to peek under the covers to get the
22598    # cache variable for the library check.
22599
22600    # See comment above
22601    unset ac_cv_lib_rdmacm_rdma_create_qp
22602    fi_check_package_lib_happy="no"
22603    if test "$verbs_LIBDIR" != ""; then :
22604   # libdir was specified - search only there
22605           verbs_rdmacm_LDFLAGS="$verbs_rdmacm_LDFLAGS -L$verbs_LIBDIR"
22606           LDFLAGS="$LDFLAGS -L$verbs_LIBDIR"
22607           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22608$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22609if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22610  $as_echo_n "(cached) " >&6
22611else
22612  ac_check_lib_save_LIBS=$LIBS
22613LIBS="-lrdmacm  $LIBS"
22614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615/* end confdefs.h.  */
22616
22617/* Override any GCC internal prototype to avoid an error.
22618   Use char because int might match the return type of a GCC
22619   builtin and then its argument prototype would still apply.  */
22620#ifdef __cplusplus
22621extern "C"
22622#endif
22623char rdma_create_qp ();
22624int
22625main ()
22626{
22627return rdma_create_qp ();
22628  ;
22629  return 0;
22630}
22631_ACEOF
22632if ac_fn_c_try_link "$LINENO"; then :
22633  ac_cv_lib_rdmacm_rdma_create_qp=yes
22634else
22635  ac_cv_lib_rdmacm_rdma_create_qp=no
22636fi
22637rm -f core conftest.err conftest.$ac_objext \
22638    conftest$ac_exeext conftest.$ac_ext
22639LIBS=$ac_check_lib_save_LIBS
22640fi
22641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22642$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22643if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
22644  fi_check_package_lib_happy="yes"
22645else
22646  fi_check_package_lib_happy="no"
22647fi
22648
22649           if test "$fi_check_package_lib_happy" = "no"; then :
22650  LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
22651                  verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
22652                  unset ac_cv_lib_rdmacm_rdma_create_qp
22653fi
22654else
22655   # libdir was not specified - go through search path
22656           fi_check_package_libdir="$verbs_PREFIX"
22657           if test "$fi_check_package_libdir" = "" || \
22658                  test "$fi_check_package_libdir" = "/usr" || \
22659                  test "$fi_check_package_libdir" = "/usr/local"; then :
22660   # try as is...
22661                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
22662$as_echo "looking for library without search path" >&6; }
22663                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22664$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22665if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22666  $as_echo_n "(cached) " >&6
22667else
22668  ac_check_lib_save_LIBS=$LIBS
22669LIBS="-lrdmacm  $LIBS"
22670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22671/* end confdefs.h.  */
22672
22673/* Override any GCC internal prototype to avoid an error.
22674   Use char because int might match the return type of a GCC
22675   builtin and then its argument prototype would still apply.  */
22676#ifdef __cplusplus
22677extern "C"
22678#endif
22679char rdma_create_qp ();
22680int
22681main ()
22682{
22683return rdma_create_qp ();
22684  ;
22685  return 0;
22686}
22687_ACEOF
22688if ac_fn_c_try_link "$LINENO"; then :
22689  ac_cv_lib_rdmacm_rdma_create_qp=yes
22690else
22691  ac_cv_lib_rdmacm_rdma_create_qp=no
22692fi
22693rm -f core conftest.err conftest.$ac_objext \
22694    conftest$ac_exeext conftest.$ac_ext
22695LIBS=$ac_check_lib_save_LIBS
22696fi
22697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22698$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22699if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
22700  fi_check_package_lib_happy="yes"
22701else
22702  fi_check_package_lib_happy="no"
22703fi
22704
22705                if test "$fi_check_package_lib_happy" = "no"; then :
22706   # no go on the as is..  see what happens later...
22707                     LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
22708                     verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
22709                     unset ac_cv_lib_rdmacm_rdma_create_qp
22710fi
22711fi
22712
22713           if test "$fi_check_package_lib_happy" = "no"; then :
22714  if test "$fi_check_package_libdir" != ""; then :
22715  verbs_rdmacm_LDFLAGS="$verbs_rdmacm_LDFLAGS -L$fi_check_package_libdir/lib64"
22716                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
22717                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
22718$as_echo "looking for library in lib64" >&6; }
22719                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22720$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22721if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22722  $as_echo_n "(cached) " >&6
22723else
22724  ac_check_lib_save_LIBS=$LIBS
22725LIBS="-lrdmacm  $LIBS"
22726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727/* end confdefs.h.  */
22728
22729/* Override any GCC internal prototype to avoid an error.
22730   Use char because int might match the return type of a GCC
22731   builtin and then its argument prototype would still apply.  */
22732#ifdef __cplusplus
22733extern "C"
22734#endif
22735char rdma_create_qp ();
22736int
22737main ()
22738{
22739return rdma_create_qp ();
22740  ;
22741  return 0;
22742}
22743_ACEOF
22744if ac_fn_c_try_link "$LINENO"; then :
22745  ac_cv_lib_rdmacm_rdma_create_qp=yes
22746else
22747  ac_cv_lib_rdmacm_rdma_create_qp=no
22748fi
22749rm -f core conftest.err conftest.$ac_objext \
22750    conftest$ac_exeext conftest.$ac_ext
22751LIBS=$ac_check_lib_save_LIBS
22752fi
22753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22754$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22755if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
22756  fi_check_package_lib_happy="yes"
22757else
22758  fi_check_package_lib_happy="no"
22759fi
22760
22761                     if test "$fi_check_package_lib_happy" = "no"; then :
22762   # no go on the as is..  see what happens later...
22763                          LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
22764                          verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
22765                          unset ac_cv_lib_rdmacm_rdma_create_qp
22766fi
22767fi
22768fi
22769
22770           if test "$fi_check_package_lib_happy" = "no"; then :
22771  if test "$fi_check_package_libdir" != ""; then :
22772  verbs_rdmacm_LDFLAGS="$verbs_rdmacm_LDFLAGS -L$fi_check_package_libdir/lib"
22773                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
22774                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
22775$as_echo "looking for library in lib" >&6; }
22776                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22777$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22778if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22779  $as_echo_n "(cached) " >&6
22780else
22781  ac_check_lib_save_LIBS=$LIBS
22782LIBS="-lrdmacm  $LIBS"
22783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784/* end confdefs.h.  */
22785
22786/* Override any GCC internal prototype to avoid an error.
22787   Use char because int might match the return type of a GCC
22788   builtin and then its argument prototype would still apply.  */
22789#ifdef __cplusplus
22790extern "C"
22791#endif
22792char rdma_create_qp ();
22793int
22794main ()
22795{
22796return rdma_create_qp ();
22797  ;
22798  return 0;
22799}
22800_ACEOF
22801if ac_fn_c_try_link "$LINENO"; then :
22802  ac_cv_lib_rdmacm_rdma_create_qp=yes
22803else
22804  ac_cv_lib_rdmacm_rdma_create_qp=no
22805fi
22806rm -f core conftest.err conftest.$ac_objext \
22807    conftest$ac_exeext conftest.$ac_ext
22808LIBS=$ac_check_lib_save_LIBS
22809fi
22810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22811$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22812if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
22813  fi_check_package_lib_happy="yes"
22814else
22815  fi_check_package_lib_happy="no"
22816fi
22817
22818                     if test "$fi_check_package_lib_happy" = "no"; then :
22819   # no go on the as is..  see what happens later...
22820                          LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
22821                          verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
22822                          unset ac_cv_lib_rdmacm_rdma_create_qp
22823fi
22824fi
22825fi
22826fi
22827
22828    if test "$fi_check_package_lib_happy" = "yes"; then :
22829  verbs_rdmacm_LIBS="-lrdmacm "
22830           fi_check_package_happy="yes"
22831else
22832  fi_check_package_happy="no"
22833fi
22834
22835
22836else
22837  fi_check_package_happy="no"
22838fi
22839else
22840
22841    # This is stolen from autoconf to peek under the covers to get the
22842    # cache variable for the library check.
22843
22844    # See comment above
22845    unset ac_cv_lib_rdmacm_rdma_create_qp
22846    fi_check_package_lib_happy="no"
22847    if test "$verbs_LIBDIR" != ""; then :
22848   # libdir was specified - search only there
22849           verbs_rdmacm_LDFLAGS="$verbs_rdmacm_LDFLAGS -L$verbs_LIBDIR"
22850           LDFLAGS="$LDFLAGS -L$verbs_LIBDIR"
22851           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22852$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22853if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22854  $as_echo_n "(cached) " >&6
22855else
22856  ac_check_lib_save_LIBS=$LIBS
22857LIBS="-lrdmacm  $LIBS"
22858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859/* end confdefs.h.  */
22860
22861/* Override any GCC internal prototype to avoid an error.
22862   Use char because int might match the return type of a GCC
22863   builtin and then its argument prototype would still apply.  */
22864#ifdef __cplusplus
22865extern "C"
22866#endif
22867char rdma_create_qp ();
22868int
22869main ()
22870{
22871return rdma_create_qp ();
22872  ;
22873  return 0;
22874}
22875_ACEOF
22876if ac_fn_c_try_link "$LINENO"; then :
22877  ac_cv_lib_rdmacm_rdma_create_qp=yes
22878else
22879  ac_cv_lib_rdmacm_rdma_create_qp=no
22880fi
22881rm -f core conftest.err conftest.$ac_objext \
22882    conftest$ac_exeext conftest.$ac_ext
22883LIBS=$ac_check_lib_save_LIBS
22884fi
22885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22886$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22887if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
22888  fi_check_package_lib_happy="yes"
22889else
22890  fi_check_package_lib_happy="no"
22891fi
22892
22893           if test "$fi_check_package_lib_happy" = "no"; then :
22894  LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
22895                  verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
22896                  unset ac_cv_lib_rdmacm_rdma_create_qp
22897fi
22898else
22899   # libdir was not specified - go through search path
22900           fi_check_package_libdir="$verbs_PREFIX"
22901           if test "$fi_check_package_libdir" = "" || \
22902                  test "$fi_check_package_libdir" = "/usr" || \
22903                  test "$fi_check_package_libdir" = "/usr/local"; then :
22904   # try as is...
22905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
22906$as_echo "looking for library without search path" >&6; }
22907                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22908$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22909if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22910  $as_echo_n "(cached) " >&6
22911else
22912  ac_check_lib_save_LIBS=$LIBS
22913LIBS="-lrdmacm  $LIBS"
22914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22915/* end confdefs.h.  */
22916
22917/* Override any GCC internal prototype to avoid an error.
22918   Use char because int might match the return type of a GCC
22919   builtin and then its argument prototype would still apply.  */
22920#ifdef __cplusplus
22921extern "C"
22922#endif
22923char rdma_create_qp ();
22924int
22925main ()
22926{
22927return rdma_create_qp ();
22928  ;
22929  return 0;
22930}
22931_ACEOF
22932if ac_fn_c_try_link "$LINENO"; then :
22933  ac_cv_lib_rdmacm_rdma_create_qp=yes
22934else
22935  ac_cv_lib_rdmacm_rdma_create_qp=no
22936fi
22937rm -f core conftest.err conftest.$ac_objext \
22938    conftest$ac_exeext conftest.$ac_ext
22939LIBS=$ac_check_lib_save_LIBS
22940fi
22941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22942$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22943if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
22944  fi_check_package_lib_happy="yes"
22945else
22946  fi_check_package_lib_happy="no"
22947fi
22948
22949                if test "$fi_check_package_lib_happy" = "no"; then :
22950   # no go on the as is..  see what happens later...
22951                     LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
22952                     verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
22953                     unset ac_cv_lib_rdmacm_rdma_create_qp
22954fi
22955fi
22956
22957           if test "$fi_check_package_lib_happy" = "no"; then :
22958  if test "$fi_check_package_libdir" != ""; then :
22959  verbs_rdmacm_LDFLAGS="$verbs_rdmacm_LDFLAGS -L$fi_check_package_libdir/lib64"
22960                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
22961                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
22962$as_echo "looking for library in lib64" >&6; }
22963                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
22964$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
22965if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
22966  $as_echo_n "(cached) " >&6
22967else
22968  ac_check_lib_save_LIBS=$LIBS
22969LIBS="-lrdmacm  $LIBS"
22970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22971/* end confdefs.h.  */
22972
22973/* Override any GCC internal prototype to avoid an error.
22974   Use char because int might match the return type of a GCC
22975   builtin and then its argument prototype would still apply.  */
22976#ifdef __cplusplus
22977extern "C"
22978#endif
22979char rdma_create_qp ();
22980int
22981main ()
22982{
22983return rdma_create_qp ();
22984  ;
22985  return 0;
22986}
22987_ACEOF
22988if ac_fn_c_try_link "$LINENO"; then :
22989  ac_cv_lib_rdmacm_rdma_create_qp=yes
22990else
22991  ac_cv_lib_rdmacm_rdma_create_qp=no
22992fi
22993rm -f core conftest.err conftest.$ac_objext \
22994    conftest$ac_exeext conftest.$ac_ext
22995LIBS=$ac_check_lib_save_LIBS
22996fi
22997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
22998$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
22999if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
23000  fi_check_package_lib_happy="yes"
23001else
23002  fi_check_package_lib_happy="no"
23003fi
23004
23005                     if test "$fi_check_package_lib_happy" = "no"; then :
23006   # no go on the as is..  see what happens later...
23007                          LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
23008                          verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
23009                          unset ac_cv_lib_rdmacm_rdma_create_qp
23010fi
23011fi
23012fi
23013
23014           if test "$fi_check_package_lib_happy" = "no"; then :
23015  if test "$fi_check_package_libdir" != ""; then :
23016  verbs_rdmacm_LDFLAGS="$verbs_rdmacm_LDFLAGS -L$fi_check_package_libdir/lib"
23017                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
23018                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
23019$as_echo "looking for library in lib" >&6; }
23020                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp in -lrdmacm" >&5
23021$as_echo_n "checking for rdma_create_qp in -lrdmacm... " >&6; }
23022if ${ac_cv_lib_rdmacm_rdma_create_qp+:} false; then :
23023  $as_echo_n "(cached) " >&6
23024else
23025  ac_check_lib_save_LIBS=$LIBS
23026LIBS="-lrdmacm  $LIBS"
23027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028/* end confdefs.h.  */
23029
23030/* Override any GCC internal prototype to avoid an error.
23031   Use char because int might match the return type of a GCC
23032   builtin and then its argument prototype would still apply.  */
23033#ifdef __cplusplus
23034extern "C"
23035#endif
23036char rdma_create_qp ();
23037int
23038main ()
23039{
23040return rdma_create_qp ();
23041  ;
23042  return 0;
23043}
23044_ACEOF
23045if ac_fn_c_try_link "$LINENO"; then :
23046  ac_cv_lib_rdmacm_rdma_create_qp=yes
23047else
23048  ac_cv_lib_rdmacm_rdma_create_qp=no
23049fi
23050rm -f core conftest.err conftest.$ac_objext \
23051    conftest$ac_exeext conftest.$ac_ext
23052LIBS=$ac_check_lib_save_LIBS
23053fi
23054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp" >&5
23055$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp" >&6; }
23056if test "x$ac_cv_lib_rdmacm_rdma_create_qp" = xyes; then :
23057  fi_check_package_lib_happy="yes"
23058else
23059  fi_check_package_lib_happy="no"
23060fi
23061
23062                     if test "$fi_check_package_lib_happy" = "no"; then :
23063   # no go on the as is..  see what happens later...
23064                          LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
23065                          verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
23066                          unset ac_cv_lib_rdmacm_rdma_create_qp
23067fi
23068fi
23069fi
23070fi
23071
23072    if test "$fi_check_package_lib_happy" = "yes"; then :
23073  verbs_rdmacm_LIBS="-lrdmacm "
23074           fi_check_package_happy="yes"
23075else
23076  fi_check_package_happy="no"
23077fi
23078
23079
23080fi
23081    unset fi_check_package_header_happy
23082
23083
23084
23085    if test "$fi_check_package_happy" = "yes"; then :
23086  verbs_rdmacm_happy=1
23087else
23088  verbs_rdmacm_CPPFLAGS="$fi_check_package_verbs_rdmacm_orig_CPPFLAGS"
23089           verbs_rdmacm_LDFLAGS="$fi_check_package_verbs_rdmacm_orig_LDFLAGS"
23090           verbs_rdmacm_LIBS="$fi_check_package_verbs_rdmacm_orig_LIBS"
23091           verbs_rdmacm_happy=0
23092fi
23093
23094
23095
23096
23097
23098    CPPFLAGS="$fi_check_package_verbs_rdmacm_save_CPPFLAGS"
23099    LDFLAGS="$fi_check_package_verbs_rdmacm_save_LDFLAGS"
23100    LIBS="$fi_check_package_verbs_rdmacm_save_LIBS"
23101
23102
23103
23104    fi_check_package_verbs_rdmacm_ex_save_CPPFLAGS="$CPPFLAGS"
23105    fi_check_package_verbs_rdmacm_ex_save_LDFLAGS="$LDFLAGS"
23106    fi_check_package_verbs_rdmacm_ex_save_LIBS="$LIBS"
23107
23108    fi_check_package_verbs_rdmacm_ex_orig_CPPFLAGS="$verbs_rdmacm_ex_CPPFLAGS"
23109    fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS"
23110    fi_check_package_verbs_rdmacm_ex_orig_LIBS="$verbs_rdmacm_ex_LIBS"
23111
23112
23113    # This is stolen from autoconf to peek under the covers to get the
23114    # cache variable for the library check.
23115
23116
23117    # There's unfortunately no way to get through the progression of
23118    # header includes without killing off the cache variable and
23119    # trying again...
23120    unset ac_cv_header_rdma_rdma_cma_h
23121
23122    fi_check_package_header_happy="no"
23123    if test "$verbs_PREFIX" = "/usr" || test "$verbs_PREFIX" = "/usr/local"; then :
23124   # try as is...
23125            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
23126$as_echo "looking for header without includes" >&6; }
23127            for ac_header in rdma/rdma_cma.h
23128do :
23129  ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default"
23130if test "x$ac_cv_header_rdma_rdma_cma_h" = xyes; then :
23131  cat >>confdefs.h <<_ACEOF
23132#define HAVE_RDMA_RDMA_CMA_H 1
23133_ACEOF
23134 fi_check_package_header_happy="yes"
23135fi
23136
23137done
23138
23139            if test "$fi_check_package_header_happy" = "no"; then :
23140  # no go on the as is - reset the cache and try again
23141                   unset ac_cv_header_rdma_rdma_cma_h
23142fi
23143fi
23144
23145    if test "$fi_check_package_header_happy" = "no"; then :
23146  if test "$verbs_PREFIX" != ""; then :
23147  verbs_rdmacm_ex_CPPFLAGS="$verbs_rdmacm_ex_CPPFLAGS -I$verbs_PREFIX/include"
23148                  CPPFLAGS="$CPPFLAGS -I$verbs_PREFIX/include"
23149fi
23150          for ac_header in rdma/rdma_cma.h
23151do :
23152  ac_fn_c_check_header_mongrel "$LINENO" "rdma/rdma_cma.h" "ac_cv_header_rdma_rdma_cma_h" "$ac_includes_default"
23153if test "x$ac_cv_header_rdma_rdma_cma_h" = xyes; then :
23154  cat >>confdefs.h <<_ACEOF
23155#define HAVE_RDMA_RDMA_CMA_H 1
23156_ACEOF
23157 fi_check_package_header_happy="yes"
23158fi
23159
23160done
23161
23162          if test "$fi_check_package_header_happy" = "yes"; then :
23163
23164    # This is stolen from autoconf to peek under the covers to get the
23165    # cache variable for the library check.
23166
23167    # See comment above
23168    unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23169    fi_check_package_lib_happy="no"
23170    if test "$verbs_LIBDIR" != ""; then :
23171   # libdir was specified - search only there
23172           verbs_rdmacm_ex_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS -L$verbs_LIBDIR"
23173           LDFLAGS="$LDFLAGS -L$verbs_LIBDIR"
23174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23175$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23176if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23177  $as_echo_n "(cached) " >&6
23178else
23179  ac_check_lib_save_LIBS=$LIBS
23180LIBS="-lrdmacm  $LIBS"
23181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23182/* end confdefs.h.  */
23183
23184/* Override any GCC internal prototype to avoid an error.
23185   Use char because int might match the return type of a GCC
23186   builtin and then its argument prototype would still apply.  */
23187#ifdef __cplusplus
23188extern "C"
23189#endif
23190char rdma_create_qp_ex ();
23191int
23192main ()
23193{
23194return rdma_create_qp_ex ();
23195  ;
23196  return 0;
23197}
23198_ACEOF
23199if ac_fn_c_try_link "$LINENO"; then :
23200  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23201else
23202  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23203fi
23204rm -f core conftest.err conftest.$ac_objext \
23205    conftest$ac_exeext conftest.$ac_ext
23206LIBS=$ac_check_lib_save_LIBS
23207fi
23208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23209$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23210if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23211  fi_check_package_lib_happy="yes"
23212else
23213  fi_check_package_lib_happy="no"
23214fi
23215
23216           if test "$fi_check_package_lib_happy" = "no"; then :
23217  LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23218                  verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23219                  unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23220fi
23221else
23222   # libdir was not specified - go through search path
23223           fi_check_package_libdir="$verbs_PREFIX"
23224           if test "$fi_check_package_libdir" = "" || \
23225                  test "$fi_check_package_libdir" = "/usr" || \
23226                  test "$fi_check_package_libdir" = "/usr/local"; then :
23227   # try as is...
23228                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
23229$as_echo "looking for library without search path" >&6; }
23230                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23231$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23232if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23233  $as_echo_n "(cached) " >&6
23234else
23235  ac_check_lib_save_LIBS=$LIBS
23236LIBS="-lrdmacm  $LIBS"
23237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23238/* end confdefs.h.  */
23239
23240/* Override any GCC internal prototype to avoid an error.
23241   Use char because int might match the return type of a GCC
23242   builtin and then its argument prototype would still apply.  */
23243#ifdef __cplusplus
23244extern "C"
23245#endif
23246char rdma_create_qp_ex ();
23247int
23248main ()
23249{
23250return rdma_create_qp_ex ();
23251  ;
23252  return 0;
23253}
23254_ACEOF
23255if ac_fn_c_try_link "$LINENO"; then :
23256  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23257else
23258  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23259fi
23260rm -f core conftest.err conftest.$ac_objext \
23261    conftest$ac_exeext conftest.$ac_ext
23262LIBS=$ac_check_lib_save_LIBS
23263fi
23264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23265$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23266if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23267  fi_check_package_lib_happy="yes"
23268else
23269  fi_check_package_lib_happy="no"
23270fi
23271
23272                if test "$fi_check_package_lib_happy" = "no"; then :
23273   # no go on the as is..  see what happens later...
23274                     LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23275                     verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23276                     unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23277fi
23278fi
23279
23280           if test "$fi_check_package_lib_happy" = "no"; then :
23281  if test "$fi_check_package_libdir" != ""; then :
23282  verbs_rdmacm_ex_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS -L$fi_check_package_libdir/lib64"
23283                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
23284                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
23285$as_echo "looking for library in lib64" >&6; }
23286                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23287$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23288if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23289  $as_echo_n "(cached) " >&6
23290else
23291  ac_check_lib_save_LIBS=$LIBS
23292LIBS="-lrdmacm  $LIBS"
23293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23294/* end confdefs.h.  */
23295
23296/* Override any GCC internal prototype to avoid an error.
23297   Use char because int might match the return type of a GCC
23298   builtin and then its argument prototype would still apply.  */
23299#ifdef __cplusplus
23300extern "C"
23301#endif
23302char rdma_create_qp_ex ();
23303int
23304main ()
23305{
23306return rdma_create_qp_ex ();
23307  ;
23308  return 0;
23309}
23310_ACEOF
23311if ac_fn_c_try_link "$LINENO"; then :
23312  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23313else
23314  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23315fi
23316rm -f core conftest.err conftest.$ac_objext \
23317    conftest$ac_exeext conftest.$ac_ext
23318LIBS=$ac_check_lib_save_LIBS
23319fi
23320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23321$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23322if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23323  fi_check_package_lib_happy="yes"
23324else
23325  fi_check_package_lib_happy="no"
23326fi
23327
23328                     if test "$fi_check_package_lib_happy" = "no"; then :
23329   # no go on the as is..  see what happens later...
23330                          LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23331                          verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23332                          unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23333fi
23334fi
23335fi
23336
23337           if test "$fi_check_package_lib_happy" = "no"; then :
23338  if test "$fi_check_package_libdir" != ""; then :
23339  verbs_rdmacm_ex_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS -L$fi_check_package_libdir/lib"
23340                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
23341                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
23342$as_echo "looking for library in lib" >&6; }
23343                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23344$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23345if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23346  $as_echo_n "(cached) " >&6
23347else
23348  ac_check_lib_save_LIBS=$LIBS
23349LIBS="-lrdmacm  $LIBS"
23350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23351/* end confdefs.h.  */
23352
23353/* Override any GCC internal prototype to avoid an error.
23354   Use char because int might match the return type of a GCC
23355   builtin and then its argument prototype would still apply.  */
23356#ifdef __cplusplus
23357extern "C"
23358#endif
23359char rdma_create_qp_ex ();
23360int
23361main ()
23362{
23363return rdma_create_qp_ex ();
23364  ;
23365  return 0;
23366}
23367_ACEOF
23368if ac_fn_c_try_link "$LINENO"; then :
23369  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23370else
23371  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23372fi
23373rm -f core conftest.err conftest.$ac_objext \
23374    conftest$ac_exeext conftest.$ac_ext
23375LIBS=$ac_check_lib_save_LIBS
23376fi
23377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23378$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23379if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23380  fi_check_package_lib_happy="yes"
23381else
23382  fi_check_package_lib_happy="no"
23383fi
23384
23385                     if test "$fi_check_package_lib_happy" = "no"; then :
23386   # no go on the as is..  see what happens later...
23387                          LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23388                          verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23389                          unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23390fi
23391fi
23392fi
23393fi
23394
23395    if test "$fi_check_package_lib_happy" = "yes"; then :
23396  verbs_rdmacm_ex_LIBS="-lrdmacm "
23397           fi_check_package_happy="yes"
23398else
23399  fi_check_package_happy="no"
23400fi
23401
23402
23403else
23404  fi_check_package_happy="no"
23405fi
23406else
23407
23408    # This is stolen from autoconf to peek under the covers to get the
23409    # cache variable for the library check.
23410
23411    # See comment above
23412    unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23413    fi_check_package_lib_happy="no"
23414    if test "$verbs_LIBDIR" != ""; then :
23415   # libdir was specified - search only there
23416           verbs_rdmacm_ex_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS -L$verbs_LIBDIR"
23417           LDFLAGS="$LDFLAGS -L$verbs_LIBDIR"
23418           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23419$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23420if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23421  $as_echo_n "(cached) " >&6
23422else
23423  ac_check_lib_save_LIBS=$LIBS
23424LIBS="-lrdmacm  $LIBS"
23425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23426/* end confdefs.h.  */
23427
23428/* Override any GCC internal prototype to avoid an error.
23429   Use char because int might match the return type of a GCC
23430   builtin and then its argument prototype would still apply.  */
23431#ifdef __cplusplus
23432extern "C"
23433#endif
23434char rdma_create_qp_ex ();
23435int
23436main ()
23437{
23438return rdma_create_qp_ex ();
23439  ;
23440  return 0;
23441}
23442_ACEOF
23443if ac_fn_c_try_link "$LINENO"; then :
23444  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23445else
23446  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23447fi
23448rm -f core conftest.err conftest.$ac_objext \
23449    conftest$ac_exeext conftest.$ac_ext
23450LIBS=$ac_check_lib_save_LIBS
23451fi
23452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23453$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23454if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23455  fi_check_package_lib_happy="yes"
23456else
23457  fi_check_package_lib_happy="no"
23458fi
23459
23460           if test "$fi_check_package_lib_happy" = "no"; then :
23461  LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23462                  verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23463                  unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23464fi
23465else
23466   # libdir was not specified - go through search path
23467           fi_check_package_libdir="$verbs_PREFIX"
23468           if test "$fi_check_package_libdir" = "" || \
23469                  test "$fi_check_package_libdir" = "/usr" || \
23470                  test "$fi_check_package_libdir" = "/usr/local"; then :
23471   # try as is...
23472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
23473$as_echo "looking for library without search path" >&6; }
23474                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23475$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23476if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23477  $as_echo_n "(cached) " >&6
23478else
23479  ac_check_lib_save_LIBS=$LIBS
23480LIBS="-lrdmacm  $LIBS"
23481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482/* end confdefs.h.  */
23483
23484/* Override any GCC internal prototype to avoid an error.
23485   Use char because int might match the return type of a GCC
23486   builtin and then its argument prototype would still apply.  */
23487#ifdef __cplusplus
23488extern "C"
23489#endif
23490char rdma_create_qp_ex ();
23491int
23492main ()
23493{
23494return rdma_create_qp_ex ();
23495  ;
23496  return 0;
23497}
23498_ACEOF
23499if ac_fn_c_try_link "$LINENO"; then :
23500  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23501else
23502  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23503fi
23504rm -f core conftest.err conftest.$ac_objext \
23505    conftest$ac_exeext conftest.$ac_ext
23506LIBS=$ac_check_lib_save_LIBS
23507fi
23508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23509$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23510if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23511  fi_check_package_lib_happy="yes"
23512else
23513  fi_check_package_lib_happy="no"
23514fi
23515
23516                if test "$fi_check_package_lib_happy" = "no"; then :
23517   # no go on the as is..  see what happens later...
23518                     LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23519                     verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23520                     unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23521fi
23522fi
23523
23524           if test "$fi_check_package_lib_happy" = "no"; then :
23525  if test "$fi_check_package_libdir" != ""; then :
23526  verbs_rdmacm_ex_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS -L$fi_check_package_libdir/lib64"
23527                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
23528                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
23529$as_echo "looking for library in lib64" >&6; }
23530                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23531$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23532if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23533  $as_echo_n "(cached) " >&6
23534else
23535  ac_check_lib_save_LIBS=$LIBS
23536LIBS="-lrdmacm  $LIBS"
23537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538/* end confdefs.h.  */
23539
23540/* Override any GCC internal prototype to avoid an error.
23541   Use char because int might match the return type of a GCC
23542   builtin and then its argument prototype would still apply.  */
23543#ifdef __cplusplus
23544extern "C"
23545#endif
23546char rdma_create_qp_ex ();
23547int
23548main ()
23549{
23550return rdma_create_qp_ex ();
23551  ;
23552  return 0;
23553}
23554_ACEOF
23555if ac_fn_c_try_link "$LINENO"; then :
23556  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23557else
23558  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23559fi
23560rm -f core conftest.err conftest.$ac_objext \
23561    conftest$ac_exeext conftest.$ac_ext
23562LIBS=$ac_check_lib_save_LIBS
23563fi
23564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23565$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23566if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23567  fi_check_package_lib_happy="yes"
23568else
23569  fi_check_package_lib_happy="no"
23570fi
23571
23572                     if test "$fi_check_package_lib_happy" = "no"; then :
23573   # no go on the as is..  see what happens later...
23574                          LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23575                          verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23576                          unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23577fi
23578fi
23579fi
23580
23581           if test "$fi_check_package_lib_happy" = "no"; then :
23582  if test "$fi_check_package_libdir" != ""; then :
23583  verbs_rdmacm_ex_LDFLAGS="$verbs_rdmacm_ex_LDFLAGS -L$fi_check_package_libdir/lib"
23584                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
23585                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
23586$as_echo "looking for library in lib" >&6; }
23587                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdma_create_qp_ex in -lrdmacm" >&5
23588$as_echo_n "checking for rdma_create_qp_ex in -lrdmacm... " >&6; }
23589if ${ac_cv_lib_rdmacm_rdma_create_qp_ex+:} false; then :
23590  $as_echo_n "(cached) " >&6
23591else
23592  ac_check_lib_save_LIBS=$LIBS
23593LIBS="-lrdmacm  $LIBS"
23594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595/* end confdefs.h.  */
23596
23597/* Override any GCC internal prototype to avoid an error.
23598   Use char because int might match the return type of a GCC
23599   builtin and then its argument prototype would still apply.  */
23600#ifdef __cplusplus
23601extern "C"
23602#endif
23603char rdma_create_qp_ex ();
23604int
23605main ()
23606{
23607return rdma_create_qp_ex ();
23608  ;
23609  return 0;
23610}
23611_ACEOF
23612if ac_fn_c_try_link "$LINENO"; then :
23613  ac_cv_lib_rdmacm_rdma_create_qp_ex=yes
23614else
23615  ac_cv_lib_rdmacm_rdma_create_qp_ex=no
23616fi
23617rm -f core conftest.err conftest.$ac_objext \
23618    conftest$ac_exeext conftest.$ac_ext
23619LIBS=$ac_check_lib_save_LIBS
23620fi
23621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdmacm_rdma_create_qp_ex" >&5
23622$as_echo "$ac_cv_lib_rdmacm_rdma_create_qp_ex" >&6; }
23623if test "x$ac_cv_lib_rdmacm_rdma_create_qp_ex" = xyes; then :
23624  fi_check_package_lib_happy="yes"
23625else
23626  fi_check_package_lib_happy="no"
23627fi
23628
23629                     if test "$fi_check_package_lib_happy" = "no"; then :
23630   # no go on the as is..  see what happens later...
23631                          LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23632                          verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23633                          unset ac_cv_lib_rdmacm_rdma_create_qp_ex
23634fi
23635fi
23636fi
23637fi
23638
23639    if test "$fi_check_package_lib_happy" = "yes"; then :
23640  verbs_rdmacm_ex_LIBS="-lrdmacm "
23641           fi_check_package_happy="yes"
23642else
23643  fi_check_package_happy="no"
23644fi
23645
23646
23647fi
23648    unset fi_check_package_header_happy
23649
23650
23651
23652    if test "$fi_check_package_happy" = "yes"; then :
23653  verbs_rdmacm_ex_happy=1
23654else
23655  verbs_rdmacm_ex_CPPFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_CPPFLAGS"
23656           verbs_rdmacm_ex_LDFLAGS="$fi_check_package_verbs_rdmacm_ex_orig_LDFLAGS"
23657           verbs_rdmacm_ex_LIBS="$fi_check_package_verbs_rdmacm_ex_orig_LIBS"
23658           verbs_rdmacm_ex_happy=0
23659fi
23660
23661
23662
23663
23664
23665    CPPFLAGS="$fi_check_package_verbs_rdmacm_ex_save_CPPFLAGS"
23666    LDFLAGS="$fi_check_package_verbs_rdmacm_ex_save_LDFLAGS"
23667    LIBS="$fi_check_package_verbs_rdmacm_ex_save_LIBS"
23668
23669
23670
23671fi
23672
23673	if test $verbs_ibverbs_happy -eq 1 && \
23674	       test $verbs_rdmacm_happy -eq 1; then :
23675  verbs_happy=1
23676else
23677  verbs_happy=0
23678fi
23679
23680	#See if we have extended verbs calls
23681	VERBS_HAVE_QUERY_EX=0
23682	if test $verbs_ibverbs_happy -eq 1; then :
23683
23684		ac_fn_c_check_decl "$LINENO" "ibv_query_device_ex" "ac_cv_have_decl_ibv_query_device_ex" "#include <infiniband/verbs.h>
23685"
23686if test "x$ac_cv_have_decl_ibv_query_device_ex" = xyes; then :
23687  VERBS_HAVE_QUERY_EX=1
23688fi
23689
23690
23691fi
23692
23693cat >>confdefs.h <<_ACEOF
23694#define VERBS_HAVE_QUERY_EX $VERBS_HAVE_QUERY_EX
23695_ACEOF
23696
23697
23698	#See if we have XRC support
23699	VERBS_HAVE_XRC=0
23700	if test $verbs_ibverbs_happy -eq 1 && \
23701	       test $verbs_rdmacm_ex_happy -eq 1; then :
23702
23703		ac_fn_c_check_decl "$LINENO" "IBV_QPT_XRC_SEND" "ac_cv_have_decl_IBV_QPT_XRC_SEND" "#include <infiniband/verbs.h>
23704"
23705if test "x$ac_cv_have_decl_IBV_QPT_XRC_SEND" = xyes; then :
23706  VERBS_HAVE_XRC=1
23707fi
23708
23709
23710fi
23711
23712cat >>confdefs.h <<_ACEOF
23713#define VERBS_HAVE_XRC $VERBS_HAVE_XRC
23714_ACEOF
23715
23716
23717	#See if we have rdma-core rdma_establish support
23718	VERBS_HAVE_RDMA_ESTABLISH=0
23719	if test $verbs_ibverbs_happy -eq 1 && \
23720	       test $verbs_rdmacm_ex_happy -eq 1; then :
23721
23722		ac_fn_c_check_decl "$LINENO" "rdma_establish" "ac_cv_have_decl_rdma_establish" "#include <rdma/rdma_cma.h>
23723"
23724if test "x$ac_cv_have_decl_rdma_establish" = xyes; then :
23725  VERBS_HAVE_RDMA_ESTABLISH=1
23726fi
23727
23728
23729fi
23730
23731cat >>confdefs.h <<_ACEOF
23732#define VERBS_HAVE_RDMA_ESTABLISH $VERBS_HAVE_RDMA_ESTABLISH
23733_ACEOF
23734
23735
23736	# Technically, verbs_ibverbs_CPPFLAGS and
23737	# verbs_rdmacm_CPPFLAGS could be different, but it is highly
23738	# unlikely that they ever will be.  So only list
23739	# verbs_ibverbs_CPPFLAGS here.  Same with verbs_*_LDFLAGS,
23740	# below.
23741	verbs_CPPFLAGS=$verbs_ibverbs_CPPFLAGS
23742	verbs_LDFLAGS=$verbs_ibverbs_LDFLAGS
23743	verbs_LIBS="$verbs_rdmacm_LIBS $verbs_ibverbs_LIBS"
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754	# See if the provider configured successfully
23755	if test $verbs_happy -eq 1; then :
23756  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD verbs"
23757		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
23758
23759	 FI_PC_CFLAGS="$FI_PC_CFLAGS $verbs_CFLAGS $verbs_CPPFLAGS"
23760	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $verbs_LDFLAGS $verbs_LIBS"
23761
23762		 if test $verbs_dl -eq 1; then :
23763  PROVIDERS_DL="prov/verbs/libverbs.la $PROVIDERS_DL"
23764			 if test x"$enable_static" = x"yes" &&
23765				test x"$enable_shared" = x"no"; then :
23766  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: verbs provider was selected to be built as DL" >&5
23767$as_echo "$as_me: WARNING: verbs provider was selected to be built as DL" >&2;}
23768				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
23769$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
23770				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
23771fi
23772			 { $as_echo "$as_me:${as_lineno-$LINENO}: verbs provider: build as plugin" >&5
23773$as_echo "$as_me: verbs provider: build as plugin" >&6;}
23774
23775			 # See if this provider has a specfile that
23776			 # needs to be generated
23777			 ac_config_files="$ac_config_files prov/verbs/libfabric-verbs.spec"
23778
23779
23780else
23781  PROVIDERS_STATIC="prov/verbs/libverbs.la $PROVIDERS_STATIC"
23782			 { $as_echo "$as_me:${as_lineno-$LINENO}: verbs provider: include in libfabric" >&5
23783$as_echo "$as_me: verbs provider: include in libfabric" >&6;}
23784fi
23785
23786else
23787  { $as_echo "$as_me:${as_lineno-$LINENO}: verbs provider: disabled" >&5
23788$as_echo "$as_me: verbs provider: disabled" >&6;}
23789fi
23790
23791
23792cat >>confdefs.h <<_ACEOF
23793#define HAVE_VERBS $verbs_happy
23794_ACEOF
23795
23796
23797cat >>confdefs.h <<_ACEOF
23798#define HAVE_VERBS_DL $verbs_dl
23799_ACEOF
23800
23801
23802	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
23803	# as well as AC defines
23804	 if test $verbs_happy -eq 1; then
23805  HAVE_VERBS_TRUE=
23806  HAVE_VERBS_FALSE='#'
23807else
23808  HAVE_VERBS_TRUE='#'
23809  HAVE_VERBS_FALSE=
23810fi
23811
23812	 if test $verbs_dl -eq 1; then
23813  HAVE_VERBS_DL_TRUE=
23814  HAVE_VERBS_DL_FALSE='#'
23815else
23816  HAVE_VERBS_DL_TRUE='#'
23817  HAVE_VERBS_DL_FALSE=
23818fi
23819
23820
23821	# If this provider was specifically requested but we can't
23822	# build it, error.
23823	if test "$enable_verbs $verbs_happy" = "yes 0"; then :
23824  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: verbs provider was requested, but cannot be compiled" >&5
23825$as_echo "$as_me: WARNING: verbs provider was requested, but cannot be compiled" >&2;}
23826	       as_fn_error $? "Cannot continue" "$LINENO" 5
23827
23828fi
23829	# If this provider was requested for direct build, ensure that
23830	# provider's fi_direct.h exists in tree. Error otherwise.
23831	if test x"$enable_direct" = x"verbs"; then :
23832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/verbs/include/rdma/fi_direct.h" >&5
23833$as_echo_n "checking for $srcdir/prov/verbs/include/rdma/fi_direct.h... " >&6; }
23834		 if test -f "$srcdir/prov/verbs/include/rdma/fi_direct.h"; then :
23835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23836$as_echo "yes" >&6; }
23837else
23838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23839$as_echo "no" >&6; }
23840			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/verbs/include/rdma/fi_direct.h.in" >&5
23841$as_echo_n "checking for $srcdir/prov/verbs/include/rdma/fi_direct.h.in... " >&6; }
23842			 if test -f "$srcdir/prov/verbs/include/rdma/fi_direct.h.in"; then :
23843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23844$as_echo "yes" >&6; }
23845else
23846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23847$as_echo "no" >&6; }
23848				 as_fn_error $? "verbs provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
23849
23850fi
23851fi
23852fi
23853
23854	 if test -f "$srcdir/prov/verbs/include/rdma/fi_direct.h.in"; then
23855  FI_DIRECT_H_IN_TRUE=
23856  FI_DIRECT_H_IN_FALSE='#'
23857else
23858  FI_DIRECT_H_IN_TRUE='#'
23859  FI_DIRECT_H_IN_FALSE=
23860fi
23861
23862
23863
23864	# Restore CPPFLAGS/LDFLAGS/LIBS
23865	CPPFLAGS=$verbs_orig_CPPFLAGS
23866	unset verbs_orig_CPPFLAGS
23867	LDFLAGS=$verbs_orig_LDFLAGS
23868	unset verbs_orig_LDFLAGS
23869	LIBS=$verbs_orig_LIBS
23870	unset verbs_orig_LIBS
23871
23872
23873
23874	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"efa"; then :
23875  enable_efa=no
23876               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping efa provider because $enable_direct direct requested" >&5
23877$as_echo "$as_me: *** Skipping efa provider because $enable_direct direct requested" >&6;}
23878else
23879  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring efa provider" >&5
23880$as_echo "$as_me: *** Configuring efa provider" >&6;}
23881	       # Check whether --enable-efa was given.
23882if test "${enable_efa+set}" = set; then :
23883  enableval=$enable_efa;
23884else
23885  enable_efa=auto
23886fi
23887
23888fi
23889
23890	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
23891	# Provider's local macros could use the value if needed.
23892	# Also save LIBS, as a matter of principle.
23893	efa_orig_CPPFLAGS=$CPPFLAGS
23894	efa_orig_LDFLAGS=$LDFLAGS
23895	efa_orig_LIBS=$LIBS
23896
23897	# Check the --enable-<efa> value
23898	efa_dl=0
23899	case $enable_efa in #(
23900  yes|no) :
23901     ;; #(
23902  dl) :
23903    enable_efa=yes efa_dl=1 ;; #(
23904  auto) :
23905     ;; #(
23906  dl:*) :
23907
23908	# Check that the base directory exists
23909	if test ! -d "${enable_efa:3}"; then :
23910  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_efa:3}\" does not exist" >&5
23911$as_echo "$as_me: WARNING: supplied directory \"${enable_efa:3}\" does not exist" >&2;}
23912	        as_fn_error $? "Cannot continue" "$LINENO" 5
23913
23914fi
23915
23916	# Check that base/include exists
23917	 if test -d "${enable_efa:3}/include"; then :
23918  efa_PREFIX="${enable_efa:3}"
23919else
23920  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_efa:3}\" directory\"" >&5
23921$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_efa:3}\" directory\"" >&2;}
23922	        as_fn_error $? "Cannot continue" "$LINENO" 5
23923
23924fi
23925
23926	# Check that base/lib or base/lib64 exists
23927	 if test -d "${enable_efa:3}/lib64"; then :
23928  efa_LIBDIR="${enable_efa:3}/lib64"
23929else
23930  if test -d "${enable_efa:3}/lib"; then :
23931  efa_LIBDIR="${enable_efa:3}/lib"
23932else
23933  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_efa:3}\" directory\"" >&5
23934$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_efa:3}\" directory\"" >&2;}
23935		       as_fn_error $? "Cannot continue" "$LINENO" 5
23936
23937fi
23938
23939fi
23940
23941		   enable_efa=yes efa_dl=1 ;; #(
23942  *) :
23943
23944	# Check that the base directory exists
23945	if test ! -d "$enable_efa"; then :
23946  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_efa\" does not exist" >&5
23947$as_echo "$as_me: WARNING: supplied directory \"$enable_efa\" does not exist" >&2;}
23948	        as_fn_error $? "Cannot continue" "$LINENO" 5
23949
23950fi
23951
23952	# Check that base/include exists
23953	 if test -d "$enable_efa/include"; then :
23954  efa_PREFIX="$enable_efa"
23955else
23956  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_efa\" directory\"" >&5
23957$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_efa\" directory\"" >&2;}
23958	        as_fn_error $? "Cannot continue" "$LINENO" 5
23959
23960fi
23961
23962	# Check that base/lib or base/lib64 exists
23963	 if test -d "$enable_efa/lib64"; then :
23964  efa_LIBDIR="$enable_efa/lib64"
23965else
23966  if test -d "$enable_efa/lib"; then :
23967  efa_LIBDIR="$enable_efa/lib"
23968else
23969  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_efa\" directory\"" >&5
23970$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_efa\" directory\"" >&2;}
23971		       as_fn_error $? "Cannot continue" "$LINENO" 5
23972
23973fi
23974
23975fi
23976
23977	 enable_efa=yes
23978	 ;;
23979esac
23980
23981	# Call the provider's CONFIGURE and CONDITIONALS macros
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991	# Determine if we can support the efa provider
23992	efa_happy=0
23993	efa_h_enable_poisoning=0
23994	if test x"$enable_efa" != x"no"; then :
23995
23996    fi_check_package_efa_ibverbs_save_CPPFLAGS="$CPPFLAGS"
23997    fi_check_package_efa_ibverbs_save_LDFLAGS="$LDFLAGS"
23998    fi_check_package_efa_ibverbs_save_LIBS="$LIBS"
23999
24000    fi_check_package_efa_ibverbs_orig_CPPFLAGS="$efa_ibverbs_CPPFLAGS"
24001    fi_check_package_efa_ibverbs_orig_LDFLAGS="$efa_ibverbs_LDFLAGS"
24002    fi_check_package_efa_ibverbs_orig_LIBS="$efa_ibverbs_LIBS"
24003
24004
24005    # This is stolen from autoconf to peek under the covers to get the
24006    # cache variable for the library check.
24007
24008
24009    # There's unfortunately no way to get through the progression of
24010    # header includes without killing off the cache variable and
24011    # trying again...
24012    unset ac_cv_header_infiniband_verbs_h
24013
24014    fi_check_package_header_happy="no"
24015    if test "$efa_PREFIX" = "/usr" || test "$efa_PREFIX" = "/usr/local"; then :
24016   # try as is...
24017            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
24018$as_echo "looking for header without includes" >&6; }
24019            for ac_header in infiniband/verbs.h
24020do :
24021  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
24022if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
24023  cat >>confdefs.h <<_ACEOF
24024#define HAVE_INFINIBAND_VERBS_H 1
24025_ACEOF
24026 fi_check_package_header_happy="yes"
24027fi
24028
24029done
24030
24031            if test "$fi_check_package_header_happy" = "no"; then :
24032  # no go on the as is - reset the cache and try again
24033                   unset ac_cv_header_infiniband_verbs_h
24034fi
24035fi
24036
24037    if test "$fi_check_package_header_happy" = "no"; then :
24038  if test "$efa_PREFIX" != ""; then :
24039  efa_ibverbs_CPPFLAGS="$efa_ibverbs_CPPFLAGS -I$efa_PREFIX/include"
24040                  CPPFLAGS="$CPPFLAGS -I$efa_PREFIX/include"
24041fi
24042          for ac_header in infiniband/verbs.h
24043do :
24044  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
24045if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
24046  cat >>confdefs.h <<_ACEOF
24047#define HAVE_INFINIBAND_VERBS_H 1
24048_ACEOF
24049 fi_check_package_header_happy="yes"
24050fi
24051
24052done
24053
24054          if test "$fi_check_package_header_happy" = "yes"; then :
24055
24056    # This is stolen from autoconf to peek under the covers to get the
24057    # cache variable for the library check.
24058
24059    # See comment above
24060    unset ac_cv_lib_ibverbs_ibv_open_device
24061    fi_check_package_lib_happy="no"
24062    if test "$efa_LIBDIR" != ""; then :
24063   # libdir was specified - search only there
24064           efa_ibverbs_LDFLAGS="$efa_ibverbs_LDFLAGS -L$efa_LIBDIR"
24065           LDFLAGS="$LDFLAGS -L$efa_LIBDIR"
24066           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24067$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24068if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24069  $as_echo_n "(cached) " >&6
24070else
24071  ac_check_lib_save_LIBS=$LIBS
24072LIBS="-libverbs  $LIBS"
24073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24074/* end confdefs.h.  */
24075
24076/* Override any GCC internal prototype to avoid an error.
24077   Use char because int might match the return type of a GCC
24078   builtin and then its argument prototype would still apply.  */
24079#ifdef __cplusplus
24080extern "C"
24081#endif
24082char ibv_open_device ();
24083int
24084main ()
24085{
24086return ibv_open_device ();
24087  ;
24088  return 0;
24089}
24090_ACEOF
24091if ac_fn_c_try_link "$LINENO"; then :
24092  ac_cv_lib_ibverbs_ibv_open_device=yes
24093else
24094  ac_cv_lib_ibverbs_ibv_open_device=no
24095fi
24096rm -f core conftest.err conftest.$ac_objext \
24097    conftest$ac_exeext conftest.$ac_ext
24098LIBS=$ac_check_lib_save_LIBS
24099fi
24100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24101$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24102if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24103  fi_check_package_lib_happy="yes"
24104else
24105  fi_check_package_lib_happy="no"
24106fi
24107
24108           if test "$fi_check_package_lib_happy" = "no"; then :
24109  LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24110                  efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24111                  unset ac_cv_lib_ibverbs_ibv_open_device
24112fi
24113else
24114   # libdir was not specified - go through search path
24115           fi_check_package_libdir="$efa_PREFIX"
24116           if test "$fi_check_package_libdir" = "" || \
24117                  test "$fi_check_package_libdir" = "/usr" || \
24118                  test "$fi_check_package_libdir" = "/usr/local"; then :
24119   # try as is...
24120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
24121$as_echo "looking for library without search path" >&6; }
24122                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24123$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24124if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24125  $as_echo_n "(cached) " >&6
24126else
24127  ac_check_lib_save_LIBS=$LIBS
24128LIBS="-libverbs  $LIBS"
24129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24130/* end confdefs.h.  */
24131
24132/* Override any GCC internal prototype to avoid an error.
24133   Use char because int might match the return type of a GCC
24134   builtin and then its argument prototype would still apply.  */
24135#ifdef __cplusplus
24136extern "C"
24137#endif
24138char ibv_open_device ();
24139int
24140main ()
24141{
24142return ibv_open_device ();
24143  ;
24144  return 0;
24145}
24146_ACEOF
24147if ac_fn_c_try_link "$LINENO"; then :
24148  ac_cv_lib_ibverbs_ibv_open_device=yes
24149else
24150  ac_cv_lib_ibverbs_ibv_open_device=no
24151fi
24152rm -f core conftest.err conftest.$ac_objext \
24153    conftest$ac_exeext conftest.$ac_ext
24154LIBS=$ac_check_lib_save_LIBS
24155fi
24156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24157$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24158if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24159  fi_check_package_lib_happy="yes"
24160else
24161  fi_check_package_lib_happy="no"
24162fi
24163
24164                if test "$fi_check_package_lib_happy" = "no"; then :
24165   # no go on the as is..  see what happens later...
24166                     LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24167                     efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24168                     unset ac_cv_lib_ibverbs_ibv_open_device
24169fi
24170fi
24171
24172           if test "$fi_check_package_lib_happy" = "no"; then :
24173  if test "$fi_check_package_libdir" != ""; then :
24174  efa_ibverbs_LDFLAGS="$efa_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib64"
24175                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
24176                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
24177$as_echo "looking for library in lib64" >&6; }
24178                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24179$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24180if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24181  $as_echo_n "(cached) " >&6
24182else
24183  ac_check_lib_save_LIBS=$LIBS
24184LIBS="-libverbs  $LIBS"
24185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24186/* end confdefs.h.  */
24187
24188/* Override any GCC internal prototype to avoid an error.
24189   Use char because int might match the return type of a GCC
24190   builtin and then its argument prototype would still apply.  */
24191#ifdef __cplusplus
24192extern "C"
24193#endif
24194char ibv_open_device ();
24195int
24196main ()
24197{
24198return ibv_open_device ();
24199  ;
24200  return 0;
24201}
24202_ACEOF
24203if ac_fn_c_try_link "$LINENO"; then :
24204  ac_cv_lib_ibverbs_ibv_open_device=yes
24205else
24206  ac_cv_lib_ibverbs_ibv_open_device=no
24207fi
24208rm -f core conftest.err conftest.$ac_objext \
24209    conftest$ac_exeext conftest.$ac_ext
24210LIBS=$ac_check_lib_save_LIBS
24211fi
24212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24213$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24214if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24215  fi_check_package_lib_happy="yes"
24216else
24217  fi_check_package_lib_happy="no"
24218fi
24219
24220                     if test "$fi_check_package_lib_happy" = "no"; then :
24221   # no go on the as is..  see what happens later...
24222                          LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24223                          efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24224                          unset ac_cv_lib_ibverbs_ibv_open_device
24225fi
24226fi
24227fi
24228
24229           if test "$fi_check_package_lib_happy" = "no"; then :
24230  if test "$fi_check_package_libdir" != ""; then :
24231  efa_ibverbs_LDFLAGS="$efa_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib"
24232                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
24233                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
24234$as_echo "looking for library in lib" >&6; }
24235                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24236$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24237if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24238  $as_echo_n "(cached) " >&6
24239else
24240  ac_check_lib_save_LIBS=$LIBS
24241LIBS="-libverbs  $LIBS"
24242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24243/* end confdefs.h.  */
24244
24245/* Override any GCC internal prototype to avoid an error.
24246   Use char because int might match the return type of a GCC
24247   builtin and then its argument prototype would still apply.  */
24248#ifdef __cplusplus
24249extern "C"
24250#endif
24251char ibv_open_device ();
24252int
24253main ()
24254{
24255return ibv_open_device ();
24256  ;
24257  return 0;
24258}
24259_ACEOF
24260if ac_fn_c_try_link "$LINENO"; then :
24261  ac_cv_lib_ibverbs_ibv_open_device=yes
24262else
24263  ac_cv_lib_ibverbs_ibv_open_device=no
24264fi
24265rm -f core conftest.err conftest.$ac_objext \
24266    conftest$ac_exeext conftest.$ac_ext
24267LIBS=$ac_check_lib_save_LIBS
24268fi
24269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24270$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24271if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24272  fi_check_package_lib_happy="yes"
24273else
24274  fi_check_package_lib_happy="no"
24275fi
24276
24277                     if test "$fi_check_package_lib_happy" = "no"; then :
24278   # no go on the as is..  see what happens later...
24279                          LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24280                          efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24281                          unset ac_cv_lib_ibverbs_ibv_open_device
24282fi
24283fi
24284fi
24285fi
24286
24287    if test "$fi_check_package_lib_happy" = "yes"; then :
24288  efa_ibverbs_LIBS="-libverbs "
24289           fi_check_package_happy="yes"
24290else
24291  fi_check_package_happy="no"
24292fi
24293
24294
24295else
24296  fi_check_package_happy="no"
24297fi
24298else
24299
24300    # This is stolen from autoconf to peek under the covers to get the
24301    # cache variable for the library check.
24302
24303    # See comment above
24304    unset ac_cv_lib_ibverbs_ibv_open_device
24305    fi_check_package_lib_happy="no"
24306    if test "$efa_LIBDIR" != ""; then :
24307   # libdir was specified - search only there
24308           efa_ibverbs_LDFLAGS="$efa_ibverbs_LDFLAGS -L$efa_LIBDIR"
24309           LDFLAGS="$LDFLAGS -L$efa_LIBDIR"
24310           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24311$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24312if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24313  $as_echo_n "(cached) " >&6
24314else
24315  ac_check_lib_save_LIBS=$LIBS
24316LIBS="-libverbs  $LIBS"
24317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24318/* end confdefs.h.  */
24319
24320/* Override any GCC internal prototype to avoid an error.
24321   Use char because int might match the return type of a GCC
24322   builtin and then its argument prototype would still apply.  */
24323#ifdef __cplusplus
24324extern "C"
24325#endif
24326char ibv_open_device ();
24327int
24328main ()
24329{
24330return ibv_open_device ();
24331  ;
24332  return 0;
24333}
24334_ACEOF
24335if ac_fn_c_try_link "$LINENO"; then :
24336  ac_cv_lib_ibverbs_ibv_open_device=yes
24337else
24338  ac_cv_lib_ibverbs_ibv_open_device=no
24339fi
24340rm -f core conftest.err conftest.$ac_objext \
24341    conftest$ac_exeext conftest.$ac_ext
24342LIBS=$ac_check_lib_save_LIBS
24343fi
24344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24345$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24346if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24347  fi_check_package_lib_happy="yes"
24348else
24349  fi_check_package_lib_happy="no"
24350fi
24351
24352           if test "$fi_check_package_lib_happy" = "no"; then :
24353  LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24354                  efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24355                  unset ac_cv_lib_ibverbs_ibv_open_device
24356fi
24357else
24358   # libdir was not specified - go through search path
24359           fi_check_package_libdir="$efa_PREFIX"
24360           if test "$fi_check_package_libdir" = "" || \
24361                  test "$fi_check_package_libdir" = "/usr" || \
24362                  test "$fi_check_package_libdir" = "/usr/local"; then :
24363   # try as is...
24364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
24365$as_echo "looking for library without search path" >&6; }
24366                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24367$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24368if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24369  $as_echo_n "(cached) " >&6
24370else
24371  ac_check_lib_save_LIBS=$LIBS
24372LIBS="-libverbs  $LIBS"
24373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374/* end confdefs.h.  */
24375
24376/* Override any GCC internal prototype to avoid an error.
24377   Use char because int might match the return type of a GCC
24378   builtin and then its argument prototype would still apply.  */
24379#ifdef __cplusplus
24380extern "C"
24381#endif
24382char ibv_open_device ();
24383int
24384main ()
24385{
24386return ibv_open_device ();
24387  ;
24388  return 0;
24389}
24390_ACEOF
24391if ac_fn_c_try_link "$LINENO"; then :
24392  ac_cv_lib_ibverbs_ibv_open_device=yes
24393else
24394  ac_cv_lib_ibverbs_ibv_open_device=no
24395fi
24396rm -f core conftest.err conftest.$ac_objext \
24397    conftest$ac_exeext conftest.$ac_ext
24398LIBS=$ac_check_lib_save_LIBS
24399fi
24400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24401$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24402if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24403  fi_check_package_lib_happy="yes"
24404else
24405  fi_check_package_lib_happy="no"
24406fi
24407
24408                if test "$fi_check_package_lib_happy" = "no"; then :
24409   # no go on the as is..  see what happens later...
24410                     LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24411                     efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24412                     unset ac_cv_lib_ibverbs_ibv_open_device
24413fi
24414fi
24415
24416           if test "$fi_check_package_lib_happy" = "no"; then :
24417  if test "$fi_check_package_libdir" != ""; then :
24418  efa_ibverbs_LDFLAGS="$efa_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib64"
24419                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
24420                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
24421$as_echo "looking for library in lib64" >&6; }
24422                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24423$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24424if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24425  $as_echo_n "(cached) " >&6
24426else
24427  ac_check_lib_save_LIBS=$LIBS
24428LIBS="-libverbs  $LIBS"
24429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430/* end confdefs.h.  */
24431
24432/* Override any GCC internal prototype to avoid an error.
24433   Use char because int might match the return type of a GCC
24434   builtin and then its argument prototype would still apply.  */
24435#ifdef __cplusplus
24436extern "C"
24437#endif
24438char ibv_open_device ();
24439int
24440main ()
24441{
24442return ibv_open_device ();
24443  ;
24444  return 0;
24445}
24446_ACEOF
24447if ac_fn_c_try_link "$LINENO"; then :
24448  ac_cv_lib_ibverbs_ibv_open_device=yes
24449else
24450  ac_cv_lib_ibverbs_ibv_open_device=no
24451fi
24452rm -f core conftest.err conftest.$ac_objext \
24453    conftest$ac_exeext conftest.$ac_ext
24454LIBS=$ac_check_lib_save_LIBS
24455fi
24456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24457$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24458if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24459  fi_check_package_lib_happy="yes"
24460else
24461  fi_check_package_lib_happy="no"
24462fi
24463
24464                     if test "$fi_check_package_lib_happy" = "no"; then :
24465   # no go on the as is..  see what happens later...
24466                          LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24467                          efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24468                          unset ac_cv_lib_ibverbs_ibv_open_device
24469fi
24470fi
24471fi
24472
24473           if test "$fi_check_package_lib_happy" = "no"; then :
24474  if test "$fi_check_package_libdir" != ""; then :
24475  efa_ibverbs_LDFLAGS="$efa_ibverbs_LDFLAGS -L$fi_check_package_libdir/lib"
24476                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
24477                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
24478$as_echo "looking for library in lib" >&6; }
24479                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
24480$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
24481if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then :
24482  $as_echo_n "(cached) " >&6
24483else
24484  ac_check_lib_save_LIBS=$LIBS
24485LIBS="-libverbs  $LIBS"
24486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487/* end confdefs.h.  */
24488
24489/* Override any GCC internal prototype to avoid an error.
24490   Use char because int might match the return type of a GCC
24491   builtin and then its argument prototype would still apply.  */
24492#ifdef __cplusplus
24493extern "C"
24494#endif
24495char ibv_open_device ();
24496int
24497main ()
24498{
24499return ibv_open_device ();
24500  ;
24501  return 0;
24502}
24503_ACEOF
24504if ac_fn_c_try_link "$LINENO"; then :
24505  ac_cv_lib_ibverbs_ibv_open_device=yes
24506else
24507  ac_cv_lib_ibverbs_ibv_open_device=no
24508fi
24509rm -f core conftest.err conftest.$ac_objext \
24510    conftest$ac_exeext conftest.$ac_ext
24511LIBS=$ac_check_lib_save_LIBS
24512fi
24513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
24514$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
24515if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then :
24516  fi_check_package_lib_happy="yes"
24517else
24518  fi_check_package_lib_happy="no"
24519fi
24520
24521                     if test "$fi_check_package_lib_happy" = "no"; then :
24522   # no go on the as is..  see what happens later...
24523                          LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24524                          efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24525                          unset ac_cv_lib_ibverbs_ibv_open_device
24526fi
24527fi
24528fi
24529fi
24530
24531    if test "$fi_check_package_lib_happy" = "yes"; then :
24532  efa_ibverbs_LIBS="-libverbs "
24533           fi_check_package_happy="yes"
24534else
24535  fi_check_package_happy="no"
24536fi
24537
24538
24539fi
24540    unset fi_check_package_header_happy
24541
24542
24543
24544    if test "$fi_check_package_happy" = "yes"; then :
24545
24546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libibverbs is linkable by libtool" >&5
24547$as_echo_n "checking if libibverbs is linkable by libtool... " >&6; }
24548	file=conftemp.$$.c
24549	rm -f $file conftemp
24550	cat > $file <<-EOF
24551char ibv_open_device ();
24552int main ()
24553{ return ibv_open_device (); }
24554EOF
24555
24556	cmd="./libtool --mode=link --tag=CC $CC $CPPFLAGS $CFLAGS $file -o conftemp $LDFLAGS -libverbs"
24557	echo "configure:$LINENO: $cmd" >> config.log 2>&1
24558	eval $cmd >> config.log 2>&1
24559	status=$?
24560	if test $status -eq 0 && test -x conftemp; then :
24561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24562$as_echo "yes" >&6; }
24563		efa_happy=1
24564else
24565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24566$as_echo "no" >&6; }
24567		echo "configure: failed program was" >> config.log
24568		cat $file >> config.log
24569		efa_happy=0
24570fi
24571
24572	rm -f $file conftemp
24573
24574else
24575  efa_ibverbs_CPPFLAGS="$fi_check_package_efa_ibverbs_orig_CPPFLAGS"
24576           efa_ibverbs_LDFLAGS="$fi_check_package_efa_ibverbs_orig_LDFLAGS"
24577           efa_ibverbs_LIBS="$fi_check_package_efa_ibverbs_orig_LIBS"
24578           efa_happy=0
24579fi
24580
24581
24582
24583
24584
24585    CPPFLAGS="$fi_check_package_efa_ibverbs_save_CPPFLAGS"
24586    LDFLAGS="$fi_check_package_efa_ibverbs_save_LDFLAGS"
24587    LIBS="$fi_check_package_efa_ibverbs_save_LIBS"
24588
24589
24590fi
24591
24592	# Check whether --enable-efa-mem-poisoning was given.
24593if test "${enable_efa_mem_poisoning+set}" = set; then :
24594  enableval=$enable_efa_mem_poisoning; efa_h_enable_poisoning=$enableval
24595else
24596  efa_h_enable_poisoning=no
24597fi
24598
24599	if test x"$efa_h_enable_poisoning" == x"yes"; then :
24600
24601$as_echo "#define ENABLE_EFA_POISONING 1" >>confdefs.h
24602
24603fi
24604
24605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC" >&5
24606$as_echo_n "checking for GCC... " >&6; }
24607	if test x"$GCC" = x"yes"; then :
24608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24609$as_echo "yes" >&6; }
24610else
24611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24612$as_echo "no" >&6; }
24613	       efa_happy=0
24614fi
24615
24616	if test x"$enable_efa" != x"no"; then :
24617
24618    fi_check_package_efadv_save_CPPFLAGS="$CPPFLAGS"
24619    fi_check_package_efadv_save_LDFLAGS="$LDFLAGS"
24620    fi_check_package_efadv_save_LIBS="$LIBS"
24621
24622    fi_check_package_efadv_orig_CPPFLAGS="$efadv_CPPFLAGS"
24623    fi_check_package_efadv_orig_LDFLAGS="$efadv_LDFLAGS"
24624    fi_check_package_efadv_orig_LIBS="$efadv_LIBS"
24625
24626
24627    # This is stolen from autoconf to peek under the covers to get the
24628    # cache variable for the library check.
24629
24630
24631    # There's unfortunately no way to get through the progression of
24632    # header includes without killing off the cache variable and
24633    # trying again...
24634    unset ac_cv_header_infiniband_efadv_h
24635
24636    fi_check_package_header_happy="no"
24637    if test "$efa_PREFIX" = "/usr" || test "$efa_PREFIX" = "/usr/local"; then :
24638   # try as is...
24639            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
24640$as_echo "looking for header without includes" >&6; }
24641            for ac_header in infiniband/efadv.h
24642do :
24643  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/efadv.h" "ac_cv_header_infiniband_efadv_h" "$ac_includes_default"
24644if test "x$ac_cv_header_infiniband_efadv_h" = xyes; then :
24645  cat >>confdefs.h <<_ACEOF
24646#define HAVE_INFINIBAND_EFADV_H 1
24647_ACEOF
24648 fi_check_package_header_happy="yes"
24649fi
24650
24651done
24652
24653            if test "$fi_check_package_header_happy" = "no"; then :
24654  # no go on the as is - reset the cache and try again
24655                   unset ac_cv_header_infiniband_efadv_h
24656fi
24657fi
24658
24659    if test "$fi_check_package_header_happy" = "no"; then :
24660  if test "$efa_PREFIX" != ""; then :
24661  efadv_CPPFLAGS="$efadv_CPPFLAGS -I$efa_PREFIX/include"
24662                  CPPFLAGS="$CPPFLAGS -I$efa_PREFIX/include"
24663fi
24664          for ac_header in infiniband/efadv.h
24665do :
24666  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/efadv.h" "ac_cv_header_infiniband_efadv_h" "$ac_includes_default"
24667if test "x$ac_cv_header_infiniband_efadv_h" = xyes; then :
24668  cat >>confdefs.h <<_ACEOF
24669#define HAVE_INFINIBAND_EFADV_H 1
24670_ACEOF
24671 fi_check_package_header_happy="yes"
24672fi
24673
24674done
24675
24676          if test "$fi_check_package_header_happy" = "yes"; then :
24677
24678    # This is stolen from autoconf to peek under the covers to get the
24679    # cache variable for the library check.
24680
24681    # See comment above
24682    unset ac_cv_lib_efa_efadv_query_ah
24683    fi_check_package_lib_happy="no"
24684    if test "$efa_LIBDIR" != ""; then :
24685   # libdir was specified - search only there
24686           efadv_LDFLAGS="$efadv_LDFLAGS -L$efa_LIBDIR"
24687           LDFLAGS="$LDFLAGS -L$efa_LIBDIR"
24688           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
24689$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
24690if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
24691  $as_echo_n "(cached) " >&6
24692else
24693  ac_check_lib_save_LIBS=$LIBS
24694LIBS="-lefa -libverbs $LIBS"
24695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24696/* end confdefs.h.  */
24697
24698/* Override any GCC internal prototype to avoid an error.
24699   Use char because int might match the return type of a GCC
24700   builtin and then its argument prototype would still apply.  */
24701#ifdef __cplusplus
24702extern "C"
24703#endif
24704char efadv_query_ah ();
24705int
24706main ()
24707{
24708return efadv_query_ah ();
24709  ;
24710  return 0;
24711}
24712_ACEOF
24713if ac_fn_c_try_link "$LINENO"; then :
24714  ac_cv_lib_efa_efadv_query_ah=yes
24715else
24716  ac_cv_lib_efa_efadv_query_ah=no
24717fi
24718rm -f core conftest.err conftest.$ac_objext \
24719    conftest$ac_exeext conftest.$ac_ext
24720LIBS=$ac_check_lib_save_LIBS
24721fi
24722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
24723$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
24724if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
24725  fi_check_package_lib_happy="yes"
24726else
24727  fi_check_package_lib_happy="no"
24728fi
24729
24730           if test "$fi_check_package_lib_happy" = "no"; then :
24731  LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
24732                  efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
24733                  unset ac_cv_lib_efa_efadv_query_ah
24734fi
24735else
24736   # libdir was not specified - go through search path
24737           fi_check_package_libdir="$efa_PREFIX"
24738           if test "$fi_check_package_libdir" = "" || \
24739                  test "$fi_check_package_libdir" = "/usr" || \
24740                  test "$fi_check_package_libdir" = "/usr/local"; then :
24741   # try as is...
24742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
24743$as_echo "looking for library without search path" >&6; }
24744                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
24745$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
24746if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
24747  $as_echo_n "(cached) " >&6
24748else
24749  ac_check_lib_save_LIBS=$LIBS
24750LIBS="-lefa -libverbs $LIBS"
24751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24752/* end confdefs.h.  */
24753
24754/* Override any GCC internal prototype to avoid an error.
24755   Use char because int might match the return type of a GCC
24756   builtin and then its argument prototype would still apply.  */
24757#ifdef __cplusplus
24758extern "C"
24759#endif
24760char efadv_query_ah ();
24761int
24762main ()
24763{
24764return efadv_query_ah ();
24765  ;
24766  return 0;
24767}
24768_ACEOF
24769if ac_fn_c_try_link "$LINENO"; then :
24770  ac_cv_lib_efa_efadv_query_ah=yes
24771else
24772  ac_cv_lib_efa_efadv_query_ah=no
24773fi
24774rm -f core conftest.err conftest.$ac_objext \
24775    conftest$ac_exeext conftest.$ac_ext
24776LIBS=$ac_check_lib_save_LIBS
24777fi
24778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
24779$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
24780if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
24781  fi_check_package_lib_happy="yes"
24782else
24783  fi_check_package_lib_happy="no"
24784fi
24785
24786                if test "$fi_check_package_lib_happy" = "no"; then :
24787   # no go on the as is..  see what happens later...
24788                     LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
24789                     efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
24790                     unset ac_cv_lib_efa_efadv_query_ah
24791fi
24792fi
24793
24794           if test "$fi_check_package_lib_happy" = "no"; then :
24795  if test "$fi_check_package_libdir" != ""; then :
24796  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib64"
24797                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
24798                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
24799$as_echo "looking for library in lib64" >&6; }
24800                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
24801$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
24802if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
24803  $as_echo_n "(cached) " >&6
24804else
24805  ac_check_lib_save_LIBS=$LIBS
24806LIBS="-lefa -libverbs $LIBS"
24807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24808/* end confdefs.h.  */
24809
24810/* Override any GCC internal prototype to avoid an error.
24811   Use char because int might match the return type of a GCC
24812   builtin and then its argument prototype would still apply.  */
24813#ifdef __cplusplus
24814extern "C"
24815#endif
24816char efadv_query_ah ();
24817int
24818main ()
24819{
24820return efadv_query_ah ();
24821  ;
24822  return 0;
24823}
24824_ACEOF
24825if ac_fn_c_try_link "$LINENO"; then :
24826  ac_cv_lib_efa_efadv_query_ah=yes
24827else
24828  ac_cv_lib_efa_efadv_query_ah=no
24829fi
24830rm -f core conftest.err conftest.$ac_objext \
24831    conftest$ac_exeext conftest.$ac_ext
24832LIBS=$ac_check_lib_save_LIBS
24833fi
24834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
24835$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
24836if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
24837  fi_check_package_lib_happy="yes"
24838else
24839  fi_check_package_lib_happy="no"
24840fi
24841
24842                     if test "$fi_check_package_lib_happy" = "no"; then :
24843   # no go on the as is..  see what happens later...
24844                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
24845                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
24846                          unset ac_cv_lib_efa_efadv_query_ah
24847fi
24848fi
24849fi
24850
24851           if test "$fi_check_package_lib_happy" = "no"; then :
24852  if test "$fi_check_package_libdir" != ""; then :
24853  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib"
24854                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
24855                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
24856$as_echo "looking for library in lib" >&6; }
24857                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
24858$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
24859if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
24860  $as_echo_n "(cached) " >&6
24861else
24862  ac_check_lib_save_LIBS=$LIBS
24863LIBS="-lefa -libverbs $LIBS"
24864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24865/* end confdefs.h.  */
24866
24867/* Override any GCC internal prototype to avoid an error.
24868   Use char because int might match the return type of a GCC
24869   builtin and then its argument prototype would still apply.  */
24870#ifdef __cplusplus
24871extern "C"
24872#endif
24873char efadv_query_ah ();
24874int
24875main ()
24876{
24877return efadv_query_ah ();
24878  ;
24879  return 0;
24880}
24881_ACEOF
24882if ac_fn_c_try_link "$LINENO"; then :
24883  ac_cv_lib_efa_efadv_query_ah=yes
24884else
24885  ac_cv_lib_efa_efadv_query_ah=no
24886fi
24887rm -f core conftest.err conftest.$ac_objext \
24888    conftest$ac_exeext conftest.$ac_ext
24889LIBS=$ac_check_lib_save_LIBS
24890fi
24891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
24892$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
24893if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
24894  fi_check_package_lib_happy="yes"
24895else
24896  fi_check_package_lib_happy="no"
24897fi
24898
24899                     if test "$fi_check_package_lib_happy" = "no"; then :
24900   # no go on the as is..  see what happens later...
24901                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
24902                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
24903                          unset ac_cv_lib_efa_efadv_query_ah
24904fi
24905fi
24906fi
24907fi
24908
24909    if test "$fi_check_package_lib_happy" = "yes"; then :
24910  efadv_LIBS="-lefa -libverbs"
24911           fi_check_package_happy="yes"
24912else
24913  fi_check_package_happy="no"
24914fi
24915
24916
24917else
24918  fi_check_package_happy="no"
24919fi
24920else
24921
24922    # This is stolen from autoconf to peek under the covers to get the
24923    # cache variable for the library check.
24924
24925    # See comment above
24926    unset ac_cv_lib_efa_efadv_query_ah
24927    fi_check_package_lib_happy="no"
24928    if test "$efa_LIBDIR" != ""; then :
24929   # libdir was specified - search only there
24930           efadv_LDFLAGS="$efadv_LDFLAGS -L$efa_LIBDIR"
24931           LDFLAGS="$LDFLAGS -L$efa_LIBDIR"
24932           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
24933$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
24934if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
24935  $as_echo_n "(cached) " >&6
24936else
24937  ac_check_lib_save_LIBS=$LIBS
24938LIBS="-lefa -libverbs $LIBS"
24939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24940/* end confdefs.h.  */
24941
24942/* Override any GCC internal prototype to avoid an error.
24943   Use char because int might match the return type of a GCC
24944   builtin and then its argument prototype would still apply.  */
24945#ifdef __cplusplus
24946extern "C"
24947#endif
24948char efadv_query_ah ();
24949int
24950main ()
24951{
24952return efadv_query_ah ();
24953  ;
24954  return 0;
24955}
24956_ACEOF
24957if ac_fn_c_try_link "$LINENO"; then :
24958  ac_cv_lib_efa_efadv_query_ah=yes
24959else
24960  ac_cv_lib_efa_efadv_query_ah=no
24961fi
24962rm -f core conftest.err conftest.$ac_objext \
24963    conftest$ac_exeext conftest.$ac_ext
24964LIBS=$ac_check_lib_save_LIBS
24965fi
24966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
24967$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
24968if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
24969  fi_check_package_lib_happy="yes"
24970else
24971  fi_check_package_lib_happy="no"
24972fi
24973
24974           if test "$fi_check_package_lib_happy" = "no"; then :
24975  LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
24976                  efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
24977                  unset ac_cv_lib_efa_efadv_query_ah
24978fi
24979else
24980   # libdir was not specified - go through search path
24981           fi_check_package_libdir="$efa_PREFIX"
24982           if test "$fi_check_package_libdir" = "" || \
24983                  test "$fi_check_package_libdir" = "/usr" || \
24984                  test "$fi_check_package_libdir" = "/usr/local"; then :
24985   # try as is...
24986                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
24987$as_echo "looking for library without search path" >&6; }
24988                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
24989$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
24990if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
24991  $as_echo_n "(cached) " >&6
24992else
24993  ac_check_lib_save_LIBS=$LIBS
24994LIBS="-lefa -libverbs $LIBS"
24995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996/* end confdefs.h.  */
24997
24998/* Override any GCC internal prototype to avoid an error.
24999   Use char because int might match the return type of a GCC
25000   builtin and then its argument prototype would still apply.  */
25001#ifdef __cplusplus
25002extern "C"
25003#endif
25004char efadv_query_ah ();
25005int
25006main ()
25007{
25008return efadv_query_ah ();
25009  ;
25010  return 0;
25011}
25012_ACEOF
25013if ac_fn_c_try_link "$LINENO"; then :
25014  ac_cv_lib_efa_efadv_query_ah=yes
25015else
25016  ac_cv_lib_efa_efadv_query_ah=no
25017fi
25018rm -f core conftest.err conftest.$ac_objext \
25019    conftest$ac_exeext conftest.$ac_ext
25020LIBS=$ac_check_lib_save_LIBS
25021fi
25022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
25023$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
25024if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
25025  fi_check_package_lib_happy="yes"
25026else
25027  fi_check_package_lib_happy="no"
25028fi
25029
25030                if test "$fi_check_package_lib_happy" = "no"; then :
25031   # no go on the as is..  see what happens later...
25032                     LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25033                     efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25034                     unset ac_cv_lib_efa_efadv_query_ah
25035fi
25036fi
25037
25038           if test "$fi_check_package_lib_happy" = "no"; then :
25039  if test "$fi_check_package_libdir" != ""; then :
25040  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib64"
25041                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
25042                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
25043$as_echo "looking for library in lib64" >&6; }
25044                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
25045$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
25046if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
25047  $as_echo_n "(cached) " >&6
25048else
25049  ac_check_lib_save_LIBS=$LIBS
25050LIBS="-lefa -libverbs $LIBS"
25051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052/* end confdefs.h.  */
25053
25054/* Override any GCC internal prototype to avoid an error.
25055   Use char because int might match the return type of a GCC
25056   builtin and then its argument prototype would still apply.  */
25057#ifdef __cplusplus
25058extern "C"
25059#endif
25060char efadv_query_ah ();
25061int
25062main ()
25063{
25064return efadv_query_ah ();
25065  ;
25066  return 0;
25067}
25068_ACEOF
25069if ac_fn_c_try_link "$LINENO"; then :
25070  ac_cv_lib_efa_efadv_query_ah=yes
25071else
25072  ac_cv_lib_efa_efadv_query_ah=no
25073fi
25074rm -f core conftest.err conftest.$ac_objext \
25075    conftest$ac_exeext conftest.$ac_ext
25076LIBS=$ac_check_lib_save_LIBS
25077fi
25078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
25079$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
25080if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
25081  fi_check_package_lib_happy="yes"
25082else
25083  fi_check_package_lib_happy="no"
25084fi
25085
25086                     if test "$fi_check_package_lib_happy" = "no"; then :
25087   # no go on the as is..  see what happens later...
25088                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25089                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25090                          unset ac_cv_lib_efa_efadv_query_ah
25091fi
25092fi
25093fi
25094
25095           if test "$fi_check_package_lib_happy" = "no"; then :
25096  if test "$fi_check_package_libdir" != ""; then :
25097  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib"
25098                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
25099                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
25100$as_echo "looking for library in lib" >&6; }
25101                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_ah in -lefa" >&5
25102$as_echo_n "checking for efadv_query_ah in -lefa... " >&6; }
25103if ${ac_cv_lib_efa_efadv_query_ah+:} false; then :
25104  $as_echo_n "(cached) " >&6
25105else
25106  ac_check_lib_save_LIBS=$LIBS
25107LIBS="-lefa -libverbs $LIBS"
25108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109/* end confdefs.h.  */
25110
25111/* Override any GCC internal prototype to avoid an error.
25112   Use char because int might match the return type of a GCC
25113   builtin and then its argument prototype would still apply.  */
25114#ifdef __cplusplus
25115extern "C"
25116#endif
25117char efadv_query_ah ();
25118int
25119main ()
25120{
25121return efadv_query_ah ();
25122  ;
25123  return 0;
25124}
25125_ACEOF
25126if ac_fn_c_try_link "$LINENO"; then :
25127  ac_cv_lib_efa_efadv_query_ah=yes
25128else
25129  ac_cv_lib_efa_efadv_query_ah=no
25130fi
25131rm -f core conftest.err conftest.$ac_objext \
25132    conftest$ac_exeext conftest.$ac_ext
25133LIBS=$ac_check_lib_save_LIBS
25134fi
25135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_ah" >&5
25136$as_echo "$ac_cv_lib_efa_efadv_query_ah" >&6; }
25137if test "x$ac_cv_lib_efa_efadv_query_ah" = xyes; then :
25138  fi_check_package_lib_happy="yes"
25139else
25140  fi_check_package_lib_happy="no"
25141fi
25142
25143                     if test "$fi_check_package_lib_happy" = "no"; then :
25144   # no go on the as is..  see what happens later...
25145                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25146                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25147                          unset ac_cv_lib_efa_efadv_query_ah
25148fi
25149fi
25150fi
25151fi
25152
25153    if test "$fi_check_package_lib_happy" = "yes"; then :
25154  efadv_LIBS="-lefa -libverbs"
25155           fi_check_package_happy="yes"
25156else
25157  fi_check_package_happy="no"
25158fi
25159
25160
25161fi
25162    unset fi_check_package_header_happy
25163
25164
25165
25166    if test "$fi_check_package_happy" = "yes"; then :
25167  efa_happy=1
25168else
25169  efadv_CPPFLAGS="$fi_check_package_efadv_orig_CPPFLAGS"
25170           efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25171           efadv_LIBS="$fi_check_package_efadv_orig_LIBS"
25172
25173					efa_happy=0
25174					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The EFA provider requires rdma-core v27 or newer." >&5
25175$as_echo "$as_me: WARNING: The EFA provider requires rdma-core v27 or newer." >&2;}
25176
25177fi
25178
25179
25180
25181
25182
25183    CPPFLAGS="$fi_check_package_efadv_save_CPPFLAGS"
25184    LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25185    LIBS="$fi_check_package_efadv_save_LIBS"
25186
25187
25188fi
25189
25190	if test x"$enable_efa" != x"no"; then :
25191
25192    fi_check_package_efadv_save_CPPFLAGS="$CPPFLAGS"
25193    fi_check_package_efadv_save_LDFLAGS="$LDFLAGS"
25194    fi_check_package_efadv_save_LIBS="$LIBS"
25195
25196    fi_check_package_efadv_orig_CPPFLAGS="$efadv_CPPFLAGS"
25197    fi_check_package_efadv_orig_LDFLAGS="$efadv_LDFLAGS"
25198    fi_check_package_efadv_orig_LIBS="$efadv_LIBS"
25199
25200
25201    # This is stolen from autoconf to peek under the covers to get the
25202    # cache variable for the library check.
25203
25204
25205    # There's unfortunately no way to get through the progression of
25206    # header includes without killing off the cache variable and
25207    # trying again...
25208    unset ac_cv_header_infiniband_efadv_h
25209
25210    fi_check_package_header_happy="no"
25211    if test "$efa_PREFIX" = "/usr" || test "$efa_PREFIX" = "/usr/local"; then :
25212   # try as is...
25213            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
25214$as_echo "looking for header without includes" >&6; }
25215            for ac_header in infiniband/efadv.h
25216do :
25217  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/efadv.h" "ac_cv_header_infiniband_efadv_h" "$ac_includes_default"
25218if test "x$ac_cv_header_infiniband_efadv_h" = xyes; then :
25219  cat >>confdefs.h <<_ACEOF
25220#define HAVE_INFINIBAND_EFADV_H 1
25221_ACEOF
25222 fi_check_package_header_happy="yes"
25223fi
25224
25225done
25226
25227            if test "$fi_check_package_header_happy" = "no"; then :
25228  # no go on the as is - reset the cache and try again
25229                   unset ac_cv_header_infiniband_efadv_h
25230fi
25231fi
25232
25233    if test "$fi_check_package_header_happy" = "no"; then :
25234  if test "$efa_PREFIX" != ""; then :
25235  efadv_CPPFLAGS="$efadv_CPPFLAGS -I$efa_PREFIX/include"
25236                  CPPFLAGS="$CPPFLAGS -I$efa_PREFIX/include"
25237fi
25238          for ac_header in infiniband/efadv.h
25239do :
25240  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/efadv.h" "ac_cv_header_infiniband_efadv_h" "$ac_includes_default"
25241if test "x$ac_cv_header_infiniband_efadv_h" = xyes; then :
25242  cat >>confdefs.h <<_ACEOF
25243#define HAVE_INFINIBAND_EFADV_H 1
25244_ACEOF
25245 fi_check_package_header_happy="yes"
25246fi
25247
25248done
25249
25250          if test "$fi_check_package_header_happy" = "yes"; then :
25251
25252    # This is stolen from autoconf to peek under the covers to get the
25253    # cache variable for the library check.
25254
25255    # See comment above
25256    unset ac_cv_lib_efa_efadv_query_device
25257    fi_check_package_lib_happy="no"
25258    if test "$efa_LIBDIR" != ""; then :
25259   # libdir was specified - search only there
25260           efadv_LDFLAGS="$efadv_LDFLAGS -L$efa_LIBDIR"
25261           LDFLAGS="$LDFLAGS -L$efa_LIBDIR"
25262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25263$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25264if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25265  $as_echo_n "(cached) " >&6
25266else
25267  ac_check_lib_save_LIBS=$LIBS
25268LIBS="-lefa -libverbs $LIBS"
25269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25270/* end confdefs.h.  */
25271
25272/* Override any GCC internal prototype to avoid an error.
25273   Use char because int might match the return type of a GCC
25274   builtin and then its argument prototype would still apply.  */
25275#ifdef __cplusplus
25276extern "C"
25277#endif
25278char efadv_query_device ();
25279int
25280main ()
25281{
25282return efadv_query_device ();
25283  ;
25284  return 0;
25285}
25286_ACEOF
25287if ac_fn_c_try_link "$LINENO"; then :
25288  ac_cv_lib_efa_efadv_query_device=yes
25289else
25290  ac_cv_lib_efa_efadv_query_device=no
25291fi
25292rm -f core conftest.err conftest.$ac_objext \
25293    conftest$ac_exeext conftest.$ac_ext
25294LIBS=$ac_check_lib_save_LIBS
25295fi
25296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25297$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25298if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25299  fi_check_package_lib_happy="yes"
25300else
25301  fi_check_package_lib_happy="no"
25302fi
25303
25304           if test "$fi_check_package_lib_happy" = "no"; then :
25305  LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25306                  efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25307                  unset ac_cv_lib_efa_efadv_query_device
25308fi
25309else
25310   # libdir was not specified - go through search path
25311           fi_check_package_libdir="$efa_PREFIX"
25312           if test "$fi_check_package_libdir" = "" || \
25313                  test "$fi_check_package_libdir" = "/usr" || \
25314                  test "$fi_check_package_libdir" = "/usr/local"; then :
25315   # try as is...
25316                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
25317$as_echo "looking for library without search path" >&6; }
25318                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25319$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25320if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25321  $as_echo_n "(cached) " >&6
25322else
25323  ac_check_lib_save_LIBS=$LIBS
25324LIBS="-lefa -libverbs $LIBS"
25325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326/* end confdefs.h.  */
25327
25328/* Override any GCC internal prototype to avoid an error.
25329   Use char because int might match the return type of a GCC
25330   builtin and then its argument prototype would still apply.  */
25331#ifdef __cplusplus
25332extern "C"
25333#endif
25334char efadv_query_device ();
25335int
25336main ()
25337{
25338return efadv_query_device ();
25339  ;
25340  return 0;
25341}
25342_ACEOF
25343if ac_fn_c_try_link "$LINENO"; then :
25344  ac_cv_lib_efa_efadv_query_device=yes
25345else
25346  ac_cv_lib_efa_efadv_query_device=no
25347fi
25348rm -f core conftest.err conftest.$ac_objext \
25349    conftest$ac_exeext conftest.$ac_ext
25350LIBS=$ac_check_lib_save_LIBS
25351fi
25352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25353$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25354if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25355  fi_check_package_lib_happy="yes"
25356else
25357  fi_check_package_lib_happy="no"
25358fi
25359
25360                if test "$fi_check_package_lib_happy" = "no"; then :
25361   # no go on the as is..  see what happens later...
25362                     LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25363                     efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25364                     unset ac_cv_lib_efa_efadv_query_device
25365fi
25366fi
25367
25368           if test "$fi_check_package_lib_happy" = "no"; then :
25369  if test "$fi_check_package_libdir" != ""; then :
25370  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib64"
25371                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
25372                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
25373$as_echo "looking for library in lib64" >&6; }
25374                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25375$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25376if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25377  $as_echo_n "(cached) " >&6
25378else
25379  ac_check_lib_save_LIBS=$LIBS
25380LIBS="-lefa -libverbs $LIBS"
25381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25382/* end confdefs.h.  */
25383
25384/* Override any GCC internal prototype to avoid an error.
25385   Use char because int might match the return type of a GCC
25386   builtin and then its argument prototype would still apply.  */
25387#ifdef __cplusplus
25388extern "C"
25389#endif
25390char efadv_query_device ();
25391int
25392main ()
25393{
25394return efadv_query_device ();
25395  ;
25396  return 0;
25397}
25398_ACEOF
25399if ac_fn_c_try_link "$LINENO"; then :
25400  ac_cv_lib_efa_efadv_query_device=yes
25401else
25402  ac_cv_lib_efa_efadv_query_device=no
25403fi
25404rm -f core conftest.err conftest.$ac_objext \
25405    conftest$ac_exeext conftest.$ac_ext
25406LIBS=$ac_check_lib_save_LIBS
25407fi
25408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25409$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25410if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25411  fi_check_package_lib_happy="yes"
25412else
25413  fi_check_package_lib_happy="no"
25414fi
25415
25416                     if test "$fi_check_package_lib_happy" = "no"; then :
25417   # no go on the as is..  see what happens later...
25418                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25419                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25420                          unset ac_cv_lib_efa_efadv_query_device
25421fi
25422fi
25423fi
25424
25425           if test "$fi_check_package_lib_happy" = "no"; then :
25426  if test "$fi_check_package_libdir" != ""; then :
25427  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib"
25428                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
25429                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
25430$as_echo "looking for library in lib" >&6; }
25431                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25432$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25433if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25434  $as_echo_n "(cached) " >&6
25435else
25436  ac_check_lib_save_LIBS=$LIBS
25437LIBS="-lefa -libverbs $LIBS"
25438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439/* end confdefs.h.  */
25440
25441/* Override any GCC internal prototype to avoid an error.
25442   Use char because int might match the return type of a GCC
25443   builtin and then its argument prototype would still apply.  */
25444#ifdef __cplusplus
25445extern "C"
25446#endif
25447char efadv_query_device ();
25448int
25449main ()
25450{
25451return efadv_query_device ();
25452  ;
25453  return 0;
25454}
25455_ACEOF
25456if ac_fn_c_try_link "$LINENO"; then :
25457  ac_cv_lib_efa_efadv_query_device=yes
25458else
25459  ac_cv_lib_efa_efadv_query_device=no
25460fi
25461rm -f core conftest.err conftest.$ac_objext \
25462    conftest$ac_exeext conftest.$ac_ext
25463LIBS=$ac_check_lib_save_LIBS
25464fi
25465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25466$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25467if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25468  fi_check_package_lib_happy="yes"
25469else
25470  fi_check_package_lib_happy="no"
25471fi
25472
25473                     if test "$fi_check_package_lib_happy" = "no"; then :
25474   # no go on the as is..  see what happens later...
25475                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25476                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25477                          unset ac_cv_lib_efa_efadv_query_device
25478fi
25479fi
25480fi
25481fi
25482
25483    if test "$fi_check_package_lib_happy" = "yes"; then :
25484  efadv_LIBS="-lefa -libverbs"
25485           fi_check_package_happy="yes"
25486else
25487  fi_check_package_happy="no"
25488fi
25489
25490
25491else
25492  fi_check_package_happy="no"
25493fi
25494else
25495
25496    # This is stolen from autoconf to peek under the covers to get the
25497    # cache variable for the library check.
25498
25499    # See comment above
25500    unset ac_cv_lib_efa_efadv_query_device
25501    fi_check_package_lib_happy="no"
25502    if test "$efa_LIBDIR" != ""; then :
25503   # libdir was specified - search only there
25504           efadv_LDFLAGS="$efadv_LDFLAGS -L$efa_LIBDIR"
25505           LDFLAGS="$LDFLAGS -L$efa_LIBDIR"
25506           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25507$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25508if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25509  $as_echo_n "(cached) " >&6
25510else
25511  ac_check_lib_save_LIBS=$LIBS
25512LIBS="-lefa -libverbs $LIBS"
25513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25514/* end confdefs.h.  */
25515
25516/* Override any GCC internal prototype to avoid an error.
25517   Use char because int might match the return type of a GCC
25518   builtin and then its argument prototype would still apply.  */
25519#ifdef __cplusplus
25520extern "C"
25521#endif
25522char efadv_query_device ();
25523int
25524main ()
25525{
25526return efadv_query_device ();
25527  ;
25528  return 0;
25529}
25530_ACEOF
25531if ac_fn_c_try_link "$LINENO"; then :
25532  ac_cv_lib_efa_efadv_query_device=yes
25533else
25534  ac_cv_lib_efa_efadv_query_device=no
25535fi
25536rm -f core conftest.err conftest.$ac_objext \
25537    conftest$ac_exeext conftest.$ac_ext
25538LIBS=$ac_check_lib_save_LIBS
25539fi
25540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25541$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25542if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25543  fi_check_package_lib_happy="yes"
25544else
25545  fi_check_package_lib_happy="no"
25546fi
25547
25548           if test "$fi_check_package_lib_happy" = "no"; then :
25549  LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25550                  efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25551                  unset ac_cv_lib_efa_efadv_query_device
25552fi
25553else
25554   # libdir was not specified - go through search path
25555           fi_check_package_libdir="$efa_PREFIX"
25556           if test "$fi_check_package_libdir" = "" || \
25557                  test "$fi_check_package_libdir" = "/usr" || \
25558                  test "$fi_check_package_libdir" = "/usr/local"; then :
25559   # try as is...
25560                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
25561$as_echo "looking for library without search path" >&6; }
25562                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25563$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25564if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25565  $as_echo_n "(cached) " >&6
25566else
25567  ac_check_lib_save_LIBS=$LIBS
25568LIBS="-lefa -libverbs $LIBS"
25569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25570/* end confdefs.h.  */
25571
25572/* Override any GCC internal prototype to avoid an error.
25573   Use char because int might match the return type of a GCC
25574   builtin and then its argument prototype would still apply.  */
25575#ifdef __cplusplus
25576extern "C"
25577#endif
25578char efadv_query_device ();
25579int
25580main ()
25581{
25582return efadv_query_device ();
25583  ;
25584  return 0;
25585}
25586_ACEOF
25587if ac_fn_c_try_link "$LINENO"; then :
25588  ac_cv_lib_efa_efadv_query_device=yes
25589else
25590  ac_cv_lib_efa_efadv_query_device=no
25591fi
25592rm -f core conftest.err conftest.$ac_objext \
25593    conftest$ac_exeext conftest.$ac_ext
25594LIBS=$ac_check_lib_save_LIBS
25595fi
25596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25597$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25598if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25599  fi_check_package_lib_happy="yes"
25600else
25601  fi_check_package_lib_happy="no"
25602fi
25603
25604                if test "$fi_check_package_lib_happy" = "no"; then :
25605   # no go on the as is..  see what happens later...
25606                     LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25607                     efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25608                     unset ac_cv_lib_efa_efadv_query_device
25609fi
25610fi
25611
25612           if test "$fi_check_package_lib_happy" = "no"; then :
25613  if test "$fi_check_package_libdir" != ""; then :
25614  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib64"
25615                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
25616                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
25617$as_echo "looking for library in lib64" >&6; }
25618                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25619$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25620if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25621  $as_echo_n "(cached) " >&6
25622else
25623  ac_check_lib_save_LIBS=$LIBS
25624LIBS="-lefa -libverbs $LIBS"
25625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25626/* end confdefs.h.  */
25627
25628/* Override any GCC internal prototype to avoid an error.
25629   Use char because int might match the return type of a GCC
25630   builtin and then its argument prototype would still apply.  */
25631#ifdef __cplusplus
25632extern "C"
25633#endif
25634char efadv_query_device ();
25635int
25636main ()
25637{
25638return efadv_query_device ();
25639  ;
25640  return 0;
25641}
25642_ACEOF
25643if ac_fn_c_try_link "$LINENO"; then :
25644  ac_cv_lib_efa_efadv_query_device=yes
25645else
25646  ac_cv_lib_efa_efadv_query_device=no
25647fi
25648rm -f core conftest.err conftest.$ac_objext \
25649    conftest$ac_exeext conftest.$ac_ext
25650LIBS=$ac_check_lib_save_LIBS
25651fi
25652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25653$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25654if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25655  fi_check_package_lib_happy="yes"
25656else
25657  fi_check_package_lib_happy="no"
25658fi
25659
25660                     if test "$fi_check_package_lib_happy" = "no"; then :
25661   # no go on the as is..  see what happens later...
25662                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25663                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25664                          unset ac_cv_lib_efa_efadv_query_device
25665fi
25666fi
25667fi
25668
25669           if test "$fi_check_package_lib_happy" = "no"; then :
25670  if test "$fi_check_package_libdir" != ""; then :
25671  efadv_LDFLAGS="$efadv_LDFLAGS -L$fi_check_package_libdir/lib"
25672                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
25673                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
25674$as_echo "looking for library in lib" >&6; }
25675                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efadv_query_device in -lefa" >&5
25676$as_echo_n "checking for efadv_query_device in -lefa... " >&6; }
25677if ${ac_cv_lib_efa_efadv_query_device+:} false; then :
25678  $as_echo_n "(cached) " >&6
25679else
25680  ac_check_lib_save_LIBS=$LIBS
25681LIBS="-lefa -libverbs $LIBS"
25682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683/* end confdefs.h.  */
25684
25685/* Override any GCC internal prototype to avoid an error.
25686   Use char because int might match the return type of a GCC
25687   builtin and then its argument prototype would still apply.  */
25688#ifdef __cplusplus
25689extern "C"
25690#endif
25691char efadv_query_device ();
25692int
25693main ()
25694{
25695return efadv_query_device ();
25696  ;
25697  return 0;
25698}
25699_ACEOF
25700if ac_fn_c_try_link "$LINENO"; then :
25701  ac_cv_lib_efa_efadv_query_device=yes
25702else
25703  ac_cv_lib_efa_efadv_query_device=no
25704fi
25705rm -f core conftest.err conftest.$ac_objext \
25706    conftest$ac_exeext conftest.$ac_ext
25707LIBS=$ac_check_lib_save_LIBS
25708fi
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efa_efadv_query_device" >&5
25710$as_echo "$ac_cv_lib_efa_efadv_query_device" >&6; }
25711if test "x$ac_cv_lib_efa_efadv_query_device" = xyes; then :
25712  fi_check_package_lib_happy="yes"
25713else
25714  fi_check_package_lib_happy="no"
25715fi
25716
25717                     if test "$fi_check_package_lib_happy" = "no"; then :
25718   # no go on the as is..  see what happens later...
25719                          LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25720                          efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25721                          unset ac_cv_lib_efa_efadv_query_device
25722fi
25723fi
25724fi
25725fi
25726
25727    if test "$fi_check_package_lib_happy" = "yes"; then :
25728  efadv_LIBS="-lefa -libverbs"
25729           fi_check_package_happy="yes"
25730else
25731  fi_check_package_happy="no"
25732fi
25733
25734
25735fi
25736    unset fi_check_package_header_happy
25737
25738
25739
25740    if test "$fi_check_package_happy" = "yes"; then :
25741  efa_happy=1
25742else
25743  efadv_CPPFLAGS="$fi_check_package_efadv_orig_CPPFLAGS"
25744           efadv_LDFLAGS="$fi_check_package_efadv_orig_LDFLAGS"
25745           efadv_LIBS="$fi_check_package_efadv_orig_LIBS"
25746           efa_happy=0
25747fi
25748
25749
25750
25751
25752
25753    CPPFLAGS="$fi_check_package_efadv_save_CPPFLAGS"
25754    LDFLAGS="$fi_check_package_efadv_save_LDFLAGS"
25755    LIBS="$fi_check_package_efadv_save_LIBS"
25756
25757
25758fi
25759
25760	save_CPPFLAGS=$CPPFLAGS
25761	CPPFLAGS=-I$efa_PREFIX/include
25762	if test x"$enable_efa" != x"no"; then :
25763  ac_fn_c_check_member "$LINENO" "struct efadv_device_attr" "max_rdma_size" "ac_cv_member_struct_efadv_device_attr_max_rdma_size" "#include <infiniband/efadv.h>
25764"
25765if test "x$ac_cv_member_struct_efadv_device_attr_max_rdma_size" = xyes; then :
25766
25767$as_echo "#define HAVE_RDMA_SIZE 1" >>confdefs.h
25768
25769fi
25770
25771
25772fi
25773	CPPFLAGS=$save_CPPFLAGS
25774
25775	if test $efa_happy -eq 1 ; then :
25776  efa_happy=1
25777else
25778  efa_happy=0
25779fi
25780
25781	efa_CPPFLAGS="$efa_ibverbs_CPPFLAGS $efadv_CPPFLAGS"
25782	efa_LDFLAGS="$efa_ibverbs_LDFLAGS $efadv_LDFLAGS"
25783	efa_LIBS="$efa_ibverbs_LIBS $efadv_LIBS"
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794	# See if the provider configured successfully
25795	if test $efa_happy -eq 1; then :
25796  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD efa"
25797		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
25798
25799	 FI_PC_CFLAGS="$FI_PC_CFLAGS $efa_CFLAGS $efa_CPPFLAGS"
25800	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $efa_LDFLAGS $efa_LIBS"
25801
25802		 if test $efa_dl -eq 1; then :
25803  PROVIDERS_DL="prov/efa/libefa.la $PROVIDERS_DL"
25804			 if test x"$enable_static" = x"yes" &&
25805				test x"$enable_shared" = x"no"; then :
25806  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: efa provider was selected to be built as DL" >&5
25807$as_echo "$as_me: WARNING: efa provider was selected to be built as DL" >&2;}
25808				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
25809$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
25810				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
25811fi
25812			 { $as_echo "$as_me:${as_lineno-$LINENO}: efa provider: build as plugin" >&5
25813$as_echo "$as_me: efa provider: build as plugin" >&6;}
25814
25815			 # See if this provider has a specfile that
25816			 # needs to be generated
25817
25818
25819else
25820  PROVIDERS_STATIC="prov/efa/libefa.la $PROVIDERS_STATIC"
25821			 { $as_echo "$as_me:${as_lineno-$LINENO}: efa provider: include in libfabric" >&5
25822$as_echo "$as_me: efa provider: include in libfabric" >&6;}
25823fi
25824
25825else
25826  { $as_echo "$as_me:${as_lineno-$LINENO}: efa provider: disabled" >&5
25827$as_echo "$as_me: efa provider: disabled" >&6;}
25828fi
25829
25830
25831cat >>confdefs.h <<_ACEOF
25832#define HAVE_EFA $efa_happy
25833_ACEOF
25834
25835
25836cat >>confdefs.h <<_ACEOF
25837#define HAVE_EFA_DL $efa_dl
25838_ACEOF
25839
25840
25841	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
25842	# as well as AC defines
25843	 if test $efa_happy -eq 1; then
25844  HAVE_EFA_TRUE=
25845  HAVE_EFA_FALSE='#'
25846else
25847  HAVE_EFA_TRUE='#'
25848  HAVE_EFA_FALSE=
25849fi
25850
25851	 if test $efa_dl -eq 1; then
25852  HAVE_EFA_DL_TRUE=
25853  HAVE_EFA_DL_FALSE='#'
25854else
25855  HAVE_EFA_DL_TRUE='#'
25856  HAVE_EFA_DL_FALSE=
25857fi
25858
25859
25860	# If this provider was specifically requested but we can't
25861	# build it, error.
25862	if test "$enable_efa $efa_happy" = "yes 0"; then :
25863  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: efa provider was requested, but cannot be compiled" >&5
25864$as_echo "$as_me: WARNING: efa provider was requested, but cannot be compiled" >&2;}
25865	       as_fn_error $? "Cannot continue" "$LINENO" 5
25866
25867fi
25868	# If this provider was requested for direct build, ensure that
25869	# provider's fi_direct.h exists in tree. Error otherwise.
25870	if test x"$enable_direct" = x"efa"; then :
25871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/efa/include/rdma/fi_direct.h" >&5
25872$as_echo_n "checking for $srcdir/prov/efa/include/rdma/fi_direct.h... " >&6; }
25873		 if test -f "$srcdir/prov/efa/include/rdma/fi_direct.h"; then :
25874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25875$as_echo "yes" >&6; }
25876else
25877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25878$as_echo "no" >&6; }
25879			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/efa/include/rdma/fi_direct.h.in" >&5
25880$as_echo_n "checking for $srcdir/prov/efa/include/rdma/fi_direct.h.in... " >&6; }
25881			 if test -f "$srcdir/prov/efa/include/rdma/fi_direct.h.in"; then :
25882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25883$as_echo "yes" >&6; }
25884else
25885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25886$as_echo "no" >&6; }
25887				 as_fn_error $? "efa provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
25888
25889fi
25890fi
25891fi
25892
25893	 if test -f "$srcdir/prov/efa/include/rdma/fi_direct.h.in"; then
25894  FI_DIRECT_H_IN_TRUE=
25895  FI_DIRECT_H_IN_FALSE='#'
25896else
25897  FI_DIRECT_H_IN_TRUE='#'
25898  FI_DIRECT_H_IN_FALSE=
25899fi
25900
25901
25902
25903	# Restore CPPFLAGS/LDFLAGS/LIBS
25904	CPPFLAGS=$efa_orig_CPPFLAGS
25905	unset efa_orig_CPPFLAGS
25906	LDFLAGS=$efa_orig_LDFLAGS
25907	unset efa_orig_LDFLAGS
25908	LIBS=$efa_orig_LIBS
25909	unset efa_orig_LIBS
25910
25911
25912
25913	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"usnic"; then :
25914  enable_usnic=no
25915               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping usnic provider because $enable_direct direct requested" >&5
25916$as_echo "$as_me: *** Skipping usnic provider because $enable_direct direct requested" >&6;}
25917else
25918  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring usnic provider" >&5
25919$as_echo "$as_me: *** Configuring usnic provider" >&6;}
25920	       # Check whether --enable-usnic was given.
25921if test "${enable_usnic+set}" = set; then :
25922  enableval=$enable_usnic;
25923else
25924  enable_usnic=auto
25925fi
25926
25927fi
25928
25929	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
25930	# Provider's local macros could use the value if needed.
25931	# Also save LIBS, as a matter of principle.
25932	usnic_orig_CPPFLAGS=$CPPFLAGS
25933	usnic_orig_LDFLAGS=$LDFLAGS
25934	usnic_orig_LIBS=$LIBS
25935
25936	# Check the --enable-<usnic> value
25937	usnic_dl=0
25938	case $enable_usnic in #(
25939  yes|no) :
25940     ;; #(
25941  dl) :
25942    enable_usnic=yes usnic_dl=1 ;; #(
25943  auto) :
25944     ;; #(
25945  dl:*) :
25946
25947	# Check that the base directory exists
25948	if test ! -d "${enable_usnic:3}"; then :
25949  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_usnic:3}\" does not exist" >&5
25950$as_echo "$as_me: WARNING: supplied directory \"${enable_usnic:3}\" does not exist" >&2;}
25951	        as_fn_error $? "Cannot continue" "$LINENO" 5
25952
25953fi
25954
25955	# Check that base/include exists
25956	 if test -d "${enable_usnic:3}/include"; then :
25957  usnic_PREFIX="${enable_usnic:3}"
25958else
25959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_usnic:3}\" directory\"" >&5
25960$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_usnic:3}\" directory\"" >&2;}
25961	        as_fn_error $? "Cannot continue" "$LINENO" 5
25962
25963fi
25964
25965	# Check that base/lib or base/lib64 exists
25966	 if test -d "${enable_usnic:3}/lib64"; then :
25967  usnic_LIBDIR="${enable_usnic:3}/lib64"
25968else
25969  if test -d "${enable_usnic:3}/lib"; then :
25970  usnic_LIBDIR="${enable_usnic:3}/lib"
25971else
25972  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_usnic:3}\" directory\"" >&5
25973$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_usnic:3}\" directory\"" >&2;}
25974		       as_fn_error $? "Cannot continue" "$LINENO" 5
25975
25976fi
25977
25978fi
25979
25980		   enable_usnic=yes usnic_dl=1 ;; #(
25981  *) :
25982
25983	# Check that the base directory exists
25984	if test ! -d "$enable_usnic"; then :
25985  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_usnic\" does not exist" >&5
25986$as_echo "$as_me: WARNING: supplied directory \"$enable_usnic\" does not exist" >&2;}
25987	        as_fn_error $? "Cannot continue" "$LINENO" 5
25988
25989fi
25990
25991	# Check that base/include exists
25992	 if test -d "$enable_usnic/include"; then :
25993  usnic_PREFIX="$enable_usnic"
25994else
25995  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_usnic\" directory\"" >&5
25996$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_usnic\" directory\"" >&2;}
25997	        as_fn_error $? "Cannot continue" "$LINENO" 5
25998
25999fi
26000
26001	# Check that base/lib or base/lib64 exists
26002	 if test -d "$enable_usnic/lib64"; then :
26003  usnic_LIBDIR="$enable_usnic/lib64"
26004else
26005  if test -d "$enable_usnic/lib"; then :
26006  usnic_LIBDIR="$enable_usnic/lib"
26007else
26008  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_usnic\" directory\"" >&5
26009$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_usnic\" directory\"" >&2;}
26010		       as_fn_error $? "Cannot continue" "$LINENO" 5
26011
26012fi
26013
26014fi
26015
26016	 enable_usnic=yes
26017	 ;;
26018esac
26019
26020	# Call the provider's CONFIGURE and CONDITIONALS macros
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052    # Determine if we can support the usnic provider
26053    usnic_happy=0
26054    usnic_build_fake_driver=0
26055    if test "x$enable_usnic" != "xno"; then :
26056  ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
26057if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
26058  usnic_happy=1
26059fi
26060
26061
26062	   if test $usnic_happy -eq 1; then :
26063
26064	ac_fn_c_check_header_mongrel "$LINENO" "infiniband/driver.h" "ac_cv_header_infiniband_driver_h" "$ac_includes_default"
26065if test "x$ac_cv_header_infiniband_driver_h" = xyes; then :
26066  ac_fn_c_check_decl "$LINENO" "verbs_register_driver" "ac_cv_have_decl_verbs_register_driver" "#include <infiniband/driver.h>
26067
26068"
26069if test "x$ac_cv_have_decl_verbs_register_driver" = xyes; then :
26070
26071else
26072  usnic_build_fake_driver=1
26073fi
26074
26075fi
26076
26077
26078
26079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building usnic fake verbs driver" >&5
26080$as_echo_n "checking if building usnic fake verbs driver... " >&6; }
26081	if test $usnic_build_fake_driver -eq 1; then :
26082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26083$as_echo "yes" >&6; }
26084else
26085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086$as_echo "no" >&6; }
26087fi
26088
26089cat >>confdefs.h <<_ACEOF
26090#define USNIC_BUILD_FAKE_VERBS_DRIVER $usnic_build_fake_driver
26091_ACEOF
26092
26093
26094
26095
26096# Check whether --with-libnl was given.
26097if test "${with_libnl+set}" = set; then :
26098  withval=$with_libnl;
26099else
26100  with_libnl=default
26101fi
26102
26103
26104	# The --with options carry two pieces of information: 1) do
26105	# you want a specific version of libnl, and 2) where that
26106	# version of libnl lives.  For simplicity, let's separate
26107	# those two pieces of information.
26108
26109	case "$with_libnl" in
26110	no)
26111		# Nope, don't want it
26112		usnic_want_libnl=no
26113		;;
26114	yes)
26115		# Yes, definitely want it
26116		usnic_want_libnl=yes
26117		;;
26118	default)
26119		# Default case -- try and see if we can find it
26120		usnic_want_libnl=default
26121		usnic_libnl_location=/usr
26122		;;
26123	*)
26124		# Yes, definitely want it -- at a specific location
26125		usnic_want_libnl=yes
26126		usnic_libnl_location="$with_libnl"
26127		;;
26128	esac
26129
26130
26131	# Default to a numeric value (this value gets AC_DEFINEd)
26132	HAVE_LIBNL3=0
26133
26134	###################################################
26135	# NOTE: We *must* check for libnl3 before libnl.
26136	###################################################
26137
26138	if test "$usnic_want_libnl" != "no"; then :
26139
26140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl3" >&5
26141$as_echo "$as_me: checking for libnl3" >&6;}
26142
26143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl3 prefix" >&5
26144$as_echo_n "checking for libnl3 prefix... " >&6; }
26145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $usnic_libnl_location" >&5
26146$as_echo "$usnic_libnl_location" >&6; }
26147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $usnic_libnl_location/include/libnl3" >&5
26148$as_echo_n "checking for $usnic_libnl_location/include/libnl3... " >&6; }
26149	if test -d "$usnic_libnl_location/include/libnl3"; then :
26150  usnic_libnl3_happy=1
26151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26152$as_echo "found" >&6; }
26153else
26154  usnic_libnl3_happy=0
26155	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26156$as_echo "not found" >&6; }
26157fi
26158
26159	# Random note: netlink/version.h is only in libnl3 - it is not in libnl.
26160	# Also, nl_socket_set_peer_groups is only in libnl3.
26161	CPPFLAGS_save=$CPPFLAGS
26162	usnic_tmp_CPPFLAGS="-I$usnic_libnl_location/include/libnl3"
26163	CPPFLAGS="$usnic_tmp_CPPFLAGS $CPPFLAGS"
26164	if test $usnic_libnl3_happy -eq 1; then :
26165
26166    fi_check_package_usnic_nl_save_CPPFLAGS="$CPPFLAGS"
26167    fi_check_package_usnic_nl_save_LDFLAGS="$LDFLAGS"
26168    fi_check_package_usnic_nl_save_LIBS="$LIBS"
26169
26170    fi_check_package_usnic_nl_orig_CPPFLAGS="$usnic_nl_CPPFLAGS"
26171    fi_check_package_usnic_nl_orig_LDFLAGS="$usnic_nl_LDFLAGS"
26172    fi_check_package_usnic_nl_orig_LIBS="$usnic_nl_LIBS"
26173
26174
26175    # This is stolen from autoconf to peek under the covers to get the
26176    # cache variable for the library check.
26177
26178
26179    # There's unfortunately no way to get through the progression of
26180    # header includes without killing off the cache variable and
26181    # trying again...
26182    unset ac_cv_header_netlink_version_h
26183
26184    fi_check_package_header_happy="no"
26185    if test "$usnic_libnl_location" = "/usr" || test "$usnic_libnl_location" = "/usr/local"; then :
26186   # try as is...
26187            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
26188$as_echo "looking for header without includes" >&6; }
26189            for ac_header in netlink/version.h
26190do :
26191  ac_fn_c_check_header_mongrel "$LINENO" "netlink/version.h" "ac_cv_header_netlink_version_h" "$ac_includes_default"
26192if test "x$ac_cv_header_netlink_version_h" = xyes; then :
26193  cat >>confdefs.h <<_ACEOF
26194#define HAVE_NETLINK_VERSION_H 1
26195_ACEOF
26196 fi_check_package_header_happy="yes"
26197fi
26198
26199done
26200
26201            if test "$fi_check_package_header_happy" = "no"; then :
26202  # no go on the as is - reset the cache and try again
26203                   unset ac_cv_header_netlink_version_h
26204fi
26205fi
26206
26207    if test "$fi_check_package_header_happy" = "no"; then :
26208  if test "$usnic_libnl_location" != ""; then :
26209  usnic_nl_CPPFLAGS="$usnic_nl_CPPFLAGS -I$usnic_libnl_location/include"
26210                  CPPFLAGS="$CPPFLAGS -I$usnic_libnl_location/include"
26211fi
26212          for ac_header in netlink/version.h
26213do :
26214  ac_fn_c_check_header_mongrel "$LINENO" "netlink/version.h" "ac_cv_header_netlink_version_h" "$ac_includes_default"
26215if test "x$ac_cv_header_netlink_version_h" = xyes; then :
26216  cat >>confdefs.h <<_ACEOF
26217#define HAVE_NETLINK_VERSION_H 1
26218_ACEOF
26219 fi_check_package_header_happy="yes"
26220fi
26221
26222done
26223
26224          if test "$fi_check_package_header_happy" = "yes"; then :
26225
26226    # This is stolen from autoconf to peek under the covers to get the
26227    # cache variable for the library check.
26228
26229    # See comment above
26230    unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26231    fi_check_package_lib_happy="no"
26232    if test "" != ""; then :
26233   # libdir was specified - search only there
26234           usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L"
26235           LDFLAGS="$LDFLAGS -L"
26236           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26237$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26238if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26239  $as_echo_n "(cached) " >&6
26240else
26241  ac_check_lib_save_LIBS=$LIBS
26242LIBS="-lnl-3  $LIBS"
26243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244/* end confdefs.h.  */
26245
26246/* Override any GCC internal prototype to avoid an error.
26247   Use char because int might match the return type of a GCC
26248   builtin and then its argument prototype would still apply.  */
26249#ifdef __cplusplus
26250extern "C"
26251#endif
26252char nl_socket_set_peer_groups ();
26253int
26254main ()
26255{
26256return nl_socket_set_peer_groups ();
26257  ;
26258  return 0;
26259}
26260_ACEOF
26261if ac_fn_c_try_link "$LINENO"; then :
26262  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26263else
26264  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26265fi
26266rm -f core conftest.err conftest.$ac_objext \
26267    conftest$ac_exeext conftest.$ac_ext
26268LIBS=$ac_check_lib_save_LIBS
26269fi
26270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26271$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26272if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26273  fi_check_package_lib_happy="yes"
26274else
26275  fi_check_package_lib_happy="no"
26276fi
26277
26278           if test "$fi_check_package_lib_happy" = "no"; then :
26279  LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26280                  usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26281                  unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26282fi
26283else
26284   # libdir was not specified - go through search path
26285           fi_check_package_libdir="$usnic_libnl_location"
26286           if test "$fi_check_package_libdir" = "" || \
26287                  test "$fi_check_package_libdir" = "/usr" || \
26288                  test "$fi_check_package_libdir" = "/usr/local"; then :
26289   # try as is...
26290                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
26291$as_echo "looking for library without search path" >&6; }
26292                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26293$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26294if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26295  $as_echo_n "(cached) " >&6
26296else
26297  ac_check_lib_save_LIBS=$LIBS
26298LIBS="-lnl-3  $LIBS"
26299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26300/* end confdefs.h.  */
26301
26302/* Override any GCC internal prototype to avoid an error.
26303   Use char because int might match the return type of a GCC
26304   builtin and then its argument prototype would still apply.  */
26305#ifdef __cplusplus
26306extern "C"
26307#endif
26308char nl_socket_set_peer_groups ();
26309int
26310main ()
26311{
26312return nl_socket_set_peer_groups ();
26313  ;
26314  return 0;
26315}
26316_ACEOF
26317if ac_fn_c_try_link "$LINENO"; then :
26318  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26319else
26320  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26321fi
26322rm -f core conftest.err conftest.$ac_objext \
26323    conftest$ac_exeext conftest.$ac_ext
26324LIBS=$ac_check_lib_save_LIBS
26325fi
26326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26327$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26328if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26329  fi_check_package_lib_happy="yes"
26330else
26331  fi_check_package_lib_happy="no"
26332fi
26333
26334                if test "$fi_check_package_lib_happy" = "no"; then :
26335   # no go on the as is..  see what happens later...
26336                     LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26337                     usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26338                     unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26339fi
26340fi
26341
26342           if test "$fi_check_package_lib_happy" = "no"; then :
26343  if test "$fi_check_package_libdir" != ""; then :
26344  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib64"
26345                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
26346                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
26347$as_echo "looking for library in lib64" >&6; }
26348                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26349$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26350if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26351  $as_echo_n "(cached) " >&6
26352else
26353  ac_check_lib_save_LIBS=$LIBS
26354LIBS="-lnl-3  $LIBS"
26355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26356/* end confdefs.h.  */
26357
26358/* Override any GCC internal prototype to avoid an error.
26359   Use char because int might match the return type of a GCC
26360   builtin and then its argument prototype would still apply.  */
26361#ifdef __cplusplus
26362extern "C"
26363#endif
26364char nl_socket_set_peer_groups ();
26365int
26366main ()
26367{
26368return nl_socket_set_peer_groups ();
26369  ;
26370  return 0;
26371}
26372_ACEOF
26373if ac_fn_c_try_link "$LINENO"; then :
26374  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26375else
26376  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26377fi
26378rm -f core conftest.err conftest.$ac_objext \
26379    conftest$ac_exeext conftest.$ac_ext
26380LIBS=$ac_check_lib_save_LIBS
26381fi
26382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26383$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26384if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26385  fi_check_package_lib_happy="yes"
26386else
26387  fi_check_package_lib_happy="no"
26388fi
26389
26390                     if test "$fi_check_package_lib_happy" = "no"; then :
26391   # no go on the as is..  see what happens later...
26392                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26393                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26394                          unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26395fi
26396fi
26397fi
26398
26399           if test "$fi_check_package_lib_happy" = "no"; then :
26400  if test "$fi_check_package_libdir" != ""; then :
26401  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib"
26402                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
26403                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
26404$as_echo "looking for library in lib" >&6; }
26405                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26406$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26407if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26408  $as_echo_n "(cached) " >&6
26409else
26410  ac_check_lib_save_LIBS=$LIBS
26411LIBS="-lnl-3  $LIBS"
26412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413/* end confdefs.h.  */
26414
26415/* Override any GCC internal prototype to avoid an error.
26416   Use char because int might match the return type of a GCC
26417   builtin and then its argument prototype would still apply.  */
26418#ifdef __cplusplus
26419extern "C"
26420#endif
26421char nl_socket_set_peer_groups ();
26422int
26423main ()
26424{
26425return nl_socket_set_peer_groups ();
26426  ;
26427  return 0;
26428}
26429_ACEOF
26430if ac_fn_c_try_link "$LINENO"; then :
26431  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26432else
26433  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26434fi
26435rm -f core conftest.err conftest.$ac_objext \
26436    conftest$ac_exeext conftest.$ac_ext
26437LIBS=$ac_check_lib_save_LIBS
26438fi
26439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26440$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26441if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26442  fi_check_package_lib_happy="yes"
26443else
26444  fi_check_package_lib_happy="no"
26445fi
26446
26447                     if test "$fi_check_package_lib_happy" = "no"; then :
26448   # no go on the as is..  see what happens later...
26449                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26450                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26451                          unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26452fi
26453fi
26454fi
26455fi
26456
26457    if test "$fi_check_package_lib_happy" = "yes"; then :
26458  usnic_nl_LIBS="-lnl-3 "
26459           fi_check_package_happy="yes"
26460else
26461  fi_check_package_happy="no"
26462fi
26463
26464
26465else
26466  fi_check_package_happy="no"
26467fi
26468else
26469
26470    # This is stolen from autoconf to peek under the covers to get the
26471    # cache variable for the library check.
26472
26473    # See comment above
26474    unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26475    fi_check_package_lib_happy="no"
26476    if test "" != ""; then :
26477   # libdir was specified - search only there
26478           usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L"
26479           LDFLAGS="$LDFLAGS -L"
26480           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26481$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26482if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26483  $as_echo_n "(cached) " >&6
26484else
26485  ac_check_lib_save_LIBS=$LIBS
26486LIBS="-lnl-3  $LIBS"
26487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26488/* end confdefs.h.  */
26489
26490/* Override any GCC internal prototype to avoid an error.
26491   Use char because int might match the return type of a GCC
26492   builtin and then its argument prototype would still apply.  */
26493#ifdef __cplusplus
26494extern "C"
26495#endif
26496char nl_socket_set_peer_groups ();
26497int
26498main ()
26499{
26500return nl_socket_set_peer_groups ();
26501  ;
26502  return 0;
26503}
26504_ACEOF
26505if ac_fn_c_try_link "$LINENO"; then :
26506  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26507else
26508  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26509fi
26510rm -f core conftest.err conftest.$ac_objext \
26511    conftest$ac_exeext conftest.$ac_ext
26512LIBS=$ac_check_lib_save_LIBS
26513fi
26514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26515$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26516if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26517  fi_check_package_lib_happy="yes"
26518else
26519  fi_check_package_lib_happy="no"
26520fi
26521
26522           if test "$fi_check_package_lib_happy" = "no"; then :
26523  LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26524                  usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26525                  unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26526fi
26527else
26528   # libdir was not specified - go through search path
26529           fi_check_package_libdir="$usnic_libnl_location"
26530           if test "$fi_check_package_libdir" = "" || \
26531                  test "$fi_check_package_libdir" = "/usr" || \
26532                  test "$fi_check_package_libdir" = "/usr/local"; then :
26533   # try as is...
26534                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
26535$as_echo "looking for library without search path" >&6; }
26536                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26537$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26538if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26539  $as_echo_n "(cached) " >&6
26540else
26541  ac_check_lib_save_LIBS=$LIBS
26542LIBS="-lnl-3  $LIBS"
26543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26544/* end confdefs.h.  */
26545
26546/* Override any GCC internal prototype to avoid an error.
26547   Use char because int might match the return type of a GCC
26548   builtin and then its argument prototype would still apply.  */
26549#ifdef __cplusplus
26550extern "C"
26551#endif
26552char nl_socket_set_peer_groups ();
26553int
26554main ()
26555{
26556return nl_socket_set_peer_groups ();
26557  ;
26558  return 0;
26559}
26560_ACEOF
26561if ac_fn_c_try_link "$LINENO"; then :
26562  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26563else
26564  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26565fi
26566rm -f core conftest.err conftest.$ac_objext \
26567    conftest$ac_exeext conftest.$ac_ext
26568LIBS=$ac_check_lib_save_LIBS
26569fi
26570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26571$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26572if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26573  fi_check_package_lib_happy="yes"
26574else
26575  fi_check_package_lib_happy="no"
26576fi
26577
26578                if test "$fi_check_package_lib_happy" = "no"; then :
26579   # no go on the as is..  see what happens later...
26580                     LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26581                     usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26582                     unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26583fi
26584fi
26585
26586           if test "$fi_check_package_lib_happy" = "no"; then :
26587  if test "$fi_check_package_libdir" != ""; then :
26588  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib64"
26589                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
26590                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
26591$as_echo "looking for library in lib64" >&6; }
26592                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26593$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26594if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26595  $as_echo_n "(cached) " >&6
26596else
26597  ac_check_lib_save_LIBS=$LIBS
26598LIBS="-lnl-3  $LIBS"
26599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26600/* end confdefs.h.  */
26601
26602/* Override any GCC internal prototype to avoid an error.
26603   Use char because int might match the return type of a GCC
26604   builtin and then its argument prototype would still apply.  */
26605#ifdef __cplusplus
26606extern "C"
26607#endif
26608char nl_socket_set_peer_groups ();
26609int
26610main ()
26611{
26612return nl_socket_set_peer_groups ();
26613  ;
26614  return 0;
26615}
26616_ACEOF
26617if ac_fn_c_try_link "$LINENO"; then :
26618  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26619else
26620  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26621fi
26622rm -f core conftest.err conftest.$ac_objext \
26623    conftest$ac_exeext conftest.$ac_ext
26624LIBS=$ac_check_lib_save_LIBS
26625fi
26626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26627$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26628if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26629  fi_check_package_lib_happy="yes"
26630else
26631  fi_check_package_lib_happy="no"
26632fi
26633
26634                     if test "$fi_check_package_lib_happy" = "no"; then :
26635   # no go on the as is..  see what happens later...
26636                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26637                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26638                          unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26639fi
26640fi
26641fi
26642
26643           if test "$fi_check_package_lib_happy" = "no"; then :
26644  if test "$fi_check_package_libdir" != ""; then :
26645  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib"
26646                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
26647                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
26648$as_echo "looking for library in lib" >&6; }
26649                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_set_peer_groups in -lnl-3" >&5
26650$as_echo_n "checking for nl_socket_set_peer_groups in -lnl-3... " >&6; }
26651if ${ac_cv_lib_nl_3_nl_socket_set_peer_groups+:} false; then :
26652  $as_echo_n "(cached) " >&6
26653else
26654  ac_check_lib_save_LIBS=$LIBS
26655LIBS="-lnl-3  $LIBS"
26656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26657/* end confdefs.h.  */
26658
26659/* Override any GCC internal prototype to avoid an error.
26660   Use char because int might match the return type of a GCC
26661   builtin and then its argument prototype would still apply.  */
26662#ifdef __cplusplus
26663extern "C"
26664#endif
26665char nl_socket_set_peer_groups ();
26666int
26667main ()
26668{
26669return nl_socket_set_peer_groups ();
26670  ;
26671  return 0;
26672}
26673_ACEOF
26674if ac_fn_c_try_link "$LINENO"; then :
26675  ac_cv_lib_nl_3_nl_socket_set_peer_groups=yes
26676else
26677  ac_cv_lib_nl_3_nl_socket_set_peer_groups=no
26678fi
26679rm -f core conftest.err conftest.$ac_objext \
26680    conftest$ac_exeext conftest.$ac_ext
26681LIBS=$ac_check_lib_save_LIBS
26682fi
26683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&5
26684$as_echo "$ac_cv_lib_nl_3_nl_socket_set_peer_groups" >&6; }
26685if test "x$ac_cv_lib_nl_3_nl_socket_set_peer_groups" = xyes; then :
26686  fi_check_package_lib_happy="yes"
26687else
26688  fi_check_package_lib_happy="no"
26689fi
26690
26691                     if test "$fi_check_package_lib_happy" = "no"; then :
26692   # no go on the as is..  see what happens later...
26693                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26694                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26695                          unset ac_cv_lib_nl_3_nl_socket_set_peer_groups
26696fi
26697fi
26698fi
26699fi
26700
26701    if test "$fi_check_package_lib_happy" = "yes"; then :
26702  usnic_nl_LIBS="-lnl-3 "
26703           fi_check_package_happy="yes"
26704else
26705  fi_check_package_happy="no"
26706fi
26707
26708
26709fi
26710    unset fi_check_package_header_happy
26711
26712
26713
26714    if test "$fi_check_package_happy" = "yes"; then :
26715  usnic_libnl3_happy=1
26716else
26717  usnic_nl_CPPFLAGS="$fi_check_package_usnic_nl_orig_CPPFLAGS"
26718           usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26719           usnic_nl_LIBS="$fi_check_package_usnic_nl_orig_LIBS"
26720           usnic_libnl3_happy=0
26721fi
26722
26723
26724
26725
26726
26727    CPPFLAGS="$fi_check_package_usnic_nl_save_CPPFLAGS"
26728    LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26729    LIBS="$fi_check_package_usnic_nl_save_LIBS"
26730
26731
26732		# Note that FI_CHECK_PACKAGE is going to add
26733		# -I$dir/include into usnic_nl_CPPFLAGS.  But because libnl3
26734		# puts the headers in $dir/libnl3, we need to
26735		# overwrite usnic_nl_CPPFLAGS with -I$dir/libnl3.  We can do
26736		# this unconditionally; we don't have to check for
26737		# success (checking for success occurs below).
26738		usnic_nl_CPPFLAGS=$usnic_tmp_CPPFLAGS
26739fi
26740
26741	# If we found libnl-3, we *also* need libnl-route-3
26742	LIBS_save=$LIBS
26743	LDFLAGS_save=$LDFLAGS
26744	if test "$usnic_nl_LDFLAGS" != ""; then :
26745  LDFLAGS="$usnic_nl_LDFLAGS $LDFLAGS"
26746fi
26747	if test $usnic_libnl3_happy -eq 1; then :
26748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_rtgen_request" >&5
26749$as_echo_n "checking for library containing nl_rtgen_request... " >&6; }
26750if ${ac_cv_search_nl_rtgen_request+:} false; then :
26751  $as_echo_n "(cached) " >&6
26752else
26753  ac_func_search_save_LIBS=$LIBS
26754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26755/* end confdefs.h.  */
26756
26757/* Override any GCC internal prototype to avoid an error.
26758   Use char because int might match the return type of a GCC
26759   builtin and then its argument prototype would still apply.  */
26760#ifdef __cplusplus
26761extern "C"
26762#endif
26763char nl_rtgen_request ();
26764int
26765main ()
26766{
26767return nl_rtgen_request ();
26768  ;
26769  return 0;
26770}
26771_ACEOF
26772for ac_lib in '' nl-route-3; do
26773  if test -z "$ac_lib"; then
26774    ac_res="none required"
26775  else
26776    ac_res=-l$ac_lib
26777    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26778  fi
26779  if ac_fn_c_try_link "$LINENO"; then :
26780  ac_cv_search_nl_rtgen_request=$ac_res
26781fi
26782rm -f core conftest.err conftest.$ac_objext \
26783    conftest$ac_exeext
26784  if ${ac_cv_search_nl_rtgen_request+:} false; then :
26785  break
26786fi
26787done
26788if ${ac_cv_search_nl_rtgen_request+:} false; then :
26789
26790else
26791  ac_cv_search_nl_rtgen_request=no
26792fi
26793rm conftest.$ac_ext
26794LIBS=$ac_func_search_save_LIBS
26795fi
26796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_rtgen_request" >&5
26797$as_echo "$ac_cv_search_nl_rtgen_request" >&6; }
26798ac_res=$ac_cv_search_nl_rtgen_request
26799if test "$ac_res" != no; then :
26800  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26801  usnic_libnl3_happy=1
26802else
26803  usnic_libnl3_happy=0
26804fi
26805
26806fi
26807	LIBS=$LIBS_save
26808	LDFLAGS=$LDFLAGS_save
26809
26810	# Just because libnl* is evil, double check that the
26811	# netlink/version.h we found was for libnl3.  As far as we
26812	# know, netlink/version.h only first appeared in version
26813	# 3... but let's really be sure.
26814	if test $usnic_libnl3_happy -eq 1; then :
26815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to ensure these really are libnl3 headers" >&5
26816$as_echo_n "checking to ensure these really are libnl3 headers... " >&6; }
26817	       CPPFLAGS="$usnic_nl_CPPFLAGS $CPPFLAGS"
26818	       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819/* end confdefs.h.  */
26820
26821#include <netlink/netlink.h>
26822#include <netlink/version.h>
26823#ifndef LIBNL_VER_MAJ
26824#error "LIBNL_VER_MAJ not defined!"
26825#endif
26826/* to the best of our knowledge, version.h only exists in libnl3 */
26827#if LIBNL_VER_MAJ != 3
26828#error "LIBNL_VER_MAJ != 3, I am sad"
26829#endif
26830
26831int
26832main ()
26833{
26834
26835  ;
26836  return 0;
26837}
26838_ACEOF
26839if ac_fn_c_try_compile "$LINENO"; then :
26840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26841$as_echo "yes" >&6; }
26842else
26843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26844$as_echo "no" >&6; }
26845		 usnic_libnl3_happy=0
26846
26847fi
26848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26849fi
26850	CPPFLAGS=$CPPFLAGS_save
26851
26852	# If we found everything
26853	if test $usnic_libnl3_happy -eq 1; then :
26854  usnic_nl_LIBS="-lnl-3 -lnl-route-3"
26855	       HAVE_LIBNL3=1
26856else
26857  usnic_nl_CPPFLAGS=
26858	       usnic_nl_LDFLAGS=
26859	       usnic_nl_LIBS=
26860fi
26861
26862fi
26863	if test "$usnic_want_libnl" != "no" &&
26864	       test "$usnic_nl_LIBS" = ""; then :
26865
26866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl" >&5
26867$as_echo "$as_me: checking for libnl" >&6;}
26868
26869
26870    fi_check_package_usnic_nl_save_CPPFLAGS="$CPPFLAGS"
26871    fi_check_package_usnic_nl_save_LDFLAGS="$LDFLAGS"
26872    fi_check_package_usnic_nl_save_LIBS="$LIBS"
26873
26874    fi_check_package_usnic_nl_orig_CPPFLAGS="$usnic_nl_CPPFLAGS"
26875    fi_check_package_usnic_nl_orig_LDFLAGS="$usnic_nl_LDFLAGS"
26876    fi_check_package_usnic_nl_orig_LIBS="$usnic_nl_LIBS"
26877
26878
26879    # This is stolen from autoconf to peek under the covers to get the
26880    # cache variable for the library check.
26881
26882
26883    # There's unfortunately no way to get through the progression of
26884    # header includes without killing off the cache variable and
26885    # trying again...
26886    unset ac_cv_header_netlink_netlink_h
26887
26888    fi_check_package_header_happy="no"
26889    if test "$usnic_libnl_location" = "/usr" || test "$usnic_libnl_location" = "/usr/local"; then :
26890   # try as is...
26891            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
26892$as_echo "looking for header without includes" >&6; }
26893            for ac_header in netlink/netlink.h
26894do :
26895  ac_fn_c_check_header_mongrel "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "$ac_includes_default"
26896if test "x$ac_cv_header_netlink_netlink_h" = xyes; then :
26897  cat >>confdefs.h <<_ACEOF
26898#define HAVE_NETLINK_NETLINK_H 1
26899_ACEOF
26900 fi_check_package_header_happy="yes"
26901fi
26902
26903done
26904
26905            if test "$fi_check_package_header_happy" = "no"; then :
26906  # no go on the as is - reset the cache and try again
26907                   unset ac_cv_header_netlink_netlink_h
26908fi
26909fi
26910
26911    if test "$fi_check_package_header_happy" = "no"; then :
26912  if test "$usnic_libnl_location" != ""; then :
26913  usnic_nl_CPPFLAGS="$usnic_nl_CPPFLAGS -I$usnic_libnl_location/include"
26914                  CPPFLAGS="$CPPFLAGS -I$usnic_libnl_location/include"
26915fi
26916          for ac_header in netlink/netlink.h
26917do :
26918  ac_fn_c_check_header_mongrel "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "$ac_includes_default"
26919if test "x$ac_cv_header_netlink_netlink_h" = xyes; then :
26920  cat >>confdefs.h <<_ACEOF
26921#define HAVE_NETLINK_NETLINK_H 1
26922_ACEOF
26923 fi_check_package_header_happy="yes"
26924fi
26925
26926done
26927
26928          if test "$fi_check_package_header_happy" = "yes"; then :
26929
26930    # This is stolen from autoconf to peek under the covers to get the
26931    # cache variable for the library check.
26932
26933    # See comment above
26934    unset ac_cv_lib_nl_nl_connect
26935    fi_check_package_lib_happy="no"
26936    if test "" != ""; then :
26937   # libdir was specified - search only there
26938           usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L"
26939           LDFLAGS="$LDFLAGS -L"
26940           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
26941$as_echo_n "checking for nl_connect in -lnl... " >&6; }
26942if ${ac_cv_lib_nl_nl_connect+:} false; then :
26943  $as_echo_n "(cached) " >&6
26944else
26945  ac_check_lib_save_LIBS=$LIBS
26946LIBS="-lnl -lm $LIBS"
26947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26948/* end confdefs.h.  */
26949
26950/* Override any GCC internal prototype to avoid an error.
26951   Use char because int might match the return type of a GCC
26952   builtin and then its argument prototype would still apply.  */
26953#ifdef __cplusplus
26954extern "C"
26955#endif
26956char nl_connect ();
26957int
26958main ()
26959{
26960return nl_connect ();
26961  ;
26962  return 0;
26963}
26964_ACEOF
26965if ac_fn_c_try_link "$LINENO"; then :
26966  ac_cv_lib_nl_nl_connect=yes
26967else
26968  ac_cv_lib_nl_nl_connect=no
26969fi
26970rm -f core conftest.err conftest.$ac_objext \
26971    conftest$ac_exeext conftest.$ac_ext
26972LIBS=$ac_check_lib_save_LIBS
26973fi
26974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
26975$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
26976if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
26977  fi_check_package_lib_happy="yes"
26978else
26979  fi_check_package_lib_happy="no"
26980fi
26981
26982           if test "$fi_check_package_lib_happy" = "no"; then :
26983  LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
26984                  usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
26985                  unset ac_cv_lib_nl_nl_connect
26986fi
26987else
26988   # libdir was not specified - go through search path
26989           fi_check_package_libdir="$usnic_libnl_location"
26990           if test "$fi_check_package_libdir" = "" || \
26991                  test "$fi_check_package_libdir" = "/usr" || \
26992                  test "$fi_check_package_libdir" = "/usr/local"; then :
26993   # try as is...
26994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
26995$as_echo "looking for library without search path" >&6; }
26996                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
26997$as_echo_n "checking for nl_connect in -lnl... " >&6; }
26998if ${ac_cv_lib_nl_nl_connect+:} false; then :
26999  $as_echo_n "(cached) " >&6
27000else
27001  ac_check_lib_save_LIBS=$LIBS
27002LIBS="-lnl -lm $LIBS"
27003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27004/* end confdefs.h.  */
27005
27006/* Override any GCC internal prototype to avoid an error.
27007   Use char because int might match the return type of a GCC
27008   builtin and then its argument prototype would still apply.  */
27009#ifdef __cplusplus
27010extern "C"
27011#endif
27012char nl_connect ();
27013int
27014main ()
27015{
27016return nl_connect ();
27017  ;
27018  return 0;
27019}
27020_ACEOF
27021if ac_fn_c_try_link "$LINENO"; then :
27022  ac_cv_lib_nl_nl_connect=yes
27023else
27024  ac_cv_lib_nl_nl_connect=no
27025fi
27026rm -f core conftest.err conftest.$ac_objext \
27027    conftest$ac_exeext conftest.$ac_ext
27028LIBS=$ac_check_lib_save_LIBS
27029fi
27030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27031$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27032if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27033  fi_check_package_lib_happy="yes"
27034else
27035  fi_check_package_lib_happy="no"
27036fi
27037
27038                if test "$fi_check_package_lib_happy" = "no"; then :
27039   # no go on the as is..  see what happens later...
27040                     LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27041                     usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27042                     unset ac_cv_lib_nl_nl_connect
27043fi
27044fi
27045
27046           if test "$fi_check_package_lib_happy" = "no"; then :
27047  if test "$fi_check_package_libdir" != ""; then :
27048  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib64"
27049                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
27050                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
27051$as_echo "looking for library in lib64" >&6; }
27052                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
27053$as_echo_n "checking for nl_connect in -lnl... " >&6; }
27054if ${ac_cv_lib_nl_nl_connect+:} false; then :
27055  $as_echo_n "(cached) " >&6
27056else
27057  ac_check_lib_save_LIBS=$LIBS
27058LIBS="-lnl -lm $LIBS"
27059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27060/* end confdefs.h.  */
27061
27062/* Override any GCC internal prototype to avoid an error.
27063   Use char because int might match the return type of a GCC
27064   builtin and then its argument prototype would still apply.  */
27065#ifdef __cplusplus
27066extern "C"
27067#endif
27068char nl_connect ();
27069int
27070main ()
27071{
27072return nl_connect ();
27073  ;
27074  return 0;
27075}
27076_ACEOF
27077if ac_fn_c_try_link "$LINENO"; then :
27078  ac_cv_lib_nl_nl_connect=yes
27079else
27080  ac_cv_lib_nl_nl_connect=no
27081fi
27082rm -f core conftest.err conftest.$ac_objext \
27083    conftest$ac_exeext conftest.$ac_ext
27084LIBS=$ac_check_lib_save_LIBS
27085fi
27086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27087$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27088if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27089  fi_check_package_lib_happy="yes"
27090else
27091  fi_check_package_lib_happy="no"
27092fi
27093
27094                     if test "$fi_check_package_lib_happy" = "no"; then :
27095   # no go on the as is..  see what happens later...
27096                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27097                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27098                          unset ac_cv_lib_nl_nl_connect
27099fi
27100fi
27101fi
27102
27103           if test "$fi_check_package_lib_happy" = "no"; then :
27104  if test "$fi_check_package_libdir" != ""; then :
27105  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib"
27106                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
27107                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
27108$as_echo "looking for library in lib" >&6; }
27109                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
27110$as_echo_n "checking for nl_connect in -lnl... " >&6; }
27111if ${ac_cv_lib_nl_nl_connect+:} false; then :
27112  $as_echo_n "(cached) " >&6
27113else
27114  ac_check_lib_save_LIBS=$LIBS
27115LIBS="-lnl -lm $LIBS"
27116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27117/* end confdefs.h.  */
27118
27119/* Override any GCC internal prototype to avoid an error.
27120   Use char because int might match the return type of a GCC
27121   builtin and then its argument prototype would still apply.  */
27122#ifdef __cplusplus
27123extern "C"
27124#endif
27125char nl_connect ();
27126int
27127main ()
27128{
27129return nl_connect ();
27130  ;
27131  return 0;
27132}
27133_ACEOF
27134if ac_fn_c_try_link "$LINENO"; then :
27135  ac_cv_lib_nl_nl_connect=yes
27136else
27137  ac_cv_lib_nl_nl_connect=no
27138fi
27139rm -f core conftest.err conftest.$ac_objext \
27140    conftest$ac_exeext conftest.$ac_ext
27141LIBS=$ac_check_lib_save_LIBS
27142fi
27143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27144$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27145if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27146  fi_check_package_lib_happy="yes"
27147else
27148  fi_check_package_lib_happy="no"
27149fi
27150
27151                     if test "$fi_check_package_lib_happy" = "no"; then :
27152   # no go on the as is..  see what happens later...
27153                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27154                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27155                          unset ac_cv_lib_nl_nl_connect
27156fi
27157fi
27158fi
27159fi
27160
27161    if test "$fi_check_package_lib_happy" = "yes"; then :
27162  usnic_nl_LIBS="-lnl -lm"
27163           fi_check_package_happy="yes"
27164else
27165  fi_check_package_happy="no"
27166fi
27167
27168
27169else
27170  fi_check_package_happy="no"
27171fi
27172else
27173
27174    # This is stolen from autoconf to peek under the covers to get the
27175    # cache variable for the library check.
27176
27177    # See comment above
27178    unset ac_cv_lib_nl_nl_connect
27179    fi_check_package_lib_happy="no"
27180    if test "" != ""; then :
27181   # libdir was specified - search only there
27182           usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L"
27183           LDFLAGS="$LDFLAGS -L"
27184           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
27185$as_echo_n "checking for nl_connect in -lnl... " >&6; }
27186if ${ac_cv_lib_nl_nl_connect+:} false; then :
27187  $as_echo_n "(cached) " >&6
27188else
27189  ac_check_lib_save_LIBS=$LIBS
27190LIBS="-lnl -lm $LIBS"
27191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27192/* end confdefs.h.  */
27193
27194/* Override any GCC internal prototype to avoid an error.
27195   Use char because int might match the return type of a GCC
27196   builtin and then its argument prototype would still apply.  */
27197#ifdef __cplusplus
27198extern "C"
27199#endif
27200char nl_connect ();
27201int
27202main ()
27203{
27204return nl_connect ();
27205  ;
27206  return 0;
27207}
27208_ACEOF
27209if ac_fn_c_try_link "$LINENO"; then :
27210  ac_cv_lib_nl_nl_connect=yes
27211else
27212  ac_cv_lib_nl_nl_connect=no
27213fi
27214rm -f core conftest.err conftest.$ac_objext \
27215    conftest$ac_exeext conftest.$ac_ext
27216LIBS=$ac_check_lib_save_LIBS
27217fi
27218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27219$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27220if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27221  fi_check_package_lib_happy="yes"
27222else
27223  fi_check_package_lib_happy="no"
27224fi
27225
27226           if test "$fi_check_package_lib_happy" = "no"; then :
27227  LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27228                  usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27229                  unset ac_cv_lib_nl_nl_connect
27230fi
27231else
27232   # libdir was not specified - go through search path
27233           fi_check_package_libdir="$usnic_libnl_location"
27234           if test "$fi_check_package_libdir" = "" || \
27235                  test "$fi_check_package_libdir" = "/usr" || \
27236                  test "$fi_check_package_libdir" = "/usr/local"; then :
27237   # try as is...
27238                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
27239$as_echo "looking for library without search path" >&6; }
27240                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
27241$as_echo_n "checking for nl_connect in -lnl... " >&6; }
27242if ${ac_cv_lib_nl_nl_connect+:} false; then :
27243  $as_echo_n "(cached) " >&6
27244else
27245  ac_check_lib_save_LIBS=$LIBS
27246LIBS="-lnl -lm $LIBS"
27247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27248/* end confdefs.h.  */
27249
27250/* Override any GCC internal prototype to avoid an error.
27251   Use char because int might match the return type of a GCC
27252   builtin and then its argument prototype would still apply.  */
27253#ifdef __cplusplus
27254extern "C"
27255#endif
27256char nl_connect ();
27257int
27258main ()
27259{
27260return nl_connect ();
27261  ;
27262  return 0;
27263}
27264_ACEOF
27265if ac_fn_c_try_link "$LINENO"; then :
27266  ac_cv_lib_nl_nl_connect=yes
27267else
27268  ac_cv_lib_nl_nl_connect=no
27269fi
27270rm -f core conftest.err conftest.$ac_objext \
27271    conftest$ac_exeext conftest.$ac_ext
27272LIBS=$ac_check_lib_save_LIBS
27273fi
27274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27275$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27276if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27277  fi_check_package_lib_happy="yes"
27278else
27279  fi_check_package_lib_happy="no"
27280fi
27281
27282                if test "$fi_check_package_lib_happy" = "no"; then :
27283   # no go on the as is..  see what happens later...
27284                     LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27285                     usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27286                     unset ac_cv_lib_nl_nl_connect
27287fi
27288fi
27289
27290           if test "$fi_check_package_lib_happy" = "no"; then :
27291  if test "$fi_check_package_libdir" != ""; then :
27292  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib64"
27293                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
27294                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
27295$as_echo "looking for library in lib64" >&6; }
27296                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
27297$as_echo_n "checking for nl_connect in -lnl... " >&6; }
27298if ${ac_cv_lib_nl_nl_connect+:} false; then :
27299  $as_echo_n "(cached) " >&6
27300else
27301  ac_check_lib_save_LIBS=$LIBS
27302LIBS="-lnl -lm $LIBS"
27303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27304/* end confdefs.h.  */
27305
27306/* Override any GCC internal prototype to avoid an error.
27307   Use char because int might match the return type of a GCC
27308   builtin and then its argument prototype would still apply.  */
27309#ifdef __cplusplus
27310extern "C"
27311#endif
27312char nl_connect ();
27313int
27314main ()
27315{
27316return nl_connect ();
27317  ;
27318  return 0;
27319}
27320_ACEOF
27321if ac_fn_c_try_link "$LINENO"; then :
27322  ac_cv_lib_nl_nl_connect=yes
27323else
27324  ac_cv_lib_nl_nl_connect=no
27325fi
27326rm -f core conftest.err conftest.$ac_objext \
27327    conftest$ac_exeext conftest.$ac_ext
27328LIBS=$ac_check_lib_save_LIBS
27329fi
27330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27331$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27332if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27333  fi_check_package_lib_happy="yes"
27334else
27335  fi_check_package_lib_happy="no"
27336fi
27337
27338                     if test "$fi_check_package_lib_happy" = "no"; then :
27339   # no go on the as is..  see what happens later...
27340                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27341                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27342                          unset ac_cv_lib_nl_nl_connect
27343fi
27344fi
27345fi
27346
27347           if test "$fi_check_package_lib_happy" = "no"; then :
27348  if test "$fi_check_package_libdir" != ""; then :
27349  usnic_nl_LDFLAGS="$usnic_nl_LDFLAGS -L$fi_check_package_libdir/lib"
27350                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
27351                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
27352$as_echo "looking for library in lib" >&6; }
27353                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
27354$as_echo_n "checking for nl_connect in -lnl... " >&6; }
27355if ${ac_cv_lib_nl_nl_connect+:} false; then :
27356  $as_echo_n "(cached) " >&6
27357else
27358  ac_check_lib_save_LIBS=$LIBS
27359LIBS="-lnl -lm $LIBS"
27360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27361/* end confdefs.h.  */
27362
27363/* Override any GCC internal prototype to avoid an error.
27364   Use char because int might match the return type of a GCC
27365   builtin and then its argument prototype would still apply.  */
27366#ifdef __cplusplus
27367extern "C"
27368#endif
27369char nl_connect ();
27370int
27371main ()
27372{
27373return nl_connect ();
27374  ;
27375  return 0;
27376}
27377_ACEOF
27378if ac_fn_c_try_link "$LINENO"; then :
27379  ac_cv_lib_nl_nl_connect=yes
27380else
27381  ac_cv_lib_nl_nl_connect=no
27382fi
27383rm -f core conftest.err conftest.$ac_objext \
27384    conftest$ac_exeext conftest.$ac_ext
27385LIBS=$ac_check_lib_save_LIBS
27386fi
27387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
27388$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
27389if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
27390  fi_check_package_lib_happy="yes"
27391else
27392  fi_check_package_lib_happy="no"
27393fi
27394
27395                     if test "$fi_check_package_lib_happy" = "no"; then :
27396   # no go on the as is..  see what happens later...
27397                          LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27398                          usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27399                          unset ac_cv_lib_nl_nl_connect
27400fi
27401fi
27402fi
27403fi
27404
27405    if test "$fi_check_package_lib_happy" = "yes"; then :
27406  usnic_nl_LIBS="-lnl -lm"
27407           fi_check_package_happy="yes"
27408else
27409  fi_check_package_happy="no"
27410fi
27411
27412
27413fi
27414    unset fi_check_package_header_happy
27415
27416
27417
27418    if test "$fi_check_package_happy" = "yes"; then :
27419  usnic_libnl_happy=1
27420else
27421  usnic_nl_CPPFLAGS="$fi_check_package_usnic_nl_orig_CPPFLAGS"
27422           usnic_nl_LDFLAGS="$fi_check_package_usnic_nl_orig_LDFLAGS"
27423           usnic_nl_LIBS="$fi_check_package_usnic_nl_orig_LIBS"
27424           usnic_libnl_happy=0
27425fi
27426
27427
27428
27429
27430
27431    CPPFLAGS="$fi_check_package_usnic_nl_save_CPPFLAGS"
27432    LDFLAGS="$fi_check_package_usnic_nl_save_LDFLAGS"
27433    LIBS="$fi_check_package_usnic_nl_save_LIBS"
27434
27435
27436	if test $usnic_libnl_happy -eq 1; then :
27437  usnic_nl_LIBS="-lnl -lm"
27438	       HAVE_LIBNL3=0
27439fi
27440
27441fi
27442
27443	if test "$usnic_want_libnl" = "yes" &&
27444	       test "$usnic_nl_LIBS" = ""; then :
27445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libnl specified, but not found" >&5
27446$as_echo "$as_me: WARNING: --with-libnl specified, but not found" >&2;}
27447	       as_fn_error $? "Cannot continue" "$LINENO" 5
27448fi
27449
27450	# Final result
27451
27452
27453cat >>confdefs.h <<_ACEOF
27454#define HAVE_LIBNL3 $HAVE_LIBNL3
27455_ACEOF
27456
27457
27458	usnic_CPPFLAGS=$usnic_nl_CPPFLAGS
27459	usnic_LDFLAGS=$usnic_nl_LDFLAGS
27460	usnic_LIBS=$usnic_nl_LIBS
27461
27462	# If we're building the usNIC fake verbs provider, we need to
27463	# -libverbs, so put it in usnic_LIBS (so that it will also get
27464	# properly substituted into the pkg-config data files).
27465	usnic_verbs_lib=
27466	if test $usnic_build_fake_driver -eq 1; then :
27467  usnic_verbs_lib="-libverbs"
27468fi
27469	usnic_LIBS="$usnic_LIBS $usnic_verbs_lib"
27470
27471
27472
27473
27474
27475	if test "$usnic_nl_LIBS" = ""; then :
27476  usnic_happy=0
27477fi
27478
27479fi
27480
27481fi
27482
27483    # AM_CONDITIONALs must always be defined
27484     if test $usnic_build_fake_driver -eq 1; then
27485  USNIC_BUILD_FAKE_VERBS_DRIVER_TRUE=
27486  USNIC_BUILD_FAKE_VERBS_DRIVER_FALSE='#'
27487else
27488  USNIC_BUILD_FAKE_VERBS_DRIVER_TRUE='#'
27489  USNIC_BUILD_FAKE_VERBS_DRIVER_FALSE=
27490fi
27491
27492
27493
27494
27495
27496
27497
27498
27499	# See if the provider configured successfully
27500	if test $usnic_happy -eq 1; then :
27501  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD usnic"
27502		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
27503
27504	 FI_PC_CFLAGS="$FI_PC_CFLAGS $usnic_CFLAGS $usnic_CPPFLAGS"
27505	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $usnic_LDFLAGS $usnic_LIBS"
27506
27507		 if test $usnic_dl -eq 1; then :
27508  PROVIDERS_DL="prov/usnic/libusnic.la $PROVIDERS_DL"
27509			 if test x"$enable_static" = x"yes" &&
27510				test x"$enable_shared" = x"no"; then :
27511  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: usnic provider was selected to be built as DL" >&5
27512$as_echo "$as_me: WARNING: usnic provider was selected to be built as DL" >&2;}
27513				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
27514$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
27515				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
27516fi
27517			 { $as_echo "$as_me:${as_lineno-$LINENO}: usnic provider: build as plugin" >&5
27518$as_echo "$as_me: usnic provider: build as plugin" >&6;}
27519
27520			 # See if this provider has a specfile that
27521			 # needs to be generated
27522			 ac_config_files="$ac_config_files prov/usnic/libfabric-usnic.spec"
27523
27524
27525else
27526  PROVIDERS_STATIC="prov/usnic/libusnic.la $PROVIDERS_STATIC"
27527			 { $as_echo "$as_me:${as_lineno-$LINENO}: usnic provider: include in libfabric" >&5
27528$as_echo "$as_me: usnic provider: include in libfabric" >&6;}
27529fi
27530
27531else
27532  { $as_echo "$as_me:${as_lineno-$LINENO}: usnic provider: disabled" >&5
27533$as_echo "$as_me: usnic provider: disabled" >&6;}
27534fi
27535
27536
27537cat >>confdefs.h <<_ACEOF
27538#define HAVE_USNIC $usnic_happy
27539_ACEOF
27540
27541
27542cat >>confdefs.h <<_ACEOF
27543#define HAVE_USNIC_DL $usnic_dl
27544_ACEOF
27545
27546
27547	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
27548	# as well as AC defines
27549	 if test $usnic_happy -eq 1; then
27550  HAVE_USNIC_TRUE=
27551  HAVE_USNIC_FALSE='#'
27552else
27553  HAVE_USNIC_TRUE='#'
27554  HAVE_USNIC_FALSE=
27555fi
27556
27557	 if test $usnic_dl -eq 1; then
27558  HAVE_USNIC_DL_TRUE=
27559  HAVE_USNIC_DL_FALSE='#'
27560else
27561  HAVE_USNIC_DL_TRUE='#'
27562  HAVE_USNIC_DL_FALSE=
27563fi
27564
27565
27566	# If this provider was specifically requested but we can't
27567	# build it, error.
27568	if test "$enable_usnic $usnic_happy" = "yes 0"; then :
27569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: usnic provider was requested, but cannot be compiled" >&5
27570$as_echo "$as_me: WARNING: usnic provider was requested, but cannot be compiled" >&2;}
27571	       as_fn_error $? "Cannot continue" "$LINENO" 5
27572
27573fi
27574	# If this provider was requested for direct build, ensure that
27575	# provider's fi_direct.h exists in tree. Error otherwise.
27576	if test x"$enable_direct" = x"usnic"; then :
27577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/usnic/include/rdma/fi_direct.h" >&5
27578$as_echo_n "checking for $srcdir/prov/usnic/include/rdma/fi_direct.h... " >&6; }
27579		 if test -f "$srcdir/prov/usnic/include/rdma/fi_direct.h"; then :
27580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27581$as_echo "yes" >&6; }
27582else
27583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27584$as_echo "no" >&6; }
27585			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/usnic/include/rdma/fi_direct.h.in" >&5
27586$as_echo_n "checking for $srcdir/prov/usnic/include/rdma/fi_direct.h.in... " >&6; }
27587			 if test -f "$srcdir/prov/usnic/include/rdma/fi_direct.h.in"; then :
27588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27589$as_echo "yes" >&6; }
27590else
27591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27592$as_echo "no" >&6; }
27593				 as_fn_error $? "usnic provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
27594
27595fi
27596fi
27597fi
27598
27599	 if test -f "$srcdir/prov/usnic/include/rdma/fi_direct.h.in"; then
27600  FI_DIRECT_H_IN_TRUE=
27601  FI_DIRECT_H_IN_FALSE='#'
27602else
27603  FI_DIRECT_H_IN_TRUE='#'
27604  FI_DIRECT_H_IN_FALSE=
27605fi
27606
27607
27608
27609	# Restore CPPFLAGS/LDFLAGS/LIBS
27610	CPPFLAGS=$usnic_orig_CPPFLAGS
27611	unset usnic_orig_CPPFLAGS
27612	LDFLAGS=$usnic_orig_LDFLAGS
27613	unset usnic_orig_LDFLAGS
27614	LIBS=$usnic_orig_LIBS
27615	unset usnic_orig_LIBS
27616
27617
27618
27619
27620
27621
27622
27623
27624if test "x$ac_cv_env_FI_PKG_CONFIG_set" != "xset"; then
27625	if test -n "$ac_tool_prefix"; then
27626  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27627set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27629$as_echo_n "checking for $ac_word... " >&6; }
27630if ${ac_cv_path_FI_PKG_CONFIG+:} false; then :
27631  $as_echo_n "(cached) " >&6
27632else
27633  case $FI_PKG_CONFIG in
27634  [\\/]* | ?:[\\/]*)
27635  ac_cv_path_FI_PKG_CONFIG="$FI_PKG_CONFIG" # Let the user override the test with a path.
27636  ;;
27637  *)
27638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27639for as_dir in $PATH
27640do
27641  IFS=$as_save_IFS
27642  test -z "$as_dir" && as_dir=.
27643    for ac_exec_ext in '' $ac_executable_extensions; do
27644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27645    ac_cv_path_FI_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27647    break 2
27648  fi
27649done
27650  done
27651IFS=$as_save_IFS
27652
27653  ;;
27654esac
27655fi
27656FI_PKG_CONFIG=$ac_cv_path_FI_PKG_CONFIG
27657if test -n "$FI_PKG_CONFIG"; then
27658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FI_PKG_CONFIG" >&5
27659$as_echo "$FI_PKG_CONFIG" >&6; }
27660else
27661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27662$as_echo "no" >&6; }
27663fi
27664
27665
27666fi
27667if test -z "$ac_cv_path_FI_PKG_CONFIG"; then
27668  ac_pt_FI_PKG_CONFIG=$FI_PKG_CONFIG
27669  # Extract the first word of "pkg-config", so it can be a program name with args.
27670set dummy pkg-config; ac_word=$2
27671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27672$as_echo_n "checking for $ac_word... " >&6; }
27673if ${ac_cv_path_ac_pt_FI_PKG_CONFIG+:} false; then :
27674  $as_echo_n "(cached) " >&6
27675else
27676  case $ac_pt_FI_PKG_CONFIG in
27677  [\\/]* | ?:[\\/]*)
27678  ac_cv_path_ac_pt_FI_PKG_CONFIG="$ac_pt_FI_PKG_CONFIG" # Let the user override the test with a path.
27679  ;;
27680  *)
27681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27682for as_dir in $PATH
27683do
27684  IFS=$as_save_IFS
27685  test -z "$as_dir" && as_dir=.
27686    for ac_exec_ext in '' $ac_executable_extensions; do
27687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27688    ac_cv_path_ac_pt_FI_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27690    break 2
27691  fi
27692done
27693  done
27694IFS=$as_save_IFS
27695
27696  ;;
27697esac
27698fi
27699ac_pt_FI_PKG_CONFIG=$ac_cv_path_ac_pt_FI_PKG_CONFIG
27700if test -n "$ac_pt_FI_PKG_CONFIG"; then
27701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_FI_PKG_CONFIG" >&5
27702$as_echo "$ac_pt_FI_PKG_CONFIG" >&6; }
27703else
27704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27705$as_echo "no" >&6; }
27706fi
27707
27708  if test "x$ac_pt_FI_PKG_CONFIG" = x; then
27709    FI_PKG_CONFIG=""
27710  else
27711    case $cross_compiling:$ac_tool_warned in
27712yes:)
27713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27715ac_tool_warned=yes ;;
27716esac
27717    FI_PKG_CONFIG=$ac_pt_FI_PKG_CONFIG
27718  fi
27719else
27720  FI_PKG_CONFIG="$ac_cv_path_FI_PKG_CONFIG"
27721fi
27722
27723fi
27724if test -n "$FI_PKG_CONFIG"; then
27725	_pkg_min_version=0.9.0
27726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
27727$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
27728	if $FI_PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
27729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27730$as_echo "yes" >&6; }
27731	else
27732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27733$as_echo "no" >&6; }
27734		FI_PKG_CONFIG=""
27735	fi
27736fi
27737
27738
27739	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"gni"; then :
27740  enable_gni=no
27741               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping gni provider because $enable_direct direct requested" >&5
27742$as_echo "$as_me: *** Skipping gni provider because $enable_direct direct requested" >&6;}
27743else
27744  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring gni provider" >&5
27745$as_echo "$as_me: *** Configuring gni provider" >&6;}
27746	       # Check whether --enable-gni was given.
27747if test "${enable_gni+set}" = set; then :
27748  enableval=$enable_gni;
27749else
27750  enable_gni=auto
27751fi
27752
27753fi
27754
27755	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
27756	# Provider's local macros could use the value if needed.
27757	# Also save LIBS, as a matter of principle.
27758	gni_orig_CPPFLAGS=$CPPFLAGS
27759	gni_orig_LDFLAGS=$LDFLAGS
27760	gni_orig_LIBS=$LIBS
27761
27762	# Check the --enable-<gni> value
27763	gni_dl=0
27764	case $enable_gni in #(
27765  yes|no) :
27766     ;; #(
27767  dl) :
27768    enable_gni=yes gni_dl=1 ;; #(
27769  auto) :
27770     ;; #(
27771  dl:*) :
27772
27773	# Check that the base directory exists
27774	if test ! -d "${enable_gni:3}"; then :
27775  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_gni:3}\" does not exist" >&5
27776$as_echo "$as_me: WARNING: supplied directory \"${enable_gni:3}\" does not exist" >&2;}
27777	        as_fn_error $? "Cannot continue" "$LINENO" 5
27778
27779fi
27780
27781	# Check that base/include exists
27782	 if test -d "${enable_gni:3}/include"; then :
27783  gni_PREFIX="${enable_gni:3}"
27784else
27785  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_gni:3}\" directory\"" >&5
27786$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_gni:3}\" directory\"" >&2;}
27787	        as_fn_error $? "Cannot continue" "$LINENO" 5
27788
27789fi
27790
27791	# Check that base/lib or base/lib64 exists
27792	 if test -d "${enable_gni:3}/lib64"; then :
27793  gni_LIBDIR="${enable_gni:3}/lib64"
27794else
27795  if test -d "${enable_gni:3}/lib"; then :
27796  gni_LIBDIR="${enable_gni:3}/lib"
27797else
27798  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_gni:3}\" directory\"" >&5
27799$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_gni:3}\" directory\"" >&2;}
27800		       as_fn_error $? "Cannot continue" "$LINENO" 5
27801
27802fi
27803
27804fi
27805
27806		   enable_gni=yes gni_dl=1 ;; #(
27807  *) :
27808
27809	# Check that the base directory exists
27810	if test ! -d "$enable_gni"; then :
27811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_gni\" does not exist" >&5
27812$as_echo "$as_me: WARNING: supplied directory \"$enable_gni\" does not exist" >&2;}
27813	        as_fn_error $? "Cannot continue" "$LINENO" 5
27814
27815fi
27816
27817	# Check that base/include exists
27818	 if test -d "$enable_gni/include"; then :
27819  gni_PREFIX="$enable_gni"
27820else
27821  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_gni\" directory\"" >&5
27822$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_gni\" directory\"" >&2;}
27823	        as_fn_error $? "Cannot continue" "$LINENO" 5
27824
27825fi
27826
27827	# Check that base/lib or base/lib64 exists
27828	 if test -d "$enable_gni/lib64"; then :
27829  gni_LIBDIR="$enable_gni/lib64"
27830else
27831  if test -d "$enable_gni/lib"; then :
27832  gni_LIBDIR="$enable_gni/lib"
27833else
27834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_gni\" directory\"" >&5
27835$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_gni\" directory\"" >&2;}
27836		       as_fn_error $? "Cannot continue" "$LINENO" 5
27837
27838fi
27839
27840fi
27841
27842	 enable_gni=yes
27843	 ;;
27844esac
27845
27846	# Call the provider's CONFIGURE and CONDITIONALS macros
27847
27848
27849
27850# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
27851# serial 1 (pkg-config-0.24)
27852#
27853# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
27854#
27855# This program is free software; you can redistribute it and/or modify
27856# it under the terms of the GNU General Public License as published by
27857# the Free Software Foundation; either version 2 of the License, or
27858# (at your option) any later version.
27859#
27860# This program is distributed in the hope that it will be useful, but
27861# WITHOUT ANY WARRANTY; without even the implied warranty of
27862# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27863# General Public License for more details.
27864#
27865# You should have received a copy of the GNU General Public License
27866# along with this program; if not, write to the Free Software
27867# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27868#
27869# As a special exception to the GNU General Public License, if you
27870# distribute this file as part of a program that contains a
27871# configuration script generated by Autoconf, you may include it under
27872# the same distribution terms that you use for the rest of that program.
27873
27874# FI_PKG_PROG_PKG_CONFIG([MIN-VERSION])
27875# ----------------------------------
27876# FI_PKG_PROG_PKG_CONFIG
27877
27878# FI_PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
27879#
27880# Check to see whether a particular set of modules exists.  Similar
27881# to FI_PKG_CHECK_MODULES(), but does not set variables or print errors.
27882#
27883# Please remember that m4 expands AC_REQUIRE([FI_PKG_PROG_PKG_CONFIG])
27884# only at the first occurence in configure.ac, so if the first place
27885# it's called might be skipped (such as if it is within an "if", you
27886# have to call FI_PKG_CHECK_EXISTS manually
27887# --------------------------------------------------------------
27888
27889
27890# _FI_PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
27891# ---------------------------------------------
27892# _FI_PKG_CONFIG
27893
27894# _PKG_SHORT_ERRORS_SUPPORTED
27895# -----------------------------
27896# _PKG_SHORT_ERRORS_SUPPORTED
27897
27898
27899# FI_PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
27900# [ACTION-IF-NOT-FOUND])
27901#
27902#
27903# Note that if there is a possibility the first call to
27904# FI_PKG_CHECK_MODULES might not happen, you should be sure to include an
27905# explicit call to FI_PKG_PROG_PKG_CONFIG in your configure.ac
27906#
27907#
27908# --------------------------------------------------------------
27909# FI_PKG_CHECK_MODULES
27910
27911
27912# PKG_INSTALLDIR(DIRECTORY)
27913# -------------------------
27914# Substitutes the variable pkgconfigdir as the location where a module
27915# should install pkg-config .pc files. By default the directory is
27916# $libdir/pkgconfig, but the default can be changed by passing
27917# DIRECTORY. The user can override through the --with-pkgconfigdir
27918# parameter.
27919
27920
27921# PKG_NOARCH_INSTALLDIR(DIRECTORY)
27922# -------------------------
27923# Substitutes the variable noarch_pkgconfigdir as the location where a
27924# module should install arch-independent pkg-config .pc files. By
27925# default the directory is $datadir/pkgconfig, but the default can be
27926# changed by passing DIRECTORY. The user can override through the
27927# --with-noarch-pkgconfigdir parameter.
27928
27929
27930# FI_PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
27931# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
27932# -------------------------------------------
27933# Retrieves the value of the pkg-config variable for the given module.
27934# FI_PKG_CHECK_VAR
27935
27936###########################################################################
27937###########################################################################
27938###########################################################################
27939# libfabric project extensions to pkg.m4
27940###########################################################################
27941###########################################################################
27942###########################################################################
27943
27944# _FI_PKG_CONFIG2([VARIABLE], [COMMAND1], [COMMAND2], [MODULES])
27945# ---------------------------------------------
27946# _FI_PKG_CONFIG2
27947
27948# FI_PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
27949# [ACTION-IF-NOT-FOUND])
27950#
27951#
27952# Variation of FI_PGK_CHECK_MODULES which also defines $1_LIBS_STATIC
27953# by using the pkg-config --libs --static pkg-config option.
27954#
27955# --------------------------------------------------------------
27956# FI_PKG_CHECK_MODULES_STATIC
27957
27958
27959
27960
27961
27962
27963
27964
27965        # Determine if we can support the gni provider
27966        # have to pull in pkg.m4 manually
27967        ugni_lib_happy=0
27968        udreg_lib_happy=0
27969        gni_header_happy=0
27970        alps_lli_happy=0
27971        alps_util_happy=0
27972        have_criterion=false
27973        criterion_tests_present=true
27974        gni_CPPFLAGS=
27975        gni_LDFLAGS=
27976	gnitest_CPPFLAGS=
27977	gnitest_LDFLAGS=
27978        gnitest_LIBS=
27979        xpmem_happy=0
27980        kdreg_happy=0
27981
27982
27983        # Check whether --enable-xpmem was given.
27984if test "${enable_xpmem+set}" = set; then :
27985  enableval=$enable_xpmem;
27986fi
27987
27988
27989        # Check whether --enable-ugni-static was given.
27990if test "${enable_ugni_static+set}" = set; then :
27991  enableval=$enable_ugni_static;
27992fi
27993
27994
27995        if test x"$enable_gni" != x"no"; then :
27996
27997pkg_failed=no
27998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_GNI_HEADERS" >&5
27999$as_echo_n "checking for CRAY_GNI_HEADERS... " >&6; }
28000
28001if test -n "$CRAY_GNI_HEADERS_CFLAGS"; then
28002    pkg_cv_CRAY_GNI_HEADERS_CFLAGS="$CRAY_GNI_HEADERS_CFLAGS"
28003 elif test -n "$FI_PKG_CONFIG"; then
28004    if test -n "$FI_PKG_CONFIG" && \
28005    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-gni-headers\""; } >&5
28006  ($FI_PKG_CONFIG --exists --print-errors "cray-gni-headers") 2>&5
28007  ac_status=$?
28008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28009  test $ac_status = 0; }; then
28010  pkg_cv_CRAY_GNI_HEADERS_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-gni-headers" 2>/dev/null`
28011		      test "x$?" != "x0" && pkg_failed=yes
28012else
28013  pkg_failed=yes
28014fi
28015 else
28016    pkg_failed=untried
28017fi
28018if test -n "$CRAY_GNI_HEADERS_LIBS"; then
28019    pkg_cv_CRAY_GNI_HEADERS_LIBS="$CRAY_GNI_HEADERS_LIBS"
28020 elif test -n "$FI_PKG_CONFIG"; then
28021    if test -n "$FI_PKG_CONFIG" && \
28022    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-gni-headers\""; } >&5
28023  ($FI_PKG_CONFIG --exists --print-errors "cray-gni-headers") 2>&5
28024  ac_status=$?
28025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28026  test $ac_status = 0; }; then
28027  pkg_cv_CRAY_GNI_HEADERS_LIBS=`$FI_PKG_CONFIG --libs "cray-gni-headers" 2>/dev/null`
28028		      test "x$?" != "x0" && pkg_failed=yes
28029else
28030  pkg_failed=yes
28031fi
28032 else
28033    pkg_failed=untried
28034fi
28035
28036
28037
28038if test $pkg_failed = yes; then
28039   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28040$as_echo "no" >&6; }
28041
28042if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28043        _pkg_short_errors_supported=yes
28044else
28045        _pkg_short_errors_supported=no
28046fi
28047        if test $_pkg_short_errors_supported = yes; then
28048	        CRAY_GNI_HEADERS_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-gni-headers" 2>&1`
28049        else
28050	        CRAY_GNI_HEADERS_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-gni-headers" 2>&1`
28051        fi
28052	# Put the nasty error message in config.log where it belongs
28053	echo "$CRAY_GNI_HEADERS_PKG_ERRORS" >&5
28054
28055	gni_header_happy=0
28056elif test $pkg_failed = untried; then
28057     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28058$as_echo "no" >&6; }
28059	gni_header_happy=0
28060else
28061	CRAY_GNI_HEADERS_CFLAGS=$pkg_cv_CRAY_GNI_HEADERS_CFLAGS
28062	CRAY_GNI_HEADERS_LIBS=$pkg_cv_CRAY_GNI_HEADERS_LIBS
28063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28064$as_echo "yes" >&6; }
28065	gni_header_happy=1
28066                                  gni_CPPFLAGS="$CRAY_GNI_HEADERS_CFLAGS $gni_CPPFLAGS"
28067
28068fi
28069
28070fi
28071
28072        if test "$gni_header_happy" -eq 1; then :
28073
28074pkg_failed=no
28075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_UGNI" >&5
28076$as_echo_n "checking for CRAY_UGNI... " >&6; }
28077
28078if test -n "$CRAY_UGNI_CFLAGS"; then
28079    pkg_cv_CRAY_UGNI_CFLAGS="$CRAY_UGNI_CFLAGS"
28080 elif test -n "$FI_PKG_CONFIG"; then
28081    if test -n "$FI_PKG_CONFIG" && \
28082    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-ugni\""; } >&5
28083  ($FI_PKG_CONFIG --exists --print-errors "cray-ugni") 2>&5
28084  ac_status=$?
28085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28086  test $ac_status = 0; }; then
28087  pkg_cv_CRAY_UGNI_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-ugni" 2>/dev/null`
28088		      test "x$?" != "x0" && pkg_failed=yes
28089else
28090  pkg_failed=yes
28091fi
28092 else
28093    pkg_failed=untried
28094fi
28095if test -n "$CRAY_UGNI_LIBS"; then
28096    pkg_cv_CRAY_UGNI_LIBS="$CRAY_UGNI_LIBS"
28097 elif test -n "$FI_PKG_CONFIG"; then
28098    if test -n "$FI_PKG_CONFIG" && \
28099    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-ugni\""; } >&5
28100  ($FI_PKG_CONFIG --exists --print-errors "cray-ugni") 2>&5
28101  ac_status=$?
28102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28103  test $ac_status = 0; }; then
28104  pkg_cv_CRAY_UGNI_LIBS=`$FI_PKG_CONFIG --libs "cray-ugni" 2>/dev/null`
28105		      test "x$?" != "x0" && pkg_failed=yes
28106else
28107  pkg_failed=yes
28108fi
28109 else
28110    pkg_failed=untried
28111fi
28112if test -n "$CRAY_UGNI_STATIC_LIBS"; then
28113	pkg_cv_CRAY_UGNI_STATIC_LIBS="$CRAY_UGNI_STATIC_LIBS"
28114elif test -n "$FI_PKG_CONFIG"; then
28115	if test -n "$FI_PKG_CONFIG" && \
28116    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-ugni\""; } >&5
28117  ($FI_PKG_CONFIG --exists --print-errors "cray-ugni") 2>&5
28118  ac_status=$?
28119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28120  test $ac_status = 0; }; then
28121  pkg_cv_CRAY_UGNI_STATIC_LIBS=`$FI_PKG_CONFIG --libs --static "cray-ugni" 2>/dev/null`
28122		test "x$?" != "x0" && pkg_failed=yes
28123else
28124  pkg_failed=yes
28125fi
28126else
28127	pkg_failed=untried
28128fi
28129
28130
28131
28132if test $pkg_failed = yes; then
28133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28134$as_echo "no" >&6; }
28135
28136if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28137        _pkg_short_errors_supported=yes
28138else
28139        _pkg_short_errors_supported=no
28140fi
28141	if test $_pkg_short_errors_supported = yes; then
28142		CRAY_UGNI_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-ugni" 2>&1`
28143	else
28144		CRAY_UGNI_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-ugni" 2>&1`
28145	fi
28146	# Put the nasty error message in config.log where it belongs
28147	echo "$CRAY_UGNI_PKG_ERRORS" >&5
28148
28149	ugni_lib_happy=0
28150elif test $pkg_failed = untried; then
28151	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28152$as_echo "no" >&6; }
28153	ugni_lib_happy=0
28154else
28155	CRAY_UGNI_CFLAGS=$pkg_cv_CRAY_UGNI_CFLAGS
28156	CRAY_UGNI_LIBS=$pkg_cv_CRAY_UGNI_LIBS
28157	CRAY_UGNI_STATIC_LIBS=$pkg_cv_CRAY_UGNI_STATIC_LIBS
28158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28159$as_echo "yes" >&6; }
28160	ugni_lib_happy=1
28161                                  gni_CPPFLAGS=$CRAY_UGNI_CFLAGS
28162                                  gni_LDFLAGS=$CRAY_UGNI_LIBS
28163
28164fi
28165
28166               if test x"$enable_ugni_static" == x"yes" && test $ugni_lib_happy -eq 1; then :
28167  gni_LDFLAGS=$(echo $gni_LDFLAGS | sed -e 's/lugni/l:libugni.a/')
28168fi
28169
28170
28171pkg_failed=no
28172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS_LLI" >&5
28173$as_echo_n "checking for CRAY_ALPS_LLI... " >&6; }
28174
28175if test -n "$CRAY_ALPS_LLI_CFLAGS"; then
28176    pkg_cv_CRAY_ALPS_LLI_CFLAGS="$CRAY_ALPS_LLI_CFLAGS"
28177 elif test -n "$FI_PKG_CONFIG"; then
28178    if test -n "$FI_PKG_CONFIG" && \
28179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5
28180  ($FI_PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5
28181  ac_status=$?
28182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28183  test $ac_status = 0; }; then
28184  pkg_cv_CRAY_ALPS_LLI_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-alpslli" 2>/dev/null`
28185		      test "x$?" != "x0" && pkg_failed=yes
28186else
28187  pkg_failed=yes
28188fi
28189 else
28190    pkg_failed=untried
28191fi
28192if test -n "$CRAY_ALPS_LLI_LIBS"; then
28193    pkg_cv_CRAY_ALPS_LLI_LIBS="$CRAY_ALPS_LLI_LIBS"
28194 elif test -n "$FI_PKG_CONFIG"; then
28195    if test -n "$FI_PKG_CONFIG" && \
28196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5
28197  ($FI_PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5
28198  ac_status=$?
28199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200  test $ac_status = 0; }; then
28201  pkg_cv_CRAY_ALPS_LLI_LIBS=`$FI_PKG_CONFIG --libs "cray-alpslli" 2>/dev/null`
28202		      test "x$?" != "x0" && pkg_failed=yes
28203else
28204  pkg_failed=yes
28205fi
28206 else
28207    pkg_failed=untried
28208fi
28209if test -n "$CRAY_ALPS_LLI_STATIC_LIBS"; then
28210	pkg_cv_CRAY_ALPS_LLI_STATIC_LIBS="$CRAY_ALPS_LLI_STATIC_LIBS"
28211elif test -n "$FI_PKG_CONFIG"; then
28212	if test -n "$FI_PKG_CONFIG" && \
28213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-alpslli\""; } >&5
28214  ($FI_PKG_CONFIG --exists --print-errors "cray-alpslli") 2>&5
28215  ac_status=$?
28216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217  test $ac_status = 0; }; then
28218  pkg_cv_CRAY_ALPS_LLI_STATIC_LIBS=`$FI_PKG_CONFIG --libs --static "cray-alpslli" 2>/dev/null`
28219		test "x$?" != "x0" && pkg_failed=yes
28220else
28221  pkg_failed=yes
28222fi
28223else
28224	pkg_failed=untried
28225fi
28226
28227
28228
28229if test $pkg_failed = yes; then
28230	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28231$as_echo "no" >&6; }
28232
28233if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28234        _pkg_short_errors_supported=yes
28235else
28236        _pkg_short_errors_supported=no
28237fi
28238	if test $_pkg_short_errors_supported = yes; then
28239		CRAY_ALPS_LLI_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpslli" 2>&1`
28240	else
28241		CRAY_ALPS_LLI_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-alpslli" 2>&1`
28242	fi
28243	# Put the nasty error message in config.log where it belongs
28244	echo "$CRAY_ALPS_LLI_PKG_ERRORS" >&5
28245
28246	alps_lli_happy=0
28247elif test $pkg_failed = untried; then
28248	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28249$as_echo "no" >&6; }
28250	alps_lli_happy=0
28251else
28252	CRAY_ALPS_LLI_CFLAGS=$pkg_cv_CRAY_ALPS_LLI_CFLAGS
28253	CRAY_ALPS_LLI_LIBS=$pkg_cv_CRAY_ALPS_LLI_LIBS
28254	CRAY_ALPS_LLI_STATIC_LIBS=$pkg_cv_CRAY_ALPS_LLI_STATIC_LIBS
28255        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28256$as_echo "yes" >&6; }
28257	alps_lli_happy=1
28258                                  gni_CPPFLAGS="$CRAY_ALPS_LLI_CFLAGS $gni_CPPFLAGS"
28259                                  gni_LDFLAGS="$CRAY_ALPS_LLI_LIBS $gni_LDFLAGS"
28260
28261fi
28262
28263pkg_failed=no
28264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_ALPS_UTIL" >&5
28265$as_echo_n "checking for CRAY_ALPS_UTIL... " >&6; }
28266
28267if test -n "$CRAY_ALPS_UTIL_CFLAGS"; then
28268    pkg_cv_CRAY_ALPS_UTIL_CFLAGS="$CRAY_ALPS_UTIL_CFLAGS"
28269 elif test -n "$FI_PKG_CONFIG"; then
28270    if test -n "$FI_PKG_CONFIG" && \
28271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5
28272  ($FI_PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5
28273  ac_status=$?
28274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28275  test $ac_status = 0; }; then
28276  pkg_cv_CRAY_ALPS_UTIL_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-alpsutil" 2>/dev/null`
28277		      test "x$?" != "x0" && pkg_failed=yes
28278else
28279  pkg_failed=yes
28280fi
28281 else
28282    pkg_failed=untried
28283fi
28284if test -n "$CRAY_ALPS_UTIL_LIBS"; then
28285    pkg_cv_CRAY_ALPS_UTIL_LIBS="$CRAY_ALPS_UTIL_LIBS"
28286 elif test -n "$FI_PKG_CONFIG"; then
28287    if test -n "$FI_PKG_CONFIG" && \
28288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-alpsutil\""; } >&5
28289  ($FI_PKG_CONFIG --exists --print-errors "cray-alpsutil") 2>&5
28290  ac_status=$?
28291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28292  test $ac_status = 0; }; then
28293  pkg_cv_CRAY_ALPS_UTIL_LIBS=`$FI_PKG_CONFIG --libs "cray-alpsutil" 2>/dev/null`
28294		      test "x$?" != "x0" && pkg_failed=yes
28295else
28296  pkg_failed=yes
28297fi
28298 else
28299    pkg_failed=untried
28300fi
28301
28302
28303
28304if test $pkg_failed = yes; then
28305   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28306$as_echo "no" >&6; }
28307
28308if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28309        _pkg_short_errors_supported=yes
28310else
28311        _pkg_short_errors_supported=no
28312fi
28313        if test $_pkg_short_errors_supported = yes; then
28314	        CRAY_ALPS_UTIL_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-alpsutil" 2>&1`
28315        else
28316	        CRAY_ALPS_UTIL_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-alpsutil" 2>&1`
28317        fi
28318	# Put the nasty error message in config.log where it belongs
28319	echo "$CRAY_ALPS_UTIL_PKG_ERRORS" >&5
28320
28321	alps_util_happy=0
28322elif test $pkg_failed = untried; then
28323     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28324$as_echo "no" >&6; }
28325	alps_util_happy=0
28326else
28327	CRAY_ALPS_UTIL_CFLAGS=$pkg_cv_CRAY_ALPS_UTIL_CFLAGS
28328	CRAY_ALPS_UTIL_LIBS=$pkg_cv_CRAY_ALPS_UTIL_LIBS
28329        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28330$as_echo "yes" >&6; }
28331	alps_util_happy=1
28332                                  gni_CPPFLAGS="$CRAY_ALPS_UTIL_CFLAGS $gni_CPPFLAGS"
28333                                  gni_LDFLAGS="$CRAY_ALPS_UTIL_LIBS $gni_LDFLAGS"
28334
28335fi
28336
28337pkg_failed=no
28338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_UDREG" >&5
28339$as_echo_n "checking for CRAY_UDREG... " >&6; }
28340
28341if test -n "$CRAY_UDREG_CFLAGS"; then
28342    pkg_cv_CRAY_UDREG_CFLAGS="$CRAY_UDREG_CFLAGS"
28343 elif test -n "$FI_PKG_CONFIG"; then
28344    if test -n "$FI_PKG_CONFIG" && \
28345    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-udreg\""; } >&5
28346  ($FI_PKG_CONFIG --exists --print-errors "cray-udreg") 2>&5
28347  ac_status=$?
28348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349  test $ac_status = 0; }; then
28350  pkg_cv_CRAY_UDREG_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-udreg" 2>/dev/null`
28351		      test "x$?" != "x0" && pkg_failed=yes
28352else
28353  pkg_failed=yes
28354fi
28355 else
28356    pkg_failed=untried
28357fi
28358if test -n "$CRAY_UDREG_LIBS"; then
28359    pkg_cv_CRAY_UDREG_LIBS="$CRAY_UDREG_LIBS"
28360 elif test -n "$FI_PKG_CONFIG"; then
28361    if test -n "$FI_PKG_CONFIG" && \
28362    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-udreg\""; } >&5
28363  ($FI_PKG_CONFIG --exists --print-errors "cray-udreg") 2>&5
28364  ac_status=$?
28365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28366  test $ac_status = 0; }; then
28367  pkg_cv_CRAY_UDREG_LIBS=`$FI_PKG_CONFIG --libs "cray-udreg" 2>/dev/null`
28368		      test "x$?" != "x0" && pkg_failed=yes
28369else
28370  pkg_failed=yes
28371fi
28372 else
28373    pkg_failed=untried
28374fi
28375
28376
28377
28378if test $pkg_failed = yes; then
28379   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28380$as_echo "no" >&6; }
28381
28382if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28383        _pkg_short_errors_supported=yes
28384else
28385        _pkg_short_errors_supported=no
28386fi
28387        if test $_pkg_short_errors_supported = yes; then
28388	        CRAY_UDREG_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-udreg" 2>&1`
28389        else
28390	        CRAY_UDREG_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-udreg" 2>&1`
28391        fi
28392	# Put the nasty error message in config.log where it belongs
28393	echo "$CRAY_UDREG_PKG_ERRORS" >&5
28394
28395	udreg_lib_happy=0
28396elif test $pkg_failed = untried; then
28397     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28398$as_echo "no" >&6; }
28399	udreg_lib_happy=0
28400else
28401	CRAY_UDREG_CFLAGS=$pkg_cv_CRAY_UDREG_CFLAGS
28402	CRAY_UDREG_LIBS=$pkg_cv_CRAY_UDREG_LIBS
28403        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28404$as_echo "yes" >&6; }
28405	udreg_lib_happy=1
28406                                  gni_CPPFLAGS="-DHAVE_UDREG $CRAY_UDREG_CFLAGS $gni_CPPFLAGS"
28407                                  gni_LDFLAGS="$CRAY_UDREG_LIBS $gni_LDFLAGS"
28408
28409fi
28410               if test x"$enable_xpmem" != x"no"; then :
28411
28412pkg_failed=no
28413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_XPMEM" >&5
28414$as_echo_n "checking for CRAY_XPMEM... " >&6; }
28415
28416if test -n "$CRAY_XPMEM_CFLAGS"; then
28417    pkg_cv_CRAY_XPMEM_CFLAGS="$CRAY_XPMEM_CFLAGS"
28418 elif test -n "$FI_PKG_CONFIG"; then
28419    if test -n "$FI_PKG_CONFIG" && \
28420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-xpmem\""; } >&5
28421  ($FI_PKG_CONFIG --exists --print-errors "cray-xpmem") 2>&5
28422  ac_status=$?
28423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28424  test $ac_status = 0; }; then
28425  pkg_cv_CRAY_XPMEM_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-xpmem" 2>/dev/null`
28426		      test "x$?" != "x0" && pkg_failed=yes
28427else
28428  pkg_failed=yes
28429fi
28430 else
28431    pkg_failed=untried
28432fi
28433if test -n "$CRAY_XPMEM_LIBS"; then
28434    pkg_cv_CRAY_XPMEM_LIBS="$CRAY_XPMEM_LIBS"
28435 elif test -n "$FI_PKG_CONFIG"; then
28436    if test -n "$FI_PKG_CONFIG" && \
28437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-xpmem\""; } >&5
28438  ($FI_PKG_CONFIG --exists --print-errors "cray-xpmem") 2>&5
28439  ac_status=$?
28440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28441  test $ac_status = 0; }; then
28442  pkg_cv_CRAY_XPMEM_LIBS=`$FI_PKG_CONFIG --libs "cray-xpmem" 2>/dev/null`
28443		      test "x$?" != "x0" && pkg_failed=yes
28444else
28445  pkg_failed=yes
28446fi
28447 else
28448    pkg_failed=untried
28449fi
28450
28451
28452
28453if test $pkg_failed = yes; then
28454   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28455$as_echo "no" >&6; }
28456
28457if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28458        _pkg_short_errors_supported=yes
28459else
28460        _pkg_short_errors_supported=no
28461fi
28462        if test $_pkg_short_errors_supported = yes; then
28463	        CRAY_XPMEM_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-xpmem" 2>&1`
28464        else
28465	        CRAY_XPMEM_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-xpmem" 2>&1`
28466        fi
28467	# Put the nasty error message in config.log where it belongs
28468	echo "$CRAY_XPMEM_PKG_ERRORS" >&5
28469
28470	xpmem_happy=0
28471elif test $pkg_failed = untried; then
28472     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28473$as_echo "no" >&6; }
28474	xpmem_happy=0
28475else
28476	CRAY_XPMEM_CFLAGS=$pkg_cv_CRAY_XPMEM_CFLAGS
28477	CRAY_XPMEM_LIBS=$pkg_cv_CRAY_XPMEM_LIBS
28478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28479$as_echo "yes" >&6; }
28480
28481cat >>confdefs.h <<_ACEOF
28482#define HAVE_XPMEM 1
28483_ACEOF
28484
28485                                  gni_CPPFLAGS="$CRAY_XPMEM_CFLAGS $gni_CPPFLAGS"
28486                                  gni_LDFLAGS="$CRAY_XPMEM_LIBS $gni_LDFLAGS"
28487
28488fi
28489
28490else
28491
28492cat >>confdefs.h <<_ACEOF
28493#define HAVE_XPMEM 0
28494_ACEOF
28495
28496
28497fi
28498
28499               gni_path_to_gni_pub=${CRAY_GNI_HEADERS_INCLUDE_OPTS:2}/gni_pub.h
28500
28501               ac_fn_c_check_type "$LINENO" "gni_ct_cqw_post_descriptor_t" "ac_cv_type_gni_ct_cqw_post_descriptor_t" "#include \"$gni_path_to_gni_pub\"
28502"
28503if test "x$ac_cv_type_gni_ct_cqw_post_descriptor_t" = xyes; then :
28504
28505cat >>confdefs.h <<_ACEOF
28506#define HAVE_GNI_CT_CQW_POST_DESCRIPTOR_T 1
28507_ACEOF
28508
28509
28510else
28511  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNI provider requires CLE 5.2.UP04 or higher. Disabling gni provider." >&5
28512$as_echo "$as_me: WARNING: GNI provider requires CLE 5.2.UP04 or higher. Disabling gni provider." >&2;}
28513                               gni_header_happy=0
28514
28515fi
28516
28517
28518               if test -d $srcdir/prov/gni/test; then :
28519
28520# Check whether --with-criterion was given.
28521if test "${with_criterion+set}" = set; then :
28522  withval=$with_criterion;
28523fi
28524
28525else
28526  criterion_tests_present=false
28527fi
28528
28529               if test "$with_criterion" != "" && test "$with_criterion" != "no"; then
28530	             if test "$enable_direct" != "" && test "$enable_direct" != "no"; then
28531		     	gnitest_CPPFLAGS="-I$srcdir/prov/gni/include"
28532		     fi
28533
28534                     if test "$criterion_tests_present" = "true"; then :
28535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking criterion path" >&5
28536$as_echo_n "checking criterion path... " >&6; }
28537                            if test -d "$with_criterion"; then
28538                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28539$as_echo "yes" >&6; }
28540                                gnitest_CPPFLAGS="-I$with_criterion/include -DHAVE_UDREG $CRAY_UDREG_CFLAGS $gnitest_CPPFLAGS"
28541                                gnitest_LIBS="-lcriterion -ludreg  $gnitest_LIBS"
28542
28543                                if test -d "$with_criterion/lib"; then
28544                                        gnitest_LDFLAGS="$CRAY_ALPS_LLI_STATIC_LIBS -L$with_criterion/lib -Wl,-rpath=$with_criterion/lib $gnitest_LDFLAGS"
28545                                        have_criterion=true
28546                                elif test -d "$with_criterion/lib64"; then
28547                                        gnitest_LDFLAGS="$CRAY_ALPS_LLI_STATIC_LIBS -L$with_criterion/lib64 -Wl,-rpath=$with_criterion/lib64 $gnitest_LDFLAGS"
28548                                        have_criterion=true
28549                                else
28550                                        have_criterion=false
28551                                fi
28552
28553                                gnitest_LDFLAGS="$CRAY_UDREG_LIBS $gnitest_LDFLAGS"
28554
28555pkg_failed=no
28556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_PMI" >&5
28557$as_echo_n "checking for CRAY_PMI... " >&6; }
28558
28559if test -n "$CRAY_PMI_CFLAGS"; then
28560    pkg_cv_CRAY_PMI_CFLAGS="$CRAY_PMI_CFLAGS"
28561 elif test -n "$FI_PKG_CONFIG"; then
28562    if test -n "$FI_PKG_CONFIG" && \
28563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-pmi\""; } >&5
28564  ($FI_PKG_CONFIG --exists --print-errors "cray-pmi") 2>&5
28565  ac_status=$?
28566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28567  test $ac_status = 0; }; then
28568  pkg_cv_CRAY_PMI_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-pmi" 2>/dev/null`
28569		      test "x$?" != "x0" && pkg_failed=yes
28570else
28571  pkg_failed=yes
28572fi
28573 else
28574    pkg_failed=untried
28575fi
28576if test -n "$CRAY_PMI_LIBS"; then
28577    pkg_cv_CRAY_PMI_LIBS="$CRAY_PMI_LIBS"
28578 elif test -n "$FI_PKG_CONFIG"; then
28579    if test -n "$FI_PKG_CONFIG" && \
28580    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-pmi\""; } >&5
28581  ($FI_PKG_CONFIG --exists --print-errors "cray-pmi") 2>&5
28582  ac_status=$?
28583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28584  test $ac_status = 0; }; then
28585  pkg_cv_CRAY_PMI_LIBS=`$FI_PKG_CONFIG --libs "cray-pmi" 2>/dev/null`
28586		      test "x$?" != "x0" && pkg_failed=yes
28587else
28588  pkg_failed=yes
28589fi
28590 else
28591    pkg_failed=untried
28592fi
28593
28594
28595
28596if test $pkg_failed = yes; then
28597   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598$as_echo "no" >&6; }
28599
28600if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28601        _pkg_short_errors_supported=yes
28602else
28603        _pkg_short_errors_supported=no
28604fi
28605        if test $_pkg_short_errors_supported = yes; then
28606	        CRAY_PMI_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-pmi" 2>&1`
28607        else
28608	        CRAY_PMI_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-pmi" 2>&1`
28609        fi
28610	# Put the nasty error message in config.log where it belongs
28611	echo "$CRAY_PMI_PKG_ERRORS" >&5
28612
28613	have_criterion=false
28614elif test $pkg_failed = untried; then
28615     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28616$as_echo "no" >&6; }
28617	have_criterion=false
28618else
28619	CRAY_PMI_CFLAGS=$pkg_cv_CRAY_PMI_CFLAGS
28620	CRAY_PMI_LIBS=$pkg_cv_CRAY_PMI_LIBS
28621        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622$as_echo "yes" >&6; }
28623
28624fi
28625                            else
28626                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627$as_echo "no" >&6; }
28628                                as_fn_error $? "criterion requested but invalid path given" "$LINENO" 5
28629                            fi
28630else
28631  as_fn_error $? "criterion requested tests not available" "$LINENO" 5
28632fi
28633               fi
28634
28635               ac_fn_c_check_decl "$LINENO" "HAVE_ATOMICS" "ac_cv_have_decl_HAVE_ATOMICS" "$ac_includes_default"
28636if test "x$ac_cv_have_decl_HAVE_ATOMICS" = xyes; then :
28637
28638else
28639  cc_version=`$CC --version | head -n1`
28640                              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$cc_version\" doesn't support native atomics.  Disabling GNI provider." >&5
28641$as_echo "$as_me: WARNING: \"$cc_version\" doesn't support native atomics.  Disabling GNI provider." >&2;}
28642                              ugni_lib_happy=0
28643fi
28644
28645
28646
28647
28648
28649
28650# Check whether --with-kdreg was given.
28651if test "${with_kdreg+set}" = set; then :
28652  withval=$with_kdreg;
28653fi
28654
28655
28656                if test "$with_kdreg" != "" && test "$with_kdreg" != "no"; then :
28657  gni_CPPFLAGS="-I$with_kdreg/include $gni_CPPFLAGS"
28658                       gnitest_CPPFLAGS="-I$with_kdreg/include $gnitest_CPPFLAGS"
28659                       kdreg_happy=1
28660else
28661  if test "$with_kdreg" != "no"; then :
28662
28663pkg_failed=no
28664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRAY_KDREG" >&5
28665$as_echo_n "checking for CRAY_KDREG... " >&6; }
28666
28667if test -n "$CRAY_KDREG_CFLAGS"; then
28668    pkg_cv_CRAY_KDREG_CFLAGS="$CRAY_KDREG_CFLAGS"
28669 elif test -n "$FI_PKG_CONFIG"; then
28670    if test -n "$FI_PKG_CONFIG" && \
28671    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-kdreg\""; } >&5
28672  ($FI_PKG_CONFIG --exists --print-errors "cray-kdreg") 2>&5
28673  ac_status=$?
28674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28675  test $ac_status = 0; }; then
28676  pkg_cv_CRAY_KDREG_CFLAGS=`$FI_PKG_CONFIG --cflags "cray-kdreg" 2>/dev/null`
28677		      test "x$?" != "x0" && pkg_failed=yes
28678else
28679  pkg_failed=yes
28680fi
28681 else
28682    pkg_failed=untried
28683fi
28684if test -n "$CRAY_KDREG_LIBS"; then
28685    pkg_cv_CRAY_KDREG_LIBS="$CRAY_KDREG_LIBS"
28686 elif test -n "$FI_PKG_CONFIG"; then
28687    if test -n "$FI_PKG_CONFIG" && \
28688    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$FI_PKG_CONFIG --exists --print-errors \"cray-kdreg\""; } >&5
28689  ($FI_PKG_CONFIG --exists --print-errors "cray-kdreg") 2>&5
28690  ac_status=$?
28691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28692  test $ac_status = 0; }; then
28693  pkg_cv_CRAY_KDREG_LIBS=`$FI_PKG_CONFIG --libs "cray-kdreg" 2>/dev/null`
28694		      test "x$?" != "x0" && pkg_failed=yes
28695else
28696  pkg_failed=yes
28697fi
28698 else
28699    pkg_failed=untried
28700fi
28701
28702
28703
28704if test $pkg_failed = yes; then
28705   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28706$as_echo "no" >&6; }
28707
28708if $FI_PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28709        _pkg_short_errors_supported=yes
28710else
28711        _pkg_short_errors_supported=no
28712fi
28713        if test $_pkg_short_errors_supported = yes; then
28714	        CRAY_KDREG_PKG_ERRORS=`$FI_PKG_CONFIG --short-errors --print-errors --cflags --libs "cray-kdreg" 2>&1`
28715        else
28716	        CRAY_KDREG_PKG_ERRORS=`$FI_PKG_CONFIG --print-errors --cflags --libs "cray-kdreg" 2>&1`
28717        fi
28718	# Put the nasty error message in config.log where it belongs
28719	echo "$CRAY_KDREG_PKG_ERRORS" >&5
28720
28721	kdreg_happy=0
28722elif test $pkg_failed = untried; then
28723     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28724$as_echo "no" >&6; }
28725	kdreg_happy=0
28726else
28727	CRAY_KDREG_CFLAGS=$pkg_cv_CRAY_KDREG_CFLAGS
28728	CRAY_KDREG_LIBS=$pkg_cv_CRAY_KDREG_LIBS
28729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28730$as_echo "yes" >&6; }
28731	kdreg_happy=1
28732                                              gni_CPPFLAGS="$CRAY_KDREG_CFLAGS $gni_CPPFLAGS"
28733                                              gnitest_CPPFLAGS="$CRAY_KDREG_CFLAGS $gnitest_CPPFLAGS"
28734fi
28735fi
28736fi
28737
28738                if test "$kdreg_happy" = "1"; then :
28739  CPPFLAGS="$CPPFLAGS $gni_CPPFLAGS"
28740                       ac_fn_c_check_header_mongrel "$LINENO" "kdreg_pub.h" "ac_cv_header_kdreg_pub_h" "$ac_includes_default"
28741if test "x$ac_cv_header_kdreg_pub_h" = xyes; then :
28742
28743else
28744  kdreg_happy=0
28745fi
28746
28747
28748fi
28749
28750cat >>confdefs.h <<_ACEOF
28751#define HAVE_KDREG $kdreg_happy
28752_ACEOF
28753
28754
28755
28756fi
28757
28758
28759         if test "x$have_criterion" = "xtrue"; then
28760  HAVE_CRITERION_TRUE=
28761  HAVE_CRITERION_FALSE='#'
28762else
28763  HAVE_CRITERION_TRUE='#'
28764  HAVE_CRITERION_FALSE=
28765fi
28766
28767        if test "x$have_criterion" = "xtrue"; then :
28768
28769cat >>confdefs.h <<_ACEOF
28770#define HAVE_CRITERION 1
28771_ACEOF
28772
28773else
28774
28775cat >>confdefs.h <<_ACEOF
28776#define HAVE_CRITERION 0
28777_ACEOF
28778
28779fi
28780
28781
28782
28783
28784
28785
28786
28787        if test $gni_header_happy -eq 1 -a $ugni_lib_happy -eq 1 \
28788               -a $alps_lli_happy -eq 1 -a $alps_util_happy -eq 1 \
28789               -a $udreg_lib_happy -eq 1; then :
28790  gni_happy=1
28791else
28792  gni_happy=0
28793fi
28794
28795
28796
28797
28798
28799
28800
28801	# See if the provider configured successfully
28802	if test $gni_happy -eq 1; then :
28803  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD gni"
28804		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
28805
28806	 FI_PC_CFLAGS="$FI_PC_CFLAGS $gni_CFLAGS $gni_CPPFLAGS"
28807	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $gni_LDFLAGS $gni_LIBS"
28808
28809		 if test $gni_dl -eq 1; then :
28810  PROVIDERS_DL="prov/gni/libgni.la $PROVIDERS_DL"
28811			 if test x"$enable_static" = x"yes" &&
28812				test x"$enable_shared" = x"no"; then :
28813  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gni provider was selected to be built as DL" >&5
28814$as_echo "$as_me: WARNING: gni provider was selected to be built as DL" >&2;}
28815				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
28816$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
28817				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
28818fi
28819			 { $as_echo "$as_me:${as_lineno-$LINENO}: gni provider: build as plugin" >&5
28820$as_echo "$as_me: gni provider: build as plugin" >&6;}
28821
28822			 # See if this provider has a specfile that
28823			 # needs to be generated
28824
28825
28826else
28827  PROVIDERS_STATIC="prov/gni/libgni.la $PROVIDERS_STATIC"
28828			 { $as_echo "$as_me:${as_lineno-$LINENO}: gni provider: include in libfabric" >&5
28829$as_echo "$as_me: gni provider: include in libfabric" >&6;}
28830fi
28831
28832else
28833  { $as_echo "$as_me:${as_lineno-$LINENO}: gni provider: disabled" >&5
28834$as_echo "$as_me: gni provider: disabled" >&6;}
28835fi
28836
28837
28838cat >>confdefs.h <<_ACEOF
28839#define HAVE_GNI $gni_happy
28840_ACEOF
28841
28842
28843cat >>confdefs.h <<_ACEOF
28844#define HAVE_GNI_DL $gni_dl
28845_ACEOF
28846
28847
28848	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
28849	# as well as AC defines
28850	 if test $gni_happy -eq 1; then
28851  HAVE_GNI_TRUE=
28852  HAVE_GNI_FALSE='#'
28853else
28854  HAVE_GNI_TRUE='#'
28855  HAVE_GNI_FALSE=
28856fi
28857
28858	 if test $gni_dl -eq 1; then
28859  HAVE_GNI_DL_TRUE=
28860  HAVE_GNI_DL_FALSE='#'
28861else
28862  HAVE_GNI_DL_TRUE='#'
28863  HAVE_GNI_DL_FALSE=
28864fi
28865
28866
28867	# If this provider was specifically requested but we can't
28868	# build it, error.
28869	if test "$enable_gni $gni_happy" = "yes 0"; then :
28870  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gni provider was requested, but cannot be compiled" >&5
28871$as_echo "$as_me: WARNING: gni provider was requested, but cannot be compiled" >&2;}
28872	       as_fn_error $? "Cannot continue" "$LINENO" 5
28873
28874fi
28875	# If this provider was requested for direct build, ensure that
28876	# provider's fi_direct.h exists in tree. Error otherwise.
28877	if test x"$enable_direct" = x"gni"; then :
28878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/gni/include/rdma/fi_direct.h" >&5
28879$as_echo_n "checking for $srcdir/prov/gni/include/rdma/fi_direct.h... " >&6; }
28880		 if test -f "$srcdir/prov/gni/include/rdma/fi_direct.h"; then :
28881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28882$as_echo "yes" >&6; }
28883else
28884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28885$as_echo "no" >&6; }
28886			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/gni/include/rdma/fi_direct.h.in" >&5
28887$as_echo_n "checking for $srcdir/prov/gni/include/rdma/fi_direct.h.in... " >&6; }
28888			 if test -f "$srcdir/prov/gni/include/rdma/fi_direct.h.in"; then :
28889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28890$as_echo "yes" >&6; }
28891else
28892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28893$as_echo "no" >&6; }
28894				 as_fn_error $? "gni provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
28895
28896fi
28897fi
28898fi
28899
28900	 if test -f "$srcdir/prov/gni/include/rdma/fi_direct.h.in"; then
28901  FI_DIRECT_H_IN_TRUE=
28902  FI_DIRECT_H_IN_FALSE='#'
28903else
28904  FI_DIRECT_H_IN_TRUE='#'
28905  FI_DIRECT_H_IN_FALSE=
28906fi
28907
28908
28909
28910	# Restore CPPFLAGS/LDFLAGS/LIBS
28911	CPPFLAGS=$gni_orig_CPPFLAGS
28912	unset gni_orig_CPPFLAGS
28913	LDFLAGS=$gni_orig_LDFLAGS
28914	unset gni_orig_LDFLAGS
28915	LIBS=$gni_orig_LIBS
28916	unset gni_orig_LIBS
28917
28918
28919
28920	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"udp"; then :
28921  enable_udp=no
28922               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping udp provider because $enable_direct direct requested" >&5
28923$as_echo "$as_me: *** Skipping udp provider because $enable_direct direct requested" >&6;}
28924else
28925  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring udp provider" >&5
28926$as_echo "$as_me: *** Configuring udp provider" >&6;}
28927	       # Check whether --enable-udp was given.
28928if test "${enable_udp+set}" = set; then :
28929  enableval=$enable_udp;
28930else
28931  enable_udp=auto
28932fi
28933
28934fi
28935
28936	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
28937	# Provider's local macros could use the value if needed.
28938	# Also save LIBS, as a matter of principle.
28939	udp_orig_CPPFLAGS=$CPPFLAGS
28940	udp_orig_LDFLAGS=$LDFLAGS
28941	udp_orig_LIBS=$LIBS
28942
28943	# Check the --enable-<udp> value
28944	udp_dl=0
28945	case $enable_udp in #(
28946  yes|no) :
28947     ;; #(
28948  dl) :
28949    enable_udp=yes udp_dl=1 ;; #(
28950  auto) :
28951     ;; #(
28952  dl:*) :
28953
28954	# Check that the base directory exists
28955	if test ! -d "${enable_udp:3}"; then :
28956  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_udp:3}\" does not exist" >&5
28957$as_echo "$as_me: WARNING: supplied directory \"${enable_udp:3}\" does not exist" >&2;}
28958	        as_fn_error $? "Cannot continue" "$LINENO" 5
28959
28960fi
28961
28962	# Check that base/include exists
28963	 if test -d "${enable_udp:3}/include"; then :
28964  udp_PREFIX="${enable_udp:3}"
28965else
28966  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_udp:3}\" directory\"" >&5
28967$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_udp:3}\" directory\"" >&2;}
28968	        as_fn_error $? "Cannot continue" "$LINENO" 5
28969
28970fi
28971
28972	# Check that base/lib or base/lib64 exists
28973	 if test -d "${enable_udp:3}/lib64"; then :
28974  udp_LIBDIR="${enable_udp:3}/lib64"
28975else
28976  if test -d "${enable_udp:3}/lib"; then :
28977  udp_LIBDIR="${enable_udp:3}/lib"
28978else
28979  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_udp:3}\" directory\"" >&5
28980$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_udp:3}\" directory\"" >&2;}
28981		       as_fn_error $? "Cannot continue" "$LINENO" 5
28982
28983fi
28984
28985fi
28986
28987		   enable_udp=yes udp_dl=1 ;; #(
28988  *) :
28989
28990	# Check that the base directory exists
28991	if test ! -d "$enable_udp"; then :
28992  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_udp\" does not exist" >&5
28993$as_echo "$as_me: WARNING: supplied directory \"$enable_udp\" does not exist" >&2;}
28994	        as_fn_error $? "Cannot continue" "$LINENO" 5
28995
28996fi
28997
28998	# Check that base/include exists
28999	 if test -d "$enable_udp/include"; then :
29000  udp_PREFIX="$enable_udp"
29001else
29002  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_udp\" directory\"" >&5
29003$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_udp\" directory\"" >&2;}
29004	        as_fn_error $? "Cannot continue" "$LINENO" 5
29005
29006fi
29007
29008	# Check that base/lib or base/lib64 exists
29009	 if test -d "$enable_udp/lib64"; then :
29010  udp_LIBDIR="$enable_udp/lib64"
29011else
29012  if test -d "$enable_udp/lib"; then :
29013  udp_LIBDIR="$enable_udp/lib"
29014else
29015  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_udp\" directory\"" >&5
29016$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_udp\" directory\"" >&2;}
29017		       as_fn_error $? "Cannot continue" "$LINENO" 5
29018
29019fi
29020
29021fi
29022
29023	 enable_udp=yes
29024	 ;;
29025esac
29026
29027	# Call the provider's CONFIGURE and CONDITIONALS macros
29028
29029
29030
29031
29032
29033
29034
29035	# Determine if we can support the udp provider
29036	udp_h_happy=0
29037	udp_shm_happy=0
29038	if test x"$enable_udp" != x"no"; then :
29039  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29040if test "x$ac_cv_header_sys_socket_h" = xyes; then :
29041  udp_h_happy=1
29042else
29043  udp_h_happy=0
29044fi
29045
29046
29047
29048
29049	       # check if shm_open is already present
29050	       ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
29051if test "x$ac_cv_func_shm_open" = xyes; then :
29052  udp_shm_happy=1
29053else
29054  udp_shm_happy=0
29055fi
29056
29057
29058	       # look for shm_open in librt if not already present
29059	       if test $udp_shm_happy -eq 0; then :
29060
29061    fi_check_package_udp_shm_save_CPPFLAGS="$CPPFLAGS"
29062    fi_check_package_udp_shm_save_LDFLAGS="$LDFLAGS"
29063    fi_check_package_udp_shm_save_LIBS="$LIBS"
29064
29065    fi_check_package_udp_shm_orig_CPPFLAGS="$udp_shm_CPPFLAGS"
29066    fi_check_package_udp_shm_orig_LDFLAGS="$udp_shm_LDFLAGS"
29067    fi_check_package_udp_shm_orig_LIBS="$udp_shm_LIBS"
29068
29069
29070    # This is stolen from autoconf to peek under the covers to get the
29071    # cache variable for the library check.
29072
29073
29074    # There's unfortunately no way to get through the progression of
29075    # header includes without killing off the cache variable and
29076    # trying again...
29077    unset ac_cv_header_sys_mman_h
29078
29079    fi_check_package_header_happy="no"
29080    if test "" = "/usr" || test "" = "/usr/local"; then :
29081   # try as is...
29082            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
29083$as_echo "looking for header without includes" >&6; }
29084            for ac_header in sys/mman.h
29085do :
29086  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
29087if test "x$ac_cv_header_sys_mman_h" = xyes; then :
29088  cat >>confdefs.h <<_ACEOF
29089#define HAVE_SYS_MMAN_H 1
29090_ACEOF
29091 fi_check_package_header_happy="yes"
29092fi
29093
29094done
29095
29096            if test "$fi_check_package_header_happy" = "no"; then :
29097  # no go on the as is - reset the cache and try again
29098                   unset ac_cv_header_sys_mman_h
29099fi
29100fi
29101
29102    if test "$fi_check_package_header_happy" = "no"; then :
29103  if test "" != ""; then :
29104  udp_shm_CPPFLAGS="$udp_shm_CPPFLAGS -I/include"
29105                  CPPFLAGS="$CPPFLAGS -I/include"
29106fi
29107          for ac_header in sys/mman.h
29108do :
29109  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
29110if test "x$ac_cv_header_sys_mman_h" = xyes; then :
29111  cat >>confdefs.h <<_ACEOF
29112#define HAVE_SYS_MMAN_H 1
29113_ACEOF
29114 fi_check_package_header_happy="yes"
29115fi
29116
29117done
29118
29119          if test "$fi_check_package_header_happy" = "yes"; then :
29120
29121    # This is stolen from autoconf to peek under the covers to get the
29122    # cache variable for the library check.
29123
29124    # See comment above
29125    unset ac_cv_lib_rt_shm_open
29126    fi_check_package_lib_happy="no"
29127    if test "" != ""; then :
29128   # libdir was specified - search only there
29129           udp_shm_LDFLAGS="$udp_shm_LDFLAGS -L"
29130           LDFLAGS="$LDFLAGS -L"
29131           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29132$as_echo_n "checking for shm_open in -lrt... " >&6; }
29133if ${ac_cv_lib_rt_shm_open+:} false; then :
29134  $as_echo_n "(cached) " >&6
29135else
29136  ac_check_lib_save_LIBS=$LIBS
29137LIBS="-lrt  $LIBS"
29138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29139/* end confdefs.h.  */
29140
29141/* Override any GCC internal prototype to avoid an error.
29142   Use char because int might match the return type of a GCC
29143   builtin and then its argument prototype would still apply.  */
29144#ifdef __cplusplus
29145extern "C"
29146#endif
29147char shm_open ();
29148int
29149main ()
29150{
29151return shm_open ();
29152  ;
29153  return 0;
29154}
29155_ACEOF
29156if ac_fn_c_try_link "$LINENO"; then :
29157  ac_cv_lib_rt_shm_open=yes
29158else
29159  ac_cv_lib_rt_shm_open=no
29160fi
29161rm -f core conftest.err conftest.$ac_objext \
29162    conftest$ac_exeext conftest.$ac_ext
29163LIBS=$ac_check_lib_save_LIBS
29164fi
29165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29166$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29167if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29168  fi_check_package_lib_happy="yes"
29169else
29170  fi_check_package_lib_happy="no"
29171fi
29172
29173           if test "$fi_check_package_lib_happy" = "no"; then :
29174  LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29175                  udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29176                  unset ac_cv_lib_rt_shm_open
29177fi
29178else
29179   # libdir was not specified - go through search path
29180           fi_check_package_libdir=""
29181           if test "$fi_check_package_libdir" = "" || \
29182                  test "$fi_check_package_libdir" = "/usr" || \
29183                  test "$fi_check_package_libdir" = "/usr/local"; then :
29184   # try as is...
29185                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
29186$as_echo "looking for library without search path" >&6; }
29187                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29188$as_echo_n "checking for shm_open in -lrt... " >&6; }
29189if ${ac_cv_lib_rt_shm_open+:} false; then :
29190  $as_echo_n "(cached) " >&6
29191else
29192  ac_check_lib_save_LIBS=$LIBS
29193LIBS="-lrt  $LIBS"
29194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195/* end confdefs.h.  */
29196
29197/* Override any GCC internal prototype to avoid an error.
29198   Use char because int might match the return type of a GCC
29199   builtin and then its argument prototype would still apply.  */
29200#ifdef __cplusplus
29201extern "C"
29202#endif
29203char shm_open ();
29204int
29205main ()
29206{
29207return shm_open ();
29208  ;
29209  return 0;
29210}
29211_ACEOF
29212if ac_fn_c_try_link "$LINENO"; then :
29213  ac_cv_lib_rt_shm_open=yes
29214else
29215  ac_cv_lib_rt_shm_open=no
29216fi
29217rm -f core conftest.err conftest.$ac_objext \
29218    conftest$ac_exeext conftest.$ac_ext
29219LIBS=$ac_check_lib_save_LIBS
29220fi
29221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29222$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29223if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29224  fi_check_package_lib_happy="yes"
29225else
29226  fi_check_package_lib_happy="no"
29227fi
29228
29229                if test "$fi_check_package_lib_happy" = "no"; then :
29230   # no go on the as is..  see what happens later...
29231                     LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29232                     udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29233                     unset ac_cv_lib_rt_shm_open
29234fi
29235fi
29236
29237           if test "$fi_check_package_lib_happy" = "no"; then :
29238  if test "$fi_check_package_libdir" != ""; then :
29239  udp_shm_LDFLAGS="$udp_shm_LDFLAGS -L$fi_check_package_libdir/lib64"
29240                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
29241                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
29242$as_echo "looking for library in lib64" >&6; }
29243                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29244$as_echo_n "checking for shm_open in -lrt... " >&6; }
29245if ${ac_cv_lib_rt_shm_open+:} false; then :
29246  $as_echo_n "(cached) " >&6
29247else
29248  ac_check_lib_save_LIBS=$LIBS
29249LIBS="-lrt  $LIBS"
29250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29251/* end confdefs.h.  */
29252
29253/* Override any GCC internal prototype to avoid an error.
29254   Use char because int might match the return type of a GCC
29255   builtin and then its argument prototype would still apply.  */
29256#ifdef __cplusplus
29257extern "C"
29258#endif
29259char shm_open ();
29260int
29261main ()
29262{
29263return shm_open ();
29264  ;
29265  return 0;
29266}
29267_ACEOF
29268if ac_fn_c_try_link "$LINENO"; then :
29269  ac_cv_lib_rt_shm_open=yes
29270else
29271  ac_cv_lib_rt_shm_open=no
29272fi
29273rm -f core conftest.err conftest.$ac_objext \
29274    conftest$ac_exeext conftest.$ac_ext
29275LIBS=$ac_check_lib_save_LIBS
29276fi
29277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29278$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29279if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29280  fi_check_package_lib_happy="yes"
29281else
29282  fi_check_package_lib_happy="no"
29283fi
29284
29285                     if test "$fi_check_package_lib_happy" = "no"; then :
29286   # no go on the as is..  see what happens later...
29287                          LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29288                          udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29289                          unset ac_cv_lib_rt_shm_open
29290fi
29291fi
29292fi
29293
29294           if test "$fi_check_package_lib_happy" = "no"; then :
29295  if test "$fi_check_package_libdir" != ""; then :
29296  udp_shm_LDFLAGS="$udp_shm_LDFLAGS -L$fi_check_package_libdir/lib"
29297                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
29298                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
29299$as_echo "looking for library in lib" >&6; }
29300                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29301$as_echo_n "checking for shm_open in -lrt... " >&6; }
29302if ${ac_cv_lib_rt_shm_open+:} false; then :
29303  $as_echo_n "(cached) " >&6
29304else
29305  ac_check_lib_save_LIBS=$LIBS
29306LIBS="-lrt  $LIBS"
29307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29308/* end confdefs.h.  */
29309
29310/* Override any GCC internal prototype to avoid an error.
29311   Use char because int might match the return type of a GCC
29312   builtin and then its argument prototype would still apply.  */
29313#ifdef __cplusplus
29314extern "C"
29315#endif
29316char shm_open ();
29317int
29318main ()
29319{
29320return shm_open ();
29321  ;
29322  return 0;
29323}
29324_ACEOF
29325if ac_fn_c_try_link "$LINENO"; then :
29326  ac_cv_lib_rt_shm_open=yes
29327else
29328  ac_cv_lib_rt_shm_open=no
29329fi
29330rm -f core conftest.err conftest.$ac_objext \
29331    conftest$ac_exeext conftest.$ac_ext
29332LIBS=$ac_check_lib_save_LIBS
29333fi
29334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29335$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29336if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29337  fi_check_package_lib_happy="yes"
29338else
29339  fi_check_package_lib_happy="no"
29340fi
29341
29342                     if test "$fi_check_package_lib_happy" = "no"; then :
29343   # no go on the as is..  see what happens later...
29344                          LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29345                          udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29346                          unset ac_cv_lib_rt_shm_open
29347fi
29348fi
29349fi
29350fi
29351
29352    if test "$fi_check_package_lib_happy" = "yes"; then :
29353  udp_shm_LIBS="-lrt "
29354           fi_check_package_happy="yes"
29355else
29356  fi_check_package_happy="no"
29357fi
29358
29359
29360else
29361  fi_check_package_happy="no"
29362fi
29363else
29364
29365    # This is stolen from autoconf to peek under the covers to get the
29366    # cache variable for the library check.
29367
29368    # See comment above
29369    unset ac_cv_lib_rt_shm_open
29370    fi_check_package_lib_happy="no"
29371    if test "" != ""; then :
29372   # libdir was specified - search only there
29373           udp_shm_LDFLAGS="$udp_shm_LDFLAGS -L"
29374           LDFLAGS="$LDFLAGS -L"
29375           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29376$as_echo_n "checking for shm_open in -lrt... " >&6; }
29377if ${ac_cv_lib_rt_shm_open+:} false; then :
29378  $as_echo_n "(cached) " >&6
29379else
29380  ac_check_lib_save_LIBS=$LIBS
29381LIBS="-lrt  $LIBS"
29382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29383/* end confdefs.h.  */
29384
29385/* Override any GCC internal prototype to avoid an error.
29386   Use char because int might match the return type of a GCC
29387   builtin and then its argument prototype would still apply.  */
29388#ifdef __cplusplus
29389extern "C"
29390#endif
29391char shm_open ();
29392int
29393main ()
29394{
29395return shm_open ();
29396  ;
29397  return 0;
29398}
29399_ACEOF
29400if ac_fn_c_try_link "$LINENO"; then :
29401  ac_cv_lib_rt_shm_open=yes
29402else
29403  ac_cv_lib_rt_shm_open=no
29404fi
29405rm -f core conftest.err conftest.$ac_objext \
29406    conftest$ac_exeext conftest.$ac_ext
29407LIBS=$ac_check_lib_save_LIBS
29408fi
29409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29410$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29411if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29412  fi_check_package_lib_happy="yes"
29413else
29414  fi_check_package_lib_happy="no"
29415fi
29416
29417           if test "$fi_check_package_lib_happy" = "no"; then :
29418  LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29419                  udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29420                  unset ac_cv_lib_rt_shm_open
29421fi
29422else
29423   # libdir was not specified - go through search path
29424           fi_check_package_libdir=""
29425           if test "$fi_check_package_libdir" = "" || \
29426                  test "$fi_check_package_libdir" = "/usr" || \
29427                  test "$fi_check_package_libdir" = "/usr/local"; then :
29428   # try as is...
29429                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
29430$as_echo "looking for library without search path" >&6; }
29431                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29432$as_echo_n "checking for shm_open in -lrt... " >&6; }
29433if ${ac_cv_lib_rt_shm_open+:} false; then :
29434  $as_echo_n "(cached) " >&6
29435else
29436  ac_check_lib_save_LIBS=$LIBS
29437LIBS="-lrt  $LIBS"
29438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29439/* end confdefs.h.  */
29440
29441/* Override any GCC internal prototype to avoid an error.
29442   Use char because int might match the return type of a GCC
29443   builtin and then its argument prototype would still apply.  */
29444#ifdef __cplusplus
29445extern "C"
29446#endif
29447char shm_open ();
29448int
29449main ()
29450{
29451return shm_open ();
29452  ;
29453  return 0;
29454}
29455_ACEOF
29456if ac_fn_c_try_link "$LINENO"; then :
29457  ac_cv_lib_rt_shm_open=yes
29458else
29459  ac_cv_lib_rt_shm_open=no
29460fi
29461rm -f core conftest.err conftest.$ac_objext \
29462    conftest$ac_exeext conftest.$ac_ext
29463LIBS=$ac_check_lib_save_LIBS
29464fi
29465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29466$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29467if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29468  fi_check_package_lib_happy="yes"
29469else
29470  fi_check_package_lib_happy="no"
29471fi
29472
29473                if test "$fi_check_package_lib_happy" = "no"; then :
29474   # no go on the as is..  see what happens later...
29475                     LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29476                     udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29477                     unset ac_cv_lib_rt_shm_open
29478fi
29479fi
29480
29481           if test "$fi_check_package_lib_happy" = "no"; then :
29482  if test "$fi_check_package_libdir" != ""; then :
29483  udp_shm_LDFLAGS="$udp_shm_LDFLAGS -L$fi_check_package_libdir/lib64"
29484                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
29485                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
29486$as_echo "looking for library in lib64" >&6; }
29487                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29488$as_echo_n "checking for shm_open in -lrt... " >&6; }
29489if ${ac_cv_lib_rt_shm_open+:} false; then :
29490  $as_echo_n "(cached) " >&6
29491else
29492  ac_check_lib_save_LIBS=$LIBS
29493LIBS="-lrt  $LIBS"
29494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29495/* end confdefs.h.  */
29496
29497/* Override any GCC internal prototype to avoid an error.
29498   Use char because int might match the return type of a GCC
29499   builtin and then its argument prototype would still apply.  */
29500#ifdef __cplusplus
29501extern "C"
29502#endif
29503char shm_open ();
29504int
29505main ()
29506{
29507return shm_open ();
29508  ;
29509  return 0;
29510}
29511_ACEOF
29512if ac_fn_c_try_link "$LINENO"; then :
29513  ac_cv_lib_rt_shm_open=yes
29514else
29515  ac_cv_lib_rt_shm_open=no
29516fi
29517rm -f core conftest.err conftest.$ac_objext \
29518    conftest$ac_exeext conftest.$ac_ext
29519LIBS=$ac_check_lib_save_LIBS
29520fi
29521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29522$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29523if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29524  fi_check_package_lib_happy="yes"
29525else
29526  fi_check_package_lib_happy="no"
29527fi
29528
29529                     if test "$fi_check_package_lib_happy" = "no"; then :
29530   # no go on the as is..  see what happens later...
29531                          LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29532                          udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29533                          unset ac_cv_lib_rt_shm_open
29534fi
29535fi
29536fi
29537
29538           if test "$fi_check_package_lib_happy" = "no"; then :
29539  if test "$fi_check_package_libdir" != ""; then :
29540  udp_shm_LDFLAGS="$udp_shm_LDFLAGS -L$fi_check_package_libdir/lib"
29541                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
29542                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
29543$as_echo "looking for library in lib" >&6; }
29544                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
29545$as_echo_n "checking for shm_open in -lrt... " >&6; }
29546if ${ac_cv_lib_rt_shm_open+:} false; then :
29547  $as_echo_n "(cached) " >&6
29548else
29549  ac_check_lib_save_LIBS=$LIBS
29550LIBS="-lrt  $LIBS"
29551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29552/* end confdefs.h.  */
29553
29554/* Override any GCC internal prototype to avoid an error.
29555   Use char because int might match the return type of a GCC
29556   builtin and then its argument prototype would still apply.  */
29557#ifdef __cplusplus
29558extern "C"
29559#endif
29560char shm_open ();
29561int
29562main ()
29563{
29564return shm_open ();
29565  ;
29566  return 0;
29567}
29568_ACEOF
29569if ac_fn_c_try_link "$LINENO"; then :
29570  ac_cv_lib_rt_shm_open=yes
29571else
29572  ac_cv_lib_rt_shm_open=no
29573fi
29574rm -f core conftest.err conftest.$ac_objext \
29575    conftest$ac_exeext conftest.$ac_ext
29576LIBS=$ac_check_lib_save_LIBS
29577fi
29578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
29579$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
29580if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
29581  fi_check_package_lib_happy="yes"
29582else
29583  fi_check_package_lib_happy="no"
29584fi
29585
29586                     if test "$fi_check_package_lib_happy" = "no"; then :
29587   # no go on the as is..  see what happens later...
29588                          LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29589                          udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29590                          unset ac_cv_lib_rt_shm_open
29591fi
29592fi
29593fi
29594fi
29595
29596    if test "$fi_check_package_lib_happy" = "yes"; then :
29597  udp_shm_LIBS="-lrt "
29598           fi_check_package_happy="yes"
29599else
29600  fi_check_package_happy="no"
29601fi
29602
29603
29604fi
29605    unset fi_check_package_header_happy
29606
29607
29608
29609    if test "$fi_check_package_happy" = "yes"; then :
29610  udp_shm_happy=1
29611else
29612  udp_shm_CPPFLAGS="$fi_check_package_udp_shm_orig_CPPFLAGS"
29613           udp_shm_LDFLAGS="$fi_check_package_udp_shm_orig_LDFLAGS"
29614           udp_shm_LIBS="$fi_check_package_udp_shm_orig_LIBS"
29615           udp_shm_happy=0
29616fi
29617
29618
29619
29620
29621
29622    CPPFLAGS="$fi_check_package_udp_shm_save_CPPFLAGS"
29623    LDFLAGS="$fi_check_package_udp_shm_save_LDFLAGS"
29624    LIBS="$fi_check_package_udp_shm_save_LIBS"
29625
29626fi
29627
29628fi
29629
29630	if test $udp_h_happy -eq 1 && \
29631	       test $udp_shm_happy -eq 1; then :
29632  udp_happy=1
29633else
29634  udp_happy=0
29635fi
29636
29637
29638
29639
29640
29641
29642
29643	# See if the provider configured successfully
29644	if test $udp_happy -eq 1; then :
29645  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD udp"
29646		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
29647
29648	 FI_PC_CFLAGS="$FI_PC_CFLAGS $udp_CFLAGS $udp_CPPFLAGS"
29649	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $udp_LDFLAGS $udp_LIBS"
29650
29651		 if test $udp_dl -eq 1; then :
29652  PROVIDERS_DL="prov/udp/libudp.la $PROVIDERS_DL"
29653			 if test x"$enable_static" = x"yes" &&
29654				test x"$enable_shared" = x"no"; then :
29655  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: udp provider was selected to be built as DL" >&5
29656$as_echo "$as_me: WARNING: udp provider was selected to be built as DL" >&2;}
29657				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
29658$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
29659				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
29660fi
29661			 { $as_echo "$as_me:${as_lineno-$LINENO}: udp provider: build as plugin" >&5
29662$as_echo "$as_me: udp provider: build as plugin" >&6;}
29663
29664			 # See if this provider has a specfile that
29665			 # needs to be generated
29666			 ac_config_files="$ac_config_files prov/udp/libfabric-udp.spec"
29667
29668
29669else
29670  PROVIDERS_STATIC="prov/udp/libudp.la $PROVIDERS_STATIC"
29671			 { $as_echo "$as_me:${as_lineno-$LINENO}: udp provider: include in libfabric" >&5
29672$as_echo "$as_me: udp provider: include in libfabric" >&6;}
29673fi
29674
29675else
29676  { $as_echo "$as_me:${as_lineno-$LINENO}: udp provider: disabled" >&5
29677$as_echo "$as_me: udp provider: disabled" >&6;}
29678fi
29679
29680
29681cat >>confdefs.h <<_ACEOF
29682#define HAVE_UDP $udp_happy
29683_ACEOF
29684
29685
29686cat >>confdefs.h <<_ACEOF
29687#define HAVE_UDP_DL $udp_dl
29688_ACEOF
29689
29690
29691	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
29692	# as well as AC defines
29693	 if test $udp_happy -eq 1; then
29694  HAVE_UDP_TRUE=
29695  HAVE_UDP_FALSE='#'
29696else
29697  HAVE_UDP_TRUE='#'
29698  HAVE_UDP_FALSE=
29699fi
29700
29701	 if test $udp_dl -eq 1; then
29702  HAVE_UDP_DL_TRUE=
29703  HAVE_UDP_DL_FALSE='#'
29704else
29705  HAVE_UDP_DL_TRUE='#'
29706  HAVE_UDP_DL_FALSE=
29707fi
29708
29709
29710	# If this provider was specifically requested but we can't
29711	# build it, error.
29712	if test "$enable_udp $udp_happy" = "yes 0"; then :
29713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: udp provider was requested, but cannot be compiled" >&5
29714$as_echo "$as_me: WARNING: udp provider was requested, but cannot be compiled" >&2;}
29715	       as_fn_error $? "Cannot continue" "$LINENO" 5
29716
29717fi
29718	# If this provider was requested for direct build, ensure that
29719	# provider's fi_direct.h exists in tree. Error otherwise.
29720	if test x"$enable_direct" = x"udp"; then :
29721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/udp/include/rdma/fi_direct.h" >&5
29722$as_echo_n "checking for $srcdir/prov/udp/include/rdma/fi_direct.h... " >&6; }
29723		 if test -f "$srcdir/prov/udp/include/rdma/fi_direct.h"; then :
29724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29725$as_echo "yes" >&6; }
29726else
29727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29728$as_echo "no" >&6; }
29729			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/udp/include/rdma/fi_direct.h.in" >&5
29730$as_echo_n "checking for $srcdir/prov/udp/include/rdma/fi_direct.h.in... " >&6; }
29731			 if test -f "$srcdir/prov/udp/include/rdma/fi_direct.h.in"; then :
29732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29733$as_echo "yes" >&6; }
29734else
29735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29736$as_echo "no" >&6; }
29737				 as_fn_error $? "udp provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
29738
29739fi
29740fi
29741fi
29742
29743	 if test -f "$srcdir/prov/udp/include/rdma/fi_direct.h.in"; then
29744  FI_DIRECT_H_IN_TRUE=
29745  FI_DIRECT_H_IN_FALSE='#'
29746else
29747  FI_DIRECT_H_IN_TRUE='#'
29748  FI_DIRECT_H_IN_FALSE=
29749fi
29750
29751
29752
29753	# Restore CPPFLAGS/LDFLAGS/LIBS
29754	CPPFLAGS=$udp_orig_CPPFLAGS
29755	unset udp_orig_CPPFLAGS
29756	LDFLAGS=$udp_orig_LDFLAGS
29757	unset udp_orig_LDFLAGS
29758	LIBS=$udp_orig_LIBS
29759	unset udp_orig_LIBS
29760
29761
29762
29763	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"tcp"; then :
29764  enable_tcp=no
29765               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping tcp provider because $enable_direct direct requested" >&5
29766$as_echo "$as_me: *** Skipping tcp provider because $enable_direct direct requested" >&6;}
29767else
29768  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring tcp provider" >&5
29769$as_echo "$as_me: *** Configuring tcp provider" >&6;}
29770	       # Check whether --enable-tcp was given.
29771if test "${enable_tcp+set}" = set; then :
29772  enableval=$enable_tcp;
29773else
29774  enable_tcp=auto
29775fi
29776
29777fi
29778
29779	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
29780	# Provider's local macros could use the value if needed.
29781	# Also save LIBS, as a matter of principle.
29782	tcp_orig_CPPFLAGS=$CPPFLAGS
29783	tcp_orig_LDFLAGS=$LDFLAGS
29784	tcp_orig_LIBS=$LIBS
29785
29786	# Check the --enable-<tcp> value
29787	tcp_dl=0
29788	case $enable_tcp in #(
29789  yes|no) :
29790     ;; #(
29791  dl) :
29792    enable_tcp=yes tcp_dl=1 ;; #(
29793  auto) :
29794     ;; #(
29795  dl:*) :
29796
29797	# Check that the base directory exists
29798	if test ! -d "${enable_tcp:3}"; then :
29799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_tcp:3}\" does not exist" >&5
29800$as_echo "$as_me: WARNING: supplied directory \"${enable_tcp:3}\" does not exist" >&2;}
29801	        as_fn_error $? "Cannot continue" "$LINENO" 5
29802
29803fi
29804
29805	# Check that base/include exists
29806	 if test -d "${enable_tcp:3}/include"; then :
29807  tcp_PREFIX="${enable_tcp:3}"
29808else
29809  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_tcp:3}\" directory\"" >&5
29810$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_tcp:3}\" directory\"" >&2;}
29811	        as_fn_error $? "Cannot continue" "$LINENO" 5
29812
29813fi
29814
29815	# Check that base/lib or base/lib64 exists
29816	 if test -d "${enable_tcp:3}/lib64"; then :
29817  tcp_LIBDIR="${enable_tcp:3}/lib64"
29818else
29819  if test -d "${enable_tcp:3}/lib"; then :
29820  tcp_LIBDIR="${enable_tcp:3}/lib"
29821else
29822  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_tcp:3}\" directory\"" >&5
29823$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_tcp:3}\" directory\"" >&2;}
29824		       as_fn_error $? "Cannot continue" "$LINENO" 5
29825
29826fi
29827
29828fi
29829
29830		   enable_tcp=yes tcp_dl=1 ;; #(
29831  *) :
29832
29833	# Check that the base directory exists
29834	if test ! -d "$enable_tcp"; then :
29835  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_tcp\" does not exist" >&5
29836$as_echo "$as_me: WARNING: supplied directory \"$enable_tcp\" does not exist" >&2;}
29837	        as_fn_error $? "Cannot continue" "$LINENO" 5
29838
29839fi
29840
29841	# Check that base/include exists
29842	 if test -d "$enable_tcp/include"; then :
29843  tcp_PREFIX="$enable_tcp"
29844else
29845  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_tcp\" directory\"" >&5
29846$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_tcp\" directory\"" >&2;}
29847	        as_fn_error $? "Cannot continue" "$LINENO" 5
29848
29849fi
29850
29851	# Check that base/lib or base/lib64 exists
29852	 if test -d "$enable_tcp/lib64"; then :
29853  tcp_LIBDIR="$enable_tcp/lib64"
29854else
29855  if test -d "$enable_tcp/lib"; then :
29856  tcp_LIBDIR="$enable_tcp/lib"
29857else
29858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_tcp\" directory\"" >&5
29859$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_tcp\" directory\"" >&2;}
29860		       as_fn_error $? "Cannot continue" "$LINENO" 5
29861
29862fi
29863
29864fi
29865
29866	 enable_tcp=yes
29867	 ;;
29868esac
29869
29870	# Call the provider's CONFIGURE and CONDITIONALS macros
29871
29872
29873
29874
29875
29876
29877
29878       # Determine if we can support the tcp provider
29879       tcp_h_happy=0
29880       if test x"$enable_tcp" != x"no"; then :
29881  tcp_h_happy=1
29882fi
29883       if test $tcp_h_happy -eq 1; then :
29884  tcp_happy=1
29885else
29886  tcp_happy=0
29887fi
29888
29889
29890
29891
29892
29893
29894
29895	# See if the provider configured successfully
29896	if test $tcp_happy -eq 1; then :
29897  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD tcp"
29898		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
29899
29900	 FI_PC_CFLAGS="$FI_PC_CFLAGS $tcp_CFLAGS $tcp_CPPFLAGS"
29901	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $tcp_LDFLAGS $tcp_LIBS"
29902
29903		 if test $tcp_dl -eq 1; then :
29904  PROVIDERS_DL="prov/tcp/libtcp.la $PROVIDERS_DL"
29905			 if test x"$enable_static" = x"yes" &&
29906				test x"$enable_shared" = x"no"; then :
29907  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tcp provider was selected to be built as DL" >&5
29908$as_echo "$as_me: WARNING: tcp provider was selected to be built as DL" >&2;}
29909				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
29910$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
29911				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
29912fi
29913			 { $as_echo "$as_me:${as_lineno-$LINENO}: tcp provider: build as plugin" >&5
29914$as_echo "$as_me: tcp provider: build as plugin" >&6;}
29915
29916			 # See if this provider has a specfile that
29917			 # needs to be generated
29918
29919
29920else
29921  PROVIDERS_STATIC="prov/tcp/libtcp.la $PROVIDERS_STATIC"
29922			 { $as_echo "$as_me:${as_lineno-$LINENO}: tcp provider: include in libfabric" >&5
29923$as_echo "$as_me: tcp provider: include in libfabric" >&6;}
29924fi
29925
29926else
29927  { $as_echo "$as_me:${as_lineno-$LINENO}: tcp provider: disabled" >&5
29928$as_echo "$as_me: tcp provider: disabled" >&6;}
29929fi
29930
29931
29932cat >>confdefs.h <<_ACEOF
29933#define HAVE_TCP $tcp_happy
29934_ACEOF
29935
29936
29937cat >>confdefs.h <<_ACEOF
29938#define HAVE_TCP_DL $tcp_dl
29939_ACEOF
29940
29941
29942	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
29943	# as well as AC defines
29944	 if test $tcp_happy -eq 1; then
29945  HAVE_TCP_TRUE=
29946  HAVE_TCP_FALSE='#'
29947else
29948  HAVE_TCP_TRUE='#'
29949  HAVE_TCP_FALSE=
29950fi
29951
29952	 if test $tcp_dl -eq 1; then
29953  HAVE_TCP_DL_TRUE=
29954  HAVE_TCP_DL_FALSE='#'
29955else
29956  HAVE_TCP_DL_TRUE='#'
29957  HAVE_TCP_DL_FALSE=
29958fi
29959
29960
29961	# If this provider was specifically requested but we can't
29962	# build it, error.
29963	if test "$enable_tcp $tcp_happy" = "yes 0"; then :
29964  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tcp provider was requested, but cannot be compiled" >&5
29965$as_echo "$as_me: WARNING: tcp provider was requested, but cannot be compiled" >&2;}
29966	       as_fn_error $? "Cannot continue" "$LINENO" 5
29967
29968fi
29969	# If this provider was requested for direct build, ensure that
29970	# provider's fi_direct.h exists in tree. Error otherwise.
29971	if test x"$enable_direct" = x"tcp"; then :
29972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/tcp/include/rdma/fi_direct.h" >&5
29973$as_echo_n "checking for $srcdir/prov/tcp/include/rdma/fi_direct.h... " >&6; }
29974		 if test -f "$srcdir/prov/tcp/include/rdma/fi_direct.h"; then :
29975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29976$as_echo "yes" >&6; }
29977else
29978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29979$as_echo "no" >&6; }
29980			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/tcp/include/rdma/fi_direct.h.in" >&5
29981$as_echo_n "checking for $srcdir/prov/tcp/include/rdma/fi_direct.h.in... " >&6; }
29982			 if test -f "$srcdir/prov/tcp/include/rdma/fi_direct.h.in"; then :
29983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29984$as_echo "yes" >&6; }
29985else
29986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987$as_echo "no" >&6; }
29988				 as_fn_error $? "tcp provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
29989
29990fi
29991fi
29992fi
29993
29994	 if test -f "$srcdir/prov/tcp/include/rdma/fi_direct.h.in"; then
29995  FI_DIRECT_H_IN_TRUE=
29996  FI_DIRECT_H_IN_FALSE='#'
29997else
29998  FI_DIRECT_H_IN_TRUE='#'
29999  FI_DIRECT_H_IN_FALSE=
30000fi
30001
30002
30003
30004	# Restore CPPFLAGS/LDFLAGS/LIBS
30005	CPPFLAGS=$tcp_orig_CPPFLAGS
30006	unset tcp_orig_CPPFLAGS
30007	LDFLAGS=$tcp_orig_LDFLAGS
30008	unset tcp_orig_LDFLAGS
30009	LIBS=$tcp_orig_LIBS
30010	unset tcp_orig_LIBS
30011
30012
30013
30014	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"rxm"; then :
30015  enable_rxm=no
30016               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping rxm provider because $enable_direct direct requested" >&5
30017$as_echo "$as_me: *** Skipping rxm provider because $enable_direct direct requested" >&6;}
30018else
30019  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring rxm provider" >&5
30020$as_echo "$as_me: *** Configuring rxm provider" >&6;}
30021	       # Check whether --enable-rxm was given.
30022if test "${enable_rxm+set}" = set; then :
30023  enableval=$enable_rxm;
30024else
30025  enable_rxm=auto
30026fi
30027
30028fi
30029
30030	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
30031	# Provider's local macros could use the value if needed.
30032	# Also save LIBS, as a matter of principle.
30033	rxm_orig_CPPFLAGS=$CPPFLAGS
30034	rxm_orig_LDFLAGS=$LDFLAGS
30035	rxm_orig_LIBS=$LIBS
30036
30037	# Check the --enable-<rxm> value
30038	rxm_dl=0
30039	case $enable_rxm in #(
30040  yes|no) :
30041     ;; #(
30042  dl) :
30043    enable_rxm=yes rxm_dl=1 ;; #(
30044  auto) :
30045     ;; #(
30046  dl:*) :
30047
30048	# Check that the base directory exists
30049	if test ! -d "${enable_rxm:3}"; then :
30050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_rxm:3}\" does not exist" >&5
30051$as_echo "$as_me: WARNING: supplied directory \"${enable_rxm:3}\" does not exist" >&2;}
30052	        as_fn_error $? "Cannot continue" "$LINENO" 5
30053
30054fi
30055
30056	# Check that base/include exists
30057	 if test -d "${enable_rxm:3}/include"; then :
30058  rxm_PREFIX="${enable_rxm:3}"
30059else
30060  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_rxm:3}\" directory\"" >&5
30061$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_rxm:3}\" directory\"" >&2;}
30062	        as_fn_error $? "Cannot continue" "$LINENO" 5
30063
30064fi
30065
30066	# Check that base/lib or base/lib64 exists
30067	 if test -d "${enable_rxm:3}/lib64"; then :
30068  rxm_LIBDIR="${enable_rxm:3}/lib64"
30069else
30070  if test -d "${enable_rxm:3}/lib"; then :
30071  rxm_LIBDIR="${enable_rxm:3}/lib"
30072else
30073  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_rxm:3}\" directory\"" >&5
30074$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_rxm:3}\" directory\"" >&2;}
30075		       as_fn_error $? "Cannot continue" "$LINENO" 5
30076
30077fi
30078
30079fi
30080
30081		   enable_rxm=yes rxm_dl=1 ;; #(
30082  *) :
30083
30084	# Check that the base directory exists
30085	if test ! -d "$enable_rxm"; then :
30086  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_rxm\" does not exist" >&5
30087$as_echo "$as_me: WARNING: supplied directory \"$enable_rxm\" does not exist" >&2;}
30088	        as_fn_error $? "Cannot continue" "$LINENO" 5
30089
30090fi
30091
30092	# Check that base/include exists
30093	 if test -d "$enable_rxm/include"; then :
30094  rxm_PREFIX="$enable_rxm"
30095else
30096  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_rxm\" directory\"" >&5
30097$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_rxm\" directory\"" >&2;}
30098	        as_fn_error $? "Cannot continue" "$LINENO" 5
30099
30100fi
30101
30102	# Check that base/lib or base/lib64 exists
30103	 if test -d "$enable_rxm/lib64"; then :
30104  rxm_LIBDIR="$enable_rxm/lib64"
30105else
30106  if test -d "$enable_rxm/lib"; then :
30107  rxm_LIBDIR="$enable_rxm/lib"
30108else
30109  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_rxm\" directory\"" >&5
30110$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_rxm\" directory\"" >&2;}
30111		       as_fn_error $? "Cannot continue" "$LINENO" 5
30112
30113fi
30114
30115fi
30116
30117	 enable_rxm=yes
30118	 ;;
30119esac
30120
30121	# Call the provider's CONFIGURE and CONDITIONALS macros
30122
30123
30124
30125
30126
30127
30128
30129
30130       # Determine if we can support the rxm provider
30131       rxm_h_happy=0
30132       if test x"$enable_rxm" != x"no"; then :
30133  rxm_h_happy=1
30134fi
30135       if test $rxm_h_happy -eq 1; then :
30136  rxm_happy=1
30137else
30138  rxm_happy=0
30139fi
30140
30141
30142
30143
30144
30145
30146
30147	# See if the provider configured successfully
30148	if test $rxm_happy -eq 1; then :
30149  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD rxm"
30150		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
30151
30152	 FI_PC_CFLAGS="$FI_PC_CFLAGS $rxm_CFLAGS $rxm_CPPFLAGS"
30153	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $rxm_LDFLAGS $rxm_LIBS"
30154
30155		 if test $rxm_dl -eq 1; then :
30156  PROVIDERS_DL="prov/rxm/librxm.la $PROVIDERS_DL"
30157			 if test x"$enable_static" = x"yes" &&
30158				test x"$enable_shared" = x"no"; then :
30159  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rxm provider was selected to be built as DL" >&5
30160$as_echo "$as_me: WARNING: rxm provider was selected to be built as DL" >&2;}
30161				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
30162$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
30163				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
30164fi
30165			 { $as_echo "$as_me:${as_lineno-$LINENO}: rxm provider: build as plugin" >&5
30166$as_echo "$as_me: rxm provider: build as plugin" >&6;}
30167
30168			 # See if this provider has a specfile that
30169			 # needs to be generated
30170
30171
30172else
30173  PROVIDERS_STATIC="prov/rxm/librxm.la $PROVIDERS_STATIC"
30174			 { $as_echo "$as_me:${as_lineno-$LINENO}: rxm provider: include in libfabric" >&5
30175$as_echo "$as_me: rxm provider: include in libfabric" >&6;}
30176fi
30177
30178else
30179  { $as_echo "$as_me:${as_lineno-$LINENO}: rxm provider: disabled" >&5
30180$as_echo "$as_me: rxm provider: disabled" >&6;}
30181fi
30182
30183
30184cat >>confdefs.h <<_ACEOF
30185#define HAVE_RXM $rxm_happy
30186_ACEOF
30187
30188
30189cat >>confdefs.h <<_ACEOF
30190#define HAVE_RXM_DL $rxm_dl
30191_ACEOF
30192
30193
30194	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
30195	# as well as AC defines
30196	 if test $rxm_happy -eq 1; then
30197  HAVE_RXM_TRUE=
30198  HAVE_RXM_FALSE='#'
30199else
30200  HAVE_RXM_TRUE='#'
30201  HAVE_RXM_FALSE=
30202fi
30203
30204	 if test $rxm_dl -eq 1; then
30205  HAVE_RXM_DL_TRUE=
30206  HAVE_RXM_DL_FALSE='#'
30207else
30208  HAVE_RXM_DL_TRUE='#'
30209  HAVE_RXM_DL_FALSE=
30210fi
30211
30212
30213	# If this provider was specifically requested but we can't
30214	# build it, error.
30215	if test "$enable_rxm $rxm_happy" = "yes 0"; then :
30216  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rxm provider was requested, but cannot be compiled" >&5
30217$as_echo "$as_me: WARNING: rxm provider was requested, but cannot be compiled" >&2;}
30218	       as_fn_error $? "Cannot continue" "$LINENO" 5
30219
30220fi
30221	# If this provider was requested for direct build, ensure that
30222	# provider's fi_direct.h exists in tree. Error otherwise.
30223	if test x"$enable_direct" = x"rxm"; then :
30224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/rxm/include/rdma/fi_direct.h" >&5
30225$as_echo_n "checking for $srcdir/prov/rxm/include/rdma/fi_direct.h... " >&6; }
30226		 if test -f "$srcdir/prov/rxm/include/rdma/fi_direct.h"; then :
30227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30228$as_echo "yes" >&6; }
30229else
30230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30231$as_echo "no" >&6; }
30232			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/rxm/include/rdma/fi_direct.h.in" >&5
30233$as_echo_n "checking for $srcdir/prov/rxm/include/rdma/fi_direct.h.in... " >&6; }
30234			 if test -f "$srcdir/prov/rxm/include/rdma/fi_direct.h.in"; then :
30235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30236$as_echo "yes" >&6; }
30237else
30238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30239$as_echo "no" >&6; }
30240				 as_fn_error $? "rxm provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
30241
30242fi
30243fi
30244fi
30245
30246	 if test -f "$srcdir/prov/rxm/include/rdma/fi_direct.h.in"; then
30247  FI_DIRECT_H_IN_TRUE=
30248  FI_DIRECT_H_IN_FALSE='#'
30249else
30250  FI_DIRECT_H_IN_TRUE='#'
30251  FI_DIRECT_H_IN_FALSE=
30252fi
30253
30254
30255
30256	# Restore CPPFLAGS/LDFLAGS/LIBS
30257	CPPFLAGS=$rxm_orig_CPPFLAGS
30258	unset rxm_orig_CPPFLAGS
30259	LDFLAGS=$rxm_orig_LDFLAGS
30260	unset rxm_orig_LDFLAGS
30261	LIBS=$rxm_orig_LIBS
30262	unset rxm_orig_LIBS
30263
30264
30265
30266	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"mrail"; then :
30267  enable_mrail=no
30268               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping mrail provider because $enable_direct direct requested" >&5
30269$as_echo "$as_me: *** Skipping mrail provider because $enable_direct direct requested" >&6;}
30270else
30271  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring mrail provider" >&5
30272$as_echo "$as_me: *** Configuring mrail provider" >&6;}
30273	       # Check whether --enable-mrail was given.
30274if test "${enable_mrail+set}" = set; then :
30275  enableval=$enable_mrail;
30276else
30277  enable_mrail=auto
30278fi
30279
30280fi
30281
30282	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
30283	# Provider's local macros could use the value if needed.
30284	# Also save LIBS, as a matter of principle.
30285	mrail_orig_CPPFLAGS=$CPPFLAGS
30286	mrail_orig_LDFLAGS=$LDFLAGS
30287	mrail_orig_LIBS=$LIBS
30288
30289	# Check the --enable-<mrail> value
30290	mrail_dl=0
30291	case $enable_mrail in #(
30292  yes|no) :
30293     ;; #(
30294  dl) :
30295    enable_mrail=yes mrail_dl=1 ;; #(
30296  auto) :
30297     ;; #(
30298  dl:*) :
30299
30300	# Check that the base directory exists
30301	if test ! -d "${enable_mrail:3}"; then :
30302  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_mrail:3}\" does not exist" >&5
30303$as_echo "$as_me: WARNING: supplied directory \"${enable_mrail:3}\" does not exist" >&2;}
30304	        as_fn_error $? "Cannot continue" "$LINENO" 5
30305
30306fi
30307
30308	# Check that base/include exists
30309	 if test -d "${enable_mrail:3}/include"; then :
30310  mrail_PREFIX="${enable_mrail:3}"
30311else
30312  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_mrail:3}\" directory\"" >&5
30313$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_mrail:3}\" directory\"" >&2;}
30314	        as_fn_error $? "Cannot continue" "$LINENO" 5
30315
30316fi
30317
30318	# Check that base/lib or base/lib64 exists
30319	 if test -d "${enable_mrail:3}/lib64"; then :
30320  mrail_LIBDIR="${enable_mrail:3}/lib64"
30321else
30322  if test -d "${enable_mrail:3}/lib"; then :
30323  mrail_LIBDIR="${enable_mrail:3}/lib"
30324else
30325  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_mrail:3}\" directory\"" >&5
30326$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_mrail:3}\" directory\"" >&2;}
30327		       as_fn_error $? "Cannot continue" "$LINENO" 5
30328
30329fi
30330
30331fi
30332
30333		   enable_mrail=yes mrail_dl=1 ;; #(
30334  *) :
30335
30336	# Check that the base directory exists
30337	if test ! -d "$enable_mrail"; then :
30338  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_mrail\" does not exist" >&5
30339$as_echo "$as_me: WARNING: supplied directory \"$enable_mrail\" does not exist" >&2;}
30340	        as_fn_error $? "Cannot continue" "$LINENO" 5
30341
30342fi
30343
30344	# Check that base/include exists
30345	 if test -d "$enable_mrail/include"; then :
30346  mrail_PREFIX="$enable_mrail"
30347else
30348  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_mrail\" directory\"" >&5
30349$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_mrail\" directory\"" >&2;}
30350	        as_fn_error $? "Cannot continue" "$LINENO" 5
30351
30352fi
30353
30354	# Check that base/lib or base/lib64 exists
30355	 if test -d "$enable_mrail/lib64"; then :
30356  mrail_LIBDIR="$enable_mrail/lib64"
30357else
30358  if test -d "$enable_mrail/lib"; then :
30359  mrail_LIBDIR="$enable_mrail/lib"
30360else
30361  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_mrail\" directory\"" >&5
30362$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_mrail\" directory\"" >&2;}
30363		       as_fn_error $? "Cannot continue" "$LINENO" 5
30364
30365fi
30366
30367fi
30368
30369	 enable_mrail=yes
30370	 ;;
30371esac
30372
30373	# Call the provider's CONFIGURE and CONDITIONALS macros
30374
30375
30376
30377
30378
30379
30380
30381       # Determine if we can support the mrail provider
30382       mrail_h_happy=0
30383       if test x"$enable_mrail" != x"no"; then :
30384  mrail_h_happy=1
30385fi
30386       if test $mrail_h_happy -eq 1; then :
30387  mrail_happy=1
30388else
30389  mrail_happy=0
30390fi
30391
30392
30393
30394
30395
30396
30397
30398	# See if the provider configured successfully
30399	if test $mrail_happy -eq 1; then :
30400  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD mrail"
30401		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
30402
30403	 FI_PC_CFLAGS="$FI_PC_CFLAGS $mrail_CFLAGS $mrail_CPPFLAGS"
30404	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $mrail_LDFLAGS $mrail_LIBS"
30405
30406		 if test $mrail_dl -eq 1; then :
30407  PROVIDERS_DL="prov/mrail/libmrail.la $PROVIDERS_DL"
30408			 if test x"$enable_static" = x"yes" &&
30409				test x"$enable_shared" = x"no"; then :
30410  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mrail provider was selected to be built as DL" >&5
30411$as_echo "$as_me: WARNING: mrail provider was selected to be built as DL" >&2;}
30412				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
30413$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
30414				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
30415fi
30416			 { $as_echo "$as_me:${as_lineno-$LINENO}: mrail provider: build as plugin" >&5
30417$as_echo "$as_me: mrail provider: build as plugin" >&6;}
30418
30419			 # See if this provider has a specfile that
30420			 # needs to be generated
30421
30422
30423else
30424  PROVIDERS_STATIC="prov/mrail/libmrail.la $PROVIDERS_STATIC"
30425			 { $as_echo "$as_me:${as_lineno-$LINENO}: mrail provider: include in libfabric" >&5
30426$as_echo "$as_me: mrail provider: include in libfabric" >&6;}
30427fi
30428
30429else
30430  { $as_echo "$as_me:${as_lineno-$LINENO}: mrail provider: disabled" >&5
30431$as_echo "$as_me: mrail provider: disabled" >&6;}
30432fi
30433
30434
30435cat >>confdefs.h <<_ACEOF
30436#define HAVE_MRAIL $mrail_happy
30437_ACEOF
30438
30439
30440cat >>confdefs.h <<_ACEOF
30441#define HAVE_MRAIL_DL $mrail_dl
30442_ACEOF
30443
30444
30445	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
30446	# as well as AC defines
30447	 if test $mrail_happy -eq 1; then
30448  HAVE_MRAIL_TRUE=
30449  HAVE_MRAIL_FALSE='#'
30450else
30451  HAVE_MRAIL_TRUE='#'
30452  HAVE_MRAIL_FALSE=
30453fi
30454
30455	 if test $mrail_dl -eq 1; then
30456  HAVE_MRAIL_DL_TRUE=
30457  HAVE_MRAIL_DL_FALSE='#'
30458else
30459  HAVE_MRAIL_DL_TRUE='#'
30460  HAVE_MRAIL_DL_FALSE=
30461fi
30462
30463
30464	# If this provider was specifically requested but we can't
30465	# build it, error.
30466	if test "$enable_mrail $mrail_happy" = "yes 0"; then :
30467  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mrail provider was requested, but cannot be compiled" >&5
30468$as_echo "$as_me: WARNING: mrail provider was requested, but cannot be compiled" >&2;}
30469	       as_fn_error $? "Cannot continue" "$LINENO" 5
30470
30471fi
30472	# If this provider was requested for direct build, ensure that
30473	# provider's fi_direct.h exists in tree. Error otherwise.
30474	if test x"$enable_direct" = x"mrail"; then :
30475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/mrail/include/rdma/fi_direct.h" >&5
30476$as_echo_n "checking for $srcdir/prov/mrail/include/rdma/fi_direct.h... " >&6; }
30477		 if test -f "$srcdir/prov/mrail/include/rdma/fi_direct.h"; then :
30478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30479$as_echo "yes" >&6; }
30480else
30481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30482$as_echo "no" >&6; }
30483			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/mrail/include/rdma/fi_direct.h.in" >&5
30484$as_echo_n "checking for $srcdir/prov/mrail/include/rdma/fi_direct.h.in... " >&6; }
30485			 if test -f "$srcdir/prov/mrail/include/rdma/fi_direct.h.in"; then :
30486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30487$as_echo "yes" >&6; }
30488else
30489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30490$as_echo "no" >&6; }
30491				 as_fn_error $? "mrail provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
30492
30493fi
30494fi
30495fi
30496
30497	 if test -f "$srcdir/prov/mrail/include/rdma/fi_direct.h.in"; then
30498  FI_DIRECT_H_IN_TRUE=
30499  FI_DIRECT_H_IN_FALSE='#'
30500else
30501  FI_DIRECT_H_IN_TRUE='#'
30502  FI_DIRECT_H_IN_FALSE=
30503fi
30504
30505
30506
30507	# Restore CPPFLAGS/LDFLAGS/LIBS
30508	CPPFLAGS=$mrail_orig_CPPFLAGS
30509	unset mrail_orig_CPPFLAGS
30510	LDFLAGS=$mrail_orig_LDFLAGS
30511	unset mrail_orig_LDFLAGS
30512	LIBS=$mrail_orig_LIBS
30513	unset mrail_orig_LIBS
30514
30515
30516
30517	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"rxd"; then :
30518  enable_rxd=no
30519               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping rxd provider because $enable_direct direct requested" >&5
30520$as_echo "$as_me: *** Skipping rxd provider because $enable_direct direct requested" >&6;}
30521else
30522  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring rxd provider" >&5
30523$as_echo "$as_me: *** Configuring rxd provider" >&6;}
30524	       # Check whether --enable-rxd was given.
30525if test "${enable_rxd+set}" = set; then :
30526  enableval=$enable_rxd;
30527else
30528  enable_rxd=auto
30529fi
30530
30531fi
30532
30533	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
30534	# Provider's local macros could use the value if needed.
30535	# Also save LIBS, as a matter of principle.
30536	rxd_orig_CPPFLAGS=$CPPFLAGS
30537	rxd_orig_LDFLAGS=$LDFLAGS
30538	rxd_orig_LIBS=$LIBS
30539
30540	# Check the --enable-<rxd> value
30541	rxd_dl=0
30542	case $enable_rxd in #(
30543  yes|no) :
30544     ;; #(
30545  dl) :
30546    enable_rxd=yes rxd_dl=1 ;; #(
30547  auto) :
30548     ;; #(
30549  dl:*) :
30550
30551	# Check that the base directory exists
30552	if test ! -d "${enable_rxd:3}"; then :
30553  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_rxd:3}\" does not exist" >&5
30554$as_echo "$as_me: WARNING: supplied directory \"${enable_rxd:3}\" does not exist" >&2;}
30555	        as_fn_error $? "Cannot continue" "$LINENO" 5
30556
30557fi
30558
30559	# Check that base/include exists
30560	 if test -d "${enable_rxd:3}/include"; then :
30561  rxd_PREFIX="${enable_rxd:3}"
30562else
30563  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_rxd:3}\" directory\"" >&5
30564$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_rxd:3}\" directory\"" >&2;}
30565	        as_fn_error $? "Cannot continue" "$LINENO" 5
30566
30567fi
30568
30569	# Check that base/lib or base/lib64 exists
30570	 if test -d "${enable_rxd:3}/lib64"; then :
30571  rxd_LIBDIR="${enable_rxd:3}/lib64"
30572else
30573  if test -d "${enable_rxd:3}/lib"; then :
30574  rxd_LIBDIR="${enable_rxd:3}/lib"
30575else
30576  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_rxd:3}\" directory\"" >&5
30577$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_rxd:3}\" directory\"" >&2;}
30578		       as_fn_error $? "Cannot continue" "$LINENO" 5
30579
30580fi
30581
30582fi
30583
30584		   enable_rxd=yes rxd_dl=1 ;; #(
30585  *) :
30586
30587	# Check that the base directory exists
30588	if test ! -d "$enable_rxd"; then :
30589  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_rxd\" does not exist" >&5
30590$as_echo "$as_me: WARNING: supplied directory \"$enable_rxd\" does not exist" >&2;}
30591	        as_fn_error $? "Cannot continue" "$LINENO" 5
30592
30593fi
30594
30595	# Check that base/include exists
30596	 if test -d "$enable_rxd/include"; then :
30597  rxd_PREFIX="$enable_rxd"
30598else
30599  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_rxd\" directory\"" >&5
30600$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_rxd\" directory\"" >&2;}
30601	        as_fn_error $? "Cannot continue" "$LINENO" 5
30602
30603fi
30604
30605	# Check that base/lib or base/lib64 exists
30606	 if test -d "$enable_rxd/lib64"; then :
30607  rxd_LIBDIR="$enable_rxd/lib64"
30608else
30609  if test -d "$enable_rxd/lib"; then :
30610  rxd_LIBDIR="$enable_rxd/lib"
30611else
30612  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_rxd\" directory\"" >&5
30613$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_rxd\" directory\"" >&2;}
30614		       as_fn_error $? "Cannot continue" "$LINENO" 5
30615
30616fi
30617
30618fi
30619
30620	 enable_rxd=yes
30621	 ;;
30622esac
30623
30624	# Call the provider's CONFIGURE and CONDITIONALS macros
30625
30626
30627
30628
30629
30630
30631
30632	# Determine if we can support the rxd provider
30633	rxd_h_happy=0
30634	if test x"$enable_rxd" != x"no"; then :
30635  rxd_h_happy=1
30636fi
30637        if test $rxd_h_happy -eq 1; then :
30638  rxd_happy=1
30639else
30640  rxd_happy=0
30641fi
30642
30643
30644
30645
30646
30647
30648
30649	# See if the provider configured successfully
30650	if test $rxd_happy -eq 1; then :
30651  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD rxd"
30652		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
30653
30654	 FI_PC_CFLAGS="$FI_PC_CFLAGS $rxd_CFLAGS $rxd_CPPFLAGS"
30655	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $rxd_LDFLAGS $rxd_LIBS"
30656
30657		 if test $rxd_dl -eq 1; then :
30658  PROVIDERS_DL="prov/rxd/librxd.la $PROVIDERS_DL"
30659			 if test x"$enable_static" = x"yes" &&
30660				test x"$enable_shared" = x"no"; then :
30661  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rxd provider was selected to be built as DL" >&5
30662$as_echo "$as_me: WARNING: rxd provider was selected to be built as DL" >&2;}
30663				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
30664$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
30665				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
30666fi
30667			 { $as_echo "$as_me:${as_lineno-$LINENO}: rxd provider: build as plugin" >&5
30668$as_echo "$as_me: rxd provider: build as plugin" >&6;}
30669
30670			 # See if this provider has a specfile that
30671			 # needs to be generated
30672
30673
30674else
30675  PROVIDERS_STATIC="prov/rxd/librxd.la $PROVIDERS_STATIC"
30676			 { $as_echo "$as_me:${as_lineno-$LINENO}: rxd provider: include in libfabric" >&5
30677$as_echo "$as_me: rxd provider: include in libfabric" >&6;}
30678fi
30679
30680else
30681  { $as_echo "$as_me:${as_lineno-$LINENO}: rxd provider: disabled" >&5
30682$as_echo "$as_me: rxd provider: disabled" >&6;}
30683fi
30684
30685
30686cat >>confdefs.h <<_ACEOF
30687#define HAVE_RXD $rxd_happy
30688_ACEOF
30689
30690
30691cat >>confdefs.h <<_ACEOF
30692#define HAVE_RXD_DL $rxd_dl
30693_ACEOF
30694
30695
30696	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
30697	# as well as AC defines
30698	 if test $rxd_happy -eq 1; then
30699  HAVE_RXD_TRUE=
30700  HAVE_RXD_FALSE='#'
30701else
30702  HAVE_RXD_TRUE='#'
30703  HAVE_RXD_FALSE=
30704fi
30705
30706	 if test $rxd_dl -eq 1; then
30707  HAVE_RXD_DL_TRUE=
30708  HAVE_RXD_DL_FALSE='#'
30709else
30710  HAVE_RXD_DL_TRUE='#'
30711  HAVE_RXD_DL_FALSE=
30712fi
30713
30714
30715	# If this provider was specifically requested but we can't
30716	# build it, error.
30717	if test "$enable_rxd $rxd_happy" = "yes 0"; then :
30718  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rxd provider was requested, but cannot be compiled" >&5
30719$as_echo "$as_me: WARNING: rxd provider was requested, but cannot be compiled" >&2;}
30720	       as_fn_error $? "Cannot continue" "$LINENO" 5
30721
30722fi
30723	# If this provider was requested for direct build, ensure that
30724	# provider's fi_direct.h exists in tree. Error otherwise.
30725	if test x"$enable_direct" = x"rxd"; then :
30726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/rxd/include/rdma/fi_direct.h" >&5
30727$as_echo_n "checking for $srcdir/prov/rxd/include/rdma/fi_direct.h... " >&6; }
30728		 if test -f "$srcdir/prov/rxd/include/rdma/fi_direct.h"; then :
30729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30730$as_echo "yes" >&6; }
30731else
30732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30733$as_echo "no" >&6; }
30734			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/rxd/include/rdma/fi_direct.h.in" >&5
30735$as_echo_n "checking for $srcdir/prov/rxd/include/rdma/fi_direct.h.in... " >&6; }
30736			 if test -f "$srcdir/prov/rxd/include/rdma/fi_direct.h.in"; then :
30737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30738$as_echo "yes" >&6; }
30739else
30740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30741$as_echo "no" >&6; }
30742				 as_fn_error $? "rxd provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
30743
30744fi
30745fi
30746fi
30747
30748	 if test -f "$srcdir/prov/rxd/include/rdma/fi_direct.h.in"; then
30749  FI_DIRECT_H_IN_TRUE=
30750  FI_DIRECT_H_IN_FALSE='#'
30751else
30752  FI_DIRECT_H_IN_TRUE='#'
30753  FI_DIRECT_H_IN_FALSE=
30754fi
30755
30756
30757
30758	# Restore CPPFLAGS/LDFLAGS/LIBS
30759	CPPFLAGS=$rxd_orig_CPPFLAGS
30760	unset rxd_orig_CPPFLAGS
30761	LDFLAGS=$rxd_orig_LDFLAGS
30762	unset rxd_orig_LDFLAGS
30763	LIBS=$rxd_orig_LIBS
30764	unset rxd_orig_LIBS
30765
30766
30767
30768	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"bgq"; then :
30769  enable_bgq=no
30770               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping bgq provider because $enable_direct direct requested" >&5
30771$as_echo "$as_me: *** Skipping bgq provider because $enable_direct direct requested" >&6;}
30772else
30773  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring bgq provider" >&5
30774$as_echo "$as_me: *** Configuring bgq provider" >&6;}
30775	       # Check whether --enable-bgq was given.
30776if test "${enable_bgq+set}" = set; then :
30777  enableval=$enable_bgq;
30778else
30779  enable_bgq=auto
30780fi
30781
30782fi
30783
30784	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
30785	# Provider's local macros could use the value if needed.
30786	# Also save LIBS, as a matter of principle.
30787	bgq_orig_CPPFLAGS=$CPPFLAGS
30788	bgq_orig_LDFLAGS=$LDFLAGS
30789	bgq_orig_LIBS=$LIBS
30790
30791	# Check the --enable-<bgq> value
30792	bgq_dl=0
30793	case $enable_bgq in #(
30794  yes|no) :
30795     ;; #(
30796  dl) :
30797    enable_bgq=yes bgq_dl=1 ;; #(
30798  auto) :
30799     ;; #(
30800  dl:*) :
30801
30802	# Check that the base directory exists
30803	if test ! -d "${enable_bgq:3}"; then :
30804  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_bgq:3}\" does not exist" >&5
30805$as_echo "$as_me: WARNING: supplied directory \"${enable_bgq:3}\" does not exist" >&2;}
30806	        as_fn_error $? "Cannot continue" "$LINENO" 5
30807
30808fi
30809
30810	# Check that base/include exists
30811	 if test -d "${enable_bgq:3}/include"; then :
30812  bgq_PREFIX="${enable_bgq:3}"
30813else
30814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_bgq:3}\" directory\"" >&5
30815$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_bgq:3}\" directory\"" >&2;}
30816	        as_fn_error $? "Cannot continue" "$LINENO" 5
30817
30818fi
30819
30820	# Check that base/lib or base/lib64 exists
30821	 if test -d "${enable_bgq:3}/lib64"; then :
30822  bgq_LIBDIR="${enable_bgq:3}/lib64"
30823else
30824  if test -d "${enable_bgq:3}/lib"; then :
30825  bgq_LIBDIR="${enable_bgq:3}/lib"
30826else
30827  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_bgq:3}\" directory\"" >&5
30828$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_bgq:3}\" directory\"" >&2;}
30829		       as_fn_error $? "Cannot continue" "$LINENO" 5
30830
30831fi
30832
30833fi
30834
30835		   enable_bgq=yes bgq_dl=1 ;; #(
30836  *) :
30837
30838	# Check that the base directory exists
30839	if test ! -d "$enable_bgq"; then :
30840  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_bgq\" does not exist" >&5
30841$as_echo "$as_me: WARNING: supplied directory \"$enable_bgq\" does not exist" >&2;}
30842	        as_fn_error $? "Cannot continue" "$LINENO" 5
30843
30844fi
30845
30846	# Check that base/include exists
30847	 if test -d "$enable_bgq/include"; then :
30848  bgq_PREFIX="$enable_bgq"
30849else
30850  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_bgq\" directory\"" >&5
30851$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_bgq\" directory\"" >&2;}
30852	        as_fn_error $? "Cannot continue" "$LINENO" 5
30853
30854fi
30855
30856	# Check that base/lib or base/lib64 exists
30857	 if test -d "$enable_bgq/lib64"; then :
30858  bgq_LIBDIR="$enable_bgq/lib64"
30859else
30860  if test -d "$enable_bgq/lib"; then :
30861  bgq_LIBDIR="$enable_bgq/lib"
30862else
30863  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_bgq\" directory\"" >&5
30864$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_bgq\" directory\"" >&2;}
30865		       as_fn_error $? "Cannot continue" "$LINENO" 5
30866
30867fi
30868
30869fi
30870
30871	 enable_bgq=yes
30872	 ;;
30873esac
30874
30875	# Call the provider's CONFIGURE and CONDITIONALS macros
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885	# Determine if we can support the bgq provider
30886	bgq_happy=0
30887	bgq_direct=0
30888
30889	if test x"$enable_bgq" != x"no"; then :
30890
30891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for direct bgq provider" >&5
30892$as_echo_n "checking for direct bgq provider... " >&6; }
30893		if test x"$enable_direct" != x"bgq"; then :
30894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30895$as_echo "no" >&6; }
30896else
30897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30898$as_echo "yes" >&6; }
30899
30900			bgq_driver=/bgsys/drivers/ppcfloor
30901
30902
30903# Check whether --with-bgq-driver was given.
30904if test "${with_bgq_driver+set}" = set; then :
30905  withval=$with_bgq_driver; bgq_driver=$with_bgq_driver
30906fi
30907
30908
30909			bgq_driver_CPPFLAGS="-I$bgq_driver -I$bgq_driver/spi/include/kernel/cnk"
30910			CPPFLAGS="$bgq_driver_CPPFLAGS $CPPFLAGS"
30911
30912			ac_fn_c_check_header_mongrel "$LINENO" "hwi/include/bqc/MU_Descriptor.h" "ac_cv_header_hwi_include_bqc_MU_Descriptor_h" "$ac_includes_default"
30913if test "x$ac_cv_header_hwi_include_bqc_MU_Descriptor_h" = xyes; then :
30914  bgq_happy=1
30915else
30916  bgq_happy=0
30917fi
30918
30919
30920
30921			bgq_external_source=auto
30922
30923
30924# Check whether --with-bgq-src was given.
30925if test "${with_bgq_src+set}" = set; then :
30926  withval=$with_bgq_src; bgq_external_source=$with_bgq_src
30927fi
30928
30929
30930			if test x"$bgq_external_source" == x"auto"; then :
30931
30932				for bgq_dir in `ls -r /bgsys/source`; do
30933					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bgq opensource distribution" >&5
30934$as_echo_n "checking for bgq opensource distribution... " >&6; }
30935					if test -f /bgsys/source/$bgq_dir/spi/src/kernel/cnk/memory_impl.c; then :
30936  bgq_external_source="/bgsys/source/$bgq_dir"
30937						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bgq_external_source" >&5
30938$as_echo "$bgq_external_source" >&6; }
30939						break
30940fi
30941				done
30942				if test x"$bgq_external_source" == x"auto"; then :
30943
30944					bgq_happy=0
30945					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30946$as_echo "no" >&6; }
30947fi
30948
30949fi
30950
30951			if test ! -f $bgq_external_source/spi/src/kernel/cnk/memory_impl.c; then :
30952
30953				as_fn_error $? "unable to locate the bgq opensource distribution" "$LINENO" 5
30954fi
30955
30956
30957# Check whether --with-bgq-progress was given.
30958if test "${with_bgq_progress+set}" = set; then :
30959  withval=$with_bgq_progress;
30960fi
30961
30962
30963			case $with_bgq_progress in #(
30964  auto) :
30965    BGQ_FABRIC_DIRECT_PROGRESS=FI_PROGRESS_AUTO ;; #(
30966  manual) :
30967    BGQ_FABRIC_DIRECT_PROGRESS=FI_PROGRESS_MANUAL ;; #(
30968  runtime) :
30969    BGQ_FABRIC_DIRECT_PROGRESS=FI_PROGRESS_UNSPEC ;; #(
30970  *) :
30971    BGQ_FABRIC_DIRECT_PROGRESS=FI_PROGRESS_MANUAL ;;
30972esac
30973
30974			bgq_fabric_direct_progress=$BGQ_FABRIC_DIRECT_PROGRESS
30975
30976
30977						BGQ_FABRIC_DIRECT_AV=FI_AV_MAP
30978			bgq_fabric_direct_av=$BGQ_FABRIC_DIRECT_AV
30979
30980
30981
30982# Check whether --with-bgq-mr was given.
30983if test "${with_bgq_mr+set}" = set; then :
30984  withval=$with_bgq_mr;
30985fi
30986
30987
30988			case $with_bgq_mr in #(
30989  scalable) :
30990    BGQ_FABRIC_DIRECT_MR=FI_MR_SCALABLE ;; #(
30991  basic) :
30992    BGQ_FABRIC_DIRECT_MR=FI_MR_BASIC ;; #(
30993  *) :
30994    BGQ_FABRIC_DIRECT_MR=FI_MR_SCALABLE ;;
30995esac
30996
30997			bgq_fabric_direct_mr=$BGQ_FABRIC_DIRECT_MR
30998
30999
31000						BGQ_FABRIC_DIRECT_THREAD=FI_THREAD_ENDPOINT
31001			bgq_fabric_direct_thread=$BGQ_FABRIC_DIRECT_THREAD
31002
31003
31004
31005			ac_config_files="$ac_config_files prov/bgq/include/rdma/fi_direct.h"
31006
31007
31008fi
31009
31010fi
31011
31012	if test $bgq_happy -eq 1; then :
31013  bgq_happy=1
31014else
31015  bgq_happy=0
31016fi
31017
31018
31019
31020
31021
31022
31023
31024
31025	# See if the provider configured successfully
31026	if test $bgq_happy -eq 1; then :
31027  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD bgq"
31028		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
31029
31030	 FI_PC_CFLAGS="$FI_PC_CFLAGS $bgq_CFLAGS $bgq_CPPFLAGS"
31031	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $bgq_LDFLAGS $bgq_LIBS"
31032
31033		 if test $bgq_dl -eq 1; then :
31034  PROVIDERS_DL="prov/bgq/libbgq.la $PROVIDERS_DL"
31035			 if test x"$enable_static" = x"yes" &&
31036				test x"$enable_shared" = x"no"; then :
31037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bgq provider was selected to be built as DL" >&5
31038$as_echo "$as_me: WARNING: bgq provider was selected to be built as DL" >&2;}
31039				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
31040$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
31041				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
31042fi
31043			 { $as_echo "$as_me:${as_lineno-$LINENO}: bgq provider: build as plugin" >&5
31044$as_echo "$as_me: bgq provider: build as plugin" >&6;}
31045
31046			 # See if this provider has a specfile that
31047			 # needs to be generated
31048
31049
31050else
31051  PROVIDERS_STATIC="prov/bgq/libbgq.la $PROVIDERS_STATIC"
31052			 { $as_echo "$as_me:${as_lineno-$LINENO}: bgq provider: include in libfabric" >&5
31053$as_echo "$as_me: bgq provider: include in libfabric" >&6;}
31054fi
31055
31056else
31057  { $as_echo "$as_me:${as_lineno-$LINENO}: bgq provider: disabled" >&5
31058$as_echo "$as_me: bgq provider: disabled" >&6;}
31059fi
31060
31061
31062cat >>confdefs.h <<_ACEOF
31063#define HAVE_BGQ $bgq_happy
31064_ACEOF
31065
31066
31067cat >>confdefs.h <<_ACEOF
31068#define HAVE_BGQ_DL $bgq_dl
31069_ACEOF
31070
31071
31072	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
31073	# as well as AC defines
31074	 if test $bgq_happy -eq 1; then
31075  HAVE_BGQ_TRUE=
31076  HAVE_BGQ_FALSE='#'
31077else
31078  HAVE_BGQ_TRUE='#'
31079  HAVE_BGQ_FALSE=
31080fi
31081
31082	 if test $bgq_dl -eq 1; then
31083  HAVE_BGQ_DL_TRUE=
31084  HAVE_BGQ_DL_FALSE='#'
31085else
31086  HAVE_BGQ_DL_TRUE='#'
31087  HAVE_BGQ_DL_FALSE=
31088fi
31089
31090
31091	# If this provider was specifically requested but we can't
31092	# build it, error.
31093	if test "$enable_bgq $bgq_happy" = "yes 0"; then :
31094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bgq provider was requested, but cannot be compiled" >&5
31095$as_echo "$as_me: WARNING: bgq provider was requested, but cannot be compiled" >&2;}
31096	       as_fn_error $? "Cannot continue" "$LINENO" 5
31097
31098fi
31099	# If this provider was requested for direct build, ensure that
31100	# provider's fi_direct.h exists in tree. Error otherwise.
31101	if test x"$enable_direct" = x"bgq"; then :
31102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/bgq/include/rdma/fi_direct.h" >&5
31103$as_echo_n "checking for $srcdir/prov/bgq/include/rdma/fi_direct.h... " >&6; }
31104		 if test -f "$srcdir/prov/bgq/include/rdma/fi_direct.h"; then :
31105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31106$as_echo "yes" >&6; }
31107else
31108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31109$as_echo "no" >&6; }
31110			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/bgq/include/rdma/fi_direct.h.in" >&5
31111$as_echo_n "checking for $srcdir/prov/bgq/include/rdma/fi_direct.h.in... " >&6; }
31112			 if test -f "$srcdir/prov/bgq/include/rdma/fi_direct.h.in"; then :
31113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31114$as_echo "yes" >&6; }
31115else
31116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31117$as_echo "no" >&6; }
31118				 as_fn_error $? "bgq provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
31119
31120fi
31121fi
31122fi
31123
31124	 if test -f "$srcdir/prov/bgq/include/rdma/fi_direct.h.in"; then
31125  FI_DIRECT_H_IN_TRUE=
31126  FI_DIRECT_H_IN_FALSE='#'
31127else
31128  FI_DIRECT_H_IN_TRUE='#'
31129  FI_DIRECT_H_IN_FALSE=
31130fi
31131
31132
31133
31134	# Restore CPPFLAGS/LDFLAGS/LIBS
31135	CPPFLAGS=$bgq_orig_CPPFLAGS
31136	unset bgq_orig_CPPFLAGS
31137	LDFLAGS=$bgq_orig_LDFLAGS
31138	unset bgq_orig_LDFLAGS
31139	LIBS=$bgq_orig_LIBS
31140	unset bgq_orig_LIBS
31141
31142
31143
31144	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"shm"; then :
31145  enable_shm=no
31146               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping shm provider because $enable_direct direct requested" >&5
31147$as_echo "$as_me: *** Skipping shm provider because $enable_direct direct requested" >&6;}
31148else
31149  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring shm provider" >&5
31150$as_echo "$as_me: *** Configuring shm provider" >&6;}
31151	       # Check whether --enable-shm was given.
31152if test "${enable_shm+set}" = set; then :
31153  enableval=$enable_shm;
31154else
31155  enable_shm=auto
31156fi
31157
31158fi
31159
31160	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
31161	# Provider's local macros could use the value if needed.
31162	# Also save LIBS, as a matter of principle.
31163	shm_orig_CPPFLAGS=$CPPFLAGS
31164	shm_orig_LDFLAGS=$LDFLAGS
31165	shm_orig_LIBS=$LIBS
31166
31167	# Check the --enable-<shm> value
31168	shm_dl=0
31169	case $enable_shm in #(
31170  yes|no) :
31171     ;; #(
31172  dl) :
31173    enable_shm=yes shm_dl=1 ;; #(
31174  auto) :
31175     ;; #(
31176  dl:*) :
31177
31178	# Check that the base directory exists
31179	if test ! -d "${enable_shm:3}"; then :
31180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_shm:3}\" does not exist" >&5
31181$as_echo "$as_me: WARNING: supplied directory \"${enable_shm:3}\" does not exist" >&2;}
31182	        as_fn_error $? "Cannot continue" "$LINENO" 5
31183
31184fi
31185
31186	# Check that base/include exists
31187	 if test -d "${enable_shm:3}/include"; then :
31188  shm_PREFIX="${enable_shm:3}"
31189else
31190  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_shm:3}\" directory\"" >&5
31191$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_shm:3}\" directory\"" >&2;}
31192	        as_fn_error $? "Cannot continue" "$LINENO" 5
31193
31194fi
31195
31196	# Check that base/lib or base/lib64 exists
31197	 if test -d "${enable_shm:3}/lib64"; then :
31198  shm_LIBDIR="${enable_shm:3}/lib64"
31199else
31200  if test -d "${enable_shm:3}/lib"; then :
31201  shm_LIBDIR="${enable_shm:3}/lib"
31202else
31203  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_shm:3}\" directory\"" >&5
31204$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_shm:3}\" directory\"" >&2;}
31205		       as_fn_error $? "Cannot continue" "$LINENO" 5
31206
31207fi
31208
31209fi
31210
31211		   enable_shm=yes shm_dl=1 ;; #(
31212  *) :
31213
31214	# Check that the base directory exists
31215	if test ! -d "$enable_shm"; then :
31216  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_shm\" does not exist" >&5
31217$as_echo "$as_me: WARNING: supplied directory \"$enable_shm\" does not exist" >&2;}
31218	        as_fn_error $? "Cannot continue" "$LINENO" 5
31219
31220fi
31221
31222	# Check that base/include exists
31223	 if test -d "$enable_shm/include"; then :
31224  shm_PREFIX="$enable_shm"
31225else
31226  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_shm\" directory\"" >&5
31227$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_shm\" directory\"" >&2;}
31228	        as_fn_error $? "Cannot continue" "$LINENO" 5
31229
31230fi
31231
31232	# Check that base/lib or base/lib64 exists
31233	 if test -d "$enable_shm/lib64"; then :
31234  shm_LIBDIR="$enable_shm/lib64"
31235else
31236  if test -d "$enable_shm/lib"; then :
31237  shm_LIBDIR="$enable_shm/lib"
31238else
31239  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_shm\" directory\"" >&5
31240$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_shm\" directory\"" >&2;}
31241		       as_fn_error $? "Cannot continue" "$LINENO" 5
31242
31243fi
31244
31245fi
31246
31247	 enable_shm=yes
31248	 ;;
31249esac
31250
31251	# Call the provider's CONFIGURE and CONDITIONALS macros
31252
31253
31254
31255
31256
31257
31258
31259	# Determine if we can support the shm provider
31260	shm_happy=0
31261	cma_happy=0
31262	if test x"$enable_shm" != x"no"; then :
31263
31264	       # check if CMA support are present
31265	       if test x$linux = x1 && test x$host_cpu = xx86_64; then :
31266  cma_happy=1
31267else
31268  ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
31269if test "x$ac_cv_func_process_vm_readv" = xyes; then :
31270  cma_happy=1
31271else
31272  cma_happy=0
31273fi
31274
31275
31276fi
31277
31278	       # check if SHM support are present
31279	       ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
31280if test "x$ac_cv_func_shm_open" = xyes; then :
31281  shm_happy=1
31282else
31283  shm_happy=0
31284fi
31285
31286
31287	       # look for shm_open in librt if not already present
31288	       if test $shm_happy -eq 0; then :
31289
31290    fi_check_package_shm_lib_save_CPPFLAGS="$CPPFLAGS"
31291    fi_check_package_shm_lib_save_LDFLAGS="$LDFLAGS"
31292    fi_check_package_shm_lib_save_LIBS="$LIBS"
31293
31294    fi_check_package_shm_lib_orig_CPPFLAGS="$shm_lib_CPPFLAGS"
31295    fi_check_package_shm_lib_orig_LDFLAGS="$shm_lib_LDFLAGS"
31296    fi_check_package_shm_lib_orig_LIBS="$shm_lib_LIBS"
31297
31298
31299    # This is stolen from autoconf to peek under the covers to get the
31300    # cache variable for the library check.
31301
31302
31303    # There's unfortunately no way to get through the progression of
31304    # header includes without killing off the cache variable and
31305    # trying again...
31306    unset ac_cv_header_sys_mman_h
31307
31308    fi_check_package_header_happy="no"
31309    if test "" = "/usr" || test "" = "/usr/local"; then :
31310   # try as is...
31311            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
31312$as_echo "looking for header without includes" >&6; }
31313            for ac_header in sys/mman.h
31314do :
31315  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
31316if test "x$ac_cv_header_sys_mman_h" = xyes; then :
31317  cat >>confdefs.h <<_ACEOF
31318#define HAVE_SYS_MMAN_H 1
31319_ACEOF
31320 fi_check_package_header_happy="yes"
31321fi
31322
31323done
31324
31325            if test "$fi_check_package_header_happy" = "no"; then :
31326  # no go on the as is - reset the cache and try again
31327                   unset ac_cv_header_sys_mman_h
31328fi
31329fi
31330
31331    if test "$fi_check_package_header_happy" = "no"; then :
31332  if test "" != ""; then :
31333  shm_lib_CPPFLAGS="$shm_lib_CPPFLAGS -I/include"
31334                  CPPFLAGS="$CPPFLAGS -I/include"
31335fi
31336          for ac_header in sys/mman.h
31337do :
31338  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
31339if test "x$ac_cv_header_sys_mman_h" = xyes; then :
31340  cat >>confdefs.h <<_ACEOF
31341#define HAVE_SYS_MMAN_H 1
31342_ACEOF
31343 fi_check_package_header_happy="yes"
31344fi
31345
31346done
31347
31348          if test "$fi_check_package_header_happy" = "yes"; then :
31349
31350    # This is stolen from autoconf to peek under the covers to get the
31351    # cache variable for the library check.
31352
31353    # See comment above
31354    unset ac_cv_lib_rt_shm_open
31355    fi_check_package_lib_happy="no"
31356    if test "" != ""; then :
31357   # libdir was specified - search only there
31358           shm_lib_LDFLAGS="$shm_lib_LDFLAGS -L"
31359           LDFLAGS="$LDFLAGS -L"
31360           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31361$as_echo_n "checking for shm_open in -lrt... " >&6; }
31362if ${ac_cv_lib_rt_shm_open+:} false; then :
31363  $as_echo_n "(cached) " >&6
31364else
31365  ac_check_lib_save_LIBS=$LIBS
31366LIBS="-lrt  $LIBS"
31367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31368/* end confdefs.h.  */
31369
31370/* Override any GCC internal prototype to avoid an error.
31371   Use char because int might match the return type of a GCC
31372   builtin and then its argument prototype would still apply.  */
31373#ifdef __cplusplus
31374extern "C"
31375#endif
31376char shm_open ();
31377int
31378main ()
31379{
31380return shm_open ();
31381  ;
31382  return 0;
31383}
31384_ACEOF
31385if ac_fn_c_try_link "$LINENO"; then :
31386  ac_cv_lib_rt_shm_open=yes
31387else
31388  ac_cv_lib_rt_shm_open=no
31389fi
31390rm -f core conftest.err conftest.$ac_objext \
31391    conftest$ac_exeext conftest.$ac_ext
31392LIBS=$ac_check_lib_save_LIBS
31393fi
31394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31395$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31396if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31397  fi_check_package_lib_happy="yes"
31398else
31399  fi_check_package_lib_happy="no"
31400fi
31401
31402           if test "$fi_check_package_lib_happy" = "no"; then :
31403  LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31404                  shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31405                  unset ac_cv_lib_rt_shm_open
31406fi
31407else
31408   # libdir was not specified - go through search path
31409           fi_check_package_libdir=""
31410           if test "$fi_check_package_libdir" = "" || \
31411                  test "$fi_check_package_libdir" = "/usr" || \
31412                  test "$fi_check_package_libdir" = "/usr/local"; then :
31413   # try as is...
31414                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
31415$as_echo "looking for library without search path" >&6; }
31416                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31417$as_echo_n "checking for shm_open in -lrt... " >&6; }
31418if ${ac_cv_lib_rt_shm_open+:} false; then :
31419  $as_echo_n "(cached) " >&6
31420else
31421  ac_check_lib_save_LIBS=$LIBS
31422LIBS="-lrt  $LIBS"
31423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31424/* end confdefs.h.  */
31425
31426/* Override any GCC internal prototype to avoid an error.
31427   Use char because int might match the return type of a GCC
31428   builtin and then its argument prototype would still apply.  */
31429#ifdef __cplusplus
31430extern "C"
31431#endif
31432char shm_open ();
31433int
31434main ()
31435{
31436return shm_open ();
31437  ;
31438  return 0;
31439}
31440_ACEOF
31441if ac_fn_c_try_link "$LINENO"; then :
31442  ac_cv_lib_rt_shm_open=yes
31443else
31444  ac_cv_lib_rt_shm_open=no
31445fi
31446rm -f core conftest.err conftest.$ac_objext \
31447    conftest$ac_exeext conftest.$ac_ext
31448LIBS=$ac_check_lib_save_LIBS
31449fi
31450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31451$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31452if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31453  fi_check_package_lib_happy="yes"
31454else
31455  fi_check_package_lib_happy="no"
31456fi
31457
31458                if test "$fi_check_package_lib_happy" = "no"; then :
31459   # no go on the as is..  see what happens later...
31460                     LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31461                     shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31462                     unset ac_cv_lib_rt_shm_open
31463fi
31464fi
31465
31466           if test "$fi_check_package_lib_happy" = "no"; then :
31467  if test "$fi_check_package_libdir" != ""; then :
31468  shm_lib_LDFLAGS="$shm_lib_LDFLAGS -L$fi_check_package_libdir/lib64"
31469                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
31470                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
31471$as_echo "looking for library in lib64" >&6; }
31472                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31473$as_echo_n "checking for shm_open in -lrt... " >&6; }
31474if ${ac_cv_lib_rt_shm_open+:} false; then :
31475  $as_echo_n "(cached) " >&6
31476else
31477  ac_check_lib_save_LIBS=$LIBS
31478LIBS="-lrt  $LIBS"
31479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31480/* end confdefs.h.  */
31481
31482/* Override any GCC internal prototype to avoid an error.
31483   Use char because int might match the return type of a GCC
31484   builtin and then its argument prototype would still apply.  */
31485#ifdef __cplusplus
31486extern "C"
31487#endif
31488char shm_open ();
31489int
31490main ()
31491{
31492return shm_open ();
31493  ;
31494  return 0;
31495}
31496_ACEOF
31497if ac_fn_c_try_link "$LINENO"; then :
31498  ac_cv_lib_rt_shm_open=yes
31499else
31500  ac_cv_lib_rt_shm_open=no
31501fi
31502rm -f core conftest.err conftest.$ac_objext \
31503    conftest$ac_exeext conftest.$ac_ext
31504LIBS=$ac_check_lib_save_LIBS
31505fi
31506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31507$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31508if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31509  fi_check_package_lib_happy="yes"
31510else
31511  fi_check_package_lib_happy="no"
31512fi
31513
31514                     if test "$fi_check_package_lib_happy" = "no"; then :
31515   # no go on the as is..  see what happens later...
31516                          LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31517                          shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31518                          unset ac_cv_lib_rt_shm_open
31519fi
31520fi
31521fi
31522
31523           if test "$fi_check_package_lib_happy" = "no"; then :
31524  if test "$fi_check_package_libdir" != ""; then :
31525  shm_lib_LDFLAGS="$shm_lib_LDFLAGS -L$fi_check_package_libdir/lib"
31526                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
31527                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
31528$as_echo "looking for library in lib" >&6; }
31529                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31530$as_echo_n "checking for shm_open in -lrt... " >&6; }
31531if ${ac_cv_lib_rt_shm_open+:} false; then :
31532  $as_echo_n "(cached) " >&6
31533else
31534  ac_check_lib_save_LIBS=$LIBS
31535LIBS="-lrt  $LIBS"
31536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31537/* end confdefs.h.  */
31538
31539/* Override any GCC internal prototype to avoid an error.
31540   Use char because int might match the return type of a GCC
31541   builtin and then its argument prototype would still apply.  */
31542#ifdef __cplusplus
31543extern "C"
31544#endif
31545char shm_open ();
31546int
31547main ()
31548{
31549return shm_open ();
31550  ;
31551  return 0;
31552}
31553_ACEOF
31554if ac_fn_c_try_link "$LINENO"; then :
31555  ac_cv_lib_rt_shm_open=yes
31556else
31557  ac_cv_lib_rt_shm_open=no
31558fi
31559rm -f core conftest.err conftest.$ac_objext \
31560    conftest$ac_exeext conftest.$ac_ext
31561LIBS=$ac_check_lib_save_LIBS
31562fi
31563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31564$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31565if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31566  fi_check_package_lib_happy="yes"
31567else
31568  fi_check_package_lib_happy="no"
31569fi
31570
31571                     if test "$fi_check_package_lib_happy" = "no"; then :
31572   # no go on the as is..  see what happens later...
31573                          LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31574                          shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31575                          unset ac_cv_lib_rt_shm_open
31576fi
31577fi
31578fi
31579fi
31580
31581    if test "$fi_check_package_lib_happy" = "yes"; then :
31582  shm_lib_LIBS="-lrt "
31583           fi_check_package_happy="yes"
31584else
31585  fi_check_package_happy="no"
31586fi
31587
31588
31589else
31590  fi_check_package_happy="no"
31591fi
31592else
31593
31594    # This is stolen from autoconf to peek under the covers to get the
31595    # cache variable for the library check.
31596
31597    # See comment above
31598    unset ac_cv_lib_rt_shm_open
31599    fi_check_package_lib_happy="no"
31600    if test "" != ""; then :
31601   # libdir was specified - search only there
31602           shm_lib_LDFLAGS="$shm_lib_LDFLAGS -L"
31603           LDFLAGS="$LDFLAGS -L"
31604           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31605$as_echo_n "checking for shm_open in -lrt... " >&6; }
31606if ${ac_cv_lib_rt_shm_open+:} false; then :
31607  $as_echo_n "(cached) " >&6
31608else
31609  ac_check_lib_save_LIBS=$LIBS
31610LIBS="-lrt  $LIBS"
31611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31612/* end confdefs.h.  */
31613
31614/* Override any GCC internal prototype to avoid an error.
31615   Use char because int might match the return type of a GCC
31616   builtin and then its argument prototype would still apply.  */
31617#ifdef __cplusplus
31618extern "C"
31619#endif
31620char shm_open ();
31621int
31622main ()
31623{
31624return shm_open ();
31625  ;
31626  return 0;
31627}
31628_ACEOF
31629if ac_fn_c_try_link "$LINENO"; then :
31630  ac_cv_lib_rt_shm_open=yes
31631else
31632  ac_cv_lib_rt_shm_open=no
31633fi
31634rm -f core conftest.err conftest.$ac_objext \
31635    conftest$ac_exeext conftest.$ac_ext
31636LIBS=$ac_check_lib_save_LIBS
31637fi
31638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31639$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31640if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31641  fi_check_package_lib_happy="yes"
31642else
31643  fi_check_package_lib_happy="no"
31644fi
31645
31646           if test "$fi_check_package_lib_happy" = "no"; then :
31647  LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31648                  shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31649                  unset ac_cv_lib_rt_shm_open
31650fi
31651else
31652   # libdir was not specified - go through search path
31653           fi_check_package_libdir=""
31654           if test "$fi_check_package_libdir" = "" || \
31655                  test "$fi_check_package_libdir" = "/usr" || \
31656                  test "$fi_check_package_libdir" = "/usr/local"; then :
31657   # try as is...
31658                { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
31659$as_echo "looking for library without search path" >&6; }
31660                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31661$as_echo_n "checking for shm_open in -lrt... " >&6; }
31662if ${ac_cv_lib_rt_shm_open+:} false; then :
31663  $as_echo_n "(cached) " >&6
31664else
31665  ac_check_lib_save_LIBS=$LIBS
31666LIBS="-lrt  $LIBS"
31667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31668/* end confdefs.h.  */
31669
31670/* Override any GCC internal prototype to avoid an error.
31671   Use char because int might match the return type of a GCC
31672   builtin and then its argument prototype would still apply.  */
31673#ifdef __cplusplus
31674extern "C"
31675#endif
31676char shm_open ();
31677int
31678main ()
31679{
31680return shm_open ();
31681  ;
31682  return 0;
31683}
31684_ACEOF
31685if ac_fn_c_try_link "$LINENO"; then :
31686  ac_cv_lib_rt_shm_open=yes
31687else
31688  ac_cv_lib_rt_shm_open=no
31689fi
31690rm -f core conftest.err conftest.$ac_objext \
31691    conftest$ac_exeext conftest.$ac_ext
31692LIBS=$ac_check_lib_save_LIBS
31693fi
31694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31695$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31696if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31697  fi_check_package_lib_happy="yes"
31698else
31699  fi_check_package_lib_happy="no"
31700fi
31701
31702                if test "$fi_check_package_lib_happy" = "no"; then :
31703   # no go on the as is..  see what happens later...
31704                     LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31705                     shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31706                     unset ac_cv_lib_rt_shm_open
31707fi
31708fi
31709
31710           if test "$fi_check_package_lib_happy" = "no"; then :
31711  if test "$fi_check_package_libdir" != ""; then :
31712  shm_lib_LDFLAGS="$shm_lib_LDFLAGS -L$fi_check_package_libdir/lib64"
31713                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib64"
31714                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib64" >&5
31715$as_echo "looking for library in lib64" >&6; }
31716                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31717$as_echo_n "checking for shm_open in -lrt... " >&6; }
31718if ${ac_cv_lib_rt_shm_open+:} false; then :
31719  $as_echo_n "(cached) " >&6
31720else
31721  ac_check_lib_save_LIBS=$LIBS
31722LIBS="-lrt  $LIBS"
31723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31724/* end confdefs.h.  */
31725
31726/* Override any GCC internal prototype to avoid an error.
31727   Use char because int might match the return type of a GCC
31728   builtin and then its argument prototype would still apply.  */
31729#ifdef __cplusplus
31730extern "C"
31731#endif
31732char shm_open ();
31733int
31734main ()
31735{
31736return shm_open ();
31737  ;
31738  return 0;
31739}
31740_ACEOF
31741if ac_fn_c_try_link "$LINENO"; then :
31742  ac_cv_lib_rt_shm_open=yes
31743else
31744  ac_cv_lib_rt_shm_open=no
31745fi
31746rm -f core conftest.err conftest.$ac_objext \
31747    conftest$ac_exeext conftest.$ac_ext
31748LIBS=$ac_check_lib_save_LIBS
31749fi
31750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31751$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31752if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31753  fi_check_package_lib_happy="yes"
31754else
31755  fi_check_package_lib_happy="no"
31756fi
31757
31758                     if test "$fi_check_package_lib_happy" = "no"; then :
31759   # no go on the as is..  see what happens later...
31760                          LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31761                          shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31762                          unset ac_cv_lib_rt_shm_open
31763fi
31764fi
31765fi
31766
31767           if test "$fi_check_package_lib_happy" = "no"; then :
31768  if test "$fi_check_package_libdir" != ""; then :
31769  shm_lib_LDFLAGS="$shm_lib_LDFLAGS -L$fi_check_package_libdir/lib"
31770                     LDFLAGS="$LDFLAGS -L$fi_check_package_libdir/lib"
31771                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in lib" >&5
31772$as_echo "looking for library in lib" >&6; }
31773                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
31774$as_echo_n "checking for shm_open in -lrt... " >&6; }
31775if ${ac_cv_lib_rt_shm_open+:} false; then :
31776  $as_echo_n "(cached) " >&6
31777else
31778  ac_check_lib_save_LIBS=$LIBS
31779LIBS="-lrt  $LIBS"
31780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31781/* end confdefs.h.  */
31782
31783/* Override any GCC internal prototype to avoid an error.
31784   Use char because int might match the return type of a GCC
31785   builtin and then its argument prototype would still apply.  */
31786#ifdef __cplusplus
31787extern "C"
31788#endif
31789char shm_open ();
31790int
31791main ()
31792{
31793return shm_open ();
31794  ;
31795  return 0;
31796}
31797_ACEOF
31798if ac_fn_c_try_link "$LINENO"; then :
31799  ac_cv_lib_rt_shm_open=yes
31800else
31801  ac_cv_lib_rt_shm_open=no
31802fi
31803rm -f core conftest.err conftest.$ac_objext \
31804    conftest$ac_exeext conftest.$ac_ext
31805LIBS=$ac_check_lib_save_LIBS
31806fi
31807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
31808$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
31809if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
31810  fi_check_package_lib_happy="yes"
31811else
31812  fi_check_package_lib_happy="no"
31813fi
31814
31815                     if test "$fi_check_package_lib_happy" = "no"; then :
31816   # no go on the as is..  see what happens later...
31817                          LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31818                          shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31819                          unset ac_cv_lib_rt_shm_open
31820fi
31821fi
31822fi
31823fi
31824
31825    if test "$fi_check_package_lib_happy" = "yes"; then :
31826  shm_lib_LIBS="-lrt "
31827           fi_check_package_happy="yes"
31828else
31829  fi_check_package_happy="no"
31830fi
31831
31832
31833fi
31834    unset fi_check_package_header_happy
31835
31836
31837
31838    if test "$fi_check_package_happy" = "yes"; then :
31839  shm_happy=1
31840else
31841  shm_lib_CPPFLAGS="$fi_check_package_shm_lib_orig_CPPFLAGS"
31842           shm_lib_LDFLAGS="$fi_check_package_shm_lib_orig_LDFLAGS"
31843           shm_lib_LIBS="$fi_check_package_shm_lib_orig_LIBS"
31844           shm_happy=0
31845fi
31846
31847
31848
31849
31850
31851    CPPFLAGS="$fi_check_package_shm_lib_save_CPPFLAGS"
31852    LDFLAGS="$fi_check_package_shm_lib_save_LDFLAGS"
31853    LIBS="$fi_check_package_shm_lib_save_LIBS"
31854
31855fi
31856
31857fi
31858
31859	if test $shm_happy -eq 1 && \
31860	       test $cma_happy -eq 1; then :
31861  shm_happy=1
31862else
31863  shm_happy=0
31864fi
31865
31866
31867
31868
31869
31870
31871
31872	# See if the provider configured successfully
31873	if test $shm_happy -eq 1; then :
31874  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD shm"
31875		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
31876
31877	 FI_PC_CFLAGS="$FI_PC_CFLAGS $shm_CFLAGS $shm_CPPFLAGS"
31878	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $shm_LDFLAGS $shm_LIBS"
31879
31880		 if test $shm_dl -eq 1; then :
31881  PROVIDERS_DL="prov/shm/libshm.la $PROVIDERS_DL"
31882			 if test x"$enable_static" = x"yes" &&
31883				test x"$enable_shared" = x"no"; then :
31884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shm provider was selected to be built as DL" >&5
31885$as_echo "$as_me: WARNING: shm provider was selected to be built as DL" >&2;}
31886				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
31887$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
31888				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
31889fi
31890			 { $as_echo "$as_me:${as_lineno-$LINENO}: shm provider: build as plugin" >&5
31891$as_echo "$as_me: shm provider: build as plugin" >&6;}
31892
31893			 # See if this provider has a specfile that
31894			 # needs to be generated
31895
31896
31897else
31898  PROVIDERS_STATIC="prov/shm/libshm.la $PROVIDERS_STATIC"
31899			 { $as_echo "$as_me:${as_lineno-$LINENO}: shm provider: include in libfabric" >&5
31900$as_echo "$as_me: shm provider: include in libfabric" >&6;}
31901fi
31902
31903else
31904  { $as_echo "$as_me:${as_lineno-$LINENO}: shm provider: disabled" >&5
31905$as_echo "$as_me: shm provider: disabled" >&6;}
31906fi
31907
31908
31909cat >>confdefs.h <<_ACEOF
31910#define HAVE_SHM $shm_happy
31911_ACEOF
31912
31913
31914cat >>confdefs.h <<_ACEOF
31915#define HAVE_SHM_DL $shm_dl
31916_ACEOF
31917
31918
31919	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
31920	# as well as AC defines
31921	 if test $shm_happy -eq 1; then
31922  HAVE_SHM_TRUE=
31923  HAVE_SHM_FALSE='#'
31924else
31925  HAVE_SHM_TRUE='#'
31926  HAVE_SHM_FALSE=
31927fi
31928
31929	 if test $shm_dl -eq 1; then
31930  HAVE_SHM_DL_TRUE=
31931  HAVE_SHM_DL_FALSE='#'
31932else
31933  HAVE_SHM_DL_TRUE='#'
31934  HAVE_SHM_DL_FALSE=
31935fi
31936
31937
31938	# If this provider was specifically requested but we can't
31939	# build it, error.
31940	if test "$enable_shm $shm_happy" = "yes 0"; then :
31941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shm provider was requested, but cannot be compiled" >&5
31942$as_echo "$as_me: WARNING: shm provider was requested, but cannot be compiled" >&2;}
31943	       as_fn_error $? "Cannot continue" "$LINENO" 5
31944
31945fi
31946	# If this provider was requested for direct build, ensure that
31947	# provider's fi_direct.h exists in tree. Error otherwise.
31948	if test x"$enable_direct" = x"shm"; then :
31949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/shm/include/rdma/fi_direct.h" >&5
31950$as_echo_n "checking for $srcdir/prov/shm/include/rdma/fi_direct.h... " >&6; }
31951		 if test -f "$srcdir/prov/shm/include/rdma/fi_direct.h"; then :
31952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31953$as_echo "yes" >&6; }
31954else
31955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31956$as_echo "no" >&6; }
31957			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/shm/include/rdma/fi_direct.h.in" >&5
31958$as_echo_n "checking for $srcdir/prov/shm/include/rdma/fi_direct.h.in... " >&6; }
31959			 if test -f "$srcdir/prov/shm/include/rdma/fi_direct.h.in"; then :
31960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31961$as_echo "yes" >&6; }
31962else
31963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31964$as_echo "no" >&6; }
31965				 as_fn_error $? "shm provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
31966
31967fi
31968fi
31969fi
31970
31971	 if test -f "$srcdir/prov/shm/include/rdma/fi_direct.h.in"; then
31972  FI_DIRECT_H_IN_TRUE=
31973  FI_DIRECT_H_IN_FALSE='#'
31974else
31975  FI_DIRECT_H_IN_TRUE='#'
31976  FI_DIRECT_H_IN_FALSE=
31977fi
31978
31979
31980
31981	# Restore CPPFLAGS/LDFLAGS/LIBS
31982	CPPFLAGS=$shm_orig_CPPFLAGS
31983	unset shm_orig_CPPFLAGS
31984	LDFLAGS=$shm_orig_LDFLAGS
31985	unset shm_orig_LDFLAGS
31986	LIBS=$shm_orig_LIBS
31987	unset shm_orig_LIBS
31988
31989
31990
31991	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"rstream"; then :
31992  enable_rstream=no
31993               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping rstream provider because $enable_direct direct requested" >&5
31994$as_echo "$as_me: *** Skipping rstream provider because $enable_direct direct requested" >&6;}
31995else
31996  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring rstream provider" >&5
31997$as_echo "$as_me: *** Configuring rstream provider" >&6;}
31998	       # Check whether --enable-rstream was given.
31999if test "${enable_rstream+set}" = set; then :
32000  enableval=$enable_rstream;
32001else
32002  enable_rstream=auto
32003fi
32004
32005fi
32006
32007	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
32008	# Provider's local macros could use the value if needed.
32009	# Also save LIBS, as a matter of principle.
32010	rstream_orig_CPPFLAGS=$CPPFLAGS
32011	rstream_orig_LDFLAGS=$LDFLAGS
32012	rstream_orig_LIBS=$LIBS
32013
32014	# Check the --enable-<rstream> value
32015	rstream_dl=0
32016	case $enable_rstream in #(
32017  yes|no) :
32018     ;; #(
32019  dl) :
32020    enable_rstream=yes rstream_dl=1 ;; #(
32021  auto) :
32022     ;; #(
32023  dl:*) :
32024
32025	# Check that the base directory exists
32026	if test ! -d "${enable_rstream:3}"; then :
32027  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_rstream:3}\" does not exist" >&5
32028$as_echo "$as_me: WARNING: supplied directory \"${enable_rstream:3}\" does not exist" >&2;}
32029	        as_fn_error $? "Cannot continue" "$LINENO" 5
32030
32031fi
32032
32033	# Check that base/include exists
32034	 if test -d "${enable_rstream:3}/include"; then :
32035  rstream_PREFIX="${enable_rstream:3}"
32036else
32037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_rstream:3}\" directory\"" >&5
32038$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_rstream:3}\" directory\"" >&2;}
32039	        as_fn_error $? "Cannot continue" "$LINENO" 5
32040
32041fi
32042
32043	# Check that base/lib or base/lib64 exists
32044	 if test -d "${enable_rstream:3}/lib64"; then :
32045  rstream_LIBDIR="${enable_rstream:3}/lib64"
32046else
32047  if test -d "${enable_rstream:3}/lib"; then :
32048  rstream_LIBDIR="${enable_rstream:3}/lib"
32049else
32050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_rstream:3}\" directory\"" >&5
32051$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_rstream:3}\" directory\"" >&2;}
32052		       as_fn_error $? "Cannot continue" "$LINENO" 5
32053
32054fi
32055
32056fi
32057
32058		   enable_rstream=yes rstream_dl=1 ;; #(
32059  *) :
32060
32061	# Check that the base directory exists
32062	if test ! -d "$enable_rstream"; then :
32063  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_rstream\" does not exist" >&5
32064$as_echo "$as_me: WARNING: supplied directory \"$enable_rstream\" does not exist" >&2;}
32065	        as_fn_error $? "Cannot continue" "$LINENO" 5
32066
32067fi
32068
32069	# Check that base/include exists
32070	 if test -d "$enable_rstream/include"; then :
32071  rstream_PREFIX="$enable_rstream"
32072else
32073  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_rstream\" directory\"" >&5
32074$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_rstream\" directory\"" >&2;}
32075	        as_fn_error $? "Cannot continue" "$LINENO" 5
32076
32077fi
32078
32079	# Check that base/lib or base/lib64 exists
32080	 if test -d "$enable_rstream/lib64"; then :
32081  rstream_LIBDIR="$enable_rstream/lib64"
32082else
32083  if test -d "$enable_rstream/lib"; then :
32084  rstream_LIBDIR="$enable_rstream/lib"
32085else
32086  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_rstream\" directory\"" >&5
32087$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_rstream\" directory\"" >&2;}
32088		       as_fn_error $? "Cannot continue" "$LINENO" 5
32089
32090fi
32091
32092fi
32093
32094	 enable_rstream=yes
32095	 ;;
32096esac
32097
32098	# Call the provider's CONFIGURE and CONDITIONALS macros
32099
32100
32101
32102
32103
32104
32105
32106	# Determine if we can support the rxd provider
32107	rstream_h_happy=0
32108	if test x"$enable_rstream" != x"no"; then :
32109  rstream_h_happy=1
32110fi
32111        if test $rstream_h_happy -eq 1; then :
32112  rstream_happy=1
32113else
32114  rstream_happy=0
32115fi
32116
32117
32118
32119
32120
32121
32122
32123	# See if the provider configured successfully
32124	if test $rstream_happy -eq 1; then :
32125  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD rstream"
32126		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
32127
32128	 FI_PC_CFLAGS="$FI_PC_CFLAGS $rstream_CFLAGS $rstream_CPPFLAGS"
32129	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $rstream_LDFLAGS $rstream_LIBS"
32130
32131		 if test $rstream_dl -eq 1; then :
32132  PROVIDERS_DL="prov/rstream/librstream.la $PROVIDERS_DL"
32133			 if test x"$enable_static" = x"yes" &&
32134				test x"$enable_shared" = x"no"; then :
32135  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rstream provider was selected to be built as DL" >&5
32136$as_echo "$as_me: WARNING: rstream provider was selected to be built as DL" >&2;}
32137				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
32138$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
32139				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
32140fi
32141			 { $as_echo "$as_me:${as_lineno-$LINENO}: rstream provider: build as plugin" >&5
32142$as_echo "$as_me: rstream provider: build as plugin" >&6;}
32143
32144			 # See if this provider has a specfile that
32145			 # needs to be generated
32146
32147
32148else
32149  PROVIDERS_STATIC="prov/rstream/librstream.la $PROVIDERS_STATIC"
32150			 { $as_echo "$as_me:${as_lineno-$LINENO}: rstream provider: include in libfabric" >&5
32151$as_echo "$as_me: rstream provider: include in libfabric" >&6;}
32152fi
32153
32154else
32155  { $as_echo "$as_me:${as_lineno-$LINENO}: rstream provider: disabled" >&5
32156$as_echo "$as_me: rstream provider: disabled" >&6;}
32157fi
32158
32159
32160cat >>confdefs.h <<_ACEOF
32161#define HAVE_RSTREAM $rstream_happy
32162_ACEOF
32163
32164
32165cat >>confdefs.h <<_ACEOF
32166#define HAVE_RSTREAM_DL $rstream_dl
32167_ACEOF
32168
32169
32170	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
32171	# as well as AC defines
32172	 if test $rstream_happy -eq 1; then
32173  HAVE_RSTREAM_TRUE=
32174  HAVE_RSTREAM_FALSE='#'
32175else
32176  HAVE_RSTREAM_TRUE='#'
32177  HAVE_RSTREAM_FALSE=
32178fi
32179
32180	 if test $rstream_dl -eq 1; then
32181  HAVE_RSTREAM_DL_TRUE=
32182  HAVE_RSTREAM_DL_FALSE='#'
32183else
32184  HAVE_RSTREAM_DL_TRUE='#'
32185  HAVE_RSTREAM_DL_FALSE=
32186fi
32187
32188
32189	# If this provider was specifically requested but we can't
32190	# build it, error.
32191	if test "$enable_rstream $rstream_happy" = "yes 0"; then :
32192  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rstream provider was requested, but cannot be compiled" >&5
32193$as_echo "$as_me: WARNING: rstream provider was requested, but cannot be compiled" >&2;}
32194	       as_fn_error $? "Cannot continue" "$LINENO" 5
32195
32196fi
32197	# If this provider was requested for direct build, ensure that
32198	# provider's fi_direct.h exists in tree. Error otherwise.
32199	if test x"$enable_direct" = x"rstream"; then :
32200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/rstream/include/rdma/fi_direct.h" >&5
32201$as_echo_n "checking for $srcdir/prov/rstream/include/rdma/fi_direct.h... " >&6; }
32202		 if test -f "$srcdir/prov/rstream/include/rdma/fi_direct.h"; then :
32203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32204$as_echo "yes" >&6; }
32205else
32206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32207$as_echo "no" >&6; }
32208			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/rstream/include/rdma/fi_direct.h.in" >&5
32209$as_echo_n "checking for $srcdir/prov/rstream/include/rdma/fi_direct.h.in... " >&6; }
32210			 if test -f "$srcdir/prov/rstream/include/rdma/fi_direct.h.in"; then :
32211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32212$as_echo "yes" >&6; }
32213else
32214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32215$as_echo "no" >&6; }
32216				 as_fn_error $? "rstream provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
32217
32218fi
32219fi
32220fi
32221
32222	 if test -f "$srcdir/prov/rstream/include/rdma/fi_direct.h.in"; then
32223  FI_DIRECT_H_IN_TRUE=
32224  FI_DIRECT_H_IN_FALSE='#'
32225else
32226  FI_DIRECT_H_IN_TRUE='#'
32227  FI_DIRECT_H_IN_FALSE=
32228fi
32229
32230
32231
32232	# Restore CPPFLAGS/LDFLAGS/LIBS
32233	CPPFLAGS=$rstream_orig_CPPFLAGS
32234	unset rstream_orig_CPPFLAGS
32235	LDFLAGS=$rstream_orig_LDFLAGS
32236	unset rstream_orig_LDFLAGS
32237	LIBS=$rstream_orig_LIBS
32238	unset rstream_orig_LIBS
32239
32240
32241
32242	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"perf"; then :
32243  enable_perf=no
32244               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping perf provider because $enable_direct direct requested" >&5
32245$as_echo "$as_me: *** Skipping perf provider because $enable_direct direct requested" >&6;}
32246else
32247  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring perf provider" >&5
32248$as_echo "$as_me: *** Configuring perf provider" >&6;}
32249	       # Check whether --enable-perf was given.
32250if test "${enable_perf+set}" = set; then :
32251  enableval=$enable_perf;
32252else
32253  enable_perf=auto
32254fi
32255
32256fi
32257
32258	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
32259	# Provider's local macros could use the value if needed.
32260	# Also save LIBS, as a matter of principle.
32261	perf_orig_CPPFLAGS=$CPPFLAGS
32262	perf_orig_LDFLAGS=$LDFLAGS
32263	perf_orig_LIBS=$LIBS
32264
32265	# Check the --enable-<perf> value
32266	perf_dl=0
32267	case $enable_perf in #(
32268  yes|no) :
32269     ;; #(
32270  dl) :
32271    enable_perf=yes perf_dl=1 ;; #(
32272  auto) :
32273     ;; #(
32274  dl:*) :
32275
32276	# Check that the base directory exists
32277	if test ! -d "${enable_perf:3}"; then :
32278  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_perf:3}\" does not exist" >&5
32279$as_echo "$as_me: WARNING: supplied directory \"${enable_perf:3}\" does not exist" >&2;}
32280	        as_fn_error $? "Cannot continue" "$LINENO" 5
32281
32282fi
32283
32284	# Check that base/include exists
32285	 if test -d "${enable_perf:3}/include"; then :
32286  perf_PREFIX="${enable_perf:3}"
32287else
32288  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_perf:3}\" directory\"" >&5
32289$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_perf:3}\" directory\"" >&2;}
32290	        as_fn_error $? "Cannot continue" "$LINENO" 5
32291
32292fi
32293
32294	# Check that base/lib or base/lib64 exists
32295	 if test -d "${enable_perf:3}/lib64"; then :
32296  perf_LIBDIR="${enable_perf:3}/lib64"
32297else
32298  if test -d "${enable_perf:3}/lib"; then :
32299  perf_LIBDIR="${enable_perf:3}/lib"
32300else
32301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_perf:3}\" directory\"" >&5
32302$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_perf:3}\" directory\"" >&2;}
32303		       as_fn_error $? "Cannot continue" "$LINENO" 5
32304
32305fi
32306
32307fi
32308
32309		   enable_perf=yes perf_dl=1 ;; #(
32310  *) :
32311
32312	# Check that the base directory exists
32313	if test ! -d "$enable_perf"; then :
32314  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_perf\" does not exist" >&5
32315$as_echo "$as_me: WARNING: supplied directory \"$enable_perf\" does not exist" >&2;}
32316	        as_fn_error $? "Cannot continue" "$LINENO" 5
32317
32318fi
32319
32320	# Check that base/include exists
32321	 if test -d "$enable_perf/include"; then :
32322  perf_PREFIX="$enable_perf"
32323else
32324  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_perf\" directory\"" >&5
32325$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_perf\" directory\"" >&2;}
32326	        as_fn_error $? "Cannot continue" "$LINENO" 5
32327
32328fi
32329
32330	# Check that base/lib or base/lib64 exists
32331	 if test -d "$enable_perf/lib64"; then :
32332  perf_LIBDIR="$enable_perf/lib64"
32333else
32334  if test -d "$enable_perf/lib"; then :
32335  perf_LIBDIR="$enable_perf/lib"
32336else
32337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_perf\" directory\"" >&5
32338$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_perf\" directory\"" >&2;}
32339		       as_fn_error $? "Cannot continue" "$LINENO" 5
32340
32341fi
32342
32343fi
32344
32345	 enable_perf=yes
32346	 ;;
32347esac
32348
32349	# Call the provider's CONFIGURE and CONDITIONALS macros
32350
32351
32352
32353
32354
32355
32356
32357
32358    # Determine if we can support the perf hooking provider
32359    perf_happy=0
32360    if test x"$enable_perf" != x"no"; then :
32361  perf_happy=1
32362fi
32363    if test x"$perf_dl" == x"1"; then :
32364
32365	perf_happy=0
32366	as_fn_error $? "perf provider cannot be compiled as DL" "$LINENO" 5
32367
32368fi
32369    if test $perf_happy -eq 1; then :
32370  perf_happy=1
32371else
32372  perf_happy=0
32373fi
32374
32375
32376
32377
32378
32379
32380
32381
32382	# See if the provider configured successfully
32383	if test $perf_happy -eq 1; then :
32384  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD perf"
32385		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
32386
32387	 FI_PC_CFLAGS="$FI_PC_CFLAGS $perf_CFLAGS $perf_CPPFLAGS"
32388	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $perf_LDFLAGS $perf_LIBS"
32389
32390		 if test $perf_dl -eq 1; then :
32391  PROVIDERS_DL="prov/perf/libperf.la $PROVIDERS_DL"
32392			 if test x"$enable_static" = x"yes" &&
32393				test x"$enable_shared" = x"no"; then :
32394  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perf provider was selected to be built as DL" >&5
32395$as_echo "$as_me: WARNING: perf provider was selected to be built as DL" >&2;}
32396				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
32397$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
32398				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
32399fi
32400			 { $as_echo "$as_me:${as_lineno-$LINENO}: perf provider: build as plugin" >&5
32401$as_echo "$as_me: perf provider: build as plugin" >&6;}
32402
32403			 # See if this provider has a specfile that
32404			 # needs to be generated
32405
32406
32407else
32408  PROVIDERS_STATIC="prov/perf/libperf.la $PROVIDERS_STATIC"
32409			 { $as_echo "$as_me:${as_lineno-$LINENO}: perf provider: include in libfabric" >&5
32410$as_echo "$as_me: perf provider: include in libfabric" >&6;}
32411fi
32412
32413else
32414  { $as_echo "$as_me:${as_lineno-$LINENO}: perf provider: disabled" >&5
32415$as_echo "$as_me: perf provider: disabled" >&6;}
32416fi
32417
32418
32419cat >>confdefs.h <<_ACEOF
32420#define HAVE_PERF $perf_happy
32421_ACEOF
32422
32423
32424cat >>confdefs.h <<_ACEOF
32425#define HAVE_PERF_DL $perf_dl
32426_ACEOF
32427
32428
32429	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
32430	# as well as AC defines
32431	 if test $perf_happy -eq 1; then
32432  HAVE_PERF_TRUE=
32433  HAVE_PERF_FALSE='#'
32434else
32435  HAVE_PERF_TRUE='#'
32436  HAVE_PERF_FALSE=
32437fi
32438
32439	 if test $perf_dl -eq 1; then
32440  HAVE_PERF_DL_TRUE=
32441  HAVE_PERF_DL_FALSE='#'
32442else
32443  HAVE_PERF_DL_TRUE='#'
32444  HAVE_PERF_DL_FALSE=
32445fi
32446
32447
32448	# If this provider was specifically requested but we can't
32449	# build it, error.
32450	if test "$enable_perf $perf_happy" = "yes 0"; then :
32451  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perf provider was requested, but cannot be compiled" >&5
32452$as_echo "$as_me: WARNING: perf provider was requested, but cannot be compiled" >&2;}
32453	       as_fn_error $? "Cannot continue" "$LINENO" 5
32454
32455fi
32456	# If this provider was requested for direct build, ensure that
32457	# provider's fi_direct.h exists in tree. Error otherwise.
32458	if test x"$enable_direct" = x"perf"; then :
32459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/perf/include/rdma/fi_direct.h" >&5
32460$as_echo_n "checking for $srcdir/prov/perf/include/rdma/fi_direct.h... " >&6; }
32461		 if test -f "$srcdir/prov/perf/include/rdma/fi_direct.h"; then :
32462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32463$as_echo "yes" >&6; }
32464else
32465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32466$as_echo "no" >&6; }
32467			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/perf/include/rdma/fi_direct.h.in" >&5
32468$as_echo_n "checking for $srcdir/prov/perf/include/rdma/fi_direct.h.in... " >&6; }
32469			 if test -f "$srcdir/prov/perf/include/rdma/fi_direct.h.in"; then :
32470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32471$as_echo "yes" >&6; }
32472else
32473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32474$as_echo "no" >&6; }
32475				 as_fn_error $? "perf provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
32476
32477fi
32478fi
32479fi
32480
32481	 if test -f "$srcdir/prov/perf/include/rdma/fi_direct.h.in"; then
32482  FI_DIRECT_H_IN_TRUE=
32483  FI_DIRECT_H_IN_FALSE='#'
32484else
32485  FI_DIRECT_H_IN_TRUE='#'
32486  FI_DIRECT_H_IN_FALSE=
32487fi
32488
32489
32490
32491	# Restore CPPFLAGS/LDFLAGS/LIBS
32492	CPPFLAGS=$perf_orig_CPPFLAGS
32493	unset perf_orig_CPPFLAGS
32494	LDFLAGS=$perf_orig_LDFLAGS
32495	unset perf_orig_LDFLAGS
32496	LIBS=$perf_orig_LIBS
32497	unset perf_orig_LIBS
32498
32499
32500
32501	if test x"$enable_direct" != x"no" && test x"$enable_direct" != x"hook_debug"; then :
32502  enable_hook_debug=no
32503               { $as_echo "$as_me:${as_lineno-$LINENO}: *** Skipping hook_debug provider because $enable_direct direct requested" >&5
32504$as_echo "$as_me: *** Skipping hook_debug provider because $enable_direct direct requested" >&6;}
32505else
32506  { $as_echo "$as_me:${as_lineno-$LINENO}: *** Configuring hook_debug provider" >&5
32507$as_echo "$as_me: *** Configuring hook_debug provider" >&6;}
32508	       # Check whether --enable-hook_debug was given.
32509if test "${enable_hook_debug+set}" = set; then :
32510  enableval=$enable_hook_debug;
32511else
32512  enable_hook_debug=auto
32513fi
32514
32515fi
32516
32517	# Save CPPFLAGS and LDFLAGS before they are modified by FI_CHECK_PREFIX_DIR.
32518	# Provider's local macros could use the value if needed.
32519	# Also save LIBS, as a matter of principle.
32520	hook_debug_orig_CPPFLAGS=$CPPFLAGS
32521	hook_debug_orig_LDFLAGS=$LDFLAGS
32522	hook_debug_orig_LIBS=$LIBS
32523
32524	# Check the --enable-<hook_debug> value
32525	hook_debug_dl=0
32526	case $enable_hook_debug in #(
32527  yes|no) :
32528     ;; #(
32529  dl) :
32530    enable_hook_debug=yes hook_debug_dl=1 ;; #(
32531  auto) :
32532     ;; #(
32533  dl:*) :
32534
32535	# Check that the base directory exists
32536	if test ! -d "${enable_hook_debug:3}"; then :
32537  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"${enable_hook_debug:3}\" does not exist" >&5
32538$as_echo "$as_me: WARNING: supplied directory \"${enable_hook_debug:3}\" does not exist" >&2;}
32539	        as_fn_error $? "Cannot continue" "$LINENO" 5
32540
32541fi
32542
32543	# Check that base/include exists
32544	 if test -d "${enable_hook_debug:3}/include"; then :
32545  hook_debug_PREFIX="${enable_hook_debug:3}"
32546else
32547  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"${enable_hook_debug:3}\" directory\"" >&5
32548$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"${enable_hook_debug:3}\" directory\"" >&2;}
32549	        as_fn_error $? "Cannot continue" "$LINENO" 5
32550
32551fi
32552
32553	# Check that base/lib or base/lib64 exists
32554	 if test -d "${enable_hook_debug:3}/lib64"; then :
32555  hook_debug_LIBDIR="${enable_hook_debug:3}/lib64"
32556else
32557  if test -d "${enable_hook_debug:3}/lib"; then :
32558  hook_debug_LIBDIR="${enable_hook_debug:3}/lib"
32559else
32560  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_hook_debug:3}\" directory\"" >&5
32561$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"${enable_hook_debug:3}\" directory\"" >&2;}
32562		       as_fn_error $? "Cannot continue" "$LINENO" 5
32563
32564fi
32565
32566fi
32567
32568		   enable_hook_debug=yes hook_debug_dl=1 ;; #(
32569  *) :
32570
32571	# Check that the base directory exists
32572	if test ! -d "$enable_hook_debug"; then :
32573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: supplied directory \"$enable_hook_debug\" does not exist" >&5
32574$as_echo "$as_me: WARNING: supplied directory \"$enable_hook_debug\" does not exist" >&2;}
32575	        as_fn_error $? "Cannot continue" "$LINENO" 5
32576
32577fi
32578
32579	# Check that base/include exists
32580	 if test -d "$enable_hook_debug/include"; then :
32581  hook_debug_PREFIX="$enable_hook_debug"
32582else
32583  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"include\" subdirectory in supplied \"$enable_hook_debug\" directory\"" >&5
32584$as_echo "$as_me: WARNING: could not find \"include\" subdirectory in supplied \"$enable_hook_debug\" directory\"" >&2;}
32585	        as_fn_error $? "Cannot continue" "$LINENO" 5
32586
32587fi
32588
32589	# Check that base/lib or base/lib64 exists
32590	 if test -d "$enable_hook_debug/lib64"; then :
32591  hook_debug_LIBDIR="$enable_hook_debug/lib64"
32592else
32593  if test -d "$enable_hook_debug/lib"; then :
32594  hook_debug_LIBDIR="$enable_hook_debug/lib"
32595else
32596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_hook_debug\" directory\"" >&5
32597$as_echo "$as_me: WARNING: could not find \"lib\" or \"lib64\" subdirectories in supplied \"$enable_hook_debug\" directory\"" >&2;}
32598		       as_fn_error $? "Cannot continue" "$LINENO" 5
32599
32600fi
32601
32602fi
32603
32604	 enable_hook_debug=yes
32605	 ;;
32606esac
32607
32608	# Call the provider's CONFIGURE and CONDITIONALS macros
32609
32610
32611
32612
32613
32614
32615
32616
32617    # Determine if we can support the debug hooking provider
32618    hook_debug_happy=0
32619    if test x"$enable_hook_debug" != x"no"; then :
32620  hook_debug_happy=1
32621fi
32622    if test x"$hook_debug_dl" == x"1"; then :
32623
32624	hook_debug_happy=0
32625	as_fn_error $? "debug hooking provider cannot be compiled as DL" "$LINENO" 5
32626
32627fi
32628    if test $hook_debug_happy -eq 1; then :
32629  hook_debug_happy=1
32630else
32631  hook_debug_happy=0
32632fi
32633
32634
32635
32636
32637
32638
32639
32640
32641	# See if the provider configured successfully
32642	if test $hook_debug_happy -eq 1; then :
32643  PROVIDERS_TO_BUILD="$PROVIDERS_TO_BUILD hook_debug"
32644		 PROVIDERS_COUNT=$((PROVIDERS_COUNT+1))
32645
32646	 FI_PC_CFLAGS="$FI_PC_CFLAGS $hook_debug_CFLAGS $hook_debug_CPPFLAGS"
32647	 FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $hook_debug_LDFLAGS $hook_debug_LIBS"
32648
32649		 if test $hook_debug_dl -eq 1; then :
32650  PROVIDERS_DL="prov/hook_debug/libhook_debug.la $PROVIDERS_DL"
32651			 if test x"$enable_static" = x"yes" &&
32652				test x"$enable_shared" = x"no"; then :
32653  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hook_debug provider was selected to be built as DL" >&5
32654$as_echo "$as_me: WARNING: hook_debug provider was selected to be built as DL" >&2;}
32655				 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but libfabric is being built as static-only" >&5
32656$as_echo "$as_me: WARNING: but libfabric is being built as static-only" >&2;}
32657				 as_fn_error $? "This is an impossible situation. Cannot continue." "$LINENO" 5
32658fi
32659			 { $as_echo "$as_me:${as_lineno-$LINENO}: hook_debug provider: build as plugin" >&5
32660$as_echo "$as_me: hook_debug provider: build as plugin" >&6;}
32661
32662			 # See if this provider has a specfile that
32663			 # needs to be generated
32664
32665
32666else
32667  PROVIDERS_STATIC="prov/hook_debug/libhook_debug.la $PROVIDERS_STATIC"
32668			 { $as_echo "$as_me:${as_lineno-$LINENO}: hook_debug provider: include in libfabric" >&5
32669$as_echo "$as_me: hook_debug provider: include in libfabric" >&6;}
32670fi
32671
32672else
32673  { $as_echo "$as_me:${as_lineno-$LINENO}: hook_debug provider: disabled" >&5
32674$as_echo "$as_me: hook_debug provider: disabled" >&6;}
32675fi
32676
32677
32678cat >>confdefs.h <<_ACEOF
32679#define HAVE_HOOK_DEBUG $hook_debug_happy
32680_ACEOF
32681
32682
32683cat >>confdefs.h <<_ACEOF
32684#define HAVE_HOOK_DEBUG_DL $hook_debug_dl
32685_ACEOF
32686
32687
32688	# Set AM conditionals for HAVE_<provider> and HAVE_<provider>_DL
32689	# as well as AC defines
32690	 if test $hook_debug_happy -eq 1; then
32691  HAVE_HOOK_DEBUG_TRUE=
32692  HAVE_HOOK_DEBUG_FALSE='#'
32693else
32694  HAVE_HOOK_DEBUG_TRUE='#'
32695  HAVE_HOOK_DEBUG_FALSE=
32696fi
32697
32698	 if test $hook_debug_dl -eq 1; then
32699  HAVE_HOOK_DEBUG_DL_TRUE=
32700  HAVE_HOOK_DEBUG_DL_FALSE='#'
32701else
32702  HAVE_HOOK_DEBUG_DL_TRUE='#'
32703  HAVE_HOOK_DEBUG_DL_FALSE=
32704fi
32705
32706
32707	# If this provider was specifically requested but we can't
32708	# build it, error.
32709	if test "$enable_hook_debug $hook_debug_happy" = "yes 0"; then :
32710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hook_debug provider was requested, but cannot be compiled" >&5
32711$as_echo "$as_me: WARNING: hook_debug provider was requested, but cannot be compiled" >&2;}
32712	       as_fn_error $? "Cannot continue" "$LINENO" 5
32713
32714fi
32715	# If this provider was requested for direct build, ensure that
32716	# provider's fi_direct.h exists in tree. Error otherwise.
32717	if test x"$enable_direct" = x"hook_debug"; then :
32718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/hook_debug/include/rdma/fi_direct.h" >&5
32719$as_echo_n "checking for $srcdir/prov/hook_debug/include/rdma/fi_direct.h... " >&6; }
32720		 if test -f "$srcdir/prov/hook_debug/include/rdma/fi_direct.h"; then :
32721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32722$as_echo "yes" >&6; }
32723else
32724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32725$as_echo "no" >&6; }
32726			 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/prov/hook_debug/include/rdma/fi_direct.h.in" >&5
32727$as_echo_n "checking for $srcdir/prov/hook_debug/include/rdma/fi_direct.h.in... " >&6; }
32728			 if test -f "$srcdir/prov/hook_debug/include/rdma/fi_direct.h.in"; then :
32729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32730$as_echo "yes" >&6; }
32731else
32732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32733$as_echo "no" >&6; }
32734				 as_fn_error $? "hook_debug provider was requested as direct, but is missing fi_direct.h and fi_direct.h.in" "$LINENO" 5
32735
32736fi
32737fi
32738fi
32739
32740	 if test -f "$srcdir/prov/hook_debug/include/rdma/fi_direct.h.in"; then
32741  FI_DIRECT_H_IN_TRUE=
32742  FI_DIRECT_H_IN_FALSE='#'
32743else
32744  FI_DIRECT_H_IN_TRUE='#'
32745  FI_DIRECT_H_IN_FALSE=
32746fi
32747
32748
32749
32750	# Restore CPPFLAGS/LDFLAGS/LIBS
32751	CPPFLAGS=$hook_debug_orig_CPPFLAGS
32752	unset hook_debug_orig_CPPFLAGS
32753	LDFLAGS=$hook_debug_orig_LDFLAGS
32754	unset hook_debug_orig_LDFLAGS
32755	LIBS=$hook_debug_orig_LIBS
32756	unset hook_debug_orig_LIBS
32757
32758
32759
32760
32761
32762
32763
32764	FI_PC_PRIVATE_LIBS="$FI_PC_PRIVATE_LIBS $LIBS"
32765
32766			seen=""
32767	for arg in $FI_PC_PRIVATE_LIBS
32768	do
32769	  found=no
32770	  for s in $seen
32771	  do
32772	    if test "$s" = "$arg"; then :
32773  found=yes
32774fi
32775	  done
32776	  if test "$found" = "no"; then :
32777  seen="$seen $arg"
32778fi
32779	done
32780	FI_PC_PRIVATE_LIBS=$seen
32781
32782	if test "x$enable_shared" != xyes; then :
32783  FI_PC_PUBLIC_LIBS="$FI_PC_PUBLIC_LIBS $FI_PC_PRIVATE_LIBS"
32784fi
32785
32786
32787
32788
32789	ac_config_files="$ac_config_files libfabric.pc"
32790
32791
32792
32793# If the user requested to build in direct mode, but
32794# we have more than one provider, error.
32795PROVIDER_DIRECT=no
32796FI_DIRECT_PROVIDER_API_10=/dev/null
32797if test x"$enable_direct" != x"no"; then :
32798  if test "$PROVIDERS_COUNT" -gt 1; then :
32799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only one provider can be chosen when using --enable-direct" >&5
32800$as_echo "$as_me: WARNING: Only one provider can be chosen when using --enable-direct" >&2;}
32801	      as_fn_error $? "Cannot continue" "$LINENO" 5
32802fi
32803
32804       PROVIDER_DIRECT=$enable_direct
32805
32806cat >>confdefs.h <<_ACEOF
32807#define FABRIC_DIRECT_ENABLED 1
32808_ACEOF
32809
32810       FI_DIRECT_PROVIDER_API_10="$srcdir/prov/$enable_direct/provider_FABRIC_1.0.map"
32811       if test ! -r "$FI_DIRECT_PROVIDER_API_10"; then :
32812  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-direct=$enable_direct specified, but $FI_DIRECT_PROVIDER_API_10 does not exist" >&5
32813$as_echo "$as_me: WARNING: --enable-direct=$enable_direct specified, but $FI_DIRECT_PROVIDER_API_10 does not exist" >&2;}
32814	      as_fn_error $? "Cannot continue" "$LINENO" 5
32815fi
32816fi
32817
32818
32819
32820 if test x"$enable_direct" != x"no"; then
32821  HAVE_DIRECT_TRUE=
32822  HAVE_DIRECT_FALSE='#'
32823else
32824  HAVE_DIRECT_TRUE='#'
32825  HAVE_DIRECT_FALSE=
32826fi
32827
32828
32829ac_config_files="$ac_config_files Makefile libfabric.spec libfabric.map"
32830
32831cat >confcache <<\_ACEOF
32832# This file is a shell script that caches the results of configure
32833# tests run on this system so they can be shared between configure
32834# scripts and configure runs, see configure's option --config-cache.
32835# It is not useful on other systems.  If it contains results you don't
32836# want to keep, you may remove or edit it.
32837#
32838# config.status only pays attention to the cache file if you give it
32839# the --recheck option to rerun configure.
32840#
32841# `ac_cv_env_foo' variables (set or unset) will be overridden when
32842# loading this file, other *unset* `ac_cv_foo' will be assigned the
32843# following values.
32844
32845_ACEOF
32846
32847# The following way of writing the cache mishandles newlines in values,
32848# but we know of no workaround that is simple, portable, and efficient.
32849# So, we kill variables containing newlines.
32850# Ultrix sh set writes to stderr and can't be redirected directly,
32851# and sets the high bit in the cache file unless we assign to the vars.
32852(
32853  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32854    eval ac_val=\$$ac_var
32855    case $ac_val in #(
32856    *${as_nl}*)
32857      case $ac_var in #(
32858      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32859$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32860      esac
32861      case $ac_var in #(
32862      _ | IFS | as_nl) ;; #(
32863      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32864      *) { eval $ac_var=; unset $ac_var;} ;;
32865      esac ;;
32866    esac
32867  done
32868
32869  (set) 2>&1 |
32870    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32871    *${as_nl}ac_space=\ *)
32872      # `set' does not quote correctly, so add quotes: double-quote
32873      # substitution turns \\\\ into \\, and sed turns \\ into \.
32874      sed -n \
32875	"s/'/'\\\\''/g;
32876	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32877      ;; #(
32878    *)
32879      # `set' quotes correctly as required by POSIX, so do not add quotes.
32880      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32881      ;;
32882    esac |
32883    sort
32884) |
32885  sed '
32886     /^ac_cv_env_/b end
32887     t clear
32888     :clear
32889     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32890     t end
32891     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32892     :end' >>confcache
32893if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32894  if test -w "$cache_file"; then
32895    if test "x$cache_file" != "x/dev/null"; then
32896      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32897$as_echo "$as_me: updating cache $cache_file" >&6;}
32898      if test ! -f "$cache_file" || test -h "$cache_file"; then
32899	cat confcache >"$cache_file"
32900      else
32901        case $cache_file in #(
32902        */* | ?:*)
32903	  mv -f confcache "$cache_file"$$ &&
32904	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32905        *)
32906	  mv -f confcache "$cache_file" ;;
32907	esac
32908      fi
32909    fi
32910  else
32911    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32912$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32913  fi
32914fi
32915rm -f confcache
32916
32917test "x$prefix" = xNONE && prefix=$ac_default_prefix
32918# Let make expand exec_prefix.
32919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32920
32921DEFS=-DHAVE_CONFIG_H
32922
32923ac_libobjs=
32924ac_ltlibobjs=
32925U=
32926for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32927  # 1. Remove the extension, and $U if already installed.
32928  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32929  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32930  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32931  #    will be set to the directory where LIBOBJS objects are built.
32932  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32933  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32934done
32935LIBOBJS=$ac_libobjs
32936
32937LTLIBOBJS=$ac_ltlibobjs
32938
32939
32940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32941$as_echo_n "checking that generated files are newer than configure... " >&6; }
32942   if test -n "$am_sleep_pid"; then
32943     # Hide warnings about reused PIDs.
32944     wait $am_sleep_pid 2>/dev/null
32945   fi
32946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32947$as_echo "done" >&6; }
32948 if test -n "$EXEEXT"; then
32949  am__EXEEXT_TRUE=
32950  am__EXEEXT_FALSE='#'
32951else
32952  am__EXEEXT_TRUE='#'
32953  am__EXEEXT_FALSE=
32954fi
32955
32956if test -z "${MACOS_TRUE}" && test -z "${MACOS_FALSE}"; then
32957  as_fn_error $? "conditional \"MACOS\" was never defined.
32958Usually this means the macro was only invoked conditionally." "$LINENO" 5
32959fi
32960if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
32961  as_fn_error $? "conditional \"LINUX\" was never defined.
32962Usually this means the macro was only invoked conditionally." "$LINENO" 5
32963fi
32964if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
32965  as_fn_error $? "conditional \"FREEBSD\" was never defined.
32966Usually this means the macro was only invoked conditionally." "$LINENO" 5
32967fi
32968if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32969  as_fn_error $? "conditional \"AMDEP\" was never defined.
32970Usually this means the macro was only invoked conditionally." "$LINENO" 5
32971fi
32972if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32973  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32974Usually this means the macro was only invoked conditionally." "$LINENO" 5
32975fi
32976if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
32977  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
32978Usually this means the macro was only invoked conditionally." "$LINENO" 5
32979fi
32980if test -z "${HAVE_LINUX_PERF_RDPMC_TRUE}" && test -z "${HAVE_LINUX_PERF_RDPMC_FALSE}"; then
32981  as_fn_error $? "conditional \"HAVE_LINUX_PERF_RDPMC\" was never defined.
32982Usually this means the macro was only invoked conditionally." "$LINENO" 5
32983fi
32984if test -z "${EMBEDDED_TRUE}" && test -z "${EMBEDDED_FALSE}"; then
32985  as_fn_error $? "conditional \"EMBEDDED\" was never defined.
32986Usually this means the macro was only invoked conditionally." "$LINENO" 5
32987fi
32988if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
32989  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
32990Usually this means the macro was only invoked conditionally." "$LINENO" 5
32991fi
32992if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
32993  as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
32994Usually this means the macro was only invoked conditionally." "$LINENO" 5
32995fi
32996if test -z "${HAVE_PSM_TRUE}" && test -z "${HAVE_PSM_FALSE}"; then
32997  as_fn_error $? "conditional \"HAVE_PSM\" was never defined.
32998Usually this means the macro was only invoked conditionally." "$LINENO" 5
32999fi
33000if test -z "${HAVE_PSM_DL_TRUE}" && test -z "${HAVE_PSM_DL_FALSE}"; then
33001  as_fn_error $? "conditional \"HAVE_PSM_DL\" was never defined.
33002Usually this means the macro was only invoked conditionally." "$LINENO" 5
33003fi
33004if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33005  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33006Usually this means the macro was only invoked conditionally." "$LINENO" 5
33007fi
33008if test -z "${HAVE_PSM2_X86_64_TRUE}" && test -z "${HAVE_PSM2_X86_64_FALSE}"; then
33009  as_fn_error $? "conditional \"HAVE_PSM2_X86_64\" was never defined.
33010Usually this means the macro was only invoked conditionally." "$LINENO" 5
33011fi
33012if test -z "${HAVE_PSM2_SRC_TRUE}" && test -z "${HAVE_PSM2_SRC_FALSE}"; then
33013  as_fn_error $? "conditional \"HAVE_PSM2_SRC\" was never defined.
33014Usually this means the macro was only invoked conditionally." "$LINENO" 5
33015fi
33016if test -z "${HAVE_PSM2_TRUE}" && test -z "${HAVE_PSM2_FALSE}"; then
33017  as_fn_error $? "conditional \"HAVE_PSM2\" was never defined.
33018Usually this means the macro was only invoked conditionally." "$LINENO" 5
33019fi
33020if test -z "${HAVE_PSM2_DL_TRUE}" && test -z "${HAVE_PSM2_DL_FALSE}"; then
33021  as_fn_error $? "conditional \"HAVE_PSM2_DL\" was never defined.
33022Usually this means the macro was only invoked conditionally." "$LINENO" 5
33023fi
33024if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33025  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33026Usually this means the macro was only invoked conditionally." "$LINENO" 5
33027fi
33028if test -z "${HAVE_SOCKETS_TRUE}" && test -z "${HAVE_SOCKETS_FALSE}"; then
33029  as_fn_error $? "conditional \"HAVE_SOCKETS\" was never defined.
33030Usually this means the macro was only invoked conditionally." "$LINENO" 5
33031fi
33032if test -z "${HAVE_SOCKETS_DL_TRUE}" && test -z "${HAVE_SOCKETS_DL_FALSE}"; then
33033  as_fn_error $? "conditional \"HAVE_SOCKETS_DL\" was never defined.
33034Usually this means the macro was only invoked conditionally." "$LINENO" 5
33035fi
33036if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33037  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33038Usually this means the macro was only invoked conditionally." "$LINENO" 5
33039fi
33040if test -z "${HAVE_VERBS_TRUE}" && test -z "${HAVE_VERBS_FALSE}"; then
33041  as_fn_error $? "conditional \"HAVE_VERBS\" was never defined.
33042Usually this means the macro was only invoked conditionally." "$LINENO" 5
33043fi
33044if test -z "${HAVE_VERBS_DL_TRUE}" && test -z "${HAVE_VERBS_DL_FALSE}"; then
33045  as_fn_error $? "conditional \"HAVE_VERBS_DL\" was never defined.
33046Usually this means the macro was only invoked conditionally." "$LINENO" 5
33047fi
33048if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33049  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33050Usually this means the macro was only invoked conditionally." "$LINENO" 5
33051fi
33052if test -z "${HAVE_EFA_TRUE}" && test -z "${HAVE_EFA_FALSE}"; then
33053  as_fn_error $? "conditional \"HAVE_EFA\" was never defined.
33054Usually this means the macro was only invoked conditionally." "$LINENO" 5
33055fi
33056if test -z "${HAVE_EFA_DL_TRUE}" && test -z "${HAVE_EFA_DL_FALSE}"; then
33057  as_fn_error $? "conditional \"HAVE_EFA_DL\" was never defined.
33058Usually this means the macro was only invoked conditionally." "$LINENO" 5
33059fi
33060if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33061  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33062Usually this means the macro was only invoked conditionally." "$LINENO" 5
33063fi
33064if test -z "${USNIC_BUILD_FAKE_VERBS_DRIVER_TRUE}" && test -z "${USNIC_BUILD_FAKE_VERBS_DRIVER_FALSE}"; then
33065  as_fn_error $? "conditional \"USNIC_BUILD_FAKE_VERBS_DRIVER\" was never defined.
33066Usually this means the macro was only invoked conditionally." "$LINENO" 5
33067fi
33068if test -z "${HAVE_USNIC_TRUE}" && test -z "${HAVE_USNIC_FALSE}"; then
33069  as_fn_error $? "conditional \"HAVE_USNIC\" was never defined.
33070Usually this means the macro was only invoked conditionally." "$LINENO" 5
33071fi
33072if test -z "${HAVE_USNIC_DL_TRUE}" && test -z "${HAVE_USNIC_DL_FALSE}"; then
33073  as_fn_error $? "conditional \"HAVE_USNIC_DL\" was never defined.
33074Usually this means the macro was only invoked conditionally." "$LINENO" 5
33075fi
33076if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33077  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33078Usually this means the macro was only invoked conditionally." "$LINENO" 5
33079fi
33080if test -z "${HAVE_CRITERION_TRUE}" && test -z "${HAVE_CRITERION_FALSE}"; then
33081  as_fn_error $? "conditional \"HAVE_CRITERION\" was never defined.
33082Usually this means the macro was only invoked conditionally." "$LINENO" 5
33083fi
33084if test -z "${HAVE_GNI_TRUE}" && test -z "${HAVE_GNI_FALSE}"; then
33085  as_fn_error $? "conditional \"HAVE_GNI\" was never defined.
33086Usually this means the macro was only invoked conditionally." "$LINENO" 5
33087fi
33088if test -z "${HAVE_GNI_DL_TRUE}" && test -z "${HAVE_GNI_DL_FALSE}"; then
33089  as_fn_error $? "conditional \"HAVE_GNI_DL\" was never defined.
33090Usually this means the macro was only invoked conditionally." "$LINENO" 5
33091fi
33092if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33093  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33094Usually this means the macro was only invoked conditionally." "$LINENO" 5
33095fi
33096if test -z "${HAVE_UDP_TRUE}" && test -z "${HAVE_UDP_FALSE}"; then
33097  as_fn_error $? "conditional \"HAVE_UDP\" was never defined.
33098Usually this means the macro was only invoked conditionally." "$LINENO" 5
33099fi
33100if test -z "${HAVE_UDP_DL_TRUE}" && test -z "${HAVE_UDP_DL_FALSE}"; then
33101  as_fn_error $? "conditional \"HAVE_UDP_DL\" was never defined.
33102Usually this means the macro was only invoked conditionally." "$LINENO" 5
33103fi
33104if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33105  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33106Usually this means the macro was only invoked conditionally." "$LINENO" 5
33107fi
33108if test -z "${HAVE_TCP_TRUE}" && test -z "${HAVE_TCP_FALSE}"; then
33109  as_fn_error $? "conditional \"HAVE_TCP\" was never defined.
33110Usually this means the macro was only invoked conditionally." "$LINENO" 5
33111fi
33112if test -z "${HAVE_TCP_DL_TRUE}" && test -z "${HAVE_TCP_DL_FALSE}"; then
33113  as_fn_error $? "conditional \"HAVE_TCP_DL\" was never defined.
33114Usually this means the macro was only invoked conditionally." "$LINENO" 5
33115fi
33116if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33117  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33118Usually this means the macro was only invoked conditionally." "$LINENO" 5
33119fi
33120if test -z "${HAVE_RXM_TRUE}" && test -z "${HAVE_RXM_FALSE}"; then
33121  as_fn_error $? "conditional \"HAVE_RXM\" was never defined.
33122Usually this means the macro was only invoked conditionally." "$LINENO" 5
33123fi
33124if test -z "${HAVE_RXM_DL_TRUE}" && test -z "${HAVE_RXM_DL_FALSE}"; then
33125  as_fn_error $? "conditional \"HAVE_RXM_DL\" was never defined.
33126Usually this means the macro was only invoked conditionally." "$LINENO" 5
33127fi
33128if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33129  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33130Usually this means the macro was only invoked conditionally." "$LINENO" 5
33131fi
33132if test -z "${HAVE_MRAIL_TRUE}" && test -z "${HAVE_MRAIL_FALSE}"; then
33133  as_fn_error $? "conditional \"HAVE_MRAIL\" was never defined.
33134Usually this means the macro was only invoked conditionally." "$LINENO" 5
33135fi
33136if test -z "${HAVE_MRAIL_DL_TRUE}" && test -z "${HAVE_MRAIL_DL_FALSE}"; then
33137  as_fn_error $? "conditional \"HAVE_MRAIL_DL\" was never defined.
33138Usually this means the macro was only invoked conditionally." "$LINENO" 5
33139fi
33140if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33141  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33142Usually this means the macro was only invoked conditionally." "$LINENO" 5
33143fi
33144if test -z "${HAVE_RXD_TRUE}" && test -z "${HAVE_RXD_FALSE}"; then
33145  as_fn_error $? "conditional \"HAVE_RXD\" was never defined.
33146Usually this means the macro was only invoked conditionally." "$LINENO" 5
33147fi
33148if test -z "${HAVE_RXD_DL_TRUE}" && test -z "${HAVE_RXD_DL_FALSE}"; then
33149  as_fn_error $? "conditional \"HAVE_RXD_DL\" was never defined.
33150Usually this means the macro was only invoked conditionally." "$LINENO" 5
33151fi
33152if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33153  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33154Usually this means the macro was only invoked conditionally." "$LINENO" 5
33155fi
33156if test -z "${HAVE_BGQ_TRUE}" && test -z "${HAVE_BGQ_FALSE}"; then
33157  as_fn_error $? "conditional \"HAVE_BGQ\" was never defined.
33158Usually this means the macro was only invoked conditionally." "$LINENO" 5
33159fi
33160if test -z "${HAVE_BGQ_DL_TRUE}" && test -z "${HAVE_BGQ_DL_FALSE}"; then
33161  as_fn_error $? "conditional \"HAVE_BGQ_DL\" was never defined.
33162Usually this means the macro was only invoked conditionally." "$LINENO" 5
33163fi
33164if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33165  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33166Usually this means the macro was only invoked conditionally." "$LINENO" 5
33167fi
33168if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
33169  as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
33170Usually this means the macro was only invoked conditionally." "$LINENO" 5
33171fi
33172if test -z "${HAVE_SHM_DL_TRUE}" && test -z "${HAVE_SHM_DL_FALSE}"; then
33173  as_fn_error $? "conditional \"HAVE_SHM_DL\" was never defined.
33174Usually this means the macro was only invoked conditionally." "$LINENO" 5
33175fi
33176if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33177  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33178Usually this means the macro was only invoked conditionally." "$LINENO" 5
33179fi
33180if test -z "${HAVE_RSTREAM_TRUE}" && test -z "${HAVE_RSTREAM_FALSE}"; then
33181  as_fn_error $? "conditional \"HAVE_RSTREAM\" was never defined.
33182Usually this means the macro was only invoked conditionally." "$LINENO" 5
33183fi
33184if test -z "${HAVE_RSTREAM_DL_TRUE}" && test -z "${HAVE_RSTREAM_DL_FALSE}"; then
33185  as_fn_error $? "conditional \"HAVE_RSTREAM_DL\" was never defined.
33186Usually this means the macro was only invoked conditionally." "$LINENO" 5
33187fi
33188if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33189  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33190Usually this means the macro was only invoked conditionally." "$LINENO" 5
33191fi
33192if test -z "${HAVE_PERF_TRUE}" && test -z "${HAVE_PERF_FALSE}"; then
33193  as_fn_error $? "conditional \"HAVE_PERF\" was never defined.
33194Usually this means the macro was only invoked conditionally." "$LINENO" 5
33195fi
33196if test -z "${HAVE_PERF_DL_TRUE}" && test -z "${HAVE_PERF_DL_FALSE}"; then
33197  as_fn_error $? "conditional \"HAVE_PERF_DL\" was never defined.
33198Usually this means the macro was only invoked conditionally." "$LINENO" 5
33199fi
33200if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33201  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33202Usually this means the macro was only invoked conditionally." "$LINENO" 5
33203fi
33204if test -z "${HAVE_HOOK_DEBUG_TRUE}" && test -z "${HAVE_HOOK_DEBUG_FALSE}"; then
33205  as_fn_error $? "conditional \"HAVE_HOOK_DEBUG\" was never defined.
33206Usually this means the macro was only invoked conditionally." "$LINENO" 5
33207fi
33208if test -z "${HAVE_HOOK_DEBUG_DL_TRUE}" && test -z "${HAVE_HOOK_DEBUG_DL_FALSE}"; then
33209  as_fn_error $? "conditional \"HAVE_HOOK_DEBUG_DL\" was never defined.
33210Usually this means the macro was only invoked conditionally." "$LINENO" 5
33211fi
33212if test -z "${FI_DIRECT_H_IN_TRUE}" && test -z "${FI_DIRECT_H_IN_FALSE}"; then
33213  as_fn_error $? "conditional \"FI_DIRECT_H_IN\" was never defined.
33214Usually this means the macro was only invoked conditionally." "$LINENO" 5
33215fi
33216if test -z "${HAVE_DIRECT_TRUE}" && test -z "${HAVE_DIRECT_FALSE}"; then
33217  as_fn_error $? "conditional \"HAVE_DIRECT\" was never defined.
33218Usually this means the macro was only invoked conditionally." "$LINENO" 5
33219fi
33220
33221: "${CONFIG_STATUS=./config.status}"
33222ac_write_fail=0
33223ac_clean_files_save=$ac_clean_files
33224ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33225{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33226$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33227as_write_fail=0
33228cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33229#! $SHELL
33230# Generated by $as_me.
33231# Run this file to recreate the current configuration.
33232# Compiler output produced by configure, useful for debugging
33233# configure, is in config.log if it exists.
33234
33235debug=false
33236ac_cs_recheck=false
33237ac_cs_silent=false
33238
33239SHELL=\${CONFIG_SHELL-$SHELL}
33240export SHELL
33241_ASEOF
33242cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33243## -------------------- ##
33244## M4sh Initialization. ##
33245## -------------------- ##
33246
33247# Be more Bourne compatible
33248DUALCASE=1; export DUALCASE # for MKS sh
33249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33250  emulate sh
33251  NULLCMD=:
33252  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33253  # is contrary to our usage.  Disable this feature.
33254  alias -g '${1+"$@"}'='"$@"'
33255  setopt NO_GLOB_SUBST
33256else
33257  case `(set -o) 2>/dev/null` in #(
33258  *posix*) :
33259    set -o posix ;; #(
33260  *) :
33261     ;;
33262esac
33263fi
33264
33265
33266as_nl='
33267'
33268export as_nl
33269# Printing a long string crashes Solaris 7 /usr/bin/printf.
33270as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33273# Prefer a ksh shell builtin over an external printf program on Solaris,
33274# but without wasting forks for bash or zsh.
33275if test -z "$BASH_VERSION$ZSH_VERSION" \
33276    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33277  as_echo='print -r --'
33278  as_echo_n='print -rn --'
33279elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33280  as_echo='printf %s\n'
33281  as_echo_n='printf %s'
33282else
33283  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33284    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33285    as_echo_n='/usr/ucb/echo -n'
33286  else
33287    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33288    as_echo_n_body='eval
33289      arg=$1;
33290      case $arg in #(
33291      *"$as_nl"*)
33292	expr "X$arg" : "X\\(.*\\)$as_nl";
33293	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33294      esac;
33295      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33296    '
33297    export as_echo_n_body
33298    as_echo_n='sh -c $as_echo_n_body as_echo'
33299  fi
33300  export as_echo_body
33301  as_echo='sh -c $as_echo_body as_echo'
33302fi
33303
33304# The user is always right.
33305if test "${PATH_SEPARATOR+set}" != set; then
33306  PATH_SEPARATOR=:
33307  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33308    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33309      PATH_SEPARATOR=';'
33310  }
33311fi
33312
33313
33314# IFS
33315# We need space, tab and new line, in precisely that order.  Quoting is
33316# there to prevent editors from complaining about space-tab.
33317# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33318# splitting by setting IFS to empty value.)
33319IFS=" ""	$as_nl"
33320
33321# Find who we are.  Look in the path if we contain no directory separator.
33322as_myself=
33323case $0 in #((
33324  *[\\/]* ) as_myself=$0 ;;
33325  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33326for as_dir in $PATH
33327do
33328  IFS=$as_save_IFS
33329  test -z "$as_dir" && as_dir=.
33330    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33331  done
33332IFS=$as_save_IFS
33333
33334     ;;
33335esac
33336# We did not find ourselves, most probably we were run as `sh COMMAND'
33337# in which case we are not to be found in the path.
33338if test "x$as_myself" = x; then
33339  as_myself=$0
33340fi
33341if test ! -f "$as_myself"; then
33342  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33343  exit 1
33344fi
33345
33346# Unset variables that we do not need and which cause bugs (e.g. in
33347# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33348# suppresses any "Segmentation fault" message there.  '((' could
33349# trigger a bug in pdksh 5.2.14.
33350for as_var in BASH_ENV ENV MAIL MAILPATH
33351do eval test x\${$as_var+set} = xset \
33352  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33353done
33354PS1='$ '
33355PS2='> '
33356PS4='+ '
33357
33358# NLS nuisances.
33359LC_ALL=C
33360export LC_ALL
33361LANGUAGE=C
33362export LANGUAGE
33363
33364# CDPATH.
33365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33366
33367
33368# as_fn_error STATUS ERROR [LINENO LOG_FD]
33369# ----------------------------------------
33370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33372# script with STATUS, using 1 if that was 0.
33373as_fn_error ()
33374{
33375  as_status=$1; test $as_status -eq 0 && as_status=1
33376  if test "$4"; then
33377    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33378    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33379  fi
33380  $as_echo "$as_me: error: $2" >&2
33381  as_fn_exit $as_status
33382} # as_fn_error
33383
33384
33385# as_fn_set_status STATUS
33386# -----------------------
33387# Set $? to STATUS, without forking.
33388as_fn_set_status ()
33389{
33390  return $1
33391} # as_fn_set_status
33392
33393# as_fn_exit STATUS
33394# -----------------
33395# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33396as_fn_exit ()
33397{
33398  set +e
33399  as_fn_set_status $1
33400  exit $1
33401} # as_fn_exit
33402
33403# as_fn_unset VAR
33404# ---------------
33405# Portably unset VAR.
33406as_fn_unset ()
33407{
33408  { eval $1=; unset $1;}
33409}
33410as_unset=as_fn_unset
33411# as_fn_append VAR VALUE
33412# ----------------------
33413# Append the text in VALUE to the end of the definition contained in VAR. Take
33414# advantage of any shell optimizations that allow amortized linear growth over
33415# repeated appends, instead of the typical quadratic growth present in naive
33416# implementations.
33417if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33418  eval 'as_fn_append ()
33419  {
33420    eval $1+=\$2
33421  }'
33422else
33423  as_fn_append ()
33424  {
33425    eval $1=\$$1\$2
33426  }
33427fi # as_fn_append
33428
33429# as_fn_arith ARG...
33430# ------------------
33431# Perform arithmetic evaluation on the ARGs, and store the result in the
33432# global $as_val. Take advantage of shells that can avoid forks. The arguments
33433# must be portable across $(()) and expr.
33434if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33435  eval 'as_fn_arith ()
33436  {
33437    as_val=$(( $* ))
33438  }'
33439else
33440  as_fn_arith ()
33441  {
33442    as_val=`expr "$@" || test $? -eq 1`
33443  }
33444fi # as_fn_arith
33445
33446
33447if expr a : '\(a\)' >/dev/null 2>&1 &&
33448   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33449  as_expr=expr
33450else
33451  as_expr=false
33452fi
33453
33454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33455  as_basename=basename
33456else
33457  as_basename=false
33458fi
33459
33460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33461  as_dirname=dirname
33462else
33463  as_dirname=false
33464fi
33465
33466as_me=`$as_basename -- "$0" ||
33467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33468	 X"$0" : 'X\(//\)$' \| \
33469	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33470$as_echo X/"$0" |
33471    sed '/^.*\/\([^/][^/]*\)\/*$/{
33472	    s//\1/
33473	    q
33474	  }
33475	  /^X\/\(\/\/\)$/{
33476	    s//\1/
33477	    q
33478	  }
33479	  /^X\/\(\/\).*/{
33480	    s//\1/
33481	    q
33482	  }
33483	  s/.*/./; q'`
33484
33485# Avoid depending upon Character Ranges.
33486as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33488as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33489as_cr_digits='0123456789'
33490as_cr_alnum=$as_cr_Letters$as_cr_digits
33491
33492ECHO_C= ECHO_N= ECHO_T=
33493case `echo -n x` in #(((((
33494-n*)
33495  case `echo 'xy\c'` in
33496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33497  xy)  ECHO_C='\c';;
33498  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33499       ECHO_T='	';;
33500  esac;;
33501*)
33502  ECHO_N='-n';;
33503esac
33504
33505rm -f conf$$ conf$$.exe conf$$.file
33506if test -d conf$$.dir; then
33507  rm -f conf$$.dir/conf$$.file
33508else
33509  rm -f conf$$.dir
33510  mkdir conf$$.dir 2>/dev/null
33511fi
33512if (echo >conf$$.file) 2>/dev/null; then
33513  if ln -s conf$$.file conf$$ 2>/dev/null; then
33514    as_ln_s='ln -s'
33515    # ... but there are two gotchas:
33516    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33517    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33518    # In both cases, we have to default to `cp -pR'.
33519    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33520      as_ln_s='cp -pR'
33521  elif ln conf$$.file conf$$ 2>/dev/null; then
33522    as_ln_s=ln
33523  else
33524    as_ln_s='cp -pR'
33525  fi
33526else
33527  as_ln_s='cp -pR'
33528fi
33529rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33530rmdir conf$$.dir 2>/dev/null
33531
33532
33533# as_fn_mkdir_p
33534# -------------
33535# Create "$as_dir" as a directory, including parents if necessary.
33536as_fn_mkdir_p ()
33537{
33538
33539  case $as_dir in #(
33540  -*) as_dir=./$as_dir;;
33541  esac
33542  test -d "$as_dir" || eval $as_mkdir_p || {
33543    as_dirs=
33544    while :; do
33545      case $as_dir in #(
33546      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33547      *) as_qdir=$as_dir;;
33548      esac
33549      as_dirs="'$as_qdir' $as_dirs"
33550      as_dir=`$as_dirname -- "$as_dir" ||
33551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33552	 X"$as_dir" : 'X\(//\)[^/]' \| \
33553	 X"$as_dir" : 'X\(//\)$' \| \
33554	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33555$as_echo X"$as_dir" |
33556    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33557	    s//\1/
33558	    q
33559	  }
33560	  /^X\(\/\/\)[^/].*/{
33561	    s//\1/
33562	    q
33563	  }
33564	  /^X\(\/\/\)$/{
33565	    s//\1/
33566	    q
33567	  }
33568	  /^X\(\/\).*/{
33569	    s//\1/
33570	    q
33571	  }
33572	  s/.*/./; q'`
33573      test -d "$as_dir" && break
33574    done
33575    test -z "$as_dirs" || eval "mkdir $as_dirs"
33576  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33577
33578
33579} # as_fn_mkdir_p
33580if mkdir -p . 2>/dev/null; then
33581  as_mkdir_p='mkdir -p "$as_dir"'
33582else
33583  test -d ./-p && rmdir ./-p
33584  as_mkdir_p=false
33585fi
33586
33587
33588# as_fn_executable_p FILE
33589# -----------------------
33590# Test if FILE is an executable regular file.
33591as_fn_executable_p ()
33592{
33593  test -f "$1" && test -x "$1"
33594} # as_fn_executable_p
33595as_test_x='test -x'
33596as_executable_p=as_fn_executable_p
33597
33598# Sed expression to map a string onto a valid CPP name.
33599as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33600
33601# Sed expression to map a string onto a valid variable name.
33602as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33603
33604
33605exec 6>&1
33606## ----------------------------------- ##
33607## Main body of $CONFIG_STATUS script. ##
33608## ----------------------------------- ##
33609_ASEOF
33610test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33611
33612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33613# Save the log message, to keep $0 and so on meaningful, and to
33614# report actual input values of CONFIG_FILES etc. instead of their
33615# values after options handling.
33616ac_log="
33617This file was extended by libfabric $as_me 1.10.1, which was
33618generated by GNU Autoconf 2.69.  Invocation command line was
33619
33620  CONFIG_FILES    = $CONFIG_FILES
33621  CONFIG_HEADERS  = $CONFIG_HEADERS
33622  CONFIG_LINKS    = $CONFIG_LINKS
33623  CONFIG_COMMANDS = $CONFIG_COMMANDS
33624  $ $0 $@
33625
33626on `(hostname || uname -n) 2>/dev/null | sed 1q`
33627"
33628
33629_ACEOF
33630
33631case $ac_config_files in *"
33632"*) set x $ac_config_files; shift; ac_config_files=$*;;
33633esac
33634
33635case $ac_config_headers in *"
33636"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33637esac
33638
33639
33640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33641# Files that config.status was made for.
33642config_files="$ac_config_files"
33643config_headers="$ac_config_headers"
33644config_commands="$ac_config_commands"
33645
33646_ACEOF
33647
33648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33649ac_cs_usage="\
33650\`$as_me' instantiates files and other configuration actions
33651from templates according to the current configuration.  Unless the files
33652and actions are specified as TAGs, all are instantiated by default.
33653
33654Usage: $0 [OPTION]... [TAG]...
33655
33656  -h, --help       print this help, then exit
33657  -V, --version    print version number and configuration settings, then exit
33658      --config     print configuration, then exit
33659  -q, --quiet, --silent
33660                   do not print progress messages
33661  -d, --debug      don't remove temporary files
33662      --recheck    update $as_me by reconfiguring in the same conditions
33663      --file=FILE[:TEMPLATE]
33664                   instantiate the configuration file FILE
33665      --header=FILE[:TEMPLATE]
33666                   instantiate the configuration header FILE
33667
33668Configuration files:
33669$config_files
33670
33671Configuration headers:
33672$config_headers
33673
33674Configuration commands:
33675$config_commands
33676
33677Report bugs to <ofiwg@lists.openfabrics.org>."
33678
33679_ACEOF
33680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33682ac_cs_version="\\
33683libfabric config.status 1.10.1
33684configured by $0, generated by GNU Autoconf 2.69,
33685  with options \\"\$ac_cs_config\\"
33686
33687Copyright (C) 2012 Free Software Foundation, Inc.
33688This config.status script is free software; the Free Software Foundation
33689gives unlimited permission to copy, distribute and modify it."
33690
33691ac_pwd='$ac_pwd'
33692srcdir='$srcdir'
33693INSTALL='$INSTALL'
33694MKDIR_P='$MKDIR_P'
33695AWK='$AWK'
33696test -n "\$AWK" || AWK=awk
33697_ACEOF
33698
33699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33700# The default lists apply if the user does not specify any file.
33701ac_need_defaults=:
33702while test $# != 0
33703do
33704  case $1 in
33705  --*=?*)
33706    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33707    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33708    ac_shift=:
33709    ;;
33710  --*=)
33711    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33712    ac_optarg=
33713    ac_shift=:
33714    ;;
33715  *)
33716    ac_option=$1
33717    ac_optarg=$2
33718    ac_shift=shift
33719    ;;
33720  esac
33721
33722  case $ac_option in
33723  # Handling of the options.
33724  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33725    ac_cs_recheck=: ;;
33726  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33727    $as_echo "$ac_cs_version"; exit ;;
33728  --config | --confi | --conf | --con | --co | --c )
33729    $as_echo "$ac_cs_config"; exit ;;
33730  --debug | --debu | --deb | --de | --d | -d )
33731    debug=: ;;
33732  --file | --fil | --fi | --f )
33733    $ac_shift
33734    case $ac_optarg in
33735    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33736    '') as_fn_error $? "missing file argument" ;;
33737    esac
33738    as_fn_append CONFIG_FILES " '$ac_optarg'"
33739    ac_need_defaults=false;;
33740  --header | --heade | --head | --hea )
33741    $ac_shift
33742    case $ac_optarg in
33743    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33744    esac
33745    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33746    ac_need_defaults=false;;
33747  --he | --h)
33748    # Conflict between --help and --header
33749    as_fn_error $? "ambiguous option: \`$1'
33750Try \`$0 --help' for more information.";;
33751  --help | --hel | -h )
33752    $as_echo "$ac_cs_usage"; exit ;;
33753  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33754  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33755    ac_cs_silent=: ;;
33756
33757  # This is an error.
33758  -*) as_fn_error $? "unrecognized option: \`$1'
33759Try \`$0 --help' for more information." ;;
33760
33761  *) as_fn_append ac_config_targets " $1"
33762     ac_need_defaults=false ;;
33763
33764  esac
33765  shift
33766done
33767
33768ac_configure_extra_args=
33769
33770if $ac_cs_silent; then
33771  exec 6>/dev/null
33772  ac_configure_extra_args="$ac_configure_extra_args --silent"
33773fi
33774
33775_ACEOF
33776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33777if \$ac_cs_recheck; then
33778  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33779  shift
33780  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33781  CONFIG_SHELL='$SHELL'
33782  export CONFIG_SHELL
33783  exec "\$@"
33784fi
33785
33786_ACEOF
33787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33788exec 5>>config.log
33789{
33790  echo
33791  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33792## Running $as_me. ##
33793_ASBOX
33794  $as_echo "$ac_log"
33795} >&5
33796
33797_ACEOF
33798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33799#
33800# INIT-COMMANDS
33801#
33802AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33803
33804
33805# The HP-UX ksh and POSIX shell print the target directory to stdout
33806# if CDPATH is set.
33807(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33808
33809sed_quote_subst='$sed_quote_subst'
33810double_quote_subst='$double_quote_subst'
33811delay_variable_subst='$delay_variable_subst'
33812macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33813macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33814enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33815enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33816pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33817enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33818shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33819SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33820ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33821PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33822host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33823host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33824host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33825build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33826build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33827build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33828SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33829Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33830GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33831EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33832FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33833LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33834NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33835LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33836max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33837ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33838exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33839lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33840lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33841lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33842lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33843lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33844reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33845reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33846OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33847deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33848file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33849file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33850want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33851DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33852sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33853AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33854AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33855archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33856STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33857RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33858old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33859old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33860old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33861lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33862CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33863CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33864compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33865GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33866lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33867lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33868lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33869lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33870lt_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"`'
33871lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33872nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33873lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33874lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33875objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33876MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33877lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33878lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33879lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33880lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33881lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33882need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33883MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33884DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33885NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33886LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33887OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33888OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33889libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33890shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33891extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33892archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33893enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33894export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33895whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33896compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33897old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33898old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33899archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33900archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33901module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33902module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33903with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33904allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33905no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33906hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33907hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33908hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33909hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33910hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33911hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33912hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33913inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33914link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33915always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33916export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33917exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33918include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33919prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33920postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33921file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33922variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33923need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33924need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33925version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33926runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33927shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33928shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33929libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33930library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33931soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33932install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33933postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33934postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33935finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33936finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33937hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33938sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33939configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33940configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33941hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33942enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33943enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33944enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33945old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33946striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33947
33948LTCC='$LTCC'
33949LTCFLAGS='$LTCFLAGS'
33950compiler='$compiler_DEFAULT'
33951
33952# A function that is used when there is no print builtin or printf.
33953func_fallback_echo ()
33954{
33955  eval 'cat <<_LTECHO_EOF
33956\$1
33957_LTECHO_EOF'
33958}
33959
33960# Quote evaled strings.
33961for var in SHELL \
33962ECHO \
33963PATH_SEPARATOR \
33964SED \
33965GREP \
33966EGREP \
33967FGREP \
33968LD \
33969NM \
33970LN_S \
33971lt_SP2NL \
33972lt_NL2SP \
33973reload_flag \
33974OBJDUMP \
33975deplibs_check_method \
33976file_magic_cmd \
33977file_magic_glob \
33978want_nocaseglob \
33979DLLTOOL \
33980sharedlib_from_linklib_cmd \
33981AR \
33982AR_FLAGS \
33983archiver_list_spec \
33984STRIP \
33985RANLIB \
33986CC \
33987CFLAGS \
33988compiler \
33989lt_cv_sys_global_symbol_pipe \
33990lt_cv_sys_global_symbol_to_cdecl \
33991lt_cv_sys_global_symbol_to_import \
33992lt_cv_sys_global_symbol_to_c_name_address \
33993lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33994lt_cv_nm_interface \
33995nm_file_list_spec \
33996lt_cv_truncate_bin \
33997lt_prog_compiler_no_builtin_flag \
33998lt_prog_compiler_pic \
33999lt_prog_compiler_wl \
34000lt_prog_compiler_static \
34001lt_cv_prog_compiler_c_o \
34002need_locks \
34003MANIFEST_TOOL \
34004DSYMUTIL \
34005NMEDIT \
34006LIPO \
34007OTOOL \
34008OTOOL64 \
34009shrext_cmds \
34010export_dynamic_flag_spec \
34011whole_archive_flag_spec \
34012compiler_needs_object \
34013with_gnu_ld \
34014allow_undefined_flag \
34015no_undefined_flag \
34016hardcode_libdir_flag_spec \
34017hardcode_libdir_separator \
34018exclude_expsyms \
34019include_expsyms \
34020file_list_spec \
34021variables_saved_for_relink \
34022libname_spec \
34023library_names_spec \
34024soname_spec \
34025install_override_mode \
34026finish_eval \
34027old_striplib \
34028striplib; do
34029    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34030    *[\\\\\\\`\\"\\\$]*)
34031      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34032      ;;
34033    *)
34034      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34035      ;;
34036    esac
34037done
34038
34039# Double-quote double-evaled strings.
34040for var in reload_cmds \
34041old_postinstall_cmds \
34042old_postuninstall_cmds \
34043old_archive_cmds \
34044extract_expsyms_cmds \
34045old_archive_from_new_cmds \
34046old_archive_from_expsyms_cmds \
34047archive_cmds \
34048archive_expsym_cmds \
34049module_cmds \
34050module_expsym_cmds \
34051export_symbols_cmds \
34052prelink_cmds \
34053postlink_cmds \
34054postinstall_cmds \
34055postuninstall_cmds \
34056finish_cmds \
34057sys_lib_search_path_spec \
34058configure_time_dlsearch_path \
34059configure_time_lt_sys_library_path; do
34060    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34061    *[\\\\\\\`\\"\\\$]*)
34062      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34063      ;;
34064    *)
34065      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34066      ;;
34067    esac
34068done
34069
34070ac_aux_dir='$ac_aux_dir'
34071
34072# See if we are running on zsh, and set the options that allow our
34073# commands through without removal of \ escapes INIT.
34074if test -n "\${ZSH_VERSION+set}"; then
34075   setopt NO_GLOB_SUBST
34076fi
34077
34078
34079    PACKAGE='$PACKAGE'
34080    VERSION='$VERSION'
34081    RM='$RM'
34082    ofile='$ofile'
34083
34084ac_aux_dir='$ac_aux_dir'
34085
34086
34087
34088_ACEOF
34089
34090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34091
34092# Handling of arguments.
34093for ac_config_target in $ac_config_targets
34094do
34095  case $ac_config_target in
34096    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34097    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34098    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34099    "prov/psm/libfabric-psm.spec") CONFIG_FILES="$CONFIG_FILES prov/psm/libfabric-psm.spec" ;;
34100    "prov/psm2/libfabric-psm2.spec") CONFIG_FILES="$CONFIG_FILES prov/psm2/libfabric-psm2.spec" ;;
34101    "prov/sockets/libfabric-sockets.spec") CONFIG_FILES="$CONFIG_FILES prov/sockets/libfabric-sockets.spec" ;;
34102    "prov/verbs/libfabric-verbs.spec") CONFIG_FILES="$CONFIG_FILES prov/verbs/libfabric-verbs.spec" ;;
34103    "prov/usnic/libfabric-usnic.spec") CONFIG_FILES="$CONFIG_FILES prov/usnic/libfabric-usnic.spec" ;;
34104    "prov/udp/libfabric-udp.spec") CONFIG_FILES="$CONFIG_FILES prov/udp/libfabric-udp.spec" ;;
34105    "prov/bgq/include/rdma/fi_direct.h") CONFIG_FILES="$CONFIG_FILES prov/bgq/include/rdma/fi_direct.h" ;;
34106    "libfabric.pc") CONFIG_FILES="$CONFIG_FILES libfabric.pc" ;;
34107    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34108    "libfabric.spec") CONFIG_FILES="$CONFIG_FILES libfabric.spec" ;;
34109    "libfabric.map") CONFIG_FILES="$CONFIG_FILES libfabric.map" ;;
34110
34111  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34112  esac
34113done
34114
34115
34116# If the user did not use the arguments to specify the items to instantiate,
34117# then the envvar interface is used.  Set only those that are not.
34118# We use the long form for the default assignment because of an extremely
34119# bizarre bug on SunOS 4.1.3.
34120if $ac_need_defaults; then
34121  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34122  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34123  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34124fi
34125
34126# Have a temporary directory for convenience.  Make it in the build tree
34127# simply because there is no reason against having it here, and in addition,
34128# creating and moving files from /tmp can sometimes cause problems.
34129# Hook for its removal unless debugging.
34130# Note that there is a small window in which the directory will not be cleaned:
34131# after its creation but before its name has been assigned to `$tmp'.
34132$debug ||
34133{
34134  tmp= ac_tmp=
34135  trap 'exit_status=$?
34136  : "${ac_tmp:=$tmp}"
34137  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34138' 0
34139  trap 'as_fn_exit 1' 1 2 13 15
34140}
34141# Create a (secure) tmp directory for tmp files.
34142
34143{
34144  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34145  test -d "$tmp"
34146}  ||
34147{
34148  tmp=./conf$$-$RANDOM
34149  (umask 077 && mkdir "$tmp")
34150} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34151ac_tmp=$tmp
34152
34153# Set up the scripts for CONFIG_FILES section.
34154# No need to generate them if there are no CONFIG_FILES.
34155# This happens for instance with `./config.status config.h'.
34156if test -n "$CONFIG_FILES"; then
34157
34158if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34159  ac_cs_awk_getline=:
34160  ac_cs_awk_pipe_init=
34161  ac_cs_awk_read_file='
34162      while ((getline aline < (F[key])) > 0)
34163	print(aline)
34164      close(F[key])'
34165  ac_cs_awk_pipe_fini=
34166else
34167  ac_cs_awk_getline=false
34168  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34169  ac_cs_awk_read_file='
34170      print "|#_!!_#|"
34171      print "cat " F[key] " &&"
34172      '$ac_cs_awk_pipe_init
34173  # The final `:' finishes the AND list.
34174  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34175fi
34176ac_cr=`echo X | tr X '\015'`
34177# On cygwin, bash can eat \r inside `` if the user requested igncr.
34178# But we know of no other shell where ac_cr would be empty at this
34179# point, so we can use a bashism as a fallback.
34180if test "x$ac_cr" = x; then
34181  eval ac_cr=\$\'\\r\'
34182fi
34183ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34184if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34185  ac_cs_awk_cr='\\r'
34186else
34187  ac_cs_awk_cr=$ac_cr
34188fi
34189
34190echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34191_ACEOF
34192
34193# Create commands to substitute file output variables.
34194{
34195  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34196  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34197  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34198  echo "_ACAWK" &&
34199  echo "_ACEOF"
34200} >conf$$files.sh &&
34201. ./conf$$files.sh ||
34202  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34203rm -f conf$$files.sh
34204
34205{
34206  echo "cat >conf$$subs.awk <<_ACEOF" &&
34207  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34208  echo "_ACEOF"
34209} >conf$$subs.sh ||
34210  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34211ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34212ac_delim='%!_!# '
34213for ac_last_try in false false false false false :; do
34214  . ./conf$$subs.sh ||
34215    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34216
34217  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34218  if test $ac_delim_n = $ac_delim_num; then
34219    break
34220  elif $ac_last_try; then
34221    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34222  else
34223    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34224  fi
34225done
34226rm -f conf$$subs.sh
34227
34228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34229cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34230_ACEOF
34231sed -n '
34232h
34233s/^/S["/; s/!.*/"]=/
34234p
34235g
34236s/^[^!]*!//
34237:repl
34238t repl
34239s/'"$ac_delim"'$//
34240t delim
34241:nl
34242h
34243s/\(.\{148\}\)..*/\1/
34244t more1
34245s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34246p
34247n
34248b repl
34249:more1
34250s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34251p
34252g
34253s/.\{148\}//
34254t nl
34255:delim
34256h
34257s/\(.\{148\}\)..*/\1/
34258t more2
34259s/["\\]/\\&/g; s/^/"/; s/$/"/
34260p
34261b
34262:more2
34263s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34264p
34265g
34266s/.\{148\}//
34267t delim
34268' <conf$$subs.awk | sed '
34269/^[^""]/{
34270  N
34271  s/\n//
34272}
34273' >>$CONFIG_STATUS || ac_write_fail=1
34274rm -f conf$$subs.awk
34275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34276_ACAWK
34277cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34278  for (key in S) S_is_set[key] = 1
34279  FS = ""
34280  \$ac_cs_awk_pipe_init
34281}
34282{
34283  line = $ 0
34284  nfields = split(line, field, "@")
34285  substed = 0
34286  len = length(field[1])
34287  for (i = 2; i < nfields; i++) {
34288    key = field[i]
34289    keylen = length(key)
34290    if (S_is_set[key]) {
34291      value = S[key]
34292      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34293      len += length(value) + length(field[++i])
34294      substed = 1
34295    } else
34296      len += 1 + keylen
34297  }
34298  if (nfields == 3 && !substed) {
34299    key = field[2]
34300    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
34301      \$ac_cs_awk_read_file
34302      next
34303    }
34304  }
34305  print line
34306}
34307\$ac_cs_awk_pipe_fini
34308_ACAWK
34309_ACEOF
34310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34311if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34312  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34313else
34314  cat
34315fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34316  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34317_ACEOF
34318
34319# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34320# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34321# trailing colons and then remove the whole line if VPATH becomes empty
34322# (actually we leave an empty line to preserve line numbers).
34323if test "x$srcdir" = x.; then
34324  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34325h
34326s///
34327s/^/:/
34328s/[	 ]*$/:/
34329s/:\$(srcdir):/:/g
34330s/:\${srcdir}:/:/g
34331s/:@srcdir@:/:/g
34332s/^:*//
34333s/:*$//
34334x
34335s/\(=[	 ]*\).*/\1/
34336G
34337s/\n//
34338s/^[^=]*=[	 ]*$//
34339}'
34340fi
34341
34342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34343fi # test -n "$CONFIG_FILES"
34344
34345# Set up the scripts for CONFIG_HEADERS section.
34346# No need to generate them if there are no CONFIG_HEADERS.
34347# This happens for instance with `./config.status Makefile'.
34348if test -n "$CONFIG_HEADERS"; then
34349cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34350BEGIN {
34351_ACEOF
34352
34353# Transform confdefs.h into an awk script `defines.awk', embedded as
34354# here-document in config.status, that substitutes the proper values into
34355# config.h.in to produce config.h.
34356
34357# Create a delimiter string that does not exist in confdefs.h, to ease
34358# handling of long lines.
34359ac_delim='%!_!# '
34360for ac_last_try in false false :; do
34361  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34362  if test -z "$ac_tt"; then
34363    break
34364  elif $ac_last_try; then
34365    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34366  else
34367    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34368  fi
34369done
34370
34371# For the awk script, D is an array of macro values keyed by name,
34372# likewise P contains macro parameters if any.  Preserve backslash
34373# newline sequences.
34374
34375ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34376sed -n '
34377s/.\{148\}/&'"$ac_delim"'/g
34378t rset
34379:rset
34380s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34381t def
34382d
34383:def
34384s/\\$//
34385t bsnl
34386s/["\\]/\\&/g
34387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34388D["\1"]=" \3"/p
34389s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34390d
34391:bsnl
34392s/["\\]/\\&/g
34393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34394D["\1"]=" \3\\\\\\n"\\/p
34395t cont
34396s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34397t cont
34398d
34399:cont
34400n
34401s/.\{148\}/&'"$ac_delim"'/g
34402t clear
34403:clear
34404s/\\$//
34405t bsnlc
34406s/["\\]/\\&/g; s/^/"/; s/$/"/p
34407d
34408:bsnlc
34409s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34410b cont
34411' <confdefs.h | sed '
34412s/'"$ac_delim"'/"\\\
34413"/g' >>$CONFIG_STATUS || ac_write_fail=1
34414
34415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34416  for (key in D) D_is_set[key] = 1
34417  FS = ""
34418}
34419/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34420  line = \$ 0
34421  split(line, arg, " ")
34422  if (arg[1] == "#") {
34423    defundef = arg[2]
34424    mac1 = arg[3]
34425  } else {
34426    defundef = substr(arg[1], 2)
34427    mac1 = arg[2]
34428  }
34429  split(mac1, mac2, "(") #)
34430  macro = mac2[1]
34431  prefix = substr(line, 1, index(line, defundef) - 1)
34432  if (D_is_set[macro]) {
34433    # Preserve the white space surrounding the "#".
34434    print prefix "define", macro P[macro] D[macro]
34435    next
34436  } else {
34437    # Replace #undef with comments.  This is necessary, for example,
34438    # in the case of _POSIX_SOURCE, which is predefined and required
34439    # on some systems where configure will not decide to define it.
34440    if (defundef == "undef") {
34441      print "/*", prefix defundef, macro, "*/"
34442      next
34443    }
34444  }
34445}
34446{ print }
34447_ACAWK
34448_ACEOF
34449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34450  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34451fi # test -n "$CONFIG_HEADERS"
34452
34453
34454eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34455shift
34456for ac_tag
34457do
34458  case $ac_tag in
34459  :[FHLC]) ac_mode=$ac_tag; continue;;
34460  esac
34461  case $ac_mode$ac_tag in
34462  :[FHL]*:*);;
34463  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34464  :[FH]-) ac_tag=-:-;;
34465  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34466  esac
34467  ac_save_IFS=$IFS
34468  IFS=:
34469  set x $ac_tag
34470  IFS=$ac_save_IFS
34471  shift
34472  ac_file=$1
34473  shift
34474
34475  case $ac_mode in
34476  :L) ac_source=$1;;
34477  :[FH])
34478    ac_file_inputs=
34479    for ac_f
34480    do
34481      case $ac_f in
34482      -) ac_f="$ac_tmp/stdin";;
34483      *) # Look for the file first in the build tree, then in the source tree
34484	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34485	 # because $ac_f cannot contain `:'.
34486	 test -f "$ac_f" ||
34487	   case $ac_f in
34488	   [\\/$]*) false;;
34489	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34490	   esac ||
34491	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34492      esac
34493      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34494      as_fn_append ac_file_inputs " '$ac_f'"
34495    done
34496
34497    # Let's still pretend it is `configure' which instantiates (i.e., don't
34498    # use $as_me), people would be surprised to read:
34499    #    /* config.h.  Generated by config.status.  */
34500    configure_input='Generated from '`
34501	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34502	`' by configure.'
34503    if test x"$ac_file" != x-; then
34504      configure_input="$ac_file.  $configure_input"
34505      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34506$as_echo "$as_me: creating $ac_file" >&6;}
34507    fi
34508    # Neutralize special characters interpreted by sed in replacement strings.
34509    case $configure_input in #(
34510    *\&* | *\|* | *\\* )
34511       ac_sed_conf_input=`$as_echo "$configure_input" |
34512       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34513    *) ac_sed_conf_input=$configure_input;;
34514    esac
34515
34516    case $ac_tag in
34517    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34518      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34519    esac
34520    ;;
34521  esac
34522
34523  ac_dir=`$as_dirname -- "$ac_file" ||
34524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34525	 X"$ac_file" : 'X\(//\)[^/]' \| \
34526	 X"$ac_file" : 'X\(//\)$' \| \
34527	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34528$as_echo X"$ac_file" |
34529    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34530	    s//\1/
34531	    q
34532	  }
34533	  /^X\(\/\/\)[^/].*/{
34534	    s//\1/
34535	    q
34536	  }
34537	  /^X\(\/\/\)$/{
34538	    s//\1/
34539	    q
34540	  }
34541	  /^X\(\/\).*/{
34542	    s//\1/
34543	    q
34544	  }
34545	  s/.*/./; q'`
34546  as_dir="$ac_dir"; as_fn_mkdir_p
34547  ac_builddir=.
34548
34549case "$ac_dir" in
34550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34551*)
34552  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34553  # A ".." for each directory in $ac_dir_suffix.
34554  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34555  case $ac_top_builddir_sub in
34556  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34557  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34558  esac ;;
34559esac
34560ac_abs_top_builddir=$ac_pwd
34561ac_abs_builddir=$ac_pwd$ac_dir_suffix
34562# for backward compatibility:
34563ac_top_builddir=$ac_top_build_prefix
34564
34565case $srcdir in
34566  .)  # We are building in place.
34567    ac_srcdir=.
34568    ac_top_srcdir=$ac_top_builddir_sub
34569    ac_abs_top_srcdir=$ac_pwd ;;
34570  [\\/]* | ?:[\\/]* )  # Absolute name.
34571    ac_srcdir=$srcdir$ac_dir_suffix;
34572    ac_top_srcdir=$srcdir
34573    ac_abs_top_srcdir=$srcdir ;;
34574  *) # Relative name.
34575    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34576    ac_top_srcdir=$ac_top_build_prefix$srcdir
34577    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34578esac
34579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34580
34581
34582  case $ac_mode in
34583  :F)
34584  #
34585  # CONFIG_FILE
34586  #
34587
34588  case $INSTALL in
34589  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34590  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34591  esac
34592  ac_MKDIR_P=$MKDIR_P
34593  case $MKDIR_P in
34594  [\\/$]* | ?:[\\/]* ) ;;
34595  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34596  esac
34597_ACEOF
34598
34599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34600# If the template does not know about datarootdir, expand it.
34601# FIXME: This hack should be removed a few years after 2.60.
34602ac_datarootdir_hack=; ac_datarootdir_seen=
34603ac_sed_dataroot='
34604/datarootdir/ {
34605  p
34606  q
34607}
34608/@datadir@/p
34609/@docdir@/p
34610/@infodir@/p
34611/@localedir@/p
34612/@mandir@/p'
34613case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34614*datarootdir*) ac_datarootdir_seen=yes;;
34615*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34616  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34617$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34618_ACEOF
34619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34620  ac_datarootdir_hack='
34621  s&@datadir@&$datadir&g
34622  s&@docdir@&$docdir&g
34623  s&@infodir@&$infodir&g
34624  s&@localedir@&$localedir&g
34625  s&@mandir@&$mandir&g
34626  s&\\\${datarootdir}&$datarootdir&g' ;;
34627esac
34628_ACEOF
34629
34630# Neutralize VPATH when `$srcdir' = `.'.
34631# Shell code in configure.ac might set extrasub.
34632# FIXME: do we really want to maintain this feature?
34633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34634ac_sed_extra="$ac_vpsub
34635$extrasub
34636_ACEOF
34637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34638:t
34639/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34640s|@configure_input@|$ac_sed_conf_input|;t t
34641s&@top_builddir@&$ac_top_builddir_sub&;t t
34642s&@top_build_prefix@&$ac_top_build_prefix&;t t
34643s&@srcdir@&$ac_srcdir&;t t
34644s&@abs_srcdir@&$ac_abs_srcdir&;t t
34645s&@top_srcdir@&$ac_top_srcdir&;t t
34646s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34647s&@builddir@&$ac_builddir&;t t
34648s&@abs_builddir@&$ac_abs_builddir&;t t
34649s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34650s&@INSTALL@&$ac_INSTALL&;t t
34651s&@MKDIR_P@&$ac_MKDIR_P&;t t
34652$ac_datarootdir_hack
34653"
34654eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34655if $ac_cs_awk_getline; then
34656  $AWK -f "$ac_tmp/subs.awk"
34657else
34658  $AWK -f "$ac_tmp/subs.awk" | $SHELL
34659fi \
34660  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34661
34662test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34663  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34664  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34665      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34666  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34667which seems to be undefined.  Please make sure it is defined" >&5
34668$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34669which seems to be undefined.  Please make sure it is defined" >&2;}
34670
34671  rm -f "$ac_tmp/stdin"
34672  case $ac_file in
34673  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34674  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34675  esac \
34676  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34677 ;;
34678  :H)
34679  #
34680  # CONFIG_HEADER
34681  #
34682  if test x"$ac_file" != x-; then
34683    {
34684      $as_echo "/* $configure_input  */" \
34685      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34686    } >"$ac_tmp/config.h" \
34687      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34688    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34689      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34690$as_echo "$as_me: $ac_file is unchanged" >&6;}
34691    else
34692      rm -f "$ac_file"
34693      mv "$ac_tmp/config.h" "$ac_file" \
34694	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34695    fi
34696  else
34697    $as_echo "/* $configure_input  */" \
34698      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34699      || as_fn_error $? "could not create -" "$LINENO" 5
34700  fi
34701# Compute "$ac_file"'s index in $config_headers.
34702_am_arg="$ac_file"
34703_am_stamp_count=1
34704for _am_header in $config_headers :; do
34705  case $_am_header in
34706    $_am_arg | $_am_arg:* )
34707      break ;;
34708    * )
34709      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34710  esac
34711done
34712echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34713$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34714	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34715	 X"$_am_arg" : 'X\(//\)$' \| \
34716	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34717$as_echo X"$_am_arg" |
34718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34719	    s//\1/
34720	    q
34721	  }
34722	  /^X\(\/\/\)[^/].*/{
34723	    s//\1/
34724	    q
34725	  }
34726	  /^X\(\/\/\)$/{
34727	    s//\1/
34728	    q
34729	  }
34730	  /^X\(\/\).*/{
34731	    s//\1/
34732	    q
34733	  }
34734	  s/.*/./; q'`/stamp-h$_am_stamp_count
34735 ;;
34736
34737  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34738$as_echo "$as_me: executing $ac_file commands" >&6;}
34739 ;;
34740  esac
34741
34742
34743  case $ac_file$ac_mode in
34744    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34745  # Older Autoconf quotes --file arguments for eval, but not when files
34746  # are listed without --file.  Let's play safe and only enable the eval
34747  # if we detect the quoting.
34748  case $CONFIG_FILES in
34749  *\'*) eval set x "$CONFIG_FILES" ;;
34750  *)   set x $CONFIG_FILES ;;
34751  esac
34752  shift
34753  for mf
34754  do
34755    # Strip MF so we end up with the name of the file.
34756    mf=`echo "$mf" | sed -e 's/:.*$//'`
34757    # Check whether this is an Automake generated Makefile or not.
34758    # We used to match only the files named 'Makefile.in', but
34759    # some people rename them; so instead we look at the file content.
34760    # Grep'ing the first line is not enough: some people post-process
34761    # each Makefile.in and add a new line on top of each file to say so.
34762    # Grep'ing the whole file is not good either: AIX grep has a line
34763    # limit of 2048, but all sed's we know have understand at least 4000.
34764    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34765      dirpart=`$as_dirname -- "$mf" ||
34766$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34767	 X"$mf" : 'X\(//\)[^/]' \| \
34768	 X"$mf" : 'X\(//\)$' \| \
34769	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34770$as_echo X"$mf" |
34771    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34772	    s//\1/
34773	    q
34774	  }
34775	  /^X\(\/\/\)[^/].*/{
34776	    s//\1/
34777	    q
34778	  }
34779	  /^X\(\/\/\)$/{
34780	    s//\1/
34781	    q
34782	  }
34783	  /^X\(\/\).*/{
34784	    s//\1/
34785	    q
34786	  }
34787	  s/.*/./; q'`
34788    else
34789      continue
34790    fi
34791    # Extract the definition of DEPDIR, am__include, and am__quote
34792    # from the Makefile without running 'make'.
34793    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34794    test -z "$DEPDIR" && continue
34795    am__include=`sed -n 's/^am__include = //p' < "$mf"`
34796    test -z "$am__include" && continue
34797    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34798    # Find all dependency output files, they are included files with
34799    # $(DEPDIR) in their names.  We invoke sed twice because it is the
34800    # simplest approach to changing $(DEPDIR) to its actual value in the
34801    # expansion.
34802    for file in `sed -n "
34803      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34804	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
34805      # Make sure the directory exists.
34806      test -f "$dirpart/$file" && continue
34807      fdir=`$as_dirname -- "$file" ||
34808$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34809	 X"$file" : 'X\(//\)[^/]' \| \
34810	 X"$file" : 'X\(//\)$' \| \
34811	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34812$as_echo X"$file" |
34813    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34814	    s//\1/
34815	    q
34816	  }
34817	  /^X\(\/\/\)[^/].*/{
34818	    s//\1/
34819	    q
34820	  }
34821	  /^X\(\/\/\)$/{
34822	    s//\1/
34823	    q
34824	  }
34825	  /^X\(\/\).*/{
34826	    s//\1/
34827	    q
34828	  }
34829	  s/.*/./; q'`
34830      as_dir=$dirpart/$fdir; as_fn_mkdir_p
34831      # echo "creating $dirpart/$file"
34832      echo '# dummy' > "$dirpart/$file"
34833    done
34834  done
34835}
34836 ;;
34837    "libtool":C)
34838
34839    # See if we are running on zsh, and set the options that allow our
34840    # commands through without removal of \ escapes.
34841    if test -n "${ZSH_VERSION+set}"; then
34842      setopt NO_GLOB_SUBST
34843    fi
34844
34845    cfgfile=${ofile}T
34846    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34847    $RM "$cfgfile"
34848
34849    cat <<_LT_EOF >> "$cfgfile"
34850#! $SHELL
34851# Generated automatically by $as_me ($PACKAGE) $VERSION
34852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34853# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34854
34855# Provide generalized library-building support services.
34856# Written by Gordon Matzigkeit, 1996
34857
34858# Copyright (C) 2014 Free Software Foundation, Inc.
34859# This is free software; see the source for copying conditions.  There is NO
34860# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34861
34862# GNU Libtool is free software; you can redistribute it and/or modify
34863# it under the terms of the GNU General Public License as published by
34864# the Free Software Foundation; either version 2 of of the License, or
34865# (at your option) any later version.
34866#
34867# As a special exception to the GNU General Public License, if you
34868# distribute this file as part of a program or library that is built
34869# using GNU Libtool, you may include this file under the  same
34870# distribution terms that you use for the rest of that program.
34871#
34872# GNU Libtool is distributed in the hope that it will be useful, but
34873# WITHOUT ANY WARRANTY; without even the implied warranty of
34874# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34875# GNU General Public License for more details.
34876#
34877# You should have received a copy of the GNU General Public License
34878# along with this program.  If not, see <http://www.gnu.org/licenses/>.
34879
34880
34881# The names of the tagged configurations supported by this script.
34882available_tags=''
34883
34884# Configured defaults for sys_lib_dlsearch_path munging.
34885: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
34886
34887# ### BEGIN LIBTOOL CONFIG
34888
34889# Which release of libtool.m4 was used?
34890macro_version=$macro_version
34891macro_revision=$macro_revision
34892
34893# Whether or not to build shared libraries.
34894build_libtool_libs=$enable_shared
34895
34896# Whether or not to build static libraries.
34897build_old_libs=$enable_static
34898
34899# What type of objects to build.
34900pic_mode=$pic_mode
34901
34902# Whether or not to optimize for fast installation.
34903fast_install=$enable_fast_install
34904
34905# Shared archive member basename,for filename based shared library versioning on AIX.
34906shared_archive_member_spec=$shared_archive_member_spec
34907
34908# Shell to use when invoking shell scripts.
34909SHELL=$lt_SHELL
34910
34911# An echo program that protects backslashes.
34912ECHO=$lt_ECHO
34913
34914# The PATH separator for the build system.
34915PATH_SEPARATOR=$lt_PATH_SEPARATOR
34916
34917# The host system.
34918host_alias=$host_alias
34919host=$host
34920host_os=$host_os
34921
34922# The build system.
34923build_alias=$build_alias
34924build=$build
34925build_os=$build_os
34926
34927# A sed program that does not truncate output.
34928SED=$lt_SED
34929
34930# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34931Xsed="\$SED -e 1s/^X//"
34932
34933# A grep program that handles long lines.
34934GREP=$lt_GREP
34935
34936# An ERE matcher.
34937EGREP=$lt_EGREP
34938
34939# A literal string matcher.
34940FGREP=$lt_FGREP
34941
34942# A BSD- or MS-compatible name lister.
34943NM=$lt_NM
34944
34945# Whether we need soft or hard links.
34946LN_S=$lt_LN_S
34947
34948# What is the maximum length of a command?
34949max_cmd_len=$max_cmd_len
34950
34951# Object file suffix (normally "o").
34952objext=$ac_objext
34953
34954# Executable file suffix (normally "").
34955exeext=$exeext
34956
34957# whether the shell understands "unset".
34958lt_unset=$lt_unset
34959
34960# turn spaces into newlines.
34961SP2NL=$lt_lt_SP2NL
34962
34963# turn newlines into spaces.
34964NL2SP=$lt_lt_NL2SP
34965
34966# convert \$build file names to \$host format.
34967to_host_file_cmd=$lt_cv_to_host_file_cmd
34968
34969# convert \$build files to toolchain format.
34970to_tool_file_cmd=$lt_cv_to_tool_file_cmd
34971
34972# An object symbol dumper.
34973OBJDUMP=$lt_OBJDUMP
34974
34975# Method to check whether dependent libraries are shared objects.
34976deplibs_check_method=$lt_deplibs_check_method
34977
34978# Command to use when deplibs_check_method = "file_magic".
34979file_magic_cmd=$lt_file_magic_cmd
34980
34981# How to find potential files when deplibs_check_method = "file_magic".
34982file_magic_glob=$lt_file_magic_glob
34983
34984# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
34985want_nocaseglob=$lt_want_nocaseglob
34986
34987# DLL creation program.
34988DLLTOOL=$lt_DLLTOOL
34989
34990# Command to associate shared and link libraries.
34991sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
34992
34993# The archiver.
34994AR=$lt_AR
34995
34996# Flags to create an archive.
34997AR_FLAGS=$lt_AR_FLAGS
34998
34999# How to feed a file listing to the archiver.
35000archiver_list_spec=$lt_archiver_list_spec
35001
35002# A symbol stripping program.
35003STRIP=$lt_STRIP
35004
35005# Commands used to install an old-style archive.
35006RANLIB=$lt_RANLIB
35007old_postinstall_cmds=$lt_old_postinstall_cmds
35008old_postuninstall_cmds=$lt_old_postuninstall_cmds
35009
35010# Whether to use a lock for old archive extraction.
35011lock_old_archive_extraction=$lock_old_archive_extraction
35012
35013# A C compiler.
35014LTCC=$lt_CC
35015
35016# LTCC compiler flags.
35017LTCFLAGS=$lt_CFLAGS
35018
35019# Take the output of nm and produce a listing of raw symbols and C names.
35020global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35021
35022# Transform the output of nm in a proper C declaration.
35023global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35024
35025# Transform the output of nm into a list of symbols to manually relocate.
35026global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35027
35028# Transform the output of nm in a C name address pair.
35029global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35030
35031# Transform the output of nm in a C name address pair when lib prefix is needed.
35032global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35033
35034# The name lister interface.
35035nm_interface=$lt_lt_cv_nm_interface
35036
35037# Specify filename containing input files for \$NM.
35038nm_file_list_spec=$lt_nm_file_list_spec
35039
35040# The root where to search for dependent libraries,and where our libraries should be installed.
35041lt_sysroot=$lt_sysroot
35042
35043# Command to truncate a binary pipe.
35044lt_truncate_bin=$lt_lt_cv_truncate_bin
35045
35046# The name of the directory that contains temporary libtool files.
35047objdir=$objdir
35048
35049# Used to examine libraries when file_magic_cmd begins with "file".
35050MAGIC_CMD=$MAGIC_CMD
35051
35052# Must we lock files when doing compilation?
35053need_locks=$lt_need_locks
35054
35055# Manifest tool.
35056MANIFEST_TOOL=$lt_MANIFEST_TOOL
35057
35058# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35059DSYMUTIL=$lt_DSYMUTIL
35060
35061# Tool to change global to local symbols on Mac OS X.
35062NMEDIT=$lt_NMEDIT
35063
35064# Tool to manipulate fat objects and archives on Mac OS X.
35065LIPO=$lt_LIPO
35066
35067# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35068OTOOL=$lt_OTOOL
35069
35070# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35071OTOOL64=$lt_OTOOL64
35072
35073# Old archive suffix (normally "a").
35074libext=$libext
35075
35076# Shared library suffix (normally ".so").
35077shrext_cmds=$lt_shrext_cmds
35078
35079# The commands to extract the exported symbol list from a shared archive.
35080extract_expsyms_cmds=$lt_extract_expsyms_cmds
35081
35082# Variables whose values should be saved in libtool wrapper scripts and
35083# restored at link time.
35084variables_saved_for_relink=$lt_variables_saved_for_relink
35085
35086# Do we need the "lib" prefix for modules?
35087need_lib_prefix=$need_lib_prefix
35088
35089# Do we need a version for libraries?
35090need_version=$need_version
35091
35092# Library versioning type.
35093version_type=$version_type
35094
35095# Shared library runtime path variable.
35096runpath_var=$runpath_var
35097
35098# Shared library path variable.
35099shlibpath_var=$shlibpath_var
35100
35101# Is shlibpath searched before the hard-coded library search path?
35102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35103
35104# Format of library name prefix.
35105libname_spec=$lt_libname_spec
35106
35107# List of archive names.  First name is the real one, the rest are links.
35108# The last name is the one that the linker finds with -lNAME
35109library_names_spec=$lt_library_names_spec
35110
35111# The coded name of the library, if different from the real name.
35112soname_spec=$lt_soname_spec
35113
35114# Permission mode override for installation of shared libraries.
35115install_override_mode=$lt_install_override_mode
35116
35117# Command to use after installation of a shared archive.
35118postinstall_cmds=$lt_postinstall_cmds
35119
35120# Command to use after uninstallation of a shared archive.
35121postuninstall_cmds=$lt_postuninstall_cmds
35122
35123# Commands used to finish a libtool library installation in a directory.
35124finish_cmds=$lt_finish_cmds
35125
35126# As "finish_cmds", except a single script fragment to be evaled but
35127# not shown.
35128finish_eval=$lt_finish_eval
35129
35130# Whether we should hardcode library paths into libraries.
35131hardcode_into_libs=$hardcode_into_libs
35132
35133# Compile-time system search path for libraries.
35134sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35135
35136# Detected run-time system search path for libraries.
35137sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35138
35139# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35140configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35141
35142# Whether dlopen is supported.
35143dlopen_support=$enable_dlopen
35144
35145# Whether dlopen of programs is supported.
35146dlopen_self=$enable_dlopen_self
35147
35148# Whether dlopen of statically linked programs is supported.
35149dlopen_self_static=$enable_dlopen_self_static
35150
35151# Commands to strip libraries.
35152old_striplib=$lt_old_striplib
35153striplib=$lt_striplib
35154
35155
35156# The linker used to build libraries.
35157LD=$lt_LD
35158
35159# How to create reloadable object files.
35160reload_flag=$lt_reload_flag
35161reload_cmds=$lt_reload_cmds
35162
35163# Commands used to build an old-style archive.
35164old_archive_cmds=$lt_old_archive_cmds
35165
35166# A language specific compiler.
35167CC=$lt_compiler
35168
35169# Is the compiler the GNU compiler?
35170with_gcc=$GCC
35171
35172# Compiler flag to turn off builtin functions.
35173no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35174
35175# Additional compiler flags for building library objects.
35176pic_flag=$lt_lt_prog_compiler_pic
35177
35178# How to pass a linker flag through the compiler.
35179wl=$lt_lt_prog_compiler_wl
35180
35181# Compiler flag to prevent dynamic linking.
35182link_static_flag=$lt_lt_prog_compiler_static
35183
35184# Does compiler simultaneously support -c and -o options?
35185compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35186
35187# Whether or not to add -lc for building shared libraries.
35188build_libtool_need_lc=$archive_cmds_need_lc
35189
35190# Whether or not to disallow shared libs when runtime libs are static.
35191allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35192
35193# Compiler flag to allow reflexive dlopens.
35194export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35195
35196# Compiler flag to generate shared objects directly from archives.
35197whole_archive_flag_spec=$lt_whole_archive_flag_spec
35198
35199# Whether the compiler copes with passing no objects directly.
35200compiler_needs_object=$lt_compiler_needs_object
35201
35202# Create an old-style archive from a shared archive.
35203old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35204
35205# Create a temporary old-style archive to link instead of a shared archive.
35206old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35207
35208# Commands used to build a shared archive.
35209archive_cmds=$lt_archive_cmds
35210archive_expsym_cmds=$lt_archive_expsym_cmds
35211
35212# Commands used to build a loadable module if different from building
35213# a shared archive.
35214module_cmds=$lt_module_cmds
35215module_expsym_cmds=$lt_module_expsym_cmds
35216
35217# Whether we are building with GNU ld or not.
35218with_gnu_ld=$lt_with_gnu_ld
35219
35220# Flag that allows shared libraries with undefined symbols to be built.
35221allow_undefined_flag=$lt_allow_undefined_flag
35222
35223# Flag that enforces no undefined symbols.
35224no_undefined_flag=$lt_no_undefined_flag
35225
35226# Flag to hardcode \$libdir into a binary during linking.
35227# This must work even if \$libdir does not exist
35228hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35229
35230# Whether we need a single "-rpath" flag with a separated argument.
35231hardcode_libdir_separator=$lt_hardcode_libdir_separator
35232
35233# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35234# DIR into the resulting binary.
35235hardcode_direct=$hardcode_direct
35236
35237# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35238# DIR into the resulting binary and the resulting library dependency is
35239# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35240# library is relocated.
35241hardcode_direct_absolute=$hardcode_direct_absolute
35242
35243# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35244# into the resulting binary.
35245hardcode_minus_L=$hardcode_minus_L
35246
35247# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35248# into the resulting binary.
35249hardcode_shlibpath_var=$hardcode_shlibpath_var
35250
35251# Set to "yes" if building a shared library automatically hardcodes DIR
35252# into the library and all subsequent libraries and executables linked
35253# against it.
35254hardcode_automatic=$hardcode_automatic
35255
35256# Set to yes if linker adds runtime paths of dependent libraries
35257# to runtime path list.
35258inherit_rpath=$inherit_rpath
35259
35260# Whether libtool must link a program against all its dependency libraries.
35261link_all_deplibs=$link_all_deplibs
35262
35263# Set to "yes" if exported symbols are required.
35264always_export_symbols=$always_export_symbols
35265
35266# The commands to list exported symbols.
35267export_symbols_cmds=$lt_export_symbols_cmds
35268
35269# Symbols that should not be listed in the preloaded symbols.
35270exclude_expsyms=$lt_exclude_expsyms
35271
35272# Symbols that must always be exported.
35273include_expsyms=$lt_include_expsyms
35274
35275# Commands necessary for linking programs (against libraries) with templates.
35276prelink_cmds=$lt_prelink_cmds
35277
35278# Commands necessary for finishing linking programs.
35279postlink_cmds=$lt_postlink_cmds
35280
35281# Specify filename containing input files.
35282file_list_spec=$lt_file_list_spec
35283
35284# How to hardcode a shared library path into an executable.
35285hardcode_action=$hardcode_action
35286
35287# ### END LIBTOOL CONFIG
35288
35289_LT_EOF
35290
35291    cat <<'_LT_EOF' >> "$cfgfile"
35292
35293# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35294
35295# func_munge_path_list VARIABLE PATH
35296# -----------------------------------
35297# VARIABLE is name of variable containing _space_ separated list of
35298# directories to be munged by the contents of PATH, which is string
35299# having a format:
35300# "DIR[:DIR]:"
35301#       string "DIR[ DIR]" will be prepended to VARIABLE
35302# ":DIR[:DIR]"
35303#       string "DIR[ DIR]" will be appended to VARIABLE
35304# "DIRP[:DIRP]::[DIRA:]DIRA"
35305#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35306#       "DIRA[ DIRA]" will be appended to VARIABLE
35307# "DIR[:DIR]"
35308#       VARIABLE will be replaced by "DIR[ DIR]"
35309func_munge_path_list ()
35310{
35311    case x$2 in
35312    x)
35313        ;;
35314    *:)
35315        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35316        ;;
35317    x:*)
35318        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35319        ;;
35320    *::*)
35321        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35322        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35323        ;;
35324    *)
35325        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35326        ;;
35327    esac
35328}
35329
35330
35331# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35332func_cc_basename ()
35333{
35334    for cc_temp in $*""; do
35335      case $cc_temp in
35336        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35337        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35338        \-*) ;;
35339        *) break;;
35340      esac
35341    done
35342    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35343}
35344
35345
35346# ### END FUNCTIONS SHARED WITH CONFIGURE
35347
35348_LT_EOF
35349
35350  case $host_os in
35351  aix3*)
35352    cat <<\_LT_EOF >> "$cfgfile"
35353# AIX sometimes has problems with the GCC collect2 program.  For some
35354# reason, if we set the COLLECT_NAMES environment variable, the problems
35355# vanish in a puff of smoke.
35356if test set != "${COLLECT_NAMES+set}"; then
35357  COLLECT_NAMES=
35358  export COLLECT_NAMES
35359fi
35360_LT_EOF
35361    ;;
35362  esac
35363
35364
35365ltmain=$ac_aux_dir/ltmain.sh
35366
35367
35368  # We use sed instead of cat because bash on DJGPP gets confused if
35369  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35370  # text mode, it properly converts lines to CR/LF.  This bash problem
35371  # is reportedly fixed, but why not run on old versions too?
35372  sed '$q' "$ltmain" >> "$cfgfile" \
35373     || (rm -f "$cfgfile"; exit 1)
35374
35375   mv -f "$cfgfile" "$ofile" ||
35376    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35377  chmod +x "$ofile"
35378
35379 ;;
35380
35381  esac
35382done # for ac_tag
35383
35384
35385as_fn_exit 0
35386_ACEOF
35387ac_clean_files=$ac_clean_files_save
35388
35389test $ac_write_fail = 0 ||
35390  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35391
35392
35393# configure is writing to config.log, and then calls config.status.
35394# config.status does its own redirection, appending to config.log.
35395# Unfortunately, on DOS this fails, as config.log is still kept open
35396# by configure, so config.status won't be able to write to it; its
35397# output is simply discarded.  So we exec the FD to /dev/null,
35398# effectively closing config.log, so it can be properly (re)opened and
35399# appended to by config.status.  When coming back to configure, we
35400# need to make the FD available again.
35401if test "$no_create" != yes; then
35402  ac_cs_success=:
35403  ac_config_status_args=
35404  test "$silent" = yes &&
35405    ac_config_status_args="$ac_config_status_args --quiet"
35406  exec 5>/dev/null
35407  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35408  exec 5>>config.log
35409  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35410  # would make configure fail if this is the last instruction.
35411  $ac_cs_success || as_fn_exit 1
35412fi
35413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35414  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35415$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35416fi
35417
35418
35419if test "$PROVIDERS_TO_BUILD" = ""; then
35420	echo "***"
35421	echo "*** No providers were configured. This may not be what you wanted."
35422	echo "***"
35423	exit 1
35424fi
35425
35426for i in $PROVIDERS_TO_BUILD; do
35427	v=${i}_dl
35428	if test `eval echo \\$${v}` == "1"; then
35429		dso="$i ${dso}"
35430	else
35431		builtin="$i ${builtin}"
35432	fi
35433done
35434cat <<EOF
35435***
35436*** Built-in providers:	${builtin}
35437*** DSO providers:	${dso}
35438***
35439EOF
35440