1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for hwloc 2.5.0.
4#
5# Report bugs to <https://github.com/open-mpi/hwloc/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://github.com/open-mpi/hwloc/issues about your
280$0: system, including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='hwloc'
623PACKAGE_TARNAME='hwloc'
624PACKAGE_VERSION='2.5.0'
625PACKAGE_STRING='hwloc 2.5.0'
626PACKAGE_BUGREPORT='https://github.com/open-mpi/hwloc/issues'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_subst_vars='am__EXEEXT_FALSE
662am__EXEEXT_TRUE
663LTLIBOBJS
664LIBOBJS
665FOUND_XZ_FALSE
666FOUND_XZ_TRUE
667BUILD_MPITOOLS_FALSE
668BUILD_MPITOOLS_TRUE
669BUILD_NETLOCSCOTCH_FALSE
670BUILD_NETLOCSCOTCH_TRUE
671BUILD_NETLOC_FALSE
672BUILD_NETLOC_TRUE
673HWLOC_HAVE_CXX_FALSE
674HWLOC_HAVE_CXX_TRUE
675HWLOC_XML_LIBXML_BUILD_STATIC_FALSE
676HWLOC_XML_LIBXML_BUILD_STATIC_TRUE
677HWLOC_GL_BUILD_STATIC_FALSE
678HWLOC_GL_BUILD_STATIC_TRUE
679HWLOC_LEVELZERO_BUILD_STATIC_FALSE
680HWLOC_LEVELZERO_BUILD_STATIC_TRUE
681HWLOC_RSMI_BUILD_STATIC_FALSE
682HWLOC_RSMI_BUILD_STATIC_TRUE
683HWLOC_NVML_BUILD_STATIC_FALSE
684HWLOC_NVML_BUILD_STATIC_TRUE
685HWLOC_CUDA_BUILD_STATIC_FALSE
686HWLOC_CUDA_BUILD_STATIC_TRUE
687HWLOC_OPENCL_BUILD_STATIC_FALSE
688HWLOC_OPENCL_BUILD_STATIC_TRUE
689HWLOC_PCI_BUILD_STATIC_FALSE
690HWLOC_PCI_BUILD_STATIC_TRUE
691HWLOC_HAVE_PLUGINS_FALSE
692HWLOC_HAVE_PLUGINS_TRUE
693HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE
694HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE
695HWLOC_HAVE_X86_CPUID_FALSE
696HWLOC_HAVE_X86_CPUID_TRUE
697HWLOC_HAVE_X86_64_FALSE
698HWLOC_HAVE_X86_64_TRUE
699HWLOC_HAVE_X86_32_FALSE
700HWLOC_HAVE_X86_32_TRUE
701HWLOC_HAVE_X86_FALSE
702HWLOC_HAVE_X86_TRUE
703HWLOC_HAVE_MINGW32_FALSE
704HWLOC_HAVE_MINGW32_TRUE
705HWLOC_HAVE_WINDOWS_FALSE
706HWLOC_HAVE_WINDOWS_TRUE
707HWLOC_HAVE_HPUX_FALSE
708HWLOC_HAVE_HPUX_TRUE
709HWLOC_HAVE_AIX_FALSE
710HWLOC_HAVE_AIX_TRUE
711HWLOC_HAVE_SOLARIS_FALSE
712HWLOC_HAVE_SOLARIS_TRUE
713HWLOC_HAVE_NETBSD_FALSE
714HWLOC_HAVE_NETBSD_TRUE
715HWLOC_HAVE_FREEBSD_FALSE
716HWLOC_HAVE_FREEBSD_TRUE
717HWLOC_HAVE_DARWIN_FALSE
718HWLOC_HAVE_DARWIN_TRUE
719HWLOC_HAVE_IRIX_FALSE
720HWLOC_HAVE_IRIX_TRUE
721HWLOC_HAVE_BGQ_FALSE
722HWLOC_HAVE_BGQ_TRUE
723HWLOC_HAVE_LINUX_FALSE
724HWLOC_HAVE_LINUX_TRUE
725HWLOC_INSTALL_DOXYGEN_FALSE
726HWLOC_INSTALL_DOXYGEN_TRUE
727HWLOC_BUILD_README_FALSE
728HWLOC_BUILD_README_TRUE
729HWLOC_BUILD_DOXYGEN_FALSE
730HWLOC_BUILD_DOXYGEN_TRUE
731HWLOC_HAVE_USER32_FALSE
732HWLOC_HAVE_USER32_TRUE
733HWLOC_HAVE_BUNZIPP_FALSE
734HWLOC_HAVE_BUNZIPP_TRUE
735HWLOC_HAVE_LEVELZERO_FALSE
736HWLOC_HAVE_LEVELZERO_TRUE
737HWLOC_HAVE_RSMI_FALSE
738HWLOC_HAVE_RSMI_TRUE
739HWLOC_HAVE_NVML_FALSE
740HWLOC_HAVE_NVML_TRUE
741HWLOC_HAVE_OPENCL_FALSE
742HWLOC_HAVE_OPENCL_TRUE
743HWLOC_HAVE_PCIACCESS_FALSE
744HWLOC_HAVE_PCIACCESS_TRUE
745HWLOC_HAVE_CAIRO_FALSE
746HWLOC_HAVE_CAIRO_TRUE
747HWLOC_HAVE_LIBXML2_FALSE
748HWLOC_HAVE_LIBXML2_TRUE
749HWLOC_HAVE_CUDART_FALSE
750HWLOC_HAVE_CUDART_TRUE
751HWLOC_HAVE_GL_FALSE
752HWLOC_HAVE_GL_TRUE
753HWLOC_HAVE_CUDA_FALSE
754HWLOC_HAVE_CUDA_TRUE
755HWLOC_HAVE_LIBIBVERBS_FALSE
756HWLOC_HAVE_LIBIBVERBS_TRUE
757HWLOC_HAVE_LINUX_LIBNUMA_FALSE
758HWLOC_HAVE_LINUX_LIBNUMA_TRUE
759HWLOC_HAVE_PTHREAD_FALSE
760HWLOC_HAVE_PTHREAD_TRUE
761HWLOC_HAVE_SCHED_SETAFFINITY_FALSE
762HWLOC_HAVE_SCHED_SETAFFINITY_TRUE
763HWLOC_HAVE_OPENAT_FALSE
764HWLOC_HAVE_OPENAT_TRUE
765HWLOC_HAVE_MS_LIB_FALSE
766HWLOC_HAVE_MS_LIB_TRUE
767HWLOC_HAVE_GCC_FALSE
768HWLOC_HAVE_GCC_TRUE
769HWLOC_BUILD_STANDALONE_FALSE
770HWLOC_BUILD_STANDALONE_TRUE
771BUNZIPP
772XMLLINT
773HWLOC_IBVERBS_LIBS
774HWLOC_NUMA_LIBS
775HWLOC_NUMA_CFLAGS
776HWLOC_PS_LIBS
777HWLOC_DIFF_W
778HWLOC_DIFF_U
779DIFF
780HWLOC_TERMCAP_LIBS
781HWLOC_XML_LOCALIZED
782HWLOC_CAIRO_LIBS
783HWLOC_CAIRO_CFLAGS
784HWLOC_X11_LIBS
785HWLOC_X11_CPPFLAGS
786HWLOC_runstatedir
787HWLOC_W3_GENERATOR
788LYNX
789W3M
790EPSTOPDF
791GS
792FIG2DEV
793MAKEINDEX
794PDFLATEX
795DOXYGEN
796CONFIGURE_DEPENDENCIES
797NETLOC_EMBEDDED_LIBS
798NETLOC_EMBEDDED_LDADD
799NETLOC_EMBEDDED_CPPFLAGS
800NETLOC_EMBEDDED_CFLAGS
801NETLOC_LIBS_PRIVATE
802NETLOC_LIBS
803NETLOC_LDFLAGS
804NETLOC_CPPFLAGS
805NETLOC_CFLAGS
806xz
807MPI_LDADD
808MPI_CPPFLAGS
809libnetloc_so_version
810HWLOC_EMBEDDED_LIBS
811HWLOC_EMBEDDED_LDADD
812HWLOC_EMBEDDED_LDFLAGS
813HWLOC_EMBEDDED_CPPFLAGS
814HWLOC_EMBEDDED_CFLAGS
815HWLOC_LIBS_PRIVATE
816HWLOC_LIBS
817HWLOC_LDFLAGS
818HWLOC_CPPFLAGS
819HWLOC_CFLAGS
820HWLOC_REQUIRES
821HWLOC_PLUGINS_DIR
822HWLOC_PLUGINS_PATH
823HWLOC_LTDL_LIBS
824HWLOC_DL_LIBS
825HWLOC_HAVE_LIBXML2
826HWLOC_LIBXML2_LIBS
827HWLOC_LIBXML2_CFLAGS
828HWLOC_GL_LIBS
829X_EXTRA_LIBS
830X_LIBS
831X_PRE_LIBS
832X_CFLAGS
833CPP
834XMKMF
835HWLOC_HAVE_LEVELZERO
836HWLOC_LEVELZERO_LIBS
837HWLOC_LEVELZERO_CFLAGS
838HWLOC_HAVE_RSMI
839HWLOC_RSMI_LIBS
840HWLOC_HAVE_NVML
841HWLOC_NVML_CPPFLAGS
842HWLOC_NVML_LDFLAGS
843HWLOC_NVML_LIBS
844HWLOC_CUDART_LDFLAGS
845HWLOC_CUDART_CPPFLAGS
846HWLOC_CUDART_LIBS
847HWLOC_CUDART_CFLAGS
848HWLOC_CUDA_LDFLAGS
849HWLOC_CUDA_CPPFLAGS
850HWLOC_CUDA_LIBS
851HWLOC_CUDA_CFLAGS
852HWLOC_HAVE_OPENCL
853HWLOC_OPENCL_LDFLAGS
854HWLOC_OPENCL_LIBS
855HWLOC_OPENCL_CPPFLAGS
856HWLOC_PCIACCESS_LIBS
857HWLOC_PCIACCESS_CFLAGS
858PKG_CONFIG
859BASH
860HWLOC_MS_LIB_ARCH
861HWLOC_RELEASE_DATE
862HWLOC_VERSION
863HWLOC_top_srcdir
864HWLOC_top_builddir
865libhwloc_so_version
866CUDA_VERSION
867HWLOC_MS_LIB
868CC_FOR_BUILD
869CXXCPP
870am__fastdepCXX_FALSE
871am__fastdepCXX_TRUE
872CXXDEPMODE
873ac_ct_CXX
874CXXFLAGS
875CXX
876LT_SYS_LIBRARY_PATH
877OTOOL64
878OTOOL
879LIPO
880NMEDIT
881DSYMUTIL
882MANIFEST_TOOL
883RANLIB
884LN_S
885NM
886ac_ct_DUMPBIN
887DUMPBIN
888LD
889FGREP
890EGREP
891GREP
892SED
893LIBTOOL
894OBJDUMP
895DLLTOOL
896AS
897ac_ct_AR
898AR
899am__fastdepCC_FALSE
900am__fastdepCC_TRUE
901CCDEPMODE
902am__nodep
903AMDEPBACKSLASH
904AMDEP_FALSE
905AMDEP_TRUE
906am__include
907DEPDIR
908OBJEXT
909EXEEXT
910ac_ct_CC
911CPPFLAGS
912LDFLAGS
913CFLAGS
914CC
915AM_BACKSLASH
916AM_DEFAULT_VERBOSITY
917AM_DEFAULT_V
918AM_V
919am__untar
920am__tar
921AMTAR
922am__leading_dot
923SET_MAKE
924AWK
925mkdir_p
926MKDIR_P
927INSTALL_STRIP_PROGRAM
928STRIP
929install_sh
930MAKEINFO
931AUTOHEADER
932AUTOMAKE
933AUTOCONF
934ACLOCAL
935VERSION
936PACKAGE
937CYGPATH_W
938am__isrc
939INSTALL_DATA
940INSTALL_SCRIPT
941INSTALL_PROGRAM
942target_os
943target_vendor
944target_cpu
945target
946host_os
947host_vendor
948host_cpu
949host
950build_os
951build_vendor
952build_cpu
953build
954target_alias
955host_alias
956build_alias
957LIBS
958ECHO_T
959ECHO_N
960ECHO_C
961DEFS
962mandir
963localedir
964libdir
965psdir
966pdfdir
967dvidir
968htmldir
969infodir
970docdir
971oldincludedir
972includedir
973runstatedir
974localstatedir
975sharedstatedir
976sysconfdir
977datadir
978datarootdir
979libexecdir
980sbindir
981bindir
982program_transform_name
983prefix
984exec_prefix
985PACKAGE_URL
986PACKAGE_BUGREPORT
987PACKAGE_STRING
988PACKAGE_VERSION
989PACKAGE_TARNAME
990PACKAGE_NAME
991PATH_SEPARATOR
992SHELL
993am__quote'
994ac_subst_files=''
995ac_user_opts='
996enable_option_checking
997enable_silent_rules
998enable_dependency_tracking
999enable_shared
1000enable_static
1001with_pic
1002enable_fast_install
1003with_aix_soname
1004with_gnu_ld
1005with_sysroot
1006enable_libtool_lock
1007enable_embedded_mode
1008with_hwloc_symbol_prefix
1009enable_debug
1010enable_doxygen
1011enable_picky
1012enable_cairo
1013enable_cpuid
1014enable_libxml2
1015enable_io
1016enable_pci
1017enable_32bits_pci_domain
1018enable_opencl
1019enable_cuda
1020enable_nvml
1021with_cuda_version
1022with_cuda
1023enable_rsmi
1024enable_levelzero
1025enable_gl
1026enable_libudev
1027enable_plugins
1028enable_plugin_dlopen
1029enable_plugin_ltdl
1030enable_visibility
1031with_x
1032with_hwloc_plugins_path
1033enable_netloc
1034'
1035      ac_precious_vars='build_alias
1036host_alias
1037target_alias
1038CC
1039CFLAGS
1040LDFLAGS
1041LIBS
1042CPPFLAGS
1043LT_SYS_LIBRARY_PATH
1044CXX
1045CXXFLAGS
1046CCC
1047CXXCPP
1048CC_FOR_BUILD
1049HWLOC_MS_LIB
1050CUDA_VERSION
1051PKG_CONFIG
1052HWLOC_PCIACCESS_CFLAGS
1053HWLOC_PCIACCESS_LIBS
1054HWLOC_CUDA_CFLAGS
1055HWLOC_CUDA_LIBS
1056HWLOC_CUDART_CFLAGS
1057HWLOC_CUDART_LIBS
1058HWLOC_LEVELZERO_CFLAGS
1059HWLOC_LEVELZERO_LIBS
1060XMKMF
1061CPP
1062HWLOC_LIBXML2_CFLAGS
1063HWLOC_LIBXML2_LIBS
1064DOXYGEN
1065PDFLATEX
1066MAKEINDEX
1067FIG2DEV
1068GS
1069EPSTOPDF
1070W3M
1071LYNX
1072HWLOC_CAIRO_CFLAGS
1073HWLOC_CAIRO_LIBS
1074DIFF
1075HWLOC_NUMA_CFLAGS
1076HWLOC_NUMA_LIBS'
1077
1078
1079# Initialize some variables set by options.
1080ac_init_help=
1081ac_init_version=false
1082ac_unrecognized_opts=
1083ac_unrecognized_sep=
1084# The variables have the same names as the options, with
1085# dashes changed to underlines.
1086cache_file=/dev/null
1087exec_prefix=NONE
1088no_create=
1089no_recursion=
1090prefix=NONE
1091program_prefix=NONE
1092program_suffix=NONE
1093program_transform_name=s,x,x,
1094silent=
1095site=
1096srcdir=
1097verbose=
1098x_includes=NONE
1099x_libraries=NONE
1100
1101# Installation directory options.
1102# These are left unexpanded so users can "make install exec_prefix=/foo"
1103# and all the variables that are supposed to be based on exec_prefix
1104# by default will actually change.
1105# Use braces instead of parens because sh, perl, etc. also accept them.
1106# (The list follows the same order as the GNU Coding Standards.)
1107bindir='${exec_prefix}/bin'
1108sbindir='${exec_prefix}/sbin'
1109libexecdir='${exec_prefix}/libexec'
1110datarootdir='${prefix}/share'
1111datadir='${datarootdir}'
1112sysconfdir='${prefix}/etc'
1113sharedstatedir='${prefix}/com'
1114localstatedir='${prefix}/var'
1115runstatedir='${localstatedir}/run'
1116includedir='${prefix}/include'
1117oldincludedir='/usr/include'
1118docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1119infodir='${datarootdir}/info'
1120htmldir='${docdir}'
1121dvidir='${docdir}'
1122pdfdir='${docdir}'
1123psdir='${docdir}'
1124libdir='${exec_prefix}/lib'
1125localedir='${datarootdir}/locale'
1126mandir='${datarootdir}/man'
1127
1128ac_prev=
1129ac_dashdash=
1130for ac_option
1131do
1132  # If the previous option needs an argument, assign it.
1133  if test -n "$ac_prev"; then
1134    eval $ac_prev=\$ac_option
1135    ac_prev=
1136    continue
1137  fi
1138
1139  case $ac_option in
1140  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1141  *=)   ac_optarg= ;;
1142  *)    ac_optarg=yes ;;
1143  esac
1144
1145  case $ac_dashdash$ac_option in
1146  --)
1147    ac_dashdash=yes ;;
1148
1149  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1150    ac_prev=bindir ;;
1151  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1152    bindir=$ac_optarg ;;
1153
1154  -build | --build | --buil | --bui | --bu)
1155    ac_prev=build_alias ;;
1156  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1157    build_alias=$ac_optarg ;;
1158
1159  -cache-file | --cache-file | --cache-fil | --cache-fi \
1160  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1161    ac_prev=cache_file ;;
1162  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1163  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1164    cache_file=$ac_optarg ;;
1165
1166  --config-cache | -C)
1167    cache_file=config.cache ;;
1168
1169  -datadir | --datadir | --datadi | --datad)
1170    ac_prev=datadir ;;
1171  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1172    datadir=$ac_optarg ;;
1173
1174  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1175  | --dataroo | --dataro | --datar)
1176    ac_prev=datarootdir ;;
1177  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1178  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1179    datarootdir=$ac_optarg ;;
1180
1181  -disable-* | --disable-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"enable_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval enable_$ac_useropt=no ;;
1196
1197  -docdir | --docdir | --docdi | --doc | --do)
1198    ac_prev=docdir ;;
1199  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1200    docdir=$ac_optarg ;;
1201
1202  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1203    ac_prev=dvidir ;;
1204  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1205    dvidir=$ac_optarg ;;
1206
1207  -enable-* | --enable-*)
1208    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1209    # Reject names that are not valid shell variable names.
1210    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1212    ac_useropt_orig=$ac_useropt
1213    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1214    case $ac_user_opts in
1215      *"
1216"enable_$ac_useropt"
1217"*) ;;
1218      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1219	 ac_unrecognized_sep=', ';;
1220    esac
1221    eval enable_$ac_useropt=\$ac_optarg ;;
1222
1223  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1224  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1225  | --exec | --exe | --ex)
1226    ac_prev=exec_prefix ;;
1227  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1228  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1229  | --exec=* | --exe=* | --ex=*)
1230    exec_prefix=$ac_optarg ;;
1231
1232  -gas | --gas | --ga | --g)
1233    # Obsolete; use --with-gas.
1234    with_gas=yes ;;
1235
1236  -help | --help | --hel | --he | -h)
1237    ac_init_help=long ;;
1238  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1239    ac_init_help=recursive ;;
1240  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1241    ac_init_help=short ;;
1242
1243  -host | --host | --hos | --ho)
1244    ac_prev=host_alias ;;
1245  -host=* | --host=* | --hos=* | --ho=*)
1246    host_alias=$ac_optarg ;;
1247
1248  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1249    ac_prev=htmldir ;;
1250  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1251  | --ht=*)
1252    htmldir=$ac_optarg ;;
1253
1254  -includedir | --includedir | --includedi | --included | --include \
1255  | --includ | --inclu | --incl | --inc)
1256    ac_prev=includedir ;;
1257  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1258  | --includ=* | --inclu=* | --incl=* | --inc=*)
1259    includedir=$ac_optarg ;;
1260
1261  -infodir | --infodir | --infodi | --infod | --info | --inf)
1262    ac_prev=infodir ;;
1263  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1264    infodir=$ac_optarg ;;
1265
1266  -libdir | --libdir | --libdi | --libd)
1267    ac_prev=libdir ;;
1268  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1269    libdir=$ac_optarg ;;
1270
1271  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1272  | --libexe | --libex | --libe)
1273    ac_prev=libexecdir ;;
1274  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1275  | --libexe=* | --libex=* | --libe=*)
1276    libexecdir=$ac_optarg ;;
1277
1278  -localedir | --localedir | --localedi | --localed | --locale)
1279    ac_prev=localedir ;;
1280  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1281    localedir=$ac_optarg ;;
1282
1283  -localstatedir | --localstatedir | --localstatedi | --localstated \
1284  | --localstate | --localstat | --localsta | --localst | --locals)
1285    ac_prev=localstatedir ;;
1286  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1287  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1288    localstatedir=$ac_optarg ;;
1289
1290  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1291    ac_prev=mandir ;;
1292  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1293    mandir=$ac_optarg ;;
1294
1295  -nfp | --nfp | --nf)
1296    # Obsolete; use --without-fp.
1297    with_fp=no ;;
1298
1299  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1300  | --no-cr | --no-c | -n)
1301    no_create=yes ;;
1302
1303  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1304  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1305    no_recursion=yes ;;
1306
1307  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1308  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1309  | --oldin | --oldi | --old | --ol | --o)
1310    ac_prev=oldincludedir ;;
1311  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1312  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1313  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1314    oldincludedir=$ac_optarg ;;
1315
1316  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1317    ac_prev=prefix ;;
1318  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1319    prefix=$ac_optarg ;;
1320
1321  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1322  | --program-pre | --program-pr | --program-p)
1323    ac_prev=program_prefix ;;
1324  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1325  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1326    program_prefix=$ac_optarg ;;
1327
1328  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1329  | --program-suf | --program-su | --program-s)
1330    ac_prev=program_suffix ;;
1331  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1332  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1333    program_suffix=$ac_optarg ;;
1334
1335  -program-transform-name | --program-transform-name \
1336  | --program-transform-nam | --program-transform-na \
1337  | --program-transform-n | --program-transform- \
1338  | --program-transform | --program-transfor \
1339  | --program-transfo | --program-transf \
1340  | --program-trans | --program-tran \
1341  | --progr-tra | --program-tr | --program-t)
1342    ac_prev=program_transform_name ;;
1343  -program-transform-name=* | --program-transform-name=* \
1344  | --program-transform-nam=* | --program-transform-na=* \
1345  | --program-transform-n=* | --program-transform-=* \
1346  | --program-transform=* | --program-transfor=* \
1347  | --program-transfo=* | --program-transf=* \
1348  | --program-trans=* | --program-tran=* \
1349  | --progr-tra=* | --program-tr=* | --program-t=*)
1350    program_transform_name=$ac_optarg ;;
1351
1352  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1353    ac_prev=pdfdir ;;
1354  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1355    pdfdir=$ac_optarg ;;
1356
1357  -psdir | --psdir | --psdi | --psd | --ps)
1358    ac_prev=psdir ;;
1359  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1360    psdir=$ac_optarg ;;
1361
1362  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1363  | -silent | --silent | --silen | --sile | --sil)
1364    silent=yes ;;
1365
1366  -runstatedir | --runstatedir | --runstatedi | --runstated \
1367  | --runstate | --runstat | --runsta | --runst | --runs \
1368  | --run | --ru | --r)
1369    ac_prev=runstatedir ;;
1370  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1371  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1372  | --run=* | --ru=* | --r=*)
1373    runstatedir=$ac_optarg ;;
1374
1375  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1376    ac_prev=sbindir ;;
1377  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1378  | --sbi=* | --sb=*)
1379    sbindir=$ac_optarg ;;
1380
1381  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1382  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1383  | --sharedst | --shareds | --shared | --share | --shar \
1384  | --sha | --sh)
1385    ac_prev=sharedstatedir ;;
1386  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1387  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1388  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1389  | --sha=* | --sh=*)
1390    sharedstatedir=$ac_optarg ;;
1391
1392  -site | --site | --sit)
1393    ac_prev=site ;;
1394  -site=* | --site=* | --sit=*)
1395    site=$ac_optarg ;;
1396
1397  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1398    ac_prev=srcdir ;;
1399  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1400    srcdir=$ac_optarg ;;
1401
1402  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1403  | --syscon | --sysco | --sysc | --sys | --sy)
1404    ac_prev=sysconfdir ;;
1405  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1406  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1407    sysconfdir=$ac_optarg ;;
1408
1409  -target | --target | --targe | --targ | --tar | --ta | --t)
1410    ac_prev=target_alias ;;
1411  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1412    target_alias=$ac_optarg ;;
1413
1414  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1415    verbose=yes ;;
1416
1417  -version | --version | --versio | --versi | --vers | -V)
1418    ac_init_version=: ;;
1419
1420  -with-* | --with-*)
1421    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1422    # Reject names that are not valid shell variable names.
1423    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424      as_fn_error $? "invalid package name: \`$ac_useropt'"
1425    ac_useropt_orig=$ac_useropt
1426    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1427    case $ac_user_opts in
1428      *"
1429"with_$ac_useropt"
1430"*) ;;
1431      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1432	 ac_unrecognized_sep=', ';;
1433    esac
1434    eval with_$ac_useropt=\$ac_optarg ;;
1435
1436  -without-* | --without-*)
1437    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1438    # Reject names that are not valid shell variable names.
1439    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1440      as_fn_error $? "invalid package name: \`$ac_useropt'"
1441    ac_useropt_orig=$ac_useropt
1442    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1443    case $ac_user_opts in
1444      *"
1445"with_$ac_useropt"
1446"*) ;;
1447      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1448	 ac_unrecognized_sep=', ';;
1449    esac
1450    eval with_$ac_useropt=no ;;
1451
1452  --x)
1453    # Obsolete; use --with-x.
1454    with_x=yes ;;
1455
1456  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1457  | --x-incl | --x-inc | --x-in | --x-i)
1458    ac_prev=x_includes ;;
1459  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1460  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1461    x_includes=$ac_optarg ;;
1462
1463  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1464  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1465    ac_prev=x_libraries ;;
1466  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1467  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1468    x_libraries=$ac_optarg ;;
1469
1470  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1471Try \`$0 --help' for more information"
1472    ;;
1473
1474  *=*)
1475    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1476    # Reject names that are not valid shell variable names.
1477    case $ac_envvar in #(
1478      '' | [0-9]* | *[!_$as_cr_alnum]* )
1479      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1480    esac
1481    eval $ac_envvar=\$ac_optarg
1482    export $ac_envvar ;;
1483
1484  *)
1485    # FIXME: should be removed in autoconf 3.0.
1486    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1487    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1488      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1489    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1490    ;;
1491
1492  esac
1493done
1494
1495if test -n "$ac_prev"; then
1496  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1497  as_fn_error $? "missing argument to $ac_option"
1498fi
1499
1500if test -n "$ac_unrecognized_opts"; then
1501  case $enable_option_checking in
1502    no) ;;
1503    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1504    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1505  esac
1506fi
1507
1508# Check all directory arguments for consistency.
1509for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1510		datadir sysconfdir sharedstatedir localstatedir includedir \
1511		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1512		libdir localedir mandir runstatedir
1513do
1514  eval ac_val=\$$ac_var
1515  # Remove trailing slashes.
1516  case $ac_val in
1517    */ )
1518      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1519      eval $ac_var=\$ac_val;;
1520  esac
1521  # Be sure to have absolute directory names.
1522  case $ac_val in
1523    [\\/$]* | ?:[\\/]* )  continue;;
1524    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1525  esac
1526  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1527done
1528
1529# There might be people who depend on the old broken behavior: `$host'
1530# used to hold the argument of --host etc.
1531# FIXME: To remove some day.
1532build=$build_alias
1533host=$host_alias
1534target=$target_alias
1535
1536# FIXME: To remove some day.
1537if test "x$host_alias" != x; then
1538  if test "x$build_alias" = x; then
1539    cross_compiling=maybe
1540  elif test "x$build_alias" != "x$host_alias"; then
1541    cross_compiling=yes
1542  fi
1543fi
1544
1545ac_tool_prefix=
1546test -n "$host_alias" && ac_tool_prefix=$host_alias-
1547
1548test "$silent" = yes && exec 6>/dev/null
1549
1550
1551ac_pwd=`pwd` && test -n "$ac_pwd" &&
1552ac_ls_di=`ls -di .` &&
1553ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1554  as_fn_error $? "working directory cannot be determined"
1555test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1556  as_fn_error $? "pwd does not report name of working directory"
1557
1558
1559# Find the source files, if location was not specified.
1560if test -z "$srcdir"; then
1561  ac_srcdir_defaulted=yes
1562  # Try the directory containing this script, then the parent directory.
1563  ac_confdir=`$as_dirname -- "$as_myself" ||
1564$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1565	 X"$as_myself" : 'X\(//\)[^/]' \| \
1566	 X"$as_myself" : 'X\(//\)$' \| \
1567	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1568printf "%s\n" X"$as_myself" |
1569    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1570	    s//\1/
1571	    q
1572	  }
1573	  /^X\(\/\/\)[^/].*/{
1574	    s//\1/
1575	    q
1576	  }
1577	  /^X\(\/\/\)$/{
1578	    s//\1/
1579	    q
1580	  }
1581	  /^X\(\/\).*/{
1582	    s//\1/
1583	    q
1584	  }
1585	  s/.*/./; q'`
1586  srcdir=$ac_confdir
1587  if test ! -r "$srcdir/$ac_unique_file"; then
1588    srcdir=..
1589  fi
1590else
1591  ac_srcdir_defaulted=no
1592fi
1593if test ! -r "$srcdir/$ac_unique_file"; then
1594  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1595  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1596fi
1597ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1598ac_abs_confdir=`(
1599	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1600	pwd)`
1601# When building in place, set srcdir=.
1602if test "$ac_abs_confdir" = "$ac_pwd"; then
1603  srcdir=.
1604fi
1605# Remove unnecessary trailing slashes from srcdir.
1606# Double slashes in file names in object file debugging info
1607# mess up M-x gdb in Emacs.
1608case $srcdir in
1609*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1610esac
1611for ac_var in $ac_precious_vars; do
1612  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1613  eval ac_env_${ac_var}_value=\$${ac_var}
1614  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1615  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1616done
1617
1618#
1619# Report the --help message.
1620#
1621if test "$ac_init_help" = "long"; then
1622  # Omit some internal or obsolete options to make the list less imposing.
1623  # This message is too long to be a string in the A/UX 3.1 sh.
1624  cat <<_ACEOF
1625\`configure' configures hwloc 2.5.0 to adapt to many kinds of systems.
1626
1627Usage: $0 [OPTION]... [VAR=VALUE]...
1628
1629To assign environment variables (e.g., CC, CFLAGS...), specify them as
1630VAR=VALUE.  See below for descriptions of some of the useful variables.
1631
1632Defaults for the options are specified in brackets.
1633
1634Configuration:
1635  -h, --help              display this help and exit
1636      --help=short        display options specific to this package
1637      --help=recursive    display the short help of all the included packages
1638  -V, --version           display version information and exit
1639  -q, --quiet, --silent   do not print \`checking ...' messages
1640      --cache-file=FILE   cache test results in FILE [disabled]
1641  -C, --config-cache      alias for \`--cache-file=config.cache'
1642  -n, --no-create         do not create output files
1643      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1644
1645Installation directories:
1646  --prefix=PREFIX         install architecture-independent files in PREFIX
1647                          [$ac_default_prefix]
1648  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1649                          [PREFIX]
1650
1651By default, \`make install' will install all the files in
1652\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1653an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1654for instance \`--prefix=\$HOME'.
1655
1656For better control, use the options below.
1657
1658Fine tuning of the installation directories:
1659  --bindir=DIR            user executables [EPREFIX/bin]
1660  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1661  --libexecdir=DIR        program executables [EPREFIX/libexec]
1662  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1663  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1664  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1665  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1666  --libdir=DIR            object code libraries [EPREFIX/lib]
1667  --includedir=DIR        C header files [PREFIX/include]
1668  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1669  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1670  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1671  --infodir=DIR           info documentation [DATAROOTDIR/info]
1672  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1673  --mandir=DIR            man documentation [DATAROOTDIR/man]
1674  --docdir=DIR            documentation root [DATAROOTDIR/doc/hwloc]
1675  --htmldir=DIR           html documentation [DOCDIR]
1676  --dvidir=DIR            dvi documentation [DOCDIR]
1677  --pdfdir=DIR            pdf documentation [DOCDIR]
1678  --psdir=DIR             ps documentation [DOCDIR]
1679_ACEOF
1680
1681  cat <<\_ACEOF
1682
1683Program names:
1684  --program-prefix=PREFIX            prepend PREFIX to installed program names
1685  --program-suffix=SUFFIX            append SUFFIX to installed program names
1686  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1687
1688X features:
1689  --x-includes=DIR    X include files are in DIR
1690  --x-libraries=DIR   X library files are in DIR
1691
1692System types:
1693  --build=BUILD     configure for building on BUILD [guessed]
1694  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1695  --target=TARGET   configure for building compilers for TARGET [HOST]
1696_ACEOF
1697fi
1698
1699if test -n "$ac_init_help"; then
1700  case $ac_init_help in
1701     short | recursive ) echo "Configuration of hwloc 2.5.0:";;
1702   esac
1703  cat <<\_ACEOF
1704
1705Optional Features:
1706  --disable-option-checking  ignore unrecognized --enable/--with options
1707  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1708  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1709  --enable-silent-rules   less verbose build output (undo: "make V=1")
1710  --disable-silent-rules  verbose build output (undo: "make V=0")
1711  --enable-dependency-tracking
1712                          do not reject slow dependency extractors
1713  --disable-dependency-tracking
1714                          speeds up one-time build
1715  --enable-shared[=PKGS]  build shared libraries [default=yes]
1716  --enable-static[=PKGS]  build static libraries [default=no]
1717  --enable-fast-install[=PKGS]
1718                          optimize for fast installation [default=yes]
1719  --disable-libtool-lock  avoid locking (might break parallel builds)
1720  --enable-embedded-mode  Using --enable-embedded-mode puts the HWLOC into
1721                          "embedded" mode. The default is
1722                          --disable-embedded-mode, meaning that the HWLOC is
1723                          in "standalone" mode.
1724  --enable-debug          Using --enable-debug enables various hwloc
1725                          maintainer-level debugging controls. This option is
1726                          not recomended for end users.
1727  --enable-doxygen        enable support for building Doxygen documentation
1728                          (note that this option is ONLY relevant in developer
1729                          builds; Doxygen documentation is pre-built for
1730                          tarball builds and this option is therefore ignored)
1731  --disable-picky         When in developer checkouts of hwloc and compiling
1732                          with gcc, the default is to enable maximum compiler
1733                          pickyness. Using --disable-picky or --enable-picky
1734                          overrides any default setting
1735  --disable-cairo         Disable the Cairo back-end of hwloc's lstopo command
1736  --disable-cpuid         Disable the cpuid-based architecture specific
1737                          support (x86 component)
1738  --disable-libxml2       Do not use libxml2 for XML support, use a custom
1739                          minimalistic support
1740  --disable-io            Disable I/O discovery build entirely (PCI, LinuxIO,
1741                          CUDA, OpenCL, NVML, RSMI, LevelZero, GL) instead of
1742                          only disabling it at runtime by default
1743  --disable-pci           Disable the PCI device discovery build (instead of
1744                          only disabling PCI at runtime by default)
1745  --enable-32bits-pci-domain
1746                          Enable 32 bits PCI domains (domains > 16bits are
1747                          ignored by default). WARNING: This breaks the
1748                          library ABI, don't enable unless really needed.
1749  --disable-opencl        Disable the OpenCL device discovery build (instead
1750                          of only disabling OpenCL at runtime by default)
1751  --disable-cuda          Disable the CUDA device discovery build using
1752                          libcudart (instead of only disabling CUDA at runtime
1753                          by default)
1754  --disable-nvml          Disable the NVML device discovery build (instead of
1755                          only disabling NVML at runtime by default)
1756  --disable-rsmi          Disable the ROCm SMI device discovery
1757  --disable-levelzero     Disable the oneAPI Level Zero device discovery
1758  --disable-gl            Disable the GL display device discovery (instead of
1759                          only disabling GL at runtime by default)
1760  --disable-libudev       Disable the Linux libudev
1761  --enable-plugins=name,...
1762                          Build the given components as dynamically-loaded
1763                          plugins
1764  --disable-plugin-dlopen Do not use dlopen for loading plugins.
1765  --disable-plugin-ltdl   Do not use ltdl for loading plugins.
1766  --enable-visibility     enable visibility feature of certain
1767                          compilers/linkers (default: enabled on platforms
1768                          that support it)
1769  --enable-netloc         The Netloc functionality is disabled by default.
1770                          Using --enable-netloc will cause configure to abort
1771                          if Netloc cannot be build (e.g., not supported on
1772                          your platform).
1773
1774
1775Optional Packages:
1776  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1777  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1778  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1779                          both]
1780  --with-aix-soname=aix|svr4|both
1781                          shared library versioning (aka "SONAME") variant to
1782                          provide on AIX, [default=aix].
1783  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1784  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1785                          compiler's sysroot if not specified).
1786  --with-hwloc-symbol-prefix=STRING
1787                          STRING can be any valid C symbol name. It will be
1788                          prefixed to all public HWLOC symbols. Default:
1789                          "hwloc_"
1790  --with-cuda-version=<version>
1791                          Specify the CUDA version (e.g. 11.2) for selecting
1792                          the appropriate pkg-config file
1793  --with-cuda=<dir>       Specify the CUDA installation directory, used for
1794                          NVIDIA NVML and OpenCL too
1795  --with-x                use the X Window System
1796  --with-hwloc-plugins-path=dir:...
1797                          Colon-separated list of plugin directories. Default:
1798                          "$prefix/lib/hwloc". Plugins will be installed in
1799                          the first directory. They will be loaded from all of
1800                          them, in order.
1801
1802Some influential environment variables:
1803  CC          C compiler command
1804  CFLAGS      C compiler flags
1805  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1806              nonstandard directory <lib dir>
1807  LIBS        libraries to pass to the linker, e.g. -l<library>
1808  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1809              you have headers in a nonstandard directory <include dir>
1810  LT_SYS_LIBRARY_PATH
1811              User-defined run-time library search path.
1812  CXX         C++ compiler command
1813  CXXFLAGS    C++ compiler flags
1814  CXXCPP      C++ preprocessor
1815  CC_FOR_BUILD
1816              build system C compiler
1817  HWLOC_MS_LIB
1818              Path to Microsoft's Visual Studio `lib' tool
1819  CUDA_VERSION
1820              The CUDA version (e.g. 11.2) for selecting the appropriate
1821              pkg-config file
1822  PKG_CONFIG  path to pkg-config utility
1823  HWLOC_PCIACCESS_CFLAGS
1824              C compiler flags for PCIACCESS, overriding pkg-config
1825  HWLOC_PCIACCESS_LIBS
1826              linker flags for PCIACCESS, overriding pkg-config
1827  HWLOC_CUDA_CFLAGS
1828              C compiler flags for CUDA, overriding pkg-config
1829  HWLOC_CUDA_LIBS
1830              linker flags for CUDA, overriding pkg-config
1831  HWLOC_CUDART_CFLAGS
1832              C compiler flags for CUDART, overriding pkg-config
1833  HWLOC_CUDART_LIBS
1834              linker flags for CUDART, overriding pkg-config
1835  HWLOC_LEVELZERO_CFLAGS
1836              C compiler flags for LEVELZERO, overriding pkg-config
1837  HWLOC_LEVELZERO_LIBS
1838              linker flags for LEVELZERO, overriding pkg-config
1839  XMKMF       Path to xmkmf, Makefile generator for X Window System
1840  CPP         C preprocessor
1841  HWLOC_LIBXML2_CFLAGS
1842              C compiler flags for LIBXML2, overriding pkg-config
1843  HWLOC_LIBXML2_LIBS
1844              linker flags for LIBXML2, overriding pkg-config
1845  DOXYGEN     Location of the doxygen program (required for building the hwloc
1846              doxygen documentation)
1847  PDFLATEX    Location of the pdflatex program (required for building the
1848              hwloc doxygen documentation)
1849  MAKEINDEX   Location of the makeindex program (required for building the
1850              hwloc doxygen documentation)
1851  FIG2DEV     Location of the fig2dev program (required for building the hwloc
1852              doxygen documentation)
1853  GS          Location of the gs program (required for building the hwloc
1854              doxygen documentation)
1855  EPSTOPDF    Location of the epstopdf program (required for building the
1856              hwloc doxygen documentation)
1857  W3M         Location of the w3m program (required to building the top-level
1858              hwloc README file)
1859  LYNX        Location of the lynx program (required to building the top-level
1860              hwloc README file)
1861  HWLOC_CAIRO_CFLAGS
1862              C compiler flags for CAIRO, overriding pkg-config
1863  HWLOC_CAIRO_LIBS
1864              linker flags for CAIRO, overriding pkg-config
1865  DIFF        diff tool
1866  HWLOC_NUMA_CFLAGS
1867              C compiler flags for NUMA, overriding pkg-config
1868  HWLOC_NUMA_LIBS
1869              linker flags for NUMA, overriding pkg-config
1870
1871Use these variables to override the choices made by `configure' or to help
1872it to find libraries and programs with nonstandard names/locations.
1873
1874Report bugs to <https://github.com/open-mpi/hwloc/issues>.
1875_ACEOF
1876ac_status=$?
1877fi
1878
1879if test "$ac_init_help" = "recursive"; then
1880  # If there are subdirs, report their specific --help.
1881  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1882    test -d "$ac_dir" ||
1883      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1884      continue
1885    ac_builddir=.
1886
1887case "$ac_dir" in
1888.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889*)
1890  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1891  # A ".." for each directory in $ac_dir_suffix.
1892  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1893  case $ac_top_builddir_sub in
1894  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1895  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1896  esac ;;
1897esac
1898ac_abs_top_builddir=$ac_pwd
1899ac_abs_builddir=$ac_pwd$ac_dir_suffix
1900# for backward compatibility:
1901ac_top_builddir=$ac_top_build_prefix
1902
1903case $srcdir in
1904  .)  # We are building in place.
1905    ac_srcdir=.
1906    ac_top_srcdir=$ac_top_builddir_sub
1907    ac_abs_top_srcdir=$ac_pwd ;;
1908  [\\/]* | ?:[\\/]* )  # Absolute name.
1909    ac_srcdir=$srcdir$ac_dir_suffix;
1910    ac_top_srcdir=$srcdir
1911    ac_abs_top_srcdir=$srcdir ;;
1912  *) # Relative name.
1913    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1914    ac_top_srcdir=$ac_top_build_prefix$srcdir
1915    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1916esac
1917ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1918
1919    cd "$ac_dir" || { ac_status=$?; continue; }
1920    # Check for configure.gnu first; this name is used for a wrapper for
1921    # Metaconfig's "Configure" on case-insensitive file systems.
1922    if test -f "$ac_srcdir/configure.gnu"; then
1923      echo &&
1924      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1925    elif test -f "$ac_srcdir/configure"; then
1926      echo &&
1927      $SHELL "$ac_srcdir/configure" --help=recursive
1928    else
1929      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1930    fi || ac_status=$?
1931    cd "$ac_pwd" || { ac_status=$?; break; }
1932  done
1933fi
1934
1935test -n "$ac_init_help" && exit $ac_status
1936if $ac_init_version; then
1937  cat <<\_ACEOF
1938hwloc configure 2.5.0
1939generated by GNU Autoconf 2.71
1940
1941Copyright (C) 2021 Free Software Foundation, Inc.
1942This configure script is free software; the Free Software Foundation
1943gives unlimited permission to copy, distribute and modify it.
1944_ACEOF
1945  exit
1946fi
1947
1948## ------------------------ ##
1949## Autoconf initialization. ##
1950## ------------------------ ##
1951
1952# ac_fn_c_try_compile LINENO
1953# --------------------------
1954# Try to compile conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_c_try_compile ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  rm -f conftest.$ac_objext conftest.beam
1959  if { { ac_try="$ac_compile"
1960case "(($ac_try" in
1961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962  *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965printf "%s\n" "$ac_try_echo"; } >&5
1966  (eval "$ac_compile") 2>conftest.err
1967  ac_status=$?
1968  if test -s conftest.err; then
1969    grep -v '^ *+' conftest.err >conftest.er1
1970    cat conftest.er1 >&5
1971    mv -f conftest.er1 conftest.err
1972  fi
1973  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974  test $ac_status = 0; } && {
1975	 test -z "$ac_c_werror_flag" ||
1976	 test ! -s conftest.err
1977       } && test -s conftest.$ac_objext
1978then :
1979  ac_retval=0
1980else $as_nop
1981  printf "%s\n" "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984	ac_retval=1
1985fi
1986  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987  as_fn_set_status $ac_retval
1988
1989} # ac_fn_c_try_compile
1990
1991# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1992# -------------------------------------------------------
1993# Tests whether HEADER exists and can be compiled using the include files in
1994# INCLUDES, setting the cache variable VAR accordingly.
1995ac_fn_c_check_header_compile ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999printf %s "checking for $2... " >&6; }
2000if eval test \${$3+y}
2001then :
2002  printf %s "(cached) " >&6
2003else $as_nop
2004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007#include <$2>
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"
2010then :
2011  eval "$3=yes"
2012else $as_nop
2013  eval "$3=no"
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2016fi
2017eval ac_res=\$$3
2018	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019printf "%s\n" "$ac_res" >&6; }
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022} # ac_fn_c_check_header_compile
2023
2024# ac_fn_c_try_link LINENO
2025# -----------------------
2026# Try to link conftest.$ac_ext, and return whether this succeeded.
2027ac_fn_c_try_link ()
2028{
2029  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2031  if { { ac_try="$ac_link"
2032case "(($ac_try" in
2033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034  *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037printf "%s\n" "$ac_try_echo"; } >&5
2038  (eval "$ac_link") 2>conftest.err
2039  ac_status=$?
2040  if test -s conftest.err; then
2041    grep -v '^ *+' conftest.err >conftest.er1
2042    cat conftest.er1 >&5
2043    mv -f conftest.er1 conftest.err
2044  fi
2045  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046  test $ac_status = 0; } && {
2047	 test -z "$ac_c_werror_flag" ||
2048	 test ! -s conftest.err
2049       } && test -s conftest$ac_exeext && {
2050	 test "$cross_compiling" = yes ||
2051	 test -x conftest$ac_exeext
2052       }
2053then :
2054  ac_retval=0
2055else $as_nop
2056  printf "%s\n" "$as_me: failed program was:" >&5
2057sed 's/^/| /' conftest.$ac_ext >&5
2058
2059	ac_retval=1
2060fi
2061  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063  # interfere with the next link command; also delete a directory that is
2064  # left behind by Apple's compiler.  We do this before executing the actions.
2065  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067  as_fn_set_status $ac_retval
2068
2069} # ac_fn_c_try_link
2070
2071# ac_fn_c_check_func LINENO FUNC VAR
2072# ----------------------------------
2073# Tests whether FUNC exists, setting the cache variable VAR accordingly
2074ac_fn_c_check_func ()
2075{
2076  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078printf %s "checking for $2... " >&6; }
2079if eval test \${$3+y}
2080then :
2081  printf %s "(cached) " >&6
2082else $as_nop
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2087#define $2 innocuous_$2
2088
2089/* System header to define __stub macros and hopefully few prototypes,
2090   which can conflict with char $2 (); below.  */
2091
2092#include <limits.h>
2093#undef $2
2094
2095/* Override any GCC internal prototype to avoid an error.
2096   Use char because int might match the return type of a GCC
2097   builtin and then its argument prototype would still apply.  */
2098#ifdef __cplusplus
2099extern "C"
2100#endif
2101char $2 ();
2102/* The GNU C library defines this for functions which it implements
2103    to always fail with ENOSYS.  Some functions are actually named
2104    something starting with __ and the normal name is an alias.  */
2105#if defined __stub_$2 || defined __stub___$2
2106choke me
2107#endif
2108
2109int
2110main (void)
2111{
2112return $2 ();
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_link "$LINENO"
2118then :
2119  eval "$3=yes"
2120else $as_nop
2121  eval "$3=no"
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.beam \
2124    conftest$ac_exeext conftest.$ac_ext
2125fi
2126eval ac_res=\$$3
2127	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128printf "%s\n" "$ac_res" >&6; }
2129  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131} # ac_fn_c_check_func
2132
2133# ac_fn_cxx_try_compile LINENO
2134# ----------------------------
2135# Try to compile conftest.$ac_ext, and return whether this succeeded.
2136ac_fn_cxx_try_compile ()
2137{
2138  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139  rm -f conftest.$ac_objext conftest.beam
2140  if { { ac_try="$ac_compile"
2141case "(($ac_try" in
2142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143  *) ac_try_echo=$ac_try;;
2144esac
2145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146printf "%s\n" "$ac_try_echo"; } >&5
2147  (eval "$ac_compile") 2>conftest.err
2148  ac_status=$?
2149  if test -s conftest.err; then
2150    grep -v '^ *+' conftest.err >conftest.er1
2151    cat conftest.er1 >&5
2152    mv -f conftest.er1 conftest.err
2153  fi
2154  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155  test $ac_status = 0; } && {
2156	 test -z "$ac_cxx_werror_flag" ||
2157	 test ! -s conftest.err
2158       } && test -s conftest.$ac_objext
2159then :
2160  ac_retval=0
2161else $as_nop
2162  printf "%s\n" "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165	ac_retval=1
2166fi
2167  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168  as_fn_set_status $ac_retval
2169
2170} # ac_fn_cxx_try_compile
2171
2172# ac_fn_cxx_try_cpp LINENO
2173# ------------------------
2174# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2175ac_fn_cxx_try_cpp ()
2176{
2177  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178  if { { ac_try="$ac_cpp conftest.$ac_ext"
2179case "(($ac_try" in
2180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181  *) ac_try_echo=$ac_try;;
2182esac
2183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184printf "%s\n" "$ac_try_echo"; } >&5
2185  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2186  ac_status=$?
2187  if test -s conftest.err; then
2188    grep -v '^ *+' conftest.err >conftest.er1
2189    cat conftest.er1 >&5
2190    mv -f conftest.er1 conftest.err
2191  fi
2192  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193  test $ac_status = 0; } > conftest.i && {
2194	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2195	 test ! -s conftest.err
2196       }
2197then :
2198  ac_retval=0
2199else $as_nop
2200  printf "%s\n" "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203    ac_retval=1
2204fi
2205  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206  as_fn_set_status $ac_retval
2207
2208} # ac_fn_cxx_try_cpp
2209
2210# ac_fn_cxx_try_link LINENO
2211# -------------------------
2212# Try to link conftest.$ac_ext, and return whether this succeeded.
2213ac_fn_cxx_try_link ()
2214{
2215  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2217  if { { ac_try="$ac_link"
2218case "(($ac_try" in
2219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220  *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223printf "%s\n" "$ac_try_echo"; } >&5
2224  (eval "$ac_link") 2>conftest.err
2225  ac_status=$?
2226  if test -s conftest.err; then
2227    grep -v '^ *+' conftest.err >conftest.er1
2228    cat conftest.er1 >&5
2229    mv -f conftest.er1 conftest.err
2230  fi
2231  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232  test $ac_status = 0; } && {
2233	 test -z "$ac_cxx_werror_flag" ||
2234	 test ! -s conftest.err
2235       } && test -s conftest$ac_exeext && {
2236	 test "$cross_compiling" = yes ||
2237	 test -x conftest$ac_exeext
2238       }
2239then :
2240  ac_retval=0
2241else $as_nop
2242  printf "%s\n" "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245	ac_retval=1
2246fi
2247  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2248  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2249  # interfere with the next link command; also delete a directory that is
2250  # left behind by Apple's compiler.  We do this before executing the actions.
2251  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2252  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253  as_fn_set_status $ac_retval
2254
2255} # ac_fn_cxx_try_link
2256
2257# ac_fn_c_try_run LINENO
2258# ----------------------
2259# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2260# executables *can* be run.
2261ac_fn_c_try_run ()
2262{
2263  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264  if { { ac_try="$ac_link"
2265case "(($ac_try" in
2266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267  *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270printf "%s\n" "$ac_try_echo"; } >&5
2271  (eval "$ac_link") 2>&5
2272  ac_status=$?
2273  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2275  { { case "(($ac_try" in
2276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277  *) ac_try_echo=$ac_try;;
2278esac
2279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280printf "%s\n" "$ac_try_echo"; } >&5
2281  (eval "$ac_try") 2>&5
2282  ac_status=$?
2283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284  test $ac_status = 0; }; }
2285then :
2286  ac_retval=0
2287else $as_nop
2288  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2289       printf "%s\n" "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292       ac_retval=$ac_status
2293fi
2294  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2295  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296  as_fn_set_status $ac_retval
2297
2298} # ac_fn_c_try_run
2299
2300# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2301# --------------------------------------------
2302# Tries to find the compile-time value of EXPR in a program that includes
2303# INCLUDES, setting VAR accordingly. Returns whether the value could be
2304# computed
2305ac_fn_c_compute_int ()
2306{
2307  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308  if test "$cross_compiling" = yes; then
2309    # Depending upon the size, compute the lo and hi bounds.
2310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h.  */
2312$4
2313int
2314main (void)
2315{
2316static int test_array [1 - 2 * !(($2) >= 0)];
2317test_array [0] = 0;
2318return test_array [0];
2319
2320  ;
2321  return 0;
2322}
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"
2325then :
2326  ac_lo=0 ac_mid=0
2327  while :; do
2328    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$4
2331int
2332main (void)
2333{
2334static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2335test_array [0] = 0;
2336return test_array [0];
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342if ac_fn_c_try_compile "$LINENO"
2343then :
2344  ac_hi=$ac_mid; break
2345else $as_nop
2346  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2347			if test $ac_lo -le $ac_mid; then
2348			  ac_lo= ac_hi=
2349			  break
2350			fi
2351			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2354  done
2355else $as_nop
2356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357/* end confdefs.h.  */
2358$4
2359int
2360main (void)
2361{
2362static int test_array [1 - 2 * !(($2) < 0)];
2363test_array [0] = 0;
2364return test_array [0];
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"
2371then :
2372  ac_hi=-1 ac_mid=-1
2373  while :; do
2374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375/* end confdefs.h.  */
2376$4
2377int
2378main (void)
2379{
2380static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2381test_array [0] = 0;
2382return test_array [0];
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388if ac_fn_c_try_compile "$LINENO"
2389then :
2390  ac_lo=$ac_mid; break
2391else $as_nop
2392  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2393			if test $ac_mid -le $ac_hi; then
2394			  ac_lo= ac_hi=
2395			  break
2396			fi
2397			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2398fi
2399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2400  done
2401else $as_nop
2402  ac_lo= ac_hi=
2403fi
2404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2405fi
2406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2407# Binary search between lo and hi bounds.
2408while test "x$ac_lo" != "x$ac_hi"; do
2409  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412$4
2413int
2414main (void)
2415{
2416static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2417test_array [0] = 0;
2418return test_array [0];
2419
2420  ;
2421  return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"
2425then :
2426  ac_hi=$ac_mid
2427else $as_nop
2428  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2429fi
2430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2431done
2432case $ac_lo in #((
2433?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2434'') ac_retval=1 ;;
2435esac
2436  else
2437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438/* end confdefs.h.  */
2439$4
2440static long int longval (void) { return $2; }
2441static unsigned long int ulongval (void) { return $2; }
2442#include <stdio.h>
2443#include <stdlib.h>
2444int
2445main (void)
2446{
2447
2448  FILE *f = fopen ("conftest.val", "w");
2449  if (! f)
2450    return 1;
2451  if (($2) < 0)
2452    {
2453      long int i = longval ();
2454      if (i != ($2))
2455	return 1;
2456      fprintf (f, "%ld", i);
2457    }
2458  else
2459    {
2460      unsigned long int i = ulongval ();
2461      if (i != ($2))
2462	return 1;
2463      fprintf (f, "%lu", i);
2464    }
2465  /* Do not output a trailing newline, as this causes \r\n confusion
2466     on some platforms.  */
2467  return ferror (f) || fclose (f) != 0;
2468
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473if ac_fn_c_try_run "$LINENO"
2474then :
2475  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2476else $as_nop
2477  ac_retval=1
2478fi
2479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2480  conftest.$ac_objext conftest.beam conftest.$ac_ext
2481rm -f conftest.val
2482
2483  fi
2484  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485  as_fn_set_status $ac_retval
2486
2487} # ac_fn_c_compute_int
2488
2489# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2490# ------------------------------------------------------------------
2491# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2492# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2493ac_fn_check_decl ()
2494{
2495  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496  as_decl_name=`echo $2|sed 's/ *(.*//'`
2497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2498printf %s "checking whether $as_decl_name is declared... " >&6; }
2499if eval test \${$3+y}
2500then :
2501  printf %s "(cached) " >&6
2502else $as_nop
2503  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2504  eval ac_save_FLAGS=\$$6
2505  as_fn_append $6 " $5"
2506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507/* end confdefs.h.  */
2508$4
2509int
2510main (void)
2511{
2512#ifndef $as_decl_name
2513#ifdef __cplusplus
2514  (void) $as_decl_use;
2515#else
2516  (void) $as_decl_name;
2517#endif
2518#endif
2519
2520  ;
2521  return 0;
2522}
2523_ACEOF
2524if ac_fn_c_try_compile "$LINENO"
2525then :
2526  eval "$3=yes"
2527else $as_nop
2528  eval "$3=no"
2529fi
2530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2531  eval $6=\$ac_save_FLAGS
2532
2533fi
2534eval ac_res=\$$3
2535	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536printf "%s\n" "$ac_res" >&6; }
2537  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538
2539} # ac_fn_check_decl
2540
2541# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2542# -------------------------------------------
2543# Tests whether TYPE exists after having included INCLUDES, setting cache
2544# variable VAR accordingly.
2545ac_fn_c_check_type ()
2546{
2547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549printf %s "checking for $2... " >&6; }
2550if eval test \${$3+y}
2551then :
2552  printf %s "(cached) " >&6
2553else $as_nop
2554  eval "$3=no"
2555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556/* end confdefs.h.  */
2557$4
2558int
2559main (void)
2560{
2561if (sizeof ($2))
2562	 return 0;
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567if ac_fn_c_try_compile "$LINENO"
2568then :
2569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h.  */
2571$4
2572int
2573main (void)
2574{
2575if (sizeof (($2)))
2576	    return 0;
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"
2582then :
2583
2584else $as_nop
2585  eval "$3=yes"
2586fi
2587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2590fi
2591eval ac_res=\$$3
2592	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593printf "%s\n" "$ac_res" >&6; }
2594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595
2596} # ac_fn_c_check_type
2597
2598# ac_fn_c_try_cpp LINENO
2599# ----------------------
2600# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2601ac_fn_c_try_cpp ()
2602{
2603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604  if { { ac_try="$ac_cpp conftest.$ac_ext"
2605case "(($ac_try" in
2606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607  *) ac_try_echo=$ac_try;;
2608esac
2609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610printf "%s\n" "$ac_try_echo"; } >&5
2611  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2612  ac_status=$?
2613  if test -s conftest.err; then
2614    grep -v '^ *+' conftest.err >conftest.er1
2615    cat conftest.er1 >&5
2616    mv -f conftest.er1 conftest.err
2617  fi
2618  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619  test $ac_status = 0; } > conftest.i && {
2620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2621	 test ! -s conftest.err
2622       }
2623then :
2624  ac_retval=0
2625else $as_nop
2626  printf "%s\n" "$as_me: failed program was:" >&5
2627sed 's/^/| /' conftest.$ac_ext >&5
2628
2629    ac_retval=1
2630fi
2631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2632  as_fn_set_status $ac_retval
2633
2634} # ac_fn_c_try_cpp
2635ac_configure_args_raw=
2636for ac_arg
2637do
2638  case $ac_arg in
2639  *\'*)
2640    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2641  esac
2642  as_fn_append ac_configure_args_raw " '$ac_arg'"
2643done
2644
2645case $ac_configure_args_raw in
2646  *$as_nl*)
2647    ac_safe_unquote= ;;
2648  *)
2649    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2650    ac_unsafe_a="$ac_unsafe_z#~"
2651    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2652    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2653esac
2654
2655cat >config.log <<_ACEOF
2656This file contains any messages produced by compilers while
2657running configure, to aid debugging if configure makes a mistake.
2658
2659It was created by hwloc $as_me 2.5.0, which was
2660generated by GNU Autoconf 2.71.  Invocation command line was
2661
2662  $ $0$ac_configure_args_raw
2663
2664_ACEOF
2665exec 5>>config.log
2666{
2667cat <<_ASUNAME
2668## --------- ##
2669## Platform. ##
2670## --------- ##
2671
2672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2680
2681/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2682/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2685/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2686/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2687/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2688
2689_ASUNAME
2690
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694  IFS=$as_save_IFS
2695  case $as_dir in #(((
2696    '') as_dir=./ ;;
2697    */) ;;
2698    *) as_dir=$as_dir/ ;;
2699  esac
2700    printf "%s\n" "PATH: $as_dir"
2701  done
2702IFS=$as_save_IFS
2703
2704} >&5
2705
2706cat >&5 <<_ACEOF
2707
2708
2709## ----------- ##
2710## Core tests. ##
2711## ----------- ##
2712
2713_ACEOF
2714
2715
2716# Keep a trace of the command line.
2717# Strip out --no-create and --no-recursion so they do not pile up.
2718# Strip out --silent because we don't want to record it for future runs.
2719# Also quote any args containing shell meta-characters.
2720# Make two passes to allow for proper duplicate-argument suppression.
2721ac_configure_args=
2722ac_configure_args0=
2723ac_configure_args1=
2724ac_must_keep_next=false
2725for ac_pass in 1 2
2726do
2727  for ac_arg
2728  do
2729    case $ac_arg in
2730    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732    | -silent | --silent | --silen | --sile | --sil)
2733      continue ;;
2734    *\'*)
2735      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2736    esac
2737    case $ac_pass in
2738    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2739    2)
2740      as_fn_append ac_configure_args1 " '$ac_arg'"
2741      if test $ac_must_keep_next = true; then
2742	ac_must_keep_next=false # Got value, back to normal.
2743      else
2744	case $ac_arg in
2745	  *=* | --config-cache | -C | -disable-* | --disable-* \
2746	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748	  | -with-* | --with-* | -without-* | --without-* | --x)
2749	    case "$ac_configure_args0 " in
2750	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751	    esac
2752	    ;;
2753	  -* ) ac_must_keep_next=true ;;
2754	esac
2755      fi
2756      as_fn_append ac_configure_args " '$ac_arg'"
2757      ;;
2758    esac
2759  done
2760done
2761{ ac_configure_args0=; unset ac_configure_args0;}
2762{ ac_configure_args1=; unset ac_configure_args1;}
2763
2764# When interrupted or exit'd, cleanup temporary files, and complete
2765# config.log.  We remove comments because anyway the quotes in there
2766# would cause problems or look ugly.
2767# WARNING: Use '\'' to represent an apostrophe within the trap.
2768# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769trap 'exit_status=$?
2770  # Sanitize IFS.
2771  IFS=" ""	$as_nl"
2772  # Save into config.log some information that might help in debugging.
2773  {
2774    echo
2775
2776    printf "%s\n" "## ---------------- ##
2777## Cache variables. ##
2778## ---------------- ##"
2779    echo
2780    # The following way of writing the cache mishandles newlines in values,
2781(
2782  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2783    eval ac_val=\$$ac_var
2784    case $ac_val in #(
2785    *${as_nl}*)
2786      case $ac_var in #(
2787      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2788printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789      esac
2790      case $ac_var in #(
2791      _ | IFS | as_nl) ;; #(
2792      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2793      *) { eval $ac_var=; unset $ac_var;} ;;
2794      esac ;;
2795    esac
2796  done
2797  (set) 2>&1 |
2798    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2799    *${as_nl}ac_space=\ *)
2800      sed -n \
2801	"s/'\''/'\''\\\\'\'''\''/g;
2802	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803      ;; #(
2804    *)
2805      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2806      ;;
2807    esac |
2808    sort
2809)
2810    echo
2811
2812    printf "%s\n" "## ----------------- ##
2813## Output variables. ##
2814## ----------------- ##"
2815    echo
2816    for ac_var in $ac_subst_vars
2817    do
2818      eval ac_val=\$$ac_var
2819      case $ac_val in
2820      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2821      esac
2822      printf "%s\n" "$ac_var='\''$ac_val'\''"
2823    done | sort
2824    echo
2825
2826    if test -n "$ac_subst_files"; then
2827      printf "%s\n" "## ------------------- ##
2828## File substitutions. ##
2829## ------------------- ##"
2830      echo
2831      for ac_var in $ac_subst_files
2832      do
2833	eval ac_val=\$$ac_var
2834	case $ac_val in
2835	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836	esac
2837	printf "%s\n" "$ac_var='\''$ac_val'\''"
2838      done | sort
2839      echo
2840    fi
2841
2842    if test -s confdefs.h; then
2843      printf "%s\n" "## ----------- ##
2844## confdefs.h. ##
2845## ----------- ##"
2846      echo
2847      cat confdefs.h
2848      echo
2849    fi
2850    test "$ac_signal" != 0 &&
2851      printf "%s\n" "$as_me: caught signal $ac_signal"
2852    printf "%s\n" "$as_me: exit $exit_status"
2853  } >&5
2854  rm -f core *.core core.conftest.* &&
2855    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2856    exit $exit_status
2857' 0
2858for ac_signal in 1 2 13 15; do
2859  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2860done
2861ac_signal=0
2862
2863# confdefs.h avoids OS command line length limits that DEFS can exceed.
2864rm -f -r conftest* confdefs.h
2865
2866printf "%s\n" "/* confdefs.h */" > confdefs.h
2867
2868# Predefined preprocessor variables.
2869
2870printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2871
2872printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2873
2874printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2875
2876printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2877
2878printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2879
2880printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2881
2882
2883# Let the site file select an alternate cache file if it wants to.
2884# Prefer an explicitly selected file to automatically selected ones.
2885if test -n "$CONFIG_SITE"; then
2886  ac_site_files="$CONFIG_SITE"
2887elif test "x$prefix" != xNONE; then
2888  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2889else
2890  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2891fi
2892
2893for ac_site_file in $ac_site_files
2894do
2895  case $ac_site_file in #(
2896  */*) :
2897     ;; #(
2898  *) :
2899    ac_site_file=./$ac_site_file ;;
2900esac
2901  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2902    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2903printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2904    sed 's/^/| /' "$ac_site_file" >&5
2905    . "$ac_site_file" \
2906      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2908as_fn_error $? "failed to load site script $ac_site_file
2909See \`config.log' for more details" "$LINENO" 5; }
2910  fi
2911done
2912
2913if test -r "$cache_file"; then
2914  # Some versions of bash will fail to source /dev/null (special files
2915  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2916  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2917    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2918printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2919    case $cache_file in
2920      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2921      *)                      . "./$cache_file";;
2922    esac
2923  fi
2924else
2925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2926printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2927  >$cache_file
2928fi
2929
2930as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2931# Test code for whether the C compiler supports C89 (global declarations)
2932ac_c_conftest_c89_globals='
2933/* Does the compiler advertise C89 conformance?
2934   Do not test the value of __STDC__, because some compilers set it to 0
2935   while being otherwise adequately conformant. */
2936#if !defined __STDC__
2937# error "Compiler does not advertise C89 conformance"
2938#endif
2939
2940#include <stddef.h>
2941#include <stdarg.h>
2942struct stat;
2943/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2944struct buf { int x; };
2945struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2946static char *e (p, i)
2947     char **p;
2948     int i;
2949{
2950  return p[i];
2951}
2952static char *f (char * (*g) (char **, int), char **p, ...)
2953{
2954  char *s;
2955  va_list v;
2956  va_start (v,p);
2957  s = g (p, va_arg (v,int));
2958  va_end (v);
2959  return s;
2960}
2961
2962/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2963   function prototypes and stuff, but not \xHH hex character constants.
2964   These do not provoke an error unfortunately, instead are silently treated
2965   as an "x".  The following induces an error, until -std is added to get
2966   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2967   array size at least.  It is necessary to write \x00 == 0 to get something
2968   that is true only with -std.  */
2969int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2970
2971/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2972   inside strings and character constants.  */
2973#define FOO(x) '\''x'\''
2974int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2975
2976int test (int i, double x);
2977struct s1 {int (*f) (int a);};
2978struct s2 {int (*f) (double a);};
2979int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2980               int, int);'
2981
2982# Test code for whether the C compiler supports C89 (body of main).
2983ac_c_conftest_c89_main='
2984ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2985'
2986
2987# Test code for whether the C compiler supports C99 (global declarations)
2988ac_c_conftest_c99_globals='
2989// Does the compiler advertise C99 conformance?
2990#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2991# error "Compiler does not advertise C99 conformance"
2992#endif
2993
2994#include <stdbool.h>
2995extern int puts (const char *);
2996extern int printf (const char *, ...);
2997extern int dprintf (int, const char *, ...);
2998extern void *malloc (size_t);
2999
3000// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3001// dprintf is used instead of fprintf to avoid needing to declare
3002// FILE and stderr.
3003#define debug(...) dprintf (2, __VA_ARGS__)
3004#define showlist(...) puts (#__VA_ARGS__)
3005#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3006static void
3007test_varargs_macros (void)
3008{
3009  int x = 1234;
3010  int y = 5678;
3011  debug ("Flag");
3012  debug ("X = %d\n", x);
3013  showlist (The first, second, and third items.);
3014  report (x>y, "x is %d but y is %d", x, y);
3015}
3016
3017// Check long long types.
3018#define BIG64 18446744073709551615ull
3019#define BIG32 4294967295ul
3020#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3021#if !BIG_OK
3022  #error "your preprocessor is broken"
3023#endif
3024#if BIG_OK
3025#else
3026  #error "your preprocessor is broken"
3027#endif
3028static long long int bignum = -9223372036854775807LL;
3029static unsigned long long int ubignum = BIG64;
3030
3031struct incomplete_array
3032{
3033  int datasize;
3034  double data[];
3035};
3036
3037struct named_init {
3038  int number;
3039  const wchar_t *name;
3040  double average;
3041};
3042
3043typedef const char *ccp;
3044
3045static inline int
3046test_restrict (ccp restrict text)
3047{
3048  // See if C++-style comments work.
3049  // Iterate through items via the restricted pointer.
3050  // Also check for declarations in for loops.
3051  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3052    continue;
3053  return 0;
3054}
3055
3056// Check varargs and va_copy.
3057static bool
3058test_varargs (const char *format, ...)
3059{
3060  va_list args;
3061  va_start (args, format);
3062  va_list args_copy;
3063  va_copy (args_copy, args);
3064
3065  const char *str = "";
3066  int number = 0;
3067  float fnumber = 0;
3068
3069  while (*format)
3070    {
3071      switch (*format++)
3072	{
3073	case '\''s'\'': // string
3074	  str = va_arg (args_copy, const char *);
3075	  break;
3076	case '\''d'\'': // int
3077	  number = va_arg (args_copy, int);
3078	  break;
3079	case '\''f'\'': // float
3080	  fnumber = va_arg (args_copy, double);
3081	  break;
3082	default:
3083	  break;
3084	}
3085    }
3086  va_end (args_copy);
3087  va_end (args);
3088
3089  return *str && number && fnumber;
3090}
3091'
3092
3093# Test code for whether the C compiler supports C99 (body of main).
3094ac_c_conftest_c99_main='
3095  // Check bool.
3096  _Bool success = false;
3097  success |= (argc != 0);
3098
3099  // Check restrict.
3100  if (test_restrict ("String literal") == 0)
3101    success = true;
3102  char *restrict newvar = "Another string";
3103
3104  // Check varargs.
3105  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3106  test_varargs_macros ();
3107
3108  // Check flexible array members.
3109  struct incomplete_array *ia =
3110    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3111  ia->datasize = 10;
3112  for (int i = 0; i < ia->datasize; ++i)
3113    ia->data[i] = i * 1.234;
3114
3115  // Check named initializers.
3116  struct named_init ni = {
3117    .number = 34,
3118    .name = L"Test wide string",
3119    .average = 543.34343,
3120  };
3121
3122  ni.number = 58;
3123
3124  int dynamic_array[ni.number];
3125  dynamic_array[0] = argv[0][0];
3126  dynamic_array[ni.number - 1] = 543;
3127
3128  // work around unused variable warnings
3129  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3130	 || dynamic_array[ni.number - 1] != 543);
3131'
3132
3133# Test code for whether the C compiler supports C11 (global declarations)
3134ac_c_conftest_c11_globals='
3135// Does the compiler advertise C11 conformance?
3136#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3137# error "Compiler does not advertise C11 conformance"
3138#endif
3139
3140// Check _Alignas.
3141char _Alignas (double) aligned_as_double;
3142char _Alignas (0) no_special_alignment;
3143extern char aligned_as_int;
3144char _Alignas (0) _Alignas (int) aligned_as_int;
3145
3146// Check _Alignof.
3147enum
3148{
3149  int_alignment = _Alignof (int),
3150  int_array_alignment = _Alignof (int[100]),
3151  char_alignment = _Alignof (char)
3152};
3153_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3154
3155// Check _Noreturn.
3156int _Noreturn does_not_return (void) { for (;;) continue; }
3157
3158// Check _Static_assert.
3159struct test_static_assert
3160{
3161  int x;
3162  _Static_assert (sizeof (int) <= sizeof (long int),
3163                  "_Static_assert does not work in struct");
3164  long int y;
3165};
3166
3167// Check UTF-8 literals.
3168#define u8 syntax error!
3169char const utf8_literal[] = u8"happens to be ASCII" "another string";
3170
3171// Check duplicate typedefs.
3172typedef long *long_ptr;
3173typedef long int *long_ptr;
3174typedef long_ptr long_ptr;
3175
3176// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3177struct anonymous
3178{
3179  union {
3180    struct { int i; int j; };
3181    struct { int k; long int l; } w;
3182  };
3183  int m;
3184} v1;
3185'
3186
3187# Test code for whether the C compiler supports C11 (body of main).
3188ac_c_conftest_c11_main='
3189  _Static_assert ((offsetof (struct anonymous, i)
3190		   == offsetof (struct anonymous, w.k)),
3191		  "Anonymous union alignment botch");
3192  v1.i = 2;
3193  v1.w.k = 5;
3194  ok |= v1.i != 5;
3195'
3196
3197# Test code for whether the C compiler supports C11 (complete).
3198ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3199${ac_c_conftest_c99_globals}
3200${ac_c_conftest_c11_globals}
3201
3202int
3203main (int argc, char **argv)
3204{
3205  int ok = 0;
3206  ${ac_c_conftest_c89_main}
3207  ${ac_c_conftest_c99_main}
3208  ${ac_c_conftest_c11_main}
3209  return ok;
3210}
3211"
3212
3213# Test code for whether the C compiler supports C99 (complete).
3214ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3215${ac_c_conftest_c99_globals}
3216
3217int
3218main (int argc, char **argv)
3219{
3220  int ok = 0;
3221  ${ac_c_conftest_c89_main}
3222  ${ac_c_conftest_c99_main}
3223  return ok;
3224}
3225"
3226
3227# Test code for whether the C compiler supports C89 (complete).
3228ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3229
3230int
3231main (int argc, char **argv)
3232{
3233  int ok = 0;
3234  ${ac_c_conftest_c89_main}
3235  return ok;
3236}
3237"
3238
3239as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3240as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3241as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3242as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3243as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3244as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3245as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3246as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3247as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3248as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3249# Test code for whether the C++ compiler supports C++98 (global declarations)
3250ac_cxx_conftest_cxx98_globals='
3251// Does the compiler advertise C++98 conformance?
3252#if !defined __cplusplus || __cplusplus < 199711L
3253# error "Compiler does not advertise C++98 conformance"
3254#endif
3255
3256// These inclusions are to reject old compilers that
3257// lack the unsuffixed header files.
3258#include <cstdlib>
3259#include <exception>
3260
3261// <cassert> and <cstring> are *not* freestanding headers in C++98.
3262extern void assert (int);
3263namespace std {
3264  extern int strcmp (const char *, const char *);
3265}
3266
3267// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3268using std::exception;
3269using std::strcmp;
3270
3271namespace {
3272
3273void test_exception_syntax()
3274{
3275  try {
3276    throw "test";
3277  } catch (const char *s) {
3278    // Extra parentheses suppress a warning when building autoconf itself,
3279    // due to lint rules shared with more typical C programs.
3280    assert (!(strcmp) (s, "test"));
3281  }
3282}
3283
3284template <typename T> struct test_template
3285{
3286  T const val;
3287  explicit test_template(T t) : val(t) {}
3288  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3289};
3290
3291} // anonymous namespace
3292'
3293
3294# Test code for whether the C++ compiler supports C++98 (body of main)
3295ac_cxx_conftest_cxx98_main='
3296  assert (argc);
3297  assert (! argv[0]);
3298{
3299  test_exception_syntax ();
3300  test_template<double> tt (2.0);
3301  assert (tt.add (4) == 6.0);
3302  assert (true && !false);
3303}
3304'
3305
3306# Test code for whether the C++ compiler supports C++11 (global declarations)
3307ac_cxx_conftest_cxx11_globals='
3308// Does the compiler advertise C++ 2011 conformance?
3309#if !defined __cplusplus || __cplusplus < 201103L
3310# error "Compiler does not advertise C++11 conformance"
3311#endif
3312
3313namespace cxx11test
3314{
3315  constexpr int get_val() { return 20; }
3316
3317  struct testinit
3318  {
3319    int i;
3320    double d;
3321  };
3322
3323  class delegate
3324  {
3325  public:
3326    delegate(int n) : n(n) {}
3327    delegate(): delegate(2354) {}
3328
3329    virtual int getval() { return this->n; };
3330  protected:
3331    int n;
3332  };
3333
3334  class overridden : public delegate
3335  {
3336  public:
3337    overridden(int n): delegate(n) {}
3338    virtual int getval() override final { return this->n * 2; }
3339  };
3340
3341  class nocopy
3342  {
3343  public:
3344    nocopy(int i): i(i) {}
3345    nocopy() = default;
3346    nocopy(const nocopy&) = delete;
3347    nocopy & operator=(const nocopy&) = delete;
3348  private:
3349    int i;
3350  };
3351
3352  // for testing lambda expressions
3353  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3354  {
3355    return f(v);
3356  }
3357
3358  // for testing variadic templates and trailing return types
3359  template <typename V> auto sum(V first) -> V
3360  {
3361    return first;
3362  }
3363  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3364  {
3365    return first + sum(rest...);
3366  }
3367}
3368'
3369
3370# Test code for whether the C++ compiler supports C++11 (body of main)
3371ac_cxx_conftest_cxx11_main='
3372{
3373  // Test auto and decltype
3374  auto a1 = 6538;
3375  auto a2 = 48573953.4;
3376  auto a3 = "String literal";
3377
3378  int total = 0;
3379  for (auto i = a3; *i; ++i) { total += *i; }
3380
3381  decltype(a2) a4 = 34895.034;
3382}
3383{
3384  // Test constexpr
3385  short sa[cxx11test::get_val()] = { 0 };
3386}
3387{
3388  // Test initializer lists
3389  cxx11test::testinit il = { 4323, 435234.23544 };
3390}
3391{
3392  // Test range-based for
3393  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3394                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3395  for (auto &x : array) { x += 23; }
3396}
3397{
3398  // Test lambda expressions
3399  using cxx11test::eval;
3400  assert (eval ([](int x) { return x*2; }, 21) == 42);
3401  double d = 2.0;
3402  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3403  assert (d == 5.0);
3404  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3405  assert (d == 5.0);
3406}
3407{
3408  // Test use of variadic templates
3409  using cxx11test::sum;
3410  auto a = sum(1);
3411  auto b = sum(1, 2);
3412  auto c = sum(1.0, 2.0, 3.0);
3413}
3414{
3415  // Test constructor delegation
3416  cxx11test::delegate d1;
3417  cxx11test::delegate d2();
3418  cxx11test::delegate d3(45);
3419}
3420{
3421  // Test override and final
3422  cxx11test::overridden o1(55464);
3423}
3424{
3425  // Test nullptr
3426  char *c = nullptr;
3427}
3428{
3429  // Test template brackets
3430  test_template<::test_template<int>> v(test_template<int>(12));
3431}
3432{
3433  // Unicode literals
3434  char const *utf8 = u8"UTF-8 string \u2500";
3435  char16_t const *utf16 = u"UTF-8 string \u2500";
3436  char32_t const *utf32 = U"UTF-32 string \u2500";
3437}
3438'
3439
3440# Test code for whether the C compiler supports C++11 (complete).
3441ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3442${ac_cxx_conftest_cxx11_globals}
3443
3444int
3445main (int argc, char **argv)
3446{
3447  int ok = 0;
3448  ${ac_cxx_conftest_cxx98_main}
3449  ${ac_cxx_conftest_cxx11_main}
3450  return ok;
3451}
3452"
3453
3454# Test code for whether the C compiler supports C++98 (complete).
3455ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3456int
3457main (int argc, char **argv)
3458{
3459  int ok = 0;
3460  ${ac_cxx_conftest_cxx98_main}
3461  return ok;
3462}
3463"
3464
3465
3466# Auxiliary files required by this configure script.
3467ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
3468
3469# Locations in which to look for auxiliary files.
3470ac_aux_dir_candidates="${srcdir}/./config"
3471
3472# Search for a directory containing all of the required auxiliary files,
3473# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3474# If we don't find one directory that contains all the files we need,
3475# we report the set of missing files from the *first* directory in
3476# $ac_aux_dir_candidates and give up.
3477ac_missing_aux_files=""
3478ac_first_candidate=:
3479printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481as_found=false
3482for as_dir in $ac_aux_dir_candidates
3483do
3484  IFS=$as_save_IFS
3485  case $as_dir in #(((
3486    '') as_dir=./ ;;
3487    */) ;;
3488    *) as_dir=$as_dir/ ;;
3489  esac
3490  as_found=:
3491
3492  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3493  ac_aux_dir_found=yes
3494  ac_install_sh=
3495  for ac_aux in $ac_aux_files
3496  do
3497    # As a special case, if "install-sh" is required, that requirement
3498    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3499    # and $ac_install_sh is set appropriately for whichever one is found.
3500    if test x"$ac_aux" = x"install-sh"
3501    then
3502      if test -f "${as_dir}install-sh"; then
3503        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3504        ac_install_sh="${as_dir}install-sh -c"
3505      elif test -f "${as_dir}install.sh"; then
3506        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3507        ac_install_sh="${as_dir}install.sh -c"
3508      elif test -f "${as_dir}shtool"; then
3509        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3510        ac_install_sh="${as_dir}shtool install -c"
3511      else
3512        ac_aux_dir_found=no
3513        if $ac_first_candidate; then
3514          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3515        else
3516          break
3517        fi
3518      fi
3519    else
3520      if test -f "${as_dir}${ac_aux}"; then
3521        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3522      else
3523        ac_aux_dir_found=no
3524        if $ac_first_candidate; then
3525          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3526        else
3527          break
3528        fi
3529      fi
3530    fi
3531  done
3532  if test "$ac_aux_dir_found" = yes; then
3533    ac_aux_dir="$as_dir"
3534    break
3535  fi
3536  ac_first_candidate=false
3537
3538  as_found=false
3539done
3540IFS=$as_save_IFS
3541if $as_found
3542then :
3543
3544else $as_nop
3545  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3546fi
3547
3548
3549# These three variables are undocumented and unsupported,
3550# and are intended to be withdrawn in a future Autoconf release.
3551# They can cause serious problems if a builder's source tree is in a directory
3552# whose full name contains unusual characters.
3553if test -f "${ac_aux_dir}config.guess"; then
3554  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3555fi
3556if test -f "${ac_aux_dir}config.sub"; then
3557  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3558fi
3559if test -f "$ac_aux_dir/configure"; then
3560  ac_configure="$SHELL ${ac_aux_dir}configure"
3561fi
3562
3563# Check that the precious variables saved in the cache have kept the same
3564# value.
3565ac_cache_corrupted=false
3566for ac_var in $ac_precious_vars; do
3567  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3568  eval ac_new_set=\$ac_env_${ac_var}_set
3569  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3570  eval ac_new_val=\$ac_env_${ac_var}_value
3571  case $ac_old_set,$ac_new_set in
3572    set,)
3573      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3574printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3575      ac_cache_corrupted=: ;;
3576    ,set)
3577      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3578printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3579      ac_cache_corrupted=: ;;
3580    ,);;
3581    *)
3582      if test "x$ac_old_val" != "x$ac_new_val"; then
3583	# differences in whitespace do not lead to failure.
3584	ac_old_val_w=`echo x $ac_old_val`
3585	ac_new_val_w=`echo x $ac_new_val`
3586	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3587	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3588printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3589	  ac_cache_corrupted=:
3590	else
3591	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3592printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3593	  eval $ac_var=\$ac_old_val
3594	fi
3595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3596printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3598printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3599      fi;;
3600  esac
3601  # Pass precious variables to config.status.
3602  if test "$ac_new_set" = set; then
3603    case $ac_new_val in
3604    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3605    *) ac_arg=$ac_var=$ac_new_val ;;
3606    esac
3607    case " $ac_configure_args " in
3608      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3609      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3610    esac
3611  fi
3612done
3613if $ac_cache_corrupted; then
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3617printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3618  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3619	    and start over" "$LINENO" 5
3620fi
3621## -------------------- ##
3622## Main body of script. ##
3623## -------------------- ##
3624
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632
3633
3634# Note that this directory must *exactly* match what was specified via
3635# -I in ACLOCAL_AMFLAGS in the top-level Makefile.am.
3636
3637
3638cat <<EOF
3639
3640###
3641### Configuring hwloc distribution tarball
3642### Startup tests
3643###
3644EOF
3645
3646# This must be before AM_INIT_AUTOMAKE
3647
3648
3649
3650  # Make sure we can run config.sub.
3651$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3652  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3653
3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3655printf %s "checking build system type... " >&6; }
3656if test ${ac_cv_build+y}
3657then :
3658  printf %s "(cached) " >&6
3659else $as_nop
3660  ac_build_alias=$build_alias
3661test "x$ac_build_alias" = x &&
3662  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3663test "x$ac_build_alias" = x &&
3664  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3665ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3666  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3667
3668fi
3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3670printf "%s\n" "$ac_cv_build" >&6; }
3671case $ac_cv_build in
3672*-*-*) ;;
3673*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3674esac
3675build=$ac_cv_build
3676ac_save_IFS=$IFS; IFS='-'
3677set x $ac_cv_build
3678shift
3679build_cpu=$1
3680build_vendor=$2
3681shift; shift
3682# Remember, the first character of IFS is used to create $*,
3683# except with old shells:
3684build_os=$*
3685IFS=$ac_save_IFS
3686case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3687
3688
3689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3690printf %s "checking host system type... " >&6; }
3691if test ${ac_cv_host+y}
3692then :
3693  printf %s "(cached) " >&6
3694else $as_nop
3695  if test "x$host_alias" = x; then
3696  ac_cv_host=$ac_cv_build
3697else
3698  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3699    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3700fi
3701
3702fi
3703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3704printf "%s\n" "$ac_cv_host" >&6; }
3705case $ac_cv_host in
3706*-*-*) ;;
3707*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3708esac
3709host=$ac_cv_host
3710ac_save_IFS=$IFS; IFS='-'
3711set x $ac_cv_host
3712shift
3713host_cpu=$1
3714host_vendor=$2
3715shift; shift
3716# Remember, the first character of IFS is used to create $*,
3717# except with old shells:
3718host_os=$*
3719IFS=$ac_save_IFS
3720case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3721
3722
3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3724printf %s "checking target system type... " >&6; }
3725if test ${ac_cv_target+y}
3726then :
3727  printf %s "(cached) " >&6
3728else $as_nop
3729  if test "x$target_alias" = x; then
3730  ac_cv_target=$ac_cv_host
3731else
3732  ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3733    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3734fi
3735
3736fi
3737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3738printf "%s\n" "$ac_cv_target" >&6; }
3739case $ac_cv_target in
3740*-*-*) ;;
3741*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3742esac
3743target=$ac_cv_target
3744ac_save_IFS=$IFS; IFS='-'
3745set x $ac_cv_target
3746shift
3747target_cpu=$1
3748target_vendor=$2
3749shift; shift
3750# Remember, the first character of IFS is used to create $*,
3751# except with old shells:
3752target_os=$*
3753IFS=$ac_save_IFS
3754case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3755
3756
3757# The aliases save the names the user supplied, while $host etc.
3758# will get canonicalized.
3759test -n "$target_alias" &&
3760  test "$program_prefix$program_suffix$program_transform_name" = \
3761    NONENONEs,x,x, &&
3762  program_prefix=${target_alias}-
3763
3764# Init automake
3765am__api_version='1.16'
3766
3767
3768  # Find a good install program.  We prefer a C program (faster),
3769# so one script is as good as another.  But avoid the broken or
3770# incompatible versions:
3771# SysV /etc/install, /usr/sbin/install
3772# SunOS /usr/etc/install
3773# IRIX /sbin/install
3774# AIX /bin/install
3775# AmigaOS /C/install, which installs bootblocks on floppy discs
3776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3779# OS/2's system install, which has a completely different semantic
3780# ./install, which can be erroneously created by make from ./install.sh.
3781# Reject install programs that cannot install multiple files.
3782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3783printf %s "checking for a BSD-compatible install... " >&6; }
3784if test -z "$INSTALL"; then
3785if test ${ac_cv_path_install+y}
3786then :
3787  printf %s "(cached) " >&6
3788else $as_nop
3789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792  IFS=$as_save_IFS
3793  case $as_dir in #(((
3794    '') as_dir=./ ;;
3795    */) ;;
3796    *) as_dir=$as_dir/ ;;
3797  esac
3798    # Account for fact that we put trailing slashes in our PATH walk.
3799case $as_dir in #((
3800  ./ | /[cC]/* | \
3801  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3802  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3803  /usr/ucb/* ) ;;
3804  *)
3805    # OSF1 and SCO ODT 3.0 have their own names for install.
3806    # Don't use installbsd from OSF since it installs stuff as root
3807    # by default.
3808    for ac_prog in ginstall scoinst install; do
3809      for ac_exec_ext in '' $ac_executable_extensions; do
3810	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3811	  if test $ac_prog = install &&
3812	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3813	    # AIX install.  It has an incompatible calling convention.
3814	    :
3815	  elif test $ac_prog = install &&
3816	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817	    # program-specific install script used by HP pwplus--don't use.
3818	    :
3819	  else
3820	    rm -rf conftest.one conftest.two conftest.dir
3821	    echo one > conftest.one
3822	    echo two > conftest.two
3823	    mkdir conftest.dir
3824	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3825	      test -s conftest.one && test -s conftest.two &&
3826	      test -s conftest.dir/conftest.one &&
3827	      test -s conftest.dir/conftest.two
3828	    then
3829	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3830	      break 3
3831	    fi
3832	  fi
3833	fi
3834      done
3835    done
3836    ;;
3837esac
3838
3839  done
3840IFS=$as_save_IFS
3841
3842rm -rf conftest.one conftest.two conftest.dir
3843
3844fi
3845  if test ${ac_cv_path_install+y}; then
3846    INSTALL=$ac_cv_path_install
3847  else
3848    # As a last resort, use the slow shell script.  Don't cache a
3849    # value for INSTALL within a source directory, because that will
3850    # break other packages using the cache if that directory is
3851    # removed, or if the value is a relative name.
3852    INSTALL=$ac_install_sh
3853  fi
3854fi
3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3856printf "%s\n" "$INSTALL" >&6; }
3857
3858# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3859# It thinks the first close brace ends the variable substitution.
3860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3861
3862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3863
3864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3865
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3867printf %s "checking whether build environment is sane... " >&6; }
3868# Reject unsafe characters in $srcdir or the absolute working directory
3869# name.  Accept space and tab only in the latter.
3870am_lf='
3871'
3872case `pwd` in
3873  *[\\\"\#\$\&\'\`$am_lf]*)
3874    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3875esac
3876case $srcdir in
3877  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3878    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3879esac
3880
3881# Do 'set' in a subshell so we don't clobber the current shell's
3882# arguments.  Must try -L first in case configure is actually a
3883# symlink; some systems play weird games with the mod time of symlinks
3884# (eg FreeBSD returns the mod time of the symlink's containing
3885# directory).
3886if (
3887   am_has_slept=no
3888   for am_try in 1 2; do
3889     echo "timestamp, slept: $am_has_slept" > conftest.file
3890     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3891     if test "$*" = "X"; then
3892	# -L didn't work.
3893	set X `ls -t "$srcdir/configure" conftest.file`
3894     fi
3895     if test "$*" != "X $srcdir/configure conftest.file" \
3896	&& test "$*" != "X conftest.file $srcdir/configure"; then
3897
3898	# If neither matched, then we have a broken ls.  This can happen
3899	# if, for instance, CONFIG_SHELL is bash and it inherits a
3900	# broken ls alias from the environment.  This has actually
3901	# happened.  Such a system could not be considered "sane".
3902	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3903  alias in your environment" "$LINENO" 5
3904     fi
3905     if test "$2" = conftest.file || test $am_try -eq 2; then
3906       break
3907     fi
3908     # Just in case.
3909     sleep 1
3910     am_has_slept=yes
3911   done
3912   test "$2" = conftest.file
3913   )
3914then
3915   # Ok.
3916   :
3917else
3918   as_fn_error $? "newly created file is older than distributed files!
3919Check your system clock" "$LINENO" 5
3920fi
3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3922printf "%s\n" "yes" >&6; }
3923# If we didn't sleep, we still need to ensure time stamps of config.status and
3924# generated files are strictly newer.
3925am_sleep_pid=
3926if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3927  ( sleep 1 ) &
3928  am_sleep_pid=$!
3929fi
3930
3931rm -f conftest.file
3932
3933test "$program_prefix" != NONE &&
3934  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3935# Use a double $ so make ignores it.
3936test "$program_suffix" != NONE &&
3937  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3938# Double any \ or $.
3939# By default was `s,x,x', remove it if useless.
3940ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3941program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3942
3943
3944# Expand $ac_aux_dir to an absolute path.
3945am_aux_dir=`cd "$ac_aux_dir" && pwd`
3946
3947
3948  if test x"${MISSING+set}" != xset; then
3949  MISSING="\${SHELL} '$am_aux_dir/missing'"
3950fi
3951# Use eval to expand $SHELL
3952if eval "$MISSING --is-lightweight"; then
3953  am_missing_run="$MISSING "
3954else
3955  am_missing_run=
3956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3957printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3958fi
3959
3960if test x"${install_sh+set}" != xset; then
3961  case $am_aux_dir in
3962  *\ * | *\	*)
3963    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3964  *)
3965    install_sh="\${SHELL} $am_aux_dir/install-sh"
3966  esac
3967fi
3968
3969# Installed binaries are usually stripped using 'strip' when the user
3970# run "make install-strip".  However 'strip' might not be the right
3971# tool to use in cross-compilation environments, therefore Automake
3972# will honor the 'STRIP' environment variable to overrule this program.
3973if test "$cross_compiling" != no; then
3974  if test -n "$ac_tool_prefix"; then
3975  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3976set dummy ${ac_tool_prefix}strip; ac_word=$2
3977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978printf %s "checking for $ac_word... " >&6; }
3979if test ${ac_cv_prog_STRIP+y}
3980then :
3981  printf %s "(cached) " >&6
3982else $as_nop
3983  if test -n "$STRIP"; then
3984  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989  IFS=$as_save_IFS
3990  case $as_dir in #(((
3991    '') as_dir=./ ;;
3992    */) ;;
3993    *) as_dir=$as_dir/ ;;
3994  esac
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3997    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3998    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007STRIP=$ac_cv_prog_STRIP
4008if test -n "$STRIP"; then
4009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4010printf "%s\n" "$STRIP" >&6; }
4011else
4012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013printf "%s\n" "no" >&6; }
4014fi
4015
4016
4017fi
4018if test -z "$ac_cv_prog_STRIP"; then
4019  ac_ct_STRIP=$STRIP
4020  # Extract the first word of "strip", so it can be a program name with args.
4021set dummy strip; ac_word=$2
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023printf %s "checking for $ac_word... " >&6; }
4024if test ${ac_cv_prog_ac_ct_STRIP+y}
4025then :
4026  printf %s "(cached) " >&6
4027else $as_nop
4028  if test -n "$ac_ct_STRIP"; then
4029  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034  IFS=$as_save_IFS
4035  case $as_dir in #(((
4036    '') as_dir=./ ;;
4037    */) ;;
4038    *) as_dir=$as_dir/ ;;
4039  esac
4040    for ac_exec_ext in '' $ac_executable_extensions; do
4041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042    ac_cv_prog_ac_ct_STRIP="strip"
4043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044    break 2
4045  fi
4046done
4047  done
4048IFS=$as_save_IFS
4049
4050fi
4051fi
4052ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4053if test -n "$ac_ct_STRIP"; then
4054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4055printf "%s\n" "$ac_ct_STRIP" >&6; }
4056else
4057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058printf "%s\n" "no" >&6; }
4059fi
4060
4061  if test "x$ac_ct_STRIP" = x; then
4062    STRIP=":"
4063  else
4064    case $cross_compiling:$ac_tool_warned in
4065yes:)
4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068ac_tool_warned=yes ;;
4069esac
4070    STRIP=$ac_ct_STRIP
4071  fi
4072else
4073  STRIP="$ac_cv_prog_STRIP"
4074fi
4075
4076fi
4077INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4078
4079
4080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4081printf %s "checking for a race-free mkdir -p... " >&6; }
4082if test -z "$MKDIR_P"; then
4083  if test ${ac_cv_path_mkdir+y}
4084then :
4085  printf %s "(cached) " >&6
4086else $as_nop
4087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4089do
4090  IFS=$as_save_IFS
4091  case $as_dir in #(((
4092    '') as_dir=./ ;;
4093    */) ;;
4094    *) as_dir=$as_dir/ ;;
4095  esac
4096    for ac_prog in mkdir gmkdir; do
4097	 for ac_exec_ext in '' $ac_executable_extensions; do
4098	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4099	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4100	     'mkdir ('*'coreutils) '* | \
4101	     'BusyBox '* | \
4102	     'mkdir (fileutils) '4.1*)
4103	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4104	       break 3;;
4105	   esac
4106	 done
4107       done
4108  done
4109IFS=$as_save_IFS
4110
4111fi
4112
4113  test -d ./--version && rmdir ./--version
4114  if test ${ac_cv_path_mkdir+y}; then
4115    MKDIR_P="$ac_cv_path_mkdir -p"
4116  else
4117    # As a last resort, use the slow shell script.  Don't cache a
4118    # value for MKDIR_P within a source directory, because that will
4119    # break other packages using the cache if that directory is
4120    # removed, or if the value is a relative name.
4121    MKDIR_P="$ac_install_sh -d"
4122  fi
4123fi
4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4125printf "%s\n" "$MKDIR_P" >&6; }
4126
4127for ac_prog in gawk mawk nawk awk
4128do
4129  # Extract the first word of "$ac_prog", so it can be a program name with args.
4130set dummy $ac_prog; ac_word=$2
4131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132printf %s "checking for $ac_word... " >&6; }
4133if test ${ac_cv_prog_AWK+y}
4134then :
4135  printf %s "(cached) " >&6
4136else $as_nop
4137  if test -n "$AWK"; then
4138  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143  IFS=$as_save_IFS
4144  case $as_dir in #(((
4145    '') as_dir=./ ;;
4146    */) ;;
4147    *) as_dir=$as_dir/ ;;
4148  esac
4149    for ac_exec_ext in '' $ac_executable_extensions; do
4150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4151    ac_cv_prog_AWK="$ac_prog"
4152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4153    break 2
4154  fi
4155done
4156  done
4157IFS=$as_save_IFS
4158
4159fi
4160fi
4161AWK=$ac_cv_prog_AWK
4162if test -n "$AWK"; then
4163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4164printf "%s\n" "$AWK" >&6; }
4165else
4166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167printf "%s\n" "no" >&6; }
4168fi
4169
4170
4171  test -n "$AWK" && break
4172done
4173
4174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4175printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4176set x ${MAKE-make}
4177ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4178if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4179then :
4180  printf %s "(cached) " >&6
4181else $as_nop
4182  cat >conftest.make <<\_ACEOF
4183SHELL = /bin/sh
4184all:
4185	@echo '@@@%%%=$(MAKE)=@@@%%%'
4186_ACEOF
4187# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4188case `${MAKE-make} -f conftest.make 2>/dev/null` in
4189  *@@@%%%=?*=@@@%%%*)
4190    eval ac_cv_prog_make_${ac_make}_set=yes;;
4191  *)
4192    eval ac_cv_prog_make_${ac_make}_set=no;;
4193esac
4194rm -f conftest.make
4195fi
4196if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198printf "%s\n" "yes" >&6; }
4199  SET_MAKE=
4200else
4201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202printf "%s\n" "no" >&6; }
4203  SET_MAKE="MAKE=${MAKE-make}"
4204fi
4205
4206rm -rf .tst 2>/dev/null
4207mkdir .tst 2>/dev/null
4208if test -d .tst; then
4209  am__leading_dot=.
4210else
4211  am__leading_dot=_
4212fi
4213rmdir .tst 2>/dev/null
4214
4215# Check whether --enable-silent-rules was given.
4216if test ${enable_silent_rules+y}
4217then :
4218  enableval=$enable_silent_rules;
4219fi
4220
4221case $enable_silent_rules in # (((
4222  yes) AM_DEFAULT_VERBOSITY=0;;
4223   no) AM_DEFAULT_VERBOSITY=1;;
4224    *) AM_DEFAULT_VERBOSITY=1;;
4225esac
4226am_make=${MAKE-make}
4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4228printf %s "checking whether $am_make supports nested variables... " >&6; }
4229if test ${am_cv_make_support_nested_variables+y}
4230then :
4231  printf %s "(cached) " >&6
4232else $as_nop
4233  if printf "%s\n" 'TRUE=$(BAR$(V))
4234BAR0=false
4235BAR1=true
4236V=1
4237am__doit:
4238	@$(TRUE)
4239.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4240  am_cv_make_support_nested_variables=yes
4241else
4242  am_cv_make_support_nested_variables=no
4243fi
4244fi
4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4246printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4247if test $am_cv_make_support_nested_variables = yes; then
4248    AM_V='$(V)'
4249  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4250else
4251  AM_V=$AM_DEFAULT_VERBOSITY
4252  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4253fi
4254AM_BACKSLASH='\'
4255
4256if test "`cd $srcdir && pwd`" != "`pwd`"; then
4257  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4258  # is not polluted with repeated "-I."
4259  am__isrc=' -I$(srcdir)'
4260  # test to see if srcdir already configured
4261  if test -f $srcdir/config.status; then
4262    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4263  fi
4264fi
4265
4266# test whether we have cygpath
4267if test -z "$CYGPATH_W"; then
4268  if (cygpath --version) >/dev/null 2>/dev/null; then
4269    CYGPATH_W='cygpath -w'
4270  else
4271    CYGPATH_W=echo
4272  fi
4273fi
4274
4275
4276# Define the identity of the package.
4277 PACKAGE='hwloc'
4278 VERSION='2.5.0'
4279
4280
4281printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4282
4283
4284printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4285
4286# Some tools Automake needs.
4287
4288ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4289
4290
4291AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4292
4293
4294AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4295
4296
4297AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4298
4299
4300MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4301
4302# For better backward compatibility.  To be removed once Automake 1.9.x
4303# dies out for good.  For more background, see:
4304# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4305# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4306mkdir_p='$(MKDIR_P)'
4307
4308# We need awk for the "check" target (and possibly the TAP driver).  The
4309# system "awk" is bad on some platforms.
4310# Always define AMTAR for backward compatibility.  Yes, it's still used
4311# in the wild :-(  We should find a proper way to deprecate it ...
4312AMTAR='$${TAR-tar}'
4313
4314
4315# We'll loop over all known methods to create a tar archive until one works.
4316_am_tools='gnutar plaintar pax cpio none'
4317
4318# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4319      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4320      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4321      # and bug#13588).
4322      am_max_uid=2097151 # 2^21 - 1
4323      am_max_gid=$am_max_uid
4324      # The $UID and $GID variables are not portable, so we need to resort
4325      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4326      # below are definitely unexpected, so allow the users to see them
4327      # (that is, avoid stderr redirection).
4328      am_uid=`id -u || echo unknown`
4329      am_gid=`id -g || echo unknown`
4330      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4331printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4332      if test $am_uid -le $am_max_uid; then
4333         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334printf "%s\n" "yes" >&6; }
4335      else
4336         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337printf "%s\n" "no" >&6; }
4338         _am_tools=none
4339      fi
4340      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4341printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4342      if test $am_gid -le $am_max_gid; then
4343         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344printf "%s\n" "yes" >&6; }
4345      else
4346        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347printf "%s\n" "no" >&6; }
4348        _am_tools=none
4349      fi
4350
4351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4352printf %s "checking how to create a ustar tar archive... " >&6; }
4353
4354  # Go ahead even if we have the value already cached.  We do so because we
4355  # need to set the values for the 'am__tar' and 'am__untar' variables.
4356  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4357
4358  for _am_tool in $_am_tools; do
4359    case $_am_tool in
4360    gnutar)
4361      for _am_tar in tar gnutar gtar; do
4362        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4363   ($_am_tar --version) >&5 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } && break
4367      done
4368      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4369      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4370      am__untar="$_am_tar -xf -"
4371      ;;
4372    plaintar)
4373      # Must skip GNU tar: if it does not support --format= it doesn't create
4374      # ustar tarball either.
4375      (tar --version) >/dev/null 2>&1 && continue
4376      am__tar='tar chf - "$$tardir"'
4377      am__tar_='tar chf - "$tardir"'
4378      am__untar='tar xf -'
4379      ;;
4380    pax)
4381      am__tar='pax -L -x ustar -w "$$tardir"'
4382      am__tar_='pax -L -x ustar -w "$tardir"'
4383      am__untar='pax -r'
4384      ;;
4385    cpio)
4386      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4387      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4388      am__untar='cpio -i -H ustar -d'
4389      ;;
4390    none)
4391      am__tar=false
4392      am__tar_=false
4393      am__untar=false
4394      ;;
4395    esac
4396
4397    # If the value was cached, stop now.  We just wanted to have am__tar
4398    # and am__untar set.
4399    test -n "${am_cv_prog_tar_ustar}" && break
4400
4401    # tar/untar a dummy directory, and stop if the command works.
4402    rm -rf conftest.dir
4403    mkdir conftest.dir
4404    echo GrepMe > conftest.dir/file
4405    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4406   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }
4410    rm -rf conftest.dir
4411    if test -s conftest.tar; then
4412      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4413   ($am__untar <conftest.tar) >&5 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }
4417      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4418   (cat conftest.dir/file) >&5 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }
4422      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4423    fi
4424  done
4425  rm -rf conftest.dir
4426
4427  if test ${am_cv_prog_tar_ustar+y}
4428then :
4429  printf %s "(cached) " >&6
4430else $as_nop
4431  am_cv_prog_tar_ustar=$_am_tool
4432fi
4433
4434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4435printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4436
4437
4438
4439
4440
4441
4442# POSIX will say in a future version that running "rm -f" with no argument
4443# is OK; and we want to be able to make that assumption in our Makefile
4444# recipes.  So use an aggressive probe to check that the usage we want is
4445# actually supported "in the wild" to an acceptable degree.
4446# See automake bug#10828.
4447# To make any issue more visible, cause the running configure to be aborted
4448# by default if the 'rm' program in use doesn't match our expectations; the
4449# user can still override this though.
4450if rm -f && rm -fr && rm -rf; then : OK; else
4451  cat >&2 <<'END'
4452Oops!
4453
4454Your 'rm' program seems unable to run without file operands specified
4455on the command line, even when the '-f' option is present.  This is contrary
4456to the behaviour of most rm programs out there, and not conforming with
4457the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4458
4459Please tell bug-automake@gnu.org about your system, including the value
4460of your $PATH and any error possibly output before this message.  This
4461can help us improve future automake versions.
4462
4463END
4464  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4465    echo 'Configuration will proceed anyway, since you have set the' >&2
4466    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4467    echo >&2
4468  else
4469    cat >&2 <<'END'
4470Aborting the configuration process, to ensure you take notice of the issue.
4471
4472You can download and install GNU coreutils to get an 'rm' implementation
4473that behaves properly: <https://www.gnu.org/software/coreutils/>.
4474
4475If you want to complete the configuration process using your problematic
4476'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4477to "yes", and re-run configure.
4478
4479END
4480    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4481  fi
4482fi
4483
4484# Check whether --enable-silent-rules was given.
4485if test ${enable_silent_rules+y}
4486then :
4487  enableval=$enable_silent_rules;
4488fi
4489
4490case $enable_silent_rules in # (((
4491  yes) AM_DEFAULT_VERBOSITY=0;;
4492   no) AM_DEFAULT_VERBOSITY=1;;
4493    *) AM_DEFAULT_VERBOSITY=0;;
4494esac
4495am_make=${MAKE-make}
4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4497printf %s "checking whether $am_make supports nested variables... " >&6; }
4498if test ${am_cv_make_support_nested_variables+y}
4499then :
4500  printf %s "(cached) " >&6
4501else $as_nop
4502  if printf "%s\n" 'TRUE=$(BAR$(V))
4503BAR0=false
4504BAR1=true
4505V=1
4506am__doit:
4507	@$(TRUE)
4508.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4509  am_cv_make_support_nested_variables=yes
4510else
4511  am_cv_make_support_nested_variables=no
4512fi
4513fi
4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4515printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4516if test $am_cv_make_support_nested_variables = yes; then
4517    AM_V='$(V)'
4518  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4519else
4520  AM_V=$AM_DEFAULT_VERBOSITY
4521  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4522fi
4523AM_BACKSLASH='\'
4524
4525
4526ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541DEPDIR="${am__leading_dot}deps"
4542
4543ac_config_commands="$ac_config_commands depfiles"
4544
4545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4546printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4547cat > confinc.mk << 'END'
4548am__doit:
4549	@echo this is the am__doit target >confinc.out
4550.PHONY: am__doit
4551END
4552am__include="#"
4553am__quote=
4554# BSD make does it like this.
4555echo '.include "confinc.mk" # ignored' > confmf.BSD
4556# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4557echo 'include confinc.mk # ignored' > confmf.GNU
4558_am_result=no
4559for s in GNU BSD; do
4560  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4561   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }
4565  case $?:`cat confinc.out 2>/dev/null` in #(
4566  '0:this is the am__doit target') :
4567    case $s in #(
4568  BSD) :
4569    am__include='.include' am__quote='"' ;; #(
4570  *) :
4571    am__include='include' am__quote='' ;;
4572esac ;; #(
4573  *) :
4574     ;;
4575esac
4576  if test "$am__include" != "#"; then
4577    _am_result="yes ($s style)"
4578    break
4579  fi
4580done
4581rm -f confinc.* confmf.*
4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4583printf "%s\n" "${_am_result}" >&6; }
4584
4585# Check whether --enable-dependency-tracking was given.
4586if test ${enable_dependency_tracking+y}
4587then :
4588  enableval=$enable_dependency_tracking;
4589fi
4590
4591if test "x$enable_dependency_tracking" != xno; then
4592  am_depcomp="$ac_aux_dir/depcomp"
4593  AMDEPBACKSLASH='\'
4594  am__nodep='_no'
4595fi
4596 if test "x$enable_dependency_tracking" != xno; then
4597  AMDEP_TRUE=
4598  AMDEP_FALSE='#'
4599else
4600  AMDEP_TRUE='#'
4601  AMDEP_FALSE=
4602fi
4603
4604
4605ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610if test -n "$ac_tool_prefix"; then
4611  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}gcc; ac_word=$2
4613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614printf %s "checking for $ac_word... " >&6; }
4615if test ${ac_cv_prog_CC+y}
4616then :
4617  printf %s "(cached) " >&6
4618else $as_nop
4619  if test -n "$CC"; then
4620  ac_cv_prog_CC="$CC" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625  IFS=$as_save_IFS
4626  case $as_dir in #(((
4627    '') as_dir=./ ;;
4628    */) ;;
4629    *) as_dir=$as_dir/ ;;
4630  esac
4631    for ac_exec_ext in '' $ac_executable_extensions; do
4632  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4633    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638  done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643CC=$ac_cv_prog_CC
4644if test -n "$CC"; then
4645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646printf "%s\n" "$CC" >&6; }
4647else
4648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649printf "%s\n" "no" >&6; }
4650fi
4651
4652
4653fi
4654if test -z "$ac_cv_prog_CC"; then
4655  ac_ct_CC=$CC
4656  # Extract the first word of "gcc", so it can be a program name with args.
4657set dummy gcc; ac_word=$2
4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659printf %s "checking for $ac_word... " >&6; }
4660if test ${ac_cv_prog_ac_ct_CC+y}
4661then :
4662  printf %s "(cached) " >&6
4663else $as_nop
4664  if test -n "$ac_ct_CC"; then
4665  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  case $as_dir in #(((
4672    '') as_dir=./ ;;
4673    */) ;;
4674    *) as_dir=$as_dir/ ;;
4675  esac
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4678    ac_cv_prog_ac_ct_CC="gcc"
4679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683  done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688ac_ct_CC=$ac_cv_prog_ac_ct_CC
4689if test -n "$ac_ct_CC"; then
4690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4691printf "%s\n" "$ac_ct_CC" >&6; }
4692else
4693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694printf "%s\n" "no" >&6; }
4695fi
4696
4697  if test "x$ac_ct_CC" = x; then
4698    CC=""
4699  else
4700    case $cross_compiling:$ac_tool_warned in
4701yes:)
4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704ac_tool_warned=yes ;;
4705esac
4706    CC=$ac_ct_CC
4707  fi
4708else
4709  CC="$ac_cv_prog_CC"
4710fi
4711
4712if test -z "$CC"; then
4713          if test -n "$ac_tool_prefix"; then
4714    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4715set dummy ${ac_tool_prefix}cc; ac_word=$2
4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717printf %s "checking for $ac_word... " >&6; }
4718if test ${ac_cv_prog_CC+y}
4719then :
4720  printf %s "(cached) " >&6
4721else $as_nop
4722  if test -n "$CC"; then
4723  ac_cv_prog_CC="$CC" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  case $as_dir in #(((
4730    '') as_dir=./ ;;
4731    */) ;;
4732    *) as_dir=$as_dir/ ;;
4733  esac
4734    for ac_exec_ext in '' $ac_executable_extensions; do
4735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4736    ac_cv_prog_CC="${ac_tool_prefix}cc"
4737    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4738    break 2
4739  fi
4740done
4741  done
4742IFS=$as_save_IFS
4743
4744fi
4745fi
4746CC=$ac_cv_prog_CC
4747if test -n "$CC"; then
4748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4749printf "%s\n" "$CC" >&6; }
4750else
4751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752printf "%s\n" "no" >&6; }
4753fi
4754
4755
4756  fi
4757fi
4758if test -z "$CC"; then
4759  # Extract the first word of "cc", so it can be a program name with args.
4760set dummy cc; ac_word=$2
4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762printf %s "checking for $ac_word... " >&6; }
4763if test ${ac_cv_prog_CC+y}
4764then :
4765  printf %s "(cached) " >&6
4766else $as_nop
4767  if test -n "$CC"; then
4768  ac_cv_prog_CC="$CC" # Let the user override the test.
4769else
4770  ac_prog_rejected=no
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  case $as_dir in #(((
4776    '') as_dir=./ ;;
4777    */) ;;
4778    *) as_dir=$as_dir/ ;;
4779  esac
4780    for ac_exec_ext in '' $ac_executable_extensions; do
4781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4782    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4783       ac_prog_rejected=yes
4784       continue
4785     fi
4786    ac_cv_prog_CC="cc"
4787    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4788    break 2
4789  fi
4790done
4791  done
4792IFS=$as_save_IFS
4793
4794if test $ac_prog_rejected = yes; then
4795  # We found a bogon in the path, so make sure we never use it.
4796  set dummy $ac_cv_prog_CC
4797  shift
4798  if test $# != 0; then
4799    # We chose a different compiler from the bogus one.
4800    # However, it has the same basename, so the bogon will be chosen
4801    # first if we set CC to just the basename; use the full file name.
4802    shift
4803    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4804  fi
4805fi
4806fi
4807fi
4808CC=$ac_cv_prog_CC
4809if test -n "$CC"; then
4810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4811printf "%s\n" "$CC" >&6; }
4812else
4813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814printf "%s\n" "no" >&6; }
4815fi
4816
4817
4818fi
4819if test -z "$CC"; then
4820  if test -n "$ac_tool_prefix"; then
4821  for ac_prog in cl.exe
4822  do
4823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826printf %s "checking for $ac_word... " >&6; }
4827if test ${ac_cv_prog_CC+y}
4828then :
4829  printf %s "(cached) " >&6
4830else $as_nop
4831  if test -n "$CC"; then
4832  ac_cv_prog_CC="$CC" # Let the user override the test.
4833else
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837  IFS=$as_save_IFS
4838  case $as_dir in #(((
4839    '') as_dir=./ ;;
4840    */) ;;
4841    *) as_dir=$as_dir/ ;;
4842  esac
4843    for ac_exec_ext in '' $ac_executable_extensions; do
4844  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4845    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4847    break 2
4848  fi
4849done
4850  done
4851IFS=$as_save_IFS
4852
4853fi
4854fi
4855CC=$ac_cv_prog_CC
4856if test -n "$CC"; then
4857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4858printf "%s\n" "$CC" >&6; }
4859else
4860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861printf "%s\n" "no" >&6; }
4862fi
4863
4864
4865    test -n "$CC" && break
4866  done
4867fi
4868if test -z "$CC"; then
4869  ac_ct_CC=$CC
4870  for ac_prog in cl.exe
4871do
4872  # Extract the first word of "$ac_prog", so it can be a program name with args.
4873set dummy $ac_prog; ac_word=$2
4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875printf %s "checking for $ac_word... " >&6; }
4876if test ${ac_cv_prog_ac_ct_CC+y}
4877then :
4878  printf %s "(cached) " >&6
4879else $as_nop
4880  if test -n "$ac_ct_CC"; then
4881  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886  IFS=$as_save_IFS
4887  case $as_dir in #(((
4888    '') as_dir=./ ;;
4889    */) ;;
4890    *) as_dir=$as_dir/ ;;
4891  esac
4892    for ac_exec_ext in '' $ac_executable_extensions; do
4893  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4894    ac_cv_prog_ac_ct_CC="$ac_prog"
4895    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4896    break 2
4897  fi
4898done
4899  done
4900IFS=$as_save_IFS
4901
4902fi
4903fi
4904ac_ct_CC=$ac_cv_prog_ac_ct_CC
4905if test -n "$ac_ct_CC"; then
4906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4907printf "%s\n" "$ac_ct_CC" >&6; }
4908else
4909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910printf "%s\n" "no" >&6; }
4911fi
4912
4913
4914  test -n "$ac_ct_CC" && break
4915done
4916
4917  if test "x$ac_ct_CC" = x; then
4918    CC=""
4919  else
4920    case $cross_compiling:$ac_tool_warned in
4921yes:)
4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4924ac_tool_warned=yes ;;
4925esac
4926    CC=$ac_ct_CC
4927  fi
4928fi
4929
4930fi
4931if test -z "$CC"; then
4932  if test -n "$ac_tool_prefix"; then
4933  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4934set dummy ${ac_tool_prefix}clang; ac_word=$2
4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936printf %s "checking for $ac_word... " >&6; }
4937if test ${ac_cv_prog_CC+y}
4938then :
4939  printf %s "(cached) " >&6
4940else $as_nop
4941  if test -n "$CC"; then
4942  ac_cv_prog_CC="$CC" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947  IFS=$as_save_IFS
4948  case $as_dir in #(((
4949    '') as_dir=./ ;;
4950    */) ;;
4951    *) as_dir=$as_dir/ ;;
4952  esac
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4955    ac_cv_prog_CC="${ac_tool_prefix}clang"
4956    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960  done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965CC=$ac_cv_prog_CC
4966if test -n "$CC"; then
4967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4968printf "%s\n" "$CC" >&6; }
4969else
4970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971printf "%s\n" "no" >&6; }
4972fi
4973
4974
4975fi
4976if test -z "$ac_cv_prog_CC"; then
4977  ac_ct_CC=$CC
4978  # Extract the first word of "clang", so it can be a program name with args.
4979set dummy clang; ac_word=$2
4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981printf %s "checking for $ac_word... " >&6; }
4982if test ${ac_cv_prog_ac_ct_CC+y}
4983then :
4984  printf %s "(cached) " >&6
4985else $as_nop
4986  if test -n "$ac_ct_CC"; then
4987  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992  IFS=$as_save_IFS
4993  case $as_dir in #(((
4994    '') as_dir=./ ;;
4995    */) ;;
4996    *) as_dir=$as_dir/ ;;
4997  esac
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_ac_ct_CC="clang"
5001    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010ac_ct_CC=$ac_cv_prog_ac_ct_CC
5011if test -n "$ac_ct_CC"; then
5012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5013printf "%s\n" "$ac_ct_CC" >&6; }
5014else
5015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016printf "%s\n" "no" >&6; }
5017fi
5018
5019  if test "x$ac_ct_CC" = x; then
5020    CC=""
5021  else
5022    case $cross_compiling:$ac_tool_warned in
5023yes:)
5024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026ac_tool_warned=yes ;;
5027esac
5028    CC=$ac_ct_CC
5029  fi
5030else
5031  CC="$ac_cv_prog_CC"
5032fi
5033
5034fi
5035
5036
5037test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5038printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5039as_fn_error $? "no acceptable C compiler found in \$PATH
5040See \`config.log' for more details" "$LINENO" 5; }
5041
5042# Provide some information about the compiler.
5043printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5044set X $ac_compile
5045ac_compiler=$2
5046for ac_option in --version -v -V -qversion -version; do
5047  { { ac_try="$ac_compiler $ac_option >&5"
5048case "(($ac_try" in
5049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050  *) ac_try_echo=$ac_try;;
5051esac
5052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5053printf "%s\n" "$ac_try_echo"; } >&5
5054  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5055  ac_status=$?
5056  if test -s conftest.err; then
5057    sed '10a\
5058... rest of stderr output deleted ...
5059         10q' conftest.err >conftest.er1
5060    cat conftest.er1 >&5
5061  fi
5062  rm -f conftest.er1 conftest.err
5063  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064  test $ac_status = 0; }
5065done
5066
5067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069
5070int
5071main (void)
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078ac_clean_files_save=$ac_clean_files
5079ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5080# Try to create an executable without -o first, disregard a.out.
5081# It will help us diagnose broken compilers, and finding out an intuition
5082# of exeext.
5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5084printf %s "checking whether the C compiler works... " >&6; }
5085ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5086
5087# The possible output files:
5088ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5089
5090ac_rmfiles=
5091for ac_file in $ac_files
5092do
5093  case $ac_file in
5094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5095    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5096  esac
5097done
5098rm -f $ac_rmfiles
5099
5100if { { ac_try="$ac_link_default"
5101case "(($ac_try" in
5102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103  *) ac_try_echo=$ac_try;;
5104esac
5105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106printf "%s\n" "$ac_try_echo"; } >&5
5107  (eval "$ac_link_default") 2>&5
5108  ac_status=$?
5109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110  test $ac_status = 0; }
5111then :
5112  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5113# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5114# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5115# so that the user can short-circuit this test for compilers unknown to
5116# Autoconf.
5117for ac_file in $ac_files ''
5118do
5119  test -f "$ac_file" || continue
5120  case $ac_file in
5121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5122	;;
5123    [ab].out )
5124	# We found the default executable, but exeext='' is most
5125	# certainly right.
5126	break;;
5127    *.* )
5128	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5129	then :; else
5130	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5131	fi
5132	# We set ac_cv_exeext here because the later test for it is not
5133	# safe: cross compilers may not add the suffix if given an `-o'
5134	# argument, so we may need to know it at that point already.
5135	# Even if this section looks crufty: it has the advantage of
5136	# actually working.
5137	break;;
5138    * )
5139	break;;
5140  esac
5141done
5142test "$ac_cv_exeext" = no && ac_cv_exeext=
5143
5144else $as_nop
5145  ac_file=''
5146fi
5147if test -z "$ac_file"
5148then :
5149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150printf "%s\n" "no" >&6; }
5151printf "%s\n" "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5155printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5156as_fn_error 77 "C compiler cannot create executables
5157See \`config.log' for more details" "$LINENO" 5; }
5158else $as_nop
5159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160printf "%s\n" "yes" >&6; }
5161fi
5162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5163printf %s "checking for C compiler default output file name... " >&6; }
5164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5165printf "%s\n" "$ac_file" >&6; }
5166ac_exeext=$ac_cv_exeext
5167
5168rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5169ac_clean_files=$ac_clean_files_save
5170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5171printf %s "checking for suffix of executables... " >&6; }
5172if { { ac_try="$ac_link"
5173case "(($ac_try" in
5174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175  *) ac_try_echo=$ac_try;;
5176esac
5177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178printf "%s\n" "$ac_try_echo"; } >&5
5179  (eval "$ac_link") 2>&5
5180  ac_status=$?
5181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182  test $ac_status = 0; }
5183then :
5184  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5185# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5186# work properly (i.e., refer to `conftest.exe'), while it won't with
5187# `rm'.
5188for ac_file in conftest.exe conftest conftest.*; do
5189  test -f "$ac_file" || continue
5190  case $ac_file in
5191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5192    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5193	  break;;
5194    * ) break;;
5195  esac
5196done
5197else $as_nop
5198  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5199printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5200as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5201See \`config.log' for more details" "$LINENO" 5; }
5202fi
5203rm -f conftest conftest$ac_cv_exeext
5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5205printf "%s\n" "$ac_cv_exeext" >&6; }
5206
5207rm -f conftest.$ac_ext
5208EXEEXT=$ac_cv_exeext
5209ac_exeext=$EXEEXT
5210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212#include <stdio.h>
5213int
5214main (void)
5215{
5216FILE *f = fopen ("conftest.out", "w");
5217 return ferror (f) || fclose (f) != 0;
5218
5219  ;
5220  return 0;
5221}
5222_ACEOF
5223ac_clean_files="$ac_clean_files conftest.out"
5224# Check that the compiler produces executables we can run.  If not, either
5225# the compiler is broken, or we cross compile.
5226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5227printf %s "checking whether we are cross compiling... " >&6; }
5228if test "$cross_compiling" != yes; then
5229  { { ac_try="$ac_link"
5230case "(($ac_try" in
5231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232  *) ac_try_echo=$ac_try;;
5233esac
5234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5235printf "%s\n" "$ac_try_echo"; } >&5
5236  (eval "$ac_link") 2>&5
5237  ac_status=$?
5238  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5239  test $ac_status = 0; }
5240  if { ac_try='./conftest$ac_cv_exeext'
5241  { { case "(($ac_try" in
5242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243  *) ac_try_echo=$ac_try;;
5244esac
5245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5246printf "%s\n" "$ac_try_echo"; } >&5
5247  (eval "$ac_try") 2>&5
5248  ac_status=$?
5249  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5250  test $ac_status = 0; }; }; then
5251    cross_compiling=no
5252  else
5253    if test "$cross_compiling" = maybe; then
5254	cross_compiling=yes
5255    else
5256	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5257printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5258as_fn_error 77 "cannot run C compiled programs.
5259If you meant to cross compile, use \`--host'.
5260See \`config.log' for more details" "$LINENO" 5; }
5261    fi
5262  fi
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5265printf "%s\n" "$cross_compiling" >&6; }
5266
5267rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5268ac_clean_files=$ac_clean_files_save
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5270printf %s "checking for suffix of object files... " >&6; }
5271if test ${ac_cv_objext+y}
5272then :
5273  printf %s "(cached) " >&6
5274else $as_nop
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277
5278int
5279main (void)
5280{
5281
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286rm -f conftest.o conftest.obj
5287if { { ac_try="$ac_compile"
5288case "(($ac_try" in
5289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290  *) ac_try_echo=$ac_try;;
5291esac
5292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5293printf "%s\n" "$ac_try_echo"; } >&5
5294  (eval "$ac_compile") 2>&5
5295  ac_status=$?
5296  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297  test $ac_status = 0; }
5298then :
5299  for ac_file in conftest.o conftest.obj conftest.*; do
5300  test -f "$ac_file" || continue;
5301  case $ac_file in
5302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5303    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5304       break;;
5305  esac
5306done
5307else $as_nop
5308  printf "%s\n" "$as_me: failed program was:" >&5
5309sed 's/^/| /' conftest.$ac_ext >&5
5310
5311{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5313as_fn_error $? "cannot compute suffix of object files: cannot compile
5314See \`config.log' for more details" "$LINENO" 5; }
5315fi
5316rm -f conftest.$ac_cv_objext conftest.$ac_ext
5317fi
5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5319printf "%s\n" "$ac_cv_objext" >&6; }
5320OBJEXT=$ac_cv_objext
5321ac_objext=$OBJEXT
5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5323printf %s "checking whether the compiler supports GNU C... " >&6; }
5324if test ${ac_cv_c_compiler_gnu+y}
5325then :
5326  printf %s "(cached) " >&6
5327else $as_nop
5328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329/* end confdefs.h.  */
5330
5331int
5332main (void)
5333{
5334#ifndef __GNUC__
5335       choke me
5336#endif
5337
5338  ;
5339  return 0;
5340}
5341_ACEOF
5342if ac_fn_c_try_compile "$LINENO"
5343then :
5344  ac_compiler_gnu=yes
5345else $as_nop
5346  ac_compiler_gnu=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5349ac_cv_c_compiler_gnu=$ac_compiler_gnu
5350
5351fi
5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5353printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356if test $ac_compiler_gnu = yes; then
5357  GCC=yes
5358else
5359  GCC=
5360fi
5361ac_test_CFLAGS=${CFLAGS+y}
5362ac_save_CFLAGS=$CFLAGS
5363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5364printf %s "checking whether $CC accepts -g... " >&6; }
5365if test ${ac_cv_prog_cc_g+y}
5366then :
5367  printf %s "(cached) " >&6
5368else $as_nop
5369  ac_save_c_werror_flag=$ac_c_werror_flag
5370   ac_c_werror_flag=yes
5371   ac_cv_prog_cc_g=no
5372   CFLAGS="-g"
5373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375
5376int
5377main (void)
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_compile "$LINENO"
5385then :
5386  ac_cv_prog_cc_g=yes
5387else $as_nop
5388  CFLAGS=""
5389      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391
5392int
5393main (void)
5394{
5395
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400if ac_fn_c_try_compile "$LINENO"
5401then :
5402
5403else $as_nop
5404  ac_c_werror_flag=$ac_save_c_werror_flag
5405	 CFLAGS="-g"
5406	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408
5409int
5410main (void)
5411{
5412
5413  ;
5414  return 0;
5415}
5416_ACEOF
5417if ac_fn_c_try_compile "$LINENO"
5418then :
5419  ac_cv_prog_cc_g=yes
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5422fi
5423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426   ac_c_werror_flag=$ac_save_c_werror_flag
5427fi
5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5429printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5430if test $ac_test_CFLAGS; then
5431  CFLAGS=$ac_save_CFLAGS
5432elif test $ac_cv_prog_cc_g = yes; then
5433  if test "$GCC" = yes; then
5434    CFLAGS="-g -O2"
5435  else
5436    CFLAGS="-g"
5437  fi
5438else
5439  if test "$GCC" = yes; then
5440    CFLAGS="-O2"
5441  else
5442    CFLAGS=
5443  fi
5444fi
5445ac_prog_cc_stdc=no
5446if test x$ac_prog_cc_stdc = xno
5447then :
5448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5449printf %s "checking for $CC option to enable C11 features... " >&6; }
5450if test ${ac_cv_prog_cc_c11+y}
5451then :
5452  printf %s "(cached) " >&6
5453else $as_nop
5454  ac_cv_prog_cc_c11=no
5455ac_save_CC=$CC
5456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458$ac_c_conftest_c11_program
5459_ACEOF
5460for ac_arg in '' -std=gnu11
5461do
5462  CC="$ac_save_CC $ac_arg"
5463  if ac_fn_c_try_compile "$LINENO"
5464then :
5465  ac_cv_prog_cc_c11=$ac_arg
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.beam
5468  test "x$ac_cv_prog_cc_c11" != "xno" && break
5469done
5470rm -f conftest.$ac_ext
5471CC=$ac_save_CC
5472fi
5473
5474if test "x$ac_cv_prog_cc_c11" = xno
5475then :
5476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5477printf "%s\n" "unsupported" >&6; }
5478else $as_nop
5479  if test "x$ac_cv_prog_cc_c11" = x
5480then :
5481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5482printf "%s\n" "none needed" >&6; }
5483else $as_nop
5484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5485printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5486     CC="$CC $ac_cv_prog_cc_c11"
5487fi
5488  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5489  ac_prog_cc_stdc=c11
5490fi
5491fi
5492if test x$ac_prog_cc_stdc = xno
5493then :
5494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5495printf %s "checking for $CC option to enable C99 features... " >&6; }
5496if test ${ac_cv_prog_cc_c99+y}
5497then :
5498  printf %s "(cached) " >&6
5499else $as_nop
5500  ac_cv_prog_cc_c99=no
5501ac_save_CC=$CC
5502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504$ac_c_conftest_c99_program
5505_ACEOF
5506for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5507do
5508  CC="$ac_save_CC $ac_arg"
5509  if ac_fn_c_try_compile "$LINENO"
5510then :
5511  ac_cv_prog_cc_c99=$ac_arg
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.beam
5514  test "x$ac_cv_prog_cc_c99" != "xno" && break
5515done
5516rm -f conftest.$ac_ext
5517CC=$ac_save_CC
5518fi
5519
5520if test "x$ac_cv_prog_cc_c99" = xno
5521then :
5522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5523printf "%s\n" "unsupported" >&6; }
5524else $as_nop
5525  if test "x$ac_cv_prog_cc_c99" = x
5526then :
5527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5528printf "%s\n" "none needed" >&6; }
5529else $as_nop
5530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5531printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5532     CC="$CC $ac_cv_prog_cc_c99"
5533fi
5534  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5535  ac_prog_cc_stdc=c99
5536fi
5537fi
5538if test x$ac_prog_cc_stdc = xno
5539then :
5540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5541printf %s "checking for $CC option to enable C89 features... " >&6; }
5542if test ${ac_cv_prog_cc_c89+y}
5543then :
5544  printf %s "(cached) " >&6
5545else $as_nop
5546  ac_cv_prog_cc_c89=no
5547ac_save_CC=$CC
5548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550$ac_c_conftest_c89_program
5551_ACEOF
5552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5553do
5554  CC="$ac_save_CC $ac_arg"
5555  if ac_fn_c_try_compile "$LINENO"
5556then :
5557  ac_cv_prog_cc_c89=$ac_arg
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.beam
5560  test "x$ac_cv_prog_cc_c89" != "xno" && break
5561done
5562rm -f conftest.$ac_ext
5563CC=$ac_save_CC
5564fi
5565
5566if test "x$ac_cv_prog_cc_c89" = xno
5567then :
5568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5569printf "%s\n" "unsupported" >&6; }
5570else $as_nop
5571  if test "x$ac_cv_prog_cc_c89" = x
5572then :
5573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5574printf "%s\n" "none needed" >&6; }
5575else $as_nop
5576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5577printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5578     CC="$CC $ac_cv_prog_cc_c89"
5579fi
5580  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5581  ac_prog_cc_stdc=c89
5582fi
5583fi
5584
5585ac_ext=c
5586ac_cpp='$CPP $CPPFLAGS'
5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
5591
5592  ac_ext=c
5593ac_cpp='$CPP $CPPFLAGS'
5594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596ac_compiler_gnu=$ac_cv_c_compiler_gnu
5597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5598printf %s "checking whether $CC understands -c and -o together... " >&6; }
5599if test ${am_cv_prog_cc_c_o+y}
5600then :
5601  printf %s "(cached) " >&6
5602else $as_nop
5603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605
5606int
5607main (void)
5608{
5609
5610  ;
5611  return 0;
5612}
5613_ACEOF
5614  # Make sure it works both with $CC and with simple cc.
5615  # Following AC_PROG_CC_C_O, we do the test twice because some
5616  # compilers refuse to overwrite an existing .o file with -o,
5617  # though they will create one.
5618  am_cv_prog_cc_c_o=yes
5619  for am_i in 1 2; do
5620    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5621   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } \
5625         && test -f conftest2.$ac_objext; then
5626      : OK
5627    else
5628      am_cv_prog_cc_c_o=no
5629      break
5630    fi
5631  done
5632  rm -f core conftest*
5633  unset am_i
5634fi
5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5636printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5637if test "$am_cv_prog_cc_c_o" != yes; then
5638   # Losing compiler, so override with the script.
5639   # FIXME: It is wrong to rewrite CC.
5640   # But if we don't then we get into trouble of one sort or another.
5641   # A longer-term fix would be to have automake use am__CC in this case,
5642   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5643   CC="$am_aux_dir/compile $CC"
5644fi
5645ac_ext=c
5646ac_cpp='$CPP $CPPFLAGS'
5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651
5652depcc="$CC"   am_compiler_list=
5653
5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5655printf %s "checking dependency style of $depcc... " >&6; }
5656if test ${am_cv_CC_dependencies_compiler_type+y}
5657then :
5658  printf %s "(cached) " >&6
5659else $as_nop
5660  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5661  # We make a subdir and do the tests there.  Otherwise we can end up
5662  # making bogus files that we don't know about and never remove.  For
5663  # instance it was reported that on HP-UX the gcc test will end up
5664  # making a dummy file named 'D' -- because '-MD' means "put the output
5665  # in D".
5666  rm -rf conftest.dir
5667  mkdir conftest.dir
5668  # Copy depcomp to subdir because otherwise we won't find it if we're
5669  # using a relative directory.
5670  cp "$am_depcomp" conftest.dir
5671  cd conftest.dir
5672  # We will build objects and dependencies in a subdirectory because
5673  # it helps to detect inapplicable dependency modes.  For instance
5674  # both Tru64's cc and ICC support -MD to output dependencies as a
5675  # side effect of compilation, but ICC will put the dependencies in
5676  # the current directory while Tru64 will put them in the object
5677  # directory.
5678  mkdir sub
5679
5680  am_cv_CC_dependencies_compiler_type=none
5681  if test "$am_compiler_list" = ""; then
5682     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5683  fi
5684  am__universal=false
5685  case " $depcc " in #(
5686     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5687     esac
5688
5689  for depmode in $am_compiler_list; do
5690    # Setup a source with many dependencies, because some compilers
5691    # like to wrap large dependency lists on column 80 (with \), and
5692    # we should not choose a depcomp mode which is confused by this.
5693    #
5694    # We need to recreate these files for each test, as the compiler may
5695    # overwrite some of them when testing with obscure command lines.
5696    # This happens at least with the AIX C compiler.
5697    : > sub/conftest.c
5698    for i in 1 2 3 4 5 6; do
5699      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5700      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5701      # Solaris 10 /bin/sh.
5702      echo '/* dummy */' > sub/conftst$i.h
5703    done
5704    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5705
5706    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5707    # mode.  It turns out that the SunPro C++ compiler does not properly
5708    # handle '-M -o', and we need to detect this.  Also, some Intel
5709    # versions had trouble with output in subdirs.
5710    am__obj=sub/conftest.${OBJEXT-o}
5711    am__minus_obj="-o $am__obj"
5712    case $depmode in
5713    gcc)
5714      # This depmode causes a compiler race in universal mode.
5715      test "$am__universal" = false || continue
5716      ;;
5717    nosideeffect)
5718      # After this tag, mechanisms are not by side-effect, so they'll
5719      # only be used when explicitly requested.
5720      if test "x$enable_dependency_tracking" = xyes; then
5721	continue
5722      else
5723	break
5724      fi
5725      ;;
5726    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5727      # This compiler won't grok '-c -o', but also, the minuso test has
5728      # not run yet.  These depmodes are late enough in the game, and
5729      # so weak that their functioning should not be impacted.
5730      am__obj=conftest.${OBJEXT-o}
5731      am__minus_obj=
5732      ;;
5733    none) break ;;
5734    esac
5735    if depmode=$depmode \
5736       source=sub/conftest.c object=$am__obj \
5737       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5738       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5739         >/dev/null 2>conftest.err &&
5740       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5741       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5742       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5743       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5744      # icc doesn't choke on unknown options, it will just issue warnings
5745      # or remarks (even with -Werror).  So we grep stderr for any message
5746      # that says an option was ignored or not supported.
5747      # When given -MP, icc 7.0 and 7.1 complain thusly:
5748      #   icc: Command line warning: ignoring option '-M'; no argument required
5749      # The diagnosis changed in icc 8.0:
5750      #   icc: Command line remark: option '-MP' not supported
5751      if (grep 'ignoring option' conftest.err ||
5752          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5753        am_cv_CC_dependencies_compiler_type=$depmode
5754        break
5755      fi
5756    fi
5757  done
5758
5759  cd ..
5760  rm -rf conftest.dir
5761else
5762  am_cv_CC_dependencies_compiler_type=none
5763fi
5764
5765fi
5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5767printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5768CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5769
5770 if
5771  test "x$enable_dependency_tracking" != xno \
5772  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5773  am__fastdepCC_TRUE=
5774  am__fastdepCC_FALSE='#'
5775else
5776  am__fastdepCC_TRUE='#'
5777  am__fastdepCC_FALSE=
5778fi
5779
5780
5781
5782ac_header= ac_cache=
5783for ac_item in $ac_header_c_list
5784do
5785  if test $ac_cache; then
5786    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5787    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5788      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5789    fi
5790    ac_header= ac_cache=
5791  elif test $ac_header; then
5792    ac_cache=$ac_item
5793  else
5794    ac_header=$ac_item
5795  fi
5796done
5797
5798
5799
5800
5801
5802
5803
5804
5805if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5806then :
5807
5808printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5809
5810fi
5811
5812
5813
5814
5815
5816
5817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5818printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5819if test ${ac_cv_safe_to_define___extensions__+y}
5820then :
5821  printf %s "(cached) " >&6
5822else $as_nop
5823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h.  */
5825
5826#         define __EXTENSIONS__ 1
5827          $ac_includes_default
5828int
5829main (void)
5830{
5831
5832  ;
5833  return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"
5837then :
5838  ac_cv_safe_to_define___extensions__=yes
5839else $as_nop
5840  ac_cv_safe_to_define___extensions__=no
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5843fi
5844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5845printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5846
5847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5848printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5849if test ${ac_cv_should_define__xopen_source+y}
5850then :
5851  printf %s "(cached) " >&6
5852else $as_nop
5853  ac_cv_should_define__xopen_source=no
5854    if test $ac_cv_header_wchar_h = yes
5855then :
5856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h.  */
5858
5859          #include <wchar.h>
5860          mbstate_t x;
5861int
5862main (void)
5863{
5864
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"
5870then :
5871
5872else $as_nop
5873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875
5876            #define _XOPEN_SOURCE 500
5877            #include <wchar.h>
5878            mbstate_t x;
5879int
5880main (void)
5881{
5882
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"
5888then :
5889  ac_cv_should_define__xopen_source=yes
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5894fi
5895fi
5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5897printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5898
5899  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5900
5901  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5902
5903  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5904
5905  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5906
5907  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5908
5909  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5910
5911  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5912
5913  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5914
5915  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5916
5917  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5918
5919  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5920
5921  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5922
5923  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5924
5925  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5926
5927  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5928
5929  if test $ac_cv_header_minix_config_h = yes
5930then :
5931  MINIX=yes
5932    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5933
5934    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5935
5936    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5937
5938else $as_nop
5939  MINIX=
5940fi
5941  if test $ac_cv_safe_to_define___extensions__ = yes
5942then :
5943  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5944
5945fi
5946  if test $ac_cv_should_define__xopen_source = yes
5947then :
5948  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5949
5950fi
5951
5952
5953####################################################################
5954# Setup the configure-results header file
5955####################################################################
5956
5957
5958
5959
5960####################################################################
5961# Setup Libtool
5962####################################################################
5963
5964# We want new Libtool.  None of that old stuff.  Pfft.
5965
5966
5967
5968# Setup libtool, but disable F77, Java and Windows Resource
5969# Compiler support -- we don't need that stuff.
5970# Check whether --enable-shared was given.
5971if test ${enable_shared+y}
5972then :
5973  enableval=$enable_shared; p=${PACKAGE-default}
5974    case $enableval in
5975    yes) enable_shared=yes ;;
5976    no) enable_shared=no ;;
5977    *)
5978      enable_shared=no
5979      # Look at the argument we got.  We use all the common list separators.
5980      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5981      for pkg in $enableval; do
5982	IFS=$lt_save_ifs
5983	if test "X$pkg" = "X$p"; then
5984	  enable_shared=yes
5985	fi
5986      done
5987      IFS=$lt_save_ifs
5988      ;;
5989    esac
5990else $as_nop
5991  enable_shared=yes
5992fi
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002# Check whether --enable-static was given.
6003if test ${enable_static+y}
6004then :
6005  enableval=$enable_static; p=${PACKAGE-default}
6006    case $enableval in
6007    yes) enable_static=yes ;;
6008    no) enable_static=no ;;
6009    *)
6010     enable_static=no
6011      # Look at the argument we got.  We use all the common list separators.
6012      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6013      for pkg in $enableval; do
6014	IFS=$lt_save_ifs
6015	if test "X$pkg" = "X$p"; then
6016	  enable_static=yes
6017	fi
6018      done
6019      IFS=$lt_save_ifs
6020      ;;
6021    esac
6022else $as_nop
6023  enable_static=no
6024fi
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035# This did not exist pre AM 1.11.x (where x is somewhere >0 and <3),
6036# but it is necessary in AM 1.12.x.
6037
6038  if test -n "$ac_tool_prefix"; then
6039  for ac_prog in ar lib "link -lib"
6040  do
6041    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044printf %s "checking for $ac_word... " >&6; }
6045if test ${ac_cv_prog_AR+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  if test -n "$AR"; then
6050  ac_cv_prog_AR="$AR" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  case $as_dir in #(((
6057    '') as_dir=./ ;;
6058    */) ;;
6059    *) as_dir=$as_dir/ ;;
6060  esac
6061    for ac_exec_ext in '' $ac_executable_extensions; do
6062  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6063    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6064    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6065    break 2
6066  fi
6067done
6068  done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073AR=$ac_cv_prog_AR
6074if test -n "$AR"; then
6075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076printf "%s\n" "$AR" >&6; }
6077else
6078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079printf "%s\n" "no" >&6; }
6080fi
6081
6082
6083    test -n "$AR" && break
6084  done
6085fi
6086if test -z "$AR"; then
6087  ac_ct_AR=$AR
6088  for ac_prog in ar lib "link -lib"
6089do
6090  # Extract the first word of "$ac_prog", so it can be a program name with args.
6091set dummy $ac_prog; ac_word=$2
6092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093printf %s "checking for $ac_word... " >&6; }
6094if test ${ac_cv_prog_ac_ct_AR+y}
6095then :
6096  printf %s "(cached) " >&6
6097else $as_nop
6098  if test -n "$ac_ct_AR"; then
6099  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  case $as_dir in #(((
6106    '') as_dir=./ ;;
6107    */) ;;
6108    *) as_dir=$as_dir/ ;;
6109  esac
6110    for ac_exec_ext in '' $ac_executable_extensions; do
6111  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112    ac_cv_prog_ac_ct_AR="$ac_prog"
6113    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114    break 2
6115  fi
6116done
6117  done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122ac_ct_AR=$ac_cv_prog_ac_ct_AR
6123if test -n "$ac_ct_AR"; then
6124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6125printf "%s\n" "$ac_ct_AR" >&6; }
6126else
6127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128printf "%s\n" "no" >&6; }
6129fi
6130
6131
6132  test -n "$ac_ct_AR" && break
6133done
6134
6135  if test "x$ac_ct_AR" = x; then
6136    AR="false"
6137  else
6138    case $cross_compiling:$ac_tool_warned in
6139yes:)
6140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142ac_tool_warned=yes ;;
6143esac
6144    AR=$ac_ct_AR
6145  fi
6146fi
6147
6148: ${AR=ar}
6149
6150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6151printf %s "checking the archiver ($AR) interface... " >&6; }
6152if test ${am_cv_ar_interface+y}
6153then :
6154  printf %s "(cached) " >&6
6155else $as_nop
6156  ac_ext=c
6157ac_cpp='$CPP $CPPFLAGS'
6158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162   am_cv_ar_interface=ar
6163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165int some_variable = 0;
6166_ACEOF
6167if ac_fn_c_try_compile "$LINENO"
6168then :
6169  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6170      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6171  (eval $am_ar_try) 2>&5
6172  ac_status=$?
6173  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174  test $ac_status = 0; }
6175      if test "$ac_status" -eq 0; then
6176        am_cv_ar_interface=ar
6177      else
6178        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6179        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6180  (eval $am_ar_try) 2>&5
6181  ac_status=$?
6182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183  test $ac_status = 0; }
6184        if test "$ac_status" -eq 0; then
6185          am_cv_ar_interface=lib
6186        else
6187          am_cv_ar_interface=unknown
6188        fi
6189      fi
6190      rm -f conftest.lib libconftest.a
6191
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6194   ac_ext=c
6195ac_cpp='$CPP $CPPFLAGS'
6196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199
6200fi
6201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6202printf "%s\n" "$am_cv_ar_interface" >&6; }
6203
6204case $am_cv_ar_interface in
6205ar)
6206  ;;
6207lib)
6208  # Microsoft lib, so override with the ar-lib wrapper script.
6209  # FIXME: It is wrong to rewrite AR.
6210  # But if we don't then we get into trouble of one sort or another.
6211  # A longer-term fix would be to have automake use am__AR in this case,
6212  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6213  # similar.
6214  AR="$am_aux_dir/ar-lib $AR"
6215  ;;
6216unknown)
6217  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6218  ;;
6219esac
6220
6221
6222case `pwd` in
6223  *\ * | *\	*)
6224    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6225printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6226esac
6227
6228
6229
6230macro_version='2.4.6'
6231macro_revision='2.4.6'
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246ltmain=$ac_aux_dir/ltmain.sh
6247
6248# Backslashify metacharacters that are still active within
6249# double-quoted strings.
6250sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6251
6252# Same as above, but do not quote variable references.
6253double_quote_subst='s/\(["`\\]\)/\\\1/g'
6254
6255# Sed substitution to delay expansion of an escaped shell variable in a
6256# double_quote_subst'ed string.
6257delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6258
6259# Sed substitution to delay expansion of an escaped single quote.
6260delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6261
6262# Sed substitution to avoid accidental globbing in evaled expressions
6263no_glob_subst='s/\*/\\\*/g'
6264
6265ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6266ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6267ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6268
6269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6270printf %s "checking how to print strings... " >&6; }
6271# Test print first, because it will be a builtin if present.
6272if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6273   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6274  ECHO='print -r --'
6275elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6276  ECHO='printf %s\n'
6277else
6278  # Use this function as a fallback that always works.
6279  func_fallback_echo ()
6280  {
6281    eval 'cat <<_LTECHO_EOF
6282$1
6283_LTECHO_EOF'
6284  }
6285  ECHO='func_fallback_echo'
6286fi
6287
6288# func_echo_all arg...
6289# Invoke $ECHO with all args, space-separated.
6290func_echo_all ()
6291{
6292    $ECHO ""
6293}
6294
6295case $ECHO in
6296  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6297printf "%s\n" "printf" >&6; } ;;
6298  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6299printf "%s\n" "print -r" >&6; } ;;
6300  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6301printf "%s\n" "cat" >&6; } ;;
6302esac
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6318printf %s "checking for a sed that does not truncate output... " >&6; }
6319if test ${ac_cv_path_SED+y}
6320then :
6321  printf %s "(cached) " >&6
6322else $as_nop
6323            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6324     for ac_i in 1 2 3 4 5 6 7; do
6325       ac_script="$ac_script$as_nl$ac_script"
6326     done
6327     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6328     { ac_script=; unset ac_script;}
6329     if test -z "$SED"; then
6330  ac_path_SED_found=false
6331  # Loop through the user's path and test for each of PROGNAME-LIST
6332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335  IFS=$as_save_IFS
6336  case $as_dir in #(((
6337    '') as_dir=./ ;;
6338    */) ;;
6339    *) as_dir=$as_dir/ ;;
6340  esac
6341    for ac_prog in sed gsed
6342   do
6343    for ac_exec_ext in '' $ac_executable_extensions; do
6344      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6345      as_fn_executable_p "$ac_path_SED" || continue
6346# Check for GNU ac_path_SED and select it if it is found.
6347  # Check for GNU $ac_path_SED
6348case `"$ac_path_SED" --version 2>&1` in
6349*GNU*)
6350  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6351*)
6352  ac_count=0
6353  printf %s 0123456789 >"conftest.in"
6354  while :
6355  do
6356    cat "conftest.in" "conftest.in" >"conftest.tmp"
6357    mv "conftest.tmp" "conftest.in"
6358    cp "conftest.in" "conftest.nl"
6359    printf "%s\n" '' >> "conftest.nl"
6360    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6361    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6362    as_fn_arith $ac_count + 1 && ac_count=$as_val
6363    if test $ac_count -gt ${ac_path_SED_max-0}; then
6364      # Best one so far, save it but keep looking for a better one
6365      ac_cv_path_SED="$ac_path_SED"
6366      ac_path_SED_max=$ac_count
6367    fi
6368    # 10*(2^10) chars as input seems more than enough
6369    test $ac_count -gt 10 && break
6370  done
6371  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6372esac
6373
6374      $ac_path_SED_found && break 3
6375    done
6376  done
6377  done
6378IFS=$as_save_IFS
6379  if test -z "$ac_cv_path_SED"; then
6380    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6381  fi
6382else
6383  ac_cv_path_SED=$SED
6384fi
6385
6386fi
6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6388printf "%s\n" "$ac_cv_path_SED" >&6; }
6389 SED="$ac_cv_path_SED"
6390  rm -f conftest.sed
6391
6392test -z "$SED" && SED=sed
6393Xsed="$SED -e 1s/^X//"
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6406printf %s "checking for grep that handles long lines and -e... " >&6; }
6407if test ${ac_cv_path_GREP+y}
6408then :
6409  printf %s "(cached) " >&6
6410else $as_nop
6411  if test -z "$GREP"; then
6412  ac_path_GREP_found=false
6413  # Loop through the user's path and test for each of PROGNAME-LIST
6414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6416do
6417  IFS=$as_save_IFS
6418  case $as_dir in #(((
6419    '') as_dir=./ ;;
6420    */) ;;
6421    *) as_dir=$as_dir/ ;;
6422  esac
6423    for ac_prog in grep ggrep
6424   do
6425    for ac_exec_ext in '' $ac_executable_extensions; do
6426      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6427      as_fn_executable_p "$ac_path_GREP" || continue
6428# Check for GNU ac_path_GREP and select it if it is found.
6429  # Check for GNU $ac_path_GREP
6430case `"$ac_path_GREP" --version 2>&1` in
6431*GNU*)
6432  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6433*)
6434  ac_count=0
6435  printf %s 0123456789 >"conftest.in"
6436  while :
6437  do
6438    cat "conftest.in" "conftest.in" >"conftest.tmp"
6439    mv "conftest.tmp" "conftest.in"
6440    cp "conftest.in" "conftest.nl"
6441    printf "%s\n" 'GREP' >> "conftest.nl"
6442    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6444    as_fn_arith $ac_count + 1 && ac_count=$as_val
6445    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6446      # Best one so far, save it but keep looking for a better one
6447      ac_cv_path_GREP="$ac_path_GREP"
6448      ac_path_GREP_max=$ac_count
6449    fi
6450    # 10*(2^10) chars as input seems more than enough
6451    test $ac_count -gt 10 && break
6452  done
6453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6454esac
6455
6456      $ac_path_GREP_found && break 3
6457    done
6458  done
6459  done
6460IFS=$as_save_IFS
6461  if test -z "$ac_cv_path_GREP"; then
6462    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6463  fi
6464else
6465  ac_cv_path_GREP=$GREP
6466fi
6467
6468fi
6469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6470printf "%s\n" "$ac_cv_path_GREP" >&6; }
6471 GREP="$ac_cv_path_GREP"
6472
6473
6474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6475printf %s "checking for egrep... " >&6; }
6476if test ${ac_cv_path_EGREP+y}
6477then :
6478  printf %s "(cached) " >&6
6479else $as_nop
6480  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6481   then ac_cv_path_EGREP="$GREP -E"
6482   else
6483     if test -z "$EGREP"; then
6484  ac_path_EGREP_found=false
6485  # Loop through the user's path and test for each of PROGNAME-LIST
6486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6488do
6489  IFS=$as_save_IFS
6490  case $as_dir in #(((
6491    '') as_dir=./ ;;
6492    */) ;;
6493    *) as_dir=$as_dir/ ;;
6494  esac
6495    for ac_prog in egrep
6496   do
6497    for ac_exec_ext in '' $ac_executable_extensions; do
6498      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6499      as_fn_executable_p "$ac_path_EGREP" || continue
6500# Check for GNU ac_path_EGREP and select it if it is found.
6501  # Check for GNU $ac_path_EGREP
6502case `"$ac_path_EGREP" --version 2>&1` in
6503*GNU*)
6504  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6505*)
6506  ac_count=0
6507  printf %s 0123456789 >"conftest.in"
6508  while :
6509  do
6510    cat "conftest.in" "conftest.in" >"conftest.tmp"
6511    mv "conftest.tmp" "conftest.in"
6512    cp "conftest.in" "conftest.nl"
6513    printf "%s\n" 'EGREP' >> "conftest.nl"
6514    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6515    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6516    as_fn_arith $ac_count + 1 && ac_count=$as_val
6517    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6518      # Best one so far, save it but keep looking for a better one
6519      ac_cv_path_EGREP="$ac_path_EGREP"
6520      ac_path_EGREP_max=$ac_count
6521    fi
6522    # 10*(2^10) chars as input seems more than enough
6523    test $ac_count -gt 10 && break
6524  done
6525  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6526esac
6527
6528      $ac_path_EGREP_found && break 3
6529    done
6530  done
6531  done
6532IFS=$as_save_IFS
6533  if test -z "$ac_cv_path_EGREP"; then
6534    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6535  fi
6536else
6537  ac_cv_path_EGREP=$EGREP
6538fi
6539
6540   fi
6541fi
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6543printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6544 EGREP="$ac_cv_path_EGREP"
6545
6546
6547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6548printf %s "checking for fgrep... " >&6; }
6549if test ${ac_cv_path_FGREP+y}
6550then :
6551  printf %s "(cached) " >&6
6552else $as_nop
6553  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6554   then ac_cv_path_FGREP="$GREP -F"
6555   else
6556     if test -z "$FGREP"; then
6557  ac_path_FGREP_found=false
6558  # Loop through the user's path and test for each of PROGNAME-LIST
6559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6561do
6562  IFS=$as_save_IFS
6563  case $as_dir in #(((
6564    '') as_dir=./ ;;
6565    */) ;;
6566    *) as_dir=$as_dir/ ;;
6567  esac
6568    for ac_prog in fgrep
6569   do
6570    for ac_exec_ext in '' $ac_executable_extensions; do
6571      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6572      as_fn_executable_p "$ac_path_FGREP" || continue
6573# Check for GNU ac_path_FGREP and select it if it is found.
6574  # Check for GNU $ac_path_FGREP
6575case `"$ac_path_FGREP" --version 2>&1` in
6576*GNU*)
6577  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6578*)
6579  ac_count=0
6580  printf %s 0123456789 >"conftest.in"
6581  while :
6582  do
6583    cat "conftest.in" "conftest.in" >"conftest.tmp"
6584    mv "conftest.tmp" "conftest.in"
6585    cp "conftest.in" "conftest.nl"
6586    printf "%s\n" 'FGREP' >> "conftest.nl"
6587    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6588    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6589    as_fn_arith $ac_count + 1 && ac_count=$as_val
6590    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6591      # Best one so far, save it but keep looking for a better one
6592      ac_cv_path_FGREP="$ac_path_FGREP"
6593      ac_path_FGREP_max=$ac_count
6594    fi
6595    # 10*(2^10) chars as input seems more than enough
6596    test $ac_count -gt 10 && break
6597  done
6598  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6599esac
6600
6601      $ac_path_FGREP_found && break 3
6602    done
6603  done
6604  done
6605IFS=$as_save_IFS
6606  if test -z "$ac_cv_path_FGREP"; then
6607    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6608  fi
6609else
6610  ac_cv_path_FGREP=$FGREP
6611fi
6612
6613   fi
6614fi
6615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6616printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6617 FGREP="$ac_cv_path_FGREP"
6618
6619
6620test -z "$GREP" && GREP=grep
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640# Check whether --with-gnu-ld was given.
6641if test ${with_gnu_ld+y}
6642then :
6643  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6644else $as_nop
6645  with_gnu_ld=no
6646fi
6647
6648ac_prog=ld
6649if test yes = "$GCC"; then
6650  # Check if gcc -print-prog-name=ld gives a path.
6651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6652printf %s "checking for ld used by $CC... " >&6; }
6653  case $host in
6654  *-*-mingw*)
6655    # gcc leaves a trailing carriage return, which upsets mingw
6656    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6657  *)
6658    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6659  esac
6660  case $ac_prog in
6661    # Accept absolute paths.
6662    [\\/]* | ?:[\\/]*)
6663      re_direlt='/[^/][^/]*/\.\./'
6664      # Canonicalize the pathname of ld
6665      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6666      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6667	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6668      done
6669      test -z "$LD" && LD=$ac_prog
6670      ;;
6671  "")
6672    # If it fails, then pretend we aren't using GCC.
6673    ac_prog=ld
6674    ;;
6675  *)
6676    # If it is relative, then search for the first ld in PATH.
6677    with_gnu_ld=unknown
6678    ;;
6679  esac
6680elif test yes = "$with_gnu_ld"; then
6681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6682printf %s "checking for GNU ld... " >&6; }
6683else
6684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6685printf %s "checking for non-GNU ld... " >&6; }
6686fi
6687if test ${lt_cv_path_LD+y}
6688then :
6689  printf %s "(cached) " >&6
6690else $as_nop
6691  if test -z "$LD"; then
6692  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6693  for ac_dir in $PATH; do
6694    IFS=$lt_save_ifs
6695    test -z "$ac_dir" && ac_dir=.
6696    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6697      lt_cv_path_LD=$ac_dir/$ac_prog
6698      # Check to see if the program is GNU ld.  I'd rather use --version,
6699      # but apparently some variants of GNU ld only accept -v.
6700      # Break only if it was the GNU/non-GNU ld that we prefer.
6701      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6702      *GNU* | *'with BFD'*)
6703	test no != "$with_gnu_ld" && break
6704	;;
6705      *)
6706	test yes != "$with_gnu_ld" && break
6707	;;
6708      esac
6709    fi
6710  done
6711  IFS=$lt_save_ifs
6712else
6713  lt_cv_path_LD=$LD # Let the user override the test with a path.
6714fi
6715fi
6716
6717LD=$lt_cv_path_LD
6718if test -n "$LD"; then
6719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6720printf "%s\n" "$LD" >&6; }
6721else
6722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723printf "%s\n" "no" >&6; }
6724fi
6725test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6727printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6728if test ${lt_cv_prog_gnu_ld+y}
6729then :
6730  printf %s "(cached) " >&6
6731else $as_nop
6732  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6733case `$LD -v 2>&1 </dev/null` in
6734*GNU* | *'with BFD'*)
6735  lt_cv_prog_gnu_ld=yes
6736  ;;
6737*)
6738  lt_cv_prog_gnu_ld=no
6739  ;;
6740esac
6741fi
6742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6743printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6744with_gnu_ld=$lt_cv_prog_gnu_ld
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6755printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6756if test ${lt_cv_path_NM+y}
6757then :
6758  printf %s "(cached) " >&6
6759else $as_nop
6760  if test -n "$NM"; then
6761  # Let the user override the test.
6762  lt_cv_path_NM=$NM
6763else
6764  lt_nm_to_check=${ac_tool_prefix}nm
6765  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6766    lt_nm_to_check="$lt_nm_to_check nm"
6767  fi
6768  for lt_tmp_nm in $lt_nm_to_check; do
6769    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6770    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6771      IFS=$lt_save_ifs
6772      test -z "$ac_dir" && ac_dir=.
6773      tmp_nm=$ac_dir/$lt_tmp_nm
6774      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6775	# Check to see if the nm accepts a BSD-compat flag.
6776	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6777	#   nm: unknown option "B" ignored
6778	# Tru64's nm complains that /dev/null is an invalid object file
6779	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6780	case $build_os in
6781	mingw*) lt_bad_file=conftest.nm/nofile ;;
6782	*) lt_bad_file=/dev/null ;;
6783	esac
6784	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6785	*$lt_bad_file* | *'Invalid file or object type'*)
6786	  lt_cv_path_NM="$tmp_nm -B"
6787	  break 2
6788	  ;;
6789	*)
6790	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6791	  */dev/null*)
6792	    lt_cv_path_NM="$tmp_nm -p"
6793	    break 2
6794	    ;;
6795	  *)
6796	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6797	    continue # so that we can try to find one that supports BSD flags
6798	    ;;
6799	  esac
6800	  ;;
6801	esac
6802      fi
6803    done
6804    IFS=$lt_save_ifs
6805  done
6806  : ${lt_cv_path_NM=no}
6807fi
6808fi
6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6810printf "%s\n" "$lt_cv_path_NM" >&6; }
6811if test no != "$lt_cv_path_NM"; then
6812  NM=$lt_cv_path_NM
6813else
6814  # Didn't find any BSD compatible name lister, look for dumpbin.
6815  if test -n "$DUMPBIN"; then :
6816    # Let the user override the test.
6817  else
6818    if test -n "$ac_tool_prefix"; then
6819  for ac_prog in dumpbin "link -dump"
6820  do
6821    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824printf %s "checking for $ac_word... " >&6; }
6825if test ${ac_cv_prog_DUMPBIN+y}
6826then :
6827  printf %s "(cached) " >&6
6828else $as_nop
6829  if test -n "$DUMPBIN"; then
6830  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  case $as_dir in #(((
6837    '') as_dir=./ ;;
6838    */) ;;
6839    *) as_dir=$as_dir/ ;;
6840  esac
6841    for ac_exec_ext in '' $ac_executable_extensions; do
6842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6843    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848  done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853DUMPBIN=$ac_cv_prog_DUMPBIN
6854if test -n "$DUMPBIN"; then
6855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6856printf "%s\n" "$DUMPBIN" >&6; }
6857else
6858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859printf "%s\n" "no" >&6; }
6860fi
6861
6862
6863    test -n "$DUMPBIN" && break
6864  done
6865fi
6866if test -z "$DUMPBIN"; then
6867  ac_ct_DUMPBIN=$DUMPBIN
6868  for ac_prog in dumpbin "link -dump"
6869do
6870  # Extract the first word of "$ac_prog", so it can be a program name with args.
6871set dummy $ac_prog; ac_word=$2
6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873printf %s "checking for $ac_word... " >&6; }
6874if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6875then :
6876  printf %s "(cached) " >&6
6877else $as_nop
6878  if test -n "$ac_ct_DUMPBIN"; then
6879  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884  IFS=$as_save_IFS
6885  case $as_dir in #(((
6886    '') as_dir=./ ;;
6887    */) ;;
6888    *) as_dir=$as_dir/ ;;
6889  esac
6890    for ac_exec_ext in '' $ac_executable_extensions; do
6891  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894    break 2
6895  fi
6896done
6897  done
6898IFS=$as_save_IFS
6899
6900fi
6901fi
6902ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6903if test -n "$ac_ct_DUMPBIN"; then
6904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6905printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6906else
6907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908printf "%s\n" "no" >&6; }
6909fi
6910
6911
6912  test -n "$ac_ct_DUMPBIN" && break
6913done
6914
6915  if test "x$ac_ct_DUMPBIN" = x; then
6916    DUMPBIN=":"
6917  else
6918    case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924    DUMPBIN=$ac_ct_DUMPBIN
6925  fi
6926fi
6927
6928    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6929    *COFF*)
6930      DUMPBIN="$DUMPBIN -symbols -headers"
6931      ;;
6932    *)
6933      DUMPBIN=:
6934      ;;
6935    esac
6936  fi
6937
6938  if test : != "$DUMPBIN"; then
6939    NM=$DUMPBIN
6940  fi
6941fi
6942test -z "$NM" && NM=nm
6943
6944
6945
6946
6947
6948
6949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6950printf %s "checking the name lister ($NM) interface... " >&6; }
6951if test ${lt_cv_nm_interface+y}
6952then :
6953  printf %s "(cached) " >&6
6954else $as_nop
6955  lt_cv_nm_interface="BSD nm"
6956  echo "int some_variable = 0;" > conftest.$ac_ext
6957  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6958  (eval "$ac_compile" 2>conftest.err)
6959  cat conftest.err >&5
6960  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6961  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6962  cat conftest.err >&5
6963  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6964  cat conftest.out >&5
6965  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6966    lt_cv_nm_interface="MS dumpbin"
6967  fi
6968  rm -f conftest*
6969fi
6970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6971printf "%s\n" "$lt_cv_nm_interface" >&6; }
6972
6973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6974printf %s "checking whether ln -s works... " >&6; }
6975LN_S=$as_ln_s
6976if test "$LN_S" = "ln -s"; then
6977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6978printf "%s\n" "yes" >&6; }
6979else
6980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6981printf "%s\n" "no, using $LN_S" >&6; }
6982fi
6983
6984# find the maximum length of command line arguments
6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6986printf %s "checking the maximum length of command line arguments... " >&6; }
6987if test ${lt_cv_sys_max_cmd_len+y}
6988then :
6989  printf %s "(cached) " >&6
6990else $as_nop
6991    i=0
6992  teststring=ABCD
6993
6994  case $build_os in
6995  msdosdjgpp*)
6996    # On DJGPP, this test can blow up pretty badly due to problems in libc
6997    # (any single argument exceeding 2000 bytes causes a buffer overrun
6998    # during glob expansion).  Even if it were fixed, the result of this
6999    # check would be larger than it should be.
7000    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7001    ;;
7002
7003  gnu*)
7004    # Under GNU Hurd, this test is not required because there is
7005    # no limit to the length of command line arguments.
7006    # Libtool will interpret -1 as no limit whatsoever
7007    lt_cv_sys_max_cmd_len=-1;
7008    ;;
7009
7010  cygwin* | mingw* | cegcc*)
7011    # On Win9x/ME, this test blows up -- it succeeds, but takes
7012    # about 5 minutes as the teststring grows exponentially.
7013    # Worse, since 9x/ME are not pre-emptively multitasking,
7014    # you end up with a "frozen" computer, even though with patience
7015    # the test eventually succeeds (with a max line length of 256k).
7016    # Instead, let's just punt: use the minimum linelength reported by
7017    # all of the supported platforms: 8192 (on NT/2K/XP).
7018    lt_cv_sys_max_cmd_len=8192;
7019    ;;
7020
7021  mint*)
7022    # On MiNT this can take a long time and run out of memory.
7023    lt_cv_sys_max_cmd_len=8192;
7024    ;;
7025
7026  amigaos*)
7027    # On AmigaOS with pdksh, this test takes hours, literally.
7028    # So we just punt and use a minimum line length of 8192.
7029    lt_cv_sys_max_cmd_len=8192;
7030    ;;
7031
7032  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7033    # This has been around since 386BSD, at least.  Likely further.
7034    if test -x /sbin/sysctl; then
7035      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7036    elif test -x /usr/sbin/sysctl; then
7037      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7038    else
7039      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7040    fi
7041    # And add a safety zone
7042    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7043    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7044    ;;
7045
7046  interix*)
7047    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7048    lt_cv_sys_max_cmd_len=196608
7049    ;;
7050
7051  os2*)
7052    # The test takes a long time on OS/2.
7053    lt_cv_sys_max_cmd_len=8192
7054    ;;
7055
7056  osf*)
7057    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7058    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7059    # nice to cause kernel panics so lets avoid the loop below.
7060    # First set a reasonable default.
7061    lt_cv_sys_max_cmd_len=16384
7062    #
7063    if test -x /sbin/sysconfig; then
7064      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7065        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7066      esac
7067    fi
7068    ;;
7069  sco3.2v5*)
7070    lt_cv_sys_max_cmd_len=102400
7071    ;;
7072  sysv5* | sco5v6* | sysv4.2uw2*)
7073    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7074    if test -n "$kargmax"; then
7075      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7076    else
7077      lt_cv_sys_max_cmd_len=32768
7078    fi
7079    ;;
7080  *)
7081    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7082    if test -n "$lt_cv_sys_max_cmd_len" && \
7083       test undefined != "$lt_cv_sys_max_cmd_len"; then
7084      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7085      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7086    else
7087      # Make teststring a little bigger before we do anything with it.
7088      # a 1K string should be a reasonable start.
7089      for i in 1 2 3 4 5 6 7 8; do
7090        teststring=$teststring$teststring
7091      done
7092      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7093      # If test is not a shell built-in, we'll probably end up computing a
7094      # maximum length that is only half of the actual maximum length, but
7095      # we can't tell.
7096      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7097	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7098	      test 17 != "$i" # 1/2 MB should be enough
7099      do
7100        i=`expr $i + 1`
7101        teststring=$teststring$teststring
7102      done
7103      # Only check the string length outside the loop.
7104      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7105      teststring=
7106      # Add a significant safety factor because C++ compilers can tack on
7107      # massive amounts of additional arguments before passing them to the
7108      # linker.  It appears as though 1/2 is a usable value.
7109      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7110    fi
7111    ;;
7112  esac
7113
7114fi
7115
7116if test -n "$lt_cv_sys_max_cmd_len"; then
7117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7118printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7119else
7120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7121printf "%s\n" "none" >&6; }
7122fi
7123max_cmd_len=$lt_cv_sys_max_cmd_len
7124
7125
7126
7127
7128
7129
7130: ${CP="cp -f"}
7131: ${MV="mv -f"}
7132: ${RM="rm -f"}
7133
7134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7135  lt_unset=unset
7136else
7137  lt_unset=false
7138fi
7139
7140
7141
7142
7143
7144# test EBCDIC or ASCII
7145case `echo X|tr X '\101'` in
7146 A) # ASCII based system
7147    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7148  lt_SP2NL='tr \040 \012'
7149  lt_NL2SP='tr \015\012 \040\040'
7150  ;;
7151 *) # EBCDIC based system
7152  lt_SP2NL='tr \100 \n'
7153  lt_NL2SP='tr \r\n \100\100'
7154  ;;
7155esac
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7166printf %s "checking how to convert $build file names to $host format... " >&6; }
7167if test ${lt_cv_to_host_file_cmd+y}
7168then :
7169  printf %s "(cached) " >&6
7170else $as_nop
7171  case $host in
7172  *-*-mingw* )
7173    case $build in
7174      *-*-mingw* ) # actually msys
7175        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7176        ;;
7177      *-*-cygwin* )
7178        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7179        ;;
7180      * ) # otherwise, assume *nix
7181        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7182        ;;
7183    esac
7184    ;;
7185  *-*-cygwin* )
7186    case $build in
7187      *-*-mingw* ) # actually msys
7188        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7189        ;;
7190      *-*-cygwin* )
7191        lt_cv_to_host_file_cmd=func_convert_file_noop
7192        ;;
7193      * ) # otherwise, assume *nix
7194        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7195        ;;
7196    esac
7197    ;;
7198  * ) # unhandled hosts (and "normal" native builds)
7199    lt_cv_to_host_file_cmd=func_convert_file_noop
7200    ;;
7201esac
7202
7203fi
7204
7205to_host_file_cmd=$lt_cv_to_host_file_cmd
7206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7207printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7208
7209
7210
7211
7212
7213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7214printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7215if test ${lt_cv_to_tool_file_cmd+y}
7216then :
7217  printf %s "(cached) " >&6
7218else $as_nop
7219  #assume ordinary cross tools, or native build.
7220lt_cv_to_tool_file_cmd=func_convert_file_noop
7221case $host in
7222  *-*-mingw* )
7223    case $build in
7224      *-*-mingw* ) # actually msys
7225        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7226        ;;
7227    esac
7228    ;;
7229esac
7230
7231fi
7232
7233to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7235printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7236
7237
7238
7239
7240
7241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7242printf %s "checking for $LD option to reload object files... " >&6; }
7243if test ${lt_cv_ld_reload_flag+y}
7244then :
7245  printf %s "(cached) " >&6
7246else $as_nop
7247  lt_cv_ld_reload_flag='-r'
7248fi
7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7250printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7251reload_flag=$lt_cv_ld_reload_flag
7252case $reload_flag in
7253"" | " "*) ;;
7254*) reload_flag=" $reload_flag" ;;
7255esac
7256reload_cmds='$LD$reload_flag -o $output$reload_objs'
7257case $host_os in
7258  cygwin* | mingw* | pw32* | cegcc*)
7259    if test yes != "$GCC"; then
7260      reload_cmds=false
7261    fi
7262    ;;
7263  darwin*)
7264    if test yes = "$GCC"; then
7265      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7266    else
7267      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7268    fi
7269    ;;
7270esac
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280if test -n "$ac_tool_prefix"; then
7281  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7282set dummy ${ac_tool_prefix}objdump; ac_word=$2
7283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284printf %s "checking for $ac_word... " >&6; }
7285if test ${ac_cv_prog_OBJDUMP+y}
7286then :
7287  printf %s "(cached) " >&6
7288else $as_nop
7289  if test -n "$OBJDUMP"; then
7290  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295  IFS=$as_save_IFS
7296  case $as_dir in #(((
7297    '') as_dir=./ ;;
7298    */) ;;
7299    *) as_dir=$as_dir/ ;;
7300  esac
7301    for ac_exec_ext in '' $ac_executable_extensions; do
7302  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7303    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7304    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308  done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313OBJDUMP=$ac_cv_prog_OBJDUMP
7314if test -n "$OBJDUMP"; then
7315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7316printf "%s\n" "$OBJDUMP" >&6; }
7317else
7318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319printf "%s\n" "no" >&6; }
7320fi
7321
7322
7323fi
7324if test -z "$ac_cv_prog_OBJDUMP"; then
7325  ac_ct_OBJDUMP=$OBJDUMP
7326  # Extract the first word of "objdump", so it can be a program name with args.
7327set dummy objdump; ac_word=$2
7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329printf %s "checking for $ac_word... " >&6; }
7330if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7331then :
7332  printf %s "(cached) " >&6
7333else $as_nop
7334  if test -n "$ac_ct_OBJDUMP"; then
7335  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  case $as_dir in #(((
7342    '') as_dir=./ ;;
7343    */) ;;
7344    *) as_dir=$as_dir/ ;;
7345  esac
7346    for ac_exec_ext in '' $ac_executable_extensions; do
7347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7348    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7350    break 2
7351  fi
7352done
7353  done
7354IFS=$as_save_IFS
7355
7356fi
7357fi
7358ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7359if test -n "$ac_ct_OBJDUMP"; then
7360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7361printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7362else
7363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364printf "%s\n" "no" >&6; }
7365fi
7366
7367  if test "x$ac_ct_OBJDUMP" = x; then
7368    OBJDUMP="false"
7369  else
7370    case $cross_compiling:$ac_tool_warned in
7371yes:)
7372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374ac_tool_warned=yes ;;
7375esac
7376    OBJDUMP=$ac_ct_OBJDUMP
7377  fi
7378else
7379  OBJDUMP="$ac_cv_prog_OBJDUMP"
7380fi
7381
7382test -z "$OBJDUMP" && OBJDUMP=objdump
7383
7384
7385
7386
7387
7388
7389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7390printf %s "checking how to recognize dependent libraries... " >&6; }
7391if test ${lt_cv_deplibs_check_method+y}
7392then :
7393  printf %s "(cached) " >&6
7394else $as_nop
7395  lt_cv_file_magic_cmd='$MAGIC_CMD'
7396lt_cv_file_magic_test_file=
7397lt_cv_deplibs_check_method='unknown'
7398# Need to set the preceding variable on all platforms that support
7399# interlibrary dependencies.
7400# 'none' -- dependencies not supported.
7401# 'unknown' -- same as none, but documents that we really don't know.
7402# 'pass_all' -- all dependencies passed with no checks.
7403# 'test_compile' -- check by making test program.
7404# 'file_magic [[regex]]' -- check by looking for files in library path
7405# that responds to the $file_magic_cmd with a given extended regex.
7406# If you have 'file' or equivalent on your system and you're not sure
7407# whether 'pass_all' will *always* work, you probably want this one.
7408
7409case $host_os in
7410aix[4-9]*)
7411  lt_cv_deplibs_check_method=pass_all
7412  ;;
7413
7414beos*)
7415  lt_cv_deplibs_check_method=pass_all
7416  ;;
7417
7418bsdi[45]*)
7419  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7420  lt_cv_file_magic_cmd='/usr/bin/file -L'
7421  lt_cv_file_magic_test_file=/shlib/libc.so
7422  ;;
7423
7424cygwin*)
7425  # func_win32_libid is a shell function defined in ltmain.sh
7426  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7427  lt_cv_file_magic_cmd='func_win32_libid'
7428  ;;
7429
7430mingw* | pw32*)
7431  # Base MSYS/MinGW do not provide the 'file' command needed by
7432  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7433  # unless we find 'file', for example because we are cross-compiling.
7434  if ( file / ) >/dev/null 2>&1; then
7435    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7436    lt_cv_file_magic_cmd='func_win32_libid'
7437  else
7438    # Keep this pattern in sync with the one in func_win32_libid.
7439    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7440    lt_cv_file_magic_cmd='$OBJDUMP -f'
7441  fi
7442  ;;
7443
7444cegcc*)
7445  # use the weaker test based on 'objdump'. See mingw*.
7446  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7447  lt_cv_file_magic_cmd='$OBJDUMP -f'
7448  ;;
7449
7450darwin* | rhapsody*)
7451  lt_cv_deplibs_check_method=pass_all
7452  ;;
7453
7454freebsd* | dragonfly*)
7455  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7456    case $host_cpu in
7457    i*86 )
7458      # Not sure whether the presence of OpenBSD here was a mistake.
7459      # Let's accept both of them until this is cleared up.
7460      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7461      lt_cv_file_magic_cmd=/usr/bin/file
7462      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7463      ;;
7464    esac
7465  else
7466    lt_cv_deplibs_check_method=pass_all
7467  fi
7468  ;;
7469
7470haiku*)
7471  lt_cv_deplibs_check_method=pass_all
7472  ;;
7473
7474hpux10.20* | hpux11*)
7475  lt_cv_file_magic_cmd=/usr/bin/file
7476  case $host_cpu in
7477  ia64*)
7478    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7479    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7480    ;;
7481  hppa*64*)
7482    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]'
7483    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7484    ;;
7485  *)
7486    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7487    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7488    ;;
7489  esac
7490  ;;
7491
7492interix[3-9]*)
7493  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7494  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7495  ;;
7496
7497irix5* | irix6* | nonstopux*)
7498  case $LD in
7499  *-32|*"-32 ") libmagic=32-bit;;
7500  *-n32|*"-n32 ") libmagic=N32;;
7501  *-64|*"-64 ") libmagic=64-bit;;
7502  *) libmagic=never-match;;
7503  esac
7504  lt_cv_deplibs_check_method=pass_all
7505  ;;
7506
7507# This must be glibc/ELF.
7508linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7509  lt_cv_deplibs_check_method=pass_all
7510  ;;
7511
7512netbsd*)
7513  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7515  else
7516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7517  fi
7518  ;;
7519
7520newos6*)
7521  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7522  lt_cv_file_magic_cmd=/usr/bin/file
7523  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7524  ;;
7525
7526*nto* | *qnx*)
7527  lt_cv_deplibs_check_method=pass_all
7528  ;;
7529
7530openbsd* | bitrig*)
7531  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7532    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7533  else
7534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7535  fi
7536  ;;
7537
7538osf3* | osf4* | osf5*)
7539  lt_cv_deplibs_check_method=pass_all
7540  ;;
7541
7542rdos*)
7543  lt_cv_deplibs_check_method=pass_all
7544  ;;
7545
7546solaris*)
7547  lt_cv_deplibs_check_method=pass_all
7548  ;;
7549
7550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7551  lt_cv_deplibs_check_method=pass_all
7552  ;;
7553
7554sysv4 | sysv4.3*)
7555  case $host_vendor in
7556  motorola)
7557    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]'
7558    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7559    ;;
7560  ncr)
7561    lt_cv_deplibs_check_method=pass_all
7562    ;;
7563  sequent)
7564    lt_cv_file_magic_cmd='/bin/file'
7565    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7566    ;;
7567  sni)
7568    lt_cv_file_magic_cmd='/bin/file'
7569    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7570    lt_cv_file_magic_test_file=/lib/libc.so
7571    ;;
7572  siemens)
7573    lt_cv_deplibs_check_method=pass_all
7574    ;;
7575  pc)
7576    lt_cv_deplibs_check_method=pass_all
7577    ;;
7578  esac
7579  ;;
7580
7581tpf*)
7582  lt_cv_deplibs_check_method=pass_all
7583  ;;
7584os2*)
7585  lt_cv_deplibs_check_method=pass_all
7586  ;;
7587esac
7588
7589fi
7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7591printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7592
7593file_magic_glob=
7594want_nocaseglob=no
7595if test "$build" = "$host"; then
7596  case $host_os in
7597  mingw* | pw32*)
7598    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7599      want_nocaseglob=yes
7600    else
7601      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7602    fi
7603    ;;
7604  esac
7605fi
7606
7607file_magic_cmd=$lt_cv_file_magic_cmd
7608deplibs_check_method=$lt_cv_deplibs_check_method
7609test -z "$deplibs_check_method" && deplibs_check_method=unknown
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632if test -n "$ac_tool_prefix"; then
7633  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7634set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636printf %s "checking for $ac_word... " >&6; }
7637if test ${ac_cv_prog_DLLTOOL+y}
7638then :
7639  printf %s "(cached) " >&6
7640else $as_nop
7641  if test -n "$DLLTOOL"; then
7642  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  case $as_dir in #(((
7649    '') as_dir=./ ;;
7650    */) ;;
7651    *) as_dir=$as_dir/ ;;
7652  esac
7653    for ac_exec_ext in '' $ac_executable_extensions; do
7654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7655    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7657    break 2
7658  fi
7659done
7660  done
7661IFS=$as_save_IFS
7662
7663fi
7664fi
7665DLLTOOL=$ac_cv_prog_DLLTOOL
7666if test -n "$DLLTOOL"; then
7667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7668printf "%s\n" "$DLLTOOL" >&6; }
7669else
7670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671printf "%s\n" "no" >&6; }
7672fi
7673
7674
7675fi
7676if test -z "$ac_cv_prog_DLLTOOL"; then
7677  ac_ct_DLLTOOL=$DLLTOOL
7678  # Extract the first word of "dlltool", so it can be a program name with args.
7679set dummy dlltool; ac_word=$2
7680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681printf %s "checking for $ac_word... " >&6; }
7682if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7683then :
7684  printf %s "(cached) " >&6
7685else $as_nop
7686  if test -n "$ac_ct_DLLTOOL"; then
7687  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692  IFS=$as_save_IFS
7693  case $as_dir in #(((
7694    '') as_dir=./ ;;
7695    */) ;;
7696    *) as_dir=$as_dir/ ;;
7697  esac
7698    for ac_exec_ext in '' $ac_executable_extensions; do
7699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7700    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7702    break 2
7703  fi
7704done
7705  done
7706IFS=$as_save_IFS
7707
7708fi
7709fi
7710ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7711if test -n "$ac_ct_DLLTOOL"; then
7712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7713printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7714else
7715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716printf "%s\n" "no" >&6; }
7717fi
7718
7719  if test "x$ac_ct_DLLTOOL" = x; then
7720    DLLTOOL="false"
7721  else
7722    case $cross_compiling:$ac_tool_warned in
7723yes:)
7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726ac_tool_warned=yes ;;
7727esac
7728    DLLTOOL=$ac_ct_DLLTOOL
7729  fi
7730else
7731  DLLTOOL="$ac_cv_prog_DLLTOOL"
7732fi
7733
7734test -z "$DLLTOOL" && DLLTOOL=dlltool
7735
7736
7737
7738
7739
7740
7741
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7743printf %s "checking how to associate runtime and link libraries... " >&6; }
7744if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7745then :
7746  printf %s "(cached) " >&6
7747else $as_nop
7748  lt_cv_sharedlib_from_linklib_cmd='unknown'
7749
7750case $host_os in
7751cygwin* | mingw* | pw32* | cegcc*)
7752  # two different shell functions defined in ltmain.sh;
7753  # decide which one to use based on capabilities of $DLLTOOL
7754  case `$DLLTOOL --help 2>&1` in
7755  *--identify-strict*)
7756    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7757    ;;
7758  *)
7759    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7760    ;;
7761  esac
7762  ;;
7763*)
7764  # fallback: assume linklib IS sharedlib
7765  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7766  ;;
7767esac
7768
7769fi
7770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7771printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7772sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7773test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7774
7775
7776
7777
7778
7779
7780
7781if test -n "$ac_tool_prefix"; then
7782  for ac_prog in ar
7783  do
7784    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787printf %s "checking for $ac_word... " >&6; }
7788if test ${ac_cv_prog_AR+y}
7789then :
7790  printf %s "(cached) " >&6
7791else $as_nop
7792  if test -n "$AR"; then
7793  ac_cv_prog_AR="$AR" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798  IFS=$as_save_IFS
7799  case $as_dir in #(((
7800    '') as_dir=./ ;;
7801    */) ;;
7802    *) as_dir=$as_dir/ ;;
7803  esac
7804    for ac_exec_ext in '' $ac_executable_extensions; do
7805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7806    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811  done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816AR=$ac_cv_prog_AR
7817if test -n "$AR"; then
7818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7819printf "%s\n" "$AR" >&6; }
7820else
7821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822printf "%s\n" "no" >&6; }
7823fi
7824
7825
7826    test -n "$AR" && break
7827  done
7828fi
7829if test -z "$AR"; then
7830  ac_ct_AR=$AR
7831  for ac_prog in ar
7832do
7833  # Extract the first word of "$ac_prog", so it can be a program name with args.
7834set dummy $ac_prog; ac_word=$2
7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836printf %s "checking for $ac_word... " >&6; }
7837if test ${ac_cv_prog_ac_ct_AR+y}
7838then :
7839  printf %s "(cached) " >&6
7840else $as_nop
7841  if test -n "$ac_ct_AR"; then
7842  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847  IFS=$as_save_IFS
7848  case $as_dir in #(((
7849    '') as_dir=./ ;;
7850    */) ;;
7851    *) as_dir=$as_dir/ ;;
7852  esac
7853    for ac_exec_ext in '' $ac_executable_extensions; do
7854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7855    ac_cv_prog_ac_ct_AR="$ac_prog"
7856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860  done
7861IFS=$as_save_IFS
7862
7863fi
7864fi
7865ac_ct_AR=$ac_cv_prog_ac_ct_AR
7866if test -n "$ac_ct_AR"; then
7867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7868printf "%s\n" "$ac_ct_AR" >&6; }
7869else
7870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871printf "%s\n" "no" >&6; }
7872fi
7873
7874
7875  test -n "$ac_ct_AR" && break
7876done
7877
7878  if test "x$ac_ct_AR" = x; then
7879    AR="false"
7880  else
7881    case $cross_compiling:$ac_tool_warned in
7882yes:)
7883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7885ac_tool_warned=yes ;;
7886esac
7887    AR=$ac_ct_AR
7888  fi
7889fi
7890
7891: ${AR=ar}
7892: ${AR_FLAGS=cru}
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7905printf %s "checking for archiver @FILE support... " >&6; }
7906if test ${lt_cv_ar_at_file+y}
7907then :
7908  printf %s "(cached) " >&6
7909else $as_nop
7910  lt_cv_ar_at_file=no
7911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913
7914int
7915main (void)
7916{
7917
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"
7923then :
7924  echo conftest.$ac_objext > conftest.lst
7925      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7926      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7927  (eval $lt_ar_try) 2>&5
7928  ac_status=$?
7929  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930  test $ac_status = 0; }
7931      if test 0 -eq "$ac_status"; then
7932	# Ensure the archiver fails upon bogus file names.
7933	rm -f conftest.$ac_objext libconftest.a
7934	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7935  (eval $lt_ar_try) 2>&5
7936  ac_status=$?
7937  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938  test $ac_status = 0; }
7939	if test 0 -ne "$ac_status"; then
7940          lt_cv_ar_at_file=@
7941        fi
7942      fi
7943      rm -f conftest.* libconftest.a
7944
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7947
7948fi
7949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7950printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7951
7952if test no = "$lt_cv_ar_at_file"; then
7953  archiver_list_spec=
7954else
7955  archiver_list_spec=$lt_cv_ar_at_file
7956fi
7957
7958
7959
7960
7961
7962
7963
7964if test -n "$ac_tool_prefix"; then
7965  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7966set dummy ${ac_tool_prefix}strip; ac_word=$2
7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968printf %s "checking for $ac_word... " >&6; }
7969if test ${ac_cv_prog_STRIP+y}
7970then :
7971  printf %s "(cached) " >&6
7972else $as_nop
7973  if test -n "$STRIP"; then
7974  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  case $as_dir in #(((
7981    '') as_dir=./ ;;
7982    */) ;;
7983    *) as_dir=$as_dir/ ;;
7984  esac
7985    for ac_exec_ext in '' $ac_executable_extensions; do
7986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7987    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7989    break 2
7990  fi
7991done
7992  done
7993IFS=$as_save_IFS
7994
7995fi
7996fi
7997STRIP=$ac_cv_prog_STRIP
7998if test -n "$STRIP"; then
7999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8000printf "%s\n" "$STRIP" >&6; }
8001else
8002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003printf "%s\n" "no" >&6; }
8004fi
8005
8006
8007fi
8008if test -z "$ac_cv_prog_STRIP"; then
8009  ac_ct_STRIP=$STRIP
8010  # Extract the first word of "strip", so it can be a program name with args.
8011set dummy strip; ac_word=$2
8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013printf %s "checking for $ac_word... " >&6; }
8014if test ${ac_cv_prog_ac_ct_STRIP+y}
8015then :
8016  printf %s "(cached) " >&6
8017else $as_nop
8018  if test -n "$ac_ct_STRIP"; then
8019  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024  IFS=$as_save_IFS
8025  case $as_dir in #(((
8026    '') as_dir=./ ;;
8027    */) ;;
8028    *) as_dir=$as_dir/ ;;
8029  esac
8030    for ac_exec_ext in '' $ac_executable_extensions; do
8031  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8032    ac_cv_prog_ac_ct_STRIP="strip"
8033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037  done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8043if test -n "$ac_ct_STRIP"; then
8044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8045printf "%s\n" "$ac_ct_STRIP" >&6; }
8046else
8047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048printf "%s\n" "no" >&6; }
8049fi
8050
8051  if test "x$ac_ct_STRIP" = x; then
8052    STRIP=":"
8053  else
8054    case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060    STRIP=$ac_ct_STRIP
8061  fi
8062else
8063  STRIP="$ac_cv_prog_STRIP"
8064fi
8065
8066test -z "$STRIP" && STRIP=:
8067
8068
8069
8070
8071
8072
8073if test -n "$ac_tool_prefix"; then
8074  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8075set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077printf %s "checking for $ac_word... " >&6; }
8078if test ${ac_cv_prog_RANLIB+y}
8079then :
8080  printf %s "(cached) " >&6
8081else $as_nop
8082  if test -n "$RANLIB"; then
8083  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088  IFS=$as_save_IFS
8089  case $as_dir in #(((
8090    '') as_dir=./ ;;
8091    */) ;;
8092    *) as_dir=$as_dir/ ;;
8093  esac
8094    for ac_exec_ext in '' $ac_executable_extensions; do
8095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8098    break 2
8099  fi
8100done
8101  done
8102IFS=$as_save_IFS
8103
8104fi
8105fi
8106RANLIB=$ac_cv_prog_RANLIB
8107if test -n "$RANLIB"; then
8108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8109printf "%s\n" "$RANLIB" >&6; }
8110else
8111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112printf "%s\n" "no" >&6; }
8113fi
8114
8115
8116fi
8117if test -z "$ac_cv_prog_RANLIB"; then
8118  ac_ct_RANLIB=$RANLIB
8119  # Extract the first word of "ranlib", so it can be a program name with args.
8120set dummy ranlib; ac_word=$2
8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122printf %s "checking for $ac_word... " >&6; }
8123if test ${ac_cv_prog_ac_ct_RANLIB+y}
8124then :
8125  printf %s "(cached) " >&6
8126else $as_nop
8127  if test -n "$ac_ct_RANLIB"; then
8128  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133  IFS=$as_save_IFS
8134  case $as_dir in #(((
8135    '') as_dir=./ ;;
8136    */) ;;
8137    *) as_dir=$as_dir/ ;;
8138  esac
8139    for ac_exec_ext in '' $ac_executable_extensions; do
8140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8141    ac_cv_prog_ac_ct_RANLIB="ranlib"
8142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8143    break 2
8144  fi
8145done
8146  done
8147IFS=$as_save_IFS
8148
8149fi
8150fi
8151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8152if test -n "$ac_ct_RANLIB"; then
8153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8154printf "%s\n" "$ac_ct_RANLIB" >&6; }
8155else
8156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157printf "%s\n" "no" >&6; }
8158fi
8159
8160  if test "x$ac_ct_RANLIB" = x; then
8161    RANLIB=":"
8162  else
8163    case $cross_compiling:$ac_tool_warned in
8164yes:)
8165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167ac_tool_warned=yes ;;
8168esac
8169    RANLIB=$ac_ct_RANLIB
8170  fi
8171else
8172  RANLIB="$ac_cv_prog_RANLIB"
8173fi
8174
8175test -z "$RANLIB" && RANLIB=:
8176
8177
8178
8179
8180
8181
8182# Determine commands to create old-style static archives.
8183old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8184old_postinstall_cmds='chmod 644 $oldlib'
8185old_postuninstall_cmds=
8186
8187if test -n "$RANLIB"; then
8188  case $host_os in
8189  bitrig* | openbsd*)
8190    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8191    ;;
8192  *)
8193    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8194    ;;
8195  esac
8196  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8197fi
8198
8199case $host_os in
8200  darwin*)
8201    lock_old_archive_extraction=yes ;;
8202  *)
8203    lock_old_archive_extraction=no ;;
8204esac
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244# If no C compiler was specified, use CC.
8245LTCC=${LTCC-"$CC"}
8246
8247# If no C compiler flags were specified, use CFLAGS.
8248LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8249
8250# Allow CC to be a program name with arguments.
8251compiler=$CC
8252
8253
8254# Check for command to grab the raw symbol name followed by C symbol from nm.
8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8256printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8257if test ${lt_cv_sys_global_symbol_pipe+y}
8258then :
8259  printf %s "(cached) " >&6
8260else $as_nop
8261
8262# These are sane defaults that work on at least a few old systems.
8263# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8264
8265# Character class describing NM global symbol codes.
8266symcode='[BCDEGRST]'
8267
8268# Regexp to match symbols that can be accessed directly from C.
8269sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8270
8271# Define system-specific variables.
8272case $host_os in
8273aix*)
8274  symcode='[BCDT]'
8275  ;;
8276cygwin* | mingw* | pw32* | cegcc*)
8277  symcode='[ABCDGISTW]'
8278  ;;
8279hpux*)
8280  if test ia64 = "$host_cpu"; then
8281    symcode='[ABCDEGRST]'
8282  fi
8283  ;;
8284irix* | nonstopux*)
8285  symcode='[BCDEGRST]'
8286  ;;
8287osf*)
8288  symcode='[BCDEGQRST]'
8289  ;;
8290solaris*)
8291  symcode='[BDRT]'
8292  ;;
8293sco3.2v5*)
8294  symcode='[DT]'
8295  ;;
8296sysv4.2uw2*)
8297  symcode='[DT]'
8298  ;;
8299sysv5* | sco5v6* | unixware* | OpenUNIX*)
8300  symcode='[ABDT]'
8301  ;;
8302sysv4)
8303  symcode='[DFNSTU]'
8304  ;;
8305esac
8306
8307# If we're using GNU nm, then use its standard symbol codes.
8308case `$NM -V 2>&1` in
8309*GNU* | *'with BFD'*)
8310  symcode='[ABCDGIRSTW]' ;;
8311esac
8312
8313if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8314  # Gets list of data symbols to import.
8315  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8316  # Adjust the below global symbol transforms to fixup imported variables.
8317  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8318  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8319  lt_c_name_lib_hook="\
8320  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8321  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8322else
8323  # Disable hooks by default.
8324  lt_cv_sys_global_symbol_to_import=
8325  lt_cdecl_hook=
8326  lt_c_name_hook=
8327  lt_c_name_lib_hook=
8328fi
8329
8330# Transform an extracted symbol line into a proper C declaration.
8331# Some systems (esp. on ia64) link data and code symbols differently,
8332# so use this general approach.
8333lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8334$lt_cdecl_hook\
8335" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8336" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8337
8338# Transform an extracted symbol line into symbol name and symbol address
8339lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8340$lt_c_name_hook\
8341" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8342" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8343
8344# Transform an extracted symbol line into symbol name with lib prefix and
8345# symbol address.
8346lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8347$lt_c_name_lib_hook\
8348" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8349" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8350" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8351
8352# Handle CRLF in mingw tool chain
8353opt_cr=
8354case $build_os in
8355mingw*)
8356  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8357  ;;
8358esac
8359
8360# Try without a prefix underscore, then with it.
8361for ac_symprfx in "" "_"; do
8362
8363  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8364  symxfrm="\\1 $ac_symprfx\\2 \\2"
8365
8366  # Write the raw and C identifiers.
8367  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8368    # Fake it for dumpbin and say T for any non-static function,
8369    # D for any global variable and I for any imported variable.
8370    # Also find C++ and __fastcall symbols from MSVC++,
8371    # which start with @ or ?.
8372    lt_cv_sys_global_symbol_pipe="$AWK '"\
8373"     {last_section=section; section=\$ 3};"\
8374"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8375"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8376"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8377"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8378"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8379"     \$ 0!~/External *\|/{next};"\
8380"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8381"     {if(hide[section]) next};"\
8382"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8383"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8384"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8385"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8386"     ' prfx=^$ac_symprfx"
8387  else
8388    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8389  fi
8390  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8391
8392  # Check to see that the pipe works correctly.
8393  pipe_works=no
8394
8395  rm -f conftest*
8396  cat > conftest.$ac_ext <<_LT_EOF
8397#ifdef __cplusplus
8398extern "C" {
8399#endif
8400char nm_test_var;
8401void nm_test_func(void);
8402void nm_test_func(void){}
8403#ifdef __cplusplus
8404}
8405#endif
8406int main(){nm_test_var='a';nm_test_func();return(0);}
8407_LT_EOF
8408
8409  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8410  (eval $ac_compile) 2>&5
8411  ac_status=$?
8412  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8413  test $ac_status = 0; }; then
8414    # Now try to grab the symbols.
8415    nlist=conftest.nm
8416    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8417  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8418  ac_status=$?
8419  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8420  test $ac_status = 0; } && test -s "$nlist"; then
8421      # Try sorting and uniquifying the output.
8422      if sort "$nlist" | uniq > "$nlist"T; then
8423	mv -f "$nlist"T "$nlist"
8424      else
8425	rm -f "$nlist"T
8426      fi
8427
8428      # Make sure that we snagged all the symbols we need.
8429      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8430	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8431	  cat <<_LT_EOF > conftest.$ac_ext
8432/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8433#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8434/* DATA imports from DLLs on WIN32 can't be const, because runtime
8435   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8436# define LT_DLSYM_CONST
8437#elif defined __osf__
8438/* This system does not cope well with relocations in const data.  */
8439# define LT_DLSYM_CONST
8440#else
8441# define LT_DLSYM_CONST const
8442#endif
8443
8444#ifdef __cplusplus
8445extern "C" {
8446#endif
8447
8448_LT_EOF
8449	  # Now generate the symbol file.
8450	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8451
8452	  cat <<_LT_EOF >> conftest.$ac_ext
8453
8454/* The mapping between symbol names and symbols.  */
8455LT_DLSYM_CONST struct {
8456  const char *name;
8457  void       *address;
8458}
8459lt__PROGRAM__LTX_preloaded_symbols[] =
8460{
8461  { "@PROGRAM@", (void *) 0 },
8462_LT_EOF
8463	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8464	  cat <<\_LT_EOF >> conftest.$ac_ext
8465  {0, (void *) 0}
8466};
8467
8468/* This works around a problem in FreeBSD linker */
8469#ifdef FREEBSD_WORKAROUND
8470static const void *lt_preloaded_setup() {
8471  return lt__PROGRAM__LTX_preloaded_symbols;
8472}
8473#endif
8474
8475#ifdef __cplusplus
8476}
8477#endif
8478_LT_EOF
8479	  # Now try linking the two files.
8480	  mv conftest.$ac_objext conftstm.$ac_objext
8481	  lt_globsym_save_LIBS=$LIBS
8482	  lt_globsym_save_CFLAGS=$CFLAGS
8483	  LIBS=conftstm.$ac_objext
8484	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8485	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8486  (eval $ac_link) 2>&5
8487  ac_status=$?
8488  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8489  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8490	    pipe_works=yes
8491	  fi
8492	  LIBS=$lt_globsym_save_LIBS
8493	  CFLAGS=$lt_globsym_save_CFLAGS
8494	else
8495	  echo "cannot find nm_test_func in $nlist" >&5
8496	fi
8497      else
8498	echo "cannot find nm_test_var in $nlist" >&5
8499      fi
8500    else
8501      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8502    fi
8503  else
8504    echo "$progname: failed program was:" >&5
8505    cat conftest.$ac_ext >&5
8506  fi
8507  rm -rf conftest* conftst*
8508
8509  # Do not use the global_symbol_pipe unless it works.
8510  if test yes = "$pipe_works"; then
8511    break
8512  else
8513    lt_cv_sys_global_symbol_pipe=
8514  fi
8515done
8516
8517fi
8518
8519if test -z "$lt_cv_sys_global_symbol_pipe"; then
8520  lt_cv_sys_global_symbol_to_cdecl=
8521fi
8522if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8524printf "%s\n" "failed" >&6; }
8525else
8526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8527printf "%s\n" "ok" >&6; }
8528fi
8529
8530# Response file support.
8531if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8532  nm_file_list_spec='@'
8533elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8534  nm_file_list_spec='@'
8535fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8574printf %s "checking for sysroot... " >&6; }
8575
8576# Check whether --with-sysroot was given.
8577if test ${with_sysroot+y}
8578then :
8579  withval=$with_sysroot;
8580else $as_nop
8581  with_sysroot=no
8582fi
8583
8584
8585lt_sysroot=
8586case $with_sysroot in #(
8587 yes)
8588   if test yes = "$GCC"; then
8589     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8590   fi
8591   ;; #(
8592 /*)
8593   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8594   ;; #(
8595 no|'')
8596   ;; #(
8597 *)
8598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8599printf "%s\n" "$with_sysroot" >&6; }
8600   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8601   ;;
8602esac
8603
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8605printf "%s\n" "${lt_sysroot:-no}" >&6; }
8606
8607
8608
8609
8610
8611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8612printf %s "checking for a working dd... " >&6; }
8613if test ${ac_cv_path_lt_DD+y}
8614then :
8615  printf %s "(cached) " >&6
8616else $as_nop
8617  printf 0123456789abcdef0123456789abcdef >conftest.i
8618cat conftest.i conftest.i >conftest2.i
8619: ${lt_DD:=$DD}
8620if test -z "$lt_DD"; then
8621  ac_path_lt_DD_found=false
8622  # Loop through the user's path and test for each of PROGNAME-LIST
8623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626  IFS=$as_save_IFS
8627  case $as_dir in #(((
8628    '') as_dir=./ ;;
8629    */) ;;
8630    *) as_dir=$as_dir/ ;;
8631  esac
8632    for ac_prog in dd
8633   do
8634    for ac_exec_ext in '' $ac_executable_extensions; do
8635      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8636      as_fn_executable_p "$ac_path_lt_DD" || continue
8637if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8638  cmp -s conftest.i conftest.out \
8639  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8640fi
8641      $ac_path_lt_DD_found && break 3
8642    done
8643  done
8644  done
8645IFS=$as_save_IFS
8646  if test -z "$ac_cv_path_lt_DD"; then
8647    :
8648  fi
8649else
8650  ac_cv_path_lt_DD=$lt_DD
8651fi
8652
8653rm -f conftest.i conftest2.i conftest.out
8654fi
8655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8656printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8657
8658
8659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8660printf %s "checking how to truncate binary pipes... " >&6; }
8661if test ${lt_cv_truncate_bin+y}
8662then :
8663  printf %s "(cached) " >&6
8664else $as_nop
8665  printf 0123456789abcdef0123456789abcdef >conftest.i
8666cat conftest.i conftest.i >conftest2.i
8667lt_cv_truncate_bin=
8668if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8669  cmp -s conftest.i conftest.out \
8670  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8671fi
8672rm -f conftest.i conftest2.i conftest.out
8673test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8674fi
8675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8676printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8677
8678
8679
8680
8681
8682
8683
8684# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8685func_cc_basename ()
8686{
8687    for cc_temp in $*""; do
8688      case $cc_temp in
8689        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8690        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8691        \-*) ;;
8692        *) break;;
8693      esac
8694    done
8695    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8696}
8697
8698# Check whether --enable-libtool-lock was given.
8699if test ${enable_libtool_lock+y}
8700then :
8701  enableval=$enable_libtool_lock;
8702fi
8703
8704test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8705
8706# Some flags need to be propagated to the compiler or linker for good
8707# libtool support.
8708case $host in
8709ia64-*-hpux*)
8710  # Find out what ABI is being produced by ac_compile, and set mode
8711  # options accordingly.
8712  echo 'int i;' > conftest.$ac_ext
8713  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8714  (eval $ac_compile) 2>&5
8715  ac_status=$?
8716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8717  test $ac_status = 0; }; then
8718    case `/usr/bin/file conftest.$ac_objext` in
8719      *ELF-32*)
8720	HPUX_IA64_MODE=32
8721	;;
8722      *ELF-64*)
8723	HPUX_IA64_MODE=64
8724	;;
8725    esac
8726  fi
8727  rm -rf conftest*
8728  ;;
8729*-*-irix6*)
8730  # Find out what ABI is being produced by ac_compile, and set linker
8731  # options accordingly.
8732  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8734  (eval $ac_compile) 2>&5
8735  ac_status=$?
8736  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8737  test $ac_status = 0; }; then
8738    if test yes = "$lt_cv_prog_gnu_ld"; then
8739      case `/usr/bin/file conftest.$ac_objext` in
8740	*32-bit*)
8741	  LD="${LD-ld} -melf32bsmip"
8742	  ;;
8743	*N32*)
8744	  LD="${LD-ld} -melf32bmipn32"
8745	  ;;
8746	*64-bit*)
8747	  LD="${LD-ld} -melf64bmip"
8748	;;
8749      esac
8750    else
8751      case `/usr/bin/file conftest.$ac_objext` in
8752	*32-bit*)
8753	  LD="${LD-ld} -32"
8754	  ;;
8755	*N32*)
8756	  LD="${LD-ld} -n32"
8757	  ;;
8758	*64-bit*)
8759	  LD="${LD-ld} -64"
8760	  ;;
8761      esac
8762    fi
8763  fi
8764  rm -rf conftest*
8765  ;;
8766
8767mips64*-*linux*)
8768  # Find out what ABI is being produced by ac_compile, and set linker
8769  # options accordingly.
8770  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8771  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8772  (eval $ac_compile) 2>&5
8773  ac_status=$?
8774  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8775  test $ac_status = 0; }; then
8776    emul=elf
8777    case `/usr/bin/file conftest.$ac_objext` in
8778      *32-bit*)
8779	emul="${emul}32"
8780	;;
8781      *64-bit*)
8782	emul="${emul}64"
8783	;;
8784    esac
8785    case `/usr/bin/file conftest.$ac_objext` in
8786      *MSB*)
8787	emul="${emul}btsmip"
8788	;;
8789      *LSB*)
8790	emul="${emul}ltsmip"
8791	;;
8792    esac
8793    case `/usr/bin/file conftest.$ac_objext` in
8794      *N32*)
8795	emul="${emul}n32"
8796	;;
8797    esac
8798    LD="${LD-ld} -m $emul"
8799  fi
8800  rm -rf conftest*
8801  ;;
8802
8803x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8804s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8805  # Find out what ABI is being produced by ac_compile, and set linker
8806  # options accordingly.  Note that the listed cases only cover the
8807  # situations where additional linker options are needed (such as when
8808  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8809  # vice versa); the common cases where no linker options are needed do
8810  # not appear in the list.
8811  echo 'int i;' > conftest.$ac_ext
8812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8813  (eval $ac_compile) 2>&5
8814  ac_status=$?
8815  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816  test $ac_status = 0; }; then
8817    case `/usr/bin/file conftest.o` in
8818      *32-bit*)
8819	case $host in
8820	  x86_64-*kfreebsd*-gnu)
8821	    LD="${LD-ld} -m elf_i386_fbsd"
8822	    ;;
8823	  x86_64-*linux*)
8824	    case `/usr/bin/file conftest.o` in
8825	      *x86-64*)
8826		LD="${LD-ld} -m elf32_x86_64"
8827		;;
8828	      *)
8829		LD="${LD-ld} -m elf_i386"
8830		;;
8831	    esac
8832	    ;;
8833	  powerpc64le-*linux*)
8834	    LD="${LD-ld} -m elf32lppclinux"
8835	    ;;
8836	  powerpc64-*linux*)
8837	    LD="${LD-ld} -m elf32ppclinux"
8838	    ;;
8839	  s390x-*linux*)
8840	    LD="${LD-ld} -m elf_s390"
8841	    ;;
8842	  sparc64-*linux*)
8843	    LD="${LD-ld} -m elf32_sparc"
8844	    ;;
8845	esac
8846	;;
8847      *64-bit*)
8848	case $host in
8849	  x86_64-*kfreebsd*-gnu)
8850	    LD="${LD-ld} -m elf_x86_64_fbsd"
8851	    ;;
8852	  x86_64-*linux*)
8853	    LD="${LD-ld} -m elf_x86_64"
8854	    ;;
8855	  powerpcle-*linux*)
8856	    LD="${LD-ld} -m elf64lppc"
8857	    ;;
8858	  powerpc-*linux*)
8859	    LD="${LD-ld} -m elf64ppc"
8860	    ;;
8861	  s390*-*linux*|s390*-*tpf*)
8862	    LD="${LD-ld} -m elf64_s390"
8863	    ;;
8864	  sparc*-*linux*)
8865	    LD="${LD-ld} -m elf64_sparc"
8866	    ;;
8867	esac
8868	;;
8869    esac
8870  fi
8871  rm -rf conftest*
8872  ;;
8873
8874*-*-sco3.2v5*)
8875  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8876  SAVE_CFLAGS=$CFLAGS
8877  CFLAGS="$CFLAGS -belf"
8878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8879printf %s "checking whether the C compiler needs -belf... " >&6; }
8880if test ${lt_cv_cc_needs_belf+y}
8881then :
8882  printf %s "(cached) " >&6
8883else $as_nop
8884  ac_ext=c
8885ac_cpp='$CPP $CPPFLAGS'
8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891/* end confdefs.h.  */
8892
8893int
8894main (void)
8895{
8896
8897  ;
8898  return 0;
8899}
8900_ACEOF
8901if ac_fn_c_try_link "$LINENO"
8902then :
8903  lt_cv_cc_needs_belf=yes
8904else $as_nop
8905  lt_cv_cc_needs_belf=no
8906fi
8907rm -f core conftest.err conftest.$ac_objext conftest.beam \
8908    conftest$ac_exeext conftest.$ac_ext
8909     ac_ext=c
8910ac_cpp='$CPP $CPPFLAGS'
8911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915fi
8916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8917printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8918  if test yes != "$lt_cv_cc_needs_belf"; then
8919    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8920    CFLAGS=$SAVE_CFLAGS
8921  fi
8922  ;;
8923*-*solaris*)
8924  # Find out what ABI is being produced by ac_compile, and set linker
8925  # options accordingly.
8926  echo 'int i;' > conftest.$ac_ext
8927  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8928  (eval $ac_compile) 2>&5
8929  ac_status=$?
8930  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8931  test $ac_status = 0; }; then
8932    case `/usr/bin/file conftest.o` in
8933    *64-bit*)
8934      case $lt_cv_prog_gnu_ld in
8935      yes*)
8936        case $host in
8937        i?86-*-solaris*|x86_64-*-solaris*)
8938          LD="${LD-ld} -m elf_x86_64"
8939          ;;
8940        sparc*-*-solaris*)
8941          LD="${LD-ld} -m elf64_sparc"
8942          ;;
8943        esac
8944        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8945        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8946          LD=${LD-ld}_sol2
8947        fi
8948        ;;
8949      *)
8950	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8951	  LD="${LD-ld} -64"
8952	fi
8953	;;
8954      esac
8955      ;;
8956    esac
8957  fi
8958  rm -rf conftest*
8959  ;;
8960esac
8961
8962need_locks=$enable_libtool_lock
8963
8964if test -n "$ac_tool_prefix"; then
8965  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8966set dummy ${ac_tool_prefix}mt; ac_word=$2
8967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968printf %s "checking for $ac_word... " >&6; }
8969if test ${ac_cv_prog_MANIFEST_TOOL+y}
8970then :
8971  printf %s "(cached) " >&6
8972else $as_nop
8973  if test -n "$MANIFEST_TOOL"; then
8974  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8975else
8976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $PATH
8978do
8979  IFS=$as_save_IFS
8980  case $as_dir in #(((
8981    '') as_dir=./ ;;
8982    */) ;;
8983    *) as_dir=$as_dir/ ;;
8984  esac
8985    for ac_exec_ext in '' $ac_executable_extensions; do
8986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8987    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8989    break 2
8990  fi
8991done
8992  done
8993IFS=$as_save_IFS
8994
8995fi
8996fi
8997MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8998if test -n "$MANIFEST_TOOL"; then
8999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9000printf "%s\n" "$MANIFEST_TOOL" >&6; }
9001else
9002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003printf "%s\n" "no" >&6; }
9004fi
9005
9006
9007fi
9008if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9009  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9010  # Extract the first word of "mt", so it can be a program name with args.
9011set dummy mt; ac_word=$2
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013printf %s "checking for $ac_word... " >&6; }
9014if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9015then :
9016  printf %s "(cached) " >&6
9017else $as_nop
9018  if test -n "$ac_ct_MANIFEST_TOOL"; then
9019  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9020else
9021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024  IFS=$as_save_IFS
9025  case $as_dir in #(((
9026    '') as_dir=./ ;;
9027    */) ;;
9028    *) as_dir=$as_dir/ ;;
9029  esac
9030    for ac_exec_ext in '' $ac_executable_extensions; do
9031  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9032    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9033    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9034    break 2
9035  fi
9036done
9037  done
9038IFS=$as_save_IFS
9039
9040fi
9041fi
9042ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9043if test -n "$ac_ct_MANIFEST_TOOL"; then
9044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9045printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9046else
9047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048printf "%s\n" "no" >&6; }
9049fi
9050
9051  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9052    MANIFEST_TOOL=":"
9053  else
9054    case $cross_compiling:$ac_tool_warned in
9055yes:)
9056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058ac_tool_warned=yes ;;
9059esac
9060    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9061  fi
9062else
9063  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9064fi
9065
9066test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9068printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9069if test ${lt_cv_path_mainfest_tool+y}
9070then :
9071  printf %s "(cached) " >&6
9072else $as_nop
9073  lt_cv_path_mainfest_tool=no
9074  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9075  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9076  cat conftest.err >&5
9077  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9078    lt_cv_path_mainfest_tool=yes
9079  fi
9080  rm -f conftest*
9081fi
9082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9083printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9084if test yes != "$lt_cv_path_mainfest_tool"; then
9085  MANIFEST_TOOL=:
9086fi
9087
9088
9089
9090
9091
9092
9093  case $host_os in
9094    rhapsody* | darwin*)
9095    if test -n "$ac_tool_prefix"; then
9096  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9097set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099printf %s "checking for $ac_word... " >&6; }
9100if test ${ac_cv_prog_DSYMUTIL+y}
9101then :
9102  printf %s "(cached) " >&6
9103else $as_nop
9104  if test -n "$DSYMUTIL"; then
9105  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9106else
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110  IFS=$as_save_IFS
9111  case $as_dir in #(((
9112    '') as_dir=./ ;;
9113    */) ;;
9114    *) as_dir=$as_dir/ ;;
9115  esac
9116    for ac_exec_ext in '' $ac_executable_extensions; do
9117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9118    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9120    break 2
9121  fi
9122done
9123  done
9124IFS=$as_save_IFS
9125
9126fi
9127fi
9128DSYMUTIL=$ac_cv_prog_DSYMUTIL
9129if test -n "$DSYMUTIL"; then
9130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9131printf "%s\n" "$DSYMUTIL" >&6; }
9132else
9133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134printf "%s\n" "no" >&6; }
9135fi
9136
9137
9138fi
9139if test -z "$ac_cv_prog_DSYMUTIL"; then
9140  ac_ct_DSYMUTIL=$DSYMUTIL
9141  # Extract the first word of "dsymutil", so it can be a program name with args.
9142set dummy dsymutil; ac_word=$2
9143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144printf %s "checking for $ac_word... " >&6; }
9145if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9146then :
9147  printf %s "(cached) " >&6
9148else $as_nop
9149  if test -n "$ac_ct_DSYMUTIL"; then
9150  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9151else
9152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155  IFS=$as_save_IFS
9156  case $as_dir in #(((
9157    '') as_dir=./ ;;
9158    */) ;;
9159    *) as_dir=$as_dir/ ;;
9160  esac
9161    for ac_exec_ext in '' $ac_executable_extensions; do
9162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9163    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9165    break 2
9166  fi
9167done
9168  done
9169IFS=$as_save_IFS
9170
9171fi
9172fi
9173ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9174if test -n "$ac_ct_DSYMUTIL"; then
9175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9176printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9177else
9178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179printf "%s\n" "no" >&6; }
9180fi
9181
9182  if test "x$ac_ct_DSYMUTIL" = x; then
9183    DSYMUTIL=":"
9184  else
9185    case $cross_compiling:$ac_tool_warned in
9186yes:)
9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189ac_tool_warned=yes ;;
9190esac
9191    DSYMUTIL=$ac_ct_DSYMUTIL
9192  fi
9193else
9194  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9195fi
9196
9197    if test -n "$ac_tool_prefix"; then
9198  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9199set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201printf %s "checking for $ac_word... " >&6; }
9202if test ${ac_cv_prog_NMEDIT+y}
9203then :
9204  printf %s "(cached) " >&6
9205else $as_nop
9206  if test -n "$NMEDIT"; then
9207  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9208else
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212  IFS=$as_save_IFS
9213  case $as_dir in #(((
9214    '') as_dir=./ ;;
9215    */) ;;
9216    *) as_dir=$as_dir/ ;;
9217  esac
9218    for ac_exec_ext in '' $ac_executable_extensions; do
9219  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9220    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9221    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9222    break 2
9223  fi
9224done
9225  done
9226IFS=$as_save_IFS
9227
9228fi
9229fi
9230NMEDIT=$ac_cv_prog_NMEDIT
9231if test -n "$NMEDIT"; then
9232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9233printf "%s\n" "$NMEDIT" >&6; }
9234else
9235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236printf "%s\n" "no" >&6; }
9237fi
9238
9239
9240fi
9241if test -z "$ac_cv_prog_NMEDIT"; then
9242  ac_ct_NMEDIT=$NMEDIT
9243  # Extract the first word of "nmedit", so it can be a program name with args.
9244set dummy nmedit; ac_word=$2
9245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246printf %s "checking for $ac_word... " >&6; }
9247if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9248then :
9249  printf %s "(cached) " >&6
9250else $as_nop
9251  if test -n "$ac_ct_NMEDIT"; then
9252  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9253else
9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255for as_dir in $PATH
9256do
9257  IFS=$as_save_IFS
9258  case $as_dir in #(((
9259    '') as_dir=./ ;;
9260    */) ;;
9261    *) as_dir=$as_dir/ ;;
9262  esac
9263    for ac_exec_ext in '' $ac_executable_extensions; do
9264  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9265    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9266    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9267    break 2
9268  fi
9269done
9270  done
9271IFS=$as_save_IFS
9272
9273fi
9274fi
9275ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9276if test -n "$ac_ct_NMEDIT"; then
9277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9278printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9279else
9280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281printf "%s\n" "no" >&6; }
9282fi
9283
9284  if test "x$ac_ct_NMEDIT" = x; then
9285    NMEDIT=":"
9286  else
9287    case $cross_compiling:$ac_tool_warned in
9288yes:)
9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9291ac_tool_warned=yes ;;
9292esac
9293    NMEDIT=$ac_ct_NMEDIT
9294  fi
9295else
9296  NMEDIT="$ac_cv_prog_NMEDIT"
9297fi
9298
9299    if test -n "$ac_tool_prefix"; then
9300  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9301set dummy ${ac_tool_prefix}lipo; ac_word=$2
9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303printf %s "checking for $ac_word... " >&6; }
9304if test ${ac_cv_prog_LIPO+y}
9305then :
9306  printf %s "(cached) " >&6
9307else $as_nop
9308  if test -n "$LIPO"; then
9309  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  case $as_dir in #(((
9316    '') as_dir=./ ;;
9317    */) ;;
9318    *) as_dir=$as_dir/ ;;
9319  esac
9320    for ac_exec_ext in '' $ac_executable_extensions; do
9321  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9322    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9323    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9324    break 2
9325  fi
9326done
9327  done
9328IFS=$as_save_IFS
9329
9330fi
9331fi
9332LIPO=$ac_cv_prog_LIPO
9333if test -n "$LIPO"; then
9334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9335printf "%s\n" "$LIPO" >&6; }
9336else
9337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338printf "%s\n" "no" >&6; }
9339fi
9340
9341
9342fi
9343if test -z "$ac_cv_prog_LIPO"; then
9344  ac_ct_LIPO=$LIPO
9345  # Extract the first word of "lipo", so it can be a program name with args.
9346set dummy lipo; ac_word=$2
9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348printf %s "checking for $ac_word... " >&6; }
9349if test ${ac_cv_prog_ac_ct_LIPO+y}
9350then :
9351  printf %s "(cached) " >&6
9352else $as_nop
9353  if test -n "$ac_ct_LIPO"; then
9354  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359  IFS=$as_save_IFS
9360  case $as_dir in #(((
9361    '') as_dir=./ ;;
9362    */) ;;
9363    *) as_dir=$as_dir/ ;;
9364  esac
9365    for ac_exec_ext in '' $ac_executable_extensions; do
9366  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9367    ac_cv_prog_ac_ct_LIPO="lipo"
9368    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9369    break 2
9370  fi
9371done
9372  done
9373IFS=$as_save_IFS
9374
9375fi
9376fi
9377ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9378if test -n "$ac_ct_LIPO"; then
9379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9380printf "%s\n" "$ac_ct_LIPO" >&6; }
9381else
9382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383printf "%s\n" "no" >&6; }
9384fi
9385
9386  if test "x$ac_ct_LIPO" = x; then
9387    LIPO=":"
9388  else
9389    case $cross_compiling:$ac_tool_warned in
9390yes:)
9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9392printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393ac_tool_warned=yes ;;
9394esac
9395    LIPO=$ac_ct_LIPO
9396  fi
9397else
9398  LIPO="$ac_cv_prog_LIPO"
9399fi
9400
9401    if test -n "$ac_tool_prefix"; then
9402  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9403set dummy ${ac_tool_prefix}otool; ac_word=$2
9404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405printf %s "checking for $ac_word... " >&6; }
9406if test ${ac_cv_prog_OTOOL+y}
9407then :
9408  printf %s "(cached) " >&6
9409else $as_nop
9410  if test -n "$OTOOL"; then
9411  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9412else
9413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $PATH
9415do
9416  IFS=$as_save_IFS
9417  case $as_dir in #(((
9418    '') as_dir=./ ;;
9419    */) ;;
9420    *) as_dir=$as_dir/ ;;
9421  esac
9422    for ac_exec_ext in '' $ac_executable_extensions; do
9423  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9424    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9425    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9426    break 2
9427  fi
9428done
9429  done
9430IFS=$as_save_IFS
9431
9432fi
9433fi
9434OTOOL=$ac_cv_prog_OTOOL
9435if test -n "$OTOOL"; then
9436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9437printf "%s\n" "$OTOOL" >&6; }
9438else
9439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440printf "%s\n" "no" >&6; }
9441fi
9442
9443
9444fi
9445if test -z "$ac_cv_prog_OTOOL"; then
9446  ac_ct_OTOOL=$OTOOL
9447  # Extract the first word of "otool", so it can be a program name with args.
9448set dummy otool; ac_word=$2
9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450printf %s "checking for $ac_word... " >&6; }
9451if test ${ac_cv_prog_ac_ct_OTOOL+y}
9452then :
9453  printf %s "(cached) " >&6
9454else $as_nop
9455  if test -n "$ac_ct_OTOOL"; then
9456  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9457else
9458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459for as_dir in $PATH
9460do
9461  IFS=$as_save_IFS
9462  case $as_dir in #(((
9463    '') as_dir=./ ;;
9464    */) ;;
9465    *) as_dir=$as_dir/ ;;
9466  esac
9467    for ac_exec_ext in '' $ac_executable_extensions; do
9468  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9469    ac_cv_prog_ac_ct_OTOOL="otool"
9470    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9471    break 2
9472  fi
9473done
9474  done
9475IFS=$as_save_IFS
9476
9477fi
9478fi
9479ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9480if test -n "$ac_ct_OTOOL"; then
9481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9482printf "%s\n" "$ac_ct_OTOOL" >&6; }
9483else
9484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485printf "%s\n" "no" >&6; }
9486fi
9487
9488  if test "x$ac_ct_OTOOL" = x; then
9489    OTOOL=":"
9490  else
9491    case $cross_compiling:$ac_tool_warned in
9492yes:)
9493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9494printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9495ac_tool_warned=yes ;;
9496esac
9497    OTOOL=$ac_ct_OTOOL
9498  fi
9499else
9500  OTOOL="$ac_cv_prog_OTOOL"
9501fi
9502
9503    if test -n "$ac_tool_prefix"; then
9504  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9505set dummy ${ac_tool_prefix}otool64; ac_word=$2
9506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507printf %s "checking for $ac_word... " >&6; }
9508if test ${ac_cv_prog_OTOOL64+y}
9509then :
9510  printf %s "(cached) " >&6
9511else $as_nop
9512  if test -n "$OTOOL64"; then
9513  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9514else
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518  IFS=$as_save_IFS
9519  case $as_dir in #(((
9520    '') as_dir=./ ;;
9521    */) ;;
9522    *) as_dir=$as_dir/ ;;
9523  esac
9524    for ac_exec_ext in '' $ac_executable_extensions; do
9525  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9526    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9527    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9528    break 2
9529  fi
9530done
9531  done
9532IFS=$as_save_IFS
9533
9534fi
9535fi
9536OTOOL64=$ac_cv_prog_OTOOL64
9537if test -n "$OTOOL64"; then
9538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9539printf "%s\n" "$OTOOL64" >&6; }
9540else
9541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542printf "%s\n" "no" >&6; }
9543fi
9544
9545
9546fi
9547if test -z "$ac_cv_prog_OTOOL64"; then
9548  ac_ct_OTOOL64=$OTOOL64
9549  # Extract the first word of "otool64", so it can be a program name with args.
9550set dummy otool64; ac_word=$2
9551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552printf %s "checking for $ac_word... " >&6; }
9553if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9554then :
9555  printf %s "(cached) " >&6
9556else $as_nop
9557  if test -n "$ac_ct_OTOOL64"; then
9558  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9559else
9560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561for as_dir in $PATH
9562do
9563  IFS=$as_save_IFS
9564  case $as_dir in #(((
9565    '') as_dir=./ ;;
9566    */) ;;
9567    *) as_dir=$as_dir/ ;;
9568  esac
9569    for ac_exec_ext in '' $ac_executable_extensions; do
9570  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9571    ac_cv_prog_ac_ct_OTOOL64="otool64"
9572    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9573    break 2
9574  fi
9575done
9576  done
9577IFS=$as_save_IFS
9578
9579fi
9580fi
9581ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9582if test -n "$ac_ct_OTOOL64"; then
9583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9584printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9585else
9586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587printf "%s\n" "no" >&6; }
9588fi
9589
9590  if test "x$ac_ct_OTOOL64" = x; then
9591    OTOOL64=":"
9592  else
9593    case $cross_compiling:$ac_tool_warned in
9594yes:)
9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9596printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9597ac_tool_warned=yes ;;
9598esac
9599    OTOOL64=$ac_ct_OTOOL64
9600  fi
9601else
9602  OTOOL64="$ac_cv_prog_OTOOL64"
9603fi
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9632printf %s "checking for -single_module linker flag... " >&6; }
9633if test ${lt_cv_apple_cc_single_mod+y}
9634then :
9635  printf %s "(cached) " >&6
9636else $as_nop
9637  lt_cv_apple_cc_single_mod=no
9638      if test -z "$LT_MULTI_MODULE"; then
9639	# By default we will add the -single_module flag. You can override
9640	# by either setting the environment variable LT_MULTI_MODULE
9641	# non-empty at configure time, or by adding -multi_module to the
9642	# link flags.
9643	rm -rf libconftest.dylib*
9644	echo "int foo(void){return 1;}" > conftest.c
9645	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9646-dynamiclib -Wl,-single_module conftest.c" >&5
9647	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9648	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9649        _lt_result=$?
9650	# If there is a non-empty error log, and "single_module"
9651	# appears in it, assume the flag caused a linker warning
9652        if test -s conftest.err && $GREP single_module conftest.err; then
9653	  cat conftest.err >&5
9654	# Otherwise, if the output was created with a 0 exit code from
9655	# the compiler, it worked.
9656	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9657	  lt_cv_apple_cc_single_mod=yes
9658	else
9659	  cat conftest.err >&5
9660	fi
9661	rm -rf libconftest.dylib*
9662	rm -f conftest.*
9663      fi
9664fi
9665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9666printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9667
9668    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9669printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9670if test ${lt_cv_ld_exported_symbols_list+y}
9671then :
9672  printf %s "(cached) " >&6
9673else $as_nop
9674  lt_cv_ld_exported_symbols_list=no
9675      save_LDFLAGS=$LDFLAGS
9676      echo "_main" > conftest.sym
9677      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9678      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h.  */
9680
9681int
9682main (void)
9683{
9684
9685  ;
9686  return 0;
9687}
9688_ACEOF
9689if ac_fn_c_try_link "$LINENO"
9690then :
9691  lt_cv_ld_exported_symbols_list=yes
9692else $as_nop
9693  lt_cv_ld_exported_symbols_list=no
9694fi
9695rm -f core conftest.err conftest.$ac_objext conftest.beam \
9696    conftest$ac_exeext conftest.$ac_ext
9697	LDFLAGS=$save_LDFLAGS
9698
9699fi
9700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9701printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9702
9703    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9704printf %s "checking for -force_load linker flag... " >&6; }
9705if test ${lt_cv_ld_force_load+y}
9706then :
9707  printf %s "(cached) " >&6
9708else $as_nop
9709  lt_cv_ld_force_load=no
9710      cat > conftest.c << _LT_EOF
9711int forced_loaded() { return 2;}
9712_LT_EOF
9713      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9714      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9715      echo "$AR cru libconftest.a conftest.o" >&5
9716      $AR cru libconftest.a conftest.o 2>&5
9717      echo "$RANLIB libconftest.a" >&5
9718      $RANLIB libconftest.a 2>&5
9719      cat > conftest.c << _LT_EOF
9720int main() { return 0;}
9721_LT_EOF
9722      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9723      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9724      _lt_result=$?
9725      if test -s conftest.err && $GREP force_load conftest.err; then
9726	cat conftest.err >&5
9727      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9728	lt_cv_ld_force_load=yes
9729      else
9730	cat conftest.err >&5
9731      fi
9732        rm -f conftest.err libconftest.a conftest conftest.c
9733        rm -rf conftest.dSYM
9734
9735fi
9736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9737printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9738    case $host_os in
9739    rhapsody* | darwin1.[012])
9740      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9741    darwin1.*)
9742      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9743    darwin*)
9744      # Open MPI patched for Darwin / MacOS Big Sur.  See
9745      # http://lists.gnu.org/archive/html/bug-libtool/2015-07/msg00001.html
9746      case ${MACOSX_DEPLOYMENT_TARGET},$host in
9747	10.[012],*|,*powerpc*)
9748	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9749	*)
9750	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9751      esac
9752    ;;
9753  esac
9754    if test yes = "$lt_cv_apple_cc_single_mod"; then
9755      _lt_dar_single_mod='$single_module'
9756    fi
9757    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9758      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9759    else
9760      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9761    fi
9762    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9763      _lt_dsymutil='~$DSYMUTIL $lib || :'
9764    else
9765      _lt_dsymutil=
9766    fi
9767    ;;
9768  esac
9769
9770# func_munge_path_list VARIABLE PATH
9771# -----------------------------------
9772# VARIABLE is name of variable containing _space_ separated list of
9773# directories to be munged by the contents of PATH, which is string
9774# having a format:
9775# "DIR[:DIR]:"
9776#       string "DIR[ DIR]" will be prepended to VARIABLE
9777# ":DIR[:DIR]"
9778#       string "DIR[ DIR]" will be appended to VARIABLE
9779# "DIRP[:DIRP]::[DIRA:]DIRA"
9780#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9781#       "DIRA[ DIRA]" will be appended to VARIABLE
9782# "DIR[:DIR]"
9783#       VARIABLE will be replaced by "DIR[ DIR]"
9784func_munge_path_list ()
9785{
9786    case x$2 in
9787    x)
9788        ;;
9789    *:)
9790        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9791        ;;
9792    x:*)
9793        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9794        ;;
9795    *::*)
9796        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9797        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9798        ;;
9799    *)
9800        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9801        ;;
9802    esac
9803}
9804
9805ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9806"
9807if test "x$ac_cv_header_dlfcn_h" = xyes
9808then :
9809  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9810
9811fi
9812
9813
9814
9815
9816
9817# Set options
9818enable_dlopen=yes
9819enable_win32_dll=yes
9820
9821case $host in
9822*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9823  if test -n "$ac_tool_prefix"; then
9824  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}as; ac_word=$2
9826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827printf %s "checking for $ac_word... " >&6; }
9828if test ${ac_cv_prog_AS+y}
9829then :
9830  printf %s "(cached) " >&6
9831else $as_nop
9832  if test -n "$AS"; then
9833  ac_cv_prog_AS="$AS" # Let the user override the test.
9834else
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838  IFS=$as_save_IFS
9839  case $as_dir in #(((
9840    '') as_dir=./ ;;
9841    */) ;;
9842    *) as_dir=$as_dir/ ;;
9843  esac
9844    for ac_exec_ext in '' $ac_executable_extensions; do
9845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9846    ac_cv_prog_AS="${ac_tool_prefix}as"
9847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9848    break 2
9849  fi
9850done
9851  done
9852IFS=$as_save_IFS
9853
9854fi
9855fi
9856AS=$ac_cv_prog_AS
9857if test -n "$AS"; then
9858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9859printf "%s\n" "$AS" >&6; }
9860else
9861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862printf "%s\n" "no" >&6; }
9863fi
9864
9865
9866fi
9867if test -z "$ac_cv_prog_AS"; then
9868  ac_ct_AS=$AS
9869  # Extract the first word of "as", so it can be a program name with args.
9870set dummy as; ac_word=$2
9871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872printf %s "checking for $ac_word... " >&6; }
9873if test ${ac_cv_prog_ac_ct_AS+y}
9874then :
9875  printf %s "(cached) " >&6
9876else $as_nop
9877  if test -n "$ac_ct_AS"; then
9878  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9879else
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883  IFS=$as_save_IFS
9884  case $as_dir in #(((
9885    '') as_dir=./ ;;
9886    */) ;;
9887    *) as_dir=$as_dir/ ;;
9888  esac
9889    for ac_exec_ext in '' $ac_executable_extensions; do
9890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9891    ac_cv_prog_ac_ct_AS="as"
9892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9893    break 2
9894  fi
9895done
9896  done
9897IFS=$as_save_IFS
9898
9899fi
9900fi
9901ac_ct_AS=$ac_cv_prog_ac_ct_AS
9902if test -n "$ac_ct_AS"; then
9903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9904printf "%s\n" "$ac_ct_AS" >&6; }
9905else
9906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907printf "%s\n" "no" >&6; }
9908fi
9909
9910  if test "x$ac_ct_AS" = x; then
9911    AS="false"
9912  else
9913    case $cross_compiling:$ac_tool_warned in
9914yes:)
9915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9917ac_tool_warned=yes ;;
9918esac
9919    AS=$ac_ct_AS
9920  fi
9921else
9922  AS="$ac_cv_prog_AS"
9923fi
9924
9925  if test -n "$ac_tool_prefix"; then
9926  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9927set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929printf %s "checking for $ac_word... " >&6; }
9930if test ${ac_cv_prog_DLLTOOL+y}
9931then :
9932  printf %s "(cached) " >&6
9933else $as_nop
9934  if test -n "$DLLTOOL"; then
9935  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940  IFS=$as_save_IFS
9941  case $as_dir in #(((
9942    '') as_dir=./ ;;
9943    */) ;;
9944    *) as_dir=$as_dir/ ;;
9945  esac
9946    for ac_exec_ext in '' $ac_executable_extensions; do
9947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9948    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9950    break 2
9951  fi
9952done
9953  done
9954IFS=$as_save_IFS
9955
9956fi
9957fi
9958DLLTOOL=$ac_cv_prog_DLLTOOL
9959if test -n "$DLLTOOL"; then
9960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9961printf "%s\n" "$DLLTOOL" >&6; }
9962else
9963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964printf "%s\n" "no" >&6; }
9965fi
9966
9967
9968fi
9969if test -z "$ac_cv_prog_DLLTOOL"; then
9970  ac_ct_DLLTOOL=$DLLTOOL
9971  # Extract the first word of "dlltool", so it can be a program name with args.
9972set dummy dlltool; ac_word=$2
9973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974printf %s "checking for $ac_word... " >&6; }
9975if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9976then :
9977  printf %s "(cached) " >&6
9978else $as_nop
9979  if test -n "$ac_ct_DLLTOOL"; then
9980  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9981else
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985  IFS=$as_save_IFS
9986  case $as_dir in #(((
9987    '') as_dir=./ ;;
9988    */) ;;
9989    *) as_dir=$as_dir/ ;;
9990  esac
9991    for ac_exec_ext in '' $ac_executable_extensions; do
9992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9993    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9995    break 2
9996  fi
9997done
9998  done
9999IFS=$as_save_IFS
10000
10001fi
10002fi
10003ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10004if test -n "$ac_ct_DLLTOOL"; then
10005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10006printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10007else
10008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009printf "%s\n" "no" >&6; }
10010fi
10011
10012  if test "x$ac_ct_DLLTOOL" = x; then
10013    DLLTOOL="false"
10014  else
10015    case $cross_compiling:$ac_tool_warned in
10016yes:)
10017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019ac_tool_warned=yes ;;
10020esac
10021    DLLTOOL=$ac_ct_DLLTOOL
10022  fi
10023else
10024  DLLTOOL="$ac_cv_prog_DLLTOOL"
10025fi
10026
10027  if test -n "$ac_tool_prefix"; then
10028  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10029set dummy ${ac_tool_prefix}objdump; ac_word=$2
10030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031printf %s "checking for $ac_word... " >&6; }
10032if test ${ac_cv_prog_OBJDUMP+y}
10033then :
10034  printf %s "(cached) " >&6
10035else $as_nop
10036  if test -n "$OBJDUMP"; then
10037  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10038else
10039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042  IFS=$as_save_IFS
10043  case $as_dir in #(((
10044    '') as_dir=./ ;;
10045    */) ;;
10046    *) as_dir=$as_dir/ ;;
10047  esac
10048    for ac_exec_ext in '' $ac_executable_extensions; do
10049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10050    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10052    break 2
10053  fi
10054done
10055  done
10056IFS=$as_save_IFS
10057
10058fi
10059fi
10060OBJDUMP=$ac_cv_prog_OBJDUMP
10061if test -n "$OBJDUMP"; then
10062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10063printf "%s\n" "$OBJDUMP" >&6; }
10064else
10065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066printf "%s\n" "no" >&6; }
10067fi
10068
10069
10070fi
10071if test -z "$ac_cv_prog_OBJDUMP"; then
10072  ac_ct_OBJDUMP=$OBJDUMP
10073  # Extract the first word of "objdump", so it can be a program name with args.
10074set dummy objdump; ac_word=$2
10075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076printf %s "checking for $ac_word... " >&6; }
10077if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10078then :
10079  printf %s "(cached) " >&6
10080else $as_nop
10081  if test -n "$ac_ct_OBJDUMP"; then
10082  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10083else
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087  IFS=$as_save_IFS
10088  case $as_dir in #(((
10089    '') as_dir=./ ;;
10090    */) ;;
10091    *) as_dir=$as_dir/ ;;
10092  esac
10093    for ac_exec_ext in '' $ac_executable_extensions; do
10094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10095    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10097    break 2
10098  fi
10099done
10100  done
10101IFS=$as_save_IFS
10102
10103fi
10104fi
10105ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10106if test -n "$ac_ct_OBJDUMP"; then
10107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10108printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10109else
10110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111printf "%s\n" "no" >&6; }
10112fi
10113
10114  if test "x$ac_ct_OBJDUMP" = x; then
10115    OBJDUMP="false"
10116  else
10117    case $cross_compiling:$ac_tool_warned in
10118yes:)
10119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121ac_tool_warned=yes ;;
10122esac
10123    OBJDUMP=$ac_ct_OBJDUMP
10124  fi
10125else
10126  OBJDUMP="$ac_cv_prog_OBJDUMP"
10127fi
10128
10129  ;;
10130esac
10131
10132test -z "$AS" && AS=as
10133
10134
10135
10136
10137
10138test -z "$DLLTOOL" && DLLTOOL=dlltool
10139
10140
10141
10142
10143
10144test -z "$OBJDUMP" && OBJDUMP=objdump
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157# Check whether --with-pic was given.
10158if test ${with_pic+y}
10159then :
10160  withval=$with_pic; lt_p=${PACKAGE-default}
10161    case $withval in
10162    yes|no) pic_mode=$withval ;;
10163    *)
10164      pic_mode=default
10165      # Look at the argument we got.  We use all the common list separators.
10166      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10167      for lt_pkg in $withval; do
10168	IFS=$lt_save_ifs
10169	if test "X$lt_pkg" = "X$lt_p"; then
10170	  pic_mode=yes
10171	fi
10172      done
10173      IFS=$lt_save_ifs
10174      ;;
10175    esac
10176else $as_nop
10177  pic_mode=default
10178fi
10179
10180
10181
10182
10183
10184
10185
10186
10187  # Check whether --enable-fast-install was given.
10188if test ${enable_fast_install+y}
10189then :
10190  enableval=$enable_fast_install; p=${PACKAGE-default}
10191    case $enableval in
10192    yes) enable_fast_install=yes ;;
10193    no) enable_fast_install=no ;;
10194    *)
10195      enable_fast_install=no
10196      # Look at the argument we got.  We use all the common list separators.
10197      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10198      for pkg in $enableval; do
10199	IFS=$lt_save_ifs
10200	if test "X$pkg" = "X$p"; then
10201	  enable_fast_install=yes
10202	fi
10203      done
10204      IFS=$lt_save_ifs
10205      ;;
10206    esac
10207else $as_nop
10208  enable_fast_install=yes
10209fi
10210
10211
10212
10213
10214
10215
10216
10217
10218  shared_archive_member_spec=
10219case $host,$enable_shared in
10220power*-*-aix[5-9]*,yes)
10221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10222printf %s "checking which variant of shared library versioning to provide... " >&6; }
10223
10224# Check whether --with-aix-soname was given.
10225if test ${with_aix_soname+y}
10226then :
10227  withval=$with_aix_soname; case $withval in
10228    aix|svr4|both)
10229      ;;
10230    *)
10231      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10232      ;;
10233    esac
10234    lt_cv_with_aix_soname=$with_aix_soname
10235else $as_nop
10236  if test ${lt_cv_with_aix_soname+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  lt_cv_with_aix_soname=aix
10241fi
10242
10243    with_aix_soname=$lt_cv_with_aix_soname
10244fi
10245
10246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10247printf "%s\n" "$with_aix_soname" >&6; }
10248  if test aix != "$with_aix_soname"; then
10249    # For the AIX way of multilib, we name the shared archive member
10250    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10251    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10252    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10253    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10254    if test 64 = "${OBJECT_MODE-32}"; then
10255      shared_archive_member_spec=shr_64
10256    else
10257      shared_archive_member_spec=shr
10258    fi
10259  fi
10260  ;;
10261*)
10262  with_aix_soname=aix
10263  ;;
10264esac
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275# This can be used to rebuild libtool when needed
10276LIBTOOL_DEPS=$ltmain
10277
10278# Always use our own libtool.
10279LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310test -z "$LN_S" && LN_S="ln -s"
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325if test -n "${ZSH_VERSION+set}"; then
10326   setopt NO_GLOB_SUBST
10327fi
10328
10329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10330printf %s "checking for objdir... " >&6; }
10331if test ${lt_cv_objdir+y}
10332then :
10333  printf %s "(cached) " >&6
10334else $as_nop
10335  rm -f .libs 2>/dev/null
10336mkdir .libs 2>/dev/null
10337if test -d .libs; then
10338  lt_cv_objdir=.libs
10339else
10340  # MS-DOS does not allow filenames that begin with a dot.
10341  lt_cv_objdir=_libs
10342fi
10343rmdir .libs 2>/dev/null
10344fi
10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10346printf "%s\n" "$lt_cv_objdir" >&6; }
10347objdir=$lt_cv_objdir
10348
10349
10350
10351
10352
10353printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10354
10355
10356
10357
10358case $host_os in
10359aix3*)
10360  # AIX sometimes has problems with the GCC collect2 program.  For some
10361  # reason, if we set the COLLECT_NAMES environment variable, the problems
10362  # vanish in a puff of smoke.
10363  if test set != "${COLLECT_NAMES+set}"; then
10364    COLLECT_NAMES=
10365    export COLLECT_NAMES
10366  fi
10367  ;;
10368esac
10369
10370# Global variables:
10371ofile=libtool
10372can_build_shared=yes
10373
10374# All known linkers require a '.a' archive for static linking (except MSVC,
10375# which needs '.lib').
10376libext=a
10377
10378with_gnu_ld=$lt_cv_prog_gnu_ld
10379
10380old_CC=$CC
10381old_CFLAGS=$CFLAGS
10382
10383# Set sane defaults for various variables
10384test -z "$CC" && CC=cc
10385test -z "$LTCC" && LTCC=$CC
10386test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10387test -z "$LD" && LD=ld
10388test -z "$ac_objext" && ac_objext=o
10389
10390func_cc_basename $compiler
10391cc_basename=$func_cc_basename_result
10392
10393
10394# Only perform the check for file, if the check method requires it
10395test -z "$MAGIC_CMD" && MAGIC_CMD=file
10396case $deplibs_check_method in
10397file_magic*)
10398  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10399    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10400printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10401if test ${lt_cv_path_MAGIC_CMD+y}
10402then :
10403  printf %s "(cached) " >&6
10404else $as_nop
10405  case $MAGIC_CMD in
10406[\\/*] |  ?:[\\/]*)
10407  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10408  ;;
10409*)
10410  lt_save_MAGIC_CMD=$MAGIC_CMD
10411  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10412  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10413  for ac_dir in $ac_dummy; do
10414    IFS=$lt_save_ifs
10415    test -z "$ac_dir" && ac_dir=.
10416    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10417      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10418      if test -n "$file_magic_test_file"; then
10419	case $deplibs_check_method in
10420	"file_magic "*)
10421	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10422	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10423	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10424	    $EGREP "$file_magic_regex" > /dev/null; then
10425	    :
10426	  else
10427	    cat <<_LT_EOF 1>&2
10428
10429*** Warning: the command libtool uses to detect shared libraries,
10430*** $file_magic_cmd, produces output that libtool cannot recognize.
10431*** The result is that libtool may fail to recognize shared libraries
10432*** as such.  This will affect the creation of libtool libraries that
10433*** depend on shared libraries, but programs linked with such libtool
10434*** libraries will work regardless of this problem.  Nevertheless, you
10435*** may want to report the problem to your system manager and/or to
10436*** bug-libtool@gnu.org
10437
10438_LT_EOF
10439	  fi ;;
10440	esac
10441      fi
10442      break
10443    fi
10444  done
10445  IFS=$lt_save_ifs
10446  MAGIC_CMD=$lt_save_MAGIC_CMD
10447  ;;
10448esac
10449fi
10450
10451MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10452if test -n "$MAGIC_CMD"; then
10453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10454printf "%s\n" "$MAGIC_CMD" >&6; }
10455else
10456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457printf "%s\n" "no" >&6; }
10458fi
10459
10460
10461
10462
10463
10464if test -z "$lt_cv_path_MAGIC_CMD"; then
10465  if test -n "$ac_tool_prefix"; then
10466    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10467printf %s "checking for file... " >&6; }
10468if test ${lt_cv_path_MAGIC_CMD+y}
10469then :
10470  printf %s "(cached) " >&6
10471else $as_nop
10472  case $MAGIC_CMD in
10473[\\/*] |  ?:[\\/]*)
10474  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10475  ;;
10476*)
10477  lt_save_MAGIC_CMD=$MAGIC_CMD
10478  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10479  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10480  for ac_dir in $ac_dummy; do
10481    IFS=$lt_save_ifs
10482    test -z "$ac_dir" && ac_dir=.
10483    if test -f "$ac_dir/file"; then
10484      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10485      if test -n "$file_magic_test_file"; then
10486	case $deplibs_check_method in
10487	"file_magic "*)
10488	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10489	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10490	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10491	    $EGREP "$file_magic_regex" > /dev/null; then
10492	    :
10493	  else
10494	    cat <<_LT_EOF 1>&2
10495
10496*** Warning: the command libtool uses to detect shared libraries,
10497*** $file_magic_cmd, produces output that libtool cannot recognize.
10498*** The result is that libtool may fail to recognize shared libraries
10499*** as such.  This will affect the creation of libtool libraries that
10500*** depend on shared libraries, but programs linked with such libtool
10501*** libraries will work regardless of this problem.  Nevertheless, you
10502*** may want to report the problem to your system manager and/or to
10503*** bug-libtool@gnu.org
10504
10505_LT_EOF
10506	  fi ;;
10507	esac
10508      fi
10509      break
10510    fi
10511  done
10512  IFS=$lt_save_ifs
10513  MAGIC_CMD=$lt_save_MAGIC_CMD
10514  ;;
10515esac
10516fi
10517
10518MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10519if test -n "$MAGIC_CMD"; then
10520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10521printf "%s\n" "$MAGIC_CMD" >&6; }
10522else
10523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524printf "%s\n" "no" >&6; }
10525fi
10526
10527
10528  else
10529    MAGIC_CMD=:
10530  fi
10531fi
10532
10533  fi
10534  ;;
10535esac
10536
10537# Use C for the default configuration in the libtool script
10538
10539lt_save_CC=$CC
10540ac_ext=c
10541ac_cpp='$CPP $CPPFLAGS'
10542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10544ac_compiler_gnu=$ac_cv_c_compiler_gnu
10545
10546
10547# Source file extension for C test sources.
10548ac_ext=c
10549
10550# Object file extension for compiled C test sources.
10551objext=o
10552objext=$objext
10553
10554# Code to be used in simple compile tests
10555lt_simple_compile_test_code="int some_variable = 0;"
10556
10557# Code to be used in simple link tests
10558lt_simple_link_test_code='int main(){return(0);}'
10559
10560
10561
10562
10563
10564
10565
10566# If no C compiler was specified, use CC.
10567LTCC=${LTCC-"$CC"}
10568
10569# If no C compiler flags were specified, use CFLAGS.
10570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10571
10572# Allow CC to be a program name with arguments.
10573compiler=$CC
10574
10575# Save the default compiler, since it gets overwritten when the other
10576# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10577compiler_DEFAULT=$CC
10578
10579# save warnings/boilerplate of simple test code
10580ac_outfile=conftest.$ac_objext
10581echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10582eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10583_lt_compiler_boilerplate=`cat conftest.err`
10584$RM conftest*
10585
10586ac_outfile=conftest.$ac_objext
10587echo "$lt_simple_link_test_code" >conftest.$ac_ext
10588eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10589_lt_linker_boilerplate=`cat conftest.err`
10590$RM -r conftest*
10591
10592
10593## CAVEAT EMPTOR:
10594## There is no encapsulation within the following macros, do not change
10595## the running order or otherwise move them around unless you know exactly
10596## what you are doing...
10597if test -n "$compiler"; then
10598
10599lt_prog_compiler_no_builtin_flag=
10600
10601if test yes = "$GCC"; then
10602  case $cc_basename in
10603  nvcc*)
10604    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10605  *)
10606    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10607  esac
10608
10609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10610printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10611if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10612then :
10613  printf %s "(cached) " >&6
10614else $as_nop
10615  lt_cv_prog_compiler_rtti_exceptions=no
10616   ac_outfile=conftest.$ac_objext
10617   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10618   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10619   # Insert the option either (1) after the last *FLAGS variable, or
10620   # (2) before a word containing "conftest.", or (3) at the end.
10621   # Note that $ac_compile itself does not contain backslashes and begins
10622   # with a dollar sign (not a hyphen), so the echo should work correctly.
10623   # The option is referenced via a variable to avoid confusing sed.
10624   lt_compile=`echo "$ac_compile" | $SED \
10625   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10626   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10627   -e 's:$: $lt_compiler_flag:'`
10628   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10629   (eval "$lt_compile" 2>conftest.err)
10630   ac_status=$?
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   if (exit $ac_status) && test -s "$ac_outfile"; then
10634     # The compiler can only warn and ignore the option if not recognized
10635     # So say no if there are warnings other than the usual output.
10636     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10637     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10638     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10639       lt_cv_prog_compiler_rtti_exceptions=yes
10640     fi
10641   fi
10642   $RM conftest*
10643
10644fi
10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10646printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10647
10648if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10649    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10650else
10651    :
10652fi
10653
10654fi
10655
10656
10657
10658
10659
10660
10661  lt_prog_compiler_wl=
10662lt_prog_compiler_pic=
10663lt_prog_compiler_static=
10664
10665
10666  if test yes = "$GCC"; then
10667    lt_prog_compiler_wl='-Wl,'
10668    lt_prog_compiler_static='-static'
10669
10670    case $host_os in
10671      aix*)
10672      # All AIX code is PIC.
10673      if test ia64 = "$host_cpu"; then
10674	# AIX 5 now supports IA64 processor
10675	lt_prog_compiler_static='-Bstatic'
10676      fi
10677      lt_prog_compiler_pic='-fPIC'
10678      ;;
10679
10680    amigaos*)
10681      case $host_cpu in
10682      powerpc)
10683            # see comment about AmigaOS4 .so support
10684            lt_prog_compiler_pic='-fPIC'
10685        ;;
10686      m68k)
10687            # FIXME: we need at least 68020 code to build shared libraries, but
10688            # adding the '-m68020' flag to GCC prevents building anything better,
10689            # like '-m68040'.
10690            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10691        ;;
10692      esac
10693      ;;
10694
10695    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10696      # PIC is the default for these OSes.
10697      ;;
10698
10699    mingw* | cygwin* | pw32* | os2* | cegcc*)
10700      # This hack is so that the source file can tell whether it is being
10701      # built for inclusion in a dll (and should export symbols for example).
10702      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10703      # (--disable-auto-import) libraries
10704      lt_prog_compiler_pic='-DDLL_EXPORT'
10705      case $host_os in
10706      os2*)
10707	lt_prog_compiler_static='$wl-static'
10708	;;
10709      esac
10710      ;;
10711
10712    darwin* | rhapsody*)
10713      # PIC is the default on this platform
10714      # Common symbols not allowed in MH_DYLIB files
10715      lt_prog_compiler_pic='-fno-common'
10716      ;;
10717
10718    haiku*)
10719      # PIC is the default for Haiku.
10720      # The "-static" flag exists, but is broken.
10721      lt_prog_compiler_static=
10722      ;;
10723
10724    hpux*)
10725      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10726      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10727      # sets the default TLS model and affects inlining.
10728      case $host_cpu in
10729      hppa*64*)
10730	# +Z the default
10731	;;
10732      *)
10733	lt_prog_compiler_pic='-fPIC'
10734	;;
10735      esac
10736      ;;
10737
10738    interix[3-9]*)
10739      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10740      # Instead, we relocate shared libraries at runtime.
10741      ;;
10742
10743    msdosdjgpp*)
10744      # Just because we use GCC doesn't mean we suddenly get shared libraries
10745      # on systems that don't support them.
10746      lt_prog_compiler_can_build_shared=no
10747      enable_shared=no
10748      ;;
10749
10750    *nto* | *qnx*)
10751      # QNX uses GNU C++, but need to define -shared option too, otherwise
10752      # it will coredump.
10753      lt_prog_compiler_pic='-fPIC -shared'
10754      ;;
10755
10756    sysv4*MP*)
10757      if test -d /usr/nec; then
10758	lt_prog_compiler_pic=-Kconform_pic
10759      fi
10760      ;;
10761
10762    *)
10763      lt_prog_compiler_pic='-fPIC'
10764      ;;
10765    esac
10766
10767    case $cc_basename in
10768    nvcc*) # Cuda Compiler Driver 2.2
10769      lt_prog_compiler_wl='-Xlinker '
10770      if test -n "$lt_prog_compiler_pic"; then
10771        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10772      fi
10773      ;;
10774    esac
10775  else
10776    # PORTME Check for flag to pass linker flags through the system compiler.
10777    case $host_os in
10778    aix*)
10779      lt_prog_compiler_wl='-Wl,'
10780      if test ia64 = "$host_cpu"; then
10781	# AIX 5 now supports IA64 processor
10782	lt_prog_compiler_static='-Bstatic'
10783      else
10784	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10785      fi
10786      ;;
10787
10788    darwin* | rhapsody*)
10789      # PIC is the default on this platform
10790      # Common symbols not allowed in MH_DYLIB files
10791      lt_prog_compiler_pic='-fno-common'
10792      case $cc_basename in
10793      nagfor*)
10794        # NAG Fortran compiler
10795        lt_prog_compiler_wl='-Wl,-Wl,,'
10796        lt_prog_compiler_pic='-PIC'
10797        lt_prog_compiler_static='-Bstatic'
10798        ;;
10799      esac
10800      ;;
10801
10802    mingw* | cygwin* | pw32* | os2* | cegcc*)
10803      # This hack is so that the source file can tell whether it is being
10804      # built for inclusion in a dll (and should export symbols for example).
10805      lt_prog_compiler_pic='-DDLL_EXPORT'
10806      case $host_os in
10807      os2*)
10808	lt_prog_compiler_static='$wl-static'
10809	;;
10810      esac
10811      ;;
10812
10813    hpux9* | hpux10* | hpux11*)
10814      lt_prog_compiler_wl='-Wl,'
10815      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10816      # not for PA HP-UX.
10817      case $host_cpu in
10818      hppa*64*|ia64*)
10819	# +Z the default
10820	;;
10821      *)
10822	lt_prog_compiler_pic='+Z'
10823	;;
10824      esac
10825      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10826      lt_prog_compiler_static='$wl-a ${wl}archive'
10827      ;;
10828
10829    irix5* | irix6* | nonstopux*)
10830      lt_prog_compiler_wl='-Wl,'
10831      # PIC (with -KPIC) is the default.
10832      lt_prog_compiler_static='-non_shared'
10833      ;;
10834
10835    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10836      case $cc_basename in
10837      # old Intel for x86_64, which still supported -KPIC.
10838      ecc*)
10839	lt_prog_compiler_wl='-Wl,'
10840	lt_prog_compiler_pic='-KPIC'
10841	lt_prog_compiler_static='-static'
10842        ;;
10843      # icc used to be incompatible with GCC.
10844      # ICC 10 doesn't accept -KPIC any more.
10845      icc* | ifort*)
10846	lt_prog_compiler_wl='-Wl,'
10847	lt_prog_compiler_pic='-fPIC'
10848	lt_prog_compiler_static='-static'
10849        ;;
10850      # Lahey Fortran 8.1.
10851      lf95*)
10852	lt_prog_compiler_wl='-Wl,'
10853	lt_prog_compiler_pic='--shared'
10854	lt_prog_compiler_static='--static'
10855	;;
10856      nagfor*)
10857	# NAG Fortran compiler
10858	lt_prog_compiler_wl='-Wl,-Wl,,'
10859	lt_prog_compiler_pic='-PIC'
10860	lt_prog_compiler_static='-Bstatic'
10861	;;
10862      tcc*)
10863	# Fabrice Bellard et al's Tiny C Compiler
10864	lt_prog_compiler_wl='-Wl,'
10865	lt_prog_compiler_pic='-fPIC'
10866	lt_prog_compiler_static='-static'
10867	;;
10868      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10869        # Portland Group compilers (*not* the Pentium gcc compiler,
10870	# which looks to be a dead project)
10871	lt_prog_compiler_wl='-Wl,'
10872	lt_prog_compiler_pic='-fpic'
10873	lt_prog_compiler_static='-Bstatic'
10874        ;;
10875      ccc*)
10876        lt_prog_compiler_wl='-Wl,'
10877        # All Alpha code is PIC.
10878        lt_prog_compiler_static='-non_shared'
10879        ;;
10880      xl* | bgxl* | bgf* | mpixl*)
10881	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10882	lt_prog_compiler_wl='-Wl,'
10883	lt_prog_compiler_pic='-qpic'
10884	lt_prog_compiler_static='-qstaticlink'
10885	;;
10886      *)
10887	case `$CC -V 2>&1 | sed 5q` in
10888	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10889	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10890	  lt_prog_compiler_pic='-KPIC'
10891	  lt_prog_compiler_static='-Bstatic'
10892	  lt_prog_compiler_wl=''
10893	  ;;
10894	*Sun\ F* | *Sun*Fortran*)
10895	  lt_prog_compiler_pic='-KPIC'
10896	  lt_prog_compiler_static='-Bstatic'
10897	  lt_prog_compiler_wl='-Qoption ld '
10898	  ;;
10899	*Sun\ C*)
10900	  # Sun C 5.9
10901	  lt_prog_compiler_pic='-KPIC'
10902	  lt_prog_compiler_static='-Bstatic'
10903	  lt_prog_compiler_wl='-Wl,'
10904	  ;;
10905        *Intel*\ [CF]*Compiler*)
10906	  lt_prog_compiler_wl='-Wl,'
10907	  lt_prog_compiler_pic='-fPIC'
10908	  lt_prog_compiler_static='-static'
10909	  ;;
10910	*Portland\ Group*)
10911	  lt_prog_compiler_wl='-Wl,'
10912	  lt_prog_compiler_pic='-fpic'
10913	  lt_prog_compiler_static='-Bstatic'
10914	  ;;
10915	esac
10916	;;
10917      esac
10918      ;;
10919
10920    newsos6)
10921      lt_prog_compiler_pic='-KPIC'
10922      lt_prog_compiler_static='-Bstatic'
10923      ;;
10924
10925    *nto* | *qnx*)
10926      # QNX uses GNU C++, but need to define -shared option too, otherwise
10927      # it will coredump.
10928      lt_prog_compiler_pic='-fPIC -shared'
10929      ;;
10930
10931    osf3* | osf4* | osf5*)
10932      lt_prog_compiler_wl='-Wl,'
10933      # All OSF/1 code is PIC.
10934      lt_prog_compiler_static='-non_shared'
10935      ;;
10936
10937    rdos*)
10938      lt_prog_compiler_static='-non_shared'
10939      ;;
10940
10941    solaris*)
10942      lt_prog_compiler_pic='-KPIC'
10943      lt_prog_compiler_static='-Bstatic'
10944      case $cc_basename in
10945      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10946	lt_prog_compiler_wl='-Qoption ld ';;
10947      *)
10948	lt_prog_compiler_wl='-Wl,';;
10949      esac
10950      ;;
10951
10952    sunos4*)
10953      lt_prog_compiler_wl='-Qoption ld '
10954      lt_prog_compiler_pic='-PIC'
10955      lt_prog_compiler_static='-Bstatic'
10956      ;;
10957
10958    sysv4 | sysv4.2uw2* | sysv4.3*)
10959      lt_prog_compiler_wl='-Wl,'
10960      lt_prog_compiler_pic='-KPIC'
10961      lt_prog_compiler_static='-Bstatic'
10962      ;;
10963
10964    sysv4*MP*)
10965      if test -d /usr/nec; then
10966	lt_prog_compiler_pic='-Kconform_pic'
10967	lt_prog_compiler_static='-Bstatic'
10968      fi
10969      ;;
10970
10971    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10972      lt_prog_compiler_wl='-Wl,'
10973      lt_prog_compiler_pic='-KPIC'
10974      lt_prog_compiler_static='-Bstatic'
10975      ;;
10976
10977    unicos*)
10978      lt_prog_compiler_wl='-Wl,'
10979      lt_prog_compiler_can_build_shared=no
10980      ;;
10981
10982    uts4*)
10983      lt_prog_compiler_pic='-pic'
10984      lt_prog_compiler_static='-Bstatic'
10985      ;;
10986
10987    *)
10988      lt_prog_compiler_can_build_shared=no
10989      ;;
10990    esac
10991  fi
10992
10993case $host_os in
10994  # For platforms that do not support PIC, -DPIC is meaningless:
10995  *djgpp*)
10996    lt_prog_compiler_pic=
10997    ;;
10998  *)
10999    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11000    ;;
11001esac
11002
11003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11004printf %s "checking for $compiler option to produce PIC... " >&6; }
11005if test ${lt_cv_prog_compiler_pic+y}
11006then :
11007  printf %s "(cached) " >&6
11008else $as_nop
11009  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11010fi
11011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11012printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11013lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11014
11015#
11016# Check to make sure the PIC flag actually works.
11017#
11018if test -n "$lt_prog_compiler_pic"; then
11019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11020printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11021if test ${lt_cv_prog_compiler_pic_works+y}
11022then :
11023  printf %s "(cached) " >&6
11024else $as_nop
11025  lt_cv_prog_compiler_pic_works=no
11026   ac_outfile=conftest.$ac_objext
11027   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11028   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11029   # Insert the option either (1) after the last *FLAGS variable, or
11030   # (2) before a word containing "conftest.", or (3) at the end.
11031   # Note that $ac_compile itself does not contain backslashes and begins
11032   # with a dollar sign (not a hyphen), so the echo should work correctly.
11033   # The option is referenced via a variable to avoid confusing sed.
11034   lt_compile=`echo "$ac_compile" | $SED \
11035   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11036   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11037   -e 's:$: $lt_compiler_flag:'`
11038   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11039   (eval "$lt_compile" 2>conftest.err)
11040   ac_status=$?
11041   cat conftest.err >&5
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   if (exit $ac_status) && test -s "$ac_outfile"; then
11044     # The compiler can only warn and ignore the option if not recognized
11045     # So say no if there are warnings other than the usual output.
11046     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11047     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11048     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11049       lt_cv_prog_compiler_pic_works=yes
11050     fi
11051   fi
11052   $RM conftest*
11053
11054fi
11055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11056printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11057
11058if test yes = "$lt_cv_prog_compiler_pic_works"; then
11059    case $lt_prog_compiler_pic in
11060     "" | " "*) ;;
11061     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11062     esac
11063else
11064    lt_prog_compiler_pic=
11065     lt_prog_compiler_can_build_shared=no
11066fi
11067
11068fi
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080#
11081# Check to make sure the static flag actually works.
11082#
11083wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11085printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11086if test ${lt_cv_prog_compiler_static_works+y}
11087then :
11088  printf %s "(cached) " >&6
11089else $as_nop
11090  lt_cv_prog_compiler_static_works=no
11091   save_LDFLAGS=$LDFLAGS
11092   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11093   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11094   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11095     # The linker can only warn and ignore the option if not recognized
11096     # So say no if there are warnings
11097     if test -s conftest.err; then
11098       # Append any errors to the config.log.
11099       cat conftest.err 1>&5
11100       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11101       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11102       if diff conftest.exp conftest.er2 >/dev/null; then
11103         lt_cv_prog_compiler_static_works=yes
11104       fi
11105     else
11106       lt_cv_prog_compiler_static_works=yes
11107     fi
11108   fi
11109   $RM -r conftest*
11110   LDFLAGS=$save_LDFLAGS
11111
11112fi
11113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11114printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11115
11116if test yes = "$lt_cv_prog_compiler_static_works"; then
11117    :
11118else
11119    lt_prog_compiler_static=
11120fi
11121
11122
11123
11124
11125
11126
11127
11128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11129printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11130if test ${lt_cv_prog_compiler_c_o+y}
11131then :
11132  printf %s "(cached) " >&6
11133else $as_nop
11134  lt_cv_prog_compiler_c_o=no
11135   $RM -r conftest 2>/dev/null
11136   mkdir conftest
11137   cd conftest
11138   mkdir out
11139   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11140
11141   lt_compiler_flag="-o out/conftest2.$ac_objext"
11142   # Insert the option either (1) after the last *FLAGS variable, or
11143   # (2) before a word containing "conftest.", or (3) at the end.
11144   # Note that $ac_compile itself does not contain backslashes and begins
11145   # with a dollar sign (not a hyphen), so the echo should work correctly.
11146   lt_compile=`echo "$ac_compile" | $SED \
11147   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11148   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11149   -e 's:$: $lt_compiler_flag:'`
11150   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11151   (eval "$lt_compile" 2>out/conftest.err)
11152   ac_status=$?
11153   cat out/conftest.err >&5
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11156   then
11157     # The compiler can only warn and ignore the option if not recognized
11158     # So say no if there are warnings
11159     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11160     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11161     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11162       lt_cv_prog_compiler_c_o=yes
11163     fi
11164   fi
11165   chmod u+w . 2>&5
11166   $RM conftest*
11167   # SGI C++ compiler will create directory out/ii_files/ for
11168   # template instantiation
11169   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11170   $RM out/* && rmdir out
11171   cd ..
11172   $RM -r conftest
11173   $RM conftest*
11174
11175fi
11176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11177printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11178
11179
11180
11181
11182
11183
11184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11185printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11186if test ${lt_cv_prog_compiler_c_o+y}
11187then :
11188  printf %s "(cached) " >&6
11189else $as_nop
11190  lt_cv_prog_compiler_c_o=no
11191   $RM -r conftest 2>/dev/null
11192   mkdir conftest
11193   cd conftest
11194   mkdir out
11195   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11196
11197   lt_compiler_flag="-o out/conftest2.$ac_objext"
11198   # Insert the option either (1) after the last *FLAGS variable, or
11199   # (2) before a word containing "conftest.", or (3) at the end.
11200   # Note that $ac_compile itself does not contain backslashes and begins
11201   # with a dollar sign (not a hyphen), so the echo should work correctly.
11202   lt_compile=`echo "$ac_compile" | $SED \
11203   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11205   -e 's:$: $lt_compiler_flag:'`
11206   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11207   (eval "$lt_compile" 2>out/conftest.err)
11208   ac_status=$?
11209   cat out/conftest.err >&5
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11212   then
11213     # The compiler can only warn and ignore the option if not recognized
11214     # So say no if there are warnings
11215     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11216     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11217     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11218       lt_cv_prog_compiler_c_o=yes
11219     fi
11220   fi
11221   chmod u+w . 2>&5
11222   $RM conftest*
11223   # SGI C++ compiler will create directory out/ii_files/ for
11224   # template instantiation
11225   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11226   $RM out/* && rmdir out
11227   cd ..
11228   $RM -r conftest
11229   $RM conftest*
11230
11231fi
11232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11233printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11234
11235
11236
11237
11238hard_links=nottested
11239if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11240  # do not overwrite the value of need_locks provided by the user
11241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11242printf %s "checking if we can lock with hard links... " >&6; }
11243  hard_links=yes
11244  $RM conftest*
11245  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11246  touch conftest.a
11247  ln conftest.a conftest.b 2>&5 || hard_links=no
11248  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11250printf "%s\n" "$hard_links" >&6; }
11251  if test no = "$hard_links"; then
11252    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11253printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11254    need_locks=warn
11255  fi
11256else
11257  need_locks=no
11258fi
11259
11260
11261
11262
11263
11264
11265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11266printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11267
11268  runpath_var=
11269  allow_undefined_flag=
11270  always_export_symbols=no
11271  archive_cmds=
11272  archive_expsym_cmds=
11273  compiler_needs_object=no
11274  enable_shared_with_static_runtimes=no
11275  export_dynamic_flag_spec=
11276  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11277  hardcode_automatic=no
11278  hardcode_direct=no
11279  hardcode_direct_absolute=no
11280  hardcode_libdir_flag_spec=
11281  hardcode_libdir_separator=
11282  hardcode_minus_L=no
11283  hardcode_shlibpath_var=unsupported
11284  inherit_rpath=no
11285  link_all_deplibs=unknown
11286  module_cmds=
11287  module_expsym_cmds=
11288  old_archive_from_new_cmds=
11289  old_archive_from_expsyms_cmds=
11290  thread_safe_flag_spec=
11291  whole_archive_flag_spec=
11292  # include_expsyms should be a list of space-separated symbols to be *always*
11293  # included in the symbol list
11294  include_expsyms=
11295  # exclude_expsyms can be an extended regexp of symbols to exclude
11296  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11297  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11298  # as well as any symbol that contains 'd'.
11299  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11300  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11301  # platforms (ab)use it in PIC code, but their linkers get confused if
11302  # the symbol is explicitly referenced.  Since portable code cannot
11303  # rely on this symbol name, it's probably fine to never include it in
11304  # preloaded symbol tables.
11305  # Exclude shared library initialization/finalization symbols.
11306  extract_expsyms_cmds=
11307
11308  case $host_os in
11309  cygwin* | mingw* | pw32* | cegcc*)
11310    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11311    # When not using gcc, we currently assume that we are using
11312    # Microsoft Visual C++.
11313    if test yes != "$GCC"; then
11314      with_gnu_ld=no
11315    fi
11316    ;;
11317  interix*)
11318    # we just hope/assume this is gcc and not c89 (= MSVC++)
11319    with_gnu_ld=yes
11320    ;;
11321  openbsd* | bitrig*)
11322    with_gnu_ld=no
11323    ;;
11324  esac
11325
11326  ld_shlibs=yes
11327
11328  # On some targets, GNU ld is compatible enough with the native linker
11329  # that we're better off using the native interface for both.
11330  lt_use_gnu_ld_interface=no
11331  if test yes = "$with_gnu_ld"; then
11332    case $host_os in
11333      aix*)
11334	# The AIX port of GNU ld has always aspired to compatibility
11335	# with the native linker.  However, as the warning in the GNU ld
11336	# block says, versions before 2.19.5* couldn't really create working
11337	# shared libraries, regardless of the interface used.
11338	case `$LD -v 2>&1` in
11339	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11340	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11341	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11342	  *)
11343	    lt_use_gnu_ld_interface=yes
11344	    ;;
11345	esac
11346	;;
11347      *)
11348	lt_use_gnu_ld_interface=yes
11349	;;
11350    esac
11351  fi
11352
11353  if test yes = "$lt_use_gnu_ld_interface"; then
11354    # If archive_cmds runs LD, not CC, wlarc should be empty
11355    wlarc='$wl'
11356
11357    # Set some defaults for GNU ld with shared library support. These
11358    # are reset later if shared libraries are not supported. Putting them
11359    # here allows them to be overridden if necessary.
11360    runpath_var=LD_RUN_PATH
11361    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11362    export_dynamic_flag_spec='$wl--export-dynamic'
11363    # ancient GNU ld didn't support --whole-archive et. al.
11364    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11365      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11366    else
11367      whole_archive_flag_spec=
11368    fi
11369    supports_anon_versioning=no
11370    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11371      *GNU\ gold*) supports_anon_versioning=yes ;;
11372      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11373      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11374      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11375      *\ 2.11.*) ;; # other 2.11 versions
11376      *) supports_anon_versioning=yes ;;
11377    esac
11378
11379    # See if GNU ld supports shared libraries.
11380    case $host_os in
11381    aix[3-9]*)
11382      # On AIX/PPC, the GNU linker is very broken
11383      if test ia64 != "$host_cpu"; then
11384	ld_shlibs=no
11385	cat <<_LT_EOF 1>&2
11386
11387*** Warning: the GNU linker, at least up to release 2.19, is reported
11388*** to be unable to reliably create shared libraries on AIX.
11389*** Therefore, libtool is disabling shared libraries support.  If you
11390*** really care for shared libraries, you may want to install binutils
11391*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11392*** You will then need to restart the configuration process.
11393
11394_LT_EOF
11395      fi
11396      ;;
11397
11398    amigaos*)
11399      case $host_cpu in
11400      powerpc)
11401            # see comment about AmigaOS4 .so support
11402            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11403            archive_expsym_cmds=''
11404        ;;
11405      m68k)
11406            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)'
11407            hardcode_libdir_flag_spec='-L$libdir'
11408            hardcode_minus_L=yes
11409        ;;
11410      esac
11411      ;;
11412
11413    beos*)
11414      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11415	allow_undefined_flag=unsupported
11416	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11417	# support --undefined.  This deserves some investigation.  FIXME
11418	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11419      else
11420	ld_shlibs=no
11421      fi
11422      ;;
11423
11424    cygwin* | mingw* | pw32* | cegcc*)
11425      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11426      # as there is no search path for DLLs.
11427      hardcode_libdir_flag_spec='-L$libdir'
11428      export_dynamic_flag_spec='$wl--export-all-symbols'
11429      allow_undefined_flag=unsupported
11430      always_export_symbols=no
11431      enable_shared_with_static_runtimes=yes
11432      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'
11433      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11434
11435      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11436        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11437	# If the export-symbols file already is a .def file, use it as
11438	# is; otherwise, prepend EXPORTS...
11439	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11440          cp $export_symbols $output_objdir/$soname.def;
11441        else
11442          echo EXPORTS > $output_objdir/$soname.def;
11443          cat $export_symbols >> $output_objdir/$soname.def;
11444        fi~
11445        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11446      else
11447	ld_shlibs=no
11448      fi
11449      ;;
11450
11451    haiku*)
11452      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11453      link_all_deplibs=yes
11454      ;;
11455
11456    os2*)
11457      hardcode_libdir_flag_spec='-L$libdir'
11458      hardcode_minus_L=yes
11459      allow_undefined_flag=unsupported
11460      shrext_cmds=.dll
11461      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11462	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11463	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11464	$ECHO EXPORTS >> $output_objdir/$libname.def~
11465	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11466	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11467	emximp -o $lib $output_objdir/$libname.def'
11468      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11469	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11470	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11471	$ECHO EXPORTS >> $output_objdir/$libname.def~
11472	prefix_cmds="$SED"~
11473	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11474	  prefix_cmds="$prefix_cmds -e 1d";
11475	fi~
11476	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11477	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11478	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11479	emximp -o $lib $output_objdir/$libname.def'
11480      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11481      enable_shared_with_static_runtimes=yes
11482      ;;
11483
11484    interix[3-9]*)
11485      hardcode_direct=no
11486      hardcode_shlibpath_var=no
11487      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11488      export_dynamic_flag_spec='$wl-E'
11489      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11490      # Instead, shared libraries are loaded at an image base (0x10000000 by
11491      # default) and relocated if they conflict, which is a slow very memory
11492      # consuming and fragmenting process.  To avoid this, we pick a random,
11493      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11494      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11495      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11496      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'
11497      ;;
11498
11499    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11500      tmp_diet=no
11501      if test linux-dietlibc = "$host_os"; then
11502	case $cc_basename in
11503	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11504	esac
11505      fi
11506      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11507	 && test no = "$tmp_diet"
11508      then
11509	tmp_addflag=' $pic_flag'
11510	tmp_sharedflag='-shared'
11511	case $cc_basename,$host_cpu in
11512        pgcc*)				# Portland Group C compiler
11513	  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'
11514	  tmp_addflag=' $pic_flag'
11515	  ;;
11516	pgf77* | pgf90* | pgf95* | pgfortran*)
11517					# Portland Group f77 and f90 compilers
11518	  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'
11519	  tmp_addflag=' $pic_flag -Mnomain' ;;
11520	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11521	  tmp_addflag=' -i_dynamic' ;;
11522	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11523	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11524	ifc* | ifort*)			# Intel Fortran compiler
11525	  tmp_addflag=' -nofor_main' ;;
11526	lf95*)				# Lahey Fortran 8.1
11527	  whole_archive_flag_spec=
11528	  tmp_sharedflag='--shared' ;;
11529        nagfor*)                        # NAGFOR 5.3
11530          tmp_sharedflag='-Wl,-shared' ;;
11531	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11532	  tmp_sharedflag='-qmkshrobj'
11533	  tmp_addflag= ;;
11534	nvcc*)	# Cuda Compiler Driver 2.2
11535	  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'
11536	  compiler_needs_object=yes
11537	  ;;
11538	esac
11539	case `$CC -V 2>&1 | sed 5q` in
11540	*Sun\ C*)			# Sun C 5.9
11541	  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'
11542	  compiler_needs_object=yes
11543	  tmp_sharedflag='-G' ;;
11544	*Sun\ F*)			# Sun Fortran 8.3
11545	  tmp_sharedflag='-G' ;;
11546	esac
11547	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11548
11549        if test yes = "$supports_anon_versioning"; then
11550          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11551            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11552            echo "local: *; };" >> $output_objdir/$libname.ver~
11553            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11554        fi
11555
11556	case $cc_basename in
11557	tcc*)
11558	  export_dynamic_flag_spec='-rdynamic'
11559	  ;;
11560	xlf* | bgf* | bgxlf* | mpixlf*)
11561	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11562	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11563	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11564	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11565	  if test yes = "$supports_anon_versioning"; then
11566	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11567              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11568              echo "local: *; };" >> $output_objdir/$libname.ver~
11569              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11570	  fi
11571	  ;;
11572	esac
11573      else
11574        ld_shlibs=no
11575      fi
11576      ;;
11577
11578    netbsd*)
11579      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11580	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11581	wlarc=
11582      else
11583	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11584	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11585      fi
11586      ;;
11587
11588    solaris*)
11589      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11590	ld_shlibs=no
11591	cat <<_LT_EOF 1>&2
11592
11593*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11594*** create shared libraries on Solaris systems.  Therefore, libtool
11595*** is disabling shared libraries support.  We urge you to upgrade GNU
11596*** binutils to release 2.9.1 or newer.  Another option is to modify
11597*** your PATH or compiler configuration so that the native linker is
11598*** used, and then restart.
11599
11600_LT_EOF
11601      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11602	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11603	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11604      else
11605	ld_shlibs=no
11606      fi
11607      ;;
11608
11609    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11610      case `$LD -v 2>&1` in
11611        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11612	ld_shlibs=no
11613	cat <<_LT_EOF 1>&2
11614
11615*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11616*** reliably create shared libraries on SCO systems.  Therefore, libtool
11617*** is disabling shared libraries support.  We urge you to upgrade GNU
11618*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11619*** your PATH or compiler configuration so that the native linker is
11620*** used, and then restart.
11621
11622_LT_EOF
11623	;;
11624	*)
11625	  # For security reasons, it is highly recommended that you always
11626	  # use absolute paths for naming shared libraries, and exclude the
11627	  # DT_RUNPATH tag from executables and libraries.  But doing so
11628	  # requires that you compile everything twice, which is a pain.
11629	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11630	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11631	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11632	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11633	  else
11634	    ld_shlibs=no
11635	  fi
11636	;;
11637      esac
11638      ;;
11639
11640    sunos4*)
11641      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11642      wlarc=
11643      hardcode_direct=yes
11644      hardcode_shlibpath_var=no
11645      ;;
11646
11647    *)
11648      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11649	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11650	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11651      else
11652	ld_shlibs=no
11653      fi
11654      ;;
11655    esac
11656
11657    if test no = "$ld_shlibs"; then
11658      runpath_var=
11659      hardcode_libdir_flag_spec=
11660      export_dynamic_flag_spec=
11661      whole_archive_flag_spec=
11662    fi
11663  else
11664    # PORTME fill in a description of your system's linker (not GNU ld)
11665    case $host_os in
11666    aix3*)
11667      allow_undefined_flag=unsupported
11668      always_export_symbols=yes
11669      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'
11670      # Note: this linker hardcodes the directories in LIBPATH if there
11671      # are no directories specified by -L.
11672      hardcode_minus_L=yes
11673      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11674	# Neither direct hardcoding nor static linking is supported with a
11675	# broken collect2.
11676	hardcode_direct=unsupported
11677      fi
11678      ;;
11679
11680    aix[4-9]*)
11681      if test ia64 = "$host_cpu"; then
11682	# On IA64, the linker does run time linking by default, so we don't
11683	# have to do anything special.
11684	aix_use_runtimelinking=no
11685	exp_sym_flag='-Bexport'
11686	no_entry_flag=
11687      else
11688	# If we're using GNU nm, then we don't want the "-C" option.
11689	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11690	# Without the "-l" option, or with the "-B" option, AIX nm treats
11691	# weak defined symbols like other global defined symbols, whereas
11692	# GNU nm marks them as "W".
11693	# While the 'weak' keyword is ignored in the Export File, we need
11694	# it in the Import File for the 'aix-soname' feature, so we have
11695	# to replace the "-B" option with "-P" for AIX nm.
11696	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11697	  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'
11698	else
11699	  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'
11700	fi
11701	aix_use_runtimelinking=no
11702
11703	# Test if we are trying to use run time linking or normal
11704	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11705	# have runtime linking enabled, and use it for executables.
11706	# For shared libraries, we enable/disable runtime linking
11707	# depending on the kind of the shared library created -
11708	# when "with_aix_soname,aix_use_runtimelinking" is:
11709	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11710	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11711	#            lib.a           static archive
11712	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11713	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11714	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11715	#            lib.a(lib.so.V) shared, rtl:no
11716	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11717	#            lib.a           static archive
11718	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11719	  for ld_flag in $LDFLAGS; do
11720	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11721	    aix_use_runtimelinking=yes
11722	    break
11723	  fi
11724	  done
11725	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11726	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11727	    # so we don't have lib.a shared libs to link our executables.
11728	    # We have to force runtime linking in this case.
11729	    aix_use_runtimelinking=yes
11730	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11731	  fi
11732	  ;;
11733	esac
11734
11735	exp_sym_flag='-bexport'
11736	no_entry_flag='-bnoentry'
11737      fi
11738
11739      # When large executables or shared objects are built, AIX ld can
11740      # have problems creating the table of contents.  If linking a library
11741      # or program results in "error TOC overflow" add -mminimal-toc to
11742      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11743      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11744
11745      archive_cmds=''
11746      hardcode_direct=yes
11747      hardcode_direct_absolute=yes
11748      hardcode_libdir_separator=':'
11749      link_all_deplibs=yes
11750      file_list_spec='$wl-f,'
11751      case $with_aix_soname,$aix_use_runtimelinking in
11752      aix,*) ;; # traditional, no import file
11753      svr4,* | *,yes) # use import file
11754	# The Import File defines what to hardcode.
11755	hardcode_direct=no
11756	hardcode_direct_absolute=no
11757	;;
11758      esac
11759
11760      if test yes = "$GCC"; then
11761	case $host_os in aix4.[012]|aix4.[012].*)
11762	# We only want to do this on AIX 4.2 and lower, the check
11763	# below for broken collect2 doesn't work under 4.3+
11764	  collect2name=`$CC -print-prog-name=collect2`
11765	  if test -f "$collect2name" &&
11766	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11767	  then
11768	  # We have reworked collect2
11769	  :
11770	  else
11771	  # We have old collect2
11772	  hardcode_direct=unsupported
11773	  # It fails to find uninstalled libraries when the uninstalled
11774	  # path is not listed in the libpath.  Setting hardcode_minus_L
11775	  # to unsupported forces relinking
11776	  hardcode_minus_L=yes
11777	  hardcode_libdir_flag_spec='-L$libdir'
11778	  hardcode_libdir_separator=
11779	  fi
11780	  ;;
11781	esac
11782	shared_flag='-shared'
11783	if test yes = "$aix_use_runtimelinking"; then
11784	  shared_flag="$shared_flag "'$wl-G'
11785	fi
11786	# Need to ensure runtime linking is disabled for the traditional
11787	# shared library, or the linker may eventually find shared libraries
11788	# /with/ Import File - we do not want to mix them.
11789	shared_flag_aix='-shared'
11790	shared_flag_svr4='-shared $wl-G'
11791      else
11792	# not using gcc
11793	if test ia64 = "$host_cpu"; then
11794	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11795	# chokes on -Wl,-G. The following line is correct:
11796	  shared_flag='-G'
11797	else
11798	  if test yes = "$aix_use_runtimelinking"; then
11799	    shared_flag='$wl-G'
11800	  else
11801	    shared_flag='$wl-bM:SRE'
11802	  fi
11803	  shared_flag_aix='$wl-bM:SRE'
11804	  shared_flag_svr4='$wl-G'
11805	fi
11806      fi
11807
11808      export_dynamic_flag_spec='$wl-bexpall'
11809      # It seems that -bexpall does not export symbols beginning with
11810      # underscore (_), so it is better to generate a list of symbols to export.
11811      always_export_symbols=yes
11812      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11813	# Warning - without using the other runtime loading flags (-brtl),
11814	# -berok will link without error, but may produce a broken library.
11815	allow_undefined_flag='-berok'
11816        # Determine the default libpath from the value encoded in an
11817        # empty executable.
11818        if test set = "${lt_cv_aix_libpath+set}"; then
11819  aix_libpath=$lt_cv_aix_libpath
11820else
11821  if test ${lt_cv_aix_libpath_+y}
11822then :
11823  printf %s "(cached) " >&6
11824else $as_nop
11825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826/* end confdefs.h.  */
11827
11828int
11829main (void)
11830{
11831
11832  ;
11833  return 0;
11834}
11835_ACEOF
11836if ac_fn_c_try_link "$LINENO"
11837then :
11838
11839  lt_aix_libpath_sed='
11840      /Import File Strings/,/^$/ {
11841	  /^0/ {
11842	      s/^0  *\([^ ]*\) *$/\1/
11843	      p
11844	  }
11845      }'
11846  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11847  # Check for a 64-bit object if we didn't find anything.
11848  if test -z "$lt_cv_aix_libpath_"; then
11849    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11850  fi
11851fi
11852rm -f core conftest.err conftest.$ac_objext conftest.beam \
11853    conftest$ac_exeext conftest.$ac_ext
11854  if test -z "$lt_cv_aix_libpath_"; then
11855    lt_cv_aix_libpath_=/usr/lib:/lib
11856  fi
11857
11858fi
11859
11860  aix_libpath=$lt_cv_aix_libpath_
11861fi
11862
11863        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11864        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
11865      else
11866	if test ia64 = "$host_cpu"; then
11867	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11868	  allow_undefined_flag="-z nodefs"
11869	  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"
11870	else
11871	 # Determine the default libpath from the value encoded in an
11872	 # empty executable.
11873	 if test set = "${lt_cv_aix_libpath+set}"; then
11874  aix_libpath=$lt_cv_aix_libpath
11875else
11876  if test ${lt_cv_aix_libpath_+y}
11877then :
11878  printf %s "(cached) " >&6
11879else $as_nop
11880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881/* end confdefs.h.  */
11882
11883int
11884main (void)
11885{
11886
11887  ;
11888  return 0;
11889}
11890_ACEOF
11891if ac_fn_c_try_link "$LINENO"
11892then :
11893
11894  lt_aix_libpath_sed='
11895      /Import File Strings/,/^$/ {
11896	  /^0/ {
11897	      s/^0  *\([^ ]*\) *$/\1/
11898	      p
11899	  }
11900      }'
11901  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11902  # Check for a 64-bit object if we didn't find anything.
11903  if test -z "$lt_cv_aix_libpath_"; then
11904    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11905  fi
11906fi
11907rm -f core conftest.err conftest.$ac_objext conftest.beam \
11908    conftest$ac_exeext conftest.$ac_ext
11909  if test -z "$lt_cv_aix_libpath_"; then
11910    lt_cv_aix_libpath_=/usr/lib:/lib
11911  fi
11912
11913fi
11914
11915  aix_libpath=$lt_cv_aix_libpath_
11916fi
11917
11918	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11919	  # Warning - without using the other run time loading flags,
11920	  # -berok will link without error, but may produce a broken library.
11921	  no_undefined_flag=' $wl-bernotok'
11922	  allow_undefined_flag=' $wl-berok'
11923	  if test yes = "$with_gnu_ld"; then
11924	    # We only use this code for GNU lds that support --whole-archive.
11925	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11926	  else
11927	    # Exported symbols can be pulled into shared objects from archives
11928	    whole_archive_flag_spec='$convenience'
11929	  fi
11930	  archive_cmds_need_lc=yes
11931	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11932	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11933	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11934	  if test svr4 != "$with_aix_soname"; then
11935	    # This is similar to how AIX traditionally builds its shared libraries.
11936	    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'
11937	  fi
11938	  if test aix != "$with_aix_soname"; then
11939	    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'
11940	  else
11941	    # used by -dlpreopen to get the symbols
11942	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11943	  fi
11944	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11945	fi
11946      fi
11947      ;;
11948
11949    amigaos*)
11950      case $host_cpu in
11951      powerpc)
11952            # see comment about AmigaOS4 .so support
11953            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11954            archive_expsym_cmds=''
11955        ;;
11956      m68k)
11957            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)'
11958            hardcode_libdir_flag_spec='-L$libdir'
11959            hardcode_minus_L=yes
11960        ;;
11961      esac
11962      ;;
11963
11964    bsdi[45]*)
11965      export_dynamic_flag_spec=-rdynamic
11966      ;;
11967
11968    cygwin* | mingw* | pw32* | cegcc*)
11969      # When not using gcc, we currently assume that we are using
11970      # Microsoft Visual C++.
11971      # hardcode_libdir_flag_spec is actually meaningless, as there is
11972      # no search path for DLLs.
11973      case $cc_basename in
11974      cl*)
11975	# Native MSVC
11976	hardcode_libdir_flag_spec=' '
11977	allow_undefined_flag=unsupported
11978	always_export_symbols=yes
11979	file_list_spec='@'
11980	# Tell ltmain to make .lib files, not .a files.
11981	libext=lib
11982	# Tell ltmain to make .dll files, not .so files.
11983	shrext_cmds=.dll
11984	# FIXME: Setting linknames here is a bad hack.
11985	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11986	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11987            cp "$export_symbols" "$output_objdir/$soname.def";
11988            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11989          else
11990            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11991          fi~
11992          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11993          linknames='
11994	# The linker will not automatically build a static lib if we build a DLL.
11995	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11996	enable_shared_with_static_runtimes=yes
11997	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11998	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11999	# Don't use ranlib
12000	old_postinstall_cmds='chmod 644 $oldlib'
12001	postlink_cmds='lt_outputfile="@OUTPUT@"~
12002          lt_tool_outputfile="@TOOL_OUTPUT@"~
12003          case $lt_outputfile in
12004            *.exe|*.EXE) ;;
12005            *)
12006              lt_outputfile=$lt_outputfile.exe
12007              lt_tool_outputfile=$lt_tool_outputfile.exe
12008              ;;
12009          esac~
12010          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12011            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12012            $RM "$lt_outputfile.manifest";
12013          fi'
12014	;;
12015      *)
12016	# Assume MSVC wrapper
12017	hardcode_libdir_flag_spec=' '
12018	allow_undefined_flag=unsupported
12019	# Tell ltmain to make .lib files, not .a files.
12020	libext=lib
12021	# Tell ltmain to make .dll files, not .so files.
12022	shrext_cmds=.dll
12023	# FIXME: Setting linknames here is a bad hack.
12024	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12025	# The linker will automatically build a .lib file if we build a DLL.
12026	old_archive_from_new_cmds='true'
12027	# FIXME: Should let the user specify the lib program.
12028	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12029	enable_shared_with_static_runtimes=yes
12030	;;
12031      esac
12032      ;;
12033
12034    darwin* | rhapsody*)
12035
12036
12037  archive_cmds_need_lc=no
12038  hardcode_direct=no
12039  hardcode_automatic=yes
12040  hardcode_shlibpath_var=unsupported
12041  if test yes = "$lt_cv_ld_force_load"; then
12042    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\"`'
12043
12044  else
12045    whole_archive_flag_spec=''
12046  fi
12047  link_all_deplibs=yes
12048  allow_undefined_flag=$_lt_dar_allow_undefined
12049  case $cc_basename in
12050     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12051     *) _lt_dar_can_shared=$GCC ;;
12052  esac
12053  if test yes = "$_lt_dar_can_shared"; then
12054    output_verbose_link_cmd=func_echo_all
12055    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12056    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12057    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"
12058    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"
12059
12060  else
12061  ld_shlibs=no
12062  fi
12063
12064      ;;
12065
12066    dgux*)
12067      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12068      hardcode_libdir_flag_spec='-L$libdir'
12069      hardcode_shlibpath_var=no
12070      ;;
12071
12072    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12073    # support.  Future versions do this automatically, but an explicit c++rt0.o
12074    # does not break anything, and helps significantly (at the cost of a little
12075    # extra space).
12076    freebsd2.2*)
12077      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12078      hardcode_libdir_flag_spec='-R$libdir'
12079      hardcode_direct=yes
12080      hardcode_shlibpath_var=no
12081      ;;
12082
12083    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12084    freebsd2.*)
12085      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12086      hardcode_direct=yes
12087      hardcode_minus_L=yes
12088      hardcode_shlibpath_var=no
12089      ;;
12090
12091    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12092    freebsd* | dragonfly*)
12093      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12094      hardcode_libdir_flag_spec='-R$libdir'
12095      hardcode_direct=yes
12096      hardcode_shlibpath_var=no
12097      ;;
12098
12099    hpux9*)
12100      if test yes = "$GCC"; then
12101	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'
12102      else
12103	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'
12104      fi
12105      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12106      hardcode_libdir_separator=:
12107      hardcode_direct=yes
12108
12109      # hardcode_minus_L: Not really in the search PATH,
12110      # but as the default location of the library.
12111      hardcode_minus_L=yes
12112      export_dynamic_flag_spec='$wl-E'
12113      ;;
12114
12115    hpux10*)
12116      if test yes,no = "$GCC,$with_gnu_ld"; then
12117	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12118      else
12119	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12120      fi
12121      if test no = "$with_gnu_ld"; then
12122	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12123	hardcode_libdir_separator=:
12124	hardcode_direct=yes
12125	hardcode_direct_absolute=yes
12126	export_dynamic_flag_spec='$wl-E'
12127	# hardcode_minus_L: Not really in the search PATH,
12128	# but as the default location of the library.
12129	hardcode_minus_L=yes
12130      fi
12131      ;;
12132
12133    hpux11*)
12134      if test yes,no = "$GCC,$with_gnu_ld"; then
12135	case $host_cpu in
12136	hppa*64*)
12137	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12138	  ;;
12139	ia64*)
12140	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12141	  ;;
12142	*)
12143	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12144	  ;;
12145	esac
12146      else
12147	case $host_cpu in
12148	hppa*64*)
12149	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12150	  ;;
12151	ia64*)
12152	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12153	  ;;
12154	*)
12155
12156	  # Older versions of the 11.00 compiler do not understand -b yet
12157	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12158	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12159printf %s "checking if $CC understands -b... " >&6; }
12160if test ${lt_cv_prog_compiler__b+y}
12161then :
12162  printf %s "(cached) " >&6
12163else $as_nop
12164  lt_cv_prog_compiler__b=no
12165   save_LDFLAGS=$LDFLAGS
12166   LDFLAGS="$LDFLAGS -b"
12167   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12168   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12169     # The linker can only warn and ignore the option if not recognized
12170     # So say no if there are warnings
12171     if test -s conftest.err; then
12172       # Append any errors to the config.log.
12173       cat conftest.err 1>&5
12174       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12175       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12176       if diff conftest.exp conftest.er2 >/dev/null; then
12177         lt_cv_prog_compiler__b=yes
12178       fi
12179     else
12180       lt_cv_prog_compiler__b=yes
12181     fi
12182   fi
12183   $RM -r conftest*
12184   LDFLAGS=$save_LDFLAGS
12185
12186fi
12187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12188printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12189
12190if test yes = "$lt_cv_prog_compiler__b"; then
12191    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12192else
12193    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12194fi
12195
12196	  ;;
12197	esac
12198      fi
12199      if test no = "$with_gnu_ld"; then
12200	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12201	hardcode_libdir_separator=:
12202
12203	case $host_cpu in
12204	hppa*64*|ia64*)
12205	  hardcode_direct=no
12206	  hardcode_shlibpath_var=no
12207	  ;;
12208	*)
12209	  hardcode_direct=yes
12210	  hardcode_direct_absolute=yes
12211	  export_dynamic_flag_spec='$wl-E'
12212
12213	  # hardcode_minus_L: Not really in the search PATH,
12214	  # but as the default location of the library.
12215	  hardcode_minus_L=yes
12216	  ;;
12217	esac
12218      fi
12219      ;;
12220
12221    irix5* | irix6* | nonstopux*)
12222      if test yes = "$GCC"; then
12223	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'
12224	# Try to use the -exported_symbol ld option, if it does not
12225	# work, assume that -exports_file does not work either and
12226	# implicitly export all symbols.
12227	# This should be the same for all languages, so no per-tag cache variable.
12228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12229printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12230if test ${lt_cv_irix_exported_symbol+y}
12231then :
12232  printf %s "(cached) " >&6
12233else $as_nop
12234  save_LDFLAGS=$LDFLAGS
12235	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12236	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237/* end confdefs.h.  */
12238int foo (void) { return 0; }
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"
12241then :
12242  lt_cv_irix_exported_symbol=yes
12243else $as_nop
12244  lt_cv_irix_exported_symbol=no
12245fi
12246rm -f core conftest.err conftest.$ac_objext conftest.beam \
12247    conftest$ac_exeext conftest.$ac_ext
12248           LDFLAGS=$save_LDFLAGS
12249fi
12250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12251printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12252	if test yes = "$lt_cv_irix_exported_symbol"; then
12253          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'
12254	fi
12255      else
12256	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'
12257	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'
12258      fi
12259      archive_cmds_need_lc='no'
12260      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12261      hardcode_libdir_separator=:
12262      inherit_rpath=yes
12263      link_all_deplibs=yes
12264      ;;
12265
12266    linux*)
12267      case $cc_basename in
12268      tcc*)
12269	# Fabrice Bellard et al's Tiny C Compiler
12270	ld_shlibs=yes
12271	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12272	;;
12273      esac
12274      ;;
12275
12276    netbsd*)
12277      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12278	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12279      else
12280	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12281      fi
12282      hardcode_libdir_flag_spec='-R$libdir'
12283      hardcode_direct=yes
12284      hardcode_shlibpath_var=no
12285      ;;
12286
12287    newsos6)
12288      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12289      hardcode_direct=yes
12290      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12291      hardcode_libdir_separator=:
12292      hardcode_shlibpath_var=no
12293      ;;
12294
12295    *nto* | *qnx*)
12296      ;;
12297
12298    openbsd* | bitrig*)
12299      if test -f /usr/libexec/ld.so; then
12300	hardcode_direct=yes
12301	hardcode_shlibpath_var=no
12302	hardcode_direct_absolute=yes
12303	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12304	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12305	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12306	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12307	  export_dynamic_flag_spec='$wl-E'
12308	else
12309	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12310	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12311	fi
12312      else
12313	ld_shlibs=no
12314      fi
12315      ;;
12316
12317    os2*)
12318      hardcode_libdir_flag_spec='-L$libdir'
12319      hardcode_minus_L=yes
12320      allow_undefined_flag=unsupported
12321      shrext_cmds=.dll
12322      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12323	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12324	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12325	$ECHO EXPORTS >> $output_objdir/$libname.def~
12326	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12327	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12328	emximp -o $lib $output_objdir/$libname.def'
12329      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12330	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12331	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12332	$ECHO EXPORTS >> $output_objdir/$libname.def~
12333	prefix_cmds="$SED"~
12334	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12335	  prefix_cmds="$prefix_cmds -e 1d";
12336	fi~
12337	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12338	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12339	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12340	emximp -o $lib $output_objdir/$libname.def'
12341      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12342      enable_shared_with_static_runtimes=yes
12343      ;;
12344
12345    osf3*)
12346      if test yes = "$GCC"; then
12347	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12348	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'
12349      else
12350	allow_undefined_flag=' -expect_unresolved \*'
12351	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'
12352      fi
12353      archive_cmds_need_lc='no'
12354      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12355      hardcode_libdir_separator=:
12356      ;;
12357
12358    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12359      if test yes = "$GCC"; then
12360	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12361	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'
12362	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12363      else
12364	allow_undefined_flag=' -expect_unresolved \*'
12365	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'
12366	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~
12367          $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'
12368
12369	# Both c and cxx compiler support -rpath directly
12370	hardcode_libdir_flag_spec='-rpath $libdir'
12371      fi
12372      archive_cmds_need_lc='no'
12373      hardcode_libdir_separator=:
12374      ;;
12375
12376    solaris*)
12377      no_undefined_flag=' -z defs'
12378      if test yes = "$GCC"; then
12379	wlarc='$wl'
12380	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12381	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12382          $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'
12383      else
12384	case `$CC -V 2>&1` in
12385	*"Compilers 5.0"*)
12386	  wlarc=''
12387	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12388	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12389            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12390	  ;;
12391	*)
12392	  wlarc='$wl'
12393	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12394	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12395            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12396	  ;;
12397	esac
12398      fi
12399      hardcode_libdir_flag_spec='-R$libdir'
12400      hardcode_shlibpath_var=no
12401      case $host_os in
12402      solaris2.[0-5] | solaris2.[0-5].*) ;;
12403      *)
12404	# The compiler driver will combine and reorder linker options,
12405	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12406	# but is careful enough not to reorder.
12407	# Supported since Solaris 2.6 (maybe 2.5.1?)
12408	if test yes = "$GCC"; then
12409	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12410	else
12411	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12412	fi
12413	;;
12414      esac
12415      link_all_deplibs=yes
12416      ;;
12417
12418    sunos4*)
12419      if test sequent = "$host_vendor"; then
12420	# Use $CC to link under sequent, because it throws in some extra .o
12421	# files that make .init and .fini sections work.
12422	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12423      else
12424	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12425      fi
12426      hardcode_libdir_flag_spec='-L$libdir'
12427      hardcode_direct=yes
12428      hardcode_minus_L=yes
12429      hardcode_shlibpath_var=no
12430      ;;
12431
12432    sysv4)
12433      case $host_vendor in
12434	sni)
12435	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12436	  hardcode_direct=yes # is this really true???
12437	;;
12438	siemens)
12439	  ## LD is ld it makes a PLAMLIB
12440	  ## CC just makes a GrossModule.
12441	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12442	  reload_cmds='$CC -r -o $output$reload_objs'
12443	  hardcode_direct=no
12444        ;;
12445	motorola)
12446	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12447	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12448	;;
12449      esac
12450      runpath_var='LD_RUN_PATH'
12451      hardcode_shlibpath_var=no
12452      ;;
12453
12454    sysv4.3*)
12455      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12456      hardcode_shlibpath_var=no
12457      export_dynamic_flag_spec='-Bexport'
12458      ;;
12459
12460    sysv4*MP*)
12461      if test -d /usr/nec; then
12462	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12463	hardcode_shlibpath_var=no
12464	runpath_var=LD_RUN_PATH
12465	hardcode_runpath_var=yes
12466	ld_shlibs=yes
12467      fi
12468      ;;
12469
12470    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12471      no_undefined_flag='$wl-z,text'
12472      archive_cmds_need_lc=no
12473      hardcode_shlibpath_var=no
12474      runpath_var='LD_RUN_PATH'
12475
12476      if test yes = "$GCC"; then
12477	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12478	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12479      else
12480	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12481	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12482      fi
12483      ;;
12484
12485    sysv5* | sco3.2v5* | sco5v6*)
12486      # Note: We CANNOT use -z defs as we might desire, because we do not
12487      # link with -lc, and that would cause any symbols used from libc to
12488      # always be unresolved, which means just about no library would
12489      # ever link correctly.  If we're not using GNU ld we use -z text
12490      # though, which does catch some bad symbols but isn't as heavy-handed
12491      # as -z defs.
12492      no_undefined_flag='$wl-z,text'
12493      allow_undefined_flag='$wl-z,nodefs'
12494      archive_cmds_need_lc=no
12495      hardcode_shlibpath_var=no
12496      hardcode_libdir_flag_spec='$wl-R,$libdir'
12497      hardcode_libdir_separator=':'
12498      link_all_deplibs=yes
12499      export_dynamic_flag_spec='$wl-Bexport'
12500      runpath_var='LD_RUN_PATH'
12501
12502      if test yes = "$GCC"; then
12503	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12504	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12505      else
12506	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12507	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12508      fi
12509      ;;
12510
12511    uts4*)
12512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12513      hardcode_libdir_flag_spec='-L$libdir'
12514      hardcode_shlibpath_var=no
12515      ;;
12516
12517    *)
12518      ld_shlibs=no
12519      ;;
12520    esac
12521
12522    if test sni = "$host_vendor"; then
12523      case $host in
12524      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12525	export_dynamic_flag_spec='$wl-Blargedynsym'
12526	;;
12527      esac
12528    fi
12529  fi
12530
12531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12532printf "%s\n" "$ld_shlibs" >&6; }
12533test no = "$ld_shlibs" && can_build_shared=no
12534
12535with_gnu_ld=$with_gnu_ld
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551#
12552# Do we need to explicitly link libc?
12553#
12554case "x$archive_cmds_need_lc" in
12555x|xyes)
12556  # Assume -lc should be added
12557  archive_cmds_need_lc=yes
12558
12559  if test yes,yes = "$GCC,$enable_shared"; then
12560    case $archive_cmds in
12561    *'~'*)
12562      # FIXME: we may have to deal with multi-command sequences.
12563      ;;
12564    '$CC '*)
12565      # Test whether the compiler implicitly links with -lc since on some
12566      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12567      # to ld, don't add -lc before -lgcc.
12568      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12569printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12570if test ${lt_cv_archive_cmds_need_lc+y}
12571then :
12572  printf %s "(cached) " >&6
12573else $as_nop
12574  $RM conftest*
12575	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12576
12577	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12578  (eval $ac_compile) 2>&5
12579  ac_status=$?
12580  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12581  test $ac_status = 0; } 2>conftest.err; then
12582	  soname=conftest
12583	  lib=conftest
12584	  libobjs=conftest.$ac_objext
12585	  deplibs=
12586	  wl=$lt_prog_compiler_wl
12587	  pic_flag=$lt_prog_compiler_pic
12588	  compiler_flags=-v
12589	  linker_flags=-v
12590	  verstring=
12591	  output_objdir=.
12592	  libname=conftest
12593	  lt_save_allow_undefined_flag=$allow_undefined_flag
12594	  allow_undefined_flag=
12595	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12596  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12597  ac_status=$?
12598  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12599  test $ac_status = 0; }
12600	  then
12601	    lt_cv_archive_cmds_need_lc=no
12602	  else
12603	    lt_cv_archive_cmds_need_lc=yes
12604	  fi
12605	  allow_undefined_flag=$lt_save_allow_undefined_flag
12606	else
12607	  cat conftest.err 1>&5
12608	fi
12609	$RM conftest*
12610
12611fi
12612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12613printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12614      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12615      ;;
12616    esac
12617  fi
12618  ;;
12619esac
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
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
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12773printf %s "checking dynamic linker characteristics... " >&6; }
12774
12775if test yes = "$GCC"; then
12776  case $host_os in
12777    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12778    *) lt_awk_arg='/^libraries:/' ;;
12779  esac
12780  case $host_os in
12781    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12782    *) lt_sed_strip_eq='s|=/|/|g' ;;
12783  esac
12784  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12785  case $lt_search_path_spec in
12786  *\;*)
12787    # if the path contains ";" then we assume it to be the separator
12788    # otherwise default to the standard path separator (i.e. ":") - it is
12789    # assumed that no part of a normal pathname contains ";" but that should
12790    # okay in the real world where ";" in dirpaths is itself problematic.
12791    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12792    ;;
12793  *)
12794    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12795    ;;
12796  esac
12797  # Ok, now we have the path, separated by spaces, we can step through it
12798  # and add multilib dir if necessary...
12799  lt_tmp_lt_search_path_spec=
12800  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12801  # ...but if some path component already ends with the multilib dir we assume
12802  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12803  case "$lt_multi_os_dir; $lt_search_path_spec " in
12804  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12805    lt_multi_os_dir=
12806    ;;
12807  esac
12808  for lt_sys_path in $lt_search_path_spec; do
12809    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12810      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12811    elif test -n "$lt_multi_os_dir"; then
12812      test -d "$lt_sys_path" && \
12813	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12814    fi
12815  done
12816  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12817BEGIN {RS = " "; FS = "/|\n";} {
12818  lt_foo = "";
12819  lt_count = 0;
12820  for (lt_i = NF; lt_i > 0; lt_i--) {
12821    if ($lt_i != "" && $lt_i != ".") {
12822      if ($lt_i == "..") {
12823        lt_count++;
12824      } else {
12825        if (lt_count == 0) {
12826          lt_foo = "/" $lt_i lt_foo;
12827        } else {
12828          lt_count--;
12829        }
12830      }
12831    }
12832  }
12833  if (lt_foo != "") { lt_freq[lt_foo]++; }
12834  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12835}'`
12836  # AWK program above erroneously prepends '/' to C:/dos/paths
12837  # for these hosts.
12838  case $host_os in
12839    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12840      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12841  esac
12842  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12843else
12844  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12845fi
12846library_names_spec=
12847libname_spec='lib$name'
12848soname_spec=
12849shrext_cmds=.so
12850postinstall_cmds=
12851postuninstall_cmds=
12852finish_cmds=
12853finish_eval=
12854shlibpath_var=
12855shlibpath_overrides_runpath=unknown
12856version_type=none
12857dynamic_linker="$host_os ld.so"
12858sys_lib_dlsearch_path_spec="/lib /usr/lib"
12859need_lib_prefix=unknown
12860hardcode_into_libs=no
12861
12862# when you set need_version to no, make sure it does not cause -set_version
12863# flags to be left without arguments
12864need_version=unknown
12865
12866
12867
12868case $host_os in
12869aix3*)
12870  version_type=linux # correct to gnu/linux during the next big refactor
12871  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12872  shlibpath_var=LIBPATH
12873
12874  # AIX 3 has no versioning support, so we append a major version to the name.
12875  soname_spec='$libname$release$shared_ext$major'
12876  ;;
12877
12878aix[4-9]*)
12879  version_type=linux # correct to gnu/linux during the next big refactor
12880  need_lib_prefix=no
12881  need_version=no
12882  hardcode_into_libs=yes
12883  if test ia64 = "$host_cpu"; then
12884    # AIX 5 supports IA64
12885    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12886    shlibpath_var=LD_LIBRARY_PATH
12887  else
12888    # With GCC up to 2.95.x, collect2 would create an import file
12889    # for dependence libraries.  The import file would start with
12890    # the line '#! .'.  This would cause the generated library to
12891    # depend on '.', always an invalid library.  This was fixed in
12892    # development snapshots of GCC prior to 3.0.
12893    case $host_os in
12894      aix4 | aix4.[01] | aix4.[01].*)
12895      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12896	   echo ' yes '
12897	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12898	:
12899      else
12900	can_build_shared=no
12901      fi
12902      ;;
12903    esac
12904    # Using Import Files as archive members, it is possible to support
12905    # filename-based versioning of shared library archives on AIX. While
12906    # this would work for both with and without runtime linking, it will
12907    # prevent static linking of such archives. So we do filename-based
12908    # shared library versioning with .so extension only, which is used
12909    # when both runtime linking and shared linking is enabled.
12910    # Unfortunately, runtime linking may impact performance, so we do
12911    # not want this to be the default eventually. Also, we use the
12912    # versioned .so libs for executables only if there is the -brtl
12913    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12914    # To allow for filename-based versioning support, we need to create
12915    # libNAME.so.V as an archive file, containing:
12916    # *) an Import File, referring to the versioned filename of the
12917    #    archive as well as the shared archive member, telling the
12918    #    bitwidth (32 or 64) of that shared object, and providing the
12919    #    list of exported symbols of that shared object, eventually
12920    #    decorated with the 'weak' keyword
12921    # *) the shared object with the F_LOADONLY flag set, to really avoid
12922    #    it being seen by the linker.
12923    # At run time we better use the real file rather than another symlink,
12924    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12925
12926    case $with_aix_soname,$aix_use_runtimelinking in
12927    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12928    # soname into executable. Probably we can add versioning support to
12929    # collect2, so additional links can be useful in future.
12930    aix,yes) # traditional libtool
12931      dynamic_linker='AIX unversionable lib.so'
12932      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12933      # instead of lib<name>.a to let people know that these are not
12934      # typical AIX shared libraries.
12935      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12936      ;;
12937    aix,no) # traditional AIX only
12938      dynamic_linker='AIX lib.a(lib.so.V)'
12939      # We preserve .a as extension for shared libraries through AIX4.2
12940      # and later when we are not doing run time linking.
12941      library_names_spec='$libname$release.a $libname.a'
12942      soname_spec='$libname$release$shared_ext$major'
12943      ;;
12944    svr4,*) # full svr4 only
12945      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12946      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12947      # We do not specify a path in Import Files, so LIBPATH fires.
12948      shlibpath_overrides_runpath=yes
12949      ;;
12950    *,yes) # both, prefer svr4
12951      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12952      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12953      # unpreferred sharedlib libNAME.a needs extra handling
12954      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"'
12955      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"'
12956      # We do not specify a path in Import Files, so LIBPATH fires.
12957      shlibpath_overrides_runpath=yes
12958      ;;
12959    *,no) # both, prefer aix
12960      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12961      library_names_spec='$libname$release.a $libname.a'
12962      soname_spec='$libname$release$shared_ext$major'
12963      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12964      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)'
12965      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"'
12966      ;;
12967    esac
12968    shlibpath_var=LIBPATH
12969  fi
12970  ;;
12971
12972amigaos*)
12973  case $host_cpu in
12974  powerpc)
12975    # Since July 2007 AmigaOS4 officially supports .so libraries.
12976    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12977    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12978    ;;
12979  m68k)
12980    library_names_spec='$libname.ixlibrary $libname.a'
12981    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12982    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'
12983    ;;
12984  esac
12985  ;;
12986
12987beos*)
12988  library_names_spec='$libname$shared_ext'
12989  dynamic_linker="$host_os ld.so"
12990  shlibpath_var=LIBRARY_PATH
12991  ;;
12992
12993bsdi[45]*)
12994  version_type=linux # correct to gnu/linux during the next big refactor
12995  need_version=no
12996  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12997  soname_spec='$libname$release$shared_ext$major'
12998  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12999  shlibpath_var=LD_LIBRARY_PATH
13000  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13001  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13002  # the default ld.so.conf also contains /usr/contrib/lib and
13003  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13004  # libtool to hard-code these into programs
13005  ;;
13006
13007cygwin* | mingw* | pw32* | cegcc*)
13008  version_type=windows
13009  shrext_cmds=.dll
13010  need_version=no
13011  need_lib_prefix=no
13012
13013  case $GCC,$cc_basename in
13014  yes,*)
13015    # gcc
13016    library_names_spec='$libname.dll.a'
13017    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13018    postinstall_cmds='base_file=`basename \$file`~
13019      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13020      dldir=$destdir/`dirname \$dlpath`~
13021      test -d \$dldir || mkdir -p \$dldir~
13022      $install_prog $dir/$dlname \$dldir/$dlname~
13023      chmod a+x \$dldir/$dlname~
13024      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13025        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13026      fi'
13027    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13028      dlpath=$dir/\$dldll~
13029       $RM \$dlpath'
13030    shlibpath_overrides_runpath=yes
13031
13032    case $host_os in
13033    cygwin*)
13034      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13035      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13036
13037      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13038      ;;
13039    mingw* | cegcc*)
13040      # MinGW DLLs use traditional 'lib' prefix
13041      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13042      ;;
13043    pw32*)
13044      # pw32 DLLs use 'pw' prefix rather than 'lib'
13045      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13046      ;;
13047    esac
13048    dynamic_linker='Win32 ld.exe'
13049    ;;
13050
13051  *,cl*)
13052    # Native MSVC
13053    libname_spec='$name'
13054    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13055    library_names_spec='$libname.dll.lib'
13056
13057    case $build_os in
13058    mingw*)
13059      sys_lib_search_path_spec=
13060      lt_save_ifs=$IFS
13061      IFS=';'
13062      for lt_path in $LIB
13063      do
13064        IFS=$lt_save_ifs
13065        # Let DOS variable expansion print the short 8.3 style file name.
13066        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13067        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13068      done
13069      IFS=$lt_save_ifs
13070      # Convert to MSYS style.
13071      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13072      ;;
13073    cygwin*)
13074      # Convert to unix form, then to dos form, then back to unix form
13075      # but this time dos style (no spaces!) so that the unix form looks
13076      # like /cygdrive/c/PROGRA~1:/cygdr...
13077      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13078      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13079      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13080      ;;
13081    *)
13082      sys_lib_search_path_spec=$LIB
13083      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13084        # It is most probably a Windows format PATH.
13085        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13086      else
13087        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13088      fi
13089      # FIXME: find the short name or the path components, as spaces are
13090      # common. (e.g. "Program Files" -> "PROGRA~1")
13091      ;;
13092    esac
13093
13094    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13095    postinstall_cmds='base_file=`basename \$file`~
13096      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13097      dldir=$destdir/`dirname \$dlpath`~
13098      test -d \$dldir || mkdir -p \$dldir~
13099      $install_prog $dir/$dlname \$dldir/$dlname'
13100    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13101      dlpath=$dir/\$dldll~
13102       $RM \$dlpath'
13103    shlibpath_overrides_runpath=yes
13104    dynamic_linker='Win32 link.exe'
13105    ;;
13106
13107  *)
13108    # Assume MSVC wrapper
13109    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13110    dynamic_linker='Win32 ld.exe'
13111    ;;
13112  esac
13113  # FIXME: first we should search . and the directory the executable is in
13114  shlibpath_var=PATH
13115  ;;
13116
13117darwin* | rhapsody*)
13118  dynamic_linker="$host_os dyld"
13119  version_type=darwin
13120  need_lib_prefix=no
13121  need_version=no
13122  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13123  soname_spec='$libname$release$major$shared_ext'
13124  shlibpath_overrides_runpath=yes
13125  shlibpath_var=DYLD_LIBRARY_PATH
13126  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13127
13128  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13129  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13130  ;;
13131
13132dgux*)
13133  version_type=linux # correct to gnu/linux during the next big refactor
13134  need_lib_prefix=no
13135  need_version=no
13136  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13137  soname_spec='$libname$release$shared_ext$major'
13138  shlibpath_var=LD_LIBRARY_PATH
13139  ;;
13140
13141freebsd* | dragonfly*)
13142  # DragonFly does not have aout.  When/if they implement a new
13143  # versioning mechanism, adjust this.
13144  if test -x /usr/bin/objformat; then
13145    objformat=`/usr/bin/objformat`
13146  else
13147    case $host_os in
13148    freebsd[23].*) objformat=aout ;;
13149    *) objformat=elf ;;
13150    esac
13151  fi
13152  version_type=freebsd-$objformat
13153  case $version_type in
13154    freebsd-elf*)
13155      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13156      soname_spec='$libname$release$shared_ext$major'
13157      need_version=no
13158      need_lib_prefix=no
13159      ;;
13160    freebsd-*)
13161      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13162      need_version=yes
13163      ;;
13164  esac
13165  shlibpath_var=LD_LIBRARY_PATH
13166  case $host_os in
13167  freebsd2.*)
13168    shlibpath_overrides_runpath=yes
13169    ;;
13170  freebsd3.[01]* | freebsdelf3.[01]*)
13171    shlibpath_overrides_runpath=yes
13172    hardcode_into_libs=yes
13173    ;;
13174  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13175  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13176    shlibpath_overrides_runpath=no
13177    hardcode_into_libs=yes
13178    ;;
13179  *) # from 4.6 on, and DragonFly
13180    shlibpath_overrides_runpath=yes
13181    hardcode_into_libs=yes
13182    ;;
13183  esac
13184  ;;
13185
13186haiku*)
13187  version_type=linux # correct to gnu/linux during the next big refactor
13188  need_lib_prefix=no
13189  need_version=no
13190  dynamic_linker="$host_os runtime_loader"
13191  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13192  soname_spec='$libname$release$shared_ext$major'
13193  shlibpath_var=LIBRARY_PATH
13194  shlibpath_overrides_runpath=no
13195  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13196  hardcode_into_libs=yes
13197  ;;
13198
13199hpux9* | hpux10* | hpux11*)
13200  # Give a soname corresponding to the major version so that dld.sl refuses to
13201  # link against other versions.
13202  version_type=sunos
13203  need_lib_prefix=no
13204  need_version=no
13205  case $host_cpu in
13206  ia64*)
13207    shrext_cmds='.so'
13208    hardcode_into_libs=yes
13209    dynamic_linker="$host_os dld.so"
13210    shlibpath_var=LD_LIBRARY_PATH
13211    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13213    soname_spec='$libname$release$shared_ext$major'
13214    if test 32 = "$HPUX_IA64_MODE"; then
13215      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13216      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13217    else
13218      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13219      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13220    fi
13221    ;;
13222  hppa*64*)
13223    shrext_cmds='.sl'
13224    hardcode_into_libs=yes
13225    dynamic_linker="$host_os dld.sl"
13226    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13228    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13229    soname_spec='$libname$release$shared_ext$major'
13230    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13231    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13232    ;;
13233  *)
13234    shrext_cmds='.sl'
13235    dynamic_linker="$host_os dld.sl"
13236    shlibpath_var=SHLIB_PATH
13237    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13238    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13239    soname_spec='$libname$release$shared_ext$major'
13240    ;;
13241  esac
13242  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13243  postinstall_cmds='chmod 555 $lib'
13244  # or fails outright, so override atomically:
13245  install_override_mode=555
13246  ;;
13247
13248interix[3-9]*)
13249  version_type=linux # correct to gnu/linux during the next big refactor
13250  need_lib_prefix=no
13251  need_version=no
13252  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13253  soname_spec='$libname$release$shared_ext$major'
13254  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13255  shlibpath_var=LD_LIBRARY_PATH
13256  shlibpath_overrides_runpath=no
13257  hardcode_into_libs=yes
13258  ;;
13259
13260irix5* | irix6* | nonstopux*)
13261  case $host_os in
13262    nonstopux*) version_type=nonstopux ;;
13263    *)
13264	if test yes = "$lt_cv_prog_gnu_ld"; then
13265		version_type=linux # correct to gnu/linux during the next big refactor
13266	else
13267		version_type=irix
13268	fi ;;
13269  esac
13270  need_lib_prefix=no
13271  need_version=no
13272  soname_spec='$libname$release$shared_ext$major'
13273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13274  case $host_os in
13275  irix5* | nonstopux*)
13276    libsuff= shlibsuff=
13277    ;;
13278  *)
13279    case $LD in # libtool.m4 will add one of these switches to LD
13280    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13281      libsuff= shlibsuff= libmagic=32-bit;;
13282    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13283      libsuff=32 shlibsuff=N32 libmagic=N32;;
13284    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13285      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13286    *) libsuff= shlibsuff= libmagic=never-match;;
13287    esac
13288    ;;
13289  esac
13290  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13291  shlibpath_overrides_runpath=no
13292  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13293  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13294  hardcode_into_libs=yes
13295  ;;
13296
13297# No shared lib support for Linux oldld, aout, or coff.
13298linux*oldld* | linux*aout* | linux*coff*)
13299  dynamic_linker=no
13300  ;;
13301
13302linux*android*)
13303  version_type=none # Android doesn't support versioned libraries.
13304  need_lib_prefix=no
13305  need_version=no
13306  library_names_spec='$libname$release$shared_ext'
13307  soname_spec='$libname$release$shared_ext'
13308  finish_cmds=
13309  shlibpath_var=LD_LIBRARY_PATH
13310  shlibpath_overrides_runpath=yes
13311
13312  # This implies no fast_install, which is unacceptable.
13313  # Some rework will be needed to allow for fast_install
13314  # before this can be enabled.
13315  hardcode_into_libs=yes
13316
13317  dynamic_linker='Android linker'
13318  # Don't embed -rpath directories since the linker doesn't support them.
13319  hardcode_libdir_flag_spec='-L$libdir'
13320  ;;
13321
13322# This must be glibc/ELF.
13323linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13324  version_type=linux # correct to gnu/linux during the next big refactor
13325  need_lib_prefix=no
13326  need_version=no
13327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328  soname_spec='$libname$release$shared_ext$major'
13329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13330  shlibpath_var=LD_LIBRARY_PATH
13331  shlibpath_overrides_runpath=no
13332
13333  # Some binutils ld are patched to set DT_RUNPATH
13334  if test ${lt_cv_shlibpath_overrides_runpath+y}
13335then :
13336  printf %s "(cached) " >&6
13337else $as_nop
13338  lt_cv_shlibpath_overrides_runpath=no
13339    save_LDFLAGS=$LDFLAGS
13340    save_libdir=$libdir
13341    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13342	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13343    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344/* end confdefs.h.  */
13345
13346int
13347main (void)
13348{
13349
13350  ;
13351  return 0;
13352}
13353_ACEOF
13354if ac_fn_c_try_link "$LINENO"
13355then :
13356  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13357then :
13358  lt_cv_shlibpath_overrides_runpath=yes
13359fi
13360fi
13361rm -f core conftest.err conftest.$ac_objext conftest.beam \
13362    conftest$ac_exeext conftest.$ac_ext
13363    LDFLAGS=$save_LDFLAGS
13364    libdir=$save_libdir
13365
13366fi
13367
13368  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13369
13370  # This implies no fast_install, which is unacceptable.
13371  # Some rework will be needed to allow for fast_install
13372  # before this can be enabled.
13373  hardcode_into_libs=yes
13374
13375  # Ideally, we could use ldconfig to report *all* directores which are
13376  # searched for libraries, however this is still not possible.  Aside from not
13377  # being certain /sbin/ldconfig is available, command
13378  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13379  # even though it is searched at run-time.  Try to do the best guess by
13380  # appending ld.so.conf contents (and includes) to the search path.
13381  if test -f /etc/ld.so.conf; then
13382    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' ' '`
13383    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13384  fi
13385
13386  # We used to test for /lib/ld.so.1 and disable shared libraries on
13387  # powerpc, because MkLinux only supported shared libraries with the
13388  # GNU dynamic linker.  Since this was broken with cross compilers,
13389  # most powerpc-linux boxes support dynamic linking these days and
13390  # people can always --disable-shared, the test was removed, and we
13391  # assume the GNU/Linux dynamic linker is in use.
13392  dynamic_linker='GNU/Linux ld.so'
13393  ;;
13394
13395netbsd*)
13396  version_type=sunos
13397  need_lib_prefix=no
13398  need_version=no
13399  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13400    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13401    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13402    dynamic_linker='NetBSD (a.out) ld.so'
13403  else
13404    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13405    soname_spec='$libname$release$shared_ext$major'
13406    dynamic_linker='NetBSD ld.elf_so'
13407  fi
13408  shlibpath_var=LD_LIBRARY_PATH
13409  shlibpath_overrides_runpath=yes
13410  hardcode_into_libs=yes
13411  ;;
13412
13413newsos6)
13414  version_type=linux # correct to gnu/linux during the next big refactor
13415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13416  shlibpath_var=LD_LIBRARY_PATH
13417  shlibpath_overrides_runpath=yes
13418  ;;
13419
13420*nto* | *qnx*)
13421  version_type=qnx
13422  need_lib_prefix=no
13423  need_version=no
13424  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13425  soname_spec='$libname$release$shared_ext$major'
13426  shlibpath_var=LD_LIBRARY_PATH
13427  shlibpath_overrides_runpath=no
13428  hardcode_into_libs=yes
13429  dynamic_linker='ldqnx.so'
13430  ;;
13431
13432openbsd* | bitrig*)
13433  version_type=sunos
13434  sys_lib_dlsearch_path_spec=/usr/lib
13435  need_lib_prefix=no
13436  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13437    need_version=no
13438  else
13439    need_version=yes
13440  fi
13441  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13443  shlibpath_var=LD_LIBRARY_PATH
13444  shlibpath_overrides_runpath=yes
13445  ;;
13446
13447os2*)
13448  libname_spec='$name'
13449  version_type=windows
13450  shrext_cmds=.dll
13451  need_version=no
13452  need_lib_prefix=no
13453  # OS/2 can only load a DLL with a base name of 8 characters or less.
13454  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13455    v=$($ECHO $release$versuffix | tr -d .-);
13456    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13457    $ECHO $n$v`$shared_ext'
13458  library_names_spec='${libname}_dll.$libext'
13459  dynamic_linker='OS/2 ld.exe'
13460  shlibpath_var=BEGINLIBPATH
13461  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13462  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13463  postinstall_cmds='base_file=`basename \$file`~
13464    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13465    dldir=$destdir/`dirname \$dlpath`~
13466    test -d \$dldir || mkdir -p \$dldir~
13467    $install_prog $dir/$dlname \$dldir/$dlname~
13468    chmod a+x \$dldir/$dlname~
13469    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13470      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13471    fi'
13472  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13473    dlpath=$dir/\$dldll~
13474    $RM \$dlpath'
13475  ;;
13476
13477osf3* | osf4* | osf5*)
13478  version_type=osf
13479  need_lib_prefix=no
13480  need_version=no
13481  soname_spec='$libname$release$shared_ext$major'
13482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13483  shlibpath_var=LD_LIBRARY_PATH
13484  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13485  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13486  ;;
13487
13488rdos*)
13489  dynamic_linker=no
13490  ;;
13491
13492solaris*)
13493  version_type=linux # correct to gnu/linux during the next big refactor
13494  need_lib_prefix=no
13495  need_version=no
13496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13497  soname_spec='$libname$release$shared_ext$major'
13498  shlibpath_var=LD_LIBRARY_PATH
13499  shlibpath_overrides_runpath=yes
13500  hardcode_into_libs=yes
13501  # ldd complains unless libraries are executable
13502  postinstall_cmds='chmod +x $lib'
13503  ;;
13504
13505sunos4*)
13506  version_type=sunos
13507  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13508  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13509  shlibpath_var=LD_LIBRARY_PATH
13510  shlibpath_overrides_runpath=yes
13511  if test yes = "$with_gnu_ld"; then
13512    need_lib_prefix=no
13513  fi
13514  need_version=yes
13515  ;;
13516
13517sysv4 | sysv4.3*)
13518  version_type=linux # correct to gnu/linux during the next big refactor
13519  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13520  soname_spec='$libname$release$shared_ext$major'
13521  shlibpath_var=LD_LIBRARY_PATH
13522  case $host_vendor in
13523    sni)
13524      shlibpath_overrides_runpath=no
13525      need_lib_prefix=no
13526      runpath_var=LD_RUN_PATH
13527      ;;
13528    siemens)
13529      need_lib_prefix=no
13530      ;;
13531    motorola)
13532      need_lib_prefix=no
13533      need_version=no
13534      shlibpath_overrides_runpath=no
13535      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13536      ;;
13537  esac
13538  ;;
13539
13540sysv4*MP*)
13541  if test -d /usr/nec; then
13542    version_type=linux # correct to gnu/linux during the next big refactor
13543    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13544    soname_spec='$libname$shared_ext.$major'
13545    shlibpath_var=LD_LIBRARY_PATH
13546  fi
13547  ;;
13548
13549sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13550  version_type=sco
13551  need_lib_prefix=no
13552  need_version=no
13553  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13554  soname_spec='$libname$release$shared_ext$major'
13555  shlibpath_var=LD_LIBRARY_PATH
13556  shlibpath_overrides_runpath=yes
13557  hardcode_into_libs=yes
13558  if test yes = "$with_gnu_ld"; then
13559    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13560  else
13561    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13562    case $host_os in
13563      sco3.2v5*)
13564        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13565	;;
13566    esac
13567  fi
13568  sys_lib_dlsearch_path_spec='/usr/lib'
13569  ;;
13570
13571tpf*)
13572  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13573  version_type=linux # correct to gnu/linux during the next big refactor
13574  need_lib_prefix=no
13575  need_version=no
13576  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13577  shlibpath_var=LD_LIBRARY_PATH
13578  shlibpath_overrides_runpath=no
13579  hardcode_into_libs=yes
13580  ;;
13581
13582uts4*)
13583  version_type=linux # correct to gnu/linux during the next big refactor
13584  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13585  soname_spec='$libname$release$shared_ext$major'
13586  shlibpath_var=LD_LIBRARY_PATH
13587  ;;
13588
13589*)
13590  dynamic_linker=no
13591  ;;
13592esac
13593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13594printf "%s\n" "$dynamic_linker" >&6; }
13595test no = "$dynamic_linker" && can_build_shared=no
13596
13597variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13598if test yes = "$GCC"; then
13599  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13600fi
13601
13602if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13603  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13604fi
13605
13606if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13607  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13608fi
13609
13610# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13611configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13612
13613# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13614func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13615
13616# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13617configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13716printf %s "checking how to hardcode library paths into programs... " >&6; }
13717hardcode_action=
13718if test -n "$hardcode_libdir_flag_spec" ||
13719   test -n "$runpath_var" ||
13720   test yes = "$hardcode_automatic"; then
13721
13722  # We can hardcode non-existent directories.
13723  if test no != "$hardcode_direct" &&
13724     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13725     # have to relink, otherwise we might link with an installed library
13726     # when we should be linking with a yet-to-be-installed one
13727     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13728     test no != "$hardcode_minus_L"; then
13729    # Linking always hardcodes the temporary library directory.
13730    hardcode_action=relink
13731  else
13732    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13733    hardcode_action=immediate
13734  fi
13735else
13736  # We cannot hardcode anything, or else we can only hardcode existing
13737  # directories.
13738  hardcode_action=unsupported
13739fi
13740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13741printf "%s\n" "$hardcode_action" >&6; }
13742
13743if test relink = "$hardcode_action" ||
13744   test yes = "$inherit_rpath"; then
13745  # Fast installation is not supported
13746  enable_fast_install=no
13747elif test yes = "$shlibpath_overrides_runpath" ||
13748     test no = "$enable_shared"; then
13749  # Fast installation is not necessary
13750  enable_fast_install=needless
13751fi
13752
13753
13754
13755
13756
13757
13758  if test yes != "$enable_dlopen"; then
13759  enable_dlopen=unknown
13760  enable_dlopen_self=unknown
13761  enable_dlopen_self_static=unknown
13762else
13763  lt_cv_dlopen=no
13764  lt_cv_dlopen_libs=
13765
13766  case $host_os in
13767  beos*)
13768    lt_cv_dlopen=load_add_on
13769    lt_cv_dlopen_libs=
13770    lt_cv_dlopen_self=yes
13771    ;;
13772
13773  mingw* | pw32* | cegcc*)
13774    lt_cv_dlopen=LoadLibrary
13775    lt_cv_dlopen_libs=
13776    ;;
13777
13778  cygwin*)
13779    lt_cv_dlopen=dlopen
13780    lt_cv_dlopen_libs=
13781    ;;
13782
13783  darwin*)
13784    # if libdl is installed we need to link against it
13785    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13786printf %s "checking for dlopen in -ldl... " >&6; }
13787if test ${ac_cv_lib_dl_dlopen+y}
13788then :
13789  printf %s "(cached) " >&6
13790else $as_nop
13791  ac_check_lib_save_LIBS=$LIBS
13792LIBS="-ldl  $LIBS"
13793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794/* end confdefs.h.  */
13795
13796/* Override any GCC internal prototype to avoid an error.
13797   Use char because int might match the return type of a GCC
13798   builtin and then its argument prototype would still apply.  */
13799char dlopen ();
13800int
13801main (void)
13802{
13803return dlopen ();
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808if ac_fn_c_try_link "$LINENO"
13809then :
13810  ac_cv_lib_dl_dlopen=yes
13811else $as_nop
13812  ac_cv_lib_dl_dlopen=no
13813fi
13814rm -f core conftest.err conftest.$ac_objext conftest.beam \
13815    conftest$ac_exeext conftest.$ac_ext
13816LIBS=$ac_check_lib_save_LIBS
13817fi
13818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13819printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13820if test "x$ac_cv_lib_dl_dlopen" = xyes
13821then :
13822  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13823else $as_nop
13824
13825    lt_cv_dlopen=dyld
13826    lt_cv_dlopen_libs=
13827    lt_cv_dlopen_self=yes
13828
13829fi
13830
13831    ;;
13832
13833  tpf*)
13834    # Don't try to run any link tests for TPF.  We know it's impossible
13835    # because TPF is a cross-compiler, and we know how we open DSOs.
13836    lt_cv_dlopen=dlopen
13837    lt_cv_dlopen_libs=
13838    lt_cv_dlopen_self=no
13839    ;;
13840
13841  *)
13842    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13843if test "x$ac_cv_func_shl_load" = xyes
13844then :
13845  lt_cv_dlopen=shl_load
13846else $as_nop
13847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13848printf %s "checking for shl_load in -ldld... " >&6; }
13849if test ${ac_cv_lib_dld_shl_load+y}
13850then :
13851  printf %s "(cached) " >&6
13852else $as_nop
13853  ac_check_lib_save_LIBS=$LIBS
13854LIBS="-ldld  $LIBS"
13855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h.  */
13857
13858/* Override any GCC internal prototype to avoid an error.
13859   Use char because int might match the return type of a GCC
13860   builtin and then its argument prototype would still apply.  */
13861char shl_load ();
13862int
13863main (void)
13864{
13865return shl_load ();
13866  ;
13867  return 0;
13868}
13869_ACEOF
13870if ac_fn_c_try_link "$LINENO"
13871then :
13872  ac_cv_lib_dld_shl_load=yes
13873else $as_nop
13874  ac_cv_lib_dld_shl_load=no
13875fi
13876rm -f core conftest.err conftest.$ac_objext conftest.beam \
13877    conftest$ac_exeext conftest.$ac_ext
13878LIBS=$ac_check_lib_save_LIBS
13879fi
13880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13881printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13882if test "x$ac_cv_lib_dld_shl_load" = xyes
13883then :
13884  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13885else $as_nop
13886  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13887if test "x$ac_cv_func_dlopen" = xyes
13888then :
13889  lt_cv_dlopen=dlopen
13890else $as_nop
13891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13892printf %s "checking for dlopen in -ldl... " >&6; }
13893if test ${ac_cv_lib_dl_dlopen+y}
13894then :
13895  printf %s "(cached) " >&6
13896else $as_nop
13897  ac_check_lib_save_LIBS=$LIBS
13898LIBS="-ldl  $LIBS"
13899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900/* end confdefs.h.  */
13901
13902/* Override any GCC internal prototype to avoid an error.
13903   Use char because int might match the return type of a GCC
13904   builtin and then its argument prototype would still apply.  */
13905char dlopen ();
13906int
13907main (void)
13908{
13909return dlopen ();
13910  ;
13911  return 0;
13912}
13913_ACEOF
13914if ac_fn_c_try_link "$LINENO"
13915then :
13916  ac_cv_lib_dl_dlopen=yes
13917else $as_nop
13918  ac_cv_lib_dl_dlopen=no
13919fi
13920rm -f core conftest.err conftest.$ac_objext conftest.beam \
13921    conftest$ac_exeext conftest.$ac_ext
13922LIBS=$ac_check_lib_save_LIBS
13923fi
13924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13925printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13926if test "x$ac_cv_lib_dl_dlopen" = xyes
13927then :
13928  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13929else $as_nop
13930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13931printf %s "checking for dlopen in -lsvld... " >&6; }
13932if test ${ac_cv_lib_svld_dlopen+y}
13933then :
13934  printf %s "(cached) " >&6
13935else $as_nop
13936  ac_check_lib_save_LIBS=$LIBS
13937LIBS="-lsvld  $LIBS"
13938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940
13941/* Override any GCC internal prototype to avoid an error.
13942   Use char because int might match the return type of a GCC
13943   builtin and then its argument prototype would still apply.  */
13944char dlopen ();
13945int
13946main (void)
13947{
13948return dlopen ();
13949  ;
13950  return 0;
13951}
13952_ACEOF
13953if ac_fn_c_try_link "$LINENO"
13954then :
13955  ac_cv_lib_svld_dlopen=yes
13956else $as_nop
13957  ac_cv_lib_svld_dlopen=no
13958fi
13959rm -f core conftest.err conftest.$ac_objext conftest.beam \
13960    conftest$ac_exeext conftest.$ac_ext
13961LIBS=$ac_check_lib_save_LIBS
13962fi
13963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13964printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13965if test "x$ac_cv_lib_svld_dlopen" = xyes
13966then :
13967  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13968else $as_nop
13969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13970printf %s "checking for dld_link in -ldld... " >&6; }
13971if test ${ac_cv_lib_dld_dld_link+y}
13972then :
13973  printf %s "(cached) " >&6
13974else $as_nop
13975  ac_check_lib_save_LIBS=$LIBS
13976LIBS="-ldld  $LIBS"
13977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978/* end confdefs.h.  */
13979
13980/* Override any GCC internal prototype to avoid an error.
13981   Use char because int might match the return type of a GCC
13982   builtin and then its argument prototype would still apply.  */
13983char dld_link ();
13984int
13985main (void)
13986{
13987return dld_link ();
13988  ;
13989  return 0;
13990}
13991_ACEOF
13992if ac_fn_c_try_link "$LINENO"
13993then :
13994  ac_cv_lib_dld_dld_link=yes
13995else $as_nop
13996  ac_cv_lib_dld_dld_link=no
13997fi
13998rm -f core conftest.err conftest.$ac_objext conftest.beam \
13999    conftest$ac_exeext conftest.$ac_ext
14000LIBS=$ac_check_lib_save_LIBS
14001fi
14002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14003printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14004if test "x$ac_cv_lib_dld_dld_link" = xyes
14005then :
14006  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14007fi
14008
14009
14010fi
14011
14012
14013fi
14014
14015
14016fi
14017
14018
14019fi
14020
14021
14022fi
14023
14024    ;;
14025  esac
14026
14027  if test no = "$lt_cv_dlopen"; then
14028    enable_dlopen=no
14029  else
14030    enable_dlopen=yes
14031  fi
14032
14033  case $lt_cv_dlopen in
14034  dlopen)
14035    save_CPPFLAGS=$CPPFLAGS
14036    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14037
14038    save_LDFLAGS=$LDFLAGS
14039    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14040
14041    save_LIBS=$LIBS
14042    LIBS="$lt_cv_dlopen_libs $LIBS"
14043
14044    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14045printf %s "checking whether a program can dlopen itself... " >&6; }
14046if test ${lt_cv_dlopen_self+y}
14047then :
14048  printf %s "(cached) " >&6
14049else $as_nop
14050  	  if test yes = "$cross_compiling"; then :
14051  lt_cv_dlopen_self=cross
14052else
14053  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14054  lt_status=$lt_dlunknown
14055  cat > conftest.$ac_ext <<_LT_EOF
14056#line $LINENO "configure"
14057#include "confdefs.h"
14058
14059#if HAVE_DLFCN_H
14060#include <dlfcn.h>
14061#endif
14062
14063#include <stdio.h>
14064
14065#ifdef RTLD_GLOBAL
14066#  define LT_DLGLOBAL		RTLD_GLOBAL
14067#else
14068#  ifdef DL_GLOBAL
14069#    define LT_DLGLOBAL		DL_GLOBAL
14070#  else
14071#    define LT_DLGLOBAL		0
14072#  endif
14073#endif
14074
14075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14076   find out it does not work in some platform. */
14077#ifndef LT_DLLAZY_OR_NOW
14078#  ifdef RTLD_LAZY
14079#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14080#  else
14081#    ifdef DL_LAZY
14082#      define LT_DLLAZY_OR_NOW		DL_LAZY
14083#    else
14084#      ifdef RTLD_NOW
14085#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14086#      else
14087#        ifdef DL_NOW
14088#          define LT_DLLAZY_OR_NOW	DL_NOW
14089#        else
14090#          define LT_DLLAZY_OR_NOW	0
14091#        endif
14092#      endif
14093#    endif
14094#  endif
14095#endif
14096
14097/* When -fvisibility=hidden is used, assume the code has been annotated
14098   correspondingly for the symbols needed.  */
14099#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14100int fnord () __attribute__((visibility("default")));
14101#endif
14102
14103int fnord () { return 42; }
14104int main ()
14105{
14106  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14107  int status = $lt_dlunknown;
14108
14109  if (self)
14110    {
14111      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14112      else
14113        {
14114	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14115          else puts (dlerror ());
14116	}
14117      /* dlclose (self); */
14118    }
14119  else
14120    puts (dlerror ());
14121
14122  return status;
14123}
14124_LT_EOF
14125  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14126  (eval $ac_link) 2>&5
14127  ac_status=$?
14128  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14129  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14130    (./conftest; exit; ) >&5 2>/dev/null
14131    lt_status=$?
14132    case x$lt_status in
14133      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14134      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14135      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14136    esac
14137  else :
14138    # compilation failed
14139    lt_cv_dlopen_self=no
14140  fi
14141fi
14142rm -fr conftest*
14143
14144
14145fi
14146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14147printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14148
14149    if test yes = "$lt_cv_dlopen_self"; then
14150      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14151      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14152printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14153if test ${lt_cv_dlopen_self_static+y}
14154then :
14155  printf %s "(cached) " >&6
14156else $as_nop
14157  	  if test yes = "$cross_compiling"; then :
14158  lt_cv_dlopen_self_static=cross
14159else
14160  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14161  lt_status=$lt_dlunknown
14162  cat > conftest.$ac_ext <<_LT_EOF
14163#line $LINENO "configure"
14164#include "confdefs.h"
14165
14166#if HAVE_DLFCN_H
14167#include <dlfcn.h>
14168#endif
14169
14170#include <stdio.h>
14171
14172#ifdef RTLD_GLOBAL
14173#  define LT_DLGLOBAL		RTLD_GLOBAL
14174#else
14175#  ifdef DL_GLOBAL
14176#    define LT_DLGLOBAL		DL_GLOBAL
14177#  else
14178#    define LT_DLGLOBAL		0
14179#  endif
14180#endif
14181
14182/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14183   find out it does not work in some platform. */
14184#ifndef LT_DLLAZY_OR_NOW
14185#  ifdef RTLD_LAZY
14186#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14187#  else
14188#    ifdef DL_LAZY
14189#      define LT_DLLAZY_OR_NOW		DL_LAZY
14190#    else
14191#      ifdef RTLD_NOW
14192#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14193#      else
14194#        ifdef DL_NOW
14195#          define LT_DLLAZY_OR_NOW	DL_NOW
14196#        else
14197#          define LT_DLLAZY_OR_NOW	0
14198#        endif
14199#      endif
14200#    endif
14201#  endif
14202#endif
14203
14204/* When -fvisibility=hidden is used, assume the code has been annotated
14205   correspondingly for the symbols needed.  */
14206#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14207int fnord () __attribute__((visibility("default")));
14208#endif
14209
14210int fnord () { return 42; }
14211int main ()
14212{
14213  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14214  int status = $lt_dlunknown;
14215
14216  if (self)
14217    {
14218      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14219      else
14220        {
14221	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14222          else puts (dlerror ());
14223	}
14224      /* dlclose (self); */
14225    }
14226  else
14227    puts (dlerror ());
14228
14229  return status;
14230}
14231_LT_EOF
14232  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14233  (eval $ac_link) 2>&5
14234  ac_status=$?
14235  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14237    (./conftest; exit; ) >&5 2>/dev/null
14238    lt_status=$?
14239    case x$lt_status in
14240      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14241      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14242      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14243    esac
14244  else :
14245    # compilation failed
14246    lt_cv_dlopen_self_static=no
14247  fi
14248fi
14249rm -fr conftest*
14250
14251
14252fi
14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14254printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14255    fi
14256
14257    CPPFLAGS=$save_CPPFLAGS
14258    LDFLAGS=$save_LDFLAGS
14259    LIBS=$save_LIBS
14260    ;;
14261  esac
14262
14263  case $lt_cv_dlopen_self in
14264  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14265  *) enable_dlopen_self=unknown ;;
14266  esac
14267
14268  case $lt_cv_dlopen_self_static in
14269  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14270  *) enable_dlopen_self_static=unknown ;;
14271  esac
14272fi
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290striplib=
14291old_striplib=
14292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14293printf %s "checking whether stripping libraries is possible... " >&6; }
14294if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14295  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14296  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14298printf "%s\n" "yes" >&6; }
14299else
14300# FIXME - insert some real tests, host_os isn't really good enough
14301  case $host_os in
14302  darwin*)
14303    if test -n "$STRIP"; then
14304      striplib="$STRIP -x"
14305      old_striplib="$STRIP -S"
14306      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14307printf "%s\n" "yes" >&6; }
14308    else
14309      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310printf "%s\n" "no" >&6; }
14311    fi
14312    ;;
14313  *)
14314    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315printf "%s\n" "no" >&6; }
14316    ;;
14317  esac
14318fi
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331  # Report what library types will actually be built
14332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14333printf %s "checking if libtool supports shared libraries... " >&6; }
14334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14335printf "%s\n" "$can_build_shared" >&6; }
14336
14337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14338printf %s "checking whether to build shared libraries... " >&6; }
14339  test no = "$can_build_shared" && enable_shared=no
14340
14341  # On AIX, shared libraries and static libraries use the same namespace, and
14342  # are all built from PIC.
14343  case $host_os in
14344  aix3*)
14345    test yes = "$enable_shared" && enable_static=no
14346    if test -n "$RANLIB"; then
14347      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14348      postinstall_cmds='$RANLIB $lib'
14349    fi
14350    ;;
14351
14352  aix[4-9]*)
14353    if test ia64 != "$host_cpu"; then
14354      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14355      yes,aix,yes) ;;			# shared object as lib.so file only
14356      yes,svr4,*) ;;			# shared object as lib.so archive member only
14357      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14358      esac
14359    fi
14360    ;;
14361  esac
14362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14363printf "%s\n" "$enable_shared" >&6; }
14364
14365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14366printf %s "checking whether to build static libraries... " >&6; }
14367  # Make sure either enable_shared or enable_static is yes.
14368  test yes = "$enable_shared" || enable_static=yes
14369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14370printf "%s\n" "$enable_static" >&6; }
14371
14372
14373
14374
14375fi
14376ac_ext=c
14377ac_cpp='$CPP $CPPFLAGS'
14378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380ac_compiler_gnu=$ac_cv_c_compiler_gnu
14381
14382CC=$lt_save_CC
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398        ac_config_commands="$ac_config_commands libtool"
14399
14400
14401
14402
14403# Only expand once:
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413ac_ext=cpp
14414ac_cpp='$CXXCPP $CPPFLAGS'
14415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14418if test -z "$CXX"; then
14419  if test -n "$CCC"; then
14420    CXX=$CCC
14421  else
14422    if test -n "$ac_tool_prefix"; then
14423  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14424  do
14425    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428printf %s "checking for $ac_word... " >&6; }
14429if test ${ac_cv_prog_CXX+y}
14430then :
14431  printf %s "(cached) " >&6
14432else $as_nop
14433  if test -n "$CXX"; then
14434  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14435else
14436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437for as_dir in $PATH
14438do
14439  IFS=$as_save_IFS
14440  case $as_dir in #(((
14441    '') as_dir=./ ;;
14442    */) ;;
14443    *) as_dir=$as_dir/ ;;
14444  esac
14445    for ac_exec_ext in '' $ac_executable_extensions; do
14446  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14447    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14448    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14449    break 2
14450  fi
14451done
14452  done
14453IFS=$as_save_IFS
14454
14455fi
14456fi
14457CXX=$ac_cv_prog_CXX
14458if test -n "$CXX"; then
14459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14460printf "%s\n" "$CXX" >&6; }
14461else
14462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463printf "%s\n" "no" >&6; }
14464fi
14465
14466
14467    test -n "$CXX" && break
14468  done
14469fi
14470if test -z "$CXX"; then
14471  ac_ct_CXX=$CXX
14472  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14473do
14474  # Extract the first word of "$ac_prog", so it can be a program name with args.
14475set dummy $ac_prog; ac_word=$2
14476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14477printf %s "checking for $ac_word... " >&6; }
14478if test ${ac_cv_prog_ac_ct_CXX+y}
14479then :
14480  printf %s "(cached) " >&6
14481else $as_nop
14482  if test -n "$ac_ct_CXX"; then
14483  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14484else
14485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14486for as_dir in $PATH
14487do
14488  IFS=$as_save_IFS
14489  case $as_dir in #(((
14490    '') as_dir=./ ;;
14491    */) ;;
14492    *) as_dir=$as_dir/ ;;
14493  esac
14494    for ac_exec_ext in '' $ac_executable_extensions; do
14495  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14496    ac_cv_prog_ac_ct_CXX="$ac_prog"
14497    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14498    break 2
14499  fi
14500done
14501  done
14502IFS=$as_save_IFS
14503
14504fi
14505fi
14506ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14507if test -n "$ac_ct_CXX"; then
14508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14509printf "%s\n" "$ac_ct_CXX" >&6; }
14510else
14511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14512printf "%s\n" "no" >&6; }
14513fi
14514
14515
14516  test -n "$ac_ct_CXX" && break
14517done
14518
14519  if test "x$ac_ct_CXX" = x; then
14520    CXX="g++"
14521  else
14522    case $cross_compiling:$ac_tool_warned in
14523yes:)
14524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14525printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14526ac_tool_warned=yes ;;
14527esac
14528    CXX=$ac_ct_CXX
14529  fi
14530fi
14531
14532  fi
14533fi
14534# Provide some information about the compiler.
14535printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14536set X $ac_compile
14537ac_compiler=$2
14538for ac_option in --version -v -V -qversion; do
14539  { { ac_try="$ac_compiler $ac_option >&5"
14540case "(($ac_try" in
14541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542  *) ac_try_echo=$ac_try;;
14543esac
14544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14545printf "%s\n" "$ac_try_echo"; } >&5
14546  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14547  ac_status=$?
14548  if test -s conftest.err; then
14549    sed '10a\
14550... rest of stderr output deleted ...
14551         10q' conftest.err >conftest.er1
14552    cat conftest.er1 >&5
14553  fi
14554  rm -f conftest.er1 conftest.err
14555  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556  test $ac_status = 0; }
14557done
14558
14559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14560printf %s "checking whether the compiler supports GNU C++... " >&6; }
14561if test ${ac_cv_cxx_compiler_gnu+y}
14562then :
14563  printf %s "(cached) " >&6
14564else $as_nop
14565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566/* end confdefs.h.  */
14567
14568int
14569main (void)
14570{
14571#ifndef __GNUC__
14572       choke me
14573#endif
14574
14575  ;
14576  return 0;
14577}
14578_ACEOF
14579if ac_fn_cxx_try_compile "$LINENO"
14580then :
14581  ac_compiler_gnu=yes
14582else $as_nop
14583  ac_compiler_gnu=no
14584fi
14585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14586ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14587
14588fi
14589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14590printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14592
14593if test $ac_compiler_gnu = yes; then
14594  GXX=yes
14595else
14596  GXX=
14597fi
14598ac_test_CXXFLAGS=${CXXFLAGS+y}
14599ac_save_CXXFLAGS=$CXXFLAGS
14600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14601printf %s "checking whether $CXX accepts -g... " >&6; }
14602if test ${ac_cv_prog_cxx_g+y}
14603then :
14604  printf %s "(cached) " >&6
14605else $as_nop
14606  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14607   ac_cxx_werror_flag=yes
14608   ac_cv_prog_cxx_g=no
14609   CXXFLAGS="-g"
14610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611/* end confdefs.h.  */
14612
14613int
14614main (void)
14615{
14616
14617  ;
14618  return 0;
14619}
14620_ACEOF
14621if ac_fn_cxx_try_compile "$LINENO"
14622then :
14623  ac_cv_prog_cxx_g=yes
14624else $as_nop
14625  CXXFLAGS=""
14626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628
14629int
14630main (void)
14631{
14632
14633  ;
14634  return 0;
14635}
14636_ACEOF
14637if ac_fn_cxx_try_compile "$LINENO"
14638then :
14639
14640else $as_nop
14641  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14642	 CXXFLAGS="-g"
14643	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644/* end confdefs.h.  */
14645
14646int
14647main (void)
14648{
14649
14650  ;
14651  return 0;
14652}
14653_ACEOF
14654if ac_fn_cxx_try_compile "$LINENO"
14655then :
14656  ac_cv_prog_cxx_g=yes
14657fi
14658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14659fi
14660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14661fi
14662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14663   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14664fi
14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14666printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14667if test $ac_test_CXXFLAGS; then
14668  CXXFLAGS=$ac_save_CXXFLAGS
14669elif test $ac_cv_prog_cxx_g = yes; then
14670  if test "$GXX" = yes; then
14671    CXXFLAGS="-g -O2"
14672  else
14673    CXXFLAGS="-g"
14674  fi
14675else
14676  if test "$GXX" = yes; then
14677    CXXFLAGS="-O2"
14678  else
14679    CXXFLAGS=
14680  fi
14681fi
14682ac_prog_cxx_stdcxx=no
14683if test x$ac_prog_cxx_stdcxx = xno
14684then :
14685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14686printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14687if test ${ac_cv_prog_cxx_11+y}
14688then :
14689  printf %s "(cached) " >&6
14690else $as_nop
14691  ac_cv_prog_cxx_11=no
14692ac_save_CXX=$CXX
14693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694/* end confdefs.h.  */
14695$ac_cxx_conftest_cxx11_program
14696_ACEOF
14697for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14698do
14699  CXX="$ac_save_CXX $ac_arg"
14700  if ac_fn_cxx_try_compile "$LINENO"
14701then :
14702  ac_cv_prog_cxx_cxx11=$ac_arg
14703fi
14704rm -f core conftest.err conftest.$ac_objext conftest.beam
14705  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14706done
14707rm -f conftest.$ac_ext
14708CXX=$ac_save_CXX
14709fi
14710
14711if test "x$ac_cv_prog_cxx_cxx11" = xno
14712then :
14713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14714printf "%s\n" "unsupported" >&6; }
14715else $as_nop
14716  if test "x$ac_cv_prog_cxx_cxx11" = x
14717then :
14718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14719printf "%s\n" "none needed" >&6; }
14720else $as_nop
14721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14722printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14723     CXX="$CXX $ac_cv_prog_cxx_cxx11"
14724fi
14725  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14726  ac_prog_cxx_stdcxx=cxx11
14727fi
14728fi
14729if test x$ac_prog_cxx_stdcxx = xno
14730then :
14731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14732printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14733if test ${ac_cv_prog_cxx_98+y}
14734then :
14735  printf %s "(cached) " >&6
14736else $as_nop
14737  ac_cv_prog_cxx_98=no
14738ac_save_CXX=$CXX
14739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h.  */
14741$ac_cxx_conftest_cxx98_program
14742_ACEOF
14743for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14744do
14745  CXX="$ac_save_CXX $ac_arg"
14746  if ac_fn_cxx_try_compile "$LINENO"
14747then :
14748  ac_cv_prog_cxx_cxx98=$ac_arg
14749fi
14750rm -f core conftest.err conftest.$ac_objext conftest.beam
14751  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14752done
14753rm -f conftest.$ac_ext
14754CXX=$ac_save_CXX
14755fi
14756
14757if test "x$ac_cv_prog_cxx_cxx98" = xno
14758then :
14759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14760printf "%s\n" "unsupported" >&6; }
14761else $as_nop
14762  if test "x$ac_cv_prog_cxx_cxx98" = x
14763then :
14764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14765printf "%s\n" "none needed" >&6; }
14766else $as_nop
14767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14768printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14769     CXX="$CXX $ac_cv_prog_cxx_cxx98"
14770fi
14771  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14772  ac_prog_cxx_stdcxx=cxx98
14773fi
14774fi
14775
14776ac_ext=c
14777ac_cpp='$CPP $CPPFLAGS'
14778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14780ac_compiler_gnu=$ac_cv_c_compiler_gnu
14781
14782depcc="$CXX"  am_compiler_list=
14783
14784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14785printf %s "checking dependency style of $depcc... " >&6; }
14786if test ${am_cv_CXX_dependencies_compiler_type+y}
14787then :
14788  printf %s "(cached) " >&6
14789else $as_nop
14790  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14791  # We make a subdir and do the tests there.  Otherwise we can end up
14792  # making bogus files that we don't know about and never remove.  For
14793  # instance it was reported that on HP-UX the gcc test will end up
14794  # making a dummy file named 'D' -- because '-MD' means "put the output
14795  # in D".
14796  rm -rf conftest.dir
14797  mkdir conftest.dir
14798  # Copy depcomp to subdir because otherwise we won't find it if we're
14799  # using a relative directory.
14800  cp "$am_depcomp" conftest.dir
14801  cd conftest.dir
14802  # We will build objects and dependencies in a subdirectory because
14803  # it helps to detect inapplicable dependency modes.  For instance
14804  # both Tru64's cc and ICC support -MD to output dependencies as a
14805  # side effect of compilation, but ICC will put the dependencies in
14806  # the current directory while Tru64 will put them in the object
14807  # directory.
14808  mkdir sub
14809
14810  am_cv_CXX_dependencies_compiler_type=none
14811  if test "$am_compiler_list" = ""; then
14812     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14813  fi
14814  am__universal=false
14815  case " $depcc " in #(
14816     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14817     esac
14818
14819  for depmode in $am_compiler_list; do
14820    # Setup a source with many dependencies, because some compilers
14821    # like to wrap large dependency lists on column 80 (with \), and
14822    # we should not choose a depcomp mode which is confused by this.
14823    #
14824    # We need to recreate these files for each test, as the compiler may
14825    # overwrite some of them when testing with obscure command lines.
14826    # This happens at least with the AIX C compiler.
14827    : > sub/conftest.c
14828    for i in 1 2 3 4 5 6; do
14829      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14830      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14831      # Solaris 10 /bin/sh.
14832      echo '/* dummy */' > sub/conftst$i.h
14833    done
14834    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14835
14836    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14837    # mode.  It turns out that the SunPro C++ compiler does not properly
14838    # handle '-M -o', and we need to detect this.  Also, some Intel
14839    # versions had trouble with output in subdirs.
14840    am__obj=sub/conftest.${OBJEXT-o}
14841    am__minus_obj="-o $am__obj"
14842    case $depmode in
14843    gcc)
14844      # This depmode causes a compiler race in universal mode.
14845      test "$am__universal" = false || continue
14846      ;;
14847    nosideeffect)
14848      # After this tag, mechanisms are not by side-effect, so they'll
14849      # only be used when explicitly requested.
14850      if test "x$enable_dependency_tracking" = xyes; then
14851	continue
14852      else
14853	break
14854      fi
14855      ;;
14856    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14857      # This compiler won't grok '-c -o', but also, the minuso test has
14858      # not run yet.  These depmodes are late enough in the game, and
14859      # so weak that their functioning should not be impacted.
14860      am__obj=conftest.${OBJEXT-o}
14861      am__minus_obj=
14862      ;;
14863    none) break ;;
14864    esac
14865    if depmode=$depmode \
14866       source=sub/conftest.c object=$am__obj \
14867       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14868       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14869         >/dev/null 2>conftest.err &&
14870       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14871       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14872       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14873       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14874      # icc doesn't choke on unknown options, it will just issue warnings
14875      # or remarks (even with -Werror).  So we grep stderr for any message
14876      # that says an option was ignored or not supported.
14877      # When given -MP, icc 7.0 and 7.1 complain thusly:
14878      #   icc: Command line warning: ignoring option '-M'; no argument required
14879      # The diagnosis changed in icc 8.0:
14880      #   icc: Command line remark: option '-MP' not supported
14881      if (grep 'ignoring option' conftest.err ||
14882          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14883        am_cv_CXX_dependencies_compiler_type=$depmode
14884        break
14885      fi
14886    fi
14887  done
14888
14889  cd ..
14890  rm -rf conftest.dir
14891else
14892  am_cv_CXX_dependencies_compiler_type=none
14893fi
14894
14895fi
14896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14897printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14898CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14899
14900 if
14901  test "x$enable_dependency_tracking" != xno \
14902  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14903  am__fastdepCXX_TRUE=
14904  am__fastdepCXX_FALSE='#'
14905else
14906  am__fastdepCXX_TRUE='#'
14907  am__fastdepCXX_FALSE=
14908fi
14909
14910
14911
14912
14913
14914func_stripname_cnf ()
14915{
14916  case $2 in
14917  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14918  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14919  esac
14920} # func_stripname_cnf
14921
14922      if test -n "$CXX" && ( test no != "$CXX" &&
14923    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14924    (test g++ != "$CXX"))); then
14925  ac_ext=cpp
14926ac_cpp='$CXXCPP $CPPFLAGS'
14927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14931printf %s "checking how to run the C++ preprocessor... " >&6; }
14932if test -z "$CXXCPP"; then
14933  if test ${ac_cv_prog_CXXCPP+y}
14934then :
14935  printf %s "(cached) " >&6
14936else $as_nop
14937      # Double quotes because $CXX needs to be expanded
14938    for CXXCPP in "$CXX -E" cpp /lib/cpp
14939    do
14940      ac_preproc_ok=false
14941for ac_cxx_preproc_warn_flag in '' yes
14942do
14943  # Use a header file that comes with gcc, so configuring glibc
14944  # with a fresh cross-compiler works.
14945  # On the NeXT, cc -E runs the code through the compiler's parser,
14946  # not just through cpp. "Syntax error" is here to catch this case.
14947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h.  */
14949#include <limits.h>
14950		     Syntax error
14951_ACEOF
14952if ac_fn_cxx_try_cpp "$LINENO"
14953then :
14954
14955else $as_nop
14956  # Broken: fails on valid input.
14957continue
14958fi
14959rm -f conftest.err conftest.i conftest.$ac_ext
14960
14961  # OK, works on sane cases.  Now check whether nonexistent headers
14962  # can be detected and how.
14963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h.  */
14965#include <ac_nonexistent.h>
14966_ACEOF
14967if ac_fn_cxx_try_cpp "$LINENO"
14968then :
14969  # Broken: success on invalid input.
14970continue
14971else $as_nop
14972  # Passes both tests.
14973ac_preproc_ok=:
14974break
14975fi
14976rm -f conftest.err conftest.i conftest.$ac_ext
14977
14978done
14979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14980rm -f conftest.i conftest.err conftest.$ac_ext
14981if $ac_preproc_ok
14982then :
14983  break
14984fi
14985
14986    done
14987    ac_cv_prog_CXXCPP=$CXXCPP
14988
14989fi
14990  CXXCPP=$ac_cv_prog_CXXCPP
14991else
14992  ac_cv_prog_CXXCPP=$CXXCPP
14993fi
14994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14995printf "%s\n" "$CXXCPP" >&6; }
14996ac_preproc_ok=false
14997for ac_cxx_preproc_warn_flag in '' yes
14998do
14999  # Use a header file that comes with gcc, so configuring glibc
15000  # with a fresh cross-compiler works.
15001  # On the NeXT, cc -E runs the code through the compiler's parser,
15002  # not just through cpp. "Syntax error" is here to catch this case.
15003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h.  */
15005#include <limits.h>
15006		     Syntax error
15007_ACEOF
15008if ac_fn_cxx_try_cpp "$LINENO"
15009then :
15010
15011else $as_nop
15012  # Broken: fails on valid input.
15013continue
15014fi
15015rm -f conftest.err conftest.i conftest.$ac_ext
15016
15017  # OK, works on sane cases.  Now check whether nonexistent headers
15018  # can be detected and how.
15019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020/* end confdefs.h.  */
15021#include <ac_nonexistent.h>
15022_ACEOF
15023if ac_fn_cxx_try_cpp "$LINENO"
15024then :
15025  # Broken: success on invalid input.
15026continue
15027else $as_nop
15028  # Passes both tests.
15029ac_preproc_ok=:
15030break
15031fi
15032rm -f conftest.err conftest.i conftest.$ac_ext
15033
15034done
15035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15036rm -f conftest.i conftest.err conftest.$ac_ext
15037if $ac_preproc_ok
15038then :
15039
15040else $as_nop
15041  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15043as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15044See \`config.log' for more details" "$LINENO" 5; }
15045fi
15046
15047ac_ext=c
15048ac_cpp='$CPP $CPPFLAGS'
15049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15051ac_compiler_gnu=$ac_cv_c_compiler_gnu
15052
15053else
15054  _lt_caught_CXX_error=yes
15055fi
15056
15057ac_ext=cpp
15058ac_cpp='$CXXCPP $CPPFLAGS'
15059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15062
15063archive_cmds_need_lc_CXX=no
15064allow_undefined_flag_CXX=
15065always_export_symbols_CXX=no
15066archive_expsym_cmds_CXX=
15067compiler_needs_object_CXX=no
15068export_dynamic_flag_spec_CXX=
15069hardcode_direct_CXX=no
15070hardcode_direct_absolute_CXX=no
15071hardcode_libdir_flag_spec_CXX=
15072hardcode_libdir_separator_CXX=
15073hardcode_minus_L_CXX=no
15074hardcode_shlibpath_var_CXX=unsupported
15075hardcode_automatic_CXX=no
15076inherit_rpath_CXX=no
15077module_cmds_CXX=
15078module_expsym_cmds_CXX=
15079link_all_deplibs_CXX=unknown
15080old_archive_cmds_CXX=$old_archive_cmds
15081reload_flag_CXX=$reload_flag
15082reload_cmds_CXX=$reload_cmds
15083no_undefined_flag_CXX=
15084whole_archive_flag_spec_CXX=
15085enable_shared_with_static_runtimes_CXX=no
15086
15087# Source file extension for C++ test sources.
15088ac_ext=cpp
15089
15090# Object file extension for compiled C++ test sources.
15091objext=o
15092objext_CXX=$objext
15093
15094# No sense in running all these tests if we already determined that
15095# the CXX compiler isn't working.  Some variables (like enable_shared)
15096# are currently assumed to apply to all compilers on this platform,
15097# and will be corrupted by setting them based on a non-working compiler.
15098if test yes != "$_lt_caught_CXX_error"; then
15099  # Code to be used in simple compile tests
15100  lt_simple_compile_test_code="int some_variable = 0;"
15101
15102  # Code to be used in simple link tests
15103  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15104
15105  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15106
15107
15108
15109
15110
15111
15112# If no C compiler was specified, use CC.
15113LTCC=${LTCC-"$CC"}
15114
15115# If no C compiler flags were specified, use CFLAGS.
15116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15117
15118# Allow CC to be a program name with arguments.
15119compiler=$CC
15120
15121
15122  # save warnings/boilerplate of simple test code
15123  ac_outfile=conftest.$ac_objext
15124echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15125eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15126_lt_compiler_boilerplate=`cat conftest.err`
15127$RM conftest*
15128
15129  ac_outfile=conftest.$ac_objext
15130echo "$lt_simple_link_test_code" >conftest.$ac_ext
15131eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15132_lt_linker_boilerplate=`cat conftest.err`
15133$RM -r conftest*
15134
15135
15136  # Allow CC to be a program name with arguments.
15137  lt_save_CC=$CC
15138  lt_save_CFLAGS=$CFLAGS
15139  lt_save_LD=$LD
15140  lt_save_GCC=$GCC
15141  GCC=$GXX
15142  lt_save_with_gnu_ld=$with_gnu_ld
15143  lt_save_path_LD=$lt_cv_path_LD
15144  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15145    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15146  else
15147    $as_unset lt_cv_prog_gnu_ld
15148  fi
15149  if test -n "${lt_cv_path_LDCXX+set}"; then
15150    lt_cv_path_LD=$lt_cv_path_LDCXX
15151  else
15152    $as_unset lt_cv_path_LD
15153  fi
15154  test -z "${LDCXX+set}" || LD=$LDCXX
15155  CC=${CXX-"c++"}
15156  CFLAGS=$CXXFLAGS
15157  compiler=$CC
15158  compiler_CXX=$CC
15159  func_cc_basename $compiler
15160cc_basename=$func_cc_basename_result
15161
15162
15163  if test -n "$compiler"; then
15164    # We don't want -fno-exception when compiling C++ code, so set the
15165    # no_builtin_flag separately
15166    if test yes = "$GXX"; then
15167      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15168    else
15169      lt_prog_compiler_no_builtin_flag_CXX=
15170    fi
15171
15172    if test yes = "$GXX"; then
15173      # Set up default GNU C++ configuration
15174
15175
15176
15177# Check whether --with-gnu-ld was given.
15178if test ${with_gnu_ld+y}
15179then :
15180  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15181else $as_nop
15182  with_gnu_ld=no
15183fi
15184
15185ac_prog=ld
15186if test yes = "$GCC"; then
15187  # Check if gcc -print-prog-name=ld gives a path.
15188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15189printf %s "checking for ld used by $CC... " >&6; }
15190  case $host in
15191  *-*-mingw*)
15192    # gcc leaves a trailing carriage return, which upsets mingw
15193    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15194  *)
15195    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15196  esac
15197  case $ac_prog in
15198    # Accept absolute paths.
15199    [\\/]* | ?:[\\/]*)
15200      re_direlt='/[^/][^/]*/\.\./'
15201      # Canonicalize the pathname of ld
15202      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15203      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15204	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15205      done
15206      test -z "$LD" && LD=$ac_prog
15207      ;;
15208  "")
15209    # If it fails, then pretend we aren't using GCC.
15210    ac_prog=ld
15211    ;;
15212  *)
15213    # If it is relative, then search for the first ld in PATH.
15214    with_gnu_ld=unknown
15215    ;;
15216  esac
15217elif test yes = "$with_gnu_ld"; then
15218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15219printf %s "checking for GNU ld... " >&6; }
15220else
15221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15222printf %s "checking for non-GNU ld... " >&6; }
15223fi
15224if test ${lt_cv_path_LD+y}
15225then :
15226  printf %s "(cached) " >&6
15227else $as_nop
15228  if test -z "$LD"; then
15229  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15230  for ac_dir in $PATH; do
15231    IFS=$lt_save_ifs
15232    test -z "$ac_dir" && ac_dir=.
15233    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15234      lt_cv_path_LD=$ac_dir/$ac_prog
15235      # Check to see if the program is GNU ld.  I'd rather use --version,
15236      # but apparently some variants of GNU ld only accept -v.
15237      # Break only if it was the GNU/non-GNU ld that we prefer.
15238      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15239      *GNU* | *'with BFD'*)
15240	test no != "$with_gnu_ld" && break
15241	;;
15242      *)
15243	test yes != "$with_gnu_ld" && break
15244	;;
15245      esac
15246    fi
15247  done
15248  IFS=$lt_save_ifs
15249else
15250  lt_cv_path_LD=$LD # Let the user override the test with a path.
15251fi
15252fi
15253
15254LD=$lt_cv_path_LD
15255if test -n "$LD"; then
15256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15257printf "%s\n" "$LD" >&6; }
15258else
15259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15260printf "%s\n" "no" >&6; }
15261fi
15262test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15264printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15265if test ${lt_cv_prog_gnu_ld+y}
15266then :
15267  printf %s "(cached) " >&6
15268else $as_nop
15269  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15270case `$LD -v 2>&1 </dev/null` in
15271*GNU* | *'with BFD'*)
15272  lt_cv_prog_gnu_ld=yes
15273  ;;
15274*)
15275  lt_cv_prog_gnu_ld=no
15276  ;;
15277esac
15278fi
15279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15280printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15281with_gnu_ld=$lt_cv_prog_gnu_ld
15282
15283
15284
15285
15286
15287
15288
15289      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15290      # archiving commands below assume that GNU ld is being used.
15291      if test yes = "$with_gnu_ld"; then
15292        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15293        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15294
15295        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15296        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15297
15298        # If archive_cmds runs LD, not CC, wlarc should be empty
15299        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15300        #     investigate it a little bit more. (MM)
15301        wlarc='$wl'
15302
15303        # ancient GNU ld didn't support --whole-archive et. al.
15304        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15305	  $GREP 'no-whole-archive' > /dev/null; then
15306          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15307        else
15308          whole_archive_flag_spec_CXX=
15309        fi
15310      else
15311        with_gnu_ld=no
15312        wlarc=
15313
15314        # A generic and very simple default shared library creation
15315        # command for GNU C++ for the case where it uses the native
15316        # linker, instead of GNU ld.  If possible, this setting should
15317        # overridden to take advantage of the native linker features on
15318        # the platform it is being used on.
15319        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15320      fi
15321
15322      # Commands to make compiler produce verbose output that lists
15323      # what "hidden" libraries, object files and flags are used when
15324      # linking a shared library.
15325      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15326
15327    else
15328      GXX=no
15329      with_gnu_ld=no
15330      wlarc=
15331    fi
15332
15333    # PORTME: fill in a description of your system's C++ link characteristics
15334    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15335printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15336    ld_shlibs_CXX=yes
15337    case $host_os in
15338      aix3*)
15339        # FIXME: insert proper C++ library support
15340        ld_shlibs_CXX=no
15341        ;;
15342      aix[4-9]*)
15343        if test ia64 = "$host_cpu"; then
15344          # On IA64, the linker does run time linking by default, so we don't
15345          # have to do anything special.
15346          aix_use_runtimelinking=no
15347          exp_sym_flag='-Bexport'
15348          no_entry_flag=
15349        else
15350          aix_use_runtimelinking=no
15351
15352          # Test if we are trying to use run time linking or normal
15353          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15354          # have runtime linking enabled, and use it for executables.
15355          # For shared libraries, we enable/disable runtime linking
15356          # depending on the kind of the shared library created -
15357          # when "with_aix_soname,aix_use_runtimelinking" is:
15358          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15359          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15360          #            lib.a           static archive
15361          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15362          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15363          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15364          #            lib.a(lib.so.V) shared, rtl:no
15365          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15366          #            lib.a           static archive
15367          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15368	    for ld_flag in $LDFLAGS; do
15369	      case $ld_flag in
15370	      *-brtl*)
15371	        aix_use_runtimelinking=yes
15372	        break
15373	        ;;
15374	      esac
15375	    done
15376	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15377	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15378	      # so we don't have lib.a shared libs to link our executables.
15379	      # We have to force runtime linking in this case.
15380	      aix_use_runtimelinking=yes
15381	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15382	    fi
15383	    ;;
15384          esac
15385
15386          exp_sym_flag='-bexport'
15387          no_entry_flag='-bnoentry'
15388        fi
15389
15390        # When large executables or shared objects are built, AIX ld can
15391        # have problems creating the table of contents.  If linking a library
15392        # or program results in "error TOC overflow" add -mminimal-toc to
15393        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15394        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15395
15396        archive_cmds_CXX=''
15397        hardcode_direct_CXX=yes
15398        hardcode_direct_absolute_CXX=yes
15399        hardcode_libdir_separator_CXX=':'
15400        link_all_deplibs_CXX=yes
15401        file_list_spec_CXX='$wl-f,'
15402        case $with_aix_soname,$aix_use_runtimelinking in
15403        aix,*) ;;	# no import file
15404        svr4,* | *,yes) # use import file
15405          # The Import File defines what to hardcode.
15406          hardcode_direct_CXX=no
15407          hardcode_direct_absolute_CXX=no
15408          ;;
15409        esac
15410
15411        if test yes = "$GXX"; then
15412          case $host_os in aix4.[012]|aix4.[012].*)
15413          # We only want to do this on AIX 4.2 and lower, the check
15414          # below for broken collect2 doesn't work under 4.3+
15415	  collect2name=`$CC -print-prog-name=collect2`
15416	  if test -f "$collect2name" &&
15417	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15418	  then
15419	    # We have reworked collect2
15420	    :
15421	  else
15422	    # We have old collect2
15423	    hardcode_direct_CXX=unsupported
15424	    # It fails to find uninstalled libraries when the uninstalled
15425	    # path is not listed in the libpath.  Setting hardcode_minus_L
15426	    # to unsupported forces relinking
15427	    hardcode_minus_L_CXX=yes
15428	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15429	    hardcode_libdir_separator_CXX=
15430	  fi
15431          esac
15432          shared_flag='-shared'
15433	  if test yes = "$aix_use_runtimelinking"; then
15434	    shared_flag=$shared_flag' $wl-G'
15435	  fi
15436	  # Need to ensure runtime linking is disabled for the traditional
15437	  # shared library, or the linker may eventually find shared libraries
15438	  # /with/ Import File - we do not want to mix them.
15439	  shared_flag_aix='-shared'
15440	  shared_flag_svr4='-shared $wl-G'
15441        else
15442          # not using gcc
15443          if test ia64 = "$host_cpu"; then
15444	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15445	  # chokes on -Wl,-G. The following line is correct:
15446	  shared_flag='-G'
15447          else
15448	    if test yes = "$aix_use_runtimelinking"; then
15449	      shared_flag='$wl-G'
15450	    else
15451	      shared_flag='$wl-bM:SRE'
15452	    fi
15453	    shared_flag_aix='$wl-bM:SRE'
15454	    shared_flag_svr4='$wl-G'
15455          fi
15456        fi
15457
15458        export_dynamic_flag_spec_CXX='$wl-bexpall'
15459        # It seems that -bexpall does not export symbols beginning with
15460        # underscore (_), so it is better to generate a list of symbols to
15461	# export.
15462        always_export_symbols_CXX=yes
15463	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15464          # Warning - without using the other runtime loading flags (-brtl),
15465          # -berok will link without error, but may produce a broken library.
15466          # The "-G" linker flag allows undefined symbols.
15467          no_undefined_flag_CXX='-bernotok'
15468          # Determine the default libpath from the value encoded in an empty
15469          # executable.
15470          if test set = "${lt_cv_aix_libpath+set}"; then
15471  aix_libpath=$lt_cv_aix_libpath
15472else
15473  if test ${lt_cv_aix_libpath__CXX+y}
15474then :
15475  printf %s "(cached) " >&6
15476else $as_nop
15477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478/* end confdefs.h.  */
15479
15480int
15481main (void)
15482{
15483
15484  ;
15485  return 0;
15486}
15487_ACEOF
15488if ac_fn_cxx_try_link "$LINENO"
15489then :
15490
15491  lt_aix_libpath_sed='
15492      /Import File Strings/,/^$/ {
15493	  /^0/ {
15494	      s/^0  *\([^ ]*\) *$/\1/
15495	      p
15496	  }
15497      }'
15498  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15499  # Check for a 64-bit object if we didn't find anything.
15500  if test -z "$lt_cv_aix_libpath__CXX"; then
15501    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15502  fi
15503fi
15504rm -f core conftest.err conftest.$ac_objext conftest.beam \
15505    conftest$ac_exeext conftest.$ac_ext
15506  if test -z "$lt_cv_aix_libpath__CXX"; then
15507    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15508  fi
15509
15510fi
15511
15512  aix_libpath=$lt_cv_aix_libpath__CXX
15513fi
15514
15515          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15516
15517          archive_expsym_cmds_CXX='$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
15518        else
15519          if test ia64 = "$host_cpu"; then
15520	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15521	    allow_undefined_flag_CXX="-z nodefs"
15522	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15523          else
15524	    # Determine the default libpath from the value encoded in an
15525	    # empty executable.
15526	    if test set = "${lt_cv_aix_libpath+set}"; then
15527  aix_libpath=$lt_cv_aix_libpath
15528else
15529  if test ${lt_cv_aix_libpath__CXX+y}
15530then :
15531  printf %s "(cached) " >&6
15532else $as_nop
15533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534/* end confdefs.h.  */
15535
15536int
15537main (void)
15538{
15539
15540  ;
15541  return 0;
15542}
15543_ACEOF
15544if ac_fn_cxx_try_link "$LINENO"
15545then :
15546
15547  lt_aix_libpath_sed='
15548      /Import File Strings/,/^$/ {
15549	  /^0/ {
15550	      s/^0  *\([^ ]*\) *$/\1/
15551	      p
15552	  }
15553      }'
15554  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15555  # Check for a 64-bit object if we didn't find anything.
15556  if test -z "$lt_cv_aix_libpath__CXX"; then
15557    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15558  fi
15559fi
15560rm -f core conftest.err conftest.$ac_objext conftest.beam \
15561    conftest$ac_exeext conftest.$ac_ext
15562  if test -z "$lt_cv_aix_libpath__CXX"; then
15563    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15564  fi
15565
15566fi
15567
15568  aix_libpath=$lt_cv_aix_libpath__CXX
15569fi
15570
15571	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15572	    # Warning - without using the other run time loading flags,
15573	    # -berok will link without error, but may produce a broken library.
15574	    no_undefined_flag_CXX=' $wl-bernotok'
15575	    allow_undefined_flag_CXX=' $wl-berok'
15576	    if test yes = "$with_gnu_ld"; then
15577	      # We only use this code for GNU lds that support --whole-archive.
15578	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15579	    else
15580	      # Exported symbols can be pulled into shared objects from archives
15581	      whole_archive_flag_spec_CXX='$convenience'
15582	    fi
15583	    archive_cmds_need_lc_CXX=yes
15584	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15585	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15586	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15587	    if test svr4 != "$with_aix_soname"; then
15588	      # This is similar to how AIX traditionally builds its shared
15589	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15590	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
15591	    fi
15592	    if test aix != "$with_aix_soname"; then
15593	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
15594	    else
15595	      # used by -dlpreopen to get the symbols
15596	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15597	    fi
15598	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15599          fi
15600        fi
15601        ;;
15602
15603      beos*)
15604	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15605	  allow_undefined_flag_CXX=unsupported
15606	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15607	  # support --undefined.  This deserves some investigation.  FIXME
15608	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15609	else
15610	  ld_shlibs_CXX=no
15611	fi
15612	;;
15613
15614      chorus*)
15615        case $cc_basename in
15616          *)
15617	  # FIXME: insert proper C++ library support
15618	  ld_shlibs_CXX=no
15619	  ;;
15620        esac
15621        ;;
15622
15623      cygwin* | mingw* | pw32* | cegcc*)
15624	case $GXX,$cc_basename in
15625	,cl* | no,cl*)
15626	  # Native MSVC
15627	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15628	  # no search path for DLLs.
15629	  hardcode_libdir_flag_spec_CXX=' '
15630	  allow_undefined_flag_CXX=unsupported
15631	  always_export_symbols_CXX=yes
15632	  file_list_spec_CXX='@'
15633	  # Tell ltmain to make .lib files, not .a files.
15634	  libext=lib
15635	  # Tell ltmain to make .dll files, not .so files.
15636	  shrext_cmds=.dll
15637	  # FIXME: Setting linknames here is a bad hack.
15638	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15639	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15640              cp "$export_symbols" "$output_objdir/$soname.def";
15641              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15642            else
15643              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15644            fi~
15645            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15646            linknames='
15647	  # The linker will not automatically build a static lib if we build a DLL.
15648	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15649	  enable_shared_with_static_runtimes_CXX=yes
15650	  # Don't use ranlib
15651	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15652	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15653            lt_tool_outputfile="@TOOL_OUTPUT@"~
15654            case $lt_outputfile in
15655              *.exe|*.EXE) ;;
15656              *)
15657                lt_outputfile=$lt_outputfile.exe
15658                lt_tool_outputfile=$lt_tool_outputfile.exe
15659                ;;
15660            esac~
15661            func_to_tool_file "$lt_outputfile"~
15662            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15663              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15664              $RM "$lt_outputfile.manifest";
15665            fi'
15666	  ;;
15667	*)
15668	  # g++
15669	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15670	  # as there is no search path for DLLs.
15671	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15672	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15673	  allow_undefined_flag_CXX=unsupported
15674	  always_export_symbols_CXX=no
15675	  enable_shared_with_static_runtimes_CXX=yes
15676
15677	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15678	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15679	    # If the export-symbols file already is a .def file, use it as
15680	    # is; otherwise, prepend EXPORTS...
15681	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15682              cp $export_symbols $output_objdir/$soname.def;
15683            else
15684              echo EXPORTS > $output_objdir/$soname.def;
15685              cat $export_symbols >> $output_objdir/$soname.def;
15686            fi~
15687            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15688	  else
15689	    ld_shlibs_CXX=no
15690	  fi
15691	  ;;
15692	esac
15693	;;
15694      darwin* | rhapsody*)
15695
15696
15697  archive_cmds_need_lc_CXX=no
15698  hardcode_direct_CXX=no
15699  hardcode_automatic_CXX=yes
15700  hardcode_shlibpath_var_CXX=unsupported
15701  if test yes = "$lt_cv_ld_force_load"; then
15702    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15703
15704  else
15705    whole_archive_flag_spec_CXX=''
15706  fi
15707  link_all_deplibs_CXX=yes
15708  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15709  case $cc_basename in
15710     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15711     *) _lt_dar_can_shared=$GCC ;;
15712  esac
15713  if test yes = "$_lt_dar_can_shared"; then
15714    output_verbose_link_cmd=func_echo_all
15715    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15716    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15717    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15718    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15719       if test yes != "$lt_cv_apple_cc_single_mod"; then
15720      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15721      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15722    fi
15723
15724  else
15725  ld_shlibs_CXX=no
15726  fi
15727
15728	;;
15729
15730      os2*)
15731	hardcode_libdir_flag_spec_CXX='-L$libdir'
15732	hardcode_minus_L_CXX=yes
15733	allow_undefined_flag_CXX=unsupported
15734	shrext_cmds=.dll
15735	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15736	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15737	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15738	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15739	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15740	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15741	  emximp -o $lib $output_objdir/$libname.def'
15742	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15743	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15744	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15745	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15746	  prefix_cmds="$SED"~
15747	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15748	    prefix_cmds="$prefix_cmds -e 1d";
15749	  fi~
15750	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15751	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15752	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15753	  emximp -o $lib $output_objdir/$libname.def'
15754	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15755	enable_shared_with_static_runtimes_CXX=yes
15756	;;
15757
15758      dgux*)
15759        case $cc_basename in
15760          ec++*)
15761	    # FIXME: insert proper C++ library support
15762	    ld_shlibs_CXX=no
15763	    ;;
15764          ghcx*)
15765	    # Green Hills C++ Compiler
15766	    # FIXME: insert proper C++ library support
15767	    ld_shlibs_CXX=no
15768	    ;;
15769          *)
15770	    # FIXME: insert proper C++ library support
15771	    ld_shlibs_CXX=no
15772	    ;;
15773        esac
15774        ;;
15775
15776      freebsd2.*)
15777        # C++ shared libraries reported to be fairly broken before
15778	# switch to ELF
15779        ld_shlibs_CXX=no
15780        ;;
15781
15782      freebsd-elf*)
15783        archive_cmds_need_lc_CXX=no
15784        ;;
15785
15786      freebsd* | dragonfly*)
15787        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15788        # conventions
15789        ld_shlibs_CXX=yes
15790        ;;
15791
15792      haiku*)
15793        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15794        link_all_deplibs_CXX=yes
15795        ;;
15796
15797      hpux9*)
15798        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15799        hardcode_libdir_separator_CXX=:
15800        export_dynamic_flag_spec_CXX='$wl-E'
15801        hardcode_direct_CXX=yes
15802        hardcode_minus_L_CXX=yes # Not in the search PATH,
15803				             # but as the default
15804				             # location of the library.
15805
15806        case $cc_basename in
15807          CC*)
15808            # FIXME: insert proper C++ library support
15809            ld_shlibs_CXX=no
15810            ;;
15811          aCC*)
15812            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15813            # Commands to make compiler produce verbose output that lists
15814            # what "hidden" libraries, object files and flags are used when
15815            # linking a shared library.
15816            #
15817            # There doesn't appear to be a way to prevent this compiler from
15818            # explicitly linking system object files so we need to strip them
15819            # from the output so that they don't get included in the library
15820            # dependencies.
15821            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15822            ;;
15823          *)
15824            if test yes = "$GXX"; then
15825              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15826            else
15827              # FIXME: insert proper C++ library support
15828              ld_shlibs_CXX=no
15829            fi
15830            ;;
15831        esac
15832        ;;
15833
15834      hpux10*|hpux11*)
15835        if test no = "$with_gnu_ld"; then
15836	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15837	  hardcode_libdir_separator_CXX=:
15838
15839          case $host_cpu in
15840            hppa*64*|ia64*)
15841              ;;
15842            *)
15843	      export_dynamic_flag_spec_CXX='$wl-E'
15844              ;;
15845          esac
15846        fi
15847        case $host_cpu in
15848          hppa*64*|ia64*)
15849            hardcode_direct_CXX=no
15850            hardcode_shlibpath_var_CXX=no
15851            ;;
15852          *)
15853            hardcode_direct_CXX=yes
15854            hardcode_direct_absolute_CXX=yes
15855            hardcode_minus_L_CXX=yes # Not in the search PATH,
15856					         # but as the default
15857					         # location of the library.
15858            ;;
15859        esac
15860
15861        case $cc_basename in
15862          CC*)
15863	    # FIXME: insert proper C++ library support
15864	    ld_shlibs_CXX=no
15865	    ;;
15866          aCC*)
15867	    case $host_cpu in
15868	      hppa*64*)
15869	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15870	        ;;
15871	      ia64*)
15872	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15873	        ;;
15874	      *)
15875	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15876	        ;;
15877	    esac
15878	    # Commands to make compiler produce verbose output that lists
15879	    # what "hidden" libraries, object files and flags are used when
15880	    # linking a shared library.
15881	    #
15882	    # There doesn't appear to be a way to prevent this compiler from
15883	    # explicitly linking system object files so we need to strip them
15884	    # from the output so that they don't get included in the library
15885	    # dependencies.
15886	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15887	    ;;
15888          *)
15889	    if test yes = "$GXX"; then
15890	      if test no = "$with_gnu_ld"; then
15891	        case $host_cpu in
15892	          hppa*64*)
15893	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15894	            ;;
15895	          ia64*)
15896	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15897	            ;;
15898	          *)
15899	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15900	            ;;
15901	        esac
15902	      fi
15903	    else
15904	      # FIXME: insert proper C++ library support
15905	      ld_shlibs_CXX=no
15906	    fi
15907	    ;;
15908        esac
15909        ;;
15910
15911      interix[3-9]*)
15912	hardcode_direct_CXX=no
15913	hardcode_shlibpath_var_CXX=no
15914	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15915	export_dynamic_flag_spec_CXX='$wl-E'
15916	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15917	# Instead, shared libraries are loaded at an image base (0x10000000 by
15918	# default) and relocated if they conflict, which is a slow very memory
15919	# consuming and fragmenting process.  To avoid this, we pick a random,
15920	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15921	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15922	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15923	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15924	;;
15925      irix5* | irix6*)
15926        case $cc_basename in
15927          CC*)
15928	    # SGI C++
15929	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15930
15931	    # Archives containing C++ object files must be created using
15932	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15933	    # necessary to make sure instantiated templates are included
15934	    # in the archive.
15935	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15936	    ;;
15937          *)
15938	    if test yes = "$GXX"; then
15939	      if test no = "$with_gnu_ld"; then
15940	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15941	      else
15942	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15943	      fi
15944	    fi
15945	    link_all_deplibs_CXX=yes
15946	    ;;
15947        esac
15948        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15949        hardcode_libdir_separator_CXX=:
15950        inherit_rpath_CXX=yes
15951        ;;
15952
15953      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15954        case $cc_basename in
15955          KCC*)
15956	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15957
15958	    # KCC will only create a shared library if the output file
15959	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15960	    # to its proper name (with version) after linking.
15961	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15962	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15963	    # Commands to make compiler produce verbose output that lists
15964	    # what "hidden" libraries, object files and flags are used when
15965	    # linking a shared library.
15966	    #
15967	    # There doesn't appear to be a way to prevent this compiler from
15968	    # explicitly linking system object files so we need to strip them
15969	    # from the output so that they don't get included in the library
15970	    # dependencies.
15971	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15972
15973	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15974	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15975
15976	    # Archives containing C++ object files must be created using
15977	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15978	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15979	    ;;
15980	  icpc* | ecpc* )
15981	    # Intel C++
15982	    with_gnu_ld=yes
15983	    # version 8.0 and above of icpc choke on multiply defined symbols
15984	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15985	    # earlier do not add the objects themselves.
15986	    case `$CC -V 2>&1` in
15987	      *"Version 7."*)
15988	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15989		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15990		;;
15991	      *)  # Version 8.0 or newer
15992	        tmp_idyn=
15993	        case $host_cpu in
15994		  ia64*) tmp_idyn=' -i_dynamic';;
15995		esac
15996	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15997		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15998		;;
15999	    esac
16000	    archive_cmds_need_lc_CXX=no
16001	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16002	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16003	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16004	    ;;
16005          pgCC* | pgcpp*)
16006            # Portland Group C++ compiler
16007	    case `$CC -V` in
16008	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16009	      prelink_cmds_CXX='tpldir=Template.dir~
16010               rm -rf $tpldir~
16011               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16012               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16013	      old_archive_cmds_CXX='tpldir=Template.dir~
16014                rm -rf $tpldir~
16015                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16016                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16017                $RANLIB $oldlib'
16018	      archive_cmds_CXX='tpldir=Template.dir~
16019                rm -rf $tpldir~
16020                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16021                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16022	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16023                rm -rf $tpldir~
16024                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16025                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16026	      ;;
16027	    *) # Version 6 and above use weak symbols
16028	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16029	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16030	      ;;
16031	    esac
16032
16033	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16034	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16035	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16036            ;;
16037	  cxx*)
16038	    # Compaq C++
16039	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16040	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
16041
16042	    runpath_var=LD_RUN_PATH
16043	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16044	    hardcode_libdir_separator_CXX=:
16045
16046	    # Commands to make compiler produce verbose output that lists
16047	    # what "hidden" libraries, object files and flags are used when
16048	    # linking a shared library.
16049	    #
16050	    # There doesn't appear to be a way to prevent this compiler from
16051	    # explicitly linking system object files so we need to strip them
16052	    # from the output so that they don't get included in the library
16053	    # dependencies.
16054	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16055	    ;;
16056	  xl* | mpixl* | bgxl*)
16057	    # IBM XL 8.0 on PPC, with GNU ld
16058	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16059	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16060	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16061	    if test yes = "$supports_anon_versioning"; then
16062	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16063                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16064                echo "local: *; };" >> $output_objdir/$libname.ver~
16065                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16066	    fi
16067	    ;;
16068	  *)
16069	    case `$CC -V 2>&1 | sed 5q` in
16070	    *Sun\ C*)
16071	      # Sun C++ 5.9
16072	      no_undefined_flag_CXX=' -zdefs'
16073	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16074	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16075	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16076	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16077	      compiler_needs_object_CXX=yes
16078
16079	      # Not sure whether something based on
16080	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16081	      # would be better.
16082	      output_verbose_link_cmd='func_echo_all'
16083
16084	      # Archives containing C++ object files must be created using
16085	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16086	      # necessary to make sure instantiated templates are included
16087	      # in the archive.
16088	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16089	      ;;
16090	    esac
16091	    ;;
16092	esac
16093	;;
16094
16095      lynxos*)
16096        # FIXME: insert proper C++ library support
16097	ld_shlibs_CXX=no
16098	;;
16099
16100      m88k*)
16101        # FIXME: insert proper C++ library support
16102        ld_shlibs_CXX=no
16103	;;
16104
16105      mvs*)
16106        case $cc_basename in
16107          cxx*)
16108	    # FIXME: insert proper C++ library support
16109	    ld_shlibs_CXX=no
16110	    ;;
16111	  *)
16112	    # FIXME: insert proper C++ library support
16113	    ld_shlibs_CXX=no
16114	    ;;
16115	esac
16116	;;
16117
16118      netbsd*)
16119        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16120	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16121	  wlarc=
16122	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16123	  hardcode_direct_CXX=yes
16124	  hardcode_shlibpath_var_CXX=no
16125	fi
16126	# Workaround some broken pre-1.5 toolchains
16127	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16128	;;
16129
16130      *nto* | *qnx*)
16131        ld_shlibs_CXX=yes
16132	;;
16133
16134      openbsd* | bitrig*)
16135	if test -f /usr/libexec/ld.so; then
16136	  hardcode_direct_CXX=yes
16137	  hardcode_shlibpath_var_CXX=no
16138	  hardcode_direct_absolute_CXX=yes
16139	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16140	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16141	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16142	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16143	    export_dynamic_flag_spec_CXX='$wl-E'
16144	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16145	  fi
16146	  output_verbose_link_cmd=func_echo_all
16147	else
16148	  ld_shlibs_CXX=no
16149	fi
16150	;;
16151
16152      osf3* | osf4* | osf5*)
16153        case $cc_basename in
16154          KCC*)
16155	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16156
16157	    # KCC will only create a shared library if the output file
16158	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16159	    # to its proper name (with version) after linking.
16160	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16161
16162	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16163	    hardcode_libdir_separator_CXX=:
16164
16165	    # Archives containing C++ object files must be created using
16166	    # the KAI C++ compiler.
16167	    case $host in
16168	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16169	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16170	    esac
16171	    ;;
16172          RCC*)
16173	    # Rational C++ 2.4.1
16174	    # FIXME: insert proper C++ library support
16175	    ld_shlibs_CXX=no
16176	    ;;
16177          cxx*)
16178	    case $host in
16179	      osf3*)
16180	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16181	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16182	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16183		;;
16184	      *)
16185	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16186	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16187	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16188                  echo "-hidden">> $lib.exp~
16189                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16190                  $RM $lib.exp'
16191	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16192		;;
16193	    esac
16194
16195	    hardcode_libdir_separator_CXX=:
16196
16197	    # Commands to make compiler produce verbose output that lists
16198	    # what "hidden" libraries, object files and flags are used when
16199	    # linking a shared library.
16200	    #
16201	    # There doesn't appear to be a way to prevent this compiler from
16202	    # explicitly linking system object files so we need to strip them
16203	    # from the output so that they don't get included in the library
16204	    # dependencies.
16205	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16206	    ;;
16207	  *)
16208	    if test yes,no = "$GXX,$with_gnu_ld"; then
16209	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16210	      case $host in
16211	        osf3*)
16212	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16213		  ;;
16214	        *)
16215	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16216		  ;;
16217	      esac
16218
16219	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16220	      hardcode_libdir_separator_CXX=:
16221
16222	      # Commands to make compiler produce verbose output that lists
16223	      # what "hidden" libraries, object files and flags are used when
16224	      # linking a shared library.
16225	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16226
16227	    else
16228	      # FIXME: insert proper C++ library support
16229	      ld_shlibs_CXX=no
16230	    fi
16231	    ;;
16232        esac
16233        ;;
16234
16235      psos*)
16236        # FIXME: insert proper C++ library support
16237        ld_shlibs_CXX=no
16238        ;;
16239
16240      sunos4*)
16241        case $cc_basename in
16242          CC*)
16243	    # Sun C++ 4.x
16244	    # FIXME: insert proper C++ library support
16245	    ld_shlibs_CXX=no
16246	    ;;
16247          lcc*)
16248	    # Lucid
16249	    # FIXME: insert proper C++ library support
16250	    ld_shlibs_CXX=no
16251	    ;;
16252          *)
16253	    # FIXME: insert proper C++ library support
16254	    ld_shlibs_CXX=no
16255	    ;;
16256        esac
16257        ;;
16258
16259      solaris*)
16260        case $cc_basename in
16261          CC* | sunCC*)
16262	    # Sun C++ 4.2, 5.x and Centerline C++
16263            archive_cmds_need_lc_CXX=yes
16264	    no_undefined_flag_CXX=' -zdefs'
16265	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16266	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16267              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16268
16269	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16270	    hardcode_shlibpath_var_CXX=no
16271	    case $host_os in
16272	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16273	      *)
16274		# The compiler driver will combine and reorder linker options,
16275		# but understands '-z linker_flag'.
16276	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16277		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16278	        ;;
16279	    esac
16280	    link_all_deplibs_CXX=yes
16281
16282	    output_verbose_link_cmd='func_echo_all'
16283
16284	    # Archives containing C++ object files must be created using
16285	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16286	    # necessary to make sure instantiated templates are included
16287	    # in the archive.
16288	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16289	    ;;
16290          gcx*)
16291	    # Green Hills C++ Compiler
16292	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16293
16294	    # The C++ compiler must be used to create the archive.
16295	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16296	    ;;
16297          *)
16298	    # GNU C++ compiler with Solaris linker
16299	    if test yes,no = "$GXX,$with_gnu_ld"; then
16300	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16301	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16302	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16303	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16304                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16305
16306	        # Commands to make compiler produce verbose output that lists
16307	        # what "hidden" libraries, object files and flags are used when
16308	        # linking a shared library.
16309	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16310	      else
16311	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16312	        # platform.
16313	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16314	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16315                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16316
16317	        # Commands to make compiler produce verbose output that lists
16318	        # what "hidden" libraries, object files and flags are used when
16319	        # linking a shared library.
16320	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16321	      fi
16322
16323	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16324	      case $host_os in
16325		solaris2.[0-5] | solaris2.[0-5].*) ;;
16326		*)
16327		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16328		  ;;
16329	      esac
16330	    fi
16331	    ;;
16332        esac
16333        ;;
16334
16335    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16336      no_undefined_flag_CXX='$wl-z,text'
16337      archive_cmds_need_lc_CXX=no
16338      hardcode_shlibpath_var_CXX=no
16339      runpath_var='LD_RUN_PATH'
16340
16341      case $cc_basename in
16342        CC*)
16343	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16344	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16345	  ;;
16346	*)
16347	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16348	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16349	  ;;
16350      esac
16351      ;;
16352
16353      sysv5* | sco3.2v5* | sco5v6*)
16354	# Note: We CANNOT use -z defs as we might desire, because we do not
16355	# link with -lc, and that would cause any symbols used from libc to
16356	# always be unresolved, which means just about no library would
16357	# ever link correctly.  If we're not using GNU ld we use -z text
16358	# though, which does catch some bad symbols but isn't as heavy-handed
16359	# as -z defs.
16360	no_undefined_flag_CXX='$wl-z,text'
16361	allow_undefined_flag_CXX='$wl-z,nodefs'
16362	archive_cmds_need_lc_CXX=no
16363	hardcode_shlibpath_var_CXX=no
16364	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16365	hardcode_libdir_separator_CXX=':'
16366	link_all_deplibs_CXX=yes
16367	export_dynamic_flag_spec_CXX='$wl-Bexport'
16368	runpath_var='LD_RUN_PATH'
16369
16370	case $cc_basename in
16371          CC*)
16372	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16373	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16374	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16375              '"$old_archive_cmds_CXX"
16376	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16377              '"$reload_cmds_CXX"
16378	    ;;
16379	  *)
16380	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16381	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16382	    ;;
16383	esac
16384      ;;
16385
16386      tandem*)
16387        case $cc_basename in
16388          NCC*)
16389	    # NonStop-UX NCC 3.20
16390	    # FIXME: insert proper C++ library support
16391	    ld_shlibs_CXX=no
16392	    ;;
16393          *)
16394	    # FIXME: insert proper C++ library support
16395	    ld_shlibs_CXX=no
16396	    ;;
16397        esac
16398        ;;
16399
16400      vxworks*)
16401        # FIXME: insert proper C++ library support
16402        ld_shlibs_CXX=no
16403        ;;
16404
16405      *)
16406        # FIXME: insert proper C++ library support
16407        ld_shlibs_CXX=no
16408        ;;
16409    esac
16410
16411    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16412printf "%s\n" "$ld_shlibs_CXX" >&6; }
16413    test no = "$ld_shlibs_CXX" && can_build_shared=no
16414
16415    GCC_CXX=$GXX
16416    LD_CXX=$LD
16417
16418    ## CAVEAT EMPTOR:
16419    ## There is no encapsulation within the following macros, do not change
16420    ## the running order or otherwise move them around unless you know exactly
16421    ## what you are doing...
16422    # Dependencies to place before and after the object being linked:
16423predep_objects_CXX=
16424postdep_objects_CXX=
16425predeps_CXX=
16426postdeps_CXX=
16427compiler_lib_search_path_CXX=
16428
16429cat > conftest.$ac_ext <<_LT_EOF
16430class Foo
16431{
16432public:
16433  Foo (void) { a = 0; }
16434private:
16435  int a;
16436};
16437_LT_EOF
16438
16439
16440_lt_libdeps_save_CFLAGS=$CFLAGS
16441case "$CC $CFLAGS " in #(
16442*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16443*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16444*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16445esac
16446
16447if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16448  (eval $ac_compile) 2>&5
16449  ac_status=$?
16450  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16451  test $ac_status = 0; }; then
16452  # Parse the compiler output and extract the necessary
16453  # objects, libraries and library flags.
16454
16455  # Sentinel used to keep track of whether or not we are before
16456  # the conftest object file.
16457  pre_test_object_deps_done=no
16458
16459  for p in `eval "$output_verbose_link_cmd"`; do
16460    case $prev$p in
16461
16462    -L* | -R* | -l*)
16463       # Some compilers place space between "-{L,R}" and the path.
16464       # Remove the space.
16465       if test x-L = "$p" ||
16466          test x-R = "$p"; then
16467	 prev=$p
16468	 continue
16469       fi
16470
16471       # Expand the sysroot to ease extracting the directories later.
16472       if test -z "$prev"; then
16473         case $p in
16474         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16475         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16476         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16477         esac
16478       fi
16479       case $p in
16480       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16481       esac
16482       if test no = "$pre_test_object_deps_done"; then
16483	 case $prev in
16484	 -L | -R)
16485	   # Internal compiler library paths should come after those
16486	   # provided the user.  The postdeps already come after the
16487	   # user supplied libs so there is no need to process them.
16488	   if test -z "$compiler_lib_search_path_CXX"; then
16489	     compiler_lib_search_path_CXX=$prev$p
16490	   else
16491	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16492	   fi
16493	   ;;
16494	 # The "-l" case would never come before the object being
16495	 # linked, so don't bother handling this case.
16496	 esac
16497       else
16498	 if test -z "$postdeps_CXX"; then
16499	   postdeps_CXX=$prev$p
16500	 else
16501	   postdeps_CXX="${postdeps_CXX} $prev$p"
16502	 fi
16503       fi
16504       prev=
16505       ;;
16506
16507    *.lto.$objext) ;; # Ignore GCC LTO objects
16508    *.$objext)
16509       # This assumes that the test object file only shows up
16510       # once in the compiler output.
16511       if test "$p" = "conftest.$objext"; then
16512	 pre_test_object_deps_done=yes
16513	 continue
16514       fi
16515
16516       if test no = "$pre_test_object_deps_done"; then
16517	 if test -z "$predep_objects_CXX"; then
16518	   predep_objects_CXX=$p
16519	 else
16520	   predep_objects_CXX="$predep_objects_CXX $p"
16521	 fi
16522       else
16523	 if test -z "$postdep_objects_CXX"; then
16524	   postdep_objects_CXX=$p
16525	 else
16526	   postdep_objects_CXX="$postdep_objects_CXX $p"
16527	 fi
16528       fi
16529       ;;
16530
16531    *) ;; # Ignore the rest.
16532
16533    esac
16534  done
16535
16536  # Clean up.
16537  rm -f a.out a.exe
16538else
16539  echo "libtool.m4: error: problem compiling CXX test program"
16540fi
16541
16542$RM -f confest.$objext
16543CFLAGS=$_lt_libdeps_save_CFLAGS
16544
16545# PORTME: override above test on systems where it is broken
16546case $host_os in
16547interix[3-9]*)
16548  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16549  # hack all around it, let's just trust "g++" to DTRT.
16550  predep_objects_CXX=
16551  postdep_objects_CXX=
16552  postdeps_CXX=
16553  ;;
16554esac
16555
16556
16557case " $postdeps_CXX " in
16558*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16559esac
16560 compiler_lib_search_dirs_CXX=
16561if test -n "${compiler_lib_search_path_CXX}"; then
16562 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16563fi
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595    lt_prog_compiler_wl_CXX=
16596lt_prog_compiler_pic_CXX=
16597lt_prog_compiler_static_CXX=
16598
16599
16600  # C++ specific cases for pic, static, wl, etc.
16601  if test yes = "$GXX"; then
16602    lt_prog_compiler_wl_CXX='-Wl,'
16603    lt_prog_compiler_static_CXX='-static'
16604
16605    case $host_os in
16606    aix*)
16607      # All AIX code is PIC.
16608      if test ia64 = "$host_cpu"; then
16609	# AIX 5 now supports IA64 processor
16610	lt_prog_compiler_static_CXX='-Bstatic'
16611      fi
16612      lt_prog_compiler_pic_CXX='-fPIC'
16613      ;;
16614
16615    amigaos*)
16616      case $host_cpu in
16617      powerpc)
16618            # see comment about AmigaOS4 .so support
16619            lt_prog_compiler_pic_CXX='-fPIC'
16620        ;;
16621      m68k)
16622            # FIXME: we need at least 68020 code to build shared libraries, but
16623            # adding the '-m68020' flag to GCC prevents building anything better,
16624            # like '-m68040'.
16625            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16626        ;;
16627      esac
16628      ;;
16629
16630    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16631      # PIC is the default for these OSes.
16632      ;;
16633    mingw* | cygwin* | os2* | pw32* | cegcc*)
16634      # This hack is so that the source file can tell whether it is being
16635      # built for inclusion in a dll (and should export symbols for example).
16636      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16637      # (--disable-auto-import) libraries
16638      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16639      case $host_os in
16640      os2*)
16641	lt_prog_compiler_static_CXX='$wl-static'
16642	;;
16643      esac
16644      ;;
16645    darwin* | rhapsody*)
16646      # PIC is the default on this platform
16647      # Common symbols not allowed in MH_DYLIB files
16648      lt_prog_compiler_pic_CXX='-fno-common'
16649      ;;
16650    *djgpp*)
16651      # DJGPP does not support shared libraries at all
16652      lt_prog_compiler_pic_CXX=
16653      ;;
16654    haiku*)
16655      # PIC is the default for Haiku.
16656      # The "-static" flag exists, but is broken.
16657      lt_prog_compiler_static_CXX=
16658      ;;
16659    interix[3-9]*)
16660      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16661      # Instead, we relocate shared libraries at runtime.
16662      ;;
16663    sysv4*MP*)
16664      if test -d /usr/nec; then
16665	lt_prog_compiler_pic_CXX=-Kconform_pic
16666      fi
16667      ;;
16668    hpux*)
16669      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16670      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16671      # sets the default TLS model and affects inlining.
16672      case $host_cpu in
16673      hppa*64*)
16674	;;
16675      *)
16676	lt_prog_compiler_pic_CXX='-fPIC'
16677	;;
16678      esac
16679      ;;
16680    *qnx* | *nto*)
16681      # QNX uses GNU C++, but need to define -shared option too, otherwise
16682      # it will coredump.
16683      lt_prog_compiler_pic_CXX='-fPIC -shared'
16684      ;;
16685    *)
16686      lt_prog_compiler_pic_CXX='-fPIC'
16687      ;;
16688    esac
16689  else
16690    case $host_os in
16691      aix[4-9]*)
16692	# All AIX code is PIC.
16693	if test ia64 = "$host_cpu"; then
16694	  # AIX 5 now supports IA64 processor
16695	  lt_prog_compiler_static_CXX='-Bstatic'
16696	else
16697	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16698	fi
16699	;;
16700      chorus*)
16701	case $cc_basename in
16702	cxch68*)
16703	  # Green Hills C++ Compiler
16704	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16705	  ;;
16706	esac
16707	;;
16708      mingw* | cygwin* | os2* | pw32* | cegcc*)
16709	# This hack is so that the source file can tell whether it is being
16710	# built for inclusion in a dll (and should export symbols for example).
16711	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16712	;;
16713      dgux*)
16714	case $cc_basename in
16715	  ec++*)
16716	    lt_prog_compiler_pic_CXX='-KPIC'
16717	    ;;
16718	  ghcx*)
16719	    # Green Hills C++ Compiler
16720	    lt_prog_compiler_pic_CXX='-pic'
16721	    ;;
16722	  *)
16723	    ;;
16724	esac
16725	;;
16726      freebsd* | dragonfly*)
16727	# FreeBSD uses GNU C++
16728	;;
16729      hpux9* | hpux10* | hpux11*)
16730	case $cc_basename in
16731	  CC*)
16732	    lt_prog_compiler_wl_CXX='-Wl,'
16733	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16734	    if test ia64 != "$host_cpu"; then
16735	      lt_prog_compiler_pic_CXX='+Z'
16736	    fi
16737	    ;;
16738	  aCC*)
16739	    lt_prog_compiler_wl_CXX='-Wl,'
16740	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16741	    case $host_cpu in
16742	    hppa*64*|ia64*)
16743	      # +Z the default
16744	      ;;
16745	    *)
16746	      lt_prog_compiler_pic_CXX='+Z'
16747	      ;;
16748	    esac
16749	    ;;
16750	  *)
16751	    ;;
16752	esac
16753	;;
16754      interix*)
16755	# This is c89, which is MS Visual C++ (no shared libs)
16756	# Anyone wants to do a port?
16757	;;
16758      irix5* | irix6* | nonstopux*)
16759	case $cc_basename in
16760	  CC*)
16761	    lt_prog_compiler_wl_CXX='-Wl,'
16762	    lt_prog_compiler_static_CXX='-non_shared'
16763	    # CC pic flag -KPIC is the default.
16764	    ;;
16765	  *)
16766	    ;;
16767	esac
16768	;;
16769      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16770	case $cc_basename in
16771	  KCC*)
16772	    # KAI C++ Compiler
16773	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16774	    lt_prog_compiler_pic_CXX='-fPIC'
16775	    ;;
16776	  ecpc* )
16777	    # old Intel C++ for x86_64, which still supported -KPIC.
16778	    lt_prog_compiler_wl_CXX='-Wl,'
16779	    lt_prog_compiler_pic_CXX='-KPIC'
16780	    lt_prog_compiler_static_CXX='-static'
16781	    ;;
16782	  icpc* )
16783	    # Intel C++, used to be incompatible with GCC.
16784	    # ICC 10 doesn't accept -KPIC any more.
16785	    lt_prog_compiler_wl_CXX='-Wl,'
16786	    lt_prog_compiler_pic_CXX='-fPIC'
16787	    lt_prog_compiler_static_CXX='-static'
16788	    ;;
16789	  pgCC* | pgcpp*)
16790	    # Portland Group C++ compiler
16791	    lt_prog_compiler_wl_CXX='-Wl,'
16792	    lt_prog_compiler_pic_CXX='-fpic'
16793	    lt_prog_compiler_static_CXX='-Bstatic'
16794	    ;;
16795	  cxx*)
16796	    # Compaq C++
16797	    # Make sure the PIC flag is empty.  It appears that all Alpha
16798	    # Linux and Compaq Tru64 Unix objects are PIC.
16799	    lt_prog_compiler_pic_CXX=
16800	    lt_prog_compiler_static_CXX='-non_shared'
16801	    ;;
16802	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16803	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16804	    lt_prog_compiler_wl_CXX='-Wl,'
16805	    lt_prog_compiler_pic_CXX='-qpic'
16806	    lt_prog_compiler_static_CXX='-qstaticlink'
16807	    ;;
16808	  *)
16809	    case `$CC -V 2>&1 | sed 5q` in
16810	    *Sun\ C*)
16811	      # Sun C++ 5.9
16812	      lt_prog_compiler_pic_CXX='-KPIC'
16813	      lt_prog_compiler_static_CXX='-Bstatic'
16814	      lt_prog_compiler_wl_CXX='-Qoption ld '
16815	      ;;
16816	    esac
16817	    ;;
16818	esac
16819	;;
16820      lynxos*)
16821	;;
16822      m88k*)
16823	;;
16824      mvs*)
16825	case $cc_basename in
16826	  cxx*)
16827	    lt_prog_compiler_pic_CXX='-W c,exportall'
16828	    ;;
16829	  *)
16830	    ;;
16831	esac
16832	;;
16833      netbsd*)
16834	;;
16835      *qnx* | *nto*)
16836        # QNX uses GNU C++, but need to define -shared option too, otherwise
16837        # it will coredump.
16838        lt_prog_compiler_pic_CXX='-fPIC -shared'
16839        ;;
16840      osf3* | osf4* | osf5*)
16841	case $cc_basename in
16842	  KCC*)
16843	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16844	    ;;
16845	  RCC*)
16846	    # Rational C++ 2.4.1
16847	    lt_prog_compiler_pic_CXX='-pic'
16848	    ;;
16849	  cxx*)
16850	    # Digital/Compaq C++
16851	    lt_prog_compiler_wl_CXX='-Wl,'
16852	    # Make sure the PIC flag is empty.  It appears that all Alpha
16853	    # Linux and Compaq Tru64 Unix objects are PIC.
16854	    lt_prog_compiler_pic_CXX=
16855	    lt_prog_compiler_static_CXX='-non_shared'
16856	    ;;
16857	  *)
16858	    ;;
16859	esac
16860	;;
16861      psos*)
16862	;;
16863      solaris*)
16864	case $cc_basename in
16865	  CC* | sunCC*)
16866	    # Sun C++ 4.2, 5.x and Centerline C++
16867	    lt_prog_compiler_pic_CXX='-KPIC'
16868	    lt_prog_compiler_static_CXX='-Bstatic'
16869	    lt_prog_compiler_wl_CXX='-Qoption ld '
16870	    ;;
16871	  gcx*)
16872	    # Green Hills C++ Compiler
16873	    lt_prog_compiler_pic_CXX='-PIC'
16874	    ;;
16875	  *)
16876	    ;;
16877	esac
16878	;;
16879      sunos4*)
16880	case $cc_basename in
16881	  CC*)
16882	    # Sun C++ 4.x
16883	    lt_prog_compiler_pic_CXX='-pic'
16884	    lt_prog_compiler_static_CXX='-Bstatic'
16885	    ;;
16886	  lcc*)
16887	    # Lucid
16888	    lt_prog_compiler_pic_CXX='-pic'
16889	    ;;
16890	  *)
16891	    ;;
16892	esac
16893	;;
16894      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16895	case $cc_basename in
16896	  CC*)
16897	    lt_prog_compiler_wl_CXX='-Wl,'
16898	    lt_prog_compiler_pic_CXX='-KPIC'
16899	    lt_prog_compiler_static_CXX='-Bstatic'
16900	    ;;
16901	esac
16902	;;
16903      tandem*)
16904	case $cc_basename in
16905	  NCC*)
16906	    # NonStop-UX NCC 3.20
16907	    lt_prog_compiler_pic_CXX='-KPIC'
16908	    ;;
16909	  *)
16910	    ;;
16911	esac
16912	;;
16913      vxworks*)
16914	;;
16915      *)
16916	lt_prog_compiler_can_build_shared_CXX=no
16917	;;
16918    esac
16919  fi
16920
16921case $host_os in
16922  # For platforms that do not support PIC, -DPIC is meaningless:
16923  *djgpp*)
16924    lt_prog_compiler_pic_CXX=
16925    ;;
16926  *)
16927    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16928    ;;
16929esac
16930
16931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16932printf %s "checking for $compiler option to produce PIC... " >&6; }
16933if test ${lt_cv_prog_compiler_pic_CXX+y}
16934then :
16935  printf %s "(cached) " >&6
16936else $as_nop
16937  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16938fi
16939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16940printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16941lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16942
16943#
16944# Check to make sure the PIC flag actually works.
16945#
16946if test -n "$lt_prog_compiler_pic_CXX"; then
16947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16948printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16949if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16950then :
16951  printf %s "(cached) " >&6
16952else $as_nop
16953  lt_cv_prog_compiler_pic_works_CXX=no
16954   ac_outfile=conftest.$ac_objext
16955   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16956   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16957   # Insert the option either (1) after the last *FLAGS variable, or
16958   # (2) before a word containing "conftest.", or (3) at the end.
16959   # Note that $ac_compile itself does not contain backslashes and begins
16960   # with a dollar sign (not a hyphen), so the echo should work correctly.
16961   # The option is referenced via a variable to avoid confusing sed.
16962   lt_compile=`echo "$ac_compile" | $SED \
16963   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16964   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16965   -e 's:$: $lt_compiler_flag:'`
16966   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16967   (eval "$lt_compile" 2>conftest.err)
16968   ac_status=$?
16969   cat conftest.err >&5
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   if (exit $ac_status) && test -s "$ac_outfile"; then
16972     # The compiler can only warn and ignore the option if not recognized
16973     # So say no if there are warnings other than the usual output.
16974     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16975     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16976     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16977       lt_cv_prog_compiler_pic_works_CXX=yes
16978     fi
16979   fi
16980   $RM conftest*
16981
16982fi
16983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16984printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16985
16986if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16987    case $lt_prog_compiler_pic_CXX in
16988     "" | " "*) ;;
16989     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16990     esac
16991else
16992    lt_prog_compiler_pic_CXX=
16993     lt_prog_compiler_can_build_shared_CXX=no
16994fi
16995
16996fi
16997
16998
16999
17000
17001
17002#
17003# Check to make sure the static flag actually works.
17004#
17005wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17007printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17008if test ${lt_cv_prog_compiler_static_works_CXX+y}
17009then :
17010  printf %s "(cached) " >&6
17011else $as_nop
17012  lt_cv_prog_compiler_static_works_CXX=no
17013   save_LDFLAGS=$LDFLAGS
17014   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17015   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17016   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17017     # The linker can only warn and ignore the option if not recognized
17018     # So say no if there are warnings
17019     if test -s conftest.err; then
17020       # Append any errors to the config.log.
17021       cat conftest.err 1>&5
17022       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17023       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17024       if diff conftest.exp conftest.er2 >/dev/null; then
17025         lt_cv_prog_compiler_static_works_CXX=yes
17026       fi
17027     else
17028       lt_cv_prog_compiler_static_works_CXX=yes
17029     fi
17030   fi
17031   $RM -r conftest*
17032   LDFLAGS=$save_LDFLAGS
17033
17034fi
17035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17036printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17037
17038if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17039    :
17040else
17041    lt_prog_compiler_static_CXX=
17042fi
17043
17044
17045
17046
17047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17048printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17049if test ${lt_cv_prog_compiler_c_o_CXX+y}
17050then :
17051  printf %s "(cached) " >&6
17052else $as_nop
17053  lt_cv_prog_compiler_c_o_CXX=no
17054   $RM -r conftest 2>/dev/null
17055   mkdir conftest
17056   cd conftest
17057   mkdir out
17058   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17059
17060   lt_compiler_flag="-o out/conftest2.$ac_objext"
17061   # Insert the option either (1) after the last *FLAGS variable, or
17062   # (2) before a word containing "conftest.", or (3) at the end.
17063   # Note that $ac_compile itself does not contain backslashes and begins
17064   # with a dollar sign (not a hyphen), so the echo should work correctly.
17065   lt_compile=`echo "$ac_compile" | $SED \
17066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17068   -e 's:$: $lt_compiler_flag:'`
17069   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17070   (eval "$lt_compile" 2>out/conftest.err)
17071   ac_status=$?
17072   cat out/conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17075   then
17076     # The compiler can only warn and ignore the option if not recognized
17077     # So say no if there are warnings
17078     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17079     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17080     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17081       lt_cv_prog_compiler_c_o_CXX=yes
17082     fi
17083   fi
17084   chmod u+w . 2>&5
17085   $RM conftest*
17086   # SGI C++ compiler will create directory out/ii_files/ for
17087   # template instantiation
17088   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17089   $RM out/* && rmdir out
17090   cd ..
17091   $RM -r conftest
17092   $RM conftest*
17093
17094fi
17095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17096printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17097
17098
17099
17100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17101printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17102if test ${lt_cv_prog_compiler_c_o_CXX+y}
17103then :
17104  printf %s "(cached) " >&6
17105else $as_nop
17106  lt_cv_prog_compiler_c_o_CXX=no
17107   $RM -r conftest 2>/dev/null
17108   mkdir conftest
17109   cd conftest
17110   mkdir out
17111   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17112
17113   lt_compiler_flag="-o out/conftest2.$ac_objext"
17114   # Insert the option either (1) after the last *FLAGS variable, or
17115   # (2) before a word containing "conftest.", or (3) at the end.
17116   # Note that $ac_compile itself does not contain backslashes and begins
17117   # with a dollar sign (not a hyphen), so the echo should work correctly.
17118   lt_compile=`echo "$ac_compile" | $SED \
17119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17121   -e 's:$: $lt_compiler_flag:'`
17122   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17123   (eval "$lt_compile" 2>out/conftest.err)
17124   ac_status=$?
17125   cat out/conftest.err >&5
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17128   then
17129     # The compiler can only warn and ignore the option if not recognized
17130     # So say no if there are warnings
17131     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17132     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17133     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17134       lt_cv_prog_compiler_c_o_CXX=yes
17135     fi
17136   fi
17137   chmod u+w . 2>&5
17138   $RM conftest*
17139   # SGI C++ compiler will create directory out/ii_files/ for
17140   # template instantiation
17141   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17142   $RM out/* && rmdir out
17143   cd ..
17144   $RM -r conftest
17145   $RM conftest*
17146
17147fi
17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17149printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17150
17151
17152
17153
17154hard_links=nottested
17155if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17156  # do not overwrite the value of need_locks provided by the user
17157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17158printf %s "checking if we can lock with hard links... " >&6; }
17159  hard_links=yes
17160  $RM conftest*
17161  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17162  touch conftest.a
17163  ln conftest.a conftest.b 2>&5 || hard_links=no
17164  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17166printf "%s\n" "$hard_links" >&6; }
17167  if test no = "$hard_links"; then
17168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17169printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17170    need_locks=warn
17171  fi
17172else
17173  need_locks=no
17174fi
17175
17176
17177
17178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17179printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17180
17181  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17182  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17183  case $host_os in
17184  aix[4-9]*)
17185    # If we're using GNU nm, then we don't want the "-C" option.
17186    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17187    # Without the "-l" option, or with the "-B" option, AIX nm treats
17188    # weak defined symbols like other global defined symbols, whereas
17189    # GNU nm marks them as "W".
17190    # While the 'weak' keyword is ignored in the Export File, we need
17191    # it in the Import File for the 'aix-soname' feature, so we have
17192    # to replace the "-B" option with "-P" for AIX nm.
17193    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17194      export_symbols_cmds_CXX='$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'
17195    else
17196      export_symbols_cmds_CXX='`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'
17197    fi
17198    ;;
17199  pw32*)
17200    export_symbols_cmds_CXX=$ltdll_cmds
17201    ;;
17202  cygwin* | mingw* | cegcc*)
17203    case $cc_basename in
17204    cl*)
17205      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17206      ;;
17207    *)
17208      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17209      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17210      ;;
17211    esac
17212    ;;
17213  *)
17214    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17215    ;;
17216  esac
17217
17218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17219printf "%s\n" "$ld_shlibs_CXX" >&6; }
17220test no = "$ld_shlibs_CXX" && can_build_shared=no
17221
17222with_gnu_ld_CXX=$with_gnu_ld
17223
17224
17225
17226
17227
17228
17229#
17230# Do we need to explicitly link libc?
17231#
17232case "x$archive_cmds_need_lc_CXX" in
17233x|xyes)
17234  # Assume -lc should be added
17235  archive_cmds_need_lc_CXX=yes
17236
17237  if test yes,yes = "$GCC,$enable_shared"; then
17238    case $archive_cmds_CXX in
17239    *'~'*)
17240      # FIXME: we may have to deal with multi-command sequences.
17241      ;;
17242    '$CC '*)
17243      # Test whether the compiler implicitly links with -lc since on some
17244      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17245      # to ld, don't add -lc before -lgcc.
17246      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17247printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17248if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17249then :
17250  printf %s "(cached) " >&6
17251else $as_nop
17252  $RM conftest*
17253	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17254
17255	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17256  (eval $ac_compile) 2>&5
17257  ac_status=$?
17258  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17259  test $ac_status = 0; } 2>conftest.err; then
17260	  soname=conftest
17261	  lib=conftest
17262	  libobjs=conftest.$ac_objext
17263	  deplibs=
17264	  wl=$lt_prog_compiler_wl_CXX
17265	  pic_flag=$lt_prog_compiler_pic_CXX
17266	  compiler_flags=-v
17267	  linker_flags=-v
17268	  verstring=
17269	  output_objdir=.
17270	  libname=conftest
17271	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17272	  allow_undefined_flag_CXX=
17273	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17274  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17275  ac_status=$?
17276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17277  test $ac_status = 0; }
17278	  then
17279	    lt_cv_archive_cmds_need_lc_CXX=no
17280	  else
17281	    lt_cv_archive_cmds_need_lc_CXX=yes
17282	  fi
17283	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17284	else
17285	  cat conftest.err 1>&5
17286	fi
17287	$RM conftest*
17288
17289fi
17290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17291printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17292      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17293      ;;
17294    esac
17295  fi
17296  ;;
17297esac
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17361printf %s "checking dynamic linker characteristics... " >&6; }
17362
17363library_names_spec=
17364libname_spec='lib$name'
17365soname_spec=
17366shrext_cmds=.so
17367postinstall_cmds=
17368postuninstall_cmds=
17369finish_cmds=
17370finish_eval=
17371shlibpath_var=
17372shlibpath_overrides_runpath=unknown
17373version_type=none
17374dynamic_linker="$host_os ld.so"
17375sys_lib_dlsearch_path_spec="/lib /usr/lib"
17376need_lib_prefix=unknown
17377hardcode_into_libs=no
17378
17379# when you set need_version to no, make sure it does not cause -set_version
17380# flags to be left without arguments
17381need_version=unknown
17382
17383
17384
17385case $host_os in
17386aix3*)
17387  version_type=linux # correct to gnu/linux during the next big refactor
17388  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17389  shlibpath_var=LIBPATH
17390
17391  # AIX 3 has no versioning support, so we append a major version to the name.
17392  soname_spec='$libname$release$shared_ext$major'
17393  ;;
17394
17395aix[4-9]*)
17396  version_type=linux # correct to gnu/linux during the next big refactor
17397  need_lib_prefix=no
17398  need_version=no
17399  hardcode_into_libs=yes
17400  if test ia64 = "$host_cpu"; then
17401    # AIX 5 supports IA64
17402    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17403    shlibpath_var=LD_LIBRARY_PATH
17404  else
17405    # With GCC up to 2.95.x, collect2 would create an import file
17406    # for dependence libraries.  The import file would start with
17407    # the line '#! .'.  This would cause the generated library to
17408    # depend on '.', always an invalid library.  This was fixed in
17409    # development snapshots of GCC prior to 3.0.
17410    case $host_os in
17411      aix4 | aix4.[01] | aix4.[01].*)
17412      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17413	   echo ' yes '
17414	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17415	:
17416      else
17417	can_build_shared=no
17418      fi
17419      ;;
17420    esac
17421    # Using Import Files as archive members, it is possible to support
17422    # filename-based versioning of shared library archives on AIX. While
17423    # this would work for both with and without runtime linking, it will
17424    # prevent static linking of such archives. So we do filename-based
17425    # shared library versioning with .so extension only, which is used
17426    # when both runtime linking and shared linking is enabled.
17427    # Unfortunately, runtime linking may impact performance, so we do
17428    # not want this to be the default eventually. Also, we use the
17429    # versioned .so libs for executables only if there is the -brtl
17430    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17431    # To allow for filename-based versioning support, we need to create
17432    # libNAME.so.V as an archive file, containing:
17433    # *) an Import File, referring to the versioned filename of the
17434    #    archive as well as the shared archive member, telling the
17435    #    bitwidth (32 or 64) of that shared object, and providing the
17436    #    list of exported symbols of that shared object, eventually
17437    #    decorated with the 'weak' keyword
17438    # *) the shared object with the F_LOADONLY flag set, to really avoid
17439    #    it being seen by the linker.
17440    # At run time we better use the real file rather than another symlink,
17441    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17442
17443    case $with_aix_soname,$aix_use_runtimelinking in
17444    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17445    # soname into executable. Probably we can add versioning support to
17446    # collect2, so additional links can be useful in future.
17447    aix,yes) # traditional libtool
17448      dynamic_linker='AIX unversionable lib.so'
17449      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17450      # instead of lib<name>.a to let people know that these are not
17451      # typical AIX shared libraries.
17452      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17453      ;;
17454    aix,no) # traditional AIX only
17455      dynamic_linker='AIX lib.a(lib.so.V)'
17456      # We preserve .a as extension for shared libraries through AIX4.2
17457      # and later when we are not doing run time linking.
17458      library_names_spec='$libname$release.a $libname.a'
17459      soname_spec='$libname$release$shared_ext$major'
17460      ;;
17461    svr4,*) # full svr4 only
17462      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17463      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17464      # We do not specify a path in Import Files, so LIBPATH fires.
17465      shlibpath_overrides_runpath=yes
17466      ;;
17467    *,yes) # both, prefer svr4
17468      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17469      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17470      # unpreferred sharedlib libNAME.a needs extra handling
17471      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"'
17472      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"'
17473      # We do not specify a path in Import Files, so LIBPATH fires.
17474      shlibpath_overrides_runpath=yes
17475      ;;
17476    *,no) # both, prefer aix
17477      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17478      library_names_spec='$libname$release.a $libname.a'
17479      soname_spec='$libname$release$shared_ext$major'
17480      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17481      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)'
17482      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"'
17483      ;;
17484    esac
17485    shlibpath_var=LIBPATH
17486  fi
17487  ;;
17488
17489amigaos*)
17490  case $host_cpu in
17491  powerpc)
17492    # Since July 2007 AmigaOS4 officially supports .so libraries.
17493    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17494    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17495    ;;
17496  m68k)
17497    library_names_spec='$libname.ixlibrary $libname.a'
17498    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17499    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'
17500    ;;
17501  esac
17502  ;;
17503
17504beos*)
17505  library_names_spec='$libname$shared_ext'
17506  dynamic_linker="$host_os ld.so"
17507  shlibpath_var=LIBRARY_PATH
17508  ;;
17509
17510bsdi[45]*)
17511  version_type=linux # correct to gnu/linux during the next big refactor
17512  need_version=no
17513  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514  soname_spec='$libname$release$shared_ext$major'
17515  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17516  shlibpath_var=LD_LIBRARY_PATH
17517  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17518  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17519  # the default ld.so.conf also contains /usr/contrib/lib and
17520  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17521  # libtool to hard-code these into programs
17522  ;;
17523
17524cygwin* | mingw* | pw32* | cegcc*)
17525  version_type=windows
17526  shrext_cmds=.dll
17527  need_version=no
17528  need_lib_prefix=no
17529
17530  case $GCC,$cc_basename in
17531  yes,*)
17532    # gcc
17533    library_names_spec='$libname.dll.a'
17534    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17535    postinstall_cmds='base_file=`basename \$file`~
17536      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17537      dldir=$destdir/`dirname \$dlpath`~
17538      test -d \$dldir || mkdir -p \$dldir~
17539      $install_prog $dir/$dlname \$dldir/$dlname~
17540      chmod a+x \$dldir/$dlname~
17541      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17542        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17543      fi'
17544    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17545      dlpath=$dir/\$dldll~
17546       $RM \$dlpath'
17547    shlibpath_overrides_runpath=yes
17548
17549    case $host_os in
17550    cygwin*)
17551      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17552      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17553
17554      ;;
17555    mingw* | cegcc*)
17556      # MinGW DLLs use traditional 'lib' prefix
17557      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17558      ;;
17559    pw32*)
17560      # pw32 DLLs use 'pw' prefix rather than 'lib'
17561      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17562      ;;
17563    esac
17564    dynamic_linker='Win32 ld.exe'
17565    ;;
17566
17567  *,cl*)
17568    # Native MSVC
17569    libname_spec='$name'
17570    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17571    library_names_spec='$libname.dll.lib'
17572
17573    case $build_os in
17574    mingw*)
17575      sys_lib_search_path_spec=
17576      lt_save_ifs=$IFS
17577      IFS=';'
17578      for lt_path in $LIB
17579      do
17580        IFS=$lt_save_ifs
17581        # Let DOS variable expansion print the short 8.3 style file name.
17582        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17583        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17584      done
17585      IFS=$lt_save_ifs
17586      # Convert to MSYS style.
17587      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17588      ;;
17589    cygwin*)
17590      # Convert to unix form, then to dos form, then back to unix form
17591      # but this time dos style (no spaces!) so that the unix form looks
17592      # like /cygdrive/c/PROGRA~1:/cygdr...
17593      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17594      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17595      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17596      ;;
17597    *)
17598      sys_lib_search_path_spec=$LIB
17599      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17600        # It is most probably a Windows format PATH.
17601        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17602      else
17603        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17604      fi
17605      # FIXME: find the short name or the path components, as spaces are
17606      # common. (e.g. "Program Files" -> "PROGRA~1")
17607      ;;
17608    esac
17609
17610    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17611    postinstall_cmds='base_file=`basename \$file`~
17612      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17613      dldir=$destdir/`dirname \$dlpath`~
17614      test -d \$dldir || mkdir -p \$dldir~
17615      $install_prog $dir/$dlname \$dldir/$dlname'
17616    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17617      dlpath=$dir/\$dldll~
17618       $RM \$dlpath'
17619    shlibpath_overrides_runpath=yes
17620    dynamic_linker='Win32 link.exe'
17621    ;;
17622
17623  *)
17624    # Assume MSVC wrapper
17625    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17626    dynamic_linker='Win32 ld.exe'
17627    ;;
17628  esac
17629  # FIXME: first we should search . and the directory the executable is in
17630  shlibpath_var=PATH
17631  ;;
17632
17633darwin* | rhapsody*)
17634  dynamic_linker="$host_os dyld"
17635  version_type=darwin
17636  need_lib_prefix=no
17637  need_version=no
17638  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17639  soname_spec='$libname$release$major$shared_ext'
17640  shlibpath_overrides_runpath=yes
17641  shlibpath_var=DYLD_LIBRARY_PATH
17642  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17643
17644  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17645  ;;
17646
17647dgux*)
17648  version_type=linux # correct to gnu/linux during the next big refactor
17649  need_lib_prefix=no
17650  need_version=no
17651  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17652  soname_spec='$libname$release$shared_ext$major'
17653  shlibpath_var=LD_LIBRARY_PATH
17654  ;;
17655
17656freebsd* | dragonfly*)
17657  # DragonFly does not have aout.  When/if they implement a new
17658  # versioning mechanism, adjust this.
17659  if test -x /usr/bin/objformat; then
17660    objformat=`/usr/bin/objformat`
17661  else
17662    case $host_os in
17663    freebsd[23].*) objformat=aout ;;
17664    *) objformat=elf ;;
17665    esac
17666  fi
17667  version_type=freebsd-$objformat
17668  case $version_type in
17669    freebsd-elf*)
17670      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17671      soname_spec='$libname$release$shared_ext$major'
17672      need_version=no
17673      need_lib_prefix=no
17674      ;;
17675    freebsd-*)
17676      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17677      need_version=yes
17678      ;;
17679  esac
17680  shlibpath_var=LD_LIBRARY_PATH
17681  case $host_os in
17682  freebsd2.*)
17683    shlibpath_overrides_runpath=yes
17684    ;;
17685  freebsd3.[01]* | freebsdelf3.[01]*)
17686    shlibpath_overrides_runpath=yes
17687    hardcode_into_libs=yes
17688    ;;
17689  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17690  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17691    shlibpath_overrides_runpath=no
17692    hardcode_into_libs=yes
17693    ;;
17694  *) # from 4.6 on, and DragonFly
17695    shlibpath_overrides_runpath=yes
17696    hardcode_into_libs=yes
17697    ;;
17698  esac
17699  ;;
17700
17701haiku*)
17702  version_type=linux # correct to gnu/linux during the next big refactor
17703  need_lib_prefix=no
17704  need_version=no
17705  dynamic_linker="$host_os runtime_loader"
17706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17707  soname_spec='$libname$release$shared_ext$major'
17708  shlibpath_var=LIBRARY_PATH
17709  shlibpath_overrides_runpath=no
17710  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17711  hardcode_into_libs=yes
17712  ;;
17713
17714hpux9* | hpux10* | hpux11*)
17715  # Give a soname corresponding to the major version so that dld.sl refuses to
17716  # link against other versions.
17717  version_type=sunos
17718  need_lib_prefix=no
17719  need_version=no
17720  case $host_cpu in
17721  ia64*)
17722    shrext_cmds='.so'
17723    hardcode_into_libs=yes
17724    dynamic_linker="$host_os dld.so"
17725    shlibpath_var=LD_LIBRARY_PATH
17726    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17727    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17728    soname_spec='$libname$release$shared_ext$major'
17729    if test 32 = "$HPUX_IA64_MODE"; then
17730      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17731      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17732    else
17733      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17734      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17735    fi
17736    ;;
17737  hppa*64*)
17738    shrext_cmds='.sl'
17739    hardcode_into_libs=yes
17740    dynamic_linker="$host_os dld.sl"
17741    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17743    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17744    soname_spec='$libname$release$shared_ext$major'
17745    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17746    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17747    ;;
17748  *)
17749    shrext_cmds='.sl'
17750    dynamic_linker="$host_os dld.sl"
17751    shlibpath_var=SHLIB_PATH
17752    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17753    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17754    soname_spec='$libname$release$shared_ext$major'
17755    ;;
17756  esac
17757  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17758  postinstall_cmds='chmod 555 $lib'
17759  # or fails outright, so override atomically:
17760  install_override_mode=555
17761  ;;
17762
17763interix[3-9]*)
17764  version_type=linux # correct to gnu/linux during the next big refactor
17765  need_lib_prefix=no
17766  need_version=no
17767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17768  soname_spec='$libname$release$shared_ext$major'
17769  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17770  shlibpath_var=LD_LIBRARY_PATH
17771  shlibpath_overrides_runpath=no
17772  hardcode_into_libs=yes
17773  ;;
17774
17775irix5* | irix6* | nonstopux*)
17776  case $host_os in
17777    nonstopux*) version_type=nonstopux ;;
17778    *)
17779	if test yes = "$lt_cv_prog_gnu_ld"; then
17780		version_type=linux # correct to gnu/linux during the next big refactor
17781	else
17782		version_type=irix
17783	fi ;;
17784  esac
17785  need_lib_prefix=no
17786  need_version=no
17787  soname_spec='$libname$release$shared_ext$major'
17788  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17789  case $host_os in
17790  irix5* | nonstopux*)
17791    libsuff= shlibsuff=
17792    ;;
17793  *)
17794    case $LD in # libtool.m4 will add one of these switches to LD
17795    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17796      libsuff= shlibsuff= libmagic=32-bit;;
17797    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17798      libsuff=32 shlibsuff=N32 libmagic=N32;;
17799    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17800      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17801    *) libsuff= shlibsuff= libmagic=never-match;;
17802    esac
17803    ;;
17804  esac
17805  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17806  shlibpath_overrides_runpath=no
17807  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17808  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17809  hardcode_into_libs=yes
17810  ;;
17811
17812# No shared lib support for Linux oldld, aout, or coff.
17813linux*oldld* | linux*aout* | linux*coff*)
17814  dynamic_linker=no
17815  ;;
17816
17817linux*android*)
17818  version_type=none # Android doesn't support versioned libraries.
17819  need_lib_prefix=no
17820  need_version=no
17821  library_names_spec='$libname$release$shared_ext'
17822  soname_spec='$libname$release$shared_ext'
17823  finish_cmds=
17824  shlibpath_var=LD_LIBRARY_PATH
17825  shlibpath_overrides_runpath=yes
17826
17827  # This implies no fast_install, which is unacceptable.
17828  # Some rework will be needed to allow for fast_install
17829  # before this can be enabled.
17830  hardcode_into_libs=yes
17831
17832  dynamic_linker='Android linker'
17833  # Don't embed -rpath directories since the linker doesn't support them.
17834  hardcode_libdir_flag_spec_CXX='-L$libdir'
17835  ;;
17836
17837# This must be glibc/ELF.
17838linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17839  version_type=linux # correct to gnu/linux during the next big refactor
17840  need_lib_prefix=no
17841  need_version=no
17842  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17843  soname_spec='$libname$release$shared_ext$major'
17844  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17845  shlibpath_var=LD_LIBRARY_PATH
17846  shlibpath_overrides_runpath=no
17847
17848  # Some binutils ld are patched to set DT_RUNPATH
17849  if test ${lt_cv_shlibpath_overrides_runpath+y}
17850then :
17851  printf %s "(cached) " >&6
17852else $as_nop
17853  lt_cv_shlibpath_overrides_runpath=no
17854    save_LDFLAGS=$LDFLAGS
17855    save_libdir=$libdir
17856    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17857	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17858    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859/* end confdefs.h.  */
17860
17861int
17862main (void)
17863{
17864
17865  ;
17866  return 0;
17867}
17868_ACEOF
17869if ac_fn_cxx_try_link "$LINENO"
17870then :
17871  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17872then :
17873  lt_cv_shlibpath_overrides_runpath=yes
17874fi
17875fi
17876rm -f core conftest.err conftest.$ac_objext conftest.beam \
17877    conftest$ac_exeext conftest.$ac_ext
17878    LDFLAGS=$save_LDFLAGS
17879    libdir=$save_libdir
17880
17881fi
17882
17883  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17884
17885  # This implies no fast_install, which is unacceptable.
17886  # Some rework will be needed to allow for fast_install
17887  # before this can be enabled.
17888  hardcode_into_libs=yes
17889
17890  # Ideally, we could use ldconfig to report *all* directores which are
17891  # searched for libraries, however this is still not possible.  Aside from not
17892  # being certain /sbin/ldconfig is available, command
17893  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17894  # even though it is searched at run-time.  Try to do the best guess by
17895  # appending ld.so.conf contents (and includes) to the search path.
17896  if test -f /etc/ld.so.conf; then
17897    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' ' '`
17898    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17899  fi
17900
17901  # We used to test for /lib/ld.so.1 and disable shared libraries on
17902  # powerpc, because MkLinux only supported shared libraries with the
17903  # GNU dynamic linker.  Since this was broken with cross compilers,
17904  # most powerpc-linux boxes support dynamic linking these days and
17905  # people can always --disable-shared, the test was removed, and we
17906  # assume the GNU/Linux dynamic linker is in use.
17907  dynamic_linker='GNU/Linux ld.so'
17908  ;;
17909
17910netbsd*)
17911  version_type=sunos
17912  need_lib_prefix=no
17913  need_version=no
17914  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17915    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17916    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17917    dynamic_linker='NetBSD (a.out) ld.so'
17918  else
17919    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17920    soname_spec='$libname$release$shared_ext$major'
17921    dynamic_linker='NetBSD ld.elf_so'
17922  fi
17923  shlibpath_var=LD_LIBRARY_PATH
17924  shlibpath_overrides_runpath=yes
17925  hardcode_into_libs=yes
17926  ;;
17927
17928newsos6)
17929  version_type=linux # correct to gnu/linux during the next big refactor
17930  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17931  shlibpath_var=LD_LIBRARY_PATH
17932  shlibpath_overrides_runpath=yes
17933  ;;
17934
17935*nto* | *qnx*)
17936  version_type=qnx
17937  need_lib_prefix=no
17938  need_version=no
17939  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17940  soname_spec='$libname$release$shared_ext$major'
17941  shlibpath_var=LD_LIBRARY_PATH
17942  shlibpath_overrides_runpath=no
17943  hardcode_into_libs=yes
17944  dynamic_linker='ldqnx.so'
17945  ;;
17946
17947openbsd* | bitrig*)
17948  version_type=sunos
17949  sys_lib_dlsearch_path_spec=/usr/lib
17950  need_lib_prefix=no
17951  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17952    need_version=no
17953  else
17954    need_version=yes
17955  fi
17956  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17957  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17958  shlibpath_var=LD_LIBRARY_PATH
17959  shlibpath_overrides_runpath=yes
17960  ;;
17961
17962os2*)
17963  libname_spec='$name'
17964  version_type=windows
17965  shrext_cmds=.dll
17966  need_version=no
17967  need_lib_prefix=no
17968  # OS/2 can only load a DLL with a base name of 8 characters or less.
17969  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17970    v=$($ECHO $release$versuffix | tr -d .-);
17971    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17972    $ECHO $n$v`$shared_ext'
17973  library_names_spec='${libname}_dll.$libext'
17974  dynamic_linker='OS/2 ld.exe'
17975  shlibpath_var=BEGINLIBPATH
17976  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17977  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17978  postinstall_cmds='base_file=`basename \$file`~
17979    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17980    dldir=$destdir/`dirname \$dlpath`~
17981    test -d \$dldir || mkdir -p \$dldir~
17982    $install_prog $dir/$dlname \$dldir/$dlname~
17983    chmod a+x \$dldir/$dlname~
17984    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17985      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17986    fi'
17987  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17988    dlpath=$dir/\$dldll~
17989    $RM \$dlpath'
17990  ;;
17991
17992osf3* | osf4* | osf5*)
17993  version_type=osf
17994  need_lib_prefix=no
17995  need_version=no
17996  soname_spec='$libname$release$shared_ext$major'
17997  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17998  shlibpath_var=LD_LIBRARY_PATH
17999  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18000  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18001  ;;
18002
18003rdos*)
18004  dynamic_linker=no
18005  ;;
18006
18007solaris*)
18008  version_type=linux # correct to gnu/linux during the next big refactor
18009  need_lib_prefix=no
18010  need_version=no
18011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18012  soname_spec='$libname$release$shared_ext$major'
18013  shlibpath_var=LD_LIBRARY_PATH
18014  shlibpath_overrides_runpath=yes
18015  hardcode_into_libs=yes
18016  # ldd complains unless libraries are executable
18017  postinstall_cmds='chmod +x $lib'
18018  ;;
18019
18020sunos4*)
18021  version_type=sunos
18022  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18023  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  shlibpath_overrides_runpath=yes
18026  if test yes = "$with_gnu_ld"; then
18027    need_lib_prefix=no
18028  fi
18029  need_version=yes
18030  ;;
18031
18032sysv4 | sysv4.3*)
18033  version_type=linux # correct to gnu/linux during the next big refactor
18034  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18035  soname_spec='$libname$release$shared_ext$major'
18036  shlibpath_var=LD_LIBRARY_PATH
18037  case $host_vendor in
18038    sni)
18039      shlibpath_overrides_runpath=no
18040      need_lib_prefix=no
18041      runpath_var=LD_RUN_PATH
18042      ;;
18043    siemens)
18044      need_lib_prefix=no
18045      ;;
18046    motorola)
18047      need_lib_prefix=no
18048      need_version=no
18049      shlibpath_overrides_runpath=no
18050      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18051      ;;
18052  esac
18053  ;;
18054
18055sysv4*MP*)
18056  if test -d /usr/nec; then
18057    version_type=linux # correct to gnu/linux during the next big refactor
18058    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18059    soname_spec='$libname$shared_ext.$major'
18060    shlibpath_var=LD_LIBRARY_PATH
18061  fi
18062  ;;
18063
18064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18065  version_type=sco
18066  need_lib_prefix=no
18067  need_version=no
18068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18069  soname_spec='$libname$release$shared_ext$major'
18070  shlibpath_var=LD_LIBRARY_PATH
18071  shlibpath_overrides_runpath=yes
18072  hardcode_into_libs=yes
18073  if test yes = "$with_gnu_ld"; then
18074    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18075  else
18076    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18077    case $host_os in
18078      sco3.2v5*)
18079        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18080	;;
18081    esac
18082  fi
18083  sys_lib_dlsearch_path_spec='/usr/lib'
18084  ;;
18085
18086tpf*)
18087  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18088  version_type=linux # correct to gnu/linux during the next big refactor
18089  need_lib_prefix=no
18090  need_version=no
18091  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18092  shlibpath_var=LD_LIBRARY_PATH
18093  shlibpath_overrides_runpath=no
18094  hardcode_into_libs=yes
18095  ;;
18096
18097uts4*)
18098  version_type=linux # correct to gnu/linux during the next big refactor
18099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18100  soname_spec='$libname$release$shared_ext$major'
18101  shlibpath_var=LD_LIBRARY_PATH
18102  ;;
18103
18104*)
18105  dynamic_linker=no
18106  ;;
18107esac
18108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18109printf "%s\n" "$dynamic_linker" >&6; }
18110test no = "$dynamic_linker" && can_build_shared=no
18111
18112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18113if test yes = "$GCC"; then
18114  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18115fi
18116
18117if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18118  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18119fi
18120
18121if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18122  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18123fi
18124
18125# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18126configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18127
18128# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18129func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18130
18131# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18132configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18174printf %s "checking how to hardcode library paths into programs... " >&6; }
18175hardcode_action_CXX=
18176if test -n "$hardcode_libdir_flag_spec_CXX" ||
18177   test -n "$runpath_var_CXX" ||
18178   test yes = "$hardcode_automatic_CXX"; then
18179
18180  # We can hardcode non-existent directories.
18181  if test no != "$hardcode_direct_CXX" &&
18182     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18183     # have to relink, otherwise we might link with an installed library
18184     # when we should be linking with a yet-to-be-installed one
18185     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18186     test no != "$hardcode_minus_L_CXX"; then
18187    # Linking always hardcodes the temporary library directory.
18188    hardcode_action_CXX=relink
18189  else
18190    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18191    hardcode_action_CXX=immediate
18192  fi
18193else
18194  # We cannot hardcode anything, or else we can only hardcode existing
18195  # directories.
18196  hardcode_action_CXX=unsupported
18197fi
18198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18199printf "%s\n" "$hardcode_action_CXX" >&6; }
18200
18201if test relink = "$hardcode_action_CXX" ||
18202   test yes = "$inherit_rpath_CXX"; then
18203  # Fast installation is not supported
18204  enable_fast_install=no
18205elif test yes = "$shlibpath_overrides_runpath" ||
18206     test no = "$enable_shared"; then
18207  # Fast installation is not necessary
18208  enable_fast_install=needless
18209fi
18210
18211
18212
18213
18214
18215
18216
18217  fi # test -n "$compiler"
18218
18219  CC=$lt_save_CC
18220  CFLAGS=$lt_save_CFLAGS
18221  LDCXX=$LD
18222  LD=$lt_save_LD
18223  GCC=$lt_save_GCC
18224  with_gnu_ld=$lt_save_with_gnu_ld
18225  lt_cv_path_LDCXX=$lt_cv_path_LD
18226  lt_cv_path_LD=$lt_save_path_LD
18227  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18228  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18229fi # test yes != "$_lt_caught_CXX_error"
18230
18231ac_ext=c
18232ac_cpp='$CPP $CPPFLAGS'
18233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236
18237
18238
18239####################################################################
18240# Setup C, C++ compilers
18241####################################################################
18242
18243CFLAGS_save=$CFLAGS
18244ac_ext=c
18245ac_cpp='$CPP $CPPFLAGS'
18246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248ac_compiler_gnu=$ac_cv_c_compiler_gnu
18249if test -n "$ac_tool_prefix"; then
18250  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18251set dummy ${ac_tool_prefix}gcc; ac_word=$2
18252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18253printf %s "checking for $ac_word... " >&6; }
18254if test ${ac_cv_prog_CC+y}
18255then :
18256  printf %s "(cached) " >&6
18257else $as_nop
18258  if test -n "$CC"; then
18259  ac_cv_prog_CC="$CC" # Let the user override the test.
18260else
18261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18262for as_dir in $PATH
18263do
18264  IFS=$as_save_IFS
18265  case $as_dir in #(((
18266    '') as_dir=./ ;;
18267    */) ;;
18268    *) as_dir=$as_dir/ ;;
18269  esac
18270    for ac_exec_ext in '' $ac_executable_extensions; do
18271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18272    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18274    break 2
18275  fi
18276done
18277  done
18278IFS=$as_save_IFS
18279
18280fi
18281fi
18282CC=$ac_cv_prog_CC
18283if test -n "$CC"; then
18284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18285printf "%s\n" "$CC" >&6; }
18286else
18287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288printf "%s\n" "no" >&6; }
18289fi
18290
18291
18292fi
18293if test -z "$ac_cv_prog_CC"; then
18294  ac_ct_CC=$CC
18295  # Extract the first word of "gcc", so it can be a program name with args.
18296set dummy gcc; ac_word=$2
18297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18298printf %s "checking for $ac_word... " >&6; }
18299if test ${ac_cv_prog_ac_ct_CC+y}
18300then :
18301  printf %s "(cached) " >&6
18302else $as_nop
18303  if test -n "$ac_ct_CC"; then
18304  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18305else
18306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307for as_dir in $PATH
18308do
18309  IFS=$as_save_IFS
18310  case $as_dir in #(((
18311    '') as_dir=./ ;;
18312    */) ;;
18313    *) as_dir=$as_dir/ ;;
18314  esac
18315    for ac_exec_ext in '' $ac_executable_extensions; do
18316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18317    ac_cv_prog_ac_ct_CC="gcc"
18318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18319    break 2
18320  fi
18321done
18322  done
18323IFS=$as_save_IFS
18324
18325fi
18326fi
18327ac_ct_CC=$ac_cv_prog_ac_ct_CC
18328if test -n "$ac_ct_CC"; then
18329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18330printf "%s\n" "$ac_ct_CC" >&6; }
18331else
18332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333printf "%s\n" "no" >&6; }
18334fi
18335
18336  if test "x$ac_ct_CC" = x; then
18337    CC=""
18338  else
18339    case $cross_compiling:$ac_tool_warned in
18340yes:)
18341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18342printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18343ac_tool_warned=yes ;;
18344esac
18345    CC=$ac_ct_CC
18346  fi
18347else
18348  CC="$ac_cv_prog_CC"
18349fi
18350
18351if test -z "$CC"; then
18352          if test -n "$ac_tool_prefix"; then
18353    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18354set dummy ${ac_tool_prefix}cc; ac_word=$2
18355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18356printf %s "checking for $ac_word... " >&6; }
18357if test ${ac_cv_prog_CC+y}
18358then :
18359  printf %s "(cached) " >&6
18360else $as_nop
18361  if test -n "$CC"; then
18362  ac_cv_prog_CC="$CC" # Let the user override the test.
18363else
18364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18365for as_dir in $PATH
18366do
18367  IFS=$as_save_IFS
18368  case $as_dir in #(((
18369    '') as_dir=./ ;;
18370    */) ;;
18371    *) as_dir=$as_dir/ ;;
18372  esac
18373    for ac_exec_ext in '' $ac_executable_extensions; do
18374  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18375    ac_cv_prog_CC="${ac_tool_prefix}cc"
18376    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18377    break 2
18378  fi
18379done
18380  done
18381IFS=$as_save_IFS
18382
18383fi
18384fi
18385CC=$ac_cv_prog_CC
18386if test -n "$CC"; then
18387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18388printf "%s\n" "$CC" >&6; }
18389else
18390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391printf "%s\n" "no" >&6; }
18392fi
18393
18394
18395  fi
18396fi
18397if test -z "$CC"; then
18398  # Extract the first word of "cc", so it can be a program name with args.
18399set dummy cc; ac_word=$2
18400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18401printf %s "checking for $ac_word... " >&6; }
18402if test ${ac_cv_prog_CC+y}
18403then :
18404  printf %s "(cached) " >&6
18405else $as_nop
18406  if test -n "$CC"; then
18407  ac_cv_prog_CC="$CC" # Let the user override the test.
18408else
18409  ac_prog_rejected=no
18410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18411for as_dir in $PATH
18412do
18413  IFS=$as_save_IFS
18414  case $as_dir in #(((
18415    '') as_dir=./ ;;
18416    */) ;;
18417    *) as_dir=$as_dir/ ;;
18418  esac
18419    for ac_exec_ext in '' $ac_executable_extensions; do
18420  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18421    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18422       ac_prog_rejected=yes
18423       continue
18424     fi
18425    ac_cv_prog_CC="cc"
18426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18427    break 2
18428  fi
18429done
18430  done
18431IFS=$as_save_IFS
18432
18433if test $ac_prog_rejected = yes; then
18434  # We found a bogon in the path, so make sure we never use it.
18435  set dummy $ac_cv_prog_CC
18436  shift
18437  if test $# != 0; then
18438    # We chose a different compiler from the bogus one.
18439    # However, it has the same basename, so the bogon will be chosen
18440    # first if we set CC to just the basename; use the full file name.
18441    shift
18442    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
18443  fi
18444fi
18445fi
18446fi
18447CC=$ac_cv_prog_CC
18448if test -n "$CC"; then
18449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18450printf "%s\n" "$CC" >&6; }
18451else
18452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18453printf "%s\n" "no" >&6; }
18454fi
18455
18456
18457fi
18458if test -z "$CC"; then
18459  if test -n "$ac_tool_prefix"; then
18460  for ac_prog in cl.exe
18461  do
18462    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18463set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18465printf %s "checking for $ac_word... " >&6; }
18466if test ${ac_cv_prog_CC+y}
18467then :
18468  printf %s "(cached) " >&6
18469else $as_nop
18470  if test -n "$CC"; then
18471  ac_cv_prog_CC="$CC" # Let the user override the test.
18472else
18473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474for as_dir in $PATH
18475do
18476  IFS=$as_save_IFS
18477  case $as_dir in #(((
18478    '') as_dir=./ ;;
18479    */) ;;
18480    *) as_dir=$as_dir/ ;;
18481  esac
18482    for ac_exec_ext in '' $ac_executable_extensions; do
18483  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18484    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18485    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18486    break 2
18487  fi
18488done
18489  done
18490IFS=$as_save_IFS
18491
18492fi
18493fi
18494CC=$ac_cv_prog_CC
18495if test -n "$CC"; then
18496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18497printf "%s\n" "$CC" >&6; }
18498else
18499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500printf "%s\n" "no" >&6; }
18501fi
18502
18503
18504    test -n "$CC" && break
18505  done
18506fi
18507if test -z "$CC"; then
18508  ac_ct_CC=$CC
18509  for ac_prog in cl.exe
18510do
18511  # Extract the first word of "$ac_prog", so it can be a program name with args.
18512set dummy $ac_prog; ac_word=$2
18513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18514printf %s "checking for $ac_word... " >&6; }
18515if test ${ac_cv_prog_ac_ct_CC+y}
18516then :
18517  printf %s "(cached) " >&6
18518else $as_nop
18519  if test -n "$ac_ct_CC"; then
18520  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18521else
18522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523for as_dir in $PATH
18524do
18525  IFS=$as_save_IFS
18526  case $as_dir in #(((
18527    '') as_dir=./ ;;
18528    */) ;;
18529    *) as_dir=$as_dir/ ;;
18530  esac
18531    for ac_exec_ext in '' $ac_executable_extensions; do
18532  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18533    ac_cv_prog_ac_ct_CC="$ac_prog"
18534    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18535    break 2
18536  fi
18537done
18538  done
18539IFS=$as_save_IFS
18540
18541fi
18542fi
18543ac_ct_CC=$ac_cv_prog_ac_ct_CC
18544if test -n "$ac_ct_CC"; then
18545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18546printf "%s\n" "$ac_ct_CC" >&6; }
18547else
18548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18549printf "%s\n" "no" >&6; }
18550fi
18551
18552
18553  test -n "$ac_ct_CC" && break
18554done
18555
18556  if test "x$ac_ct_CC" = x; then
18557    CC=""
18558  else
18559    case $cross_compiling:$ac_tool_warned in
18560yes:)
18561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18562printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18563ac_tool_warned=yes ;;
18564esac
18565    CC=$ac_ct_CC
18566  fi
18567fi
18568
18569fi
18570if test -z "$CC"; then
18571  if test -n "$ac_tool_prefix"; then
18572  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
18573set dummy ${ac_tool_prefix}clang; ac_word=$2
18574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18575printf %s "checking for $ac_word... " >&6; }
18576if test ${ac_cv_prog_CC+y}
18577then :
18578  printf %s "(cached) " >&6
18579else $as_nop
18580  if test -n "$CC"; then
18581  ac_cv_prog_CC="$CC" # Let the user override the test.
18582else
18583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584for as_dir in $PATH
18585do
18586  IFS=$as_save_IFS
18587  case $as_dir in #(((
18588    '') as_dir=./ ;;
18589    */) ;;
18590    *) as_dir=$as_dir/ ;;
18591  esac
18592    for ac_exec_ext in '' $ac_executable_extensions; do
18593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18594    ac_cv_prog_CC="${ac_tool_prefix}clang"
18595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18596    break 2
18597  fi
18598done
18599  done
18600IFS=$as_save_IFS
18601
18602fi
18603fi
18604CC=$ac_cv_prog_CC
18605if test -n "$CC"; then
18606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18607printf "%s\n" "$CC" >&6; }
18608else
18609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18610printf "%s\n" "no" >&6; }
18611fi
18612
18613
18614fi
18615if test -z "$ac_cv_prog_CC"; then
18616  ac_ct_CC=$CC
18617  # Extract the first word of "clang", so it can be a program name with args.
18618set dummy clang; ac_word=$2
18619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18620printf %s "checking for $ac_word... " >&6; }
18621if test ${ac_cv_prog_ac_ct_CC+y}
18622then :
18623  printf %s "(cached) " >&6
18624else $as_nop
18625  if test -n "$ac_ct_CC"; then
18626  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18627else
18628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18629for as_dir in $PATH
18630do
18631  IFS=$as_save_IFS
18632  case $as_dir in #(((
18633    '') as_dir=./ ;;
18634    */) ;;
18635    *) as_dir=$as_dir/ ;;
18636  esac
18637    for ac_exec_ext in '' $ac_executable_extensions; do
18638  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18639    ac_cv_prog_ac_ct_CC="clang"
18640    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18641    break 2
18642  fi
18643done
18644  done
18645IFS=$as_save_IFS
18646
18647fi
18648fi
18649ac_ct_CC=$ac_cv_prog_ac_ct_CC
18650if test -n "$ac_ct_CC"; then
18651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18652printf "%s\n" "$ac_ct_CC" >&6; }
18653else
18654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18655printf "%s\n" "no" >&6; }
18656fi
18657
18658  if test "x$ac_ct_CC" = x; then
18659    CC=""
18660  else
18661    case $cross_compiling:$ac_tool_warned in
18662yes:)
18663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18664printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18665ac_tool_warned=yes ;;
18666esac
18667    CC=$ac_ct_CC
18668  fi
18669else
18670  CC="$ac_cv_prog_CC"
18671fi
18672
18673fi
18674
18675
18676test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18677printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18678as_fn_error $? "no acceptable C compiler found in \$PATH
18679See \`config.log' for more details" "$LINENO" 5; }
18680
18681# Provide some information about the compiler.
18682printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18683set X $ac_compile
18684ac_compiler=$2
18685for ac_option in --version -v -V -qversion -version; do
18686  { { ac_try="$ac_compiler $ac_option >&5"
18687case "(($ac_try" in
18688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689  *) ac_try_echo=$ac_try;;
18690esac
18691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18692printf "%s\n" "$ac_try_echo"; } >&5
18693  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18694  ac_status=$?
18695  if test -s conftest.err; then
18696    sed '10a\
18697... rest of stderr output deleted ...
18698         10q' conftest.err >conftest.er1
18699    cat conftest.er1 >&5
18700  fi
18701  rm -f conftest.er1 conftest.err
18702  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18703  test $ac_status = 0; }
18704done
18705
18706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
18707printf %s "checking whether the compiler supports GNU C... " >&6; }
18708if test ${ac_cv_c_compiler_gnu+y}
18709then :
18710  printf %s "(cached) " >&6
18711else $as_nop
18712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713/* end confdefs.h.  */
18714
18715int
18716main (void)
18717{
18718#ifndef __GNUC__
18719       choke me
18720#endif
18721
18722  ;
18723  return 0;
18724}
18725_ACEOF
18726if ac_fn_c_try_compile "$LINENO"
18727then :
18728  ac_compiler_gnu=yes
18729else $as_nop
18730  ac_compiler_gnu=no
18731fi
18732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18733ac_cv_c_compiler_gnu=$ac_compiler_gnu
18734
18735fi
18736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18737printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
18738ac_compiler_gnu=$ac_cv_c_compiler_gnu
18739
18740if test $ac_compiler_gnu = yes; then
18741  GCC=yes
18742else
18743  GCC=
18744fi
18745ac_test_CFLAGS=${CFLAGS+y}
18746ac_save_CFLAGS=$CFLAGS
18747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18748printf %s "checking whether $CC accepts -g... " >&6; }
18749if test ${ac_cv_prog_cc_g+y}
18750then :
18751  printf %s "(cached) " >&6
18752else $as_nop
18753  ac_save_c_werror_flag=$ac_c_werror_flag
18754   ac_c_werror_flag=yes
18755   ac_cv_prog_cc_g=no
18756   CFLAGS="-g"
18757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758/* end confdefs.h.  */
18759
18760int
18761main (void)
18762{
18763
18764  ;
18765  return 0;
18766}
18767_ACEOF
18768if ac_fn_c_try_compile "$LINENO"
18769then :
18770  ac_cv_prog_cc_g=yes
18771else $as_nop
18772  CFLAGS=""
18773      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775
18776int
18777main (void)
18778{
18779
18780  ;
18781  return 0;
18782}
18783_ACEOF
18784if ac_fn_c_try_compile "$LINENO"
18785then :
18786
18787else $as_nop
18788  ac_c_werror_flag=$ac_save_c_werror_flag
18789	 CFLAGS="-g"
18790	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791/* end confdefs.h.  */
18792
18793int
18794main (void)
18795{
18796
18797  ;
18798  return 0;
18799}
18800_ACEOF
18801if ac_fn_c_try_compile "$LINENO"
18802then :
18803  ac_cv_prog_cc_g=yes
18804fi
18805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18806fi
18807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18808fi
18809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18810   ac_c_werror_flag=$ac_save_c_werror_flag
18811fi
18812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18813printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
18814if test $ac_test_CFLAGS; then
18815  CFLAGS=$ac_save_CFLAGS
18816elif test $ac_cv_prog_cc_g = yes; then
18817  if test "$GCC" = yes; then
18818    CFLAGS="-g -O2"
18819  else
18820    CFLAGS="-g"
18821  fi
18822else
18823  if test "$GCC" = yes; then
18824    CFLAGS="-O2"
18825  else
18826    CFLAGS=
18827  fi
18828fi
18829ac_prog_cc_stdc=no
18830if test x$ac_prog_cc_stdc = xno
18831then :
18832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
18833printf %s "checking for $CC option to enable C11 features... " >&6; }
18834if test ${ac_cv_prog_cc_c11+y}
18835then :
18836  printf %s "(cached) " >&6
18837else $as_nop
18838  ac_cv_prog_cc_c11=no
18839ac_save_CC=$CC
18840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841/* end confdefs.h.  */
18842$ac_c_conftest_c11_program
18843_ACEOF
18844for ac_arg in '' -std=gnu11
18845do
18846  CC="$ac_save_CC $ac_arg"
18847  if ac_fn_c_try_compile "$LINENO"
18848then :
18849  ac_cv_prog_cc_c11=$ac_arg
18850fi
18851rm -f core conftest.err conftest.$ac_objext conftest.beam
18852  test "x$ac_cv_prog_cc_c11" != "xno" && break
18853done
18854rm -f conftest.$ac_ext
18855CC=$ac_save_CC
18856fi
18857
18858if test "x$ac_cv_prog_cc_c11" = xno
18859then :
18860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18861printf "%s\n" "unsupported" >&6; }
18862else $as_nop
18863  if test "x$ac_cv_prog_cc_c11" = x
18864then :
18865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18866printf "%s\n" "none needed" >&6; }
18867else $as_nop
18868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
18869printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
18870     CC="$CC $ac_cv_prog_cc_c11"
18871fi
18872  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
18873  ac_prog_cc_stdc=c11
18874fi
18875fi
18876if test x$ac_prog_cc_stdc = xno
18877then :
18878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
18879printf %s "checking for $CC option to enable C99 features... " >&6; }
18880if test ${ac_cv_prog_cc_c99+y}
18881then :
18882  printf %s "(cached) " >&6
18883else $as_nop
18884  ac_cv_prog_cc_c99=no
18885ac_save_CC=$CC
18886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888$ac_c_conftest_c99_program
18889_ACEOF
18890for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
18891do
18892  CC="$ac_save_CC $ac_arg"
18893  if ac_fn_c_try_compile "$LINENO"
18894then :
18895  ac_cv_prog_cc_c99=$ac_arg
18896fi
18897rm -f core conftest.err conftest.$ac_objext conftest.beam
18898  test "x$ac_cv_prog_cc_c99" != "xno" && break
18899done
18900rm -f conftest.$ac_ext
18901CC=$ac_save_CC
18902fi
18903
18904if test "x$ac_cv_prog_cc_c99" = xno
18905then :
18906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18907printf "%s\n" "unsupported" >&6; }
18908else $as_nop
18909  if test "x$ac_cv_prog_cc_c99" = x
18910then :
18911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18912printf "%s\n" "none needed" >&6; }
18913else $as_nop
18914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
18915printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
18916     CC="$CC $ac_cv_prog_cc_c99"
18917fi
18918  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
18919  ac_prog_cc_stdc=c99
18920fi
18921fi
18922if test x$ac_prog_cc_stdc = xno
18923then :
18924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
18925printf %s "checking for $CC option to enable C89 features... " >&6; }
18926if test ${ac_cv_prog_cc_c89+y}
18927then :
18928  printf %s "(cached) " >&6
18929else $as_nop
18930  ac_cv_prog_cc_c89=no
18931ac_save_CC=$CC
18932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933/* end confdefs.h.  */
18934$ac_c_conftest_c89_program
18935_ACEOF
18936for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18937do
18938  CC="$ac_save_CC $ac_arg"
18939  if ac_fn_c_try_compile "$LINENO"
18940then :
18941  ac_cv_prog_cc_c89=$ac_arg
18942fi
18943rm -f core conftest.err conftest.$ac_objext conftest.beam
18944  test "x$ac_cv_prog_cc_c89" != "xno" && break
18945done
18946rm -f conftest.$ac_ext
18947CC=$ac_save_CC
18948fi
18949
18950if test "x$ac_cv_prog_cc_c89" = xno
18951then :
18952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18953printf "%s\n" "unsupported" >&6; }
18954else $as_nop
18955  if test "x$ac_cv_prog_cc_c89" = x
18956then :
18957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18958printf "%s\n" "none needed" >&6; }
18959else $as_nop
18960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18961printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
18962     CC="$CC $ac_cv_prog_cc_c89"
18963fi
18964  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
18965  ac_prog_cc_stdc=c89
18966fi
18967fi
18968
18969ac_ext=c
18970ac_cpp='$CPP $CPPFLAGS'
18971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974
18975
18976  ac_ext=c
18977ac_cpp='$CPP $CPPFLAGS'
18978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18980ac_compiler_gnu=$ac_cv_c_compiler_gnu
18981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18982printf %s "checking whether $CC understands -c and -o together... " >&6; }
18983if test ${am_cv_prog_cc_c_o+y}
18984then :
18985  printf %s "(cached) " >&6
18986else $as_nop
18987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988/* end confdefs.h.  */
18989
18990int
18991main (void)
18992{
18993
18994  ;
18995  return 0;
18996}
18997_ACEOF
18998  # Make sure it works both with $CC and with simple cc.
18999  # Following AC_PROG_CC_C_O, we do the test twice because some
19000  # compilers refuse to overwrite an existing .o file with -o,
19001  # though they will create one.
19002  am_cv_prog_cc_c_o=yes
19003  for am_i in 1 2; do
19004    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19005   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } \
19009         && test -f conftest2.$ac_objext; then
19010      : OK
19011    else
19012      am_cv_prog_cc_c_o=no
19013      break
19014    fi
19015  done
19016  rm -f core conftest*
19017  unset am_i
19018fi
19019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19020printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
19021if test "$am_cv_prog_cc_c_o" != yes; then
19022   # Losing compiler, so override with the script.
19023   # FIXME: It is wrong to rewrite CC.
19024   # But if we don't then we get into trouble of one sort or another.
19025   # A longer-term fix would be to have automake use am__CC in this case,
19026   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19027   CC="$am_aux_dir/compile $CC"
19028fi
19029ac_ext=c
19030ac_cpp='$CPP $CPPFLAGS'
19031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035
19036depcc="$CC"   am_compiler_list=
19037
19038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19039printf %s "checking dependency style of $depcc... " >&6; }
19040if test ${am_cv_CC_dependencies_compiler_type+y}
19041then :
19042  printf %s "(cached) " >&6
19043else $as_nop
19044  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19045  # We make a subdir and do the tests there.  Otherwise we can end up
19046  # making bogus files that we don't know about and never remove.  For
19047  # instance it was reported that on HP-UX the gcc test will end up
19048  # making a dummy file named 'D' -- because '-MD' means "put the output
19049  # in D".
19050  rm -rf conftest.dir
19051  mkdir conftest.dir
19052  # Copy depcomp to subdir because otherwise we won't find it if we're
19053  # using a relative directory.
19054  cp "$am_depcomp" conftest.dir
19055  cd conftest.dir
19056  # We will build objects and dependencies in a subdirectory because
19057  # it helps to detect inapplicable dependency modes.  For instance
19058  # both Tru64's cc and ICC support -MD to output dependencies as a
19059  # side effect of compilation, but ICC will put the dependencies in
19060  # the current directory while Tru64 will put them in the object
19061  # directory.
19062  mkdir sub
19063
19064  am_cv_CC_dependencies_compiler_type=none
19065  if test "$am_compiler_list" = ""; then
19066     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19067  fi
19068  am__universal=false
19069  case " $depcc " in #(
19070     *\ -arch\ *\ -arch\ *) am__universal=true ;;
19071     esac
19072
19073  for depmode in $am_compiler_list; do
19074    # Setup a source with many dependencies, because some compilers
19075    # like to wrap large dependency lists on column 80 (with \), and
19076    # we should not choose a depcomp mode which is confused by this.
19077    #
19078    # We need to recreate these files for each test, as the compiler may
19079    # overwrite some of them when testing with obscure command lines.
19080    # This happens at least with the AIX C compiler.
19081    : > sub/conftest.c
19082    for i in 1 2 3 4 5 6; do
19083      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19084      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19085      # Solaris 10 /bin/sh.
19086      echo '/* dummy */' > sub/conftst$i.h
19087    done
19088    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19089
19090    # We check with '-c' and '-o' for the sake of the "dashmstdout"
19091    # mode.  It turns out that the SunPro C++ compiler does not properly
19092    # handle '-M -o', and we need to detect this.  Also, some Intel
19093    # versions had trouble with output in subdirs.
19094    am__obj=sub/conftest.${OBJEXT-o}
19095    am__minus_obj="-o $am__obj"
19096    case $depmode in
19097    gcc)
19098      # This depmode causes a compiler race in universal mode.
19099      test "$am__universal" = false || continue
19100      ;;
19101    nosideeffect)
19102      # After this tag, mechanisms are not by side-effect, so they'll
19103      # only be used when explicitly requested.
19104      if test "x$enable_dependency_tracking" = xyes; then
19105	continue
19106      else
19107	break
19108      fi
19109      ;;
19110    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19111      # This compiler won't grok '-c -o', but also, the minuso test has
19112      # not run yet.  These depmodes are late enough in the game, and
19113      # so weak that their functioning should not be impacted.
19114      am__obj=conftest.${OBJEXT-o}
19115      am__minus_obj=
19116      ;;
19117    none) break ;;
19118    esac
19119    if depmode=$depmode \
19120       source=sub/conftest.c object=$am__obj \
19121       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19122       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19123         >/dev/null 2>conftest.err &&
19124       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19125       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19126       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19127       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19128      # icc doesn't choke on unknown options, it will just issue warnings
19129      # or remarks (even with -Werror).  So we grep stderr for any message
19130      # that says an option was ignored or not supported.
19131      # When given -MP, icc 7.0 and 7.1 complain thusly:
19132      #   icc: Command line warning: ignoring option '-M'; no argument required
19133      # The diagnosis changed in icc 8.0:
19134      #   icc: Command line remark: option '-MP' not supported
19135      if (grep 'ignoring option' conftest.err ||
19136          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19137        am_cv_CC_dependencies_compiler_type=$depmode
19138        break
19139      fi
19140    fi
19141  done
19142
19143  cd ..
19144  rm -rf conftest.dir
19145else
19146  am_cv_CC_dependencies_compiler_type=none
19147fi
19148
19149fi
19150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19151printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
19152CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19153
19154 if
19155  test "x$enable_dependency_tracking" != xno \
19156  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19157  am__fastdepCC_TRUE=
19158  am__fastdepCC_FALSE='#'
19159else
19160  am__fastdepCC_TRUE='#'
19161  am__fastdepCC_FALSE=
19162fi
19163
19164
19165
19166# AC_PROG_CC_C99 obsolete, detected inside AC_PROG_CC, since autoconf 2.70
19167
19168CFLAGS=$CFLAGS_save
19169
19170
19171if test -z "$CC_FOR_BUILD"
19172then :
19173
19174    CC_FOR_BUILD=$CC
19175
19176
19177fi
19178
19179####################################################################
19180# CLI arguments
19181####################################################################
19182
19183# Define hwloc's configure arguments
19184
19185    # Embedded mode, or standalone?
19186    # Check whether --enable-embedded-mode was given.
19187if test ${enable_embedded_mode+y}
19188then :
19189  enableval=$enable_embedded_mode;
19190fi
19191
19192
19193    # Change the symbol prefix?
19194
19195# Check whether --with-hwloc-symbol-prefix was given.
19196if test ${with_hwloc_symbol_prefix+y}
19197then :
19198  withval=$with_hwloc_symbol_prefix;
19199fi
19200
19201
19202    # For the windows build
19203
19204
19205    # Debug mode?
19206    # Check whether --enable-debug was given.
19207if test ${enable_debug+y}
19208then :
19209  enableval=$enable_debug;
19210fi
19211
19212
19213    # Doxygen?
19214    # Check whether --enable-doxygen was given.
19215if test ${enable_doxygen+y}
19216then :
19217  enableval=$enable_doxygen;
19218fi
19219
19220
19221    # Picky?
19222    # Check whether --enable-picky was given.
19223if test ${enable_picky+y}
19224then :
19225  enableval=$enable_picky;
19226fi
19227
19228
19229    # Cairo?
19230    # Check whether --enable-cairo was given.
19231if test ${enable_cairo+y}
19232then :
19233  enableval=$enable_cairo;
19234fi
19235
19236
19237    # CPUID
19238    # Check whether --enable-cpuid was given.
19239if test ${enable_cpuid+y}
19240then :
19241  enableval=$enable_cpuid;
19242fi
19243
19244
19245    # XML using libxml2?
19246    # Check whether --enable-libxml2 was given.
19247if test ${enable_libxml2+y}
19248then :
19249  enableval=$enable_libxml2;
19250fi
19251
19252
19253    # I/O?
19254    # Check whether --enable-io was given.
19255if test ${enable_io+y}
19256then :
19257  enableval=$enable_io;
19258fi
19259
19260
19261    # PCI?
19262    # Check whether --enable-pci was given.
19263if test ${enable_pci+y}
19264then :
19265  enableval=$enable_pci;
19266fi
19267
19268    # 32bits_pci_domain?
19269    # Check whether --enable-32bits-pci-domain was given.
19270if test ${enable_32bits_pci_domain+y}
19271then :
19272  enableval=$enable_32bits_pci_domain;
19273fi
19274
19275
19276    # OpenCL?
19277    # Check whether --enable-opencl was given.
19278if test ${enable_opencl+y}
19279then :
19280  enableval=$enable_opencl;
19281fi
19282
19283
19284    # CUDA?
19285    # Check whether --enable-cuda was given.
19286if test ${enable_cuda+y}
19287then :
19288  enableval=$enable_cuda;
19289fi
19290
19291
19292    # NVML?
19293    # Check whether --enable-nvml was given.
19294if test ${enable_nvml+y}
19295then :
19296  enableval=$enable_nvml;
19297fi
19298
19299
19300    # CUDA version (for using its pkg-config cuda-x.y.pc)
19301
19302# Check whether --with-cuda-version was given.
19303if test ${with_cuda_version+y}
19304then :
19305  withval=$with_cuda_version;
19306fi
19307
19308
19309    # CUDA install path (and NVML and OpenCL)
19310
19311# Check whether --with-cuda was given.
19312if test ${with_cuda+y}
19313then :
19314  withval=$with_cuda;
19315fi
19316
19317
19318    # RSMI?
19319    # Check whether --enable-rsmi was given.
19320if test ${enable_rsmi+y}
19321then :
19322  enableval=$enable_rsmi;
19323fi
19324
19325
19326    # LevelZero
19327    # Check whether --enable-levelzero was given.
19328if test ${enable_levelzero+y}
19329then :
19330  enableval=$enable_levelzero;
19331fi
19332
19333
19334    # GL/Display
19335    # Check whether --enable-gl was given.
19336if test ${enable_gl+y}
19337then :
19338  enableval=$enable_gl;
19339fi
19340
19341
19342    # LibUdev
19343    # Check whether --enable-libudev was given.
19344if test ${enable_libudev+y}
19345then :
19346  enableval=$enable_libudev;
19347fi
19348
19349
19350    # Plugins
19351    # Check whether --enable-plugins was given.
19352if test ${enable_plugins+y}
19353then :
19354  enableval=$enable_plugins;
19355fi
19356
19357
19358    # Look for dlopen
19359    # Not --disable-dlopen because $enable_dlopen is already used/set
19360    # Check whether --enable-plugin-dlopen was given.
19361if test ${enable_plugin_dlopen+y}
19362then :
19363  enableval=$enable_plugin_dlopen;
19364fi
19365
19366    # Look for ltdl
19367    # Not --disable-ltdl for consistency wrt dlopen above
19368    # Check whether --enable-plugin-ltdl was given.
19369if test ${enable_plugin_ltdl+y}
19370then :
19371  enableval=$enable_plugin_ltdl;
19372fi
19373
19374
19375
19376
19377# If debug mode, add -g
19378if test "$hwloc_debug" = "1"
19379then :
19380  CFLAGS="$CFLAGS -g"
19381fi
19382
19383# If the user didn't specifically ask for embedding mode, default to
19384# standalone mode
19385if test "$enable_embedded_mode" != "yes"
19386then :
19387  if test ! -d "$srcdir/doc"
19388then :
19389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The hwloc source tree looks incomplete for a standalone" >&5
19390printf "%s\n" "$as_me: WARNING: The hwloc source tree looks incomplete for a standalone" >&2;}
19391              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: build.  Perhaps this hwloc tree is intended for an embedded" >&5
19392printf "%s\n" "$as_me: WARNING: build.  Perhaps this hwloc tree is intended for an embedded" >&2;}
19393              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: build?  Try using the --enable-embedded-mode switch." >&5
19394printf "%s\n" "$as_me: WARNING: build?  Try using the --enable-embedded-mode switch." >&2;}
19395              as_fn_error $? "Cannot build standalone hwloc" "$LINENO" 5
19396else $as_nop
19397
19398    hwloc_mode=standalone
19399
19400fi
19401fi
19402
19403####################################################################
19404# Setup for the hwloc API
19405####################################################################
19406
19407
19408
19409# Setup the hwloc core
19410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19411printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19412if test ${ac_cv_c_undeclared_builtin_options+y}
19413then :
19414  printf %s "(cached) " >&6
19415else $as_nop
19416  ac_save_CFLAGS=$CFLAGS
19417   ac_cv_c_undeclared_builtin_options='cannot detect'
19418   for ac_arg in '' -fno-builtin; do
19419     CFLAGS="$ac_save_CFLAGS $ac_arg"
19420     # This test program should *not* compile successfully.
19421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422/* end confdefs.h.  */
19423
19424int
19425main (void)
19426{
19427(void) strchr;
19428  ;
19429  return 0;
19430}
19431_ACEOF
19432if ac_fn_c_try_compile "$LINENO"
19433then :
19434
19435else $as_nop
19436  # This test program should compile successfully.
19437        # No library function is consistently available on
19438        # freestanding implementations, so test against a dummy
19439        # declaration.  Include always-available headers on the
19440        # off chance that they somehow elicit warnings.
19441        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442/* end confdefs.h.  */
19443#include <float.h>
19444#include <limits.h>
19445#include <stdarg.h>
19446#include <stddef.h>
19447extern void ac_decl (int, char *);
19448
19449int
19450main (void)
19451{
19452(void) ac_decl (0, (char *) 0);
19453  (void) ac_decl;
19454
19455  ;
19456  return 0;
19457}
19458_ACEOF
19459if ac_fn_c_try_compile "$LINENO"
19460then :
19461  if test x"$ac_arg" = x
19462then :
19463  ac_cv_c_undeclared_builtin_options='none needed'
19464else $as_nop
19465  ac_cv_c_undeclared_builtin_options=$ac_arg
19466fi
19467          break
19468fi
19469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19470fi
19471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19472    done
19473    CFLAGS=$ac_save_CFLAGS
19474
19475fi
19476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19477printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19478  case $ac_cv_c_undeclared_builtin_options in #(
19479  'cannot detect') :
19480    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19481printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19482as_fn_error $? "cannot make $CC report undeclared builtins
19483See \`config.log' for more details" "$LINENO" 5; } ;; #(
19484  'none needed') :
19485    ac_c_undeclared_builtin_options='' ;; #(
19486  *) :
19487    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19488esac
19489
19490
19491
19492
19493if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19494	if test -n "$ac_tool_prefix"; then
19495  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19496set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19498printf %s "checking for $ac_word... " >&6; }
19499if test ${ac_cv_path_PKG_CONFIG+y}
19500then :
19501  printf %s "(cached) " >&6
19502else $as_nop
19503  case $PKG_CONFIG in
19504  [\\/]* | ?:[\\/]*)
19505  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19506  ;;
19507  *)
19508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19509for as_dir in $PATH
19510do
19511  IFS=$as_save_IFS
19512  case $as_dir in #(((
19513    '') as_dir=./ ;;
19514    */) ;;
19515    *) as_dir=$as_dir/ ;;
19516  esac
19517    for ac_exec_ext in '' $ac_executable_extensions; do
19518  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19519    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19521    break 2
19522  fi
19523done
19524  done
19525IFS=$as_save_IFS
19526
19527  ;;
19528esac
19529fi
19530PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19531if test -n "$PKG_CONFIG"; then
19532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19533printf "%s\n" "$PKG_CONFIG" >&6; }
19534else
19535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536printf "%s\n" "no" >&6; }
19537fi
19538
19539
19540fi
19541if test -z "$ac_cv_path_PKG_CONFIG"; then
19542  ac_pt_PKG_CONFIG=$PKG_CONFIG
19543  # Extract the first word of "pkg-config", so it can be a program name with args.
19544set dummy pkg-config; ac_word=$2
19545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19546printf %s "checking for $ac_word... " >&6; }
19547if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19548then :
19549  printf %s "(cached) " >&6
19550else $as_nop
19551  case $ac_pt_PKG_CONFIG in
19552  [\\/]* | ?:[\\/]*)
19553  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19554  ;;
19555  *)
19556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557for as_dir in $PATH
19558do
19559  IFS=$as_save_IFS
19560  case $as_dir in #(((
19561    '') as_dir=./ ;;
19562    */) ;;
19563    *) as_dir=$as_dir/ ;;
19564  esac
19565    for ac_exec_ext in '' $ac_executable_extensions; do
19566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19567    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19569    break 2
19570  fi
19571done
19572  done
19573IFS=$as_save_IFS
19574
19575  ;;
19576esac
19577fi
19578ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19579if test -n "$ac_pt_PKG_CONFIG"; then
19580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19581printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19582else
19583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19584printf "%s\n" "no" >&6; }
19585fi
19586
19587  if test "x$ac_pt_PKG_CONFIG" = x; then
19588    PKG_CONFIG=""
19589  else
19590    case $cross_compiling:$ac_tool_warned in
19591yes:)
19592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19594ac_tool_warned=yes ;;
19595esac
19596    PKG_CONFIG=$ac_pt_PKG_CONFIG
19597  fi
19598else
19599  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19600fi
19601
19602fi
19603if test -n "$PKG_CONFIG"; then
19604	HWLOC_pkg_min_version=0.9.0
19605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5
19606printf %s "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; }
19607	if $PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then
19608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19609printf "%s\n" "yes" >&6; }
19610	else
19611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612printf "%s\n" "no" >&6; }
19613		PKG_CONFIG=""
19614	fi
19615
19616fi
19617ac_ext=c
19618ac_cpp='$CPP $CPPFLAGS'
19619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19621ac_compiler_gnu=$ac_cv_c_compiler_gnu
19622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
19623printf %s "checking how to run the C preprocessor... " >&6; }
19624# On Suns, sometimes $CPP names a directory.
19625if test -n "$CPP" && test -d "$CPP"; then
19626  CPP=
19627fi
19628if test -z "$CPP"; then
19629  if test ${ac_cv_prog_CPP+y}
19630then :
19631  printf %s "(cached) " >&6
19632else $as_nop
19633      # Double quotes because $CC needs to be expanded
19634    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
19635    do
19636      ac_preproc_ok=false
19637for ac_c_preproc_warn_flag in '' yes
19638do
19639  # Use a header file that comes with gcc, so configuring glibc
19640  # with a fresh cross-compiler works.
19641  # On the NeXT, cc -E runs the code through the compiler's parser,
19642  # not just through cpp. "Syntax error" is here to catch this case.
19643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644/* end confdefs.h.  */
19645#include <limits.h>
19646		     Syntax error
19647_ACEOF
19648if ac_fn_c_try_cpp "$LINENO"
19649then :
19650
19651else $as_nop
19652  # Broken: fails on valid input.
19653continue
19654fi
19655rm -f conftest.err conftest.i conftest.$ac_ext
19656
19657  # OK, works on sane cases.  Now check whether nonexistent headers
19658  # can be detected and how.
19659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660/* end confdefs.h.  */
19661#include <ac_nonexistent.h>
19662_ACEOF
19663if ac_fn_c_try_cpp "$LINENO"
19664then :
19665  # Broken: success on invalid input.
19666continue
19667else $as_nop
19668  # Passes both tests.
19669ac_preproc_ok=:
19670break
19671fi
19672rm -f conftest.err conftest.i conftest.$ac_ext
19673
19674done
19675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19676rm -f conftest.i conftest.err conftest.$ac_ext
19677if $ac_preproc_ok
19678then :
19679  break
19680fi
19681
19682    done
19683    ac_cv_prog_CPP=$CPP
19684
19685fi
19686  CPP=$ac_cv_prog_CPP
19687else
19688  ac_cv_prog_CPP=$CPP
19689fi
19690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
19691printf "%s\n" "$CPP" >&6; }
19692ac_preproc_ok=false
19693for ac_c_preproc_warn_flag in '' yes
19694do
19695  # Use a header file that comes with gcc, so configuring glibc
19696  # with a fresh cross-compiler works.
19697  # On the NeXT, cc -E runs the code through the compiler's parser,
19698  # not just through cpp. "Syntax error" is here to catch this case.
19699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700/* end confdefs.h.  */
19701#include <limits.h>
19702		     Syntax error
19703_ACEOF
19704if ac_fn_c_try_cpp "$LINENO"
19705then :
19706
19707else $as_nop
19708  # Broken: fails on valid input.
19709continue
19710fi
19711rm -f conftest.err conftest.i conftest.$ac_ext
19712
19713  # OK, works on sane cases.  Now check whether nonexistent headers
19714  # can be detected and how.
19715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19716/* end confdefs.h.  */
19717#include <ac_nonexistent.h>
19718_ACEOF
19719if ac_fn_c_try_cpp "$LINENO"
19720then :
19721  # Broken: success on invalid input.
19722continue
19723else $as_nop
19724  # Passes both tests.
19725ac_preproc_ok=:
19726break
19727fi
19728rm -f conftest.err conftest.i conftest.$ac_ext
19729
19730done
19731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19732rm -f conftest.i conftest.err conftest.$ac_ext
19733if $ac_preproc_ok
19734then :
19735
19736else $as_nop
19737  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19738printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19739as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
19740See \`config.log' for more details" "$LINENO" 5; }
19741fi
19742
19743ac_ext=c
19744ac_cpp='$CPP $CPPFLAGS'
19745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19747ac_compiler_gnu=$ac_cv_c_compiler_gnu
19748
19749
19750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19751printf %s "checking for X... " >&6; }
19752
19753
19754# Check whether --with-x was given.
19755if test ${with_x+y}
19756then :
19757  withval=$with_x;
19758fi
19759
19760# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19761if test "x$with_x" = xno; then
19762  # The user explicitly disabled X.
19763  have_x=disabled
19764else
19765  case $x_includes,$x_libraries in #(
19766    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19767    *,NONE | NONE,*) if test ${ac_cv_have_x+y}
19768then :
19769  printf %s "(cached) " >&6
19770else $as_nop
19771  # One or both of the vars are not set, and there is no cached value.
19772ac_x_includes=no
19773ac_x_libraries=no
19774# Do we need to do anything special at all?
19775ac_save_LIBS=$LIBS
19776LIBS="-lX11 $LIBS"
19777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778/* end confdefs.h.  */
19779#include <X11/Xlib.h>
19780int
19781main (void)
19782{
19783XrmInitialize ()
19784  ;
19785  return 0;
19786}
19787_ACEOF
19788if ac_fn_c_try_link "$LINENO"
19789then :
19790  # We can compile and link X programs with no special options.
19791  ac_x_includes=
19792  ac_x_libraries=
19793fi
19794rm -f core conftest.err conftest.$ac_objext conftest.beam \
19795    conftest$ac_exeext conftest.$ac_ext
19796LIBS="$ac_save_LIBS"
19797# If that didn't work, only try xmkmf and file system searches
19798# for native compilation.
19799if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
19800then :
19801  rm -f -r conftest.dir
19802if mkdir conftest.dir; then
19803  cd conftest.dir
19804  cat >Imakefile <<'_ACEOF'
19805incroot:
19806	@echo incroot='${INCROOT}'
19807usrlibdir:
19808	@echo usrlibdir='${USRLIBDIR}'
19809libdir:
19810	@echo libdir='${LIBDIR}'
19811_ACEOF
19812  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19813    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19814    for ac_var in incroot usrlibdir libdir; do
19815      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19816    done
19817    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19818    for ac_extension in a so sl dylib la dll; do
19819      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19820	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19821	ac_im_usrlibdir=$ac_im_libdir; break
19822      fi
19823    done
19824    # Screen out bogus values from the imake configuration.  They are
19825    # bogus both because they are the default anyway, and because
19826    # using them would break gcc on systems where it needs fixed includes.
19827    case $ac_im_incroot in
19828	/usr/include) ac_x_includes= ;;
19829	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19830    esac
19831    case $ac_im_usrlibdir in
19832	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
19833	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19834    esac
19835  fi
19836  cd ..
19837  rm -f -r conftest.dir
19838fi
19839
19840  # Standard set of common directories for X headers.
19841# Check X11 before X11Rn because it is often a symlink to the current release.
19842ac_x_header_dirs='
19843/usr/X11/include
19844/usr/X11R7/include
19845/usr/X11R6/include
19846/usr/X11R5/include
19847/usr/X11R4/include
19848
19849/usr/include/X11
19850/usr/include/X11R7
19851/usr/include/X11R6
19852/usr/include/X11R5
19853/usr/include/X11R4
19854
19855/usr/local/X11/include
19856/usr/local/X11R7/include
19857/usr/local/X11R6/include
19858/usr/local/X11R5/include
19859/usr/local/X11R4/include
19860
19861/usr/local/include/X11
19862/usr/local/include/X11R7
19863/usr/local/include/X11R6
19864/usr/local/include/X11R5
19865/usr/local/include/X11R4
19866
19867/opt/X11/include
19868
19869/usr/X386/include
19870/usr/x386/include
19871/usr/XFree86/include/X11
19872
19873/usr/include
19874/usr/local/include
19875/usr/unsupported/include
19876/usr/athena/include
19877/usr/local/x11r5/include
19878/usr/lpp/Xamples/include
19879
19880/usr/openwin/include
19881/usr/openwin/share/include'
19882
19883if test "$ac_x_includes" = no; then
19884  # Guess where to find include files, by looking for Xlib.h.
19885  # First, try using that file with no special directory specified.
19886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19887/* end confdefs.h.  */
19888#include <X11/Xlib.h>
19889_ACEOF
19890if ac_fn_c_try_cpp "$LINENO"
19891then :
19892  # We can compile using X headers with no special include directory.
19893ac_x_includes=
19894else $as_nop
19895  for ac_dir in $ac_x_header_dirs; do
19896  if test -r "$ac_dir/X11/Xlib.h"; then
19897    ac_x_includes=$ac_dir
19898    break
19899  fi
19900done
19901fi
19902rm -f conftest.err conftest.i conftest.$ac_ext
19903fi # $ac_x_includes = no
19904
19905if test "$ac_x_libraries" = no; then
19906  # Check for the libraries.
19907  # See if we find them without any special options.
19908  # Don't add to $LIBS permanently.
19909  ac_save_LIBS=$LIBS
19910  LIBS="-lX11 $LIBS"
19911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912/* end confdefs.h.  */
19913#include <X11/Xlib.h>
19914int
19915main (void)
19916{
19917XrmInitialize ()
19918  ;
19919  return 0;
19920}
19921_ACEOF
19922if ac_fn_c_try_link "$LINENO"
19923then :
19924  LIBS=$ac_save_LIBS
19925# We can link X programs with no special library path.
19926ac_x_libraries=
19927else $as_nop
19928  LIBS=$ac_save_LIBS
19929for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19930do
19931  # Don't even attempt the hair of trying to link an X program!
19932  for ac_extension in a so sl dylib la dll; do
19933    if test -r "$ac_dir/libX11.$ac_extension"; then
19934      ac_x_libraries=$ac_dir
19935      break 2
19936    fi
19937  done
19938done
19939fi
19940rm -f core conftest.err conftest.$ac_objext conftest.beam \
19941    conftest$ac_exeext conftest.$ac_ext
19942fi # $ac_x_libraries = no
19943
19944fi
19945# Record the results.
19946case $ac_x_includes,$ac_x_libraries in #(
19947  no,* | *,no | *\'*) :
19948    # Didn't find X, or a directory has "'" in its name.
19949    ac_cv_have_x="have_x=no" ;; #(
19950  *) :
19951    # Record where we found X for the cache.
19952    ac_cv_have_x="have_x=yes\
19953	ac_x_includes='$ac_x_includes'\
19954	ac_x_libraries='$ac_x_libraries'" ;;
19955esac
19956fi
19957;; #(
19958    *) have_x=yes;;
19959  esac
19960  eval "$ac_cv_have_x"
19961fi # $with_x != no
19962
19963if test "$have_x" != yes; then
19964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19965printf "%s\n" "$have_x" >&6; }
19966  no_x=yes
19967else
19968  # If each of the values was on the command line, it overrides each guess.
19969  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19970  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19971  # Update the cache value to reflect the command line values.
19972  ac_cv_have_x="have_x=yes\
19973	ac_x_includes='$x_includes'\
19974	ac_x_libraries='$x_libraries'"
19975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19976printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
19977fi
19978
19979
19980
19981
19982
19983
19984    if test "x1" != "x"
19985then :
19986  cat <<EOF
19987
19988###
19989### Configuring hwloc core
19990###
19991EOF
19992fi
19993
19994    # If no prefix was defined, set a good value
19995
19996
19997    # Unless previously set to "standalone" mode, default to embedded
19998    # mode
19999    if test "$hwloc_mode" = ""
20000then :
20001  hwloc_mode=embedded
20002fi
20003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking hwloc building mode" >&5
20004printf %s "checking hwloc building mode... " >&6; }
20005    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5
20006printf "%s\n" "$hwloc_mode" >&6; }
20007
20008    # Get hwloc's absolute top builddir (which may not be the same as
20009    # the real $top_builddir, because we may be building in embedded
20010    # mode).
20011    HWLOC_startdir=`pwd`
20012    if test x"" != "x" -a ! -d ""; then
20013        mkdir -p ""
20014    fi
20015    if test x"" != "x"; then
20016        cd ""
20017    fi
20018    HWLOC_top_builddir=`pwd`
20019
20020
20021    # Get hwloc's absolute top srcdir (which may not be the same as
20022    # the real $top_srcdir, because we may be building in embedded
20023    # mode).  First, go back to the startdir incase the $srcdir is
20024    # relative.
20025
20026    cd "$HWLOC_startdir"
20027    cd "$srcdir"/
20028    HWLOC_top_srcdir="`pwd`"
20029
20030
20031    # Go back to where we started
20032    cd "$HWLOC_startdir"
20033
20034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5
20035printf "%s\n" "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;}
20036    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5
20037printf "%s\n" "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;}
20038    if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then
20039        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
20040printf "%s\n" "$as_me: Detected VPATH build" >&6;}
20041    fi
20042
20043    # Get the version of hwloc that we are installing
20044    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hwloc version" >&5
20045printf %s "checking for hwloc version... " >&6; }
20046    HWLOC_VERSION=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION"`
20047    if test "$?" != "0"; then
20048        as_fn_error $? "Cannot continue" "$LINENO" 5
20049    fi
20050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HWLOC_VERSION" >&5
20051printf "%s\n" "$HWLOC_VERSION" >&6; }
20052
20053
20054printf "%s\n" "#define HWLOC_VERSION \"$HWLOC_VERSION\"" >>confdefs.h
20055
20056
20057    HWLOC_VERSION_MAJOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --major`
20058
20059printf "%s\n" "#define HWLOC_VERSION_MAJOR $HWLOC_VERSION_MAJOR" >>confdefs.h
20060
20061    HWLOC_VERSION_MINOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --minor`
20062
20063printf "%s\n" "#define HWLOC_VERSION_MINOR $HWLOC_VERSION_MINOR" >>confdefs.h
20064
20065    HWLOC_VERSION_RELEASE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release`
20066
20067printf "%s\n" "#define HWLOC_VERSION_RELEASE $HWLOC_VERSION_RELEASE" >>confdefs.h
20068
20069    HWLOC_VERSION_GREEK=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --greek`
20070
20071printf "%s\n" "#define HWLOC_VERSION_GREEK \"$HWLOC_VERSION_GREEK\"" >>confdefs.h
20072
20073
20074    HWLOC_RELEASE_DATE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release-date`
20075
20076
20077    # Debug mode?
20078    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5
20079printf %s "checking if want hwloc maintainer support... " >&6; }
20080    hwloc_debug=
20081
20082    # Unconditionally disable debug mode in embedded mode; if someone
20083    # asks, we can add a configure-time option for it.  Disable it
20084    # now, however, because --enable-debug is not even added as an
20085    # option when configuring in embedded mode, and we wouldn't want
20086    # to hijack the enclosing application's --enable-debug configure
20087    # switch.
20088    if test "$hwloc_mode" = "embedded"
20089then :
20090  hwloc_debug=0
20091           hwloc_debug_msg="disabled (embedded mode)"
20092fi
20093    if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"
20094then :
20095  hwloc_debug=1
20096           hwloc_debug_msg="enabled"
20097fi
20098    if test "$hwloc_debug" = ""
20099then :
20100  hwloc_debug=0
20101           hwloc_debug_msg="disabled"
20102fi
20103    # Grr; we use #ifndef for HWLOC_DEBUG!  :-(
20104
20105    if test "$hwloc_debug" = "1"
20106then :
20107  printf "%s\n" "#define HWLOC_DEBUG 1" >>confdefs.h
20108
20109fi
20110    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5
20111printf "%s\n" "$hwloc_debug_msg" >&6; }
20112
20113    # We need to set a path for header, etc files depending on whether
20114    # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED.
20115
20116    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5
20117printf %s "checking for hwloc directory prefix... " >&6; }
20118    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
20119printf "%s\n" "(none)" >&6; }
20120
20121    # Note that private/config.h *MUST* be listed first so that it
20122    # becomes the "main" config header file.  Any AC-CONFIG-HEADERS
20123    # after that (hwloc/config.h) will only have selective #defines
20124    # replaced, not the entire file.
20125    ac_config_headers="$ac_config_headers include/private/autogen/config.h"
20126
20127    ac_config_headers="$ac_config_headers include/hwloc/autogen/config.h"
20128
20129
20130    # What prefix are we using?
20131    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5
20132printf %s "checking for hwloc symbol prefix... " >&6; }
20133    if test "$hwloc_symbol_prefix_value" = ""
20134then :
20135  if test "$with_hwloc_symbol_prefix" = ""
20136then :
20137  hwloc_symbol_prefix_value=hwloc_
20138else $as_nop
20139  hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix
20140fi
20141fi
20142
20143printf "%s\n" "#define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value" >>confdefs.h
20144
20145    # Ensure to [] escape the whole next line so that we can get the
20146    # proper tr tokens
20147    hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`"
20148
20149printf "%s\n" "#define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps" >>confdefs.h
20150
20151    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5
20152printf "%s\n" "$hwloc_symbol_prefix_value" >&6; }
20153
20154    # Give an easy #define to know if we need to transform all the
20155    # hwloc names
20156
20157    if test "$hwloc_symbol_prefix_value" = "hwloc_"
20158then :
20159  printf "%s\n" "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h
20160
20161else $as_nop
20162  printf "%s\n" "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h
20163
20164fi
20165
20166    # hwloc 2.0+ requires a C99 compliant compiler
20167    # AC_PROG_CC_C99 obsolete, detected inside AC_PROG_CC, since autoconf 2.70
20168
20169    # The C99 result of AC_PROG_CC>=2.70 or AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
20170    if test "x$ac_cv_prog_cc_c99" = xno ; then
20171        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hwloc requires a C99 compiler" >&5
20172printf "%s\n" "$as_me: WARNING: hwloc requires a C99 compiler" >&2;}
20173        as_fn_error $? "Aborting." "$LINENO" 5
20174    fi
20175
20176    # GCC specifics.
20177
20178
20179
20180    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5
20181printf %s "checking for the C compiler vendor... " >&6; }
20182if test ${hwloc_cv_c_compiler_vendor+y}
20183then :
20184  printf %s "(cached) " >&6
20185else $as_nop
20186  ac_ext=c
20187ac_cpp='$CPP $CPPFLAGS'
20188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190ac_compiler_gnu=$ac_cv_c_compiler_gnu
20191
20192
20193    hwloc_check_compiler_vendor_result="unknown"
20194
20195    # GNU is probably the most common, so check that one as soon as
20196    # possible. Intel and Android pretend to be GNU, so need to
20197    # check Intel and Android before checking for GNU.
20198
20199    # Android
20200    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20201then :
20202
20203    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204/* end confdefs.h.  */
20205
20206#ifndef __ANDROID__
20207#error "symbol __ANDROID__ not defined"
20208choke me
20209#endif
20210_ACEOF
20211if ac_fn_c_try_compile "$LINENO"
20212then :
20213  hwloc_check_compiler_vendor_result="android"
20214fi
20215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20216fi
20217
20218    # Intel
20219    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20220then :
20221
20222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223/* end confdefs.h.  */
20224
20225#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
20226#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
20227choke me
20228#endif
20229_ACEOF
20230if ac_fn_c_try_compile "$LINENO"
20231then :
20232  hwloc_check_compiler_vendor_result="intel"
20233fi
20234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20235fi
20236
20237    # Portland Group
20238    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20239then :
20240
20241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242/* end confdefs.h.  */
20243
20244#ifndef __PGI
20245#error "symbol __PGI not defined"
20246choke me
20247#endif
20248_ACEOF
20249if ac_fn_c_try_compile "$LINENO"
20250then :
20251  hwloc_check_compiler_vendor_result="portland group"
20252fi
20253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20254fi
20255
20256    # Borland Turbo C
20257    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20258then :
20259
20260    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261/* end confdefs.h.  */
20262
20263#ifndef __TURBOC__
20264#error "symbol __TURBOC__ not defined"
20265choke me
20266#endif
20267_ACEOF
20268if ac_fn_c_try_compile "$LINENO"
20269then :
20270  hwloc_check_compiler_vendor_result="borland"
20271fi
20272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20273fi
20274
20275    # Borland C++
20276    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20277then :
20278
20279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280/* end confdefs.h.  */
20281
20282#ifndef __BORLANDC__
20283#error "symbol __BORLANDC__ not defined"
20284choke me
20285#endif
20286_ACEOF
20287if ac_fn_c_try_compile "$LINENO"
20288then :
20289  hwloc_check_compiler_vendor_result="borland"
20290fi
20291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20292fi
20293
20294    # Comeau C++
20295    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20296then :
20297
20298    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20299/* end confdefs.h.  */
20300
20301#ifndef __COMO__
20302#error "symbol __COMO__ not defined"
20303choke me
20304#endif
20305_ACEOF
20306if ac_fn_c_try_compile "$LINENO"
20307then :
20308  hwloc_check_compiler_vendor_result="comeau"
20309fi
20310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20311fi
20312
20313    # Compaq C/C++
20314    # OSF part actually not needed anymore but doesn't hurt
20315    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20316then :
20317
20318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319/* end confdefs.h.  */
20320
20321#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
20322#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
20323choke me
20324#endif
20325_ACEOF
20326if ac_fn_c_try_compile "$LINENO"
20327then :
20328  hwloc_check_compiler_vendor_result="compaq"
20329else $as_nop
20330
20331    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20332/* end confdefs.h.  */
20333
20334#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
20335#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
20336choke me
20337#endif
20338_ACEOF
20339if ac_fn_c_try_compile "$LINENO"
20340then :
20341  hwloc_check_compiler_vendor_result="compaq"
20342else $as_nop
20343
20344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345/* end confdefs.h.  */
20346
20347#ifndef __DECCXX
20348#error "symbol __DECCXX not defined"
20349choke me
20350#endif
20351_ACEOF
20352if ac_fn_c_try_compile "$LINENO"
20353then :
20354  hwloc_check_compiler_vendor_result="compaq"
20355fi
20356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20357fi
20358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20359fi
20360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20361fi
20362
20363    # Cray C/C++
20364    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20365then :
20366
20367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368/* end confdefs.h.  */
20369
20370#ifndef _CRAYC
20371#error "symbol _CRAYC not defined"
20372choke me
20373#endif
20374_ACEOF
20375if ac_fn_c_try_compile "$LINENO"
20376then :
20377  hwloc_check_compiler_vendor_result="cray"
20378fi
20379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20380fi
20381
20382    # Diab C/C++
20383    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20384then :
20385
20386    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387/* end confdefs.h.  */
20388
20389#ifndef __DCC__
20390#error "symbol __DCC__ not defined"
20391choke me
20392#endif
20393_ACEOF
20394if ac_fn_c_try_compile "$LINENO"
20395then :
20396  hwloc_check_compiler_vendor_result="diab"
20397fi
20398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20399fi
20400
20401    # Digital Mars
20402    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20403then :
20404
20405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406/* end confdefs.h.  */
20407
20408#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
20409#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
20410choke me
20411#endif
20412_ACEOF
20413if ac_fn_c_try_compile "$LINENO"
20414then :
20415  hwloc_check_compiler_vendor_result="digital mars"
20416fi
20417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20418fi
20419
20420    # HP ANSI C / aC++
20421    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20422then :
20423
20424    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425/* end confdefs.h.  */
20426
20427#if !( defined(__HP_cc) || defined(__HP_aCC) )
20428#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
20429choke me
20430#endif
20431_ACEOF
20432if ac_fn_c_try_compile "$LINENO"
20433then :
20434  hwloc_check_compiler_vendor_result="hp"
20435fi
20436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20437fi
20438
20439    # IBM XL C/C++
20440    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20441then :
20442
20443    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444/* end confdefs.h.  */
20445
20446#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) )
20447#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) not met"
20448choke me
20449#endif
20450_ACEOF
20451if ac_fn_c_try_compile "$LINENO"
20452then :
20453  hwloc_check_compiler_vendor_result="ibm"
20454else $as_nop
20455
20456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457/* end confdefs.h.  */
20458
20459#if !( defined(_AIX) && !defined(__GNUC__) )
20460#error "condition defined(_AIX) && !defined(__GNUC__) not met"
20461choke me
20462#endif
20463_ACEOF
20464if ac_fn_c_try_compile "$LINENO"
20465then :
20466  hwloc_check_compiler_vendor_result="ibm"
20467fi
20468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20469fi
20470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20471fi
20472
20473    # KAI C++ (rest in peace)
20474    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20475then :
20476
20477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478/* end confdefs.h.  */
20479
20480#ifndef __KCC
20481#error "symbol __KCC not defined"
20482choke me
20483#endif
20484_ACEOF
20485if ac_fn_c_try_compile "$LINENO"
20486then :
20487  hwloc_check_compiler_vendor_result="kai"
20488fi
20489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20490fi
20491
20492    # LCC
20493    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20494then :
20495
20496    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497/* end confdefs.h.  */
20498
20499#ifndef __LCC__
20500#error "symbol __LCC__ not defined"
20501choke me
20502#endif
20503_ACEOF
20504if ac_fn_c_try_compile "$LINENO"
20505then :
20506  hwloc_check_compiler_vendor_result="lcc"
20507fi
20508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20509fi
20510
20511    # MetaWare High C/C++
20512    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20513then :
20514
20515    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20516/* end confdefs.h.  */
20517
20518#ifndef __HIGHC__
20519#error "symbol __HIGHC__ not defined"
20520choke me
20521#endif
20522_ACEOF
20523if ac_fn_c_try_compile "$LINENO"
20524then :
20525  hwloc_check_compiler_vendor_result="metaware high"
20526fi
20527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20528fi
20529
20530    # Metrowerks Codewarrior
20531    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20532then :
20533
20534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20535/* end confdefs.h.  */
20536
20537#ifndef __MWERKS__
20538#error "symbol __MWERKS__ not defined"
20539choke me
20540#endif
20541_ACEOF
20542if ac_fn_c_try_compile "$LINENO"
20543then :
20544  hwloc_check_compiler_vendor_result="metrowerks"
20545fi
20546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20547fi
20548
20549    # MIPSpro (SGI)
20550    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20551then :
20552
20553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554/* end confdefs.h.  */
20555
20556#if !( defined(sgi) || defined(__sgi) )
20557#error "condition defined(sgi) || defined(__sgi) not met"
20558choke me
20559#endif
20560_ACEOF
20561if ac_fn_c_try_compile "$LINENO"
20562then :
20563  hwloc_check_compiler_vendor_result="sgi"
20564fi
20565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20566fi
20567
20568    # MPW C++
20569    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20570then :
20571
20572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573/* end confdefs.h.  */
20574
20575#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
20576#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
20577choke me
20578#endif
20579_ACEOF
20580if ac_fn_c_try_compile "$LINENO"
20581then :
20582  hwloc_check_compiler_vendor_result="mpw"
20583fi
20584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20585fi
20586
20587    # Microsoft
20588    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20589then :
20590  # Always use C compiler when checking for Microsoft, as
20591           # Visual C++ doesn't recognize .cc as a C++ file.
20592           ac_ext=c
20593ac_cpp='$CPP $CPPFLAGS'
20594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597
20598
20599    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600/* end confdefs.h.  */
20601
20602#if !( defined(_MSC_VER) || defined(__MSC_VER) )
20603#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
20604choke me
20605#endif
20606_ACEOF
20607if ac_fn_c_try_compile "$LINENO"
20608then :
20609  hwloc_check_compiler_vendor_result="microsoft"
20610fi
20611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20612           ac_ext=c
20613ac_cpp='$CPP $CPPFLAGS'
20614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20616ac_compiler_gnu=$ac_cv_c_compiler_gnu
20617
20618fi
20619
20620    # Norcroft C
20621    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20622then :
20623
20624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625/* end confdefs.h.  */
20626
20627#ifndef __CC_NORCROFT
20628#error "symbol __CC_NORCROFT not defined"
20629choke me
20630#endif
20631_ACEOF
20632if ac_fn_c_try_compile "$LINENO"
20633then :
20634  hwloc_check_compiler_vendor_result="norcroft"
20635fi
20636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20637fi
20638
20639    # Pelles C
20640    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20641then :
20642
20643    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20644/* end confdefs.h.  */
20645
20646#ifndef __POCC__
20647#error "symbol __POCC__ not defined"
20648choke me
20649#endif
20650_ACEOF
20651if ac_fn_c_try_compile "$LINENO"
20652then :
20653  hwloc_check_compiler_vendor_result="pelles"
20654fi
20655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20656fi
20657
20658    # SAS/C
20659    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20660then :
20661
20662    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663/* end confdefs.h.  */
20664
20665#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
20666#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
20667choke me
20668#endif
20669_ACEOF
20670if ac_fn_c_try_compile "$LINENO"
20671then :
20672  hwloc_check_compiler_vendor_result="sas"
20673fi
20674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20675fi
20676
20677    # Sun Workshop C/C++
20678    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20679then :
20680
20681    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682/* end confdefs.h.  */
20683
20684#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
20685#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
20686choke me
20687#endif
20688_ACEOF
20689if ac_fn_c_try_compile "$LINENO"
20690then :
20691  hwloc_check_compiler_vendor_result="sun"
20692fi
20693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20694fi
20695
20696    # TenDRA C/C++
20697    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20698then :
20699
20700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701/* end confdefs.h.  */
20702
20703#ifndef __TenDRA__
20704#error "symbol __TenDRA__ not defined"
20705choke me
20706#endif
20707_ACEOF
20708if ac_fn_c_try_compile "$LINENO"
20709then :
20710  hwloc_check_compiler_vendor_result="tendra"
20711fi
20712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20713fi
20714
20715    # Tiny C
20716    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20717then :
20718
20719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720/* end confdefs.h.  */
20721
20722#ifndef __TINYC__
20723#error "symbol __TINYC__ not defined"
20724choke me
20725#endif
20726_ACEOF
20727if ac_fn_c_try_compile "$LINENO"
20728then :
20729  hwloc_check_compiler_vendor_result="tiny"
20730fi
20731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20732fi
20733
20734    # USL C
20735    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20736then :
20737
20738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739/* end confdefs.h.  */
20740
20741#ifndef __USLC__
20742#error "symbol __USLC__ not defined"
20743choke me
20744#endif
20745_ACEOF
20746if ac_fn_c_try_compile "$LINENO"
20747then :
20748  hwloc_check_compiler_vendor_result="usl"
20749fi
20750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20751fi
20752
20753    # Watcom C++
20754    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20755then :
20756
20757    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20758/* end confdefs.h.  */
20759
20760#ifndef __WATCOMC__
20761#error "symbol __WATCOMC__ not defined"
20762choke me
20763#endif
20764_ACEOF
20765if ac_fn_c_try_compile "$LINENO"
20766then :
20767  hwloc_check_compiler_vendor_result="watcom"
20768fi
20769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20770fi
20771
20772    # GNU
20773    if test "$hwloc_check_compiler_vendor_result" = "unknown"
20774then :
20775
20776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777/* end confdefs.h.  */
20778
20779#ifndef __GNUC__
20780#error "symbol __GNUC__ not defined"
20781choke me
20782#endif
20783_ACEOF
20784if ac_fn_c_try_compile "$LINENO"
20785then :
20786  hwloc_check_compiler_vendor_result="gnu"
20787fi
20788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20789fi
20790
20791    hwloc_cv_c_compiler_vendor="$hwloc_check_compiler_vendor_result"
20792    unset hwloc_check_compiler_vendor_result
20793
20794         ac_ext=c
20795ac_cpp='$CPP $CPPFLAGS'
20796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20798ac_compiler_gnu=$ac_cv_c_compiler_gnu
20799
20800fi
20801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_cv_c_compiler_vendor" >&5
20802printf "%s\n" "$hwloc_cv_c_compiler_vendor" >&6; }
20803
20804    hwloc_c_vendor="$hwloc_cv_c_compiler_vendor"
20805
20806    if test "$hwloc_c_vendor" = "gnu"; then
20807        HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef"
20808        HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align"
20809    fi
20810
20811    # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc.
20812
20813
20814printf "%s\n" "#define _HPUX_SOURCE 1" >>confdefs.h
20815
20816
20817    ac_ext=c
20818ac_cpp='$CPP $CPPFLAGS'
20819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823
20824    # Check to see if we're producing a 32 or 64 bit executable by
20825    # checking the sizeof void*.  Note that AC CHECK_SIZEOF even works
20826    # when cross compiling (!), according to the AC 2.64 docs.  This
20827    # check is needed because on some systems, you can instruct the
20828    # compiler to specifically build 32 or 64 bit executables -- even
20829    # though the $target may indicate something different.
20830    # The cast to long int works around a bug in the HP C Compiler
20831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20833# This bug is HP SR number 8606223364.
20834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20835printf %s "checking size of void *... " >&6; }
20836if test ${ac_cv_sizeof_void_p+y}
20837then :
20838  printf %s "(cached) " >&6
20839else $as_nop
20840  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
20841then :
20842
20843else $as_nop
20844  if test "$ac_cv_type_void_p" = yes; then
20845     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20846printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20847as_fn_error 77 "cannot compute sizeof (void *)
20848See \`config.log' for more details" "$LINENO" 5; }
20849   else
20850     ac_cv_sizeof_void_p=0
20851   fi
20852fi
20853
20854fi
20855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20856printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
20857
20858
20859
20860printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
20861
20862
20863
20864    #
20865    # List of components to be built, either statically or dynamically.
20866    # To be enlarged below.
20867    #
20868    hwloc_components="noos xml synthetic xml_nolibxml"
20869
20870    #
20871    # Check OS support
20872    #
20873    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5
20874printf %s "checking which OS support to include... " >&6; }
20875    case ${target} in
20876      powerpc64-bgq-linux*) # must be before Linux
20877
20878printf "%s\n" "#define HWLOC_BGQ_SYS 1" >>confdefs.h
20879
20880	hwloc_bgq=yes
20881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bgq" >&5
20882printf "%s\n" "bgq" >&6; }
20883	hwloc_components="$hwloc_components bgq"
20884	;;
20885      *-*-linux*)
20886
20887printf "%s\n" "#define HWLOC_LINUX_SYS 1" >>confdefs.h
20888
20889        hwloc_linux=yes
20890        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
20891printf "%s\n" "Linux" >&6; }
20892        hwloc_components="$hwloc_components linux"
20893        if test "x$enable_io" != xno; then
20894
20895printf "%s\n" "#define HWLOC_HAVE_LINUXIO 1" >>confdefs.h
20896
20897	  hwloc_linuxio_happy=yes
20898	  if test x$enable_pci != xno; then
20899
20900printf "%s\n" "#define HWLOC_HAVE_LINUXPCI 1" >>confdefs.h
20901
20902	    hwloc_linuxpci_happy=yes
20903	  fi
20904	fi
20905        ;;
20906      *-*-irix*)
20907
20908printf "%s\n" "#define HWLOC_IRIX_SYS 1" >>confdefs.h
20909
20910        hwloc_irix=yes
20911        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
20912printf "%s\n" "IRIX" >&6; }
20913        # no irix component yet
20914        ;;
20915      *-*-darwin*)
20916
20917printf "%s\n" "#define HWLOC_DARWIN_SYS 1" >>confdefs.h
20918
20919        hwloc_darwin=yes
20920        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
20921printf "%s\n" "Darwin" >&6; }
20922        hwloc_components="$hwloc_components darwin"
20923        ;;
20924      *-*-solaris*)
20925
20926printf "%s\n" "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h
20927
20928        hwloc_solaris=yes
20929        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
20930printf "%s\n" "Solaris" >&6; }
20931        hwloc_components="$hwloc_components solaris"
20932        ;;
20933      *-*-aix*)
20934
20935printf "%s\n" "#define HWLOC_AIX_SYS 1" >>confdefs.h
20936
20937        hwloc_aix=yes
20938        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
20939printf "%s\n" "AIX" >&6; }
20940        hwloc_components="$hwloc_components aix"
20941        ;;
20942      *-*-hpux*)
20943
20944printf "%s\n" "#define HWLOC_HPUX_SYS 1" >>confdefs.h
20945
20946        hwloc_hpux=yes
20947        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5
20948printf "%s\n" "HP-UX" >&6; }
20949        hwloc_components="$hwloc_components hpux"
20950        ;;
20951      *-*-mingw*|*-*-cygwin*)
20952
20953printf "%s\n" "#define HWLOC_WIN_SYS 1" >>confdefs.h
20954
20955        hwloc_windows=yes
20956        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
20957printf "%s\n" "Windows" >&6; }
20958        hwloc_components="$hwloc_components windows"
20959        ;;
20960      *-*-*dragonfly*)
20961
20962$as_echo "#define HWLOC_DRAGONFLY_SYS 1" >>confdefs.h
20963
20964        hwloc_dragonfly=yes
20965        { $as_echo "$as_me:${as_lineno-$LINENO}: result: DragonFly" >&5
20966$as_echo "DragonFly" >&6; }
20967        hwloc_components="$hwloc_components dragonfly"
20968        ;;
20969      *-*-*freebsd*)
20970
20971printf "%s\n" "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h
20972
20973        hwloc_freebsd=yes
20974        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
20975printf "%s\n" "FreeBSD" >&6; }
20976        hwloc_components="$hwloc_components freebsd"
20977        ;;
20978      *-*-*netbsd*)
20979
20980printf "%s\n" "#define HWLOC_NETBSD_SYS 1" >>confdefs.h
20981
20982        hwloc_netbsd=yes
20983        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5
20984printf "%s\n" "NetBSD" >&6; }
20985        hwloc_components="$hwloc_components netbsd"
20986        ;;
20987      *)
20988        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5
20989printf "%s\n" "Unsupported! ($target)" >&6; }
20990
20991printf "%s\n" "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h
20992
20993        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
20994printf "%s\n" "$as_me: WARNING: ***********************************************************" >&2;}
20995        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5
20996printf "%s\n" "$as_me: WARNING: *** hwloc does not support this system." >&2;}
20997        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5
20998printf "%s\n" "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;}
20999        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&5
21000printf "%s\n" "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&2;}
21001        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** and binding will not be supported." >&5
21002printf "%s\n" "$as_me: WARNING: *** and binding will not be supported." >&2;}
21003        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5
21004printf "%s\n" "$as_me: WARNING: *** You have been warned." >&2;}
21005        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5
21006printf "%s\n" "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;}
21007        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
21008printf "%s\n" "$as_me: WARNING: ***********************************************************" >&2;}
21009        sleep 10
21010        ;;
21011    esac
21012
21013    #
21014    # Check CPU support
21015    #
21016    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5
21017printf %s "checking which CPU support to include... " >&6; }
21018    case ${target} in
21019      i*86-*-*|x86_64-*-*|amd64-*-*)
21020        case ${ac_cv_sizeof_void_p} in
21021          4)
21022
21023printf "%s\n" "#define HWLOC_X86_32_ARCH 1" >>confdefs.h
21024
21025            hwloc_x86_32=yes
21026	    HWLOC_MS_LIB_ARCH=X86
21027            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5
21028printf "%s\n" "x86_32" >&6; }
21029            ;;
21030          8)
21031
21032printf "%s\n" "#define HWLOC_X86_64_ARCH 1" >>confdefs.h
21033
21034            hwloc_x86_64=yes
21035	    HWLOC_MS_LIB_ARCH=X64
21036            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
21037printf "%s\n" "x86_64" >&6; }
21038            ;;
21039          *)
21040
21041printf "%s\n" "#define HWLOC_X86_64_ARCH 1" >>confdefs.h
21042
21043            hwloc_x86_64=yes
21044	    HWLOC_MS_LIB_ARCH=X64
21045            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5
21046printf "%s\n" "unknown -- assuming x86_64" >&6; }
21047            ;;
21048        esac
21049        ;;
21050      *)
21051        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
21052printf "%s\n" "unknown" >&6; }
21053        ;;
21054    esac
21055
21056
21057    # The cast to long int works around a bug in the HP C Compiler
21058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21060# This bug is HP SR number 8606223364.
21061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21062printf %s "checking size of unsigned long... " >&6; }
21063if test ${ac_cv_sizeof_unsigned_long+y}
21064then :
21065  printf %s "(cached) " >&6
21066else $as_nop
21067  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
21068then :
21069
21070else $as_nop
21071  if test "$ac_cv_type_unsigned_long" = yes; then
21072     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21073printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21074as_fn_error 77 "cannot compute sizeof (unsigned long)
21075See \`config.log' for more details" "$LINENO" 5; }
21076   else
21077     ac_cv_sizeof_unsigned_long=0
21078   fi
21079fi
21080
21081fi
21082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21083printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
21084
21085
21086
21087printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
21088
21089
21090
21091printf "%s\n" "#define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
21092
21093    # The cast to long int works around a bug in the HP C Compiler
21094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21096# This bug is HP SR number 8606223364.
21097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21098printf %s "checking size of unsigned int... " >&6; }
21099if test ${ac_cv_sizeof_unsigned_int+y}
21100then :
21101  printf %s "(cached) " >&6
21102else $as_nop
21103  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"
21104then :
21105
21106else $as_nop
21107  if test "$ac_cv_type_unsigned_int" = yes; then
21108     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21110as_fn_error 77 "cannot compute sizeof (unsigned int)
21111See \`config.log' for more details" "$LINENO" 5; }
21112   else
21113     ac_cv_sizeof_unsigned_int=0
21114   fi
21115fi
21116
21117fi
21118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21119printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
21120
21121
21122
21123printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
21124
21125
21126
21127printf "%s\n" "#define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
21128
21129
21130    #
21131    # Check for compiler attributes and visibility
21132    #
21133
21134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
21135printf %s "checking for __attribute__... " >&6; }
21136
21137  if test ${hwloc_cv___attribute__+y}
21138then :
21139  printf %s "(cached) " >&6
21140else $as_nop
21141
21142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21143/* end confdefs.h.  */
21144
21145	 #include <stdlib.h>
21146
21147int
21148main (void)
21149{
21150
21151         /* Check for the longest available __attribute__ (since gcc-2.3) */
21152         struct foo {
21153           char a;
21154           int x2 __attribute__ ((__packed__));
21155         };
21156
21157  ;
21158  return 0;
21159}
21160_ACEOF
21161if ac_fn_c_try_compile "$LINENO"
21162then :
21163
21164else $as_nop
21165  hwloc_cv___attribute__=1
21166fi
21167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21168
21169    if test "$hwloc_cv___attribute__" = "1" ; then
21170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21171/* end confdefs.h.  */
21172
21173	     #include <stdlib.h>
21174
21175int
21176main (void)
21177{
21178
21179             /* Check for the longest available __attribute__ (since gcc-2.3) */
21180             struct foo {
21181               char a;
21182               int x2 __attribute__ ((__packed__));
21183              };
21184
21185  ;
21186  return 0;
21187}
21188_ACEOF
21189if ac_fn_c_try_compile "$LINENO"
21190then :
21191
21192else $as_nop
21193  hwloc_cv___attribute__=1
21194fi
21195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21196    fi
21197
21198fi
21199
21200
21201printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__" >>confdefs.h
21202
21203
21204#
21205# Now that we know the compiler support __attribute__ let's check which kind of
21206# attributed are supported.
21207#
21208  if test "$hwloc_cv___attribute__" = "0" ; then
21209    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21210printf "%s\n" "no" >&6; }
21211    hwloc_cv___attribute__aligned=0
21212    hwloc_cv___attribute__always_inline=0
21213    hwloc_cv___attribute__cold=0
21214    hwloc_cv___attribute__const=0
21215    hwloc_cv___attribute__deprecated=0
21216    hwloc_cv___attribute__constructor=0
21217    hwloc_cv___attribute__format=0
21218    hwloc_cv___attribute__hot=0
21219    hwloc_cv___attribute__malloc=0
21220    hwloc_cv___attribute__may_alias=0
21221    hwloc_cv___attribute__no_instrument_function=0
21222    hwloc_cv___attribute__nonnull=0
21223    hwloc_cv___attribute__noreturn=0
21224    hwloc_cv___attribute__packed=0
21225    hwloc_cv___attribute__pure=0
21226    hwloc_cv___attribute__sentinel=0
21227    hwloc_cv___attribute__unused=0
21228    hwloc_cv___attribute__warn_unused_result=0
21229    hwloc_cv___attribute__weak_alias=0
21230  else
21231    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21232printf "%s\n" "yes" >&6; }
21233
21234
21235    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5
21236printf %s "checking for __attribute__(aligned)... " >&6; }
21237    if test ${hwloc_cv___attribute__aligned+y}
21238then :
21239  printf %s "(cached) " >&6
21240else $as_nop
21241
21242        #
21243        # Try to compile using the C compiler
21244        #
21245        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246/* end confdefs.h.  */
21247struct foo { char text4; }  __attribute__ ((__aligned__(8)));
21248int
21249main (void)
21250{
21251
21252  ;
21253  return 0;
21254}
21255_ACEOF
21256if ac_fn_c_try_compile "$LINENO"
21257then :
21258
21259                        #
21260                        # In case we did succeed: Fine, but was this due to the
21261                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
21262                        # and if found, reset the hwloc_cv__attribute__var=0
21263                        #
21264                        hwloc_cv___attribute__aligned=1
21265
21266    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21267
21268
21269    if test -s conftest.err ; then
21270        for i in ignore skip ; do
21271            $GREP -iq $i conftest.err
21272            if test "$?" = "0" ; then
21273                hwloc_cv___attribute__aligned=0
21274                break;
21275            fi
21276        done
21277    fi
21278
21279
21280else $as_nop
21281  hwloc_cv___attribute__aligned=0
21282fi
21283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21284
21285        #
21286        # If the attribute is supported by both compilers,
21287        # try to recompile a *cross-check*, IFF defined.
21288        #
21289        if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then
21290            ac_c_werror_flag_safe=$ac_c_werror_flag
21291            ac_c_werror_flag="yes"
21292            CFLAGS_safe=$CFLAGS
21293            CFLAGS="$CFLAGS "
21294
21295            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h.  */
21297
21298int
21299main (void)
21300{
21301
21302                   int i=4711;
21303                   i=usage(&i);
21304
21305  ;
21306  return 0;
21307}
21308
21309_ACEOF
21310if ac_fn_c_try_compile "$LINENO"
21311then :
21312  hwloc_cv___attribute__aligned=0
21313else $as_nop
21314
21315                 #
21316                 # In case we did NOT succeed: Fine, but was this due to the
21317                 # attribute being ignored? Grep for IgNoRe in conftest.err
21318                 # and if found, reset the hwloc_cv__attribute__var=0
21319                 #
21320                 hwloc_cv___attribute__aligned=1
21321
21322    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21323
21324
21325    if test -s conftest.err ; then
21326        for i in ignore skip ; do
21327            $GREP -iq $i conftest.err
21328            if test "$?" = "0" ; then
21329                hwloc_cv___attribute__aligned=0
21330                break;
21331            fi
21332        done
21333    fi
21334
21335
21336fi
21337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21338
21339            ac_c_werror_flag=$ac_c_werror_flag_safe
21340            CFLAGS=$CFLAGS_safe
21341        fi
21342
21343fi
21344
21345
21346    if test "$hwloc_cv___attribute__aligned" = "1" ; then
21347        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21348printf "%s\n" "yes" >&6; }
21349    else
21350        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21351printf "%s\n" "no" >&6; }
21352    fi
21353
21354
21355    #
21356    # Ignored by PGI-6.2.5; -- recognized by output-parser
21357    #
21358
21359    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5
21360printf %s "checking for __attribute__(always_inline)... " >&6; }
21361    if test ${hwloc_cv___attribute__always_inline+y}
21362then :
21363  printf %s "(cached) " >&6
21364else $as_nop
21365
21366        #
21367        # Try to compile using the C compiler
21368        #
21369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370/* end confdefs.h.  */
21371int foo (int arg) __attribute__ ((__always_inline__));
21372int
21373main (void)
21374{
21375
21376  ;
21377  return 0;
21378}
21379_ACEOF
21380if ac_fn_c_try_compile "$LINENO"
21381then :
21382
21383                        #
21384                        # In case we did succeed: Fine, but was this due to the
21385                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
21386                        # and if found, reset the hwloc_cv__attribute__var=0
21387                        #
21388                        hwloc_cv___attribute__always_inline=1
21389
21390    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21391
21392
21393    if test -s conftest.err ; then
21394        for i in ignore skip ; do
21395            $GREP -iq $i conftest.err
21396            if test "$?" = "0" ; then
21397                hwloc_cv___attribute__always_inline=0
21398                break;
21399            fi
21400        done
21401    fi
21402
21403
21404else $as_nop
21405  hwloc_cv___attribute__always_inline=0
21406fi
21407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21408
21409        #
21410        # If the attribute is supported by both compilers,
21411        # try to recompile a *cross-check*, IFF defined.
21412        #
21413        if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then
21414            ac_c_werror_flag_safe=$ac_c_werror_flag
21415            ac_c_werror_flag="yes"
21416            CFLAGS_safe=$CFLAGS
21417            CFLAGS="$CFLAGS "
21418
21419            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420/* end confdefs.h.  */
21421
21422int
21423main (void)
21424{
21425
21426                   int i=4711;
21427                   i=usage(&i);
21428
21429  ;
21430  return 0;
21431}
21432
21433_ACEOF
21434if ac_fn_c_try_compile "$LINENO"
21435then :
21436  hwloc_cv___attribute__always_inline=0
21437else $as_nop
21438
21439                 #
21440                 # In case we did NOT succeed: Fine, but was this due to the
21441                 # attribute being ignored? Grep for IgNoRe in conftest.err
21442                 # and if found, reset the hwloc_cv__attribute__var=0
21443                 #
21444                 hwloc_cv___attribute__always_inline=1
21445
21446    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21447
21448
21449    if test -s conftest.err ; then
21450        for i in ignore skip ; do
21451            $GREP -iq $i conftest.err
21452            if test "$?" = "0" ; then
21453                hwloc_cv___attribute__always_inline=0
21454                break;
21455            fi
21456        done
21457    fi
21458
21459
21460fi
21461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21462
21463            ac_c_werror_flag=$ac_c_werror_flag_safe
21464            CFLAGS=$CFLAGS_safe
21465        fi
21466
21467fi
21468
21469
21470    if test "$hwloc_cv___attribute__always_inline" = "1" ; then
21471        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21472printf "%s\n" "yes" >&6; }
21473    else
21474        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21475printf "%s\n" "no" >&6; }
21476    fi
21477
21478
21479
21480    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5
21481printf %s "checking for __attribute__(cold)... " >&6; }
21482    if test ${hwloc_cv___attribute__cold+y}
21483then :
21484  printf %s "(cached) " >&6
21485else $as_nop
21486
21487        #
21488        # Try to compile using the C compiler
21489        #
21490        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491/* end confdefs.h.  */
21492
21493         int foo(int arg1, int arg2) __attribute__ ((__cold__));
21494         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
21495
21496int
21497main (void)
21498{
21499
21500  ;
21501  return 0;
21502}
21503_ACEOF
21504if ac_fn_c_try_compile "$LINENO"
21505then :
21506
21507                        #
21508                        # In case we did succeed: Fine, but was this due to the
21509                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
21510                        # and if found, reset the hwloc_cv__attribute__var=0
21511                        #
21512                        hwloc_cv___attribute__cold=1
21513
21514    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21515
21516
21517    if test -s conftest.err ; then
21518        for i in ignore skip ; do
21519            $GREP -iq $i conftest.err
21520            if test "$?" = "0" ; then
21521                hwloc_cv___attribute__cold=0
21522                break;
21523            fi
21524        done
21525    fi
21526
21527
21528else $as_nop
21529  hwloc_cv___attribute__cold=0
21530fi
21531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21532
21533        #
21534        # If the attribute is supported by both compilers,
21535        # try to recompile a *cross-check*, IFF defined.
21536        #
21537        if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then
21538            ac_c_werror_flag_safe=$ac_c_werror_flag
21539            ac_c_werror_flag="yes"
21540            CFLAGS_safe=$CFLAGS
21541            CFLAGS="$CFLAGS "
21542
21543            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544/* end confdefs.h.  */
21545
21546int
21547main (void)
21548{
21549
21550                   int i=4711;
21551                   i=usage(&i);
21552
21553  ;
21554  return 0;
21555}
21556
21557_ACEOF
21558if ac_fn_c_try_compile "$LINENO"
21559then :
21560  hwloc_cv___attribute__cold=0
21561else $as_nop
21562
21563                 #
21564                 # In case we did NOT succeed: Fine, but was this due to the
21565                 # attribute being ignored? Grep for IgNoRe in conftest.err
21566                 # and if found, reset the hwloc_cv__attribute__var=0
21567                 #
21568                 hwloc_cv___attribute__cold=1
21569
21570    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21571
21572
21573    if test -s conftest.err ; then
21574        for i in ignore skip ; do
21575            $GREP -iq $i conftest.err
21576            if test "$?" = "0" ; then
21577                hwloc_cv___attribute__cold=0
21578                break;
21579            fi
21580        done
21581    fi
21582
21583
21584fi
21585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21586
21587            ac_c_werror_flag=$ac_c_werror_flag_safe
21588            CFLAGS=$CFLAGS_safe
21589        fi
21590
21591fi
21592
21593
21594    if test "$hwloc_cv___attribute__cold" = "1" ; then
21595        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21596printf "%s\n" "yes" >&6; }
21597    else
21598        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599printf "%s\n" "no" >&6; }
21600    fi
21601
21602
21603
21604    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5
21605printf %s "checking for __attribute__(const)... " >&6; }
21606    if test ${hwloc_cv___attribute__const+y}
21607then :
21608  printf %s "(cached) " >&6
21609else $as_nop
21610
21611        #
21612        # Try to compile using the C compiler
21613        #
21614        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615/* end confdefs.h.  */
21616
21617         int foo(int arg1, int arg2) __attribute__ ((__const__));
21618         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
21619
21620int
21621main (void)
21622{
21623
21624  ;
21625  return 0;
21626}
21627_ACEOF
21628if ac_fn_c_try_compile "$LINENO"
21629then :
21630
21631                        #
21632                        # In case we did succeed: Fine, but was this due to the
21633                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
21634                        # and if found, reset the hwloc_cv__attribute__var=0
21635                        #
21636                        hwloc_cv___attribute__const=1
21637
21638    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21639
21640
21641    if test -s conftest.err ; then
21642        for i in ignore skip ; do
21643            $GREP -iq $i conftest.err
21644            if test "$?" = "0" ; then
21645                hwloc_cv___attribute__const=0
21646                break;
21647            fi
21648        done
21649    fi
21650
21651
21652else $as_nop
21653  hwloc_cv___attribute__const=0
21654fi
21655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21656
21657        #
21658        # If the attribute is supported by both compilers,
21659        # try to recompile a *cross-check*, IFF defined.
21660        #
21661        if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then
21662            ac_c_werror_flag_safe=$ac_c_werror_flag
21663            ac_c_werror_flag="yes"
21664            CFLAGS_safe=$CFLAGS
21665            CFLAGS="$CFLAGS "
21666
21667            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668/* end confdefs.h.  */
21669
21670int
21671main (void)
21672{
21673
21674                   int i=4711;
21675                   i=usage(&i);
21676
21677  ;
21678  return 0;
21679}
21680
21681_ACEOF
21682if ac_fn_c_try_compile "$LINENO"
21683then :
21684  hwloc_cv___attribute__const=0
21685else $as_nop
21686
21687                 #
21688                 # In case we did NOT succeed: Fine, but was this due to the
21689                 # attribute being ignored? Grep for IgNoRe in conftest.err
21690                 # and if found, reset the hwloc_cv__attribute__var=0
21691                 #
21692                 hwloc_cv___attribute__const=1
21693
21694    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21695
21696
21697    if test -s conftest.err ; then
21698        for i in ignore skip ; do
21699            $GREP -iq $i conftest.err
21700            if test "$?" = "0" ; then
21701                hwloc_cv___attribute__const=0
21702                break;
21703            fi
21704        done
21705    fi
21706
21707
21708fi
21709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21710
21711            ac_c_werror_flag=$ac_c_werror_flag_safe
21712            CFLAGS=$CFLAGS_safe
21713        fi
21714
21715fi
21716
21717
21718    if test "$hwloc_cv___attribute__const" = "1" ; then
21719        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21720printf "%s\n" "yes" >&6; }
21721    else
21722        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21723printf "%s\n" "no" >&6; }
21724    fi
21725
21726
21727
21728
21729    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5
21730printf %s "checking for __attribute__(deprecated)... " >&6; }
21731    if test ${hwloc_cv___attribute__deprecated+y}
21732then :
21733  printf %s "(cached) " >&6
21734else $as_nop
21735
21736        #
21737        # Try to compile using the C compiler
21738        #
21739        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21740/* end confdefs.h.  */
21741
21742         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
21743         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
21744
21745int
21746main (void)
21747{
21748
21749  ;
21750  return 0;
21751}
21752_ACEOF
21753if ac_fn_c_try_compile "$LINENO"
21754then :
21755
21756                        #
21757                        # In case we did succeed: Fine, but was this due to the
21758                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
21759                        # and if found, reset the hwloc_cv__attribute__var=0
21760                        #
21761                        hwloc_cv___attribute__deprecated=1
21762
21763    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21764
21765
21766    if test -s conftest.err ; then
21767        for i in ignore skip ; do
21768            $GREP -iq $i conftest.err
21769            if test "$?" = "0" ; then
21770                hwloc_cv___attribute__deprecated=0
21771                break;
21772            fi
21773        done
21774    fi
21775
21776
21777else $as_nop
21778  hwloc_cv___attribute__deprecated=0
21779fi
21780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21781
21782        #
21783        # If the attribute is supported by both compilers,
21784        # try to recompile a *cross-check*, IFF defined.
21785        #
21786        if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then
21787            ac_c_werror_flag_safe=$ac_c_werror_flag
21788            ac_c_werror_flag="yes"
21789            CFLAGS_safe=$CFLAGS
21790            CFLAGS="$CFLAGS "
21791
21792            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793/* end confdefs.h.  */
21794
21795int
21796main (void)
21797{
21798
21799                   int i=4711;
21800                   i=usage(&i);
21801
21802  ;
21803  return 0;
21804}
21805
21806_ACEOF
21807if ac_fn_c_try_compile "$LINENO"
21808then :
21809  hwloc_cv___attribute__deprecated=0
21810else $as_nop
21811
21812                 #
21813                 # In case we did NOT succeed: Fine, but was this due to the
21814                 # attribute being ignored? Grep for IgNoRe in conftest.err
21815                 # and if found, reset the hwloc_cv__attribute__var=0
21816                 #
21817                 hwloc_cv___attribute__deprecated=1
21818
21819    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21820
21821
21822    if test -s conftest.err ; then
21823        for i in ignore skip ; do
21824            $GREP -iq $i conftest.err
21825            if test "$?" = "0" ; then
21826                hwloc_cv___attribute__deprecated=0
21827                break;
21828            fi
21829        done
21830    fi
21831
21832
21833fi
21834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21835
21836            ac_c_werror_flag=$ac_c_werror_flag_safe
21837            CFLAGS=$CFLAGS_safe
21838        fi
21839
21840fi
21841
21842
21843    if test "$hwloc_cv___attribute__deprecated" = "1" ; then
21844        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21845printf "%s\n" "yes" >&6; }
21846    else
21847        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848printf "%s\n" "no" >&6; }
21849    fi
21850
21851
21852
21853    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(constructor)" >&5
21854printf %s "checking for __attribute__(constructor)... " >&6; }
21855    if test ${hwloc_cv___attribute__constructor+y}
21856then :
21857  printf %s "(cached) " >&6
21858else $as_nop
21859
21860        #
21861        # Try to compile using the C compiler
21862        #
21863        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864/* end confdefs.h.  */
21865
21866         void foo(void) __attribute__ ((__constructor__));
21867         void foo(void) { return; }
21868
21869int
21870main (void)
21871{
21872
21873  ;
21874  return 0;
21875}
21876_ACEOF
21877if ac_fn_c_try_compile "$LINENO"
21878then :
21879
21880                        #
21881                        # In case we did succeed: Fine, but was this due to the
21882                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
21883                        # and if found, reset the hwloc_cv__attribute__var=0
21884                        #
21885                        hwloc_cv___attribute__constructor=1
21886
21887    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21888
21889
21890    if test -s conftest.err ; then
21891        for i in ignore skip ; do
21892            $GREP -iq $i conftest.err
21893            if test "$?" = "0" ; then
21894                hwloc_cv___attribute__constructor=0
21895                break;
21896            fi
21897        done
21898    fi
21899
21900
21901else $as_nop
21902  hwloc_cv___attribute__constructor=0
21903fi
21904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21905
21906        #
21907        # If the attribute is supported by both compilers,
21908        # try to recompile a *cross-check*, IFF defined.
21909        #
21910        if test '(' "$hwloc_cv___attribute__constructor" = "1" -a "" != "" ')' ; then
21911            ac_c_werror_flag_safe=$ac_c_werror_flag
21912            ac_c_werror_flag="yes"
21913            CFLAGS_safe=$CFLAGS
21914            CFLAGS="$CFLAGS "
21915
21916            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917/* end confdefs.h.  */
21918
21919int
21920main (void)
21921{
21922
21923                   int i=4711;
21924                   i=usage(&i);
21925
21926  ;
21927  return 0;
21928}
21929
21930_ACEOF
21931if ac_fn_c_try_compile "$LINENO"
21932then :
21933  hwloc_cv___attribute__constructor=0
21934else $as_nop
21935
21936                 #
21937                 # In case we did NOT succeed: Fine, but was this due to the
21938                 # attribute being ignored? Grep for IgNoRe in conftest.err
21939                 # and if found, reset the hwloc_cv__attribute__var=0
21940                 #
21941                 hwloc_cv___attribute__constructor=1
21942
21943    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
21944
21945
21946    if test -s conftest.err ; then
21947        for i in ignore skip ; do
21948            $GREP -iq $i conftest.err
21949            if test "$?" = "0" ; then
21950                hwloc_cv___attribute__constructor=0
21951                break;
21952            fi
21953        done
21954    fi
21955
21956
21957fi
21958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21959
21960            ac_c_werror_flag=$ac_c_werror_flag_safe
21961            CFLAGS=$CFLAGS_safe
21962        fi
21963
21964fi
21965
21966
21967    if test "$hwloc_cv___attribute__constructor" = "1" ; then
21968        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21969printf "%s\n" "yes" >&6; }
21970    else
21971        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21972printf "%s\n" "no" >&6; }
21973    fi
21974
21975
21976
21977    HWLOC_ATTRIBUTE_CFLAGS=
21978    case "$hwloc_c_vendor" in
21979        gnu)
21980            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
21981            ;;
21982        intel)
21983            # we want specifically the warning on format string conversion
21984            HWLOC_ATTRIBUTE_CFLAGS="-we181"
21985            ;;
21986    esac
21987
21988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5
21989printf %s "checking for __attribute__(format)... " >&6; }
21990    if test ${hwloc_cv___attribute__format+y}
21991then :
21992  printf %s "(cached) " >&6
21993else $as_nop
21994
21995        #
21996        # Try to compile using the C compiler
21997        #
21998        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21999/* end confdefs.h.  */
22000
22001         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
22002
22003int
22004main (void)
22005{
22006
22007  ;
22008  return 0;
22009}
22010_ACEOF
22011if ac_fn_c_try_compile "$LINENO"
22012then :
22013
22014                        #
22015                        # In case we did succeed: Fine, but was this due to the
22016                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22017                        # and if found, reset the hwloc_cv__attribute__var=0
22018                        #
22019                        hwloc_cv___attribute__format=1
22020
22021    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22022
22023
22024    if test -s conftest.err ; then
22025        for i in ignore skip ; do
22026            $GREP -iq $i conftest.err
22027            if test "$?" = "0" ; then
22028                hwloc_cv___attribute__format=0
22029                break;
22030            fi
22031        done
22032    fi
22033
22034
22035else $as_nop
22036  hwloc_cv___attribute__format=0
22037fi
22038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22039
22040        #
22041        # If the attribute is supported by both compilers,
22042        # try to recompile a *cross-check*, IFF defined.
22043        #
22044        if test '(' "$hwloc_cv___attribute__format" = "1" -a "
22045         static int usage (int * argument);
22046         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
22047
22048         static int usage (int * argument) {
22049             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
22050         }
22051         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
22052         int main(void);
22053        " != "" ')' ; then
22054            ac_c_werror_flag_safe=$ac_c_werror_flag
22055            ac_c_werror_flag="yes"
22056            CFLAGS_safe=$CFLAGS
22057            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
22058
22059            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060/* end confdefs.h.  */
22061
22062         static int usage (int * argument);
22063         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
22064
22065         static int usage (int * argument) {
22066             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
22067         }
22068         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
22069         int main(void);
22070
22071int
22072main (void)
22073{
22074
22075                   int i=4711;
22076                   i=usage(&i);
22077
22078  ;
22079  return 0;
22080}
22081
22082_ACEOF
22083if ac_fn_c_try_compile "$LINENO"
22084then :
22085  hwloc_cv___attribute__format=0
22086else $as_nop
22087
22088                 #
22089                 # In case we did NOT succeed: Fine, but was this due to the
22090                 # attribute being ignored? Grep for IgNoRe in conftest.err
22091                 # and if found, reset the hwloc_cv__attribute__var=0
22092                 #
22093                 hwloc_cv___attribute__format=1
22094
22095    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22096
22097
22098    if test -s conftest.err ; then
22099        for i in ignore skip ; do
22100            $GREP -iq $i conftest.err
22101            if test "$?" = "0" ; then
22102                hwloc_cv___attribute__format=0
22103                break;
22104            fi
22105        done
22106    fi
22107
22108
22109fi
22110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22111
22112            ac_c_werror_flag=$ac_c_werror_flag_safe
22113            CFLAGS=$CFLAGS_safe
22114        fi
22115
22116fi
22117
22118
22119    if test "$hwloc_cv___attribute__format" = "1" ; then
22120        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22121printf "%s\n" "yes" >&6; }
22122    else
22123        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22124printf "%s\n" "no" >&6; }
22125    fi
22126
22127
22128
22129    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5
22130printf %s "checking for __attribute__(hot)... " >&6; }
22131    if test ${hwloc_cv___attribute__hot+y}
22132then :
22133  printf %s "(cached) " >&6
22134else $as_nop
22135
22136        #
22137        # Try to compile using the C compiler
22138        #
22139        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140/* end confdefs.h.  */
22141
22142         int foo(int arg1, int arg2) __attribute__ ((__hot__));
22143         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
22144
22145int
22146main (void)
22147{
22148
22149  ;
22150  return 0;
22151}
22152_ACEOF
22153if ac_fn_c_try_compile "$LINENO"
22154then :
22155
22156                        #
22157                        # In case we did succeed: Fine, but was this due to the
22158                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22159                        # and if found, reset the hwloc_cv__attribute__var=0
22160                        #
22161                        hwloc_cv___attribute__hot=1
22162
22163    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22164
22165
22166    if test -s conftest.err ; then
22167        for i in ignore skip ; do
22168            $GREP -iq $i conftest.err
22169            if test "$?" = "0" ; then
22170                hwloc_cv___attribute__hot=0
22171                break;
22172            fi
22173        done
22174    fi
22175
22176
22177else $as_nop
22178  hwloc_cv___attribute__hot=0
22179fi
22180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22181
22182        #
22183        # If the attribute is supported by both compilers,
22184        # try to recompile a *cross-check*, IFF defined.
22185        #
22186        if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then
22187            ac_c_werror_flag_safe=$ac_c_werror_flag
22188            ac_c_werror_flag="yes"
22189            CFLAGS_safe=$CFLAGS
22190            CFLAGS="$CFLAGS "
22191
22192            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22193/* end confdefs.h.  */
22194
22195int
22196main (void)
22197{
22198
22199                   int i=4711;
22200                   i=usage(&i);
22201
22202  ;
22203  return 0;
22204}
22205
22206_ACEOF
22207if ac_fn_c_try_compile "$LINENO"
22208then :
22209  hwloc_cv___attribute__hot=0
22210else $as_nop
22211
22212                 #
22213                 # In case we did NOT succeed: Fine, but was this due to the
22214                 # attribute being ignored? Grep for IgNoRe in conftest.err
22215                 # and if found, reset the hwloc_cv__attribute__var=0
22216                 #
22217                 hwloc_cv___attribute__hot=1
22218
22219    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22220
22221
22222    if test -s conftest.err ; then
22223        for i in ignore skip ; do
22224            $GREP -iq $i conftest.err
22225            if test "$?" = "0" ; then
22226                hwloc_cv___attribute__hot=0
22227                break;
22228            fi
22229        done
22230    fi
22231
22232
22233fi
22234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22235
22236            ac_c_werror_flag=$ac_c_werror_flag_safe
22237            CFLAGS=$CFLAGS_safe
22238        fi
22239
22240fi
22241
22242
22243    if test "$hwloc_cv___attribute__hot" = "1" ; then
22244        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22245printf "%s\n" "yes" >&6; }
22246    else
22247        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22248printf "%s\n" "no" >&6; }
22249    fi
22250
22251
22252
22253    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5
22254printf %s "checking for __attribute__(malloc)... " >&6; }
22255    if test ${hwloc_cv___attribute__malloc+y}
22256then :
22257  printf %s "(cached) " >&6
22258else $as_nop
22259
22260        #
22261        # Try to compile using the C compiler
22262        #
22263        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264/* end confdefs.h.  */
22265
22266#ifdef HAVE_STDLIB_H
22267#  include <stdlib.h>
22268#endif
22269         int * foo(int arg1) __attribute__ ((__malloc__));
22270         int * foo(int arg1) { return (int*) malloc(arg1); }
22271
22272int
22273main (void)
22274{
22275
22276  ;
22277  return 0;
22278}
22279_ACEOF
22280if ac_fn_c_try_compile "$LINENO"
22281then :
22282
22283                        #
22284                        # In case we did succeed: Fine, but was this due to the
22285                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22286                        # and if found, reset the hwloc_cv__attribute__var=0
22287                        #
22288                        hwloc_cv___attribute__malloc=1
22289
22290    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22291
22292
22293    if test -s conftest.err ; then
22294        for i in ignore skip ; do
22295            $GREP -iq $i conftest.err
22296            if test "$?" = "0" ; then
22297                hwloc_cv___attribute__malloc=0
22298                break;
22299            fi
22300        done
22301    fi
22302
22303
22304else $as_nop
22305  hwloc_cv___attribute__malloc=0
22306fi
22307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22308
22309        #
22310        # If the attribute is supported by both compilers,
22311        # try to recompile a *cross-check*, IFF defined.
22312        #
22313        if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then
22314            ac_c_werror_flag_safe=$ac_c_werror_flag
22315            ac_c_werror_flag="yes"
22316            CFLAGS_safe=$CFLAGS
22317            CFLAGS="$CFLAGS "
22318
22319            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320/* end confdefs.h.  */
22321
22322int
22323main (void)
22324{
22325
22326                   int i=4711;
22327                   i=usage(&i);
22328
22329  ;
22330  return 0;
22331}
22332
22333_ACEOF
22334if ac_fn_c_try_compile "$LINENO"
22335then :
22336  hwloc_cv___attribute__malloc=0
22337else $as_nop
22338
22339                 #
22340                 # In case we did NOT succeed: Fine, but was this due to the
22341                 # attribute being ignored? Grep for IgNoRe in conftest.err
22342                 # and if found, reset the hwloc_cv__attribute__var=0
22343                 #
22344                 hwloc_cv___attribute__malloc=1
22345
22346    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22347
22348
22349    if test -s conftest.err ; then
22350        for i in ignore skip ; do
22351            $GREP -iq $i conftest.err
22352            if test "$?" = "0" ; then
22353                hwloc_cv___attribute__malloc=0
22354                break;
22355            fi
22356        done
22357    fi
22358
22359
22360fi
22361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22362
22363            ac_c_werror_flag=$ac_c_werror_flag_safe
22364            CFLAGS=$CFLAGS_safe
22365        fi
22366
22367fi
22368
22369
22370    if test "$hwloc_cv___attribute__malloc" = "1" ; then
22371        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22372printf "%s\n" "yes" >&6; }
22373    else
22374        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22375printf "%s\n" "no" >&6; }
22376    fi
22377
22378
22379
22380    #
22381    # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
22382    # Ignored by intel-9.1.045 -- turn off with -wd1292
22383    # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
22384    # The test case is chosen to match our only use in topology-xml-*.c, and reproduces an xlc-13.1.0 bug.
22385    #
22386
22387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5
22388printf %s "checking for __attribute__(may_alias)... " >&6; }
22389    if test ${hwloc_cv___attribute__may_alias+y}
22390then :
22391  printf %s "(cached) " >&6
22392else $as_nop
22393
22394        #
22395        # Try to compile using the C compiler
22396        #
22397        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398/* end confdefs.h.  */
22399struct { int i; } __attribute__ ((__may_alias__)) * p_value;
22400int
22401main (void)
22402{
22403
22404  ;
22405  return 0;
22406}
22407_ACEOF
22408if ac_fn_c_try_compile "$LINENO"
22409then :
22410
22411                        #
22412                        # In case we did succeed: Fine, but was this due to the
22413                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22414                        # and if found, reset the hwloc_cv__attribute__var=0
22415                        #
22416                        hwloc_cv___attribute__may_alias=1
22417
22418    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22419
22420
22421    if test -s conftest.err ; then
22422        for i in ignore skip ; do
22423            $GREP -iq $i conftest.err
22424            if test "$?" = "0" ; then
22425                hwloc_cv___attribute__may_alias=0
22426                break;
22427            fi
22428        done
22429    fi
22430
22431
22432else $as_nop
22433  hwloc_cv___attribute__may_alias=0
22434fi
22435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22436
22437        #
22438        # If the attribute is supported by both compilers,
22439        # try to recompile a *cross-check*, IFF defined.
22440        #
22441        if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then
22442            ac_c_werror_flag_safe=$ac_c_werror_flag
22443            ac_c_werror_flag="yes"
22444            CFLAGS_safe=$CFLAGS
22445            CFLAGS="$CFLAGS "
22446
22447            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448/* end confdefs.h.  */
22449
22450int
22451main (void)
22452{
22453
22454                   int i=4711;
22455                   i=usage(&i);
22456
22457  ;
22458  return 0;
22459}
22460
22461_ACEOF
22462if ac_fn_c_try_compile "$LINENO"
22463then :
22464  hwloc_cv___attribute__may_alias=0
22465else $as_nop
22466
22467                 #
22468                 # In case we did NOT succeed: Fine, but was this due to the
22469                 # attribute being ignored? Grep for IgNoRe in conftest.err
22470                 # and if found, reset the hwloc_cv__attribute__var=0
22471                 #
22472                 hwloc_cv___attribute__may_alias=1
22473
22474    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22475
22476
22477    if test -s conftest.err ; then
22478        for i in ignore skip ; do
22479            $GREP -iq $i conftest.err
22480            if test "$?" = "0" ; then
22481                hwloc_cv___attribute__may_alias=0
22482                break;
22483            fi
22484        done
22485    fi
22486
22487
22488fi
22489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22490
22491            ac_c_werror_flag=$ac_c_werror_flag_safe
22492            CFLAGS=$CFLAGS_safe
22493        fi
22494
22495fi
22496
22497
22498    if test "$hwloc_cv___attribute__may_alias" = "1" ; then
22499        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22500printf "%s\n" "yes" >&6; }
22501    else
22502        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22503printf "%s\n" "no" >&6; }
22504    fi
22505
22506
22507
22508
22509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5
22510printf %s "checking for __attribute__(no_instrument_function)... " >&6; }
22511    if test ${hwloc_cv___attribute__no_instrument_function+y}
22512then :
22513  printf %s "(cached) " >&6
22514else $as_nop
22515
22516        #
22517        # Try to compile using the C compiler
22518        #
22519        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520/* end confdefs.h.  */
22521int * foo(int arg1) __attribute__ ((__no_instrument_function__));
22522int
22523main (void)
22524{
22525
22526  ;
22527  return 0;
22528}
22529_ACEOF
22530if ac_fn_c_try_compile "$LINENO"
22531then :
22532
22533                        #
22534                        # In case we did succeed: Fine, but was this due to the
22535                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22536                        # and if found, reset the hwloc_cv__attribute__var=0
22537                        #
22538                        hwloc_cv___attribute__no_instrument_function=1
22539
22540    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22541
22542
22543    if test -s conftest.err ; then
22544        for i in ignore skip ; do
22545            $GREP -iq $i conftest.err
22546            if test "$?" = "0" ; then
22547                hwloc_cv___attribute__no_instrument_function=0
22548                break;
22549            fi
22550        done
22551    fi
22552
22553
22554else $as_nop
22555  hwloc_cv___attribute__no_instrument_function=0
22556fi
22557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22558
22559        #
22560        # If the attribute is supported by both compilers,
22561        # try to recompile a *cross-check*, IFF defined.
22562        #
22563        if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then
22564            ac_c_werror_flag_safe=$ac_c_werror_flag
22565            ac_c_werror_flag="yes"
22566            CFLAGS_safe=$CFLAGS
22567            CFLAGS="$CFLAGS "
22568
22569            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570/* end confdefs.h.  */
22571
22572int
22573main (void)
22574{
22575
22576                   int i=4711;
22577                   i=usage(&i);
22578
22579  ;
22580  return 0;
22581}
22582
22583_ACEOF
22584if ac_fn_c_try_compile "$LINENO"
22585then :
22586  hwloc_cv___attribute__no_instrument_function=0
22587else $as_nop
22588
22589                 #
22590                 # In case we did NOT succeed: Fine, but was this due to the
22591                 # attribute being ignored? Grep for IgNoRe in conftest.err
22592                 # and if found, reset the hwloc_cv__attribute__var=0
22593                 #
22594                 hwloc_cv___attribute__no_instrument_function=1
22595
22596    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22597
22598
22599    if test -s conftest.err ; then
22600        for i in ignore skip ; do
22601            $GREP -iq $i conftest.err
22602            if test "$?" = "0" ; then
22603                hwloc_cv___attribute__no_instrument_function=0
22604                break;
22605            fi
22606        done
22607    fi
22608
22609
22610fi
22611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22612
22613            ac_c_werror_flag=$ac_c_werror_flag_safe
22614            CFLAGS=$CFLAGS_safe
22615        fi
22616
22617fi
22618
22619
22620    if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then
22621        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22622printf "%s\n" "yes" >&6; }
22623    else
22624        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625printf "%s\n" "no" >&6; }
22626    fi
22627
22628
22629
22630    #
22631    # Attribute nonnull:
22632    # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
22633    # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
22634    #
22635    HWLOC_ATTRIBUTE_CFLAGS=
22636    case "$hwloc_c_vendor" in
22637        gnu)
22638            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
22639            ;;
22640        intel)
22641            # we do not want to get ignored attributes warnings, but rather real warnings
22642            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
22643            ;;
22644    esac
22645
22646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5
22647printf %s "checking for __attribute__(nonnull)... " >&6; }
22648    if test ${hwloc_cv___attribute__nonnull+y}
22649then :
22650  printf %s "(cached) " >&6
22651else $as_nop
22652
22653        #
22654        # Try to compile using the C compiler
22655        #
22656        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657/* end confdefs.h.  */
22658
22659         int square(int *arg) __attribute__ ((__nonnull__));
22660         int square(int *arg) { return *arg; }
22661
22662int
22663main (void)
22664{
22665
22666  ;
22667  return 0;
22668}
22669_ACEOF
22670if ac_fn_c_try_compile "$LINENO"
22671then :
22672
22673                        #
22674                        # In case we did succeed: Fine, but was this due to the
22675                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22676                        # and if found, reset the hwloc_cv__attribute__var=0
22677                        #
22678                        hwloc_cv___attribute__nonnull=1
22679
22680    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22681
22682
22683    if test -s conftest.err ; then
22684        for i in ignore skip ; do
22685            $GREP -iq $i conftest.err
22686            if test "$?" = "0" ; then
22687                hwloc_cv___attribute__nonnull=0
22688                break;
22689            fi
22690        done
22691    fi
22692
22693
22694else $as_nop
22695  hwloc_cv___attribute__nonnull=0
22696fi
22697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22698
22699        #
22700        # If the attribute is supported by both compilers,
22701        # try to recompile a *cross-check*, IFF defined.
22702        #
22703        if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a "
22704         static int usage(int * argument);
22705         int square(int * argument) __attribute__ ((__nonnull__));
22706         int square(int * argument) { return (*argument) * (*argument); }
22707
22708         static int usage(int * argument) {
22709             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
22710         }
22711         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
22712         int main(void);
22713        " != "" ')' ; then
22714            ac_c_werror_flag_safe=$ac_c_werror_flag
22715            ac_c_werror_flag="yes"
22716            CFLAGS_safe=$CFLAGS
22717            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
22718
22719            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22720/* end confdefs.h.  */
22721
22722         static int usage(int * argument);
22723         int square(int * argument) __attribute__ ((__nonnull__));
22724         int square(int * argument) { return (*argument) * (*argument); }
22725
22726         static int usage(int * argument) {
22727             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
22728         }
22729         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
22730         int main(void);
22731
22732int
22733main (void)
22734{
22735
22736                   int i=4711;
22737                   i=usage(&i);
22738
22739  ;
22740  return 0;
22741}
22742
22743_ACEOF
22744if ac_fn_c_try_compile "$LINENO"
22745then :
22746  hwloc_cv___attribute__nonnull=0
22747else $as_nop
22748
22749                 #
22750                 # In case we did NOT succeed: Fine, but was this due to the
22751                 # attribute being ignored? Grep for IgNoRe in conftest.err
22752                 # and if found, reset the hwloc_cv__attribute__var=0
22753                 #
22754                 hwloc_cv___attribute__nonnull=1
22755
22756    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22757
22758
22759    if test -s conftest.err ; then
22760        for i in ignore skip ; do
22761            $GREP -iq $i conftest.err
22762            if test "$?" = "0" ; then
22763                hwloc_cv___attribute__nonnull=0
22764                break;
22765            fi
22766        done
22767    fi
22768
22769
22770fi
22771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22772
22773            ac_c_werror_flag=$ac_c_werror_flag_safe
22774            CFLAGS=$CFLAGS_safe
22775        fi
22776
22777fi
22778
22779
22780    if test "$hwloc_cv___attribute__nonnull" = "1" ; then
22781        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22782printf "%s\n" "yes" >&6; }
22783    else
22784        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22785printf "%s\n" "no" >&6; }
22786    fi
22787
22788
22789
22790
22791    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5
22792printf %s "checking for __attribute__(noreturn)... " >&6; }
22793    if test ${hwloc_cv___attribute__noreturn+y}
22794then :
22795  printf %s "(cached) " >&6
22796else $as_nop
22797
22798        #
22799        # Try to compile using the C compiler
22800        #
22801        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802/* end confdefs.h.  */
22803
22804#ifdef HAVE_UNISTD_H
22805#  include <unistd.h>
22806#endif
22807#ifdef HAVE_STDLIB_H
22808#  include <stdlib.h>
22809#endif
22810         void fatal(int arg1) __attribute__ ((__noreturn__));
22811         void fatal(int arg1) { exit(arg1); }
22812
22813int
22814main (void)
22815{
22816
22817  ;
22818  return 0;
22819}
22820_ACEOF
22821if ac_fn_c_try_compile "$LINENO"
22822then :
22823
22824                        #
22825                        # In case we did succeed: Fine, but was this due to the
22826                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22827                        # and if found, reset the hwloc_cv__attribute__var=0
22828                        #
22829                        hwloc_cv___attribute__noreturn=1
22830
22831    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22832
22833
22834    if test -s conftest.err ; then
22835        for i in ignore skip ; do
22836            $GREP -iq $i conftest.err
22837            if test "$?" = "0" ; then
22838                hwloc_cv___attribute__noreturn=0
22839                break;
22840            fi
22841        done
22842    fi
22843
22844
22845else $as_nop
22846  hwloc_cv___attribute__noreturn=0
22847fi
22848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22849
22850        #
22851        # If the attribute is supported by both compilers,
22852        # try to recompile a *cross-check*, IFF defined.
22853        #
22854        if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then
22855            ac_c_werror_flag_safe=$ac_c_werror_flag
22856            ac_c_werror_flag="yes"
22857            CFLAGS_safe=$CFLAGS
22858            CFLAGS="$CFLAGS "
22859
22860            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22861/* end confdefs.h.  */
22862
22863int
22864main (void)
22865{
22866
22867                   int i=4711;
22868                   i=usage(&i);
22869
22870  ;
22871  return 0;
22872}
22873
22874_ACEOF
22875if ac_fn_c_try_compile "$LINENO"
22876then :
22877  hwloc_cv___attribute__noreturn=0
22878else $as_nop
22879
22880                 #
22881                 # In case we did NOT succeed: Fine, but was this due to the
22882                 # attribute being ignored? Grep for IgNoRe in conftest.err
22883                 # and if found, reset the hwloc_cv__attribute__var=0
22884                 #
22885                 hwloc_cv___attribute__noreturn=1
22886
22887    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22888
22889
22890    if test -s conftest.err ; then
22891        for i in ignore skip ; do
22892            $GREP -iq $i conftest.err
22893            if test "$?" = "0" ; then
22894                hwloc_cv___attribute__noreturn=0
22895                break;
22896            fi
22897        done
22898    fi
22899
22900
22901fi
22902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22903
22904            ac_c_werror_flag=$ac_c_werror_flag_safe
22905            CFLAGS=$CFLAGS_safe
22906        fi
22907
22908fi
22909
22910
22911    if test "$hwloc_cv___attribute__noreturn" = "1" ; then
22912        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22913printf "%s\n" "yes" >&6; }
22914    else
22915        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22916printf "%s\n" "no" >&6; }
22917    fi
22918
22919
22920
22921    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5
22922printf %s "checking for __attribute__(packed)... " >&6; }
22923    if test ${hwloc_cv___attribute__packed+y}
22924then :
22925  printf %s "(cached) " >&6
22926else $as_nop
22927
22928        #
22929        # Try to compile using the C compiler
22930        #
22931        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22932/* end confdefs.h.  */
22933
22934         struct foo {
22935             char a;
22936             int x2 __attribute__ ((__packed__));
22937         };
22938
22939int
22940main (void)
22941{
22942
22943  ;
22944  return 0;
22945}
22946_ACEOF
22947if ac_fn_c_try_compile "$LINENO"
22948then :
22949
22950                        #
22951                        # In case we did succeed: Fine, but was this due to the
22952                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22953                        # and if found, reset the hwloc_cv__attribute__var=0
22954                        #
22955                        hwloc_cv___attribute__packed=1
22956
22957    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
22958
22959
22960    if test -s conftest.err ; then
22961        for i in ignore skip ; do
22962            $GREP -iq $i conftest.err
22963            if test "$?" = "0" ; then
22964                hwloc_cv___attribute__packed=0
22965                break;
22966            fi
22967        done
22968    fi
22969
22970
22971else $as_nop
22972  hwloc_cv___attribute__packed=0
22973fi
22974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22975
22976        #
22977        # If the attribute is supported by both compilers,
22978        # try to recompile a *cross-check*, IFF defined.
22979        #
22980        if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then
22981            ac_c_werror_flag_safe=$ac_c_werror_flag
22982            ac_c_werror_flag="yes"
22983            CFLAGS_safe=$CFLAGS
22984            CFLAGS="$CFLAGS "
22985
22986            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22987/* end confdefs.h.  */
22988
22989int
22990main (void)
22991{
22992
22993                   int i=4711;
22994                   i=usage(&i);
22995
22996  ;
22997  return 0;
22998}
22999
23000_ACEOF
23001if ac_fn_c_try_compile "$LINENO"
23002then :
23003  hwloc_cv___attribute__packed=0
23004else $as_nop
23005
23006                 #
23007                 # In case we did NOT succeed: Fine, but was this due to the
23008                 # attribute being ignored? Grep for IgNoRe in conftest.err
23009                 # and if found, reset the hwloc_cv__attribute__var=0
23010                 #
23011                 hwloc_cv___attribute__packed=1
23012
23013    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23014
23015
23016    if test -s conftest.err ; then
23017        for i in ignore skip ; do
23018            $GREP -iq $i conftest.err
23019            if test "$?" = "0" ; then
23020                hwloc_cv___attribute__packed=0
23021                break;
23022            fi
23023        done
23024    fi
23025
23026
23027fi
23028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23029
23030            ac_c_werror_flag=$ac_c_werror_flag_safe
23031            CFLAGS=$CFLAGS_safe
23032        fi
23033
23034fi
23035
23036
23037    if test "$hwloc_cv___attribute__packed" = "1" ; then
23038        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23039printf "%s\n" "yes" >&6; }
23040    else
23041        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23042printf "%s\n" "no" >&6; }
23043    fi
23044
23045
23046
23047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5
23048printf %s "checking for __attribute__(pure)... " >&6; }
23049    if test ${hwloc_cv___attribute__pure+y}
23050then :
23051  printf %s "(cached) " >&6
23052else $as_nop
23053
23054        #
23055        # Try to compile using the C compiler
23056        #
23057        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23058/* end confdefs.h.  */
23059
23060         int square(int arg) __attribute__ ((__pure__));
23061         int square(int arg) { return arg * arg; }
23062
23063int
23064main (void)
23065{
23066
23067  ;
23068  return 0;
23069}
23070_ACEOF
23071if ac_fn_c_try_compile "$LINENO"
23072then :
23073
23074                        #
23075                        # In case we did succeed: Fine, but was this due to the
23076                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23077                        # and if found, reset the hwloc_cv__attribute__var=0
23078                        #
23079                        hwloc_cv___attribute__pure=1
23080
23081    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23082
23083
23084    if test -s conftest.err ; then
23085        for i in ignore skip ; do
23086            $GREP -iq $i conftest.err
23087            if test "$?" = "0" ; then
23088                hwloc_cv___attribute__pure=0
23089                break;
23090            fi
23091        done
23092    fi
23093
23094
23095else $as_nop
23096  hwloc_cv___attribute__pure=0
23097fi
23098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23099
23100        #
23101        # If the attribute is supported by both compilers,
23102        # try to recompile a *cross-check*, IFF defined.
23103        #
23104        if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then
23105            ac_c_werror_flag_safe=$ac_c_werror_flag
23106            ac_c_werror_flag="yes"
23107            CFLAGS_safe=$CFLAGS
23108            CFLAGS="$CFLAGS "
23109
23110            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111/* end confdefs.h.  */
23112
23113int
23114main (void)
23115{
23116
23117                   int i=4711;
23118                   i=usage(&i);
23119
23120  ;
23121  return 0;
23122}
23123
23124_ACEOF
23125if ac_fn_c_try_compile "$LINENO"
23126then :
23127  hwloc_cv___attribute__pure=0
23128else $as_nop
23129
23130                 #
23131                 # In case we did NOT succeed: Fine, but was this due to the
23132                 # attribute being ignored? Grep for IgNoRe in conftest.err
23133                 # and if found, reset the hwloc_cv__attribute__var=0
23134                 #
23135                 hwloc_cv___attribute__pure=1
23136
23137    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23138
23139
23140    if test -s conftest.err ; then
23141        for i in ignore skip ; do
23142            $GREP -iq $i conftest.err
23143            if test "$?" = "0" ; then
23144                hwloc_cv___attribute__pure=0
23145                break;
23146            fi
23147        done
23148    fi
23149
23150
23151fi
23152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23153
23154            ac_c_werror_flag=$ac_c_werror_flag_safe
23155            CFLAGS=$CFLAGS_safe
23156        fi
23157
23158fi
23159
23160
23161    if test "$hwloc_cv___attribute__pure" = "1" ; then
23162        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163printf "%s\n" "yes" >&6; }
23164    else
23165        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23166printf "%s\n" "no" >&6; }
23167    fi
23168
23169
23170    #
23171    # Attribute sentinel:
23172    # Ignored by the intel-9.1.045 -- recognized by cross-check
23173    #                intel-10.0beta works fine
23174    # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
23175    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
23176    #
23177    HWLOC_ATTRIBUTE_CFLAGS=
23178    case "$hwloc_c_vendor" in
23179        gnu)
23180            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
23181            ;;
23182        intel)
23183            # we do not want to get ignored attributes warnings
23184            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
23185            ;;
23186    esac
23187
23188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5
23189printf %s "checking for __attribute__(sentinel)... " >&6; }
23190    if test ${hwloc_cv___attribute__sentinel+y}
23191then :
23192  printf %s "(cached) " >&6
23193else $as_nop
23194
23195        #
23196        # Try to compile using the C compiler
23197        #
23198        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23199/* end confdefs.h.  */
23200
23201         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
23202
23203int
23204main (void)
23205{
23206
23207  ;
23208  return 0;
23209}
23210_ACEOF
23211if ac_fn_c_try_compile "$LINENO"
23212then :
23213
23214                        #
23215                        # In case we did succeed: Fine, but was this due to the
23216                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23217                        # and if found, reset the hwloc_cv__attribute__var=0
23218                        #
23219                        hwloc_cv___attribute__sentinel=1
23220
23221    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23222
23223
23224    if test -s conftest.err ; then
23225        for i in ignore skip ; do
23226            $GREP -iq $i conftest.err
23227            if test "$?" = "0" ; then
23228                hwloc_cv___attribute__sentinel=0
23229                break;
23230            fi
23231        done
23232    fi
23233
23234
23235else $as_nop
23236  hwloc_cv___attribute__sentinel=0
23237fi
23238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23239
23240        #
23241        # If the attribute is supported by both compilers,
23242        # try to recompile a *cross-check*, IFF defined.
23243        #
23244        if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a "
23245         static int usage(int * argument);
23246         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
23247
23248         static int usage(int * argument) {
23249             void * last_arg_should_be_null = argument;
23250             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
23251         }
23252         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
23253         int main(void);
23254        " != "" ')' ; then
23255            ac_c_werror_flag_safe=$ac_c_werror_flag
23256            ac_c_werror_flag="yes"
23257            CFLAGS_safe=$CFLAGS
23258            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
23259
23260            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23261/* end confdefs.h.  */
23262
23263         static int usage(int * argument);
23264         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
23265
23266         static int usage(int * argument) {
23267             void * last_arg_should_be_null = argument;
23268             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
23269         }
23270         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
23271         int main(void);
23272
23273int
23274main (void)
23275{
23276
23277                   int i=4711;
23278                   i=usage(&i);
23279
23280  ;
23281  return 0;
23282}
23283
23284_ACEOF
23285if ac_fn_c_try_compile "$LINENO"
23286then :
23287  hwloc_cv___attribute__sentinel=0
23288else $as_nop
23289
23290                 #
23291                 # In case we did NOT succeed: Fine, but was this due to the
23292                 # attribute being ignored? Grep for IgNoRe in conftest.err
23293                 # and if found, reset the hwloc_cv__attribute__var=0
23294                 #
23295                 hwloc_cv___attribute__sentinel=1
23296
23297    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23298
23299
23300    if test -s conftest.err ; then
23301        for i in ignore skip ; do
23302            $GREP -iq $i conftest.err
23303            if test "$?" = "0" ; then
23304                hwloc_cv___attribute__sentinel=0
23305                break;
23306            fi
23307        done
23308    fi
23309
23310
23311fi
23312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23313
23314            ac_c_werror_flag=$ac_c_werror_flag_safe
23315            CFLAGS=$CFLAGS_safe
23316        fi
23317
23318fi
23319
23320
23321    if test "$hwloc_cv___attribute__sentinel" = "1" ; then
23322        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23323printf "%s\n" "yes" >&6; }
23324    else
23325        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23326printf "%s\n" "no" >&6; }
23327    fi
23328
23329
23330
23331    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5
23332printf %s "checking for __attribute__(unused)... " >&6; }
23333    if test ${hwloc_cv___attribute__unused+y}
23334then :
23335  printf %s "(cached) " >&6
23336else $as_nop
23337
23338        #
23339        # Try to compile using the C compiler
23340        #
23341        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23342/* end confdefs.h.  */
23343
23344         int square(int arg1 __attribute__ ((__unused__)), int arg2);
23345         int square(int arg1, int arg2) { return arg2; }
23346
23347int
23348main (void)
23349{
23350
23351  ;
23352  return 0;
23353}
23354_ACEOF
23355if ac_fn_c_try_compile "$LINENO"
23356then :
23357
23358                        #
23359                        # In case we did succeed: Fine, but was this due to the
23360                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23361                        # and if found, reset the hwloc_cv__attribute__var=0
23362                        #
23363                        hwloc_cv___attribute__unused=1
23364
23365    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23366
23367
23368    if test -s conftest.err ; then
23369        for i in ignore skip ; do
23370            $GREP -iq $i conftest.err
23371            if test "$?" = "0" ; then
23372                hwloc_cv___attribute__unused=0
23373                break;
23374            fi
23375        done
23376    fi
23377
23378
23379else $as_nop
23380  hwloc_cv___attribute__unused=0
23381fi
23382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23383
23384        #
23385        # If the attribute is supported by both compilers,
23386        # try to recompile a *cross-check*, IFF defined.
23387        #
23388        if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then
23389            ac_c_werror_flag_safe=$ac_c_werror_flag
23390            ac_c_werror_flag="yes"
23391            CFLAGS_safe=$CFLAGS
23392            CFLAGS="$CFLAGS "
23393
23394            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395/* end confdefs.h.  */
23396
23397int
23398main (void)
23399{
23400
23401                   int i=4711;
23402                   i=usage(&i);
23403
23404  ;
23405  return 0;
23406}
23407
23408_ACEOF
23409if ac_fn_c_try_compile "$LINENO"
23410then :
23411  hwloc_cv___attribute__unused=0
23412else $as_nop
23413
23414                 #
23415                 # In case we did NOT succeed: Fine, but was this due to the
23416                 # attribute being ignored? Grep for IgNoRe in conftest.err
23417                 # and if found, reset the hwloc_cv__attribute__var=0
23418                 #
23419                 hwloc_cv___attribute__unused=1
23420
23421    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23422
23423
23424    if test -s conftest.err ; then
23425        for i in ignore skip ; do
23426            $GREP -iq $i conftest.err
23427            if test "$?" = "0" ; then
23428                hwloc_cv___attribute__unused=0
23429                break;
23430            fi
23431        done
23432    fi
23433
23434
23435fi
23436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23437
23438            ac_c_werror_flag=$ac_c_werror_flag_safe
23439            CFLAGS=$CFLAGS_safe
23440        fi
23441
23442fi
23443
23444
23445    if test "$hwloc_cv___attribute__unused" = "1" ; then
23446        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23447printf "%s\n" "yes" >&6; }
23448    else
23449        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23450printf "%s\n" "no" >&6; }
23451    fi
23452
23453
23454
23455    #
23456    # Attribute warn_unused_result:
23457    # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
23458    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
23459    #
23460    HWLOC_ATTRIBUTE_CFLAGS=
23461    case "$hwloc_c_vendor" in
23462        gnu)
23463            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
23464            ;;
23465        intel)
23466            # we do not want to get ignored attributes warnings
23467            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
23468            ;;
23469    esac
23470
23471    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5
23472printf %s "checking for __attribute__(warn_unused_result)... " >&6; }
23473    if test ${hwloc_cv___attribute__warn_unused_result+y}
23474then :
23475  printf %s "(cached) " >&6
23476else $as_nop
23477
23478        #
23479        # Try to compile using the C compiler
23480        #
23481        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482/* end confdefs.h.  */
23483
23484         int foo(int arg) __attribute__ ((__warn_unused_result__));
23485         int foo(int arg) { return arg + 3; }
23486
23487int
23488main (void)
23489{
23490
23491  ;
23492  return 0;
23493}
23494_ACEOF
23495if ac_fn_c_try_compile "$LINENO"
23496then :
23497
23498                        #
23499                        # In case we did succeed: Fine, but was this due to the
23500                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23501                        # and if found, reset the hwloc_cv__attribute__var=0
23502                        #
23503                        hwloc_cv___attribute__warn_unused_result=1
23504
23505    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23506
23507
23508    if test -s conftest.err ; then
23509        for i in ignore skip ; do
23510            $GREP -iq $i conftest.err
23511            if test "$?" = "0" ; then
23512                hwloc_cv___attribute__warn_unused_result=0
23513                break;
23514            fi
23515        done
23516    fi
23517
23518
23519else $as_nop
23520  hwloc_cv___attribute__warn_unused_result=0
23521fi
23522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23523
23524        #
23525        # If the attribute is supported by both compilers,
23526        # try to recompile a *cross-check*, IFF defined.
23527        #
23528        if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a "
23529         static int usage(int * argument);
23530         int foo(int arg) __attribute__ ((__warn_unused_result__));
23531
23532         int foo(int arg) { return arg + 3; }
23533         static int usage(int * argument) {
23534           foo (*argument);        /* Should produce an unused result warning */
23535           return 0;
23536         }
23537
23538         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
23539         int main(void);
23540        " != "" ')' ; then
23541            ac_c_werror_flag_safe=$ac_c_werror_flag
23542            ac_c_werror_flag="yes"
23543            CFLAGS_safe=$CFLAGS
23544            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
23545
23546            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23547/* end confdefs.h.  */
23548
23549         static int usage(int * argument);
23550         int foo(int arg) __attribute__ ((__warn_unused_result__));
23551
23552         int foo(int arg) { return arg + 3; }
23553         static int usage(int * argument) {
23554           foo (*argument);        /* Should produce an unused result warning */
23555           return 0;
23556         }
23557
23558         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
23559         int main(void);
23560
23561int
23562main (void)
23563{
23564
23565                   int i=4711;
23566                   i=usage(&i);
23567
23568  ;
23569  return 0;
23570}
23571
23572_ACEOF
23573if ac_fn_c_try_compile "$LINENO"
23574then :
23575  hwloc_cv___attribute__warn_unused_result=0
23576else $as_nop
23577
23578                 #
23579                 # In case we did NOT succeed: Fine, but was this due to the
23580                 # attribute being ignored? Grep for IgNoRe in conftest.err
23581                 # and if found, reset the hwloc_cv__attribute__var=0
23582                 #
23583                 hwloc_cv___attribute__warn_unused_result=1
23584
23585    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23586
23587
23588    if test -s conftest.err ; then
23589        for i in ignore skip ; do
23590            $GREP -iq $i conftest.err
23591            if test "$?" = "0" ; then
23592                hwloc_cv___attribute__warn_unused_result=0
23593                break;
23594            fi
23595        done
23596    fi
23597
23598
23599fi
23600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23601
23602            ac_c_werror_flag=$ac_c_werror_flag_safe
23603            CFLAGS=$CFLAGS_safe
23604        fi
23605
23606fi
23607
23608
23609    if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then
23610        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23611printf "%s\n" "yes" >&6; }
23612    else
23613        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23614printf "%s\n" "no" >&6; }
23615    fi
23616
23617
23618
23619
23620    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5
23621printf %s "checking for __attribute__(weak_alias)... " >&6; }
23622    if test ${hwloc_cv___attribute__weak_alias+y}
23623then :
23624  printf %s "(cached) " >&6
23625else $as_nop
23626
23627        #
23628        # Try to compile using the C compiler
23629        #
23630        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631/* end confdefs.h.  */
23632
23633         int foo(int arg);
23634         int foo(int arg) { return arg + 3; }
23635         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));
23636
23637int
23638main (void)
23639{
23640
23641  ;
23642  return 0;
23643}
23644_ACEOF
23645if ac_fn_c_try_compile "$LINENO"
23646then :
23647
23648                        #
23649                        # In case we did succeed: Fine, but was this due to the
23650                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23651                        # and if found, reset the hwloc_cv__attribute__var=0
23652                        #
23653                        hwloc_cv___attribute__weak_alias=1
23654
23655    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23656
23657
23658    if test -s conftest.err ; then
23659        for i in ignore skip ; do
23660            $GREP -iq $i conftest.err
23661            if test "$?" = "0" ; then
23662                hwloc_cv___attribute__weak_alias=0
23663                break;
23664            fi
23665        done
23666    fi
23667
23668
23669else $as_nop
23670  hwloc_cv___attribute__weak_alias=0
23671fi
23672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23673
23674        #
23675        # If the attribute is supported by both compilers,
23676        # try to recompile a *cross-check*, IFF defined.
23677        #
23678        if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then
23679            ac_c_werror_flag_safe=$ac_c_werror_flag
23680            ac_c_werror_flag="yes"
23681            CFLAGS_safe=$CFLAGS
23682            CFLAGS="$CFLAGS "
23683
23684            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23685/* end confdefs.h.  */
23686
23687int
23688main (void)
23689{
23690
23691                   int i=4711;
23692                   i=usage(&i);
23693
23694  ;
23695  return 0;
23696}
23697
23698_ACEOF
23699if ac_fn_c_try_compile "$LINENO"
23700then :
23701  hwloc_cv___attribute__weak_alias=0
23702else $as_nop
23703
23704                 #
23705                 # In case we did NOT succeed: Fine, but was this due to the
23706                 # attribute being ignored? Grep for IgNoRe in conftest.err
23707                 # and if found, reset the hwloc_cv__attribute__var=0
23708                 #
23709                 hwloc_cv___attribute__weak_alias=1
23710
23711    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23712
23713
23714    if test -s conftest.err ; then
23715        for i in ignore skip ; do
23716            $GREP -iq $i conftest.err
23717            if test "$?" = "0" ; then
23718                hwloc_cv___attribute__weak_alias=0
23719                break;
23720            fi
23721        done
23722    fi
23723
23724
23725fi
23726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23727
23728            ac_c_werror_flag=$ac_c_werror_flag_safe
23729            CFLAGS=$CFLAGS_safe
23730        fi
23731
23732fi
23733
23734
23735    if test "$hwloc_cv___attribute__weak_alias" = "1" ; then
23736        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23737printf "%s\n" "yes" >&6; }
23738    else
23739        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23740printf "%s\n" "no" >&6; }
23741    fi
23742
23743
23744  fi
23745
23746  # Now that all the values are set, define them
23747
23748
23749printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned" >>confdefs.h
23750
23751
23752printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline" >>confdefs.h
23753
23754
23755printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold" >>confdefs.h
23756
23757
23758printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const" >>confdefs.h
23759
23760
23761printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated" >>confdefs.h
23762
23763
23764printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_CONSTRUCTOR $hwloc_cv___attribute__constructor" >>confdefs.h
23765
23766
23767printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format" >>confdefs.h
23768
23769
23770printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot" >>confdefs.h
23771
23772
23773printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc" >>confdefs.h
23774
23775
23776printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias" >>confdefs.h
23777
23778
23779printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function" >>confdefs.h
23780
23781
23782printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull" >>confdefs.h
23783
23784
23785printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn" >>confdefs.h
23786
23787
23788printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed" >>confdefs.h
23789
23790
23791printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure" >>confdefs.h
23792
23793
23794printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel" >>confdefs.h
23795
23796
23797printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused" >>confdefs.h
23798
23799
23800printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result" >>confdefs.h
23801
23802
23803printf "%s\n" "#define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias" >>confdefs.h
23804
23805
23806
23807    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
23808
23809
23810    # Check if the compiler has support for visibility, like some
23811    # versions of gcc, icc, Sun Studio cc.
23812    # Check whether --enable-visibility was given.
23813if test ${enable_visibility+y}
23814then :
23815  enableval=$enable_visibility;
23816fi
23817
23818
23819    case ${target} in
23820        *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*)
23821            enable_visibility=no
23822            ;;
23823    esac
23824
23825    hwloc_visibility_define=0
23826    hwloc_msg="whether to enable symbol visibility"
23827    if test "$enable_visibility" = "no"; then
23828        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
23829printf %s "checking $hwloc_msg... " >&6; }
23830        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
23831printf "%s\n" "no (disabled)" >&6; }
23832    else
23833        CFLAGS_orig=$CFLAGS
23834
23835        hwloc_add=
23836        case "$hwloc_c_vendor" in
23837        sun)
23838            # Check using Sun Studio -xldscope=hidden flag
23839            hwloc_add=-xldscope=hidden
23840            CFLAGS="$CFLAGS_orig $hwloc_add -errwarn=%all"
23841            ;;
23842
23843        *)
23844            # Check using -fvisibility=hidden
23845            hwloc_add=-fvisibility=hidden
23846            CFLAGS="$CFLAGS_orig $hwloc_add -Werror"
23847            ;;
23848        esac
23849
23850        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $hwloc_add" >&5
23851printf %s "checking if $CC supports $hwloc_add... " >&6; }
23852        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853/* end confdefs.h.  */
23854
23855            #include <stdio.h>
23856            __attribute__((visibility("default"))) int foo;
23857
23858int
23859main (void)
23860{
23861fprintf(stderr, "Hello, world\n");
23862  ;
23863  return 0;
23864}
23865_ACEOF
23866if ac_fn_c_try_link "$LINENO"
23867then :
23868  if test -s conftest.err
23869then :
23870  $GREP -iq visibility conftest.err
23871                    # If we find "visibility" in the stderr, then
23872                    # assume it doesn't work
23873                    if test "$?" = "0"
23874then :
23875  hwloc_add=
23876fi
23877fi
23878
23879else $as_nop
23880  hwloc_add=
23881fi
23882rm -f core conftest.err conftest.$ac_objext conftest.beam \
23883    conftest$ac_exeext conftest.$ac_ext
23884        if test "$hwloc_add" = ""
23885then :
23886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23887printf "%s\n" "no" >&6; }
23888else $as_nop
23889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23890printf "%s\n" "yes" >&6; }
23891fi
23892
23893        CFLAGS=$CFLAGS_orig
23894        HWLOC_VISIBILITY_CFLAGS=$hwloc_add
23895
23896        if test "$hwloc_add" != "" ; then
23897            hwloc_visibility_define=1
23898            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
23899printf %s "checking $hwloc_msg... " >&6; }
23900            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (via $hwloc_add)" >&5
23901printf "%s\n" "yes (via $hwloc_add)" >&6; }
23902        elif test "$enable_visibility" = "yes"; then
23903            as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it.  Aborting" "$LINENO" 5
23904        else
23905            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
23906printf %s "checking $hwloc_msg... " >&6; }
23907            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
23908printf "%s\n" "no (unsupported)" >&6; }
23909        fi
23910        unset hwloc_add
23911    fi
23912
23913
23914printf "%s\n" "#define HWLOC_C_HAVE_VISIBILITY $hwloc_visibility_define" >>confdefs.h
23915
23916
23917    HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS"
23918    if test "$HWLOC_VISIBILITY_CFLAGS" != ""
23919then :
23920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5
23921printf "%s\n" "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;}
23922fi
23923
23924    # Make sure the compiler returns an error code when function arg
23925    # count is wrong, otherwise sched_setaffinity checks may fail.
23926    HWLOC_STRICT_ARGS_CFLAGS=
23927    hwloc_args_check=0
23928    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too many arguments" >&5
23929printf %s "checking whether the C compiler rejects function calls with too many arguments... " >&6; }
23930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931/* end confdefs.h.  */
23932
23933        extern int one_arg(int x);
23934        int foo(void) { return one_arg(1, 2); }
23935
23936int
23937main (void)
23938{
23939
23940  ;
23941  return 0;
23942}
23943_ACEOF
23944if ac_fn_c_try_compile "$LINENO"
23945then :
23946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23947printf "%s\n" "no" >&6; }
23948else $as_nop
23949  hwloc_args_check=1
23950       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23951printf "%s\n" "yes" >&6; }
23952fi
23953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too few arguments" >&5
23955printf %s "checking whether the C compiler rejects function calls with too few arguments... " >&6; }
23956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957/* end confdefs.h.  */
23958
23959        extern int two_arg(int x, int y);
23960        int foo(void) { return two_arg(3); }
23961
23962int
23963main (void)
23964{
23965
23966  ;
23967  return 0;
23968}
23969_ACEOF
23970if ac_fn_c_try_compile "$LINENO"
23971then :
23972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23973printf "%s\n" "no" >&6; }
23974else $as_nop
23975  hwloc_args_check=`expr $hwloc_args_check + 1`
23976       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23977printf "%s\n" "yes" >&6; }
23978fi
23979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23980    if test "$hwloc_args_check" != "2"
23981then :
23982
23983         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&5
23984printf "%s\n" "$as_me: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&2;}
23985        case "$hwloc_c_vendor" in
23986        ibm)
23987            HWLOC_STRICT_ARGS_CFLAGS="-qhalt=e"
23988            ;;
23989        intel)
23990            HWLOC_STRICT_ARGS_CFLAGS="-we140"
23991            ;;
23992        *)
23993            HWLOC_STRICT_ARGS_CFLAGS=FAIL
23994            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please report this warning and configure using a different C compiler if possible." >&5
23995printf "%s\n" "$as_me: WARNING: Please report this warning and configure using a different C compiler if possible." >&2;}
23996            ;;
23997        esac
23998        if test "$HWLOC_STRICT_ARGS_CFLAGS" != "FAIL"
23999then :
24000
24001            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&5
24002printf "%s\n" "$as_me: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&2;}
24003             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively you may configure with a different compiler." >&5
24004printf "%s\n" "$as_me: WARNING: Alternatively you may configure with a different compiler." >&2;}
24005
24006fi
24007
24008fi
24009
24010    if test "$hwloc_mode" = "standalone"
24011then :
24012
24013        # For the common developer case, if we're in a developer checkout and
24014        # using the GNU compilers, turn on maximum warnings unless
24015        # specifically disabled by the user.
24016        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable \"picky\" compiler mode" >&5
24017printf %s "checking whether to enable \"picky\" compiler mode... " >&6; }
24018        hwloc_want_picky=0
24019        if test "$hwloc_c_vendor" = "gnu"
24020then :
24021  if test -e "$srcdir/.git"
24022then :
24023  hwloc_want_picky=1
24024fi
24025fi
24026        if test "$enable_picky" = "yes"; then
24027            if test "$hwloc_c_vendor" = "gnu"; then
24028                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24029printf "%s\n" "yes" >&6; }
24030                hwloc_want_picky=1
24031            else
24032                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24033printf "%s\n" "no" >&6; }
24034                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&5
24035printf "%s\n" "$as_me: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&2;}
24036                hwloc_want_picky=0
24037            fi
24038        elif test "$enable_picky" = "no"; then
24039            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040printf "%s\n" "no" >&6; }
24041            hwloc_want_picky=0
24042        else
24043            if test "$hwloc_want_picky" = 1; then
24044                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24045printf "%s\n" "yes (default)" >&6; }
24046            else
24047                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
24048printf "%s\n" "no (default)" >&6; }
24049            fi
24050        fi
24051        if test "$hwloc_want_picky" = 1; then
24052            add="-Wall -Wextra -Wunused-parameter -Wundef -Wno-long-long -Wsign-compare"
24053            add="$add -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes"
24054            add="$add -Wcomment -pedantic -Wshadow -Wwrite-strings -Wnested-externs"
24055            add="$add -Wpointer-arith -Wbad-function-cast -Wold-style-definition"
24056            add="$add -Werror-implicit-function-declaration"
24057
24058
24059    tmp_save_CFLAGS="$CFLAGS"
24060    CFLAGS="-Wdiscarded-qualifiers -Werror"
24061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdiscarded-qualifiers" >&5
24062printf %s "checking if gcc supports -Wdiscarded-qualifiers... " >&6; }
24063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064/* end confdefs.h.  */
24065int i;
24066int
24067main (void)
24068{
24069
24070  ;
24071  return 0;
24072}
24073_ACEOF
24074if ac_fn_c_try_compile "$LINENO"
24075then :
24076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24077printf "%s\n" "yes" >&6; }
24078		       add="$add -Wdiscarded-qualifiers"
24079
24080else $as_nop
24081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24082printf "%s\n" "no" >&6; }
24083fi
24084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24085    CFLAGS="$tmp_save_CFLAGS"
24086
24087
24088    tmp_save_CFLAGS="$CFLAGS"
24089    CFLAGS="-Wvariadic-macros -Werror"
24090    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvariadic-macros" >&5
24091printf %s "checking if gcc supports -Wvariadic-macros... " >&6; }
24092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24093/* end confdefs.h.  */
24094int i;
24095int
24096main (void)
24097{
24098
24099  ;
24100  return 0;
24101}
24102_ACEOF
24103if ac_fn_c_try_compile "$LINENO"
24104then :
24105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24106printf "%s\n" "yes" >&6; }
24107		       add="$add -Wvariadic-macros"
24108
24109else $as_nop
24110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24111printf "%s\n" "no" >&6; }
24112fi
24113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24114    CFLAGS="$tmp_save_CFLAGS"
24115
24116
24117    tmp_save_CFLAGS="$CFLAGS"
24118    CFLAGS="-Wtype-limits -Werror"
24119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wtype-limits" >&5
24120printf %s "checking if gcc supports -Wtype-limits... " >&6; }
24121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24122/* end confdefs.h.  */
24123int i;
24124int
24125main (void)
24126{
24127
24128  ;
24129  return 0;
24130}
24131_ACEOF
24132if ac_fn_c_try_compile "$LINENO"
24133then :
24134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24135printf "%s\n" "yes" >&6; }
24136		       add="$add -Wtype-limits"
24137
24138else $as_nop
24139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24140printf "%s\n" "no" >&6; }
24141fi
24142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24143    CFLAGS="$tmp_save_CFLAGS"
24144
24145
24146    tmp_save_CFLAGS="$CFLAGS"
24147    CFLAGS="-Wstack-usage=262144 -Werror"
24148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wstack-usage=262144" >&5
24149printf %s "checking if gcc supports -Wstack-usage=262144... " >&6; }
24150    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24151/* end confdefs.h.  */
24152int i;
24153int
24154main (void)
24155{
24156
24157  ;
24158  return 0;
24159}
24160_ACEOF
24161if ac_fn_c_try_compile "$LINENO"
24162then :
24163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24164printf "%s\n" "yes" >&6; }
24165		       add="$add -Wstack-usage=262144"
24166
24167else $as_nop
24168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24169printf "%s\n" "no" >&6; }
24170fi
24171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24172    CFLAGS="$tmp_save_CFLAGS"
24173
24174
24175	    # -Wextra enables some -Wfoo that we want to disable it at some place
24176
24177    tmp_save_CFLAGS="$CFLAGS"
24178    CFLAGS="-Wmissing-field-initializers -Werror"
24179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wmissing-field-initializers" >&5
24180printf %s "checking if gcc supports -Wmissing-field-initializers... " >&6; }
24181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24182/* end confdefs.h.  */
24183int i;
24184int
24185main (void)
24186{
24187
24188  ;
24189  return 0;
24190}
24191_ACEOF
24192if ac_fn_c_try_compile "$LINENO"
24193then :
24194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24195printf "%s\n" "yes" >&6; }
24196		       add="$add -Wmissing-field-initializers"
24197
24198printf "%s\n" "#define HWLOC_HAVE_GCC_W_MISSING_FIELD_INITIALIZERS 1" >>confdefs.h
24199
24200else $as_nop
24201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24202printf "%s\n" "no" >&6; }
24203fi
24204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24205    CFLAGS="$tmp_save_CFLAGS"
24206
24207
24208    tmp_save_CFLAGS="$CFLAGS"
24209    CFLAGS="-Wcast-function-type -Werror"
24210    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wcast-function-type" >&5
24211printf %s "checking if gcc supports -Wcast-function-type... " >&6; }
24212    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213/* end confdefs.h.  */
24214int i;
24215int
24216main (void)
24217{
24218
24219  ;
24220  return 0;
24221}
24222_ACEOF
24223if ac_fn_c_try_compile "$LINENO"
24224then :
24225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24226printf "%s\n" "yes" >&6; }
24227		       add="$add -Wcast-function-type"
24228
24229printf "%s\n" "#define HWLOC_HAVE_GCC_W_CAST_FUNCTION_TYPE 1" >>confdefs.h
24230
24231else $as_nop
24232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24233printf "%s\n" "no" >&6; }
24234fi
24235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24236    CFLAGS="$tmp_save_CFLAGS"
24237
24238
24239            HWLOC_CFLAGS="$HWLOC_CFLAGS $add"
24240        fi
24241
24242fi
24243
24244    #
24245    # Now detect support
24246    #
24247
24248    ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
24249if test "x$ac_cv_header_unistd_h" = xyes
24250then :
24251  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
24252
24253fi
24254
24255    ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
24256if test "x$ac_cv_header_dirent_h" = xyes
24257then :
24258  printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
24259
24260fi
24261
24262    ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
24263if test "x$ac_cv_header_strings_h" = xyes
24264then :
24265  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
24266
24267fi
24268
24269    ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
24270if test "x$ac_cv_header_ctype_h" = xyes
24271then :
24272  printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
24273
24274fi
24275
24276
24277
24278  for ac_func in strcasecmp
24279do :
24280  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24281if test "x$ac_cv_func_strcasecmp" = xyes
24282then :
24283  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
24284
24285
24286  ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24287if test "x$ac_cv_have_decl_strcasecmp" = xyes
24288then :
24289
24290    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function strcasecmp has a complete prototype" >&5
24291printf %s "checking whether function strcasecmp has a complete prototype... " >&6; }
24292
24293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294/* end confdefs.h.  */
24295$ac_includes_default
24296int
24297main (void)
24298{
24299strcasecmp(1,2,3,4,5,6,7,8,9,10);
24300
24301  ;
24302  return 0;
24303}
24304_ACEOF
24305if ac_fn_c_try_compile "$LINENO"
24306then :
24307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24308printf "%s\n" "no" >&6; }
24309
24310else $as_nop
24311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24312printf "%s\n" "yes" >&6; }
24313
24314
24315printf "%s\n" "#define HWLOC_HAVE_DECL_STRCASECMP 1" >>confdefs.h
24316
24317
24318
24319fi
24320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24321fi
24322
24323
24324fi
24325
24326done
24327
24328  for ac_func in strncasecmp
24329do :
24330  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24331if test "x$ac_cv_func_strncasecmp" = xyes
24332then :
24333  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
24334
24335
24336  ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24337if test "x$ac_cv_have_decl_strncasecmp" = xyes
24338then :
24339
24340    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp has a complete prototype" >&5
24341printf %s "checking whether function strncasecmp has a complete prototype... " >&6; }
24342
24343    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344/* end confdefs.h.  */
24345$ac_includes_default
24346int
24347main (void)
24348{
24349strncasecmp(1,2,3,4,5,6,7,8,9,10);
24350
24351  ;
24352  return 0;
24353}
24354_ACEOF
24355if ac_fn_c_try_compile "$LINENO"
24356then :
24357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24358printf "%s\n" "no" >&6; }
24359
24360else $as_nop
24361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24362printf "%s\n" "yes" >&6; }
24363
24364
24365printf "%s\n" "#define HWLOC_HAVE_DECL_STRNCASECMP 1" >>confdefs.h
24366
24367
24368
24369fi
24370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24371fi
24372
24373
24374fi
24375
24376done
24377
24378    ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
24379if test "x$ac_cv_func_strftime" = xyes
24380then :
24381  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
24382
24383fi
24384
24385    ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
24386if test "x$ac_cv_func_setlocale" = xyes
24387then :
24388  printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
24389
24390fi
24391
24392
24393    ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24394if test "x$ac_cv_header_stdint_h" = xyes
24395then :
24396
24397
24398printf "%s\n" "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h
24399
24400
24401fi
24402
24403    ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
24404if test "x$ac_cv_header_sys_mman_h" = xyes
24405then :
24406  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
24407
24408fi
24409
24410
24411    if test x$hwloc_freebsd = xyes; then
24412      echo
24413      echo "**** FreeBSD-specific checks"
24414
24415      ac_fn_c_check_header_compile "$LINENO" "sys/domainset.h" "ac_cv_header_sys_domainset_h" "$ac_includes_default"
24416if test "x$ac_cv_header_sys_domainset_h" = xyes
24417then :
24418  printf "%s\n" "#define HAVE_SYS_DOMAINSET_H 1" >>confdefs.h
24419
24420fi
24421
24422      ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
24423if test "x$ac_cv_header_sys_thr_h" = xyes
24424then :
24425  printf "%s\n" "#define HAVE_SYS_THR_H 1" >>confdefs.h
24426
24427fi
24428
24429      ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
24430if test "x$ac_cv_header_pthread_np_h" = xyes
24431then :
24432  printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
24433
24434fi
24435
24436      ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include <sys/param.h>
24437"
24438if test "x$ac_cv_header_sys_cpuset_h" = xyes
24439then :
24440  printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h
24441
24442fi
24443
24444      ac_fn_c_check_func "$LINENO" "cpuset_setaffinity" "ac_cv_func_cpuset_setaffinity"
24445if test "x$ac_cv_func_cpuset_setaffinity" = xyes
24446then :
24447  printf "%s\n" "#define HAVE_CPUSET_SETAFFINITY 1" >>confdefs.h
24448
24449fi
24450
24451      ac_fn_c_check_func "$LINENO" "cpuset_setid" "ac_cv_func_cpuset_setid"
24452if test "x$ac_cv_func_cpuset_setid" = xyes
24453then :
24454  printf "%s\n" "#define HAVE_CPUSET_SETID 1" >>confdefs.h
24455
24456fi
24457
24458
24459      echo "**** end of FreeBSD-specific checks"
24460      echo
24461    fi
24462
24463    if test x$hwloc_windows = xyes; then
24464      echo
24465      echo "**** Windows-specific checks"
24466
24467      ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
24468if test "x$ac_cv_header_windows_h" = xyes
24469then :
24470
24471
24472printf "%s\n" "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h
24473
24474
24475fi
24476
24477
24478      old_CPPFLAGS="$CPPFLAGS"
24479      CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0601"
24480      ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include <windows.h>
24481"
24482if test "x$ac_cv_type_KAFFINITY" = xyes
24483then :
24484
24485printf "%s\n" "#define HAVE_KAFFINITY 1" >>confdefs.h
24486
24487
24488fi
24489ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include <windows.h>
24490"
24491if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = xyes
24492then :
24493
24494printf "%s\n" "#define HAVE_PROCESSOR_CACHE_TYPE 1" >>confdefs.h
24495
24496
24497fi
24498ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include <windows.h>
24499"
24500if test "x$ac_cv_type_CACHE_DESCRIPTOR" = xyes
24501then :
24502
24503printf "%s\n" "#define HAVE_CACHE_DESCRIPTOR 1" >>confdefs.h
24504
24505
24506fi
24507ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include <windows.h>
24508"
24509if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = xyes
24510then :
24511
24512printf "%s\n" "#define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1" >>confdefs.h
24513
24514
24515fi
24516ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include <windows.h>
24517"
24518if test "x$ac_cv_type_RelationProcessorPackage" = xyes
24519then :
24520
24521printf "%s\n" "#define HAVE_RELATIONPROCESSORPACKAGE 1" >>confdefs.h
24522
24523
24524fi
24525ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include <windows.h>
24526"
24527if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes
24528then :
24529
24530printf "%s\n" "#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1" >>confdefs.h
24531
24532
24533fi
24534ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include <windows.h>
24535"
24536if test "x$ac_cv_type_GROUP_AFFINITY" = xyes
24537then :
24538
24539printf "%s\n" "#define HAVE_GROUP_AFFINITY 1" >>confdefs.h
24540
24541
24542fi
24543ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include <windows.h>
24544"
24545if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = xyes
24546then :
24547
24548printf "%s\n" "#define HAVE_PROCESSOR_RELATIONSHIP 1" >>confdefs.h
24549
24550
24551fi
24552ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include <windows.h>
24553"
24554if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = xyes
24555then :
24556
24557printf "%s\n" "#define HAVE_NUMA_NODE_RELATIONSHIP 1" >>confdefs.h
24558
24559
24560fi
24561ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include <windows.h>
24562"
24563if test "x$ac_cv_type_CACHE_RELATIONSHIP" = xyes
24564then :
24565
24566printf "%s\n" "#define HAVE_CACHE_RELATIONSHIP 1" >>confdefs.h
24567
24568
24569fi
24570ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include <windows.h>
24571"
24572if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = xyes
24573then :
24574
24575printf "%s\n" "#define HAVE_PROCESSOR_GROUP_INFO 1" >>confdefs.h
24576
24577
24578fi
24579ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include <windows.h>
24580"
24581if test "x$ac_cv_type_GROUP_RELATIONSHIP" = xyes
24582then :
24583
24584printf "%s\n" "#define HAVE_GROUP_RELATIONSHIP 1" >>confdefs.h
24585
24586
24587fi
24588ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include <windows.h>
24589"
24590if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = xyes
24591then :
24592
24593printf "%s\n" "#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1" >>confdefs.h
24594
24595
24596fi
24597ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include <windows.h>
24598"
24599if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = xyes
24600then :
24601
24602printf "%s\n" "#define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1" >>confdefs.h
24603
24604
24605fi
24606ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include <windows.h>
24607"
24608if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = xyes
24609then :
24610
24611printf "%s\n" "#define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1" >>confdefs.h
24612
24613
24614fi
24615ac_fn_c_check_type "$LINENO" "PROCESSOR_NUMBER" "ac_cv_type_PROCESSOR_NUMBER" "#include <windows.h>
24616"
24617if test "x$ac_cv_type_PROCESSOR_NUMBER" = xyes
24618then :
24619
24620printf "%s\n" "#define HAVE_PROCESSOR_NUMBER 1" >>confdefs.h
24621
24622
24623fi
24624
24625      CPPFLAGS="$old_CPPFLAGS"
24626
24627      ac_fn_check_decl "$LINENO" "GetModuleFileName" "ac_cv_have_decl_GetModuleFileName" "#include <windows.h>
24628" "$ac_c_undeclared_builtin_options" "CFLAGS"
24629if test "x$ac_cv_have_decl_GetModuleFileName" = xyes
24630then :
24631  ac_have_decl=1
24632else $as_nop
24633  ac_have_decl=0
24634fi
24635printf "%s\n" "#define HAVE_DECL_GETMODULEFILENAME $ac_have_decl" >>confdefs.h
24636
24637
24638      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
24639printf %s "checking for main in -lgdi32... " >&6; }
24640if test ${ac_cv_lib_gdi32_main+y}
24641then :
24642  printf %s "(cached) " >&6
24643else $as_nop
24644  ac_check_lib_save_LIBS=$LIBS
24645LIBS="-lgdi32  $LIBS"
24646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647/* end confdefs.h.  */
24648
24649
24650int
24651main (void)
24652{
24653return main ();
24654  ;
24655  return 0;
24656}
24657_ACEOF
24658if ac_fn_c_try_link "$LINENO"
24659then :
24660  ac_cv_lib_gdi32_main=yes
24661else $as_nop
24662  ac_cv_lib_gdi32_main=no
24663fi
24664rm -f core conftest.err conftest.$ac_objext conftest.beam \
24665    conftest$ac_exeext conftest.$ac_ext
24666LIBS=$ac_check_lib_save_LIBS
24667fi
24668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
24669printf "%s\n" "$ac_cv_lib_gdi32_main" >&6; }
24670if test "x$ac_cv_lib_gdi32_main" = xyes
24671then :
24672  HWLOC_LIBS="-lgdi32 $HWLOC_LIBS"
24673
24674printf "%s\n" "#define HAVE_LIBGDI32 1" >>confdefs.h
24675
24676fi
24677
24678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostQuitMessage in -luser32" >&5
24679printf %s "checking for PostQuitMessage in -luser32... " >&6; }
24680if test ${ac_cv_lib_user32_PostQuitMessage+y}
24681then :
24682  printf %s "(cached) " >&6
24683else $as_nop
24684  ac_check_lib_save_LIBS=$LIBS
24685LIBS="-luser32  $LIBS"
24686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24687/* end confdefs.h.  */
24688
24689/* Override any GCC internal prototype to avoid an error.
24690   Use char because int might match the return type of a GCC
24691   builtin and then its argument prototype would still apply.  */
24692char PostQuitMessage ();
24693int
24694main (void)
24695{
24696return PostQuitMessage ();
24697  ;
24698  return 0;
24699}
24700_ACEOF
24701if ac_fn_c_try_link "$LINENO"
24702then :
24703  ac_cv_lib_user32_PostQuitMessage=yes
24704else $as_nop
24705  ac_cv_lib_user32_PostQuitMessage=no
24706fi
24707rm -f core conftest.err conftest.$ac_objext conftest.beam \
24708    conftest$ac_exeext conftest.$ac_ext
24709LIBS=$ac_check_lib_save_LIBS
24710fi
24711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_user32_PostQuitMessage" >&5
24712printf "%s\n" "$ac_cv_lib_user32_PostQuitMessage" >&6; }
24713if test "x$ac_cv_lib_user32_PostQuitMessage" = xyes
24714then :
24715  hwloc_have_user32="yes"
24716fi
24717
24718
24719      for ac_prog in lib
24720do
24721  # Extract the first word of "$ac_prog", so it can be a program name with args.
24722set dummy $ac_prog; ac_word=$2
24723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24724printf %s "checking for $ac_word... " >&6; }
24725if test ${ac_cv_path_HWLOC_MS_LIB+y}
24726then :
24727  printf %s "(cached) " >&6
24728else $as_nop
24729  case $HWLOC_MS_LIB in
24730  [\\/]* | ?:[\\/]*)
24731  ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path.
24732  ;;
24733  *)
24734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24735for as_dir in $PATH
24736do
24737  IFS=$as_save_IFS
24738  case $as_dir in #(((
24739    '') as_dir=./ ;;
24740    */) ;;
24741    *) as_dir=$as_dir/ ;;
24742  esac
24743    for ac_exec_ext in '' $ac_executable_extensions; do
24744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24745    ac_cv_path_HWLOC_MS_LIB="$as_dir$ac_word$ac_exec_ext"
24746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24747    break 2
24748  fi
24749done
24750  done
24751IFS=$as_save_IFS
24752
24753  ;;
24754esac
24755fi
24756HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB
24757if test -n "$HWLOC_MS_LIB"; then
24758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5
24759printf "%s\n" "$HWLOC_MS_LIB" >&6; }
24760else
24761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24762printf "%s\n" "no" >&6; }
24763fi
24764
24765
24766  test -n "$HWLOC_MS_LIB" && break
24767done
24768
24769
24770      echo "**** end of Windows-specific checks"
24771      echo
24772    fi
24773
24774    if test x$hwloc_solaris = xyes; then
24775      echo
24776      echo "**** Solaris-specific checks"
24777
24778             for ac_header in sys/lgrp_user.h
24779do :
24780  ac_fn_c_check_header_compile "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default"
24781if test "x$ac_cv_header_sys_lgrp_user_h" = xyes
24782then :
24783  printf "%s\n" "#define HAVE_SYS_LGRP_USER_H 1" >>confdefs.h
24784
24785        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lgrp_init in -llgrp" >&5
24786printf %s "checking for lgrp_init in -llgrp... " >&6; }
24787if test ${ac_cv_lib_lgrp_lgrp_init+y}
24788then :
24789  printf %s "(cached) " >&6
24790else $as_nop
24791  ac_check_lib_save_LIBS=$LIBS
24792LIBS="-llgrp  $LIBS"
24793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24794/* end confdefs.h.  */
24795
24796/* Override any GCC internal prototype to avoid an error.
24797   Use char because int might match the return type of a GCC
24798   builtin and then its argument prototype would still apply.  */
24799char lgrp_init ();
24800int
24801main (void)
24802{
24803return lgrp_init ();
24804  ;
24805  return 0;
24806}
24807_ACEOF
24808if ac_fn_c_try_link "$LINENO"
24809then :
24810  ac_cv_lib_lgrp_lgrp_init=yes
24811else $as_nop
24812  ac_cv_lib_lgrp_lgrp_init=no
24813fi
24814rm -f core conftest.err conftest.$ac_objext conftest.beam \
24815    conftest$ac_exeext conftest.$ac_ext
24816LIBS=$ac_check_lib_save_LIBS
24817fi
24818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lgrp_lgrp_init" >&5
24819printf "%s\n" "$ac_cv_lib_lgrp_lgrp_init" >&6; }
24820if test "x$ac_cv_lib_lgrp_lgrp_init" = xyes
24821then :
24822  HWLOC_LIBS="-llgrp $HWLOC_LIBS"
24823
24824printf "%s\n" "#define HAVE_LIBLGRP 1" >>confdefs.h
24825
24826                      ac_fn_check_decl "$LINENO" "lgrp_latency_cookie" "ac_cv_have_decl_lgrp_latency_cookie" "#include <sys/lgrp_user.h>
24827" "$ac_c_undeclared_builtin_options" "CFLAGS"
24828if test "x$ac_cv_have_decl_lgrp_latency_cookie" = xyes
24829then :
24830  ac_have_decl=1
24831else $as_nop
24832  ac_have_decl=0
24833fi
24834printf "%s\n" "#define HAVE_DECL_LGRP_LATENCY_COOKIE $ac_have_decl" >>confdefs.h
24835
24836
24837fi
24838
24839
24840fi
24841
24842done
24843             for ac_header in kstat.h
24844do :
24845  ac_fn_c_check_header_compile "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
24846if test "x$ac_cv_header_kstat_h" = xyes
24847then :
24848  printf "%s\n" "#define HAVE_KSTAT_H 1" >>confdefs.h
24849
24850        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5
24851printf %s "checking for main in -lkstat... " >&6; }
24852if test ${ac_cv_lib_kstat_main+y}
24853then :
24854  printf %s "(cached) " >&6
24855else $as_nop
24856  ac_check_lib_save_LIBS=$LIBS
24857LIBS="-lkstat  $LIBS"
24858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859/* end confdefs.h.  */
24860
24861
24862int
24863main (void)
24864{
24865return main ();
24866  ;
24867  return 0;
24868}
24869_ACEOF
24870if ac_fn_c_try_link "$LINENO"
24871then :
24872  ac_cv_lib_kstat_main=yes
24873else $as_nop
24874  ac_cv_lib_kstat_main=no
24875fi
24876rm -f core conftest.err conftest.$ac_objext conftest.beam \
24877    conftest$ac_exeext conftest.$ac_ext
24878LIBS=$ac_check_lib_save_LIBS
24879fi
24880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5
24881printf "%s\n" "$ac_cv_lib_kstat_main" >&6; }
24882if test "x$ac_cv_lib_kstat_main" = xyes
24883then :
24884  HWLOC_LIBS="-lkstat $HWLOC_LIBS"
24885
24886printf "%s\n" "#define HAVE_LIBKSTAT 1" >>confdefs.h
24887
24888fi
24889
24890
24891fi
24892
24893done
24894
24895             for ac_header in picl.h
24896do :
24897  ac_fn_c_check_header_compile "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
24898if test "x$ac_cv_header_picl_h" = xyes
24899then :
24900  printf "%s\n" "#define HAVE_PICL_H 1" >>confdefs.h
24901
24902        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
24903printf %s "checking for picl_initialize in -lpicl... " >&6; }
24904if test ${ac_cv_lib_picl_picl_initialize+y}
24905then :
24906  printf %s "(cached) " >&6
24907else $as_nop
24908  ac_check_lib_save_LIBS=$LIBS
24909LIBS="-lpicl  $LIBS"
24910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24911/* end confdefs.h.  */
24912
24913/* Override any GCC internal prototype to avoid an error.
24914   Use char because int might match the return type of a GCC
24915   builtin and then its argument prototype would still apply.  */
24916char picl_initialize ();
24917int
24918main (void)
24919{
24920return picl_initialize ();
24921  ;
24922  return 0;
24923}
24924_ACEOF
24925if ac_fn_c_try_link "$LINENO"
24926then :
24927  ac_cv_lib_picl_picl_initialize=yes
24928else $as_nop
24929  ac_cv_lib_picl_picl_initialize=no
24930fi
24931rm -f core conftest.err conftest.$ac_objext conftest.beam \
24932    conftest$ac_exeext conftest.$ac_ext
24933LIBS=$ac_check_lib_save_LIBS
24934fi
24935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
24936printf "%s\n" "$ac_cv_lib_picl_picl_initialize" >&6; }
24937if test "x$ac_cv_lib_picl_picl_initialize" = xyes
24938then :
24939  HWLOC_LIBS="-lpicl $HWLOC_LIBS"
24940fi
24941
24942fi
24943
24944done
24945
24946      echo "**** end of Solaris-specific checks"
24947      echo
24948    fi
24949
24950    if test x$hwloc_aix = xyes; then
24951      echo
24952      echo "**** AIX-specific checks"
24953
24954      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5
24955printf %s "checking for library containing pthread_getthrds_np... " >&6; }
24956if test ${ac_cv_search_pthread_getthrds_np+y}
24957then :
24958  printf %s "(cached) " >&6
24959else $as_nop
24960  ac_func_search_save_LIBS=$LIBS
24961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962/* end confdefs.h.  */
24963
24964/* Override any GCC internal prototype to avoid an error.
24965   Use char because int might match the return type of a GCC
24966   builtin and then its argument prototype would still apply.  */
24967char pthread_getthrds_np ();
24968int
24969main (void)
24970{
24971return pthread_getthrds_np ();
24972  ;
24973  return 0;
24974}
24975_ACEOF
24976for ac_lib in '' pthread
24977do
24978  if test -z "$ac_lib"; then
24979    ac_res="none required"
24980  else
24981    ac_res=-l$ac_lib
24982    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24983  fi
24984  if ac_fn_c_try_link "$LINENO"
24985then :
24986  ac_cv_search_pthread_getthrds_np=$ac_res
24987fi
24988rm -f core conftest.err conftest.$ac_objext conftest.beam \
24989    conftest$ac_exeext
24990  if test ${ac_cv_search_pthread_getthrds_np+y}
24991then :
24992  break
24993fi
24994done
24995if test ${ac_cv_search_pthread_getthrds_np+y}
24996then :
24997
24998else $as_nop
24999  ac_cv_search_pthread_getthrds_np=no
25000fi
25001rm conftest.$ac_ext
25002LIBS=$ac_func_search_save_LIBS
25003fi
25004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5
25005printf "%s\n" "$ac_cv_search_pthread_getthrds_np" >&6; }
25006ac_res=$ac_cv_search_pthread_getthrds_np
25007if test "$ac_res" != no
25008then :
25009  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25010
25011
25012printf "%s\n" "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h
25013
25014
25015fi
25016
25017
25018      echo "**** end of AIX-specific checks"
25019      echo
25020    fi
25021
25022    if test x$hwloc_linux = xyes; then
25023      echo
25024      echo "**** Linux-specific checks"
25025
25026      ac_fn_check_decl "$LINENO" "sched_getcpu" "ac_cv_have_decl_sched_getcpu" "
25027        #ifndef _GNU_SOURCE
25028        # define _GNU_SOURCE
25029        #endif
25030        #include <sched.h>
25031
25032" "$ac_c_undeclared_builtin_options" "CFLAGS"
25033if test "x$ac_cv_have_decl_sched_getcpu" = xyes
25034then :
25035  ac_have_decl=1
25036else $as_nop
25037  ac_have_decl=0
25038fi
25039printf "%s\n" "#define HAVE_DECL_SCHED_GETCPU $ac_have_decl" >>confdefs.h
25040if test $ac_have_decl = 1
25041then :
25042
25043else $as_nop
25044  :
25045fi
25046
25047
25048
25049  ac_fn_check_decl "$LINENO" "sched_setaffinity" "ac_cv_have_decl_sched_setaffinity" "
25050#ifndef _GNU_SOURCE
25051# define _GNU_SOURCE
25052#endif
25053#include <sched.h>
25054
25055
25056" "$ac_c_undeclared_builtin_options" "CFLAGS"
25057if test "x$ac_cv_have_decl_sched_setaffinity" = xyes
25058then :
25059
25060    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity has a complete prototype" >&5
25061printf %s "checking whether function sched_setaffinity has a complete prototype... " >&6; }
25062
25063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25064/* end confdefs.h.  */
25065
25066#ifndef _GNU_SOURCE
25067# define _GNU_SOURCE
25068#endif
25069#include <sched.h>
25070
25071
25072int
25073main (void)
25074{
25075sched_setaffinity(1,2,3,4,5,6,7,8,9,10);
25076
25077  ;
25078  return 0;
25079}
25080_ACEOF
25081if ac_fn_c_try_compile "$LINENO"
25082then :
25083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25084printf "%s\n" "no" >&6; }
25085
25086else $as_nop
25087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25088printf "%s\n" "yes" >&6; }
25089
25090	hwloc_have_sched_setaffinity=yes
25091
25092printf "%s\n" "#define HWLOC_HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
25093
25094        if test "$HWLOC_STRICT_ARGS_CFLAGS" = "FAIL"
25095then :
25096
25097          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for sched_setaffinity() requires a C compiler which" >&5
25098printf "%s\n" "$as_me: WARNING: Support for sched_setaffinity() requires a C compiler which" >&2;}
25099          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: considers incorrect argument counts to be a fatal error." >&5
25100printf "%s\n" "$as_me: WARNING: considers incorrect argument counts to be a fatal error." >&2;}
25101          as_fn_error $? "Cannot continue." "$LINENO" 5
25102
25103fi
25104        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5
25105printf %s "checking for old prototype of sched_setaffinity... " >&6; }
25106        hwloc_save_CFLAGS=$CFLAGS
25107        CFLAGS="$CFLAGS $HWLOC_STRICT_ARGS_CFLAGS"
25108        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109/* end confdefs.h.  */
25110
25111
25112              #ifndef _GNU_SOURCE
25113              # define _GNU_SOURCE
25114              #endif
25115              #include <sched.h>
25116              static unsigned long mask;
25117
25118int
25119main (void)
25120{
25121 sched_setaffinity(0, (void*) &mask);
25122  ;
25123  return 0;
25124}
25125_ACEOF
25126if ac_fn_c_try_compile "$LINENO"
25127then :
25128
25129printf "%s\n" "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h
25130
25131             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25132printf "%s\n" "yes" >&6; }
25133else $as_nop
25134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25135printf "%s\n" "no" >&6; }
25136fi
25137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25138        CFLAGS=$hwloc_save_CFLAGS
25139
25140
25141fi
25142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25143fi
25144
25145
25146      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5
25147printf %s "checking for working CPU_SET... " >&6; }
25148      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25149/* end confdefs.h.  */
25150
25151
25152          #include <sched.h>
25153          cpu_set_t set;
25154
25155int
25156main (void)
25157{
25158 CPU_ZERO(&set); CPU_SET(0, &set);
25159  ;
25160  return 0;
25161}
25162_ACEOF
25163if ac_fn_c_try_link "$LINENO"
25164then :
25165
25166printf "%s\n" "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h
25167
25168         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25169printf "%s\n" "yes" >&6; }
25170else $as_nop
25171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25172printf "%s\n" "no" >&6; }
25173fi
25174rm -f core conftest.err conftest.$ac_objext conftest.beam \
25175    conftest$ac_exeext conftest.$ac_ext
25176
25177      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5
25178printf %s "checking for working CPU_SET_S... " >&6; }
25179      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25180/* end confdefs.h.  */
25181
25182
25183          #include <sched.h>
25184          cpu_set_t *set;
25185
25186int
25187main (void)
25188{
25189
25190          set = CPU_ALLOC(1024);
25191          CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set);
25192          CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set);
25193          CPU_FREE(set);
25194
25195  ;
25196  return 0;
25197}
25198_ACEOF
25199if ac_fn_c_try_link "$LINENO"
25200then :
25201
25202printf "%s\n" "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h
25203
25204         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25205printf "%s\n" "yes" >&6; }
25206else $as_nop
25207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25208printf "%s\n" "no" >&6; }
25209fi
25210rm -f core conftest.err conftest.$ac_objext conftest.beam \
25211    conftest$ac_exeext conftest.$ac_ext
25212
25213      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working syscall with 6 parameters" >&5
25214printf %s "checking for working syscall with 6 parameters... " >&6; }
25215      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25216/* end confdefs.h.  */
25217
25218
25219          #include <unistd.h>
25220          #include <sys/syscall.h>
25221
25222int
25223main (void)
25224{
25225syscall(0, 1, 2, 3, 4, 5, 6);
25226  ;
25227  return 0;
25228}
25229_ACEOF
25230if ac_fn_c_try_link "$LINENO"
25231then :
25232
25233printf "%s\n" "#define HWLOC_HAVE_SYSCALL 1" >>confdefs.h
25234
25235         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25236printf "%s\n" "yes" >&6; }
25237else $as_nop
25238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25239printf "%s\n" "no" >&6; }
25240fi
25241rm -f core conftest.err conftest.$ac_objext conftest.beam \
25242    conftest$ac_exeext conftest.$ac_ext
25243
25244      # Linux libudev support
25245      if test "x$enable_libudev" != xno; then
25246               for ac_header in libudev.h
25247do :
25248  ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
25249if test "x$ac_cv_header_libudev_h" = xyes
25250then :
25251  printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
25252
25253          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_device_new_from_subsystem_sysname in -ludev" >&5
25254printf %s "checking for udev_device_new_from_subsystem_sysname in -ludev... " >&6; }
25255if test ${ac_cv_lib_udev_udev_device_new_from_subsystem_sysname+y}
25256then :
25257  printf %s "(cached) " >&6
25258else $as_nop
25259  ac_check_lib_save_LIBS=$LIBS
25260LIBS="-ludev  $LIBS"
25261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262/* end confdefs.h.  */
25263
25264/* Override any GCC internal prototype to avoid an error.
25265   Use char because int might match the return type of a GCC
25266   builtin and then its argument prototype would still apply.  */
25267char udev_device_new_from_subsystem_sysname ();
25268int
25269main (void)
25270{
25271return udev_device_new_from_subsystem_sysname ();
25272  ;
25273  return 0;
25274}
25275_ACEOF
25276if ac_fn_c_try_link "$LINENO"
25277then :
25278  ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=yes
25279else $as_nop
25280  ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=no
25281fi
25282rm -f core conftest.err conftest.$ac_objext conftest.beam \
25283    conftest$ac_exeext conftest.$ac_ext
25284LIBS=$ac_check_lib_save_LIBS
25285fi
25286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&5
25287printf "%s\n" "$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&6; }
25288if test "x$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" = xyes
25289then :
25290
25291            HWLOC_LIBS="$HWLOC_LIBS -ludev"
25292
25293printf "%s\n" "#define HWLOC_HAVE_LIBUDEV 1" >>confdefs.h
25294
25295
25296fi
25297
25298
25299fi
25300
25301done
25302      fi
25303
25304      echo "**** end of Linux-specific checks"
25305      echo
25306    fi
25307
25308    if test "x$hwloc_linux" != "xyes" ; then
25309      # Don't look for sys/sysctl.h on Linux because it's deprecated and
25310      # generates a warning in GCC10. Also it's unneeded.
25311      ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
25312if test "x$ac_cv_header_sys_param_h" = xyes
25313then :
25314  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
25315
25316fi
25317
25318             for ac_header in sys/sysctl.h
25319do :
25320  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
25321        $ac_includes_default
25322        #if HAVE_SYS_PARAM_H
25323        #include <sys/param.h>
25324        #endif
25325
25326"
25327if test "x$ac_cv_header_sys_sysctl_h" = xyes
25328then :
25329  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
25330
25331        ac_fn_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" "
25332        #if HAVE_SYS_PARAM_H
25333        #include <sys/param.h>
25334        #endif
25335        #include <sys/sysctl.h>
25336
25337" "$ac_c_undeclared_builtin_options" "CFLAGS"
25338if test "x$ac_cv_have_decl_CTL_HW" = xyes
25339then :
25340  ac_have_decl=1
25341else $as_nop
25342  ac_have_decl=0
25343fi
25344printf "%s\n" "#define HAVE_DECL_CTL_HW $ac_have_decl" >>confdefs.h
25345ac_fn_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" "
25346        #if HAVE_SYS_PARAM_H
25347        #include <sys/param.h>
25348        #endif
25349        #include <sys/sysctl.h>
25350
25351" "$ac_c_undeclared_builtin_options" "CFLAGS"
25352if test "x$ac_cv_have_decl_HW_NCPU" = xyes
25353then :
25354  ac_have_decl=1
25355else $as_nop
25356  ac_have_decl=0
25357fi
25358printf "%s\n" "#define HAVE_DECL_HW_NCPU $ac_have_decl" >>confdefs.h
25359ac_fn_check_decl "$LINENO" "HW_REALMEM64" "ac_cv_have_decl_HW_REALMEM64" "
25360        #if HAVE_SYS_PARAM_H
25361        #include <sys/param.h>
25362        #endif
25363        #include <sys/sysctl.h>
25364
25365" "$ac_c_undeclared_builtin_options" "CFLAGS"
25366if test "x$ac_cv_have_decl_HW_REALMEM64" = xyes
25367then :
25368  ac_have_decl=1
25369else $as_nop
25370  ac_have_decl=0
25371fi
25372printf "%s\n" "#define HAVE_DECL_HW_REALMEM64 $ac_have_decl" >>confdefs.h
25373ac_fn_check_decl "$LINENO" "HW_MEMSIZE64" "ac_cv_have_decl_HW_MEMSIZE64" "
25374        #if HAVE_SYS_PARAM_H
25375        #include <sys/param.h>
25376        #endif
25377        #include <sys/sysctl.h>
25378
25379" "$ac_c_undeclared_builtin_options" "CFLAGS"
25380if test "x$ac_cv_have_decl_HW_MEMSIZE64" = xyes
25381then :
25382  ac_have_decl=1
25383else $as_nop
25384  ac_have_decl=0
25385fi
25386printf "%s\n" "#define HAVE_DECL_HW_MEMSIZE64 $ac_have_decl" >>confdefs.h
25387ac_fn_check_decl "$LINENO" "HW_PHYSMEM64" "ac_cv_have_decl_HW_PHYSMEM64" "
25388        #if HAVE_SYS_PARAM_H
25389        #include <sys/param.h>
25390        #endif
25391        #include <sys/sysctl.h>
25392
25393" "$ac_c_undeclared_builtin_options" "CFLAGS"
25394if test "x$ac_cv_have_decl_HW_PHYSMEM64" = xyes
25395then :
25396  ac_have_decl=1
25397else $as_nop
25398  ac_have_decl=0
25399fi
25400printf "%s\n" "#define HAVE_DECL_HW_PHYSMEM64 $ac_have_decl" >>confdefs.h
25401ac_fn_check_decl "$LINENO" "HW_USERMEM64" "ac_cv_have_decl_HW_USERMEM64" "
25402        #if HAVE_SYS_PARAM_H
25403        #include <sys/param.h>
25404        #endif
25405        #include <sys/sysctl.h>
25406
25407" "$ac_c_undeclared_builtin_options" "CFLAGS"
25408if test "x$ac_cv_have_decl_HW_USERMEM64" = xyes
25409then :
25410  ac_have_decl=1
25411else $as_nop
25412  ac_have_decl=0
25413fi
25414printf "%s\n" "#define HAVE_DECL_HW_USERMEM64 $ac_have_decl" >>confdefs.h
25415ac_fn_check_decl "$LINENO" "HW_REALMEM" "ac_cv_have_decl_HW_REALMEM" "
25416        #if HAVE_SYS_PARAM_H
25417        #include <sys/param.h>
25418        #endif
25419        #include <sys/sysctl.h>
25420
25421" "$ac_c_undeclared_builtin_options" "CFLAGS"
25422if test "x$ac_cv_have_decl_HW_REALMEM" = xyes
25423then :
25424  ac_have_decl=1
25425else $as_nop
25426  ac_have_decl=0
25427fi
25428printf "%s\n" "#define HAVE_DECL_HW_REALMEM $ac_have_decl" >>confdefs.h
25429ac_fn_check_decl "$LINENO" "HW_MEMSIZE" "ac_cv_have_decl_HW_MEMSIZE" "
25430        #if HAVE_SYS_PARAM_H
25431        #include <sys/param.h>
25432        #endif
25433        #include <sys/sysctl.h>
25434
25435" "$ac_c_undeclared_builtin_options" "CFLAGS"
25436if test "x$ac_cv_have_decl_HW_MEMSIZE" = xyes
25437then :
25438  ac_have_decl=1
25439else $as_nop
25440  ac_have_decl=0
25441fi
25442printf "%s\n" "#define HAVE_DECL_HW_MEMSIZE $ac_have_decl" >>confdefs.h
25443ac_fn_check_decl "$LINENO" "HW_PHYSMEM" "ac_cv_have_decl_HW_PHYSMEM" "
25444        #if HAVE_SYS_PARAM_H
25445        #include <sys/param.h>
25446        #endif
25447        #include <sys/sysctl.h>
25448
25449" "$ac_c_undeclared_builtin_options" "CFLAGS"
25450if test "x$ac_cv_have_decl_HW_PHYSMEM" = xyes
25451then :
25452  ac_have_decl=1
25453else $as_nop
25454  ac_have_decl=0
25455fi
25456printf "%s\n" "#define HAVE_DECL_HW_PHYSMEM $ac_have_decl" >>confdefs.h
25457ac_fn_check_decl "$LINENO" "HW_USERMEM" "ac_cv_have_decl_HW_USERMEM" "
25458        #if HAVE_SYS_PARAM_H
25459        #include <sys/param.h>
25460        #endif
25461        #include <sys/sysctl.h>
25462
25463" "$ac_c_undeclared_builtin_options" "CFLAGS"
25464if test "x$ac_cv_have_decl_HW_USERMEM" = xyes
25465then :
25466  ac_have_decl=1
25467else $as_nop
25468  ac_have_decl=0
25469fi
25470printf "%s\n" "#define HAVE_DECL_HW_USERMEM $ac_have_decl" >>confdefs.h
25471
25472
25473fi
25474
25475done
25476
25477      # Don't detect sysctl* on Linux because its sysctl() syscall is
25478      # long deprecated and unneeded. Some libc still expose the symbol
25479      # and raise a big warning at link time.
25480
25481      # Do a full link test instead of just using AC_CHECK_FUNCS, which
25482      # just checks to see if the symbol exists or not.  For example,
25483      # the prototype of sysctl uses u_int, which on some platforms
25484      # (such as FreeBSD) is only defined under __BSD_VISIBLE, __USE_BSD
25485      # or other similar definitions.  So while the symbols "sysctl" and
25486      # "sysctlbyname" might still be available in libc (which autoconf
25487      # checks for), they might not be actually usable.
25488      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
25489printf %s "checking for sysctl... " >&6; }
25490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25491/* end confdefs.h.  */
25492
25493
25494          #include <stdio.h>
25495          #include <sys/types.h>
25496          #include <sys/sysctl.h>
25497
25498int
25499main (void)
25500{
25501
25502          return sysctl(NULL,0,NULL,NULL,NULL,0);
25503
25504  ;
25505  return 0;
25506}
25507_ACEOF
25508if ac_fn_c_try_link "$LINENO"
25509then :
25510
25511printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
25512
25513         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25514printf "%s\n" "yes" >&6; }
25515else $as_nop
25516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25517printf "%s\n" "no" >&6; }
25518fi
25519rm -f core conftest.err conftest.$ac_objext conftest.beam \
25520    conftest$ac_exeext conftest.$ac_ext
25521      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysctlbyname" >&5
25522printf %s "checking for sysctlbyname... " >&6; }
25523      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25524/* end confdefs.h.  */
25525
25526
25527          #include <stdio.h>
25528          #include <sys/types.h>
25529          #include <sys/sysctl.h>
25530
25531int
25532main (void)
25533{
25534
25535          return sysctlbyname(NULL,NULL,NULL,NULL,0);
25536
25537  ;
25538  return 0;
25539}
25540_ACEOF
25541if ac_fn_c_try_link "$LINENO"
25542then :
25543
25544printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
25545
25546         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25547printf "%s\n" "yes" >&6; }
25548else $as_nop
25549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25550printf "%s\n" "no" >&6; }
25551fi
25552rm -f core conftest.err conftest.$ac_objext conftest.beam \
25553    conftest$ac_exeext conftest.$ac_ext
25554    fi
25555
25556    ac_fn_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "
25557      #include <pthread.h>
25558      #ifdef HAVE_PTHREAD_NP_H
25559      #  include <pthread_np.h>
25560      #endif
25561
25562" "$ac_c_undeclared_builtin_options" "CFLAGS"
25563if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes
25564then :
25565  ac_have_decl=1
25566else $as_nop
25567  ac_have_decl=0
25568fi
25569printf "%s\n" "#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl" >>confdefs.h
25570if test $ac_have_decl = 1
25571then :
25572
25573else $as_nop
25574  :
25575fi
25576
25577    ac_fn_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" "
25578      #include <pthread.h>
25579      #ifdef HAVE_PTHREAD_NP_H
25580      #  include <pthread_np.h>
25581      #endif
25582
25583" "$ac_c_undeclared_builtin_options" "CFLAGS"
25584if test "x$ac_cv_have_decl_pthread_getaffinity_np" = xyes
25585then :
25586  ac_have_decl=1
25587else $as_nop
25588  ac_have_decl=0
25589fi
25590printf "%s\n" "#define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl" >>confdefs.h
25591if test $ac_have_decl = 1
25592then :
25593
25594else $as_nop
25595  :
25596fi
25597
25598
25599    ac_fn_check_decl "$LINENO" "fabsf" "ac_cv_have_decl_fabsf" "#include <math.h>
25600" "$ac_c_undeclared_builtin_options" "CFLAGS"
25601if test "x$ac_cv_have_decl_fabsf" = xyes
25602then :
25603  ac_have_decl=1
25604else $as_nop
25605  ac_have_decl=0
25606fi
25607printf "%s\n" "#define HAVE_DECL_FABSF $ac_have_decl" >>confdefs.h
25608if test $ac_have_decl = 1
25609then :
25610
25611      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
25612printf %s "checking for fabsf in -lm... " >&6; }
25613if test ${ac_cv_lib_m_fabsf+y}
25614then :
25615  printf %s "(cached) " >&6
25616else $as_nop
25617  ac_check_lib_save_LIBS=$LIBS
25618LIBS="-lm  $LIBS"
25619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620/* end confdefs.h.  */
25621
25622/* Override any GCC internal prototype to avoid an error.
25623   Use char because int might match the return type of a GCC
25624   builtin and then its argument prototype would still apply.  */
25625char fabsf ();
25626int
25627main (void)
25628{
25629return fabsf ();
25630  ;
25631  return 0;
25632}
25633_ACEOF
25634if ac_fn_c_try_link "$LINENO"
25635then :
25636  ac_cv_lib_m_fabsf=yes
25637else $as_nop
25638  ac_cv_lib_m_fabsf=no
25639fi
25640rm -f core conftest.err conftest.$ac_objext conftest.beam \
25641    conftest$ac_exeext conftest.$ac_ext
25642LIBS=$ac_check_lib_save_LIBS
25643fi
25644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
25645printf "%s\n" "$ac_cv_lib_m_fabsf" >&6; }
25646if test "x$ac_cv_lib_m_fabsf" = xyes
25647then :
25648  need_libm=yes
25649fi
25650
25651
25652fi
25653
25654    ac_fn_check_decl "$LINENO" "modff" "ac_cv_have_decl_modff" "#include <math.h>
25655" "$ac_c_undeclared_builtin_options" "CFLAGS"
25656if test "x$ac_cv_have_decl_modff" = xyes
25657then :
25658  ac_have_decl=1
25659else $as_nop
25660  ac_have_decl=0
25661fi
25662printf "%s\n" "#define HAVE_DECL_MODFF $ac_have_decl" >>confdefs.h
25663if test $ac_have_decl = 1
25664then :
25665
25666      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for modff in -lm" >&5
25667printf %s "checking for modff in -lm... " >&6; }
25668if test ${ac_cv_lib_m_modff+y}
25669then :
25670  printf %s "(cached) " >&6
25671else $as_nop
25672  ac_check_lib_save_LIBS=$LIBS
25673LIBS="-lm  $LIBS"
25674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675/* end confdefs.h.  */
25676
25677/* Override any GCC internal prototype to avoid an error.
25678   Use char because int might match the return type of a GCC
25679   builtin and then its argument prototype would still apply.  */
25680char modff ();
25681int
25682main (void)
25683{
25684return modff ();
25685  ;
25686  return 0;
25687}
25688_ACEOF
25689if ac_fn_c_try_link "$LINENO"
25690then :
25691  ac_cv_lib_m_modff=yes
25692else $as_nop
25693  ac_cv_lib_m_modff=no
25694fi
25695rm -f core conftest.err conftest.$ac_objext conftest.beam \
25696    conftest$ac_exeext conftest.$ac_ext
25697LIBS=$ac_check_lib_save_LIBS
25698fi
25699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modff" >&5
25700printf "%s\n" "$ac_cv_lib_m_modff" >&6; }
25701if test "x$ac_cv_lib_m_modff" = xyes
25702then :
25703  need_libm=yes
25704fi
25705
25706
25707fi
25708
25709    if test x$need_libm = xyes; then
25710      HWLOC_LIBS="-lm $HWLOC_LIBS"
25711    fi
25712
25713    ac_fn_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h>
25714" "$ac_c_undeclared_builtin_options" "CFLAGS"
25715if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes
25716then :
25717  ac_have_decl=1
25718else $as_nop
25719  ac_have_decl=0
25720fi
25721printf "%s\n" "#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl" >>confdefs.h
25722if test $ac_have_decl = 1
25723then :
25724
25725else $as_nop
25726  :
25727fi
25728ac_fn_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include <unistd.h>
25729" "$ac_c_undeclared_builtin_options" "CFLAGS"
25730if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes
25731then :
25732  ac_have_decl=1
25733else $as_nop
25734  ac_have_decl=0
25735fi
25736printf "%s\n" "#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl" >>confdefs.h
25737if test $ac_have_decl = 1
25738then :
25739
25740else $as_nop
25741  :
25742fi
25743ac_fn_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include <unistd.h>
25744" "$ac_c_undeclared_builtin_options" "CFLAGS"
25745if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes
25746then :
25747  ac_have_decl=1
25748else $as_nop
25749  ac_have_decl=0
25750fi
25751printf "%s\n" "#define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl" >>confdefs.h
25752if test $ac_have_decl = 1
25753then :
25754
25755else $as_nop
25756  :
25757fi
25758ac_fn_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include <unistd.h>
25759" "$ac_c_undeclared_builtin_options" "CFLAGS"
25760if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes
25761then :
25762  ac_have_decl=1
25763else $as_nop
25764  ac_have_decl=0
25765fi
25766printf "%s\n" "#define HAVE_DECL__SC_NPROC_CONF $ac_have_decl" >>confdefs.h
25767if test $ac_have_decl = 1
25768then :
25769
25770else $as_nop
25771  :
25772fi
25773ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include <unistd.h>
25774" "$ac_c_undeclared_builtin_options" "CFLAGS"
25775if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes
25776then :
25777  ac_have_decl=1
25778else $as_nop
25779  ac_have_decl=0
25780fi
25781printf "%s\n" "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h
25782if test $ac_have_decl = 1
25783then :
25784
25785else $as_nop
25786  :
25787fi
25788ac_fn_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "#include <unistd.h>
25789" "$ac_c_undeclared_builtin_options" "CFLAGS"
25790if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes
25791then :
25792  ac_have_decl=1
25793else $as_nop
25794  ac_have_decl=0
25795fi
25796printf "%s\n" "#define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl" >>confdefs.h
25797if test $ac_have_decl = 1
25798then :
25799
25800else $as_nop
25801  :
25802fi
25803ac_fn_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include <unistd.h>
25804" "$ac_c_undeclared_builtin_options" "CFLAGS"
25805if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes
25806then :
25807  ac_have_decl=1
25808else $as_nop
25809  ac_have_decl=0
25810fi
25811printf "%s\n" "#define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl" >>confdefs.h
25812if test $ac_have_decl = 1
25813then :
25814
25815else $as_nop
25816  :
25817fi
25818
25819
25820    ac_fn_c_check_header_compile "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default"
25821if test "x$ac_cv_header_mach_mach_init_h" = xyes
25822then :
25823  printf "%s\n" "#define HAVE_MACH_MACH_INIT_H 1" >>confdefs.h
25824
25825fi
25826
25827    ac_fn_c_check_header_compile "$LINENO" "mach_init.h" "ac_cv_header_mach_init_h" "$ac_includes_default"
25828if test "x$ac_cv_header_mach_init_h" = xyes
25829then :
25830  printf "%s\n" "#define HAVE_MACH_INIT_H 1" >>confdefs.h
25831
25832fi
25833
25834           for ac_header in mach/mach_host.h
25835do :
25836  ac_fn_c_check_header_compile "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
25837if test "x$ac_cv_header_mach_mach_host_h" = xyes
25838then :
25839  printf "%s\n" "#define HAVE_MACH_MACH_HOST_H 1" >>confdefs.h
25840
25841      ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info"
25842if test "x$ac_cv_func_host_info" = xyes
25843then :
25844  printf "%s\n" "#define HAVE_HOST_INFO 1" >>confdefs.h
25845
25846fi
25847
25848
25849fi
25850
25851done
25852
25853    ac_fn_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default
25854" "$ac_c_undeclared_builtin_options" "CFLAGS"
25855if test "x$ac_cv_have_decl_strtoull" = xyes
25856then :
25857  ac_have_decl=1
25858else $as_nop
25859  ac_have_decl=0
25860fi
25861printf "%s\n" "#define HAVE_DECL_STRTOULL $ac_have_decl" >>confdefs.h
25862if test $ac_have_decl = 1
25863then :
25864
25865else $as_nop
25866  ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25867if test "x$ac_cv_func_strtoull" = xyes
25868then :
25869  printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
25870
25871fi
25872
25873fi
25874
25875
25876    # Needed for Windows in private/misc.h
25877    ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
25878if test "x$ac_cv_type_ssize_t" = xyes
25879then :
25880
25881printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
25882
25883
25884fi
25885
25886    ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default
25887" "$ac_c_undeclared_builtin_options" "CFLAGS"
25888if test "x$ac_cv_have_decl_snprintf" = xyes
25889then :
25890  ac_have_decl=1
25891else $as_nop
25892  ac_have_decl=0
25893fi
25894printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
25895
25896    # strdup and putenv are declared in windows headers but marked deprecated
25897    ac_fn_check_decl "$LINENO" "_strdup" "ac_cv_have_decl__strdup" "$ac_includes_default
25898" "$ac_c_undeclared_builtin_options" "CFLAGS"
25899if test "x$ac_cv_have_decl__strdup" = xyes
25900then :
25901  ac_have_decl=1
25902else $as_nop
25903  ac_have_decl=0
25904fi
25905printf "%s\n" "#define HAVE_DECL__STRDUP $ac_have_decl" >>confdefs.h
25906
25907    ac_fn_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default
25908" "$ac_c_undeclared_builtin_options" "CFLAGS"
25909if test "x$ac_cv_have_decl__putenv" = xyes
25910then :
25911  ac_have_decl=1
25912else $as_nop
25913  ac_have_decl=0
25914fi
25915printf "%s\n" "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h
25916
25917    # Could add mkdir and access for hwloc-gather-cpuid.c on Windows
25918
25919    broken_snprintf=no
25920    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is correct" >&5
25921printf %s "checking whether snprintf is correct... " >&6; }
25922    if test "$cross_compiling" = yes
25923then :
25924
25925	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
25926printf "%s\n" "don't know (cross-compiling)" >&6; }
25927	  broken_snprintf=maybe
25928
25929else $as_nop
25930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25931/* end confdefs.h.  */
25932
25933
25934#include <stdio.h>
25935#include <string.h>
25936#include <assert.h>
25937
25938int
25939main (void)
25940{
25941
25942char buf[7];
25943assert(snprintf(buf, 7, "abcdef") == 6);
25944assert(snprintf(buf, 6, "abcdef") == 6);
25945assert(snprintf(buf, 5, "abcdef") == 6);
25946assert(snprintf(buf, 0, "abcdef") == 6);
25947assert(snprintf(NULL, 0, "abcdef") == 6);
25948return 0;
25949
25950  ;
25951  return 0;
25952}
25953_ACEOF
25954if ac_fn_c_try_run "$LINENO"
25955then :
25956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25957printf "%s\n" "yes" >&6; }
25958else $as_nop
25959
25960	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25961printf "%s\n" "no" >&6; }
25962	  broken_snprintf=yes
25963
25964fi
25965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25966  conftest.$ac_objext conftest.beam conftest.$ac_ext
25967fi
25968
25969
25970    if test x$broken_snprintf = xno; then
25971
25972printf "%s\n" "#define HWLOC_HAVE_CORRECT_SNPRINTF 1" >>confdefs.h
25973
25974    fi
25975
25976    ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "$ac_includes_default
25977" "$ac_c_undeclared_builtin_options" "CFLAGS"
25978if test "x$ac_cv_have_decl_getprogname" = xyes
25979then :
25980  ac_have_decl=1
25981else $as_nop
25982  ac_have_decl=0
25983fi
25984printf "%s\n" "#define HAVE_DECL_GETPROGNAME $ac_have_decl" >>confdefs.h
25985
25986    ac_fn_check_decl "$LINENO" "getexecname" "ac_cv_have_decl_getexecname" "$ac_includes_default
25987" "$ac_c_undeclared_builtin_options" "CFLAGS"
25988if test "x$ac_cv_have_decl_getexecname" = xyes
25989then :
25990  ac_have_decl=1
25991else $as_nop
25992  ac_have_decl=0
25993fi
25994printf "%s\n" "#define HAVE_DECL_GETEXECNAME $ac_have_decl" >>confdefs.h
25995
25996    # program_invocation_name and __progname may be available but not exported in headers
25997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
25998printf %s "checking for program_invocation_name... " >&6; }
25999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26000/* end confdefs.h.  */
26001
26002
26003        #ifndef _GNU_SOURCE
26004        # define _GNU_SOURCE
26005        #endif
26006        #include <errno.h>
26007        #include <stdio.h>
26008        extern char *program_invocation_name;
26009
26010int
26011main (void)
26012{
26013
26014        return printf("%s\n", program_invocation_name);
26015
26016  ;
26017  return 0;
26018}
26019_ACEOF
26020if ac_fn_c_try_link "$LINENO"
26021then :
26022
26023printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
26024
26025       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26026printf "%s\n" "yes" >&6; }
26027
26028else $as_nop
26029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26030printf "%s\n" "no" >&6; }
26031fi
26032rm -f core conftest.err conftest.$ac_objext conftest.beam \
26033    conftest$ac_exeext conftest.$ac_ext
26034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
26035printf %s "checking for __progname... " >&6; }
26036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26037/* end confdefs.h.  */
26038
26039
26040        #include <stdio.h>
26041        extern char *__progname;
26042
26043int
26044main (void)
26045{
26046
26047        return printf("%s\n", __progname);
26048
26049  ;
26050  return 0;
26051}
26052_ACEOF
26053if ac_fn_c_try_link "$LINENO"
26054then :
26055
26056printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h
26057
26058       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26059printf "%s\n" "yes" >&6; }
26060
26061else $as_nop
26062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26063printf "%s\n" "no" >&6; }
26064fi
26065rm -f core conftest.err conftest.$ac_objext conftest.beam \
26066    conftest$ac_exeext conftest.$ac_ext
26067
26068    case ${target} in
26069      *-*-mingw*|*-*-cygwin*)
26070        hwloc_pid_t=HANDLE
26071        hwloc_thread_t=HANDLE
26072        ;;
26073      *)
26074        hwloc_pid_t=pid_t
26075        ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include <pthread.h>
26076"
26077if test "x$ac_cv_type_pthread_t" = xyes
26078then :
26079
26080printf "%s\n" "#define HAVE_PTHREAD_T 1" >>confdefs.h
26081
26082hwloc_thread_t=pthread_t
26083else $as_nop
26084  :
26085fi
26086
26087        ;;
26088    esac
26089
26090printf "%s\n" "#define hwloc_pid_t $hwloc_pid_t" >>confdefs.h
26091
26092    if test "x$hwloc_thread_t" != "x" ; then
26093
26094printf "%s\n" "#define hwloc_thread_t $hwloc_thread_t" >>confdefs.h
26095
26096    fi
26097
26098    # Extract the first word of "bash", so it can be a program name with args.
26099set dummy bash; ac_word=$2
26100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26101printf %s "checking for $ac_word... " >&6; }
26102if test ${ac_cv_path_BASH+y}
26103then :
26104  printf %s "(cached) " >&6
26105else $as_nop
26106  case $BASH in
26107  [\\/]* | ?:[\\/]*)
26108  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
26109  ;;
26110  *)
26111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26112for as_dir in $PATH
26113do
26114  IFS=$as_save_IFS
26115  case $as_dir in #(((
26116    '') as_dir=./ ;;
26117    */) ;;
26118    *) as_dir=$as_dir/ ;;
26119  esac
26120    for ac_exec_ext in '' $ac_executable_extensions; do
26121  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26122    ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
26123    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26124    break 2
26125  fi
26126done
26127  done
26128IFS=$as_save_IFS
26129
26130  ;;
26131esac
26132fi
26133BASH=$ac_cv_path_BASH
26134if test -n "$BASH"; then
26135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
26136printf "%s\n" "$BASH" >&6; }
26137else
26138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26139printf "%s\n" "no" >&6; }
26140fi
26141
26142
26143
26144
26145  for ac_func in ffs
26146do :
26147  ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
26148if test "x$ac_cv_func_ffs" = xyes
26149then :
26150  printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
26151
26152
26153  ac_fn_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26154if test "x$ac_cv_have_decl_ffs" = xyes
26155then :
26156
26157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function ffs has a complete prototype" >&5
26158printf %s "checking whether function ffs has a complete prototype... " >&6; }
26159
26160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26161/* end confdefs.h.  */
26162$ac_includes_default
26163int
26164main (void)
26165{
26166ffs(1,2,3,4,5,6,7,8,9,10);
26167
26168  ;
26169  return 0;
26170}
26171_ACEOF
26172if ac_fn_c_try_compile "$LINENO"
26173then :
26174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26175printf "%s\n" "no" >&6; }
26176
26177else $as_nop
26178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26179printf "%s\n" "yes" >&6; }
26180
26181
26182printf "%s\n" "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h
26183
26184
26185
26186fi
26187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26188fi
26189
26190
26191printf "%s\n" "#define HWLOC_HAVE_FFS 1" >>confdefs.h
26192
26193      if ( $CC --version | grep gccfss ) >/dev/null 2>&1 ; then
26194
26195printf "%s\n" "#define HWLOC_HAVE_BROKEN_FFS 1" >>confdefs.h
26196
26197      fi
26198
26199fi
26200
26201done
26202
26203  for ac_func in ffsl
26204do :
26205  ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl"
26206if test "x$ac_cv_func_ffsl" = xyes
26207then :
26208  printf "%s\n" "#define HAVE_FFSL 1" >>confdefs.h
26209
26210
26211  ac_fn_check_decl "$LINENO" "ffsl" "ac_cv_have_decl_ffsl" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26212if test "x$ac_cv_have_decl_ffsl" = xyes
26213then :
26214
26215    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function ffsl has a complete prototype" >&5
26216printf %s "checking whether function ffsl has a complete prototype... " >&6; }
26217
26218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26219/* end confdefs.h.  */
26220$ac_includes_default
26221int
26222main (void)
26223{
26224ffsl(1,2,3,4,5,6,7,8,9,10);
26225
26226  ;
26227  return 0;
26228}
26229_ACEOF
26230if ac_fn_c_try_compile "$LINENO"
26231then :
26232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26233printf "%s\n" "no" >&6; }
26234
26235else $as_nop
26236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26237printf "%s\n" "yes" >&6; }
26238
26239
26240printf "%s\n" "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h
26241
26242
26243
26244fi
26245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26246fi
26247
26248
26249printf "%s\n" "#define HWLOC_HAVE_FFSL 1" >>confdefs.h
26250
26251
26252fi
26253
26254done
26255
26256
26257  for ac_func in fls
26258do :
26259  ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
26260if test "x$ac_cv_func_fls" = xyes
26261then :
26262  printf "%s\n" "#define HAVE_FLS 1" >>confdefs.h
26263
26264
26265  ac_fn_check_decl "$LINENO" "fls" "ac_cv_have_decl_fls" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26266if test "x$ac_cv_have_decl_fls" = xyes
26267then :
26268
26269    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function fls has a complete prototype" >&5
26270printf %s "checking whether function fls has a complete prototype... " >&6; }
26271
26272    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26273/* end confdefs.h.  */
26274$ac_includes_default
26275int
26276main (void)
26277{
26278fls(1,2,3,4,5,6,7,8,9,10);
26279
26280  ;
26281  return 0;
26282}
26283_ACEOF
26284if ac_fn_c_try_compile "$LINENO"
26285then :
26286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26287printf "%s\n" "no" >&6; }
26288
26289else $as_nop
26290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26291printf "%s\n" "yes" >&6; }
26292
26293
26294printf "%s\n" "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h
26295
26296
26297
26298fi
26299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26300fi
26301
26302
26303printf "%s\n" "#define HWLOC_HAVE_FLS 1" >>confdefs.h
26304
26305
26306fi
26307
26308done
26309
26310  for ac_func in flsl
26311do :
26312  ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl"
26313if test "x$ac_cv_func_flsl" = xyes
26314then :
26315  printf "%s\n" "#define HAVE_FLSL 1" >>confdefs.h
26316
26317
26318  ac_fn_check_decl "$LINENO" "flsl" "ac_cv_have_decl_flsl" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26319if test "x$ac_cv_have_decl_flsl" = xyes
26320then :
26321
26322    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function flsl has a complete prototype" >&5
26323printf %s "checking whether function flsl has a complete prototype... " >&6; }
26324
26325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26326/* end confdefs.h.  */
26327$ac_includes_default
26328int
26329main (void)
26330{
26331flsl(1,2,3,4,5,6,7,8,9,10);
26332
26333  ;
26334  return 0;
26335}
26336_ACEOF
26337if ac_fn_c_try_compile "$LINENO"
26338then :
26339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26340printf "%s\n" "no" >&6; }
26341
26342else $as_nop
26343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26344printf "%s\n" "yes" >&6; }
26345
26346
26347printf "%s\n" "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h
26348
26349
26350
26351fi
26352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26353fi
26354
26355
26356printf "%s\n" "#define HWLOC_HAVE_FLSL 1" >>confdefs.h
26357
26358
26359fi
26360
26361done
26362
26363
26364  for ac_func in clz
26365do :
26366  ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz"
26367if test "x$ac_cv_func_clz" = xyes
26368then :
26369  printf "%s\n" "#define HAVE_CLZ 1" >>confdefs.h
26370
26371
26372  ac_fn_check_decl "$LINENO" "clz" "ac_cv_have_decl_clz" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26373if test "x$ac_cv_have_decl_clz" = xyes
26374then :
26375
26376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function clz has a complete prototype" >&5
26377printf %s "checking whether function clz has a complete prototype... " >&6; }
26378
26379    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380/* end confdefs.h.  */
26381$ac_includes_default
26382int
26383main (void)
26384{
26385clz(1,2,3,4,5,6,7,8,9,10);
26386
26387  ;
26388  return 0;
26389}
26390_ACEOF
26391if ac_fn_c_try_compile "$LINENO"
26392then :
26393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26394printf "%s\n" "no" >&6; }
26395
26396else $as_nop
26397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26398printf "%s\n" "yes" >&6; }
26399
26400
26401printf "%s\n" "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h
26402
26403
26404
26405fi
26406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26407fi
26408
26409
26410printf "%s\n" "#define HWLOC_HAVE_CLZ 1" >>confdefs.h
26411
26412
26413fi
26414
26415done
26416
26417  for ac_func in clzl
26418do :
26419  ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl"
26420if test "x$ac_cv_func_clzl" = xyes
26421then :
26422  printf "%s\n" "#define HAVE_CLZL 1" >>confdefs.h
26423
26424
26425  ac_fn_check_decl "$LINENO" "clzl" "ac_cv_have_decl_clzl" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
26426if test "x$ac_cv_have_decl_clzl" = xyes
26427then :
26428
26429    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether function clzl has a complete prototype" >&5
26430printf %s "checking whether function clzl has a complete prototype... " >&6; }
26431
26432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433/* end confdefs.h.  */
26434$ac_includes_default
26435int
26436main (void)
26437{
26438clzl(1,2,3,4,5,6,7,8,9,10);
26439
26440  ;
26441  return 0;
26442}
26443_ACEOF
26444if ac_fn_c_try_compile "$LINENO"
26445then :
26446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26447printf "%s\n" "no" >&6; }
26448
26449else $as_nop
26450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26451printf "%s\n" "yes" >&6; }
26452
26453
26454printf "%s\n" "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h
26455
26456
26457
26458fi
26459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26460fi
26461
26462
26463printf "%s\n" "#define HWLOC_HAVE_CLZL 1" >>confdefs.h
26464
26465
26466fi
26467
26468done
26469
26470    if test "$hwloc_c_vendor" != "android"
26471then :
26472
26473  for ac_func in openat
26474do :
26475  ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
26476if test "x$ac_cv_func_openat" = xyes
26477then :
26478  printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
26479 hwloc_have_openat=yes
26480fi
26481
26482done
26483fi
26484
26485    ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
26486if test "x$ac_cv_header_malloc_h" = xyes
26487then :
26488  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
26489
26490fi
26491
26492    ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26493if test "x$ac_cv_func_getpagesize" = xyes
26494then :
26495  printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
26496
26497fi
26498ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
26499if test "x$ac_cv_func_memalign" = xyes
26500then :
26501  printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
26502
26503fi
26504ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
26505if test "x$ac_cv_func_posix_memalign" = xyes
26506then :
26507  printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
26508
26509fi
26510
26511
26512    ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
26513if test "x$ac_cv_header_sys_utsname_h" = xyes
26514then :
26515  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
26516
26517fi
26518
26519    ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
26520if test "x$ac_cv_func_uname" = xyes
26521then :
26522  printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
26523
26524fi
26525
26526
26527                                if test "$hwloc_mode" != "embedded"
26528then :
26529  ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
26530if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
26531then :
26532  printf "%s\n" "#define HAVE_VALGRIND_VALGRIND_H 1" >>confdefs.h
26533
26534fi
26535
26536         ac_fn_check_decl "$LINENO" "RUNNING_ON_VALGRIND" "ac_cv_have_decl_RUNNING_ON_VALGRIND" "#include <valgrind/valgrind.h>
26537" "$ac_c_undeclared_builtin_options" "CFLAGS"
26538if test "x$ac_cv_have_decl_RUNNING_ON_VALGRIND" = xyes
26539then :
26540  ac_have_decl=1
26541else $as_nop
26542  ac_have_decl=0
26543fi
26544printf "%s\n" "#define HAVE_DECL_RUNNING_ON_VALGRIND $ac_have_decl" >>confdefs.h
26545if test $ac_have_decl = 1
26546then :
26547
26548else $as_nop
26549  :
26550fi
26551
26552
26553else $as_nop
26554
26555
26556printf "%s\n" "#define HAVE_DECL_RUNNING_ON_VALGRIND 0" >>confdefs.h
26557
26558
26559fi
26560
26561    if test "x$enable_32bits_pci_domain" = "xyes"
26562then :
26563
26564
26565printf "%s\n" "#define HWLOC_HAVE_32BITS_PCI_DOMAIN 1" >>confdefs.h
26566
26567
26568fi
26569
26570    # PCI support via libpciaccess.  NOTE: we do not support
26571    # libpci/pciutils because that library is GPL and is incompatible
26572    # with our BSD license.
26573    hwloc_pciaccess_happy=no
26574    if test "x$enable_io" != xno && test "x$enable_pci" != xno; then
26575      hwloc_pciaccess_happy=yes
26576
26577
26578    HWLOC_pkg_failed=no
26579    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
26580printf %s "checking for PCIACCESS... " >&6; }
26581
26582    if test -n "$PKG_CONFIG"; then
26583    if test -n "$HWLOC_PCIACCESS_CFLAGS"; then
26584        HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS="$HWLOC_PCIACCESS_CFLAGS"
26585    else
26586        if test -n "$PKG_CONFIG" && \
26587    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5
26588  ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5
26589  ac_status=$?
26590  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591  test $ac_status = 0; }; then
26592    HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess" 2>/dev/null`
26593    else
26594                     HWLOC_pkg_failed=yes
26595fi
26596    fi
26597else
26598	HWLOC_pkg_failed=untried
26599fi
26600
26601    if test -n "$PKG_CONFIG"; then
26602    if test -n "$HWLOC_PCIACCESS_LIBS"; then
26603        HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS="$HWLOC_PCIACCESS_LIBS"
26604    else
26605        if test -n "$PKG_CONFIG" && \
26606    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5
26607  ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5
26608  ac_status=$?
26609  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610  test $ac_status = 0; }; then
26611    HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess" 2>/dev/null`
26612    else
26613                     HWLOC_pkg_failed=yes
26614fi
26615    fi
26616else
26617	HWLOC_pkg_failed=untried
26618fi
26619
26620
26621
26622
26623    # Check for failure of pkg-config
26624    if test $HWLOC_pkg_failed = yes; then
26625
26626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26627        HWLOC_pkg_short_errors_supported=yes
26628else
26629        HWLOC_pkg_short_errors_supported=no
26630fi
26631        if test $HWLOC_pkg_short_errors_supported = yes; then
26632            HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess" 2>&1`
26633        else
26634            HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess" 2>&1`
26635        fi
26636        # Put the nasty error message in config.log where it belongs
26637	echo "$HWLOC_PCIACCESS_PKG_ERRORS" >&5
26638
26639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26640printf "%s\n" "no" >&6; }
26641                hwloc_pciaccess_happy=no
26642    elif test $HWLOC_pkg_failed = untried; then
26643        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
26644printf "%s\n" "cannot check without pkg-config" >&6; }
26645		hwloc_pciaccess_happy=no
26646    else
26647        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26648printf "%s\n" "yes" >&6; }
26649
26650        # If we got good results from pkg-config, check that they
26651        # actually work (i.e., that we can link against the resulting
26652        # $LIBS).  The canonical example why we do this is if
26653        # pkg-config returns 64 bit libraries but ./configure was run
26654        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
26655        # results, but we'll fail if we try to link.  So detect that
26656        # failure now.
26657        # There are also cases on Mac where pkg-config returns paths
26658        # that do not actually exists until some magic is applied.
26659        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
26660        # So check whether we find the header as well.
26661        hwloc_cflags_save=$CFLAGS
26662        hwloc_cppflags_save=$CPPFLAGS
26663        hwloc_libs_save=$LIBS
26664        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS"
26665        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS"
26666        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS"
26667        ac_fn_c_check_header_compile "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
26668if test "x$ac_cv_header_pciaccess_h" = xyes
26669then :
26670
26671            ac_fn_c_check_func "$LINENO" "pci_slot_match_iterator_create" "ac_cv_func_pci_slot_match_iterator_create"
26672if test "x$ac_cv_func_pci_slot_match_iterator_create" = xyes
26673then :
26674  hwloc_result=yes
26675else $as_nop
26676  hwloc_result=no
26677fi
26678
26679
26680else $as_nop
26681  hwloc_result=no
26682fi
26683
26684        CFLAGS=$hwloc_cflags_save
26685        CPPFLAGS=$hwloc_cppflags_save
26686        LIBS=$hwloc_libs_save
26687
26688        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final PCIACCESS support" >&5
26689printf %s "checking for final PCIACCESS support... " >&6; }
26690        if test "$hwloc_result" = "yes"
26691then :
26692  HWLOC_PCIACCESS_CFLAGS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS
26693               HWLOC_PCIACCESS_LIBS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS
26694               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26695printf "%s\n" "yes" >&6; }
26696               :
26697else $as_nop
26698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26699printf "%s\n" "no" >&6; }
26700               hwloc_pciaccess_happy=no
26701fi
26702    fi
26703
26704      # Only add the REQUIRES if we got pciaccess through pkg-config.
26705      # Otherwise we don't know if pciaccess.pc is installed
26706      if test "$hwloc_pciaccess_happy" = "yes"
26707then :
26708  HWLOC_PCIACCESS_REQUIRES=pciaccess
26709fi
26710
26711      # Just for giggles, if we didn't find a pciaccess pkg-config,
26712      # just try looking for its header file and library.
26713      if test "$hwloc_pciaccess_happy" != "yes"
26714then :
26715  ac_fn_c_check_header_compile "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
26716if test "x$ac_cv_header_pciaccess_h" = xyes
26717then :
26718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pci_slot_match_iterator_create in -lpciaccess" >&5
26719printf %s "checking for pci_slot_match_iterator_create in -lpciaccess... " >&6; }
26720if test ${ac_cv_lib_pciaccess_pci_slot_match_iterator_create+y}
26721then :
26722  printf %s "(cached) " >&6
26723else $as_nop
26724  ac_check_lib_save_LIBS=$LIBS
26725LIBS="-lpciaccess  $LIBS"
26726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26727/* end confdefs.h.  */
26728
26729/* Override any GCC internal prototype to avoid an error.
26730   Use char because int might match the return type of a GCC
26731   builtin and then its argument prototype would still apply.  */
26732char pci_slot_match_iterator_create ();
26733int
26734main (void)
26735{
26736return pci_slot_match_iterator_create ();
26737  ;
26738  return 0;
26739}
26740_ACEOF
26741if ac_fn_c_try_link "$LINENO"
26742then :
26743  ac_cv_lib_pciaccess_pci_slot_match_iterator_create=yes
26744else $as_nop
26745  ac_cv_lib_pciaccess_pci_slot_match_iterator_create=no
26746fi
26747rm -f core conftest.err conftest.$ac_objext conftest.beam \
26748    conftest$ac_exeext conftest.$ac_ext
26749LIBS=$ac_check_lib_save_LIBS
26750fi
26751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&5
26752printf "%s\n" "$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&6; }
26753if test "x$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" = xyes
26754then :
26755  hwloc_pciaccess_happy=yes
26756                    HWLOC_PCIACCESS_LIBS="-lpciaccess"
26757
26758
26759fi
26760
26761
26762fi
26763
26764
26765fi
26766
26767      if test "$hwloc_pciaccess_happy" = "yes"
26768then :
26769  hwloc_components="$hwloc_components pci"
26770          hwloc_pci_component_maybeplugin=1
26771fi
26772    fi
26773    # If we asked for pci support but couldn't deliver, fail
26774    if test "$enable_pci" = "yes" -a "$hwloc_pciaccess_happy" = "no"
26775then :
26776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-pci switch, but could not" >&5
26777printf "%s\n" "$as_me: WARNING: Specified --enable-pci switch, but could not" >&2;}
26778           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
26779printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
26780           as_fn_error $? "Cannot continue" "$LINENO" 5
26781fi
26782    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
26783
26784    if test "x$enable_io" != xno && test "x$enable_opencl" != xno -o "x$enable_cuda" != xno -o "x$enable_nvml" != xno; then
26785      # Try to find CUDA pkg-config using a specific CUDA version
26786      # Use --with-cuda-version first, or $CUDA_VERSION
26787      cuda_version=$CUDA_VERSION
26788      if test "x$with_cuda_version" != xno -a "x$with_cuda_version" != x; then
26789        cuda_version=$with_cuda_version
26790      fi
26791      if test x$cuda_version != x; then
26792        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cuda-$cuda_version.pc exists" >&5
26793printf %s "checking if cuda-$cuda_version.pc exists... " >&6; }
26794        if test -n "$PKG_CONFIG" && \
26795    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cuda-\$cuda_version\""; } >&5
26796  ($PKG_CONFIG --exists --silence-errors "cuda-$cuda_version") 2>&5
26797  ac_status=$?
26798  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799  test $ac_status = 0; }; then
26800
26801           cudapc=cuda-$cuda_version
26802           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26803printf "%s\n" "yes" >&6; }
26804            if test -n "$PKG_CONFIG"; then
26805    if test -n "$cuda_includedir"; then
26806        HWLOC_pkg_cv_cuda_includedir="$cuda_includedir"
26807    else
26808        if test -n "$PKG_CONFIG" && \
26809    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
26810  ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
26811  ac_status=$?
26812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26813  test $ac_status = 0; }; then
26814    HWLOC_pkg_cv_cuda_includedir=`$PKG_CONFIG --variable=includedir "$cudapc" 2>/dev/null`
26815    else
26816                     HWLOC_pkg_failed=yes
26817fi
26818    fi
26819else
26820	HWLOC_pkg_failed=untried
26821fi
26822
26823            if test -n "$PKG_CONFIG"; then
26824    if test -n "$cuda_libdir"; then
26825        HWLOC_pkg_cv_cuda_libdir="$cuda_libdir"
26826    else
26827        if test -n "$PKG_CONFIG" && \
26828    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
26829  ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
26830  ac_status=$?
26831  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26832  test $ac_status = 0; }; then
26833    HWLOC_pkg_cv_cuda_libdir=`$PKG_CONFIG --variable=libdir "$cudapc" 2>/dev/null`
26834    else
26835                     HWLOC_pkg_failed=yes
26836fi
26837    fi
26838else
26839	HWLOC_pkg_failed=untried
26840fi
26841
26842
26843    else
26844                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26845printf "%s\n" "no" >&6; }
26846fi
26847        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cudart-$cuda_version.pc exists" >&5
26848printf %s "checking if cudart-$cuda_version.pc exists... " >&6; }
26849        if test -n "$PKG_CONFIG" && \
26850    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cudart-\$cuda_version\""; } >&5
26851  ($PKG_CONFIG --exists --silence-errors "cudart-$cuda_version") 2>&5
26852  ac_status=$?
26853  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26854  test $ac_status = 0; }; then
26855
26856           cudartpc=cudart-$cuda_version
26857           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26858printf "%s\n" "yes" >&6; }
26859
26860    else
26861                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26862printf "%s\n" "no" >&6; }
26863fi
26864      fi
26865
26866      # OpenCL/NVML/CUDA may use CUDA directories, define common directories
26867      # libnvidia-ml.so (and libcuda.so for tests) is under stubs
26868      # when the driver isn't installed on the build machine.
26869      # hwloc programs will fail to link if libnvidia-ml.so.1 is not available there too.
26870      if test "x$with_cuda" != xno -a "x$with_cuda" != x; then
26871        if test "x${ac_cv_sizeof_void_p}" = x4; then
26872          HWLOC_CUDA_COMMON_LDFLAGS="-L$with_cuda/lib/ -L$with_cuda/lib/stubs/"
26873        else
26874          HWLOC_CUDA_COMMON_LDFLAGS="-L$with_cuda/lib64/ -L$with_cuda/lib64/stubs/"
26875        fi
26876        HWLOC_CUDA_COMMON_CPPFLAGS="-I$with_cuda/include/"
26877      else
26878        # or use cuda libdir/includedir from cuda.pc above
26879        if test x$HWLOC_pkg_cv_cuda_includedir != x -a x$HWLOC_pkg_cv_cuda_libdir != x; then
26880          HWLOC_CUDA_COMMON_LDFLAGS="-L$HWLOC_pkg_cv_cuda_libdir -L$HWLOC_pkg_cv_cuda_libdir/stubs/"
26881          HWLOC_CUDA_COMMON_CPPFLAGS="-I$HWLOC_pkg_cv_cuda_includedir"
26882        fi
26883      fi
26884      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: common CUDA/OpenCL/NVML CPPFLAGS: $HWLOC_CUDA_COMMON_CPPFLAGS" >&5
26885printf "%s\n" "$as_me: common CUDA/OpenCL/NVML CPPFLAGS: $HWLOC_CUDA_COMMON_CPPFLAGS" >&6;}
26886      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: common CUDA/OpenCL/NVML LDFLAGS: $HWLOC_CUDA_COMMON_LDFLAGS" >&5
26887printf "%s\n" "$as_me: common CUDA/OpenCL/NVML LDFLAGS: $HWLOC_CUDA_COMMON_LDFLAGS" >&6;}
26888    fi
26889
26890    # OpenCL support
26891    hwloc_opencl_happy=no
26892    if test "x$enable_io" != xno && test "x$enable_opencl" != "xno"; then
26893      hwloc_opencl_happy=yes
26894      case ${target} in
26895      *-*-darwin*)
26896        # On Darwin, only use the OpenCL framework
26897               for ac_header in OpenCL/cl_ext.h
26898do :
26899  ac_fn_c_check_header_compile "$LINENO" "OpenCL/cl_ext.h" "ac_cv_header_OpenCL_cl_ext_h" "$ac_includes_default"
26900if test "x$ac_cv_header_OpenCL_cl_ext_h" = xyes
26901then :
26902  printf "%s\n" "#define HAVE_OPENCL_CL_EXT_H 1" >>confdefs.h
26903
26904	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the OpenCL framework" >&5
26905printf %s "checking for the OpenCL framework... " >&6; }
26906          tmp_save_LDFLAGS="$LDFLAGS"
26907          LDFLAGS="$LDFLAGS -framework OpenCL"
26908	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909/* end confdefs.h.  */
26910
26911
26912#include <OpenCL/opencl.h>
26913
26914int
26915main (void)
26916{
26917
26918return clGetDeviceIDs(0, 0, 0, NULL, NULL);
26919
26920  ;
26921  return 0;
26922}
26923_ACEOF
26924if ac_fn_c_try_link "$LINENO"
26925then :
26926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26927printf "%s\n" "yes" >&6; }
26928	   HWLOC_OPENCL_LDFLAGS="-framework OpenCL"
26929else $as_nop
26930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26931printf "%s\n" "no" >&6; }
26932	   hwloc_opencl_happy=no
26933fi
26934rm -f core conftest.err conftest.$ac_objext conftest.beam \
26935    conftest$ac_exeext conftest.$ac_ext
26936          LDFLAGS="$tmp_save_LDFLAGS"
26937
26938else $as_nop
26939  hwloc_opencl_happy=no
26940fi
26941
26942done
26943      ;;
26944      *)
26945        # On Others, look for OpenCL at normal locations
26946        HWLOC_OPENCL_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
26947        HWLOC_OPENCL_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
26948        tmp_save_CPPFLAGS="$CPPFLAGS"
26949        CPPFLAGS="$CPPFLAGS $HWLOC_OPENCL_CPPFLAGS"
26950        tmp_save_LDFLAGS="$LDFLAGS"
26951        LDFLAGS="$LDFLAGS $HWLOC_OPENCL_LDFLAGS"
26952               for ac_header in CL/cl_ext.h
26953do :
26954  ac_fn_c_check_header_compile "$LINENO" "CL/cl_ext.h" "ac_cv_header_CL_cl_ext_h" "$ac_includes_default"
26955if test "x$ac_cv_header_CL_cl_ext_h" = xyes
26956then :
26957  printf "%s\n" "#define HAVE_CL_CL_EXT_H 1" >>confdefs.h
26958
26959	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clGetDeviceIDs in -lOpenCL" >&5
26960printf %s "checking for clGetDeviceIDs in -lOpenCL... " >&6; }
26961if test ${ac_cv_lib_OpenCL_clGetDeviceIDs+y}
26962then :
26963  printf %s "(cached) " >&6
26964else $as_nop
26965  ac_check_lib_save_LIBS=$LIBS
26966LIBS="-lOpenCL  $LIBS"
26967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26968/* end confdefs.h.  */
26969
26970/* Override any GCC internal prototype to avoid an error.
26971   Use char because int might match the return type of a GCC
26972   builtin and then its argument prototype would still apply.  */
26973char clGetDeviceIDs ();
26974int
26975main (void)
26976{
26977return clGetDeviceIDs ();
26978  ;
26979  return 0;
26980}
26981_ACEOF
26982if ac_fn_c_try_link "$LINENO"
26983then :
26984  ac_cv_lib_OpenCL_clGetDeviceIDs=yes
26985else $as_nop
26986  ac_cv_lib_OpenCL_clGetDeviceIDs=no
26987fi
26988rm -f core conftest.err conftest.$ac_objext conftest.beam \
26989    conftest$ac_exeext conftest.$ac_ext
26990LIBS=$ac_check_lib_save_LIBS
26991fi
26992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetDeviceIDs" >&5
26993printf "%s\n" "$ac_cv_lib_OpenCL_clGetDeviceIDs" >&6; }
26994if test "x$ac_cv_lib_OpenCL_clGetDeviceIDs" = xyes
26995then :
26996  HWLOC_OPENCL_LIBS="-lOpenCL"
26997else $as_nop
26998  hwloc_opencl_happy=no
26999fi
27000
27001
27002else $as_nop
27003  hwloc_opencl_happy=no
27004fi
27005
27006done
27007        CPPFLAGS="$tmp_save_CPPFLAGS"
27008        LDFLAGS="$tmp_save_LDFLAGS"
27009      ;;
27010      esac
27011    fi
27012
27013
27014
27015    # If we asked for opencl support but couldn't deliver, fail
27016    if test "$enable_opencl" = "yes" -a "$hwloc_opencl_happy" = "no"
27017then :
27018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-opencl switch, but could not" >&5
27019printf "%s\n" "$as_me: WARNING: Specified --enable-opencl switch, but could not" >&2;}
27020           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
27021printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
27022           as_fn_error $? "Cannot continue" "$LINENO" 5
27023fi
27024    if test "x$hwloc_opencl_happy" = "xyes"; then
27025
27026printf "%s\n" "#define HWLOC_HAVE_OPENCL 1" >>confdefs.h
27027
27028      HWLOC_HAVE_OPENCL=1
27029
27030      hwloc_components="$hwloc_components opencl"
27031      hwloc_opencl_component_maybeplugin=1
27032    else
27033      HWLOC_HAVE_OPENCL=0
27034
27035    fi
27036    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
27037
27038    # CUDA support
27039    hwloc_have_cuda=no
27040    hwloc_have_cudart=no
27041    if test "x$enable_io" != xno && test "x$enable_cuda" != "xno"; then
27042      # Look for CUDA first, for our test only
27043      if test "x$cudapc" != x; then
27044
27045
27046    HWLOC_pkg_failed=no
27047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
27048printf %s "checking for CUDA... " >&6; }
27049
27050    if test -n "$PKG_CONFIG"; then
27051    if test -n "$HWLOC_CUDA_CFLAGS"; then
27052        HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS="$HWLOC_CUDA_CFLAGS"
27053    else
27054        if test -n "$PKG_CONFIG" && \
27055    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
27056  ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
27057  ac_status=$?
27058  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27059  test $ac_status = 0; }; then
27060    HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS=`$PKG_CONFIG --cflags "$cudapc" 2>/dev/null`
27061    else
27062                     HWLOC_pkg_failed=yes
27063fi
27064    fi
27065else
27066	HWLOC_pkg_failed=untried
27067fi
27068
27069    if test -n "$PKG_CONFIG"; then
27070    if test -n "$HWLOC_CUDA_LIBS"; then
27071        HWLOC_pkg_cv_HWLOC_CUDA_LIBS="$HWLOC_CUDA_LIBS"
27072    else
27073        if test -n "$PKG_CONFIG" && \
27074    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudapc\""; } >&5
27075  ($PKG_CONFIG --exists --silence-errors "$cudapc") 2>&5
27076  ac_status=$?
27077  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078  test $ac_status = 0; }; then
27079    HWLOC_pkg_cv_HWLOC_CUDA_LIBS=`$PKG_CONFIG --libs "$cudapc" 2>/dev/null`
27080    else
27081                     HWLOC_pkg_failed=yes
27082fi
27083    fi
27084else
27085	HWLOC_pkg_failed=untried
27086fi
27087
27088
27089
27090
27091    # Check for failure of pkg-config
27092    if test $HWLOC_pkg_failed = yes; then
27093
27094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27095        HWLOC_pkg_short_errors_supported=yes
27096else
27097        HWLOC_pkg_short_errors_supported=no
27098fi
27099        if test $HWLOC_pkg_short_errors_supported = yes; then
27100            HWLOC_CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$cudapc" 2>&1`
27101        else
27102            HWLOC_CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$cudapc" 2>&1`
27103        fi
27104        # Put the nasty error message in config.log where it belongs
27105	echo "$HWLOC_CUDA_PKG_ERRORS" >&5
27106
27107	as_fn_error $? "Package requirements ($cudapc) were not met:
27108
27109$HWLOC_CUDA_PKG_ERRORS
27110
27111Consider adjusting the PKG_CONFIG_PATH environment variable if you
27112installed software in a non-standard prefix.
27113
27114Alternatively, you may set the environment variables HWLOC_CUDA_CFLAGS
27115and HWLOC_CUDA_LIBS to avoid the need to call pkg-config.
27116See the pkg-config man page for more details.
27117" "$LINENO" 5
27118    elif test $HWLOC_pkg_failed = untried; then
27119        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
27121as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27122is in your PATH or set the PKG_CONFIG environment variable to the full
27123path to pkg-config.
27124
27125Alternatively, you may set the environment variables HWLOC_CUDA_CFLAGS
27126and HWLOC_CUDA_LIBS to avoid the need to call pkg-config.
27127See the pkg-config man page for more details.
27128
27129To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27130See \`config.log' for more details" "$LINENO" 5; }
27131    else
27132        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27133printf "%s\n" "yes" >&6; }
27134
27135        # If we got good results from pkg-config, check that they
27136        # actually work (i.e., that we can link against the resulting
27137        # $LIBS).  The canonical example why we do this is if
27138        # pkg-config returns 64 bit libraries but ./configure was run
27139        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
27140        # results, but we'll fail if we try to link.  So detect that
27141        # failure now.
27142        # There are also cases on Mac where pkg-config returns paths
27143        # that do not actually exists until some magic is applied.
27144        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
27145        # So check whether we find the header as well.
27146        hwloc_cflags_save=$CFLAGS
27147        hwloc_cppflags_save=$CPPFLAGS
27148        hwloc_libs_save=$LIBS
27149        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS"
27150        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS"
27151        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CUDA_LIBS"
27152        ac_fn_c_check_header_compile "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
27153if test "x$ac_cv_header_cuda_h" = xyes
27154then :
27155
27156            ac_fn_c_check_func "$LINENO" "cuInit" "ac_cv_func_cuInit"
27157if test "x$ac_cv_func_cuInit" = xyes
27158then :
27159  hwloc_result=yes
27160else $as_nop
27161  hwloc_result=no
27162fi
27163
27164
27165else $as_nop
27166  hwloc_result=no
27167fi
27168
27169        CFLAGS=$hwloc_cflags_save
27170        CPPFLAGS=$hwloc_cppflags_save
27171        LIBS=$hwloc_libs_save
27172
27173        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final CUDA support" >&5
27174printf %s "checking for final CUDA support... " >&6; }
27175        if test "$hwloc_result" = "yes"
27176then :
27177  HWLOC_CUDA_CFLAGS=$HWLOC_pkg_cv_HWLOC_CUDA_CFLAGS
27178               HWLOC_CUDA_LIBS=$HWLOC_pkg_cv_HWLOC_CUDA_LIBS
27179               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27180printf "%s\n" "yes" >&6; }
27181               hwloc_have_cuda=yes
27182else $as_nop
27183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27184printf "%s\n" "no" >&6; }
27185               :
27186fi
27187    fi
27188      else
27189        HWLOC_CUDA_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
27190        HWLOC_CUDA_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
27191        tmp_save_CPPFLAGS="$CPPFLAGS"
27192        CPPFLAGS="$CPPFLAGS $HWLOC_CUDA_CPPFLAGS"
27193        tmp_save_LDFLAGS="$LDFLAGS"
27194        LDFLAGS="$LDFLAGS $HWLOC_CUDA_LDFLAGS"
27195               for ac_header in cuda.h
27196do :
27197  ac_fn_c_check_header_compile "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
27198if test "x$ac_cv_header_cuda_h" = xyes
27199then :
27200  printf "%s\n" "#define HAVE_CUDA_H 1" >>confdefs.h
27201
27202          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CUDA_VERSION >= 3020" >&5
27203printf %s "checking if CUDA_VERSION >= 3020... " >&6; }
27204          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27205/* end confdefs.h.  */
27206
27207#include <cuda.h>
27208#ifndef CUDA_VERSION
27209#error CUDA_VERSION undefined
27210#elif CUDA_VERSION < 3020
27211#error CUDA_VERSION too old
27212#endif
27213int
27214main (void)
27215{
27216int i = 3;
27217  ;
27218  return 0;
27219}
27220_ACEOF
27221if ac_fn_c_try_compile "$LINENO"
27222then :
27223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27224printf "%s\n" "yes" >&6; }
27225            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5
27226printf %s "checking for cuInit in -lcuda... " >&6; }
27227if test ${ac_cv_lib_cuda_cuInit+y}
27228then :
27229  printf %s "(cached) " >&6
27230else $as_nop
27231  ac_check_lib_save_LIBS=$LIBS
27232LIBS="-lcuda  $LIBS"
27233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27234/* end confdefs.h.  */
27235
27236/* Override any GCC internal prototype to avoid an error.
27237   Use char because int might match the return type of a GCC
27238   builtin and then its argument prototype would still apply.  */
27239char cuInit ();
27240int
27241main (void)
27242{
27243return cuInit ();
27244  ;
27245  return 0;
27246}
27247_ACEOF
27248if ac_fn_c_try_link "$LINENO"
27249then :
27250  ac_cv_lib_cuda_cuInit=yes
27251else $as_nop
27252  ac_cv_lib_cuda_cuInit=no
27253fi
27254rm -f core conftest.err conftest.$ac_objext conftest.beam \
27255    conftest$ac_exeext conftest.$ac_ext
27256LIBS=$ac_check_lib_save_LIBS
27257fi
27258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5
27259printf "%s\n" "$ac_cv_lib_cuda_cuInit" >&6; }
27260if test "x$ac_cv_lib_cuda_cuInit" = xyes
27261then :
27262
27263              HWLOC_CUDA_LIBS="-lcuda"
27264              hwloc_have_cuda=yes
27265
27266fi
27267
27268
27269else $as_nop
27270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27271printf "%s\n" "no" >&6; }
27272fi
27273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27274fi
27275
27276done
27277        CPPFLAGS="$tmp_save_CPPFLAGS"
27278        LDFLAGS="$tmp_save_LDFLAGS"
27279      fi
27280      if test x$hwloc_have_cuda = xyes; then
27281
27282
27283
27284
27285
27286printf "%s\n" "#define HAVE_CUDA 1" >>confdefs.h
27287
27288      fi
27289
27290      # Look for CUDART now, for library and tests
27291      if test "x$cudartpc" != x; then
27292
27293
27294    HWLOC_pkg_failed=no
27295    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CUDART" >&5
27296printf %s "checking for CUDART... " >&6; }
27297
27298    if test -n "$PKG_CONFIG"; then
27299    if test -n "$HWLOC_CUDART_CFLAGS"; then
27300        HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS="$HWLOC_CUDART_CFLAGS"
27301    else
27302        if test -n "$PKG_CONFIG" && \
27303    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudartpc\""; } >&5
27304  ($PKG_CONFIG --exists --silence-errors "$cudartpc") 2>&5
27305  ac_status=$?
27306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307  test $ac_status = 0; }; then
27308    HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS=`$PKG_CONFIG --cflags "$cudartpc" 2>/dev/null`
27309    else
27310                     HWLOC_pkg_failed=yes
27311fi
27312    fi
27313else
27314	HWLOC_pkg_failed=untried
27315fi
27316
27317    if test -n "$PKG_CONFIG"; then
27318    if test -n "$HWLOC_CUDART_LIBS"; then
27319        HWLOC_pkg_cv_HWLOC_CUDART_LIBS="$HWLOC_CUDART_LIBS"
27320    else
27321        if test -n "$PKG_CONFIG" && \
27322    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"\$cudartpc\""; } >&5
27323  ($PKG_CONFIG --exists --silence-errors "$cudartpc") 2>&5
27324  ac_status=$?
27325  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27326  test $ac_status = 0; }; then
27327    HWLOC_pkg_cv_HWLOC_CUDART_LIBS=`$PKG_CONFIG --libs "$cudartpc" 2>/dev/null`
27328    else
27329                     HWLOC_pkg_failed=yes
27330fi
27331    fi
27332else
27333	HWLOC_pkg_failed=untried
27334fi
27335
27336
27337
27338
27339    # Check for failure of pkg-config
27340    if test $HWLOC_pkg_failed = yes; then
27341
27342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27343        HWLOC_pkg_short_errors_supported=yes
27344else
27345        HWLOC_pkg_short_errors_supported=no
27346fi
27347        if test $HWLOC_pkg_short_errors_supported = yes; then
27348            HWLOC_CUDART_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$cudartpc" 2>&1`
27349        else
27350            HWLOC_CUDART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$cudartpc" 2>&1`
27351        fi
27352        # Put the nasty error message in config.log where it belongs
27353	echo "$HWLOC_CUDART_PKG_ERRORS" >&5
27354
27355	as_fn_error $? "Package requirements ($cudartpc) were not met:
27356
27357$HWLOC_CUDART_PKG_ERRORS
27358
27359Consider adjusting the PKG_CONFIG_PATH environment variable if you
27360installed software in a non-standard prefix.
27361
27362Alternatively, you may set the environment variables HWLOC_CUDART_CFLAGS
27363and HWLOC_CUDART_LIBS to avoid the need to call pkg-config.
27364See the pkg-config man page for more details.
27365" "$LINENO" 5
27366    elif test $HWLOC_pkg_failed = untried; then
27367        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27368printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
27369as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27370is in your PATH or set the PKG_CONFIG environment variable to the full
27371path to pkg-config.
27372
27373Alternatively, you may set the environment variables HWLOC_CUDART_CFLAGS
27374and HWLOC_CUDART_LIBS to avoid the need to call pkg-config.
27375See the pkg-config man page for more details.
27376
27377To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27378See \`config.log' for more details" "$LINENO" 5; }
27379    else
27380        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27381printf "%s\n" "yes" >&6; }
27382
27383        # If we got good results from pkg-config, check that they
27384        # actually work (i.e., that we can link against the resulting
27385        # $LIBS).  The canonical example why we do this is if
27386        # pkg-config returns 64 bit libraries but ./configure was run
27387        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
27388        # results, but we'll fail if we try to link.  So detect that
27389        # failure now.
27390        # There are also cases on Mac where pkg-config returns paths
27391        # that do not actually exists until some magic is applied.
27392        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
27393        # So check whether we find the header as well.
27394        hwloc_cflags_save=$CFLAGS
27395        hwloc_cppflags_save=$CPPFLAGS
27396        hwloc_libs_save=$LIBS
27397        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS"
27398        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS"
27399        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CUDART_LIBS"
27400        ac_fn_c_check_header_compile "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
27401if test "x$ac_cv_header_cuda_runtime_api_h" = xyes
27402then :
27403
27404            ac_fn_c_check_func "$LINENO" "cudaGetDeviceProperties" "ac_cv_func_cudaGetDeviceProperties"
27405if test "x$ac_cv_func_cudaGetDeviceProperties" = xyes
27406then :
27407  hwloc_result=yes
27408else $as_nop
27409  hwloc_result=no
27410fi
27411
27412
27413else $as_nop
27414  hwloc_result=no
27415fi
27416
27417        CFLAGS=$hwloc_cflags_save
27418        CPPFLAGS=$hwloc_cppflags_save
27419        LIBS=$hwloc_libs_save
27420
27421        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final CUDART support" >&5
27422printf %s "checking for final CUDART support... " >&6; }
27423        if test "$hwloc_result" = "yes"
27424then :
27425  HWLOC_CUDART_CFLAGS=$HWLOC_pkg_cv_HWLOC_CUDART_CFLAGS
27426               HWLOC_CUDART_LIBS=$HWLOC_pkg_cv_HWLOC_CUDART_LIBS
27427               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27428printf "%s\n" "yes" >&6; }
27429
27430          hwloc_have_cudart=yes
27431          HWLOC_CUDART_REQUIRES=$cudartpc
27432
27433else $as_nop
27434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27435printf "%s\n" "no" >&6; }
27436               :
27437fi
27438    fi
27439      else
27440        HWLOC_CUDART_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
27441        HWLOC_CUDART_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
27442        tmp_save_CPPFLAGS="$CPPFLAGS"
27443        CPPFLAGS="$CPPFLAGS $HWLOC_CUDART_CPPFLAGS"
27444        tmp_save_LDFLAGS="$LDFLAGS"
27445        LDFLAGS="$LDFLAGS $HWLOC_CUDART_LDFLAGS"
27446               for ac_header in cuda_runtime_api.h
27447do :
27448  ac_fn_c_check_header_compile "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
27449if test "x$ac_cv_header_cuda_runtime_api_h" = xyes
27450then :
27451  printf "%s\n" "#define HAVE_CUDA_RUNTIME_API_H 1" >>confdefs.h
27452
27453          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CUDART_VERSION >= 3020" >&5
27454printf %s "checking if CUDART_VERSION >= 3020... " >&6; }
27455          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27456/* end confdefs.h.  */
27457
27458#include <cuda_runtime_api.h>
27459#ifndef CUDART_VERSION
27460#error CUDART_VERSION undefined
27461#elif CUDART_VERSION < 3020
27462#error CUDART_VERSION too old
27463#endif
27464int
27465main (void)
27466{
27467int i = 3;
27468  ;
27469  return 0;
27470}
27471_ACEOF
27472if ac_fn_c_try_compile "$LINENO"
27473then :
27474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27475printf "%s\n" "yes" >&6; }
27476            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cudaGetDeviceProperties in -lcudart" >&5
27477printf %s "checking for cudaGetDeviceProperties in -lcudart... " >&6; }
27478if test ${ac_cv_lib_cudart_cudaGetDeviceProperties+y}
27479then :
27480  printf %s "(cached) " >&6
27481else $as_nop
27482  ac_check_lib_save_LIBS=$LIBS
27483LIBS="-lcudart  $LIBS"
27484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27485/* end confdefs.h.  */
27486
27487/* Override any GCC internal prototype to avoid an error.
27488   Use char because int might match the return type of a GCC
27489   builtin and then its argument prototype would still apply.  */
27490char cudaGetDeviceProperties ();
27491int
27492main (void)
27493{
27494return cudaGetDeviceProperties ();
27495  ;
27496  return 0;
27497}
27498_ACEOF
27499if ac_fn_c_try_link "$LINENO"
27500then :
27501  ac_cv_lib_cudart_cudaGetDeviceProperties=yes
27502else $as_nop
27503  ac_cv_lib_cudart_cudaGetDeviceProperties=no
27504fi
27505rm -f core conftest.err conftest.$ac_objext conftest.beam \
27506    conftest$ac_exeext conftest.$ac_ext
27507LIBS=$ac_check_lib_save_LIBS
27508fi
27509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaGetDeviceProperties" >&5
27510printf "%s\n" "$ac_cv_lib_cudart_cudaGetDeviceProperties" >&6; }
27511if test "x$ac_cv_lib_cudart_cudaGetDeviceProperties" = xyes
27512then :
27513
27514              HWLOC_CUDART_LIBS="-lcudart"
27515              hwloc_have_cudart=yes
27516
27517fi
27518
27519
27520fi
27521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27522
27523fi
27524
27525done
27526        CPPFLAGS="$tmp_save_CPPFLAGS"
27527        LDFLAGS="$tmp_save_LDFLAGS"
27528      fi
27529      if test x$hwloc_have_cudart = xyes; then
27530
27531
27532
27533
27534
27535printf "%s\n" "#define HWLOC_HAVE_CUDART 1" >>confdefs.h
27536
27537      fi
27538
27539      if test "$enable_cuda" = "yes" -a "$hwloc_have_cudart" = "no"
27540then :
27541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-cuda switch, but could not" >&5
27542printf "%s\n" "$as_me: WARNING: Specified --enable-cuda switch, but could not" >&2;}
27543             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
27544printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
27545             as_fn_error $? "Cannot continue" "$LINENO" 5
27546fi
27547      if test "x$with_cuda_version" != x -a "$hwloc_have_cudart" = "no"
27548then :
27549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --with-cuda-version switch, but could not" >&5
27550printf "%s\n" "$as_me: WARNING: Specified --with-cuda-version switch, but could not" >&2;}
27551             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
27552printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
27553             as_fn_error $? "Cannot continue" "$LINENO" 5
27554fi
27555
27556      if test "x$hwloc_have_cudart" = "xyes"; then
27557	hwloc_components="$hwloc_components cuda"
27558        hwloc_cuda_component_maybeplugin=1
27559      fi
27560    fi
27561    # don't add LIBS/CFLAGS yet, depends on plugins
27562
27563    # NVML support
27564    hwloc_nvml_happy=no
27565    if test "x$enable_io" != xno && test "x$enable_nvml" != "xno"; then
27566      hwloc_nvml_happy=yes
27567      HWLOC_NVML_CPPFLAGS="$HWLOC_CUDA_COMMON_CPPFLAGS"
27568      HWLOC_NVML_LDFLAGS="$HWLOC_CUDA_COMMON_LDFLAGS"
27569      tmp_save_CPPFLAGS="$CPPFLAGS"
27570      CPPFLAGS="$CPPFLAGS $HWLOC_NVML_CPPFLAGS"
27571      tmp_save_LDFLAGS="$LDFLAGS"
27572      LDFLAGS="$LDFLAGS $HWLOC_NVML_LDFLAGS"
27573             for ac_header in nvml.h
27574do :
27575  ac_fn_c_check_header_compile "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default"
27576if test "x$ac_cv_header_nvml_h" = xyes
27577then :
27578  printf "%s\n" "#define HAVE_NVML_H 1" >>confdefs.h
27579
27580        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5
27581printf %s "checking for nvmlInit in -lnvidia-ml... " >&6; }
27582if test ${ac_cv_lib_nvidia_ml_nvmlInit+y}
27583then :
27584  printf %s "(cached) " >&6
27585else $as_nop
27586  ac_check_lib_save_LIBS=$LIBS
27587LIBS="-lnvidia-ml  $LIBS"
27588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27589/* end confdefs.h.  */
27590
27591/* Override any GCC internal prototype to avoid an error.
27592   Use char because int might match the return type of a GCC
27593   builtin and then its argument prototype would still apply.  */
27594char nvmlInit ();
27595int
27596main (void)
27597{
27598return nvmlInit ();
27599  ;
27600  return 0;
27601}
27602_ACEOF
27603if ac_fn_c_try_link "$LINENO"
27604then :
27605  ac_cv_lib_nvidia_ml_nvmlInit=yes
27606else $as_nop
27607  ac_cv_lib_nvidia_ml_nvmlInit=no
27608fi
27609rm -f core conftest.err conftest.$ac_objext conftest.beam \
27610    conftest$ac_exeext conftest.$ac_ext
27611LIBS=$ac_check_lib_save_LIBS
27612fi
27613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_ml_nvmlInit" >&5
27614printf "%s\n" "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; }
27615if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes
27616then :
27617  HWLOC_NVML_LIBS="-lnvidia-ml"
27618else $as_nop
27619  hwloc_nvml_happy=no
27620fi
27621
27622
27623else $as_nop
27624  hwloc_nvml_happy=no
27625fi
27626
27627done
27628      CPPFLAGS="$tmp_save_CPPFLAGS"
27629      LDFLAGS="$tmp_save_LDFLAGS"
27630    fi
27631    if test "x$hwloc_nvml_happy" = "xyes"; then
27632      tmp_save_CPPFLAGS="$CPPFLAGS"
27633      CPPFLAGS="$CPPFLAGS $HWLOC_NVML_CPPFLAGS"
27634      ac_fn_check_decl "$LINENO" "nvmlDeviceGetMaxPcieLinkGeneration" "ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" "#include <nvml.h>
27635" "$ac_c_undeclared_builtin_options" "CFLAGS"
27636if test "x$ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" = xyes
27637then :
27638  ac_have_decl=1
27639else $as_nop
27640  ac_have_decl=0
27641fi
27642printf "%s\n" "#define HAVE_DECL_NVMLDEVICEGETMAXPCIELINKGENERATION $ac_have_decl" >>confdefs.h
27643if test $ac_have_decl = 1
27644then :
27645
27646else $as_nop
27647  :
27648fi
27649
27650      CPPFLAGS="$tmp_save_CPPFLAGS"
27651    fi
27652
27653
27654
27655    # If we asked for nvml support but couldn't deliver, fail
27656    if test "$enable_nvml" = "yes" -a "$hwloc_nvml_happy" = "no"
27657then :
27658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-nvml switch, but could not" >&5
27659printf "%s\n" "$as_me: WARNING: Specified --enable-nvml switch, but could not" >&2;}
27660	   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
27661printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
27662	   as_fn_error $? "Cannot continue" "$LINENO" 5
27663fi
27664    if test "x$hwloc_nvml_happy" = "xyes"; then
27665
27666printf "%s\n" "#define HWLOC_HAVE_NVML 1" >>confdefs.h
27667
27668      HWLOC_HAVE_NVML=1
27669
27670      hwloc_components="$hwloc_components nvml"
27671      hwloc_nvml_component_maybeplugin=1
27672    else
27673      HWLOC_HAVE_NVML=0
27674
27675    fi
27676    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
27677
27678    # RSMI support, rocm_smi64 is just library name and not related to 32/64 bits
27679    hwloc_rsmi_happy=no
27680    if test "x$enable_io" != xno && test "x$enable_rsmi" != "xno"; then
27681      hwloc_rsmi_happy=yes
27682             for ac_header in rocm_smi/rocm_smi.h
27683do :
27684  ac_fn_c_check_header_compile "$LINENO" "rocm_smi/rocm_smi.h" "ac_cv_header_rocm_smi_rocm_smi_h" "$ac_includes_default"
27685if test "x$ac_cv_header_rocm_smi_rocm_smi_h" = xyes
27686then :
27687  printf "%s\n" "#define HAVE_ROCM_SMI_ROCM_SMI_H 1" >>confdefs.h
27688
27689        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rsmi_init in -lrocm_smi64" >&5
27690printf %s "checking for rsmi_init in -lrocm_smi64... " >&6; }
27691if test ${ac_cv_lib_rocm_smi64_rsmi_init+y}
27692then :
27693  printf %s "(cached) " >&6
27694else $as_nop
27695  ac_check_lib_save_LIBS=$LIBS
27696LIBS="-lrocm_smi64  $LIBS"
27697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698/* end confdefs.h.  */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701   Use char because int might match the return type of a GCC
27702   builtin and then its argument prototype would still apply.  */
27703char rsmi_init ();
27704int
27705main (void)
27706{
27707return rsmi_init ();
27708  ;
27709  return 0;
27710}
27711_ACEOF
27712if ac_fn_c_try_link "$LINENO"
27713then :
27714  ac_cv_lib_rocm_smi64_rsmi_init=yes
27715else $as_nop
27716  ac_cv_lib_rocm_smi64_rsmi_init=no
27717fi
27718rm -f core conftest.err conftest.$ac_objext conftest.beam \
27719    conftest$ac_exeext conftest.$ac_ext
27720LIBS=$ac_check_lib_save_LIBS
27721fi
27722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rocm_smi64_rsmi_init" >&5
27723printf "%s\n" "$ac_cv_lib_rocm_smi64_rsmi_init" >&6; }
27724if test "x$ac_cv_lib_rocm_smi64_rsmi_init" = xyes
27725then :
27726  HWLOC_RSMI_LIBS="-lrocm_smi64"
27727else $as_nop
27728  hwloc_rsmi_happy=no
27729fi
27730
27731
27732else $as_nop
27733  hwloc_rsmi_happy=no
27734fi
27735
27736done
27737    fi
27738
27739    # If we asked for rsmi support but couldn't deliver, fail
27740    if test "$enable_rsmi" = "yes" -a "$hwloc_rsmi_happy" = "no"
27741then :
27742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-rsmi switch, but could not" >&5
27743printf "%s\n" "$as_me: WARNING: Specified --enable-rsmi switch, but could not" >&2;}
27744      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
27745printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
27746      as_fn_error $? "Cannot continue" "$LINENO" 5
27747fi
27748    if test "x$hwloc_rsmi_happy" = "xyes"; then
27749
27750printf "%s\n" "#define HWLOC_HAVE_RSMI 1" >>confdefs.h
27751
27752      HWLOC_HAVE_RSMI=1
27753
27754      hwloc_components="$hwloc_components rsmi"
27755      hwloc_rsmi_component_maybeplugin=1
27756    else
27757      HWLOC_HAVE_RSMI=0
27758
27759    fi
27760    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
27761
27762    # LevelZero support
27763    hwloc_levelzero_happy=no
27764    if test "x$enable_io" != xno && test "x$enable_levelzero" != "xno"; then
27765
27766
27767    HWLOC_pkg_failed=no
27768    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LEVELZERO" >&5
27769printf %s "checking for LEVELZERO... " >&6; }
27770
27771    if test -n "$PKG_CONFIG"; then
27772    if test -n "$HWLOC_LEVELZERO_CFLAGS"; then
27773        HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS="$HWLOC_LEVELZERO_CFLAGS"
27774    else
27775        if test -n "$PKG_CONFIG" && \
27776    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libze_loader\""; } >&5
27777  ($PKG_CONFIG --exists --silence-errors "libze_loader") 2>&5
27778  ac_status=$?
27779  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27780  test $ac_status = 0; }; then
27781    HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS=`$PKG_CONFIG --cflags "libze_loader" 2>/dev/null`
27782    else
27783                     HWLOC_pkg_failed=yes
27784fi
27785    fi
27786else
27787	HWLOC_pkg_failed=untried
27788fi
27789
27790    if test -n "$PKG_CONFIG"; then
27791    if test -n "$HWLOC_LEVELZERO_LIBS"; then
27792        HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS="$HWLOC_LEVELZERO_LIBS"
27793    else
27794        if test -n "$PKG_CONFIG" && \
27795    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libze_loader\""; } >&5
27796  ($PKG_CONFIG --exists --silence-errors "libze_loader") 2>&5
27797  ac_status=$?
27798  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27799  test $ac_status = 0; }; then
27800    HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS=`$PKG_CONFIG --libs "libze_loader" 2>/dev/null`
27801    else
27802                     HWLOC_pkg_failed=yes
27803fi
27804    fi
27805else
27806	HWLOC_pkg_failed=untried
27807fi
27808
27809
27810
27811
27812    # Check for failure of pkg-config
27813    if test $HWLOC_pkg_failed = yes; then
27814
27815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27816        HWLOC_pkg_short_errors_supported=yes
27817else
27818        HWLOC_pkg_short_errors_supported=no
27819fi
27820        if test $HWLOC_pkg_short_errors_supported = yes; then
27821            HWLOC_LEVELZERO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libze_loader" 2>&1`
27822        else
27823            HWLOC_LEVELZERO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libze_loader" 2>&1`
27824        fi
27825        # Put the nasty error message in config.log where it belongs
27826	echo "$HWLOC_LEVELZERO_PKG_ERRORS" >&5
27827
27828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27829printf "%s\n" "no" >&6; }
27830                hwloc_levelzero_happy=no
27831    elif test $HWLOC_pkg_failed = untried; then
27832        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
27833printf "%s\n" "cannot check without pkg-config" >&6; }
27834		hwloc_levelzero_happy=no
27835    else
27836        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27837printf "%s\n" "yes" >&6; }
27838
27839        # If we got good results from pkg-config, check that they
27840        # actually work (i.e., that we can link against the resulting
27841        # $LIBS).  The canonical example why we do this is if
27842        # pkg-config returns 64 bit libraries but ./configure was run
27843        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
27844        # results, but we'll fail if we try to link.  So detect that
27845        # failure now.
27846        # There are also cases on Mac where pkg-config returns paths
27847        # that do not actually exists until some magic is applied.
27848        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
27849        # So check whether we find the header as well.
27850        hwloc_cflags_save=$CFLAGS
27851        hwloc_cppflags_save=$CPPFLAGS
27852        hwloc_libs_save=$LIBS
27853        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS"
27854        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS"
27855        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS"
27856        ac_fn_c_check_header_compile "$LINENO" "level_zero/zes_api.h" "ac_cv_header_level_zero_zes_api_h" "$ac_includes_default"
27857if test "x$ac_cv_header_level_zero_zes_api_h" = xyes
27858then :
27859
27860            ac_fn_c_check_func "$LINENO" "zesDevicePciGetProperties" "ac_cv_func_zesDevicePciGetProperties"
27861if test "x$ac_cv_func_zesDevicePciGetProperties" = xyes
27862then :
27863  hwloc_result=yes
27864else $as_nop
27865  hwloc_result=no
27866fi
27867
27868
27869else $as_nop
27870  hwloc_result=no
27871fi
27872
27873        CFLAGS=$hwloc_cflags_save
27874        CPPFLAGS=$hwloc_cppflags_save
27875        LIBS=$hwloc_libs_save
27876
27877        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final LEVELZERO support" >&5
27878printf %s "checking for final LEVELZERO support... " >&6; }
27879        if test "$hwloc_result" = "yes"
27880then :
27881  HWLOC_LEVELZERO_CFLAGS=$HWLOC_pkg_cv_HWLOC_LEVELZERO_CFLAGS
27882               HWLOC_LEVELZERO_LIBS=$HWLOC_pkg_cv_HWLOC_LEVELZERO_LIBS
27883               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27884printf "%s\n" "yes" >&6; }
27885               hwloc_levelzero_happy=yes
27886                               HWLOC_LEVELZERO_REQUIRES=libze_loader
27887
27888else $as_nop
27889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27890printf "%s\n" "no" >&6; }
27891               hwloc_levelzero_happy=no
27892fi
27893    fi
27894      if test x$hwloc_levelzero_happy = xno; then
27895        hwloc_levelzero_happy=yes
27896               for ac_header in level_zero/ze_api.h
27897do :
27898  ac_fn_c_check_header_compile "$LINENO" "level_zero/ze_api.h" "ac_cv_header_level_zero_ze_api_h" "$ac_includes_default"
27899if test "x$ac_cv_header_level_zero_ze_api_h" = xyes
27900then :
27901  printf "%s\n" "#define HAVE_LEVEL_ZERO_ZE_API_H 1" >>confdefs.h
27902
27903          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zeInit in -lze_loader" >&5
27904printf %s "checking for zeInit in -lze_loader... " >&6; }
27905if test ${ac_cv_lib_ze_loader_zeInit+y}
27906then :
27907  printf %s "(cached) " >&6
27908else $as_nop
27909  ac_check_lib_save_LIBS=$LIBS
27910LIBS="-lze_loader  $LIBS"
27911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27912/* end confdefs.h.  */
27913
27914/* Override any GCC internal prototype to avoid an error.
27915   Use char because int might match the return type of a GCC
27916   builtin and then its argument prototype would still apply.  */
27917char zeInit ();
27918int
27919main (void)
27920{
27921return zeInit ();
27922  ;
27923  return 0;
27924}
27925_ACEOF
27926if ac_fn_c_try_link "$LINENO"
27927then :
27928  ac_cv_lib_ze_loader_zeInit=yes
27929else $as_nop
27930  ac_cv_lib_ze_loader_zeInit=no
27931fi
27932rm -f core conftest.err conftest.$ac_objext conftest.beam \
27933    conftest$ac_exeext conftest.$ac_ext
27934LIBS=$ac_check_lib_save_LIBS
27935fi
27936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zeInit" >&5
27937printf "%s\n" "$ac_cv_lib_ze_loader_zeInit" >&6; }
27938if test "x$ac_cv_lib_ze_loader_zeInit" = xyes
27939then :
27940
27941                   for ac_header in level_zero/zes_api.h
27942do :
27943  ac_fn_c_check_header_compile "$LINENO" "level_zero/zes_api.h" "ac_cv_header_level_zero_zes_api_h" "$ac_includes_default"
27944if test "x$ac_cv_header_level_zero_zes_api_h" = xyes
27945then :
27946  printf "%s\n" "#define HAVE_LEVEL_ZERO_ZES_API_H 1" >>confdefs.h
27947
27948              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zesDevicePciGetProperties in -lze_loader" >&5
27949printf %s "checking for zesDevicePciGetProperties in -lze_loader... " >&6; }
27950if test ${ac_cv_lib_ze_loader_zesDevicePciGetProperties+y}
27951then :
27952  printf %s "(cached) " >&6
27953else $as_nop
27954  ac_check_lib_save_LIBS=$LIBS
27955LIBS="-lze_loader  $LIBS"
27956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27957/* end confdefs.h.  */
27958
27959/* Override any GCC internal prototype to avoid an error.
27960   Use char because int might match the return type of a GCC
27961   builtin and then its argument prototype would still apply.  */
27962char zesDevicePciGetProperties ();
27963int
27964main (void)
27965{
27966return zesDevicePciGetProperties ();
27967  ;
27968  return 0;
27969}
27970_ACEOF
27971if ac_fn_c_try_link "$LINENO"
27972then :
27973  ac_cv_lib_ze_loader_zesDevicePciGetProperties=yes
27974else $as_nop
27975  ac_cv_lib_ze_loader_zesDevicePciGetProperties=no
27976fi
27977rm -f core conftest.err conftest.$ac_objext conftest.beam \
27978    conftest$ac_exeext conftest.$ac_ext
27979LIBS=$ac_check_lib_save_LIBS
27980fi
27981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zesDevicePciGetProperties" >&5
27982printf "%s\n" "$ac_cv_lib_ze_loader_zesDevicePciGetProperties" >&6; }
27983if test "x$ac_cv_lib_ze_loader_zesDevicePciGetProperties" = xyes
27984then :
27985  HWLOC_LEVELZERO_LIBS="-lze_loader"
27986else $as_nop
27987  hwloc_levelzero_happy=no
27988fi
27989
27990
27991else $as_nop
27992  hwloc_levelzero_happy=no
27993fi
27994
27995done
27996
27997else $as_nop
27998  hwloc_levelzero_happy=no
27999fi
28000
28001
28002else $as_nop
28003  hwloc_levelzero_happy=no
28004fi
28005
28006done
28007      fi
28008    fi
28009
28010    # If we asked for LevelZero support but couldn't deliver, fail
28011    if test "$enable_levelzero" = "yes" -a "$hwloc_levelzero_happy" = "no"
28012then :
28013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-levelzero switch, but could not" >&5
28014printf "%s\n" "$as_me: WARNING: Specified --enable-levelzero switch, but could not" >&2;}
28015      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
28016printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
28017      as_fn_error $? "Cannot continue" "$LINENO" 5
28018fi
28019    if test "x$hwloc_levelzero_happy" = "xyes"; then
28020
28021printf "%s\n" "#define HWLOC_HAVE_LEVELZERO 1" >>confdefs.h
28022
28023      HWLOC_HAVE_LEVELZERO=1
28024
28025      hwloc_components="$hwloc_components levelzero"
28026      hwloc_levelzero_component_maybeplugin=1
28027    else
28028      HWLOC_HAVE_LEVELZERO=0
28029
28030    fi
28031    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
28032
28033    # GL Support
28034    hwloc_gl_happy=no
28035    if test "x$enable_io" != xno && test "x$enable_gl" != "xno"; then
28036	hwloc_gl_happy=yes
28037
28038        # some X11 support (less then lstopo in hwloc_internal.m4)
28039        if test "$no_x" = yes; then
28040  # Not all programs may use this symbol, but it does not hurt to define it.
28041
28042printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
28043
28044  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28045else
28046  if test -n "$x_includes"; then
28047    X_CFLAGS="$X_CFLAGS -I$x_includes"
28048  fi
28049
28050  # It would also be nice to do this for all -L options, not just this one.
28051  if test -n "$x_libraries"; then
28052    X_LIBS="$X_LIBS -L$x_libraries"
28053    # For Solaris; some versions of Sun CC require a space after -R and
28054    # others require no space.  Words are not sufficient . . . .
28055    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
28056printf %s "checking whether -R must be followed by a space... " >&6; }
28057    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28058    ac_xsave_c_werror_flag=$ac_c_werror_flag
28059    ac_c_werror_flag=yes
28060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28061/* end confdefs.h.  */
28062
28063int
28064main (void)
28065{
28066
28067  ;
28068  return 0;
28069}
28070_ACEOF
28071if ac_fn_c_try_link "$LINENO"
28072then :
28073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28074printf "%s\n" "no" >&6; }
28075       X_LIBS="$X_LIBS -R$x_libraries"
28076else $as_nop
28077  LIBS="$ac_xsave_LIBS -R $x_libraries"
28078       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28079/* end confdefs.h.  */
28080
28081int
28082main (void)
28083{
28084
28085  ;
28086  return 0;
28087}
28088_ACEOF
28089if ac_fn_c_try_link "$LINENO"
28090then :
28091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28092printf "%s\n" "yes" >&6; }
28093	  X_LIBS="$X_LIBS -R $x_libraries"
28094else $as_nop
28095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
28096printf "%s\n" "neither works" >&6; }
28097fi
28098rm -f core conftest.err conftest.$ac_objext conftest.beam \
28099    conftest$ac_exeext conftest.$ac_ext
28100fi
28101rm -f core conftest.err conftest.$ac_objext conftest.beam \
28102    conftest$ac_exeext conftest.$ac_ext
28103    ac_c_werror_flag=$ac_xsave_c_werror_flag
28104    LIBS=$ac_xsave_LIBS
28105  fi
28106
28107  # Check for system-dependent libraries X programs must link with.
28108  # Do this before checking for the system-independent R6 libraries
28109  # (-lICE), since we may need -lsocket or whatever for X linking.
28110
28111  if test "$ISC" = yes; then
28112    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28113  else
28114    # Martyn Johnson says this is needed for Ultrix, if the X
28115    # libraries were built with DECnet support.  And Karl Berry says
28116    # the Alpha needs dnet_stub (dnet does not exist).
28117    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28118    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28119/* end confdefs.h.  */
28120
28121/* Override any GCC internal prototype to avoid an error.
28122   Use char because int might match the return type of a GCC
28123   builtin and then its argument prototype would still apply.  */
28124char XOpenDisplay ();
28125int
28126main (void)
28127{
28128return XOpenDisplay ();
28129  ;
28130  return 0;
28131}
28132_ACEOF
28133if ac_fn_c_try_link "$LINENO"
28134then :
28135
28136else $as_nop
28137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
28138printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
28139if test ${ac_cv_lib_dnet_dnet_ntoa+y}
28140then :
28141  printf %s "(cached) " >&6
28142else $as_nop
28143  ac_check_lib_save_LIBS=$LIBS
28144LIBS="-ldnet  $LIBS"
28145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28146/* end confdefs.h.  */
28147
28148/* Override any GCC internal prototype to avoid an error.
28149   Use char because int might match the return type of a GCC
28150   builtin and then its argument prototype would still apply.  */
28151char dnet_ntoa ();
28152int
28153main (void)
28154{
28155return dnet_ntoa ();
28156  ;
28157  return 0;
28158}
28159_ACEOF
28160if ac_fn_c_try_link "$LINENO"
28161then :
28162  ac_cv_lib_dnet_dnet_ntoa=yes
28163else $as_nop
28164  ac_cv_lib_dnet_dnet_ntoa=no
28165fi
28166rm -f core conftest.err conftest.$ac_objext conftest.beam \
28167    conftest$ac_exeext conftest.$ac_ext
28168LIBS=$ac_check_lib_save_LIBS
28169fi
28170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28171printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
28172if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
28173then :
28174  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28175fi
28176
28177    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28178      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
28179printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
28180if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
28181then :
28182  printf %s "(cached) " >&6
28183else $as_nop
28184  ac_check_lib_save_LIBS=$LIBS
28185LIBS="-ldnet_stub  $LIBS"
28186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28187/* end confdefs.h.  */
28188
28189/* Override any GCC internal prototype to avoid an error.
28190   Use char because int might match the return type of a GCC
28191   builtin and then its argument prototype would still apply.  */
28192char dnet_ntoa ();
28193int
28194main (void)
28195{
28196return dnet_ntoa ();
28197  ;
28198  return 0;
28199}
28200_ACEOF
28201if ac_fn_c_try_link "$LINENO"
28202then :
28203  ac_cv_lib_dnet_stub_dnet_ntoa=yes
28204else $as_nop
28205  ac_cv_lib_dnet_stub_dnet_ntoa=no
28206fi
28207rm -f core conftest.err conftest.$ac_objext conftest.beam \
28208    conftest$ac_exeext conftest.$ac_ext
28209LIBS=$ac_check_lib_save_LIBS
28210fi
28211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28212printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
28213if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
28214then :
28215  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28216fi
28217
28218    fi
28219fi
28220rm -f core conftest.err conftest.$ac_objext conftest.beam \
28221    conftest$ac_exeext conftest.$ac_ext
28222    LIBS="$ac_xsave_LIBS"
28223
28224    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28225    # to get the SysV transport functions.
28226    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28227    # needs -lnsl.
28228    # The nsl library prevents programs from opening the X display
28229    # on Irix 5.2, according to T.E. Dickey.
28230    # The functions gethostbyname, getservbyname, and inet_addr are
28231    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28232    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
28233if test "x$ac_cv_func_gethostbyname" = xyes
28234then :
28235
28236fi
28237
28238    if test $ac_cv_func_gethostbyname = no; then
28239      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
28240printf %s "checking for gethostbyname in -lnsl... " >&6; }
28241if test ${ac_cv_lib_nsl_gethostbyname+y}
28242then :
28243  printf %s "(cached) " >&6
28244else $as_nop
28245  ac_check_lib_save_LIBS=$LIBS
28246LIBS="-lnsl  $LIBS"
28247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28248/* end confdefs.h.  */
28249
28250/* Override any GCC internal prototype to avoid an error.
28251   Use char because int might match the return type of a GCC
28252   builtin and then its argument prototype would still apply.  */
28253char gethostbyname ();
28254int
28255main (void)
28256{
28257return gethostbyname ();
28258  ;
28259  return 0;
28260}
28261_ACEOF
28262if ac_fn_c_try_link "$LINENO"
28263then :
28264  ac_cv_lib_nsl_gethostbyname=yes
28265else $as_nop
28266  ac_cv_lib_nsl_gethostbyname=no
28267fi
28268rm -f core conftest.err conftest.$ac_objext conftest.beam \
28269    conftest$ac_exeext conftest.$ac_ext
28270LIBS=$ac_check_lib_save_LIBS
28271fi
28272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
28273printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
28274if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
28275then :
28276  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28277fi
28278
28279      if test $ac_cv_lib_nsl_gethostbyname = no; then
28280	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
28281printf %s "checking for gethostbyname in -lbsd... " >&6; }
28282if test ${ac_cv_lib_bsd_gethostbyname+y}
28283then :
28284  printf %s "(cached) " >&6
28285else $as_nop
28286  ac_check_lib_save_LIBS=$LIBS
28287LIBS="-lbsd  $LIBS"
28288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289/* end confdefs.h.  */
28290
28291/* Override any GCC internal prototype to avoid an error.
28292   Use char because int might match the return type of a GCC
28293   builtin and then its argument prototype would still apply.  */
28294char gethostbyname ();
28295int
28296main (void)
28297{
28298return gethostbyname ();
28299  ;
28300  return 0;
28301}
28302_ACEOF
28303if ac_fn_c_try_link "$LINENO"
28304then :
28305  ac_cv_lib_bsd_gethostbyname=yes
28306else $as_nop
28307  ac_cv_lib_bsd_gethostbyname=no
28308fi
28309rm -f core conftest.err conftest.$ac_objext conftest.beam \
28310    conftest$ac_exeext conftest.$ac_ext
28311LIBS=$ac_check_lib_save_LIBS
28312fi
28313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
28314printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
28315if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
28316then :
28317  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28318fi
28319
28320      fi
28321    fi
28322
28323    # lieder@skyler.mavd.honeywell.com says without -lsocket,
28324    # socket/setsockopt and other routines are undefined under SCO ODT
28325    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
28326    # on later versions), says Simon Leinen: it contains gethostby*
28327    # variants that don't use the name server (or something).  -lsocket
28328    # must be given before -lnsl if both are needed.  We assume that
28329    # if connect needs -lnsl, so does gethostbyname.
28330    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
28331if test "x$ac_cv_func_connect" = xyes
28332then :
28333
28334fi
28335
28336    if test $ac_cv_func_connect = no; then
28337      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
28338printf %s "checking for connect in -lsocket... " >&6; }
28339if test ${ac_cv_lib_socket_connect+y}
28340then :
28341  printf %s "(cached) " >&6
28342else $as_nop
28343  ac_check_lib_save_LIBS=$LIBS
28344LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346/* end confdefs.h.  */
28347
28348/* Override any GCC internal prototype to avoid an error.
28349   Use char because int might match the return type of a GCC
28350   builtin and then its argument prototype would still apply.  */
28351char connect ();
28352int
28353main (void)
28354{
28355return connect ();
28356  ;
28357  return 0;
28358}
28359_ACEOF
28360if ac_fn_c_try_link "$LINENO"
28361then :
28362  ac_cv_lib_socket_connect=yes
28363else $as_nop
28364  ac_cv_lib_socket_connect=no
28365fi
28366rm -f core conftest.err conftest.$ac_objext conftest.beam \
28367    conftest$ac_exeext conftest.$ac_ext
28368LIBS=$ac_check_lib_save_LIBS
28369fi
28370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
28371printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
28372if test "x$ac_cv_lib_socket_connect" = xyes
28373then :
28374  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28375fi
28376
28377    fi
28378
28379    # Guillermo Gomez says -lposix is necessary on A/UX.
28380    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
28381if test "x$ac_cv_func_remove" = xyes
28382then :
28383
28384fi
28385
28386    if test $ac_cv_func_remove = no; then
28387      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
28388printf %s "checking for remove in -lposix... " >&6; }
28389if test ${ac_cv_lib_posix_remove+y}
28390then :
28391  printf %s "(cached) " >&6
28392else $as_nop
28393  ac_check_lib_save_LIBS=$LIBS
28394LIBS="-lposix  $LIBS"
28395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28396/* end confdefs.h.  */
28397
28398/* Override any GCC internal prototype to avoid an error.
28399   Use char because int might match the return type of a GCC
28400   builtin and then its argument prototype would still apply.  */
28401char remove ();
28402int
28403main (void)
28404{
28405return remove ();
28406  ;
28407  return 0;
28408}
28409_ACEOF
28410if ac_fn_c_try_link "$LINENO"
28411then :
28412  ac_cv_lib_posix_remove=yes
28413else $as_nop
28414  ac_cv_lib_posix_remove=no
28415fi
28416rm -f core conftest.err conftest.$ac_objext conftest.beam \
28417    conftest$ac_exeext conftest.$ac_ext
28418LIBS=$ac_check_lib_save_LIBS
28419fi
28420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
28421printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
28422if test "x$ac_cv_lib_posix_remove" = xyes
28423then :
28424  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28425fi
28426
28427    fi
28428
28429    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28430    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
28431if test "x$ac_cv_func_shmat" = xyes
28432then :
28433
28434fi
28435
28436    if test $ac_cv_func_shmat = no; then
28437      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
28438printf %s "checking for shmat in -lipc... " >&6; }
28439if test ${ac_cv_lib_ipc_shmat+y}
28440then :
28441  printf %s "(cached) " >&6
28442else $as_nop
28443  ac_check_lib_save_LIBS=$LIBS
28444LIBS="-lipc  $LIBS"
28445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28446/* end confdefs.h.  */
28447
28448/* Override any GCC internal prototype to avoid an error.
28449   Use char because int might match the return type of a GCC
28450   builtin and then its argument prototype would still apply.  */
28451char shmat ();
28452int
28453main (void)
28454{
28455return shmat ();
28456  ;
28457  return 0;
28458}
28459_ACEOF
28460if ac_fn_c_try_link "$LINENO"
28461then :
28462  ac_cv_lib_ipc_shmat=yes
28463else $as_nop
28464  ac_cv_lib_ipc_shmat=no
28465fi
28466rm -f core conftest.err conftest.$ac_objext conftest.beam \
28467    conftest$ac_exeext conftest.$ac_ext
28468LIBS=$ac_check_lib_save_LIBS
28469fi
28470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
28471printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
28472if test "x$ac_cv_lib_ipc_shmat" = xyes
28473then :
28474  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28475fi
28476
28477    fi
28478  fi
28479
28480  # Check for libraries that X11R6 Xt/Xaw programs need.
28481  ac_save_LDFLAGS=$LDFLAGS
28482  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28483  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28484  # check for ICE first), but we must link in the order -lSM -lICE or
28485  # we get undefined symbols.  So assume we have SM if we have ICE.
28486  # These have to be linked with before -lX11, unlike the other
28487  # libraries we check for below, so use a different variable.
28488  # John Interrante, Karl Berry
28489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
28490printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
28491if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
28492then :
28493  printf %s "(cached) " >&6
28494else $as_nop
28495  ac_check_lib_save_LIBS=$LIBS
28496LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28498/* end confdefs.h.  */
28499
28500/* Override any GCC internal prototype to avoid an error.
28501   Use char because int might match the return type of a GCC
28502   builtin and then its argument prototype would still apply.  */
28503char IceConnectionNumber ();
28504int
28505main (void)
28506{
28507return IceConnectionNumber ();
28508  ;
28509  return 0;
28510}
28511_ACEOF
28512if ac_fn_c_try_link "$LINENO"
28513then :
28514  ac_cv_lib_ICE_IceConnectionNumber=yes
28515else $as_nop
28516  ac_cv_lib_ICE_IceConnectionNumber=no
28517fi
28518rm -f core conftest.err conftest.$ac_objext conftest.beam \
28519    conftest$ac_exeext conftest.$ac_ext
28520LIBS=$ac_check_lib_save_LIBS
28521fi
28522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28523printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28524if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
28525then :
28526  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28527fi
28528
28529  LDFLAGS=$ac_save_LDFLAGS
28530
28531fi
28532
28533
28534        CPPFLAGS_save=$CPPFLAGS
28535        LIBS_save=$LIBS
28536
28537        CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28538        LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
28539               for ac_header in X11/Xlib.h
28540do :
28541  ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
28542if test "x$ac_cv_header_X11_Xlib_h" = xyes
28543then :
28544  printf "%s\n" "#define HAVE_X11_XLIB_H 1" >>confdefs.h
28545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
28546printf %s "checking for XOpenDisplay in -lX11... " >&6; }
28547if test ${ac_cv_lib_X11_XOpenDisplay+y}
28548then :
28549  printf %s "(cached) " >&6
28550else $as_nop
28551  ac_check_lib_save_LIBS=$LIBS
28552LIBS="-lX11  $LIBS"
28553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28554/* end confdefs.h.  */
28555
28556/* Override any GCC internal prototype to avoid an error.
28557   Use char because int might match the return type of a GCC
28558   builtin and then its argument prototype would still apply.  */
28559char XOpenDisplay ();
28560int
28561main (void)
28562{
28563return XOpenDisplay ();
28564  ;
28565  return 0;
28566}
28567_ACEOF
28568if ac_fn_c_try_link "$LINENO"
28569then :
28570  ac_cv_lib_X11_XOpenDisplay=yes
28571else $as_nop
28572  ac_cv_lib_X11_XOpenDisplay=no
28573fi
28574rm -f core conftest.err conftest.$ac_objext conftest.beam \
28575    conftest$ac_exeext conftest.$ac_ext
28576LIBS=$ac_check_lib_save_LIBS
28577fi
28578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
28579printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; }
28580if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
28581then :
28582  hwloc_enable_X11=yes
28583fi
28584
28585
28586fi
28587
28588done
28589        CPPFLAGS=$CPPFLAGS_save
28590        LIBS=$LIBS_save
28591
28592        if test "$hwloc_enable_X11" != "yes"
28593then :
28594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: X11 not found; GL disabled" >&5
28595printf "%s\n" "$as_me: WARNING: X11 not found; GL disabled" >&2;}
28596               hwloc_gl_happy=no
28597fi
28598
28599               for ac_header in NVCtrl/NVCtrl.h
28600do :
28601  ac_fn_c_check_header_compile "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default"
28602if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = xyes
28603then :
28604  printf "%s\n" "#define HAVE_NVCTRL_NVCTRL_H 1" >>confdefs.h
28605
28606          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl" >&5
28607printf %s "checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... " >&6; }
28608if test ${ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute+y}
28609then :
28610  printf %s "(cached) " >&6
28611else $as_nop
28612  ac_check_lib_save_LIBS=$LIBS
28613LIBS="-lXNVCtrl -lXext $LIBS"
28614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28615/* end confdefs.h.  */
28616
28617/* Override any GCC internal prototype to avoid an error.
28618   Use char because int might match the return type of a GCC
28619   builtin and then its argument prototype would still apply.  */
28620char XNVCTRLQueryTargetAttribute ();
28621int
28622main (void)
28623{
28624return XNVCTRLQueryTargetAttribute ();
28625  ;
28626  return 0;
28627}
28628_ACEOF
28629if ac_fn_c_try_link "$LINENO"
28630then :
28631  ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=yes
28632else $as_nop
28633  ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=no
28634fi
28635rm -f core conftest.err conftest.$ac_objext conftest.beam \
28636    conftest$ac_exeext conftest.$ac_ext
28637LIBS=$ac_check_lib_save_LIBS
28638fi
28639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&5
28640printf "%s\n" "$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&6; }
28641if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" = xyes
28642then :
28643  :
28644else $as_nop
28645  hwloc_gl_happy=no
28646fi
28647
28648
28649else $as_nop
28650  hwloc_gl_happy=no
28651fi
28652
28653done
28654
28655        if test "x$hwloc_gl_happy" = "xyes"; then
28656
28657printf "%s\n" "#define HWLOC_HAVE_GL 1" >>confdefs.h
28658
28659	    HWLOC_GL_LIBS="-lXNVCtrl -lXext -lX11"
28660
28661	    # FIXME we actually don't know if xext.pc and x11.pc are installed
28662	    # since we didn't look for Xext and X11 using pkg-config
28663	    HWLOC_GL_REQUIRES="xext x11"
28664            hwloc_have_gl=yes
28665	    hwloc_components="$hwloc_components gl"
28666	    hwloc_gl_component_maybeplugin=1
28667	else
28668            if test "$enable_gl" = "yes"
28669then :
28670
28671                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-gl switch, but could not" >&5
28672printf "%s\n" "$as_me: WARNING: Specified --enable-gl switch, but could not" >&2;}
28673                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
28674printf "%s\n" "$as_me: WARNING: find appropriate support" >&2;}
28675                as_fn_error $? "Cannot continue" "$LINENO" 5
28676
28677fi
28678        fi
28679    fi
28680    # don't add LIBS/CFLAGS yet, depends on plugins
28681
28682    # libxml2 support
28683    hwloc_libxml2_happy=
28684    if test "x$enable_libxml2" != "xno"; then
28685
28686
28687    HWLOC_pkg_failed=no
28688    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
28689printf %s "checking for LIBXML2... " >&6; }
28690
28691    if test -n "$PKG_CONFIG"; then
28692    if test -n "$HWLOC_LIBXML2_CFLAGS"; then
28693        HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS="$HWLOC_LIBXML2_CFLAGS"
28694    else
28695        if test -n "$PKG_CONFIG" && \
28696    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
28697  ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
28698  ac_status=$?
28699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28700  test $ac_status = 0; }; then
28701    HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
28702    else
28703                     HWLOC_pkg_failed=yes
28704fi
28705    fi
28706else
28707	HWLOC_pkg_failed=untried
28708fi
28709
28710    if test -n "$PKG_CONFIG"; then
28711    if test -n "$HWLOC_LIBXML2_LIBS"; then
28712        HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS="$HWLOC_LIBXML2_LIBS"
28713    else
28714        if test -n "$PKG_CONFIG" && \
28715    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
28716  ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
28717  ac_status=$?
28718  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28719  test $ac_status = 0; }; then
28720    HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
28721    else
28722                     HWLOC_pkg_failed=yes
28723fi
28724    fi
28725else
28726	HWLOC_pkg_failed=untried
28727fi
28728
28729
28730
28731
28732    # Check for failure of pkg-config
28733    if test $HWLOC_pkg_failed = yes; then
28734
28735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28736        HWLOC_pkg_short_errors_supported=yes
28737else
28738        HWLOC_pkg_short_errors_supported=no
28739fi
28740        if test $HWLOC_pkg_short_errors_supported = yes; then
28741            HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
28742        else
28743            HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
28744        fi
28745        # Put the nasty error message in config.log where it belongs
28746	echo "$HWLOC_LIBXML2_PKG_ERRORS" >&5
28747
28748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28749printf "%s\n" "no" >&6; }
28750                hwloc_libxml2_happy=no
28751    elif test $HWLOC_pkg_failed = untried; then
28752        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
28753printf "%s\n" "cannot check without pkg-config" >&6; }
28754		hwloc_libxml2_happy=no
28755    else
28756        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28757printf "%s\n" "yes" >&6; }
28758
28759        # If we got good results from pkg-config, check that they
28760        # actually work (i.e., that we can link against the resulting
28761        # $LIBS).  The canonical example why we do this is if
28762        # pkg-config returns 64 bit libraries but ./configure was run
28763        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
28764        # results, but we'll fail if we try to link.  So detect that
28765        # failure now.
28766        # There are also cases on Mac where pkg-config returns paths
28767        # that do not actually exists until some magic is applied.
28768        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
28769        # So check whether we find the header as well.
28770        hwloc_cflags_save=$CFLAGS
28771        hwloc_cppflags_save=$CPPFLAGS
28772        hwloc_libs_save=$LIBS
28773        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS"
28774        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS"
28775        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS"
28776        ac_fn_c_check_header_compile "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28777if test "x$ac_cv_header_libxml_parser_h" = xyes
28778then :
28779
28780            ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc"
28781if test "x$ac_cv_func_xmlNewDoc" = xyes
28782then :
28783  hwloc_result=yes
28784else $as_nop
28785  hwloc_result=no
28786fi
28787
28788
28789else $as_nop
28790  hwloc_result=no
28791fi
28792
28793        CFLAGS=$hwloc_cflags_save
28794        CPPFLAGS=$hwloc_cppflags_save
28795        LIBS=$hwloc_libs_save
28796
28797        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final LIBXML2 support" >&5
28798printf %s "checking for final LIBXML2 support... " >&6; }
28799        if test "$hwloc_result" = "yes"
28800then :
28801  HWLOC_LIBXML2_CFLAGS=$HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS
28802               HWLOC_LIBXML2_LIBS=$HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS
28803               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28804printf "%s\n" "yes" >&6; }
28805               hwloc_libxml2_happy=yes
28806else $as_nop
28807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28808printf "%s\n" "no" >&6; }
28809               hwloc_libxml2_happy=no
28810fi
28811    fi
28812    fi
28813    if test "x$hwloc_libxml2_happy" = "xyes"; then
28814        HWLOC_LIBXML2_REQUIRES="libxml-2.0"
28815
28816printf "%s\n" "#define HWLOC_HAVE_LIBXML2 1" >>confdefs.h
28817
28818        HWLOC_HAVE_LIBXML2=1
28819
28820
28821        hwloc_components="$hwloc_components xml_libxml"
28822        hwloc_xml_libxml_component_maybeplugin=1
28823    else
28824        HWLOC_HAVE_LIBXML2=0
28825
28826	if test "$enable_libxml2" = "yes"
28827then :
28828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&5
28829printf "%s\n" "$as_me: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&2;}
28830               as_fn_error $? "Cannot continue" "$LINENO" 5
28831fi
28832    fi
28833    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
28834
28835    # Try to compile the x86 cpuid inlines
28836    if test "x$enable_cpuid" != "xno"; then
28837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid" >&5
28838printf %s "checking for x86 cpuid... " >&6; }
28839	old_CPPFLAGS="$CPPFLAGS"
28840	CPPFLAGS="$CPPFLAGS -I$HWLOC_top_srcdir/include"
28841	# We need hwloc_uint64_t but we can't use autogen/config.h before configure ends.
28842	# So pass #include/#define manually here for now.
28843	CPUID_CHECK_HEADERS=
28844	CPUID_CHECK_DEFINE=
28845	if test "x$hwloc_windows" = xyes; then
28846	    X86_CPUID_CHECK_HEADERS="#include <windows.h>"
28847	    X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t DWORDLONG"
28848	else
28849	    X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t uint64_t"
28850	    if test "x$ac_cv_header_stdint_h" = xyes; then
28851	        X86_CPUID_CHECK_HEADERS="#include <stdint.h>"
28852	    fi
28853	fi
28854	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28855/* end confdefs.h.  */
28856
28857	    #include <stdio.h>
28858	    $X86_CPUID_CHECK_HEADERS
28859	    $X86_CPUID_CHECK_DEFINE
28860	    #define __hwloc_inline
28861	    #include <private/cpuid-x86.h>
28862
28863int
28864main (void)
28865{
28866
28867	    if (hwloc_have_x86_cpuid()) {
28868		unsigned eax = 0, ebx, ecx = 0, edx;
28869		hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx);
28870		printf("highest x86 cpuid %x\n", eax);
28871		return 0;
28872	    }
28873
28874  ;
28875  return 0;
28876}
28877_ACEOF
28878if ac_fn_c_try_link "$LINENO"
28879then :
28880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28881printf "%s\n" "yes" >&6; }
28882
28883printf "%s\n" "#define HWLOC_HAVE_X86_CPUID 1" >>confdefs.h
28884
28885	 hwloc_have_x86_cpuid=yes
28886else $as_nop
28887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28888printf "%s\n" "no" >&6; }
28889fi
28890rm -f core conftest.err conftest.$ac_objext conftest.beam \
28891    conftest$ac_exeext conftest.$ac_ext
28892	if test "x$hwloc_have_x86_cpuid" = xyes; then
28893	    hwloc_components="$hwloc_components x86"
28894	fi
28895	CPPFLAGS="$old_CPPFLAGS"
28896    fi
28897
28898    # Components require pthread_mutex, see if it needs -lpthread
28899    hwloc_pthread_mutex_happy=no
28900    # Try without explicit -lpthread first
28901    ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
28902if test "x$ac_cv_func_pthread_mutex_lock" = xyes
28903then :
28904  hwloc_pthread_mutex_happy=yes
28905       HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE -lpthread"
28906
28907else $as_nop
28908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock with -lpthread" >&5
28909printf %s "checking for pthread_mutex_lock with -lpthread... " >&6; }
28910       # Try again with explicit -lpthread, but don't use AC_CHECK_FUNC to avoid the cache
28911       tmp_save_LIBS=$LIBS
28912       LIBS="$LIBS -lpthread"
28913       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28914/* end confdefs.h.  */
28915
28916/* Override any GCC internal prototype to avoid an error.
28917   Use char because int might match the return type of a GCC
28918   builtin and then its argument prototype would still apply.  */
28919char pthread_mutex_lock ();
28920int
28921main (void)
28922{
28923return pthread_mutex_lock ();
28924  ;
28925  return 0;
28926}
28927_ACEOF
28928if ac_fn_c_try_link "$LINENO"
28929then :
28930  hwloc_pthread_mutex_happy=yes
28931          HWLOC_LIBS="$HWLOC_LIBS -lpthread"
28932
28933fi
28934rm -f core conftest.err conftest.$ac_objext conftest.beam \
28935    conftest$ac_exeext conftest.$ac_ext
28936       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_pthread_mutex_happy" >&5
28937printf "%s\n" "$hwloc_pthread_mutex_happy" >&6; }
28938       LIBS="$tmp_save_LIBS"
28939
28940fi
28941
28942    if test "x$hwloc_pthread_mutex_happy" = "xyes"
28943then :
28944
28945printf "%s\n" "#define HWLOC_HAVE_PTHREAD_MUTEX 1" >>confdefs.h
28946
28947fi
28948
28949    if test "x$hwloc_pthread_mutex_happy" != xyes -a "x$hwloc_windows" != xyes
28950then :
28951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&5
28952printf "%s\n" "$as_me: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&2;}
28953       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please report this to the hwloc-devel mailing list." >&5
28954printf "%s\n" "$as_me: WARNING: Please report this to the hwloc-devel mailing list." >&2;}
28955       as_fn_error $? "Cannot continue" "$LINENO" 5
28956fi
28957
28958    #
28959    # Now enable registration of listed components
28960    #
28961
28962    # Plugin support
28963    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if plugin support is enabled" >&5
28964printf %s "checking if plugin support is enabled... " >&6; }
28965    # Plugins (even core support) are totally disabled by default.
28966    # Pass --enable-plugins=foo (with "foo" NOT an existing component) to enable plugins but build none of them.
28967    if test "x$enable_plugins" = xyes; then
28968      hwloc_have_plugins=yes
28969      requested_plugins="$hwloc_components"
28970    else if test "x$enable_plugins" != xno -a "x$enable_plugins" != x; then
28971      hwloc_have_plugins=yes
28972      requested_plugins=`echo $enable_plugins | sed -e 's/,/ /g'`
28973    else
28974      hwloc_have_plugins=no
28975    fi fi
28976    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_plugins" >&5
28977printf "%s\n" "$hwloc_have_plugins" >&6; }
28978
28979    if test "x$hwloc_have_plugins" = xyes; then
28980      # dlopen and ltdl (at least 2.4.2) doesn't work on AIX
28981      # posix linkers don't work well with plugins and windows dll constraints
28982      if test "x$enable_plugin_dlopen" = x; then
28983        if test "x$hwloc_aix" = "xyes"; then
28984          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dlopen does not work on AIX, disabled by default." >&5
28985printf "%s\n" "$as_me: WARNING: dlopen does not work on AIX, disabled by default." >&2;}
28986          enable_plugin_dlopen=no
28987        else if test "x$hwloc_windows" = "xyes"; then
28988          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&5
28989printf "%s\n" "$as_me: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&2;}
28990          enable_plugin_dlopen=no
28991        fi fi
28992      fi
28993      if test "x$enable_plugin_ltdl" = x; then
28994        if test "x$hwloc_aix" = "xyes"; then
28995          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ltdl does not work on AIX, disabled by default." >&5
28996printf "%s\n" "$as_me: WARNING: ltdl does not work on AIX, disabled by default." >&2;}
28997          enable_plugin_dlopen=no
28998        else if test "x$hwloc_windows" = "xyes"; then
28999          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&5
29000printf "%s\n" "$as_me: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&2;}
29001          enable_plugin_dlopen=no
29002        fi fi
29003      fi
29004
29005      # Look for dlopen
29006      if test "x$enable_plugin_dlopen" != xno; then
29007
29008  hwloc_dlopen_ready=no
29009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
29010printf %s "checking for dlopen... " >&6; }
29011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29012/* end confdefs.h.  */
29013
29014
29015      #include <dlfcn.h>
29016      #include <stdlib.h>
29017      void *handle;
29018
29019int
29020main (void)
29021{
29022
29023      handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL);
29024
29025  ;
29026  return 0;
29027}
29028_ACEOF
29029if ac_fn_c_try_link "$LINENO"
29030then :
29031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29032printf "%s\n" "yes" >&6; }
29033     hwloc_dlopen_ready=yes
29034else $as_nop
29035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29036printf "%s\n" "no" >&6; }
29037     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
29038if test "x$ac_cv_header_dlfcn_h" = xyes
29039then :
29040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29041printf %s "checking for dlopen in -ldl... " >&6; }
29042if test ${ac_cv_lib_dl_dlopen+y}
29043then :
29044  printf %s "(cached) " >&6
29045else $as_nop
29046  ac_check_lib_save_LIBS=$LIBS
29047LIBS="-ldl  $LIBS"
29048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29049/* end confdefs.h.  */
29050
29051/* Override any GCC internal prototype to avoid an error.
29052   Use char because int might match the return type of a GCC
29053   builtin and then its argument prototype would still apply.  */
29054char dlopen ();
29055int
29056main (void)
29057{
29058return dlopen ();
29059  ;
29060  return 0;
29061}
29062_ACEOF
29063if ac_fn_c_try_link "$LINENO"
29064then :
29065  ac_cv_lib_dl_dlopen=yes
29066else $as_nop
29067  ac_cv_lib_dl_dlopen=no
29068fi
29069rm -f core conftest.err conftest.$ac_objext conftest.beam \
29070    conftest$ac_exeext conftest.$ac_ext
29071LIBS=$ac_check_lib_save_LIBS
29072fi
29073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29074printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
29075if test "x$ac_cv_lib_dl_dlopen" = xyes
29076then :
29077  hwloc_dlopen_ready=yes
29078	             hwloc_dlopen_libs=-ldl
29079fi
29080
29081
29082fi
29083
29084
29085fi
29086rm -f core conftest.err conftest.$ac_objext conftest.beam \
29087    conftest$ac_exeext conftest.$ac_ext
29088
29089      fi
29090      # Look for ltdl
29091      if test "x$enable_plugin_ltdl" != xno; then
29092
29093  hwloc_ltdl_ready=no
29094  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
29095if test "x$ac_cv_header_ltdl_h" = xyes
29096then :
29097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
29098printf %s "checking for lt_dlopenext in -lltdl... " >&6; }
29099if test ${ac_cv_lib_ltdl_lt_dlopenext+y}
29100then :
29101  printf %s "(cached) " >&6
29102else $as_nop
29103  ac_check_lib_save_LIBS=$LIBS
29104LIBS="-lltdl  $LIBS"
29105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29106/* end confdefs.h.  */
29107
29108/* Override any GCC internal prototype to avoid an error.
29109   Use char because int might match the return type of a GCC
29110   builtin and then its argument prototype would still apply.  */
29111char lt_dlopenext ();
29112int
29113main (void)
29114{
29115return lt_dlopenext ();
29116  ;
29117  return 0;
29118}
29119_ACEOF
29120if ac_fn_c_try_link "$LINENO"
29121then :
29122  ac_cv_lib_ltdl_lt_dlopenext=yes
29123else $as_nop
29124  ac_cv_lib_ltdl_lt_dlopenext=no
29125fi
29126rm -f core conftest.err conftest.$ac_objext conftest.beam \
29127    conftest$ac_exeext conftest.$ac_ext
29128LIBS=$ac_check_lib_save_LIBS
29129fi
29130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
29131printf "%s\n" "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
29132if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes
29133then :
29134  hwloc_ltdl_ready=yes
29135		   hwloc_ltdl_libs=-lltdl
29136fi
29137
29138
29139fi
29140
29141
29142      fi
29143
29144      # Now use dlopen by default, or ltdl, or just fail to enable plugins
29145      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library to use for loading plugins" >&5
29146printf %s "checking which library to use for loading plugins... " >&6; }
29147      if test "x$hwloc_dlopen_ready" = xyes; then
29148        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
29149printf "%s\n" "dlopen" >&6; }
29150	hwloc_plugins_load=dlopen
29151        # Now enable dlopen libs
29152        HWLOC_DL_LIBS="$hwloc_dlopen_libs"
29153
29154      else if test x$hwloc_ltdl_ready = xyes; then
29155        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
29156printf "%s\n" "ltdl" >&6; }
29157        hwloc_plugins_load=ltdl
29158        # Now enable ltdl libs
29159
29160printf "%s\n" "#define HWLOC_HAVE_LTDL 1" >>confdefs.h
29161
29162        HWLOC_LTDL_LIBS="$hwloc_ltdl_libs"
29163
29164        # Add ltdl static-build dependencies to hwloc.pc
29165
29166  # save variables that we'll modify below
29167  save_lt_cv_dlopen="$lt_cv_dlopen"
29168  save_lt_cv_dlopen_libs="$lt_cv_dlopen_libs"
29169  save_lt_cv_dlopen_self="$lt_cv_dlopen_self"
29170  ###########################################################
29171  # code stolen from LT_SYS_DLOPEN_SELF in libtool.m4
29172  case $host_os in
29173  beos*)
29174    lt_cv_dlopen="load_add_on"
29175    lt_cv_dlopen_libs=
29176    lt_cv_dlopen_self=yes
29177    ;;
29178
29179  mingw* | pw32* | cegcc*)
29180    lt_cv_dlopen="LoadLibrary"
29181    lt_cv_dlopen_libs=
29182    ;;
29183
29184  cygwin*)
29185    lt_cv_dlopen="dlopen"
29186    lt_cv_dlopen_libs=
29187    ;;
29188
29189  darwin*)
29190  # if libdl is installed we need to link against it
29191    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29192printf %s "checking for dlopen in -ldl... " >&6; }
29193if test ${ac_cv_lib_dl_dlopen+y}
29194then :
29195  printf %s "(cached) " >&6
29196else $as_nop
29197  ac_check_lib_save_LIBS=$LIBS
29198LIBS="-ldl  $LIBS"
29199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29200/* end confdefs.h.  */
29201
29202/* Override any GCC internal prototype to avoid an error.
29203   Use char because int might match the return type of a GCC
29204   builtin and then its argument prototype would still apply.  */
29205char dlopen ();
29206int
29207main (void)
29208{
29209return dlopen ();
29210  ;
29211  return 0;
29212}
29213_ACEOF
29214if ac_fn_c_try_link "$LINENO"
29215then :
29216  ac_cv_lib_dl_dlopen=yes
29217else $as_nop
29218  ac_cv_lib_dl_dlopen=no
29219fi
29220rm -f core conftest.err conftest.$ac_objext conftest.beam \
29221    conftest$ac_exeext conftest.$ac_ext
29222LIBS=$ac_check_lib_save_LIBS
29223fi
29224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29225printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
29226if test "x$ac_cv_lib_dl_dlopen" = xyes
29227then :
29228  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29229else $as_nop
29230
29231    lt_cv_dlopen="dyld"
29232    lt_cv_dlopen_libs=
29233    lt_cv_dlopen_self=yes
29234
29235fi
29236
29237    ;;
29238
29239  *)
29240    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
29241if test "x$ac_cv_func_shl_load" = xyes
29242then :
29243  lt_cv_dlopen="shl_load"
29244else $as_nop
29245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
29246printf %s "checking for shl_load in -ldld... " >&6; }
29247if test ${ac_cv_lib_dld_shl_load+y}
29248then :
29249  printf %s "(cached) " >&6
29250else $as_nop
29251  ac_check_lib_save_LIBS=$LIBS
29252LIBS="-ldld  $LIBS"
29253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29254/* end confdefs.h.  */
29255
29256/* Override any GCC internal prototype to avoid an error.
29257   Use char because int might match the return type of a GCC
29258   builtin and then its argument prototype would still apply.  */
29259char shl_load ();
29260int
29261main (void)
29262{
29263return shl_load ();
29264  ;
29265  return 0;
29266}
29267_ACEOF
29268if ac_fn_c_try_link "$LINENO"
29269then :
29270  ac_cv_lib_dld_shl_load=yes
29271else $as_nop
29272  ac_cv_lib_dld_shl_load=no
29273fi
29274rm -f core conftest.err conftest.$ac_objext conftest.beam \
29275    conftest$ac_exeext conftest.$ac_ext
29276LIBS=$ac_check_lib_save_LIBS
29277fi
29278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
29279printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
29280if test "x$ac_cv_lib_dld_shl_load" = xyes
29281then :
29282  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
29283else $as_nop
29284  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
29285if test "x$ac_cv_func_dlopen" = xyes
29286then :
29287  lt_cv_dlopen="dlopen"
29288else $as_nop
29289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29290printf %s "checking for dlopen in -ldl... " >&6; }
29291if test ${ac_cv_lib_dl_dlopen+y}
29292then :
29293  printf %s "(cached) " >&6
29294else $as_nop
29295  ac_check_lib_save_LIBS=$LIBS
29296LIBS="-ldl  $LIBS"
29297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29298/* end confdefs.h.  */
29299
29300/* Override any GCC internal prototype to avoid an error.
29301   Use char because int might match the return type of a GCC
29302   builtin and then its argument prototype would still apply.  */
29303char dlopen ();
29304int
29305main (void)
29306{
29307return dlopen ();
29308  ;
29309  return 0;
29310}
29311_ACEOF
29312if ac_fn_c_try_link "$LINENO"
29313then :
29314  ac_cv_lib_dl_dlopen=yes
29315else $as_nop
29316  ac_cv_lib_dl_dlopen=no
29317fi
29318rm -f core conftest.err conftest.$ac_objext conftest.beam \
29319    conftest$ac_exeext conftest.$ac_ext
29320LIBS=$ac_check_lib_save_LIBS
29321fi
29322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29323printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
29324if test "x$ac_cv_lib_dl_dlopen" = xyes
29325then :
29326  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29327else $as_nop
29328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
29329printf %s "checking for dlopen in -lsvld... " >&6; }
29330if test ${ac_cv_lib_svld_dlopen+y}
29331then :
29332  printf %s "(cached) " >&6
29333else $as_nop
29334  ac_check_lib_save_LIBS=$LIBS
29335LIBS="-lsvld  $LIBS"
29336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29337/* end confdefs.h.  */
29338
29339/* Override any GCC internal prototype to avoid an error.
29340   Use char because int might match the return type of a GCC
29341   builtin and then its argument prototype would still apply.  */
29342char dlopen ();
29343int
29344main (void)
29345{
29346return dlopen ();
29347  ;
29348  return 0;
29349}
29350_ACEOF
29351if ac_fn_c_try_link "$LINENO"
29352then :
29353  ac_cv_lib_svld_dlopen=yes
29354else $as_nop
29355  ac_cv_lib_svld_dlopen=no
29356fi
29357rm -f core conftest.err conftest.$ac_objext conftest.beam \
29358    conftest$ac_exeext conftest.$ac_ext
29359LIBS=$ac_check_lib_save_LIBS
29360fi
29361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
29362printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
29363if test "x$ac_cv_lib_svld_dlopen" = xyes
29364then :
29365  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29366else $as_nop
29367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
29368printf %s "checking for dld_link in -ldld... " >&6; }
29369if test ${ac_cv_lib_dld_dld_link+y}
29370then :
29371  printf %s "(cached) " >&6
29372else $as_nop
29373  ac_check_lib_save_LIBS=$LIBS
29374LIBS="-ldld  $LIBS"
29375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29376/* end confdefs.h.  */
29377
29378/* Override any GCC internal prototype to avoid an error.
29379   Use char because int might match the return type of a GCC
29380   builtin and then its argument prototype would still apply.  */
29381char dld_link ();
29382int
29383main (void)
29384{
29385return dld_link ();
29386  ;
29387  return 0;
29388}
29389_ACEOF
29390if ac_fn_c_try_link "$LINENO"
29391then :
29392  ac_cv_lib_dld_dld_link=yes
29393else $as_nop
29394  ac_cv_lib_dld_dld_link=no
29395fi
29396rm -f core conftest.err conftest.$ac_objext conftest.beam \
29397    conftest$ac_exeext conftest.$ac_ext
29398LIBS=$ac_check_lib_save_LIBS
29399fi
29400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
29401printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
29402if test "x$ac_cv_lib_dld_dld_link" = xyes
29403then :
29404  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
29405fi
29406
29407
29408fi
29409
29410
29411fi
29412
29413
29414fi
29415
29416
29417fi
29418
29419
29420fi
29421
29422    ;;
29423  esac
29424  # end of code stolen from LT_SYS_DLOPEN_SELF in libtool.m4
29425  ###########################################################
29426
29427  HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE $lt_cv_dlopen_libs"
29428
29429  # restore modified variable in case the actual libtool code uses them
29430  lt_cv_dlopen="$save_lt_cv_dlopen"
29431  lt_cv_dlopen_libs="$save_lt_cv_dlopen_libs"
29432  lt_cv_dlopen_self="$save_lt_cv_dlopen_self"
29433
29434      else
29435        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
29436printf "%s\n" "none" >&6; }
29437        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&5
29438printf "%s\n" "$as_me: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&2;}
29439        as_fn_error $? "Cannot continue" "$LINENO" 5
29440      fi fi
29441
29442
29443printf "%s\n" "#define HWLOC_HAVE_PLUGINS 1" >>confdefs.h
29444
29445    fi
29446
29447
29448# Check whether --with-hwloc-plugins-path was given.
29449if test ${with_hwloc_plugins_path+y}
29450then :
29451  withval=$with_hwloc_plugins_path; HWLOC_PLUGINS_PATH="$with_hwloc_plugins_path"
29452else $as_nop
29453  HWLOC_PLUGINS_PATH="\$(libdir)/hwloc"
29454fi
29455
29456
29457    HWLOC_PLUGINS_DIR=`echo "$HWLOC_PLUGINS_PATH" | cut -d: -f1`
29458
29459
29460    # Static components output file
29461    hwloc_static_components_dir=${HWLOC_top_builddir}/hwloc
29462    mkdir -p "${hwloc_static_components_dir}"
29463    hwloc_static_components_file=${hwloc_static_components_dir}/static-components.h
29464    rm -f "${hwloc_static_components_file}"
29465
29466
29467  for name in $requested_plugins ; do
29468    str="hwloc_${name}_component_wantplugin=1"
29469    eval $str
29470  done
29471
29472    # Now we have some hwloc_<name>_component_wantplugin=1
29473
29474    # See which core components want plugin and support it
29475
29476for name in $hwloc_components ; do
29477  str="maybeplugin=\$hwloc_${name}_component_maybeplugin"
29478  eval $str
29479  str="wantplugin=\$hwloc_${name}_component_wantplugin"
29480  eval $str
29481  if test x$hwloc_have_plugins = xyes -a x$maybeplugin = x1 -a x$wantplugin = x1; then
29482    hwloc_plugin_components="$hwloc_plugin_components $name"
29483    str="hwloc_${name}_component=plugin"
29484  else
29485    hwloc_static_components="$hwloc_static_components $name"
29486    str="hwloc_${name}_component=static"
29487  fi
29488  eval $str
29489done
29490
29491    # Now we have some hwloc_<name>_component=plugin/static
29492    # and hwloc_static/plugin_components=list (space separated)
29493    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking components to build statically" >&5
29494printf %s "checking components to build statically... " >&6; }
29495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_static_components" >&5
29496printf "%s\n" "$hwloc_static_components" >&6; }
29497
29498cat <<EOF >>"$hwloc_static_components_file"
29499#include <private/internal-components.h>
29500static const struct hwloc_component * hwloc_static_components[] = {
29501EOF
29502for comp in $hwloc_static_components; do
29503  echo "  &hwloc_${comp}_component," >>"$hwloc_static_components_file"
29504done
29505cat <<EOF >>"$hwloc_static_components_file"
29506  NULL
29507};
29508EOF
29509
29510    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking components to build as plugins" >&5
29511printf %s "checking components to build as plugins... " >&6; }
29512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_plugin_components" >&5
29513printf "%s\n" "$hwloc_plugin_components" >&6; }
29514
29515    if test "$hwloc_pci_component" = "static"
29516then :
29517  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_PCIACCESS_LIBS"
29518           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_PCIACCESS_LDFLAGS"
29519           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_PCIACCESS_CPPFLAGS $HWLOC_PCIACCESS_CFLAGS"
29520           HWLOC_REQUIRES="$HWLOC_PCIACCESS_REQUIRES $HWLOC_REQUIRES"
29521fi
29522    if test "$hwloc_opencl_component" = "static"
29523then :
29524  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_OPENCL_LIBS"
29525           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_OPENCL_LDFLAGS"
29526           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_OPENCL_CPPFLAGS $HWLOC_OPENCL_CFLAGS"
29527           HWLOC_REQUIRES="$HWLOC_OPENCL_REQUIRES $HWLOC_REQUIRES"
29528fi
29529    if test "$hwloc_cuda_component" = "static"
29530then :
29531  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_CUDART_LIBS"
29532           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_CUDART_LDFLAGS"
29533           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_CUDART_CPPFLAGS $HWLOC_CUDART_CFLAGS"
29534           HWLOC_REQUIRES="$HWLOC_CUDART_REQUIRES $HWLOC_REQUIRES"
29535fi
29536    if test "$hwloc_nvml_component" = "static"
29537then :
29538  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_NVML_LIBS"
29539           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_NVML_LDFLAGS"
29540           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_NVML_CPPFLAGS $HWLOC_NVML_CFLAGS"
29541           HWLOC_REQUIRES="$HWLOC_NVML_REQUIRES $HWLOC_REQUIRES"
29542fi
29543    if test "$hwloc_rsmi_component" = "static"
29544then :
29545  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_RSMI_LIBS"
29546           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_RSMI_LDFLAGS"
29547           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_RSMI_CPPFLAGS $HWLOC_RSMI_CFLAGS"
29548           HWLOC_REQUIRES="$HWLOC_RSMI_REQUIRES $HWLOC_REQUIRES"
29549fi
29550    if test "$hwloc_levelzero_component" = "static"
29551then :
29552  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LEVELZERO_LIBS"
29553           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_LEVELZERO_LDFLAGS"
29554           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LEVELZERO_CPPFLAGS $HWLOC_LEVELZERO_CFLAGS"
29555           HWLOC_REQUIRES="$HWLOC_LEVELZERO_REQUIRES $HWLOC_REQUIRES"
29556fi
29557    if test "$hwloc_gl_component" = "static"
29558then :
29559  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_GL_LIBS"
29560           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_GL_LDFLAGS"
29561           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_GL_CPPFLAGS $HWLOC_GL_CFLAGS"
29562           HWLOC_REQUIRES="$HWLOC_GL_REQUIRES $HWLOC_REQUIRES"
29563fi
29564    if test "$hwloc_xml_libxml_component" = "static"
29565then :
29566  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LIBXML2_LIBS"
29567           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_LIBXML2_LDFLAGS"
29568           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LIBXML2_CPPFLAGS $HWLOC_LIBXML2_CFLAGS"
29569           HWLOC_REQUIRES="$HWLOC_LIBXML2_REQUIRES $HWLOC_REQUIRES"
29570fi
29571
29572    #
29573    # Setup HWLOC's C, CPP, and LD flags, and LIBS
29574    #
29575
29576
29577    HWLOC_CPPFLAGS='-I"$(HWLOC_top_builddir)"/include -I"$(HWLOC_top_srcdir)"/include'
29578
29579
29580
29581
29582
29583    # Set these values explicitly for embedded builds.  Exporting
29584    # these values through *_EMBEDDED_* values gives us the freedom to
29585    # do something different someday if we ever need to.  There's no
29586    # need to fill these values in unless we're in embedded mode.
29587    # Indeed, if we're building in embedded mode, we want HWLOC_LIBS
29588    # to be empty so that nothing is linked into libhwloc_embedded.la
29589    # itself -- only the upper-layer will link in anything required.
29590
29591    if test "$hwloc_mode" = "embedded"
29592then :
29593  HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS
29594           HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS
29595           HWLOC_EMBEDDED_LDFLAGS=$HWLOC_LDFLAGS
29596           HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la'
29597           HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS
29598           HWLOC_LIBS=
29599fi
29600
29601
29602
29603
29604
29605
29606    # Always generate these files
29607    ac_config_files="$ac_config_files Makefile include/Makefile hwloc/Makefile"
29608
29609
29610    # Cleanup
29611    ac_ext=c
29612ac_cpp='$CPP $CPPFLAGS'
29613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29615ac_compiler_gnu=$ac_cv_c_compiler_gnu
29616
29617
29618    # Success
29619
29620
29621
29622####################################################################
29623# Setup the netloc API
29624####################################################################
29625
29626
29627
29628# Check whether --enable-netloc was given.
29629if test ${enable_netloc+y}
29630then :
29631  enableval=$enable_netloc;
29632fi
29633
29634
29635if test "$enable_netloc" = "yes" -a "$hwloc_mode" = "standalone"
29636then :
29637
29638
29639
29640
29641    if test "x1" != "x"
29642then :
29643  cat <<EOF
29644
29645###
29646### Configuring netloc core
29647###
29648EOF
29649fi
29650
29651    # These flags are specific to netloc, and should not be redundant
29652    # with hwloc.  I.e., if the flag already exists in hwloc, there's
29653    # no need to put it here.
29654    NETLOC_CFLAGS=$HWLOC_CFLAGS
29655    NETLOC_CPPFLAGS=$HWLOC_CPPFLAGS
29656    NETLOC_LDFLAGS=$HWLOC_LDFLAGS
29657    NETLOC_LIBS=
29658    NETLOC_LIBS_PRIVATE=
29659
29660    # Setup the individual parts of Netloc
29661    netloc_happy=yes
29662    if test "$netloc_happy" = "yes"
29663then :
29664
29665    ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
29666if test "x$ac_cv_func_asprintf" = xyes
29667then :
29668
29669fi
29670
29671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if netloc supports this platform" >&5
29672printf %s "checking if netloc supports this platform... " >&6; }
29673    if test "$ac_cv_func_asprintf" != "yes"
29674then :
29675  netloc_happy=no netloc_missing_reason=" (asprintf missing)"
29676fi
29677    if test "$hwloc_windows" = "yes"
29678then :
29679  netloc_happy=no netloc_missing_reason=" (Windows platform)"
29680fi
29681    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $netloc_happy$netloc_missing_reason" >&5
29682printf "%s\n" "$netloc_happy$netloc_missing_reason" >&6; }
29683
29684    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SCOTCH_archSub in -lscotch" >&5
29685printf %s "checking for SCOTCH_archSub in -lscotch... " >&6; }
29686if test ${ac_cv_lib_scotch_SCOTCH_archSub+y}
29687then :
29688  printf %s "(cached) " >&6
29689else $as_nop
29690  ac_check_lib_save_LIBS=$LIBS
29691LIBS="-lscotch -lscotcherr $LIBS"
29692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29693/* end confdefs.h.  */
29694
29695/* Override any GCC internal prototype to avoid an error.
29696   Use char because int might match the return type of a GCC
29697   builtin and then its argument prototype would still apply.  */
29698char SCOTCH_archSub ();
29699int
29700main (void)
29701{
29702return SCOTCH_archSub ();
29703  ;
29704  return 0;
29705}
29706_ACEOF
29707if ac_fn_c_try_link "$LINENO"
29708then :
29709  ac_cv_lib_scotch_SCOTCH_archSub=yes
29710else $as_nop
29711  ac_cv_lib_scotch_SCOTCH_archSub=no
29712fi
29713rm -f core conftest.err conftest.$ac_objext conftest.beam \
29714    conftest$ac_exeext conftest.$ac_ext
29715LIBS=$ac_check_lib_save_LIBS
29716fi
29717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scotch_SCOTCH_archSub" >&5
29718printf "%s\n" "$ac_cv_lib_scotch_SCOTCH_archSub" >&6; }
29719if test "x$ac_cv_lib_scotch_SCOTCH_archSub" = xyes
29720then :
29721  scotch_found_headers=yes;
29722
29723printf "%s\n" "#define NETLOC_SCOTCH 1" >>confdefs.h
29724
29725
29726fi
29727
29728           for ac_header in mpi.h
29729do :
29730  ac_fn_c_check_header_compile "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
29731if test "x$ac_cv_header_mpi_h" = xyes
29732then :
29733  printf "%s\n" "#define HAVE_MPI_H 1" >>confdefs.h
29734 mpi_found_headers=yes;
29735            MPI_CPPFLAGS=`mpicc -showme:compile 2>/dev/null`
29736            MPI_LDADD=`mpicc -showme:link 2>/dev/null`
29737
29738
29739            break;
29740fi
29741
29742done
29743
29744    # Extract the first word of "xz", so it can be a program name with args.
29745set dummy xz; ac_word=$2
29746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29747printf %s "checking for $ac_word... " >&6; }
29748if test ${ac_cv_prog_xz+y}
29749then :
29750  printf %s "(cached) " >&6
29751else $as_nop
29752  if test -n "$xz"; then
29753  ac_cv_prog_xz="$xz" # Let the user override the test.
29754else
29755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756for as_dir in $PATH
29757do
29758  IFS=$as_save_IFS
29759  case $as_dir in #(((
29760    '') as_dir=./ ;;
29761    */) ;;
29762    *) as_dir=$as_dir/ ;;
29763  esac
29764    for ac_exec_ext in '' $ac_executable_extensions; do
29765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29766    ac_cv_prog_xz="yes"
29767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29768    break 2
29769  fi
29770done
29771  done
29772IFS=$as_save_IFS
29773
29774  test -z "$ac_cv_prog_xz" && ac_cv_prog_xz="no"
29775fi
29776fi
29777xz=$ac_cv_prog_xz
29778if test -n "$xz"; then
29779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xz" >&5
29780printf "%s\n" "$xz" >&6; }
29781else
29782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29783printf "%s\n" "no" >&6; }
29784fi
29785
29786
29787
29788fi
29789
29790
29791
29792
29793
29794
29795
29796    # Set these values explicitly for embedded builds.  Exporting
29797    # these values through *_EMBEDDED_* values gives us the freedom to
29798    # do something different someday if we ever need to.  There's no
29799    # need to fill these values in unless we're in embedded mode.
29800    # Indeed, if we're building in embedded mode, we want NETLOC_LIBS
29801    # to be empty so that nothing is linked into libnetloc_embedded.la
29802    # itself -- only the upper-layer will link in anything required.
29803
29804    if test "$hwloc_mode" = "embedded"
29805then :
29806  NETLOC_EMBEDDED_CFLAGS=$NETLOC_CFLAGS
29807           NETLOC_EMBEDDED_CPPFLAGS=$NETLOC_CPPFLAGS
29808           NETLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/netloc/libnetloc_embedded.la'
29809           NETLOC_EMBEDDED_LIBS=$NETLOC_LIBS
29810           NETLOC_LIBS=
29811fi
29812
29813
29814
29815
29816
29817    if test "$netloc_happy" = "yes"
29818then :
29819
29820else $as_nop
29821  if test "$enable_netloc" = "yes"
29822then :
29823  as_fn_error $? "Cannot build netloc core" "$LINENO" 5
29824fi
29825
29826fi
29827
29828
29829fi
29830
29831####################################################################
29832# Version information
29833####################################################################
29834
29835# HWLOC_VERSION was setup by HWLOC_SETUP_CORE above.
29836
29837# Make configure depend on the VERSION file, since it's used in AC_INIT
29838CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'
29839
29840
29841# Override/fixup the version numbers set by AC_INIT, since on
29842# developer builds, there's no good way to know what the version is
29843# before running configure :(.  We only use the base version number
29844# for the version set in AC_INIT.  This will always match reality
29845# because we add the VERSION file (the only way to change the
29846# major.minor.release{greek}) into the configure dependencies.
29847PACKAGE_VERSION="$HWLOC_VERSION"
29848PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}"
29849VERSION="${PACKAGE_VERSION}"
29850
29851# For standalone configurations, we also include a .so version number.
29852
29853. $srcdir/VERSION
29854
29855####################################################################
29856# Setup the rest of the infrastructure
29857####################################################################
29858
29859# Setup hwloc's docs, utils, and tests
29860
29861
29862  # Extract the first word of "diff", so it can be a program name with args.
29863set dummy diff; ac_word=$2
29864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29865printf %s "checking for $ac_word... " >&6; }
29866if test ${ac_cv_path_DIFF+y}
29867then :
29868  printf %s "(cached) " >&6
29869else $as_nop
29870  case $DIFF in
29871  [\\/]* | ?:[\\/]*)
29872  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
29873  ;;
29874  *)
29875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29876for as_dir in $PATH
29877do
29878  IFS=$as_save_IFS
29879  case $as_dir in #(((
29880    '') as_dir=./ ;;
29881    */) ;;
29882    *) as_dir=$as_dir/ ;;
29883  esac
29884    for ac_exec_ext in '' $ac_executable_extensions; do
29885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29886    ac_cv_path_DIFF="$as_dir$ac_word$ac_exec_ext"
29887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29888    break 2
29889  fi
29890done
29891  done
29892IFS=$as_save_IFS
29893
29894  ;;
29895esac
29896fi
29897DIFF=$ac_cv_path_DIFF
29898if test -n "$DIFF"; then
29899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
29900printf "%s\n" "$DIFF" >&6; }
29901else
29902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29903printf "%s\n" "no" >&6; }
29904fi
29905
29906
29907
29908if test "$hwloc_mode" = "standalone"
29909then :
29910
29911    cat <<EOF
29912
29913###
29914### Configuring hwloc documentation
29915###
29916EOF
29917
29918    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this is a developer build" >&5
29919printf %s "checking if this is a developer build... " >&6; }
29920    if test ! -e "$srcdir/.git"
29921then :
29922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (doxygen generation is optional)" >&5
29923printf "%s\n" "no (doxygen generation is optional)" >&6; }
29924	   test "x$enable_doxygen" = x && enable_doxygen=no
29925else $as_nop
29926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29927printf "%s\n" "yes" >&6; }
29928	   test "x$enable_doxygen" = x && enable_doxygen=yes
29929fi
29930
29931    # Generating the doxygen output requires a few tools.  If we
29932    # don't have all of them, refuse the build the docs.
29933
29934    if test -n "$ac_tool_prefix"; then
29935  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
29936set dummy ${ac_tool_prefix}doxygen; ac_word=$2
29937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29938printf %s "checking for $ac_word... " >&6; }
29939if test ${ac_cv_path_DOXYGEN+y}
29940then :
29941  printf %s "(cached) " >&6
29942else $as_nop
29943  case $DOXYGEN in
29944  [\\/]* | ?:[\\/]*)
29945  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
29946  ;;
29947  *)
29948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29949for as_dir in $PATH
29950do
29951  IFS=$as_save_IFS
29952  case $as_dir in #(((
29953    '') as_dir=./ ;;
29954    */) ;;
29955    *) as_dir=$as_dir/ ;;
29956  esac
29957    for ac_exec_ext in '' $ac_executable_extensions; do
29958  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29959    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
29960    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29961    break 2
29962  fi
29963done
29964  done
29965IFS=$as_save_IFS
29966
29967  ;;
29968esac
29969fi
29970DOXYGEN=$ac_cv_path_DOXYGEN
29971if test -n "$DOXYGEN"; then
29972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
29973printf "%s\n" "$DOXYGEN" >&6; }
29974else
29975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29976printf "%s\n" "no" >&6; }
29977fi
29978
29979
29980fi
29981if test -z "$ac_cv_path_DOXYGEN"; then
29982  ac_pt_DOXYGEN=$DOXYGEN
29983  # Extract the first word of "doxygen", so it can be a program name with args.
29984set dummy doxygen; ac_word=$2
29985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29986printf %s "checking for $ac_word... " >&6; }
29987if test ${ac_cv_path_ac_pt_DOXYGEN+y}
29988then :
29989  printf %s "(cached) " >&6
29990else $as_nop
29991  case $ac_pt_DOXYGEN in
29992  [\\/]* | ?:[\\/]*)
29993  ac_cv_path_ac_pt_DOXYGEN="$ac_pt_DOXYGEN" # Let the user override the test with a path.
29994  ;;
29995  *)
29996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997for as_dir in $PATH
29998do
29999  IFS=$as_save_IFS
30000  case $as_dir in #(((
30001    '') as_dir=./ ;;
30002    */) ;;
30003    *) as_dir=$as_dir/ ;;
30004  esac
30005    for ac_exec_ext in '' $ac_executable_extensions; do
30006  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30007    ac_cv_path_ac_pt_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
30008    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30009    break 2
30010  fi
30011done
30012  done
30013IFS=$as_save_IFS
30014
30015  ;;
30016esac
30017fi
30018ac_pt_DOXYGEN=$ac_cv_path_ac_pt_DOXYGEN
30019if test -n "$ac_pt_DOXYGEN"; then
30020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DOXYGEN" >&5
30021printf "%s\n" "$ac_pt_DOXYGEN" >&6; }
30022else
30023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30024printf "%s\n" "no" >&6; }
30025fi
30026
30027  if test "x$ac_pt_DOXYGEN" = x; then
30028    DOXYGEN=""
30029  else
30030    case $cross_compiling:$ac_tool_warned in
30031yes:)
30032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30033printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30034ac_tool_warned=yes ;;
30035esac
30036    DOXYGEN=$ac_pt_DOXYGEN
30037  fi
30038else
30039  DOXYGEN="$ac_cv_path_DOXYGEN"
30040fi
30041
30042    HWLOC_DOXYGEN_VERSION=`doxygen --version 2> /dev/null`
30043
30044
30045    if test -n "$ac_tool_prefix"; then
30046  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
30047set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
30048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30049printf %s "checking for $ac_word... " >&6; }
30050if test ${ac_cv_path_PDFLATEX+y}
30051then :
30052  printf %s "(cached) " >&6
30053else $as_nop
30054  case $PDFLATEX in
30055  [\\/]* | ?:[\\/]*)
30056  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
30057  ;;
30058  *)
30059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30060for as_dir in $PATH
30061do
30062  IFS=$as_save_IFS
30063  case $as_dir in #(((
30064    '') as_dir=./ ;;
30065    */) ;;
30066    *) as_dir=$as_dir/ ;;
30067  esac
30068    for ac_exec_ext in '' $ac_executable_extensions; do
30069  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30070    ac_cv_path_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
30071    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30072    break 2
30073  fi
30074done
30075  done
30076IFS=$as_save_IFS
30077
30078  ;;
30079esac
30080fi
30081PDFLATEX=$ac_cv_path_PDFLATEX
30082if test -n "$PDFLATEX"; then
30083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
30084printf "%s\n" "$PDFLATEX" >&6; }
30085else
30086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30087printf "%s\n" "no" >&6; }
30088fi
30089
30090
30091fi
30092if test -z "$ac_cv_path_PDFLATEX"; then
30093  ac_pt_PDFLATEX=$PDFLATEX
30094  # Extract the first word of "pdflatex", so it can be a program name with args.
30095set dummy pdflatex; ac_word=$2
30096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30097printf %s "checking for $ac_word... " >&6; }
30098if test ${ac_cv_path_ac_pt_PDFLATEX+y}
30099then :
30100  printf %s "(cached) " >&6
30101else $as_nop
30102  case $ac_pt_PDFLATEX in
30103  [\\/]* | ?:[\\/]*)
30104  ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
30105  ;;
30106  *)
30107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30108for as_dir in $PATH
30109do
30110  IFS=$as_save_IFS
30111  case $as_dir in #(((
30112    '') as_dir=./ ;;
30113    */) ;;
30114    *) as_dir=$as_dir/ ;;
30115  esac
30116    for ac_exec_ext in '' $ac_executable_extensions; do
30117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30118    ac_cv_path_ac_pt_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
30119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30120    break 2
30121  fi
30122done
30123  done
30124IFS=$as_save_IFS
30125
30126  ;;
30127esac
30128fi
30129ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
30130if test -n "$ac_pt_PDFLATEX"; then
30131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
30132printf "%s\n" "$ac_pt_PDFLATEX" >&6; }
30133else
30134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135printf "%s\n" "no" >&6; }
30136fi
30137
30138  if test "x$ac_pt_PDFLATEX" = x; then
30139    PDFLATEX=""
30140  else
30141    case $cross_compiling:$ac_tool_warned in
30142yes:)
30143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30144printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30145ac_tool_warned=yes ;;
30146esac
30147    PDFLATEX=$ac_pt_PDFLATEX
30148  fi
30149else
30150  PDFLATEX="$ac_cv_path_PDFLATEX"
30151fi
30152
30153
30154
30155    if test -n "$ac_tool_prefix"; then
30156  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
30157set dummy ${ac_tool_prefix}makeindex; ac_word=$2
30158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30159printf %s "checking for $ac_word... " >&6; }
30160if test ${ac_cv_path_MAKEINDEX+y}
30161then :
30162  printf %s "(cached) " >&6
30163else $as_nop
30164  case $MAKEINDEX in
30165  [\\/]* | ?:[\\/]*)
30166  ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
30167  ;;
30168  *)
30169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170for as_dir in $PATH
30171do
30172  IFS=$as_save_IFS
30173  case $as_dir in #(((
30174    '') as_dir=./ ;;
30175    */) ;;
30176    *) as_dir=$as_dir/ ;;
30177  esac
30178    for ac_exec_ext in '' $ac_executable_extensions; do
30179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30180    ac_cv_path_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
30181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30182    break 2
30183  fi
30184done
30185  done
30186IFS=$as_save_IFS
30187
30188  ;;
30189esac
30190fi
30191MAKEINDEX=$ac_cv_path_MAKEINDEX
30192if test -n "$MAKEINDEX"; then
30193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
30194printf "%s\n" "$MAKEINDEX" >&6; }
30195else
30196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30197printf "%s\n" "no" >&6; }
30198fi
30199
30200
30201fi
30202if test -z "$ac_cv_path_MAKEINDEX"; then
30203  ac_pt_MAKEINDEX=$MAKEINDEX
30204  # Extract the first word of "makeindex", so it can be a program name with args.
30205set dummy makeindex; ac_word=$2
30206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30207printf %s "checking for $ac_word... " >&6; }
30208if test ${ac_cv_path_ac_pt_MAKEINDEX+y}
30209then :
30210  printf %s "(cached) " >&6
30211else $as_nop
30212  case $ac_pt_MAKEINDEX in
30213  [\\/]* | ?:[\\/]*)
30214  ac_cv_path_ac_pt_MAKEINDEX="$ac_pt_MAKEINDEX" # Let the user override the test with a path.
30215  ;;
30216  *)
30217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30218for as_dir in $PATH
30219do
30220  IFS=$as_save_IFS
30221  case $as_dir in #(((
30222    '') as_dir=./ ;;
30223    */) ;;
30224    *) as_dir=$as_dir/ ;;
30225  esac
30226    for ac_exec_ext in '' $ac_executable_extensions; do
30227  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30228    ac_cv_path_ac_pt_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
30229    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30230    break 2
30231  fi
30232done
30233  done
30234IFS=$as_save_IFS
30235
30236  ;;
30237esac
30238fi
30239ac_pt_MAKEINDEX=$ac_cv_path_ac_pt_MAKEINDEX
30240if test -n "$ac_pt_MAKEINDEX"; then
30241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MAKEINDEX" >&5
30242printf "%s\n" "$ac_pt_MAKEINDEX" >&6; }
30243else
30244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30245printf "%s\n" "no" >&6; }
30246fi
30247
30248  if test "x$ac_pt_MAKEINDEX" = x; then
30249    MAKEINDEX=""
30250  else
30251    case $cross_compiling:$ac_tool_warned in
30252yes:)
30253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30254printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30255ac_tool_warned=yes ;;
30256esac
30257    MAKEINDEX=$ac_pt_MAKEINDEX
30258  fi
30259else
30260  MAKEINDEX="$ac_cv_path_MAKEINDEX"
30261fi
30262
30263
30264
30265    if test -n "$ac_tool_prefix"; then
30266  # Extract the first word of "${ac_tool_prefix}fig2dev", so it can be a program name with args.
30267set dummy ${ac_tool_prefix}fig2dev; ac_word=$2
30268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30269printf %s "checking for $ac_word... " >&6; }
30270if test ${ac_cv_path_FIG2DEV+y}
30271then :
30272  printf %s "(cached) " >&6
30273else $as_nop
30274  case $FIG2DEV in
30275  [\\/]* | ?:[\\/]*)
30276  ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
30277  ;;
30278  *)
30279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30280for as_dir in $PATH
30281do
30282  IFS=$as_save_IFS
30283  case $as_dir in #(((
30284    '') as_dir=./ ;;
30285    */) ;;
30286    *) as_dir=$as_dir/ ;;
30287  esac
30288    for ac_exec_ext in '' $ac_executable_extensions; do
30289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30290    ac_cv_path_FIG2DEV="$as_dir$ac_word$ac_exec_ext"
30291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30292    break 2
30293  fi
30294done
30295  done
30296IFS=$as_save_IFS
30297
30298  ;;
30299esac
30300fi
30301FIG2DEV=$ac_cv_path_FIG2DEV
30302if test -n "$FIG2DEV"; then
30303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
30304printf "%s\n" "$FIG2DEV" >&6; }
30305else
30306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307printf "%s\n" "no" >&6; }
30308fi
30309
30310
30311fi
30312if test -z "$ac_cv_path_FIG2DEV"; then
30313  ac_pt_FIG2DEV=$FIG2DEV
30314  # Extract the first word of "fig2dev", so it can be a program name with args.
30315set dummy fig2dev; ac_word=$2
30316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30317printf %s "checking for $ac_word... " >&6; }
30318if test ${ac_cv_path_ac_pt_FIG2DEV+y}
30319then :
30320  printf %s "(cached) " >&6
30321else $as_nop
30322  case $ac_pt_FIG2DEV in
30323  [\\/]* | ?:[\\/]*)
30324  ac_cv_path_ac_pt_FIG2DEV="$ac_pt_FIG2DEV" # Let the user override the test with a path.
30325  ;;
30326  *)
30327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30328for as_dir in $PATH
30329do
30330  IFS=$as_save_IFS
30331  case $as_dir in #(((
30332    '') as_dir=./ ;;
30333    */) ;;
30334    *) as_dir=$as_dir/ ;;
30335  esac
30336    for ac_exec_ext in '' $ac_executable_extensions; do
30337  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30338    ac_cv_path_ac_pt_FIG2DEV="$as_dir$ac_word$ac_exec_ext"
30339    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30340    break 2
30341  fi
30342done
30343  done
30344IFS=$as_save_IFS
30345
30346  ;;
30347esac
30348fi
30349ac_pt_FIG2DEV=$ac_cv_path_ac_pt_FIG2DEV
30350if test -n "$ac_pt_FIG2DEV"; then
30351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_FIG2DEV" >&5
30352printf "%s\n" "$ac_pt_FIG2DEV" >&6; }
30353else
30354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30355printf "%s\n" "no" >&6; }
30356fi
30357
30358  if test "x$ac_pt_FIG2DEV" = x; then
30359    FIG2DEV=""
30360  else
30361    case $cross_compiling:$ac_tool_warned in
30362yes:)
30363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30364printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30365ac_tool_warned=yes ;;
30366esac
30367    FIG2DEV=$ac_pt_FIG2DEV
30368  fi
30369else
30370  FIG2DEV="$ac_cv_path_FIG2DEV"
30371fi
30372
30373
30374
30375    if test -n "$ac_tool_prefix"; then
30376  # Extract the first word of "${ac_tool_prefix}gs", so it can be a program name with args.
30377set dummy ${ac_tool_prefix}gs; ac_word=$2
30378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30379printf %s "checking for $ac_word... " >&6; }
30380if test ${ac_cv_path_GS+y}
30381then :
30382  printf %s "(cached) " >&6
30383else $as_nop
30384  case $GS in
30385  [\\/]* | ?:[\\/]*)
30386  ac_cv_path_GS="$GS" # Let the user override the test with a path.
30387  ;;
30388  *)
30389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30390for as_dir in $PATH
30391do
30392  IFS=$as_save_IFS
30393  case $as_dir in #(((
30394    '') as_dir=./ ;;
30395    */) ;;
30396    *) as_dir=$as_dir/ ;;
30397  esac
30398    for ac_exec_ext in '' $ac_executable_extensions; do
30399  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30400    ac_cv_path_GS="$as_dir$ac_word$ac_exec_ext"
30401    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30402    break 2
30403  fi
30404done
30405  done
30406IFS=$as_save_IFS
30407
30408  ;;
30409esac
30410fi
30411GS=$ac_cv_path_GS
30412if test -n "$GS"; then
30413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
30414printf "%s\n" "$GS" >&6; }
30415else
30416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30417printf "%s\n" "no" >&6; }
30418fi
30419
30420
30421fi
30422if test -z "$ac_cv_path_GS"; then
30423  ac_pt_GS=$GS
30424  # Extract the first word of "gs", so it can be a program name with args.
30425set dummy gs; ac_word=$2
30426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30427printf %s "checking for $ac_word... " >&6; }
30428if test ${ac_cv_path_ac_pt_GS+y}
30429then :
30430  printf %s "(cached) " >&6
30431else $as_nop
30432  case $ac_pt_GS in
30433  [\\/]* | ?:[\\/]*)
30434  ac_cv_path_ac_pt_GS="$ac_pt_GS" # Let the user override the test with a path.
30435  ;;
30436  *)
30437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30438for as_dir in $PATH
30439do
30440  IFS=$as_save_IFS
30441  case $as_dir in #(((
30442    '') as_dir=./ ;;
30443    */) ;;
30444    *) as_dir=$as_dir/ ;;
30445  esac
30446    for ac_exec_ext in '' $ac_executable_extensions; do
30447  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30448    ac_cv_path_ac_pt_GS="$as_dir$ac_word$ac_exec_ext"
30449    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30450    break 2
30451  fi
30452done
30453  done
30454IFS=$as_save_IFS
30455
30456  ;;
30457esac
30458fi
30459ac_pt_GS=$ac_cv_path_ac_pt_GS
30460if test -n "$ac_pt_GS"; then
30461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GS" >&5
30462printf "%s\n" "$ac_pt_GS" >&6; }
30463else
30464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30465printf "%s\n" "no" >&6; }
30466fi
30467
30468  if test "x$ac_pt_GS" = x; then
30469    GS=""
30470  else
30471    case $cross_compiling:$ac_tool_warned in
30472yes:)
30473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30474printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30475ac_tool_warned=yes ;;
30476esac
30477    GS=$ac_pt_GS
30478  fi
30479else
30480  GS="$ac_cv_path_GS"
30481fi
30482
30483
30484
30485    if test -n "$ac_tool_prefix"; then
30486  # Extract the first word of "${ac_tool_prefix}epstopdf", so it can be a program name with args.
30487set dummy ${ac_tool_prefix}epstopdf; ac_word=$2
30488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30489printf %s "checking for $ac_word... " >&6; }
30490if test ${ac_cv_path_EPSTOPDF+y}
30491then :
30492  printf %s "(cached) " >&6
30493else $as_nop
30494  case $EPSTOPDF in
30495  [\\/]* | ?:[\\/]*)
30496  ac_cv_path_EPSTOPDF="$EPSTOPDF" # Let the user override the test with a path.
30497  ;;
30498  *)
30499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30500for as_dir in $PATH
30501do
30502  IFS=$as_save_IFS
30503  case $as_dir in #(((
30504    '') as_dir=./ ;;
30505    */) ;;
30506    *) as_dir=$as_dir/ ;;
30507  esac
30508    for ac_exec_ext in '' $ac_executable_extensions; do
30509  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30510    ac_cv_path_EPSTOPDF="$as_dir$ac_word$ac_exec_ext"
30511    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30512    break 2
30513  fi
30514done
30515  done
30516IFS=$as_save_IFS
30517
30518  ;;
30519esac
30520fi
30521EPSTOPDF=$ac_cv_path_EPSTOPDF
30522if test -n "$EPSTOPDF"; then
30523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EPSTOPDF" >&5
30524printf "%s\n" "$EPSTOPDF" >&6; }
30525else
30526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30527printf "%s\n" "no" >&6; }
30528fi
30529
30530
30531fi
30532if test -z "$ac_cv_path_EPSTOPDF"; then
30533  ac_pt_EPSTOPDF=$EPSTOPDF
30534  # Extract the first word of "epstopdf", so it can be a program name with args.
30535set dummy epstopdf; ac_word=$2
30536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30537printf %s "checking for $ac_word... " >&6; }
30538if test ${ac_cv_path_ac_pt_EPSTOPDF+y}
30539then :
30540  printf %s "(cached) " >&6
30541else $as_nop
30542  case $ac_pt_EPSTOPDF in
30543  [\\/]* | ?:[\\/]*)
30544  ac_cv_path_ac_pt_EPSTOPDF="$ac_pt_EPSTOPDF" # Let the user override the test with a path.
30545  ;;
30546  *)
30547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30548for as_dir in $PATH
30549do
30550  IFS=$as_save_IFS
30551  case $as_dir in #(((
30552    '') as_dir=./ ;;
30553    */) ;;
30554    *) as_dir=$as_dir/ ;;
30555  esac
30556    for ac_exec_ext in '' $ac_executable_extensions; do
30557  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30558    ac_cv_path_ac_pt_EPSTOPDF="$as_dir$ac_word$ac_exec_ext"
30559    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30560    break 2
30561  fi
30562done
30563  done
30564IFS=$as_save_IFS
30565
30566  ;;
30567esac
30568fi
30569ac_pt_EPSTOPDF=$ac_cv_path_ac_pt_EPSTOPDF
30570if test -n "$ac_pt_EPSTOPDF"; then
30571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_EPSTOPDF" >&5
30572printf "%s\n" "$ac_pt_EPSTOPDF" >&6; }
30573else
30574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30575printf "%s\n" "no" >&6; }
30576fi
30577
30578  if test "x$ac_pt_EPSTOPDF" = x; then
30579    EPSTOPDF=""
30580  else
30581    case $cross_compiling:$ac_tool_warned in
30582yes:)
30583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30585ac_tool_warned=yes ;;
30586esac
30587    EPSTOPDF=$ac_pt_EPSTOPDF
30588  fi
30589else
30590  EPSTOPDF="$ac_cv_path_EPSTOPDF"
30591fi
30592
30593
30594    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if can build doxygen docs" >&5
30595printf %s "checking if can build doxygen docs... " >&6; }
30596    if test "x$DOXYGEN" != "x" -a "x$PDFLATEX" != "x" -a "x$MAKEINDEX" != "x" -a "x$FIG2DEV" != "x" -a "x$GS" != "x" -a "x$EPSTOPDF" != "x"
30597then :
30598  hwloc_generate_doxs=yes
30599else $as_nop
30600  hwloc_generate_doxs=no
30601fi
30602    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_doxs" >&5
30603printf "%s\n" "$hwloc_generate_doxs" >&6; }
30604    if test "x$hwloc_generate_doxs" = xyes -a "x$HWLOC_DOXYGEN_VERSION" = x1.6.2
30605then :
30606  hwloc_generate_doxs="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen 1.6.2 has broken short name support, disabling" >&5
30607printf "%s\n" "$as_me: WARNING: doxygen 1.6.2 has broken short name support, disabling" >&2;}
30608fi
30609    if test "x$hwloc_generate_doxs" = xyes -a "x$HWLOC_DOXYGEN_VERSION" = x1.8.16 -a "$HWLOC_top_builddir" = "$HWLOC_top_srcdir"
30610then :
30611  hwloc_generate_doxs="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen 1.8.16 fails when building inside the source-tree, disabling" >&5
30612printf "%s\n" "$as_me: WARNING: doxygen 1.8.16 fails when building inside the source-tree, disabling" >&2;}
30613fi
30614
30615
30616
30617    # Making the top-level README requires w3m or lynx.
30618
30619    if test -n "$ac_tool_prefix"; then
30620  # Extract the first word of "${ac_tool_prefix}w3m", so it can be a program name with args.
30621set dummy ${ac_tool_prefix}w3m; ac_word=$2
30622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30623printf %s "checking for $ac_word... " >&6; }
30624if test ${ac_cv_path_W3M+y}
30625then :
30626  printf %s "(cached) " >&6
30627else $as_nop
30628  case $W3M in
30629  [\\/]* | ?:[\\/]*)
30630  ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
30631  ;;
30632  *)
30633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30634for as_dir in $PATH
30635do
30636  IFS=$as_save_IFS
30637  case $as_dir in #(((
30638    '') as_dir=./ ;;
30639    */) ;;
30640    *) as_dir=$as_dir/ ;;
30641  esac
30642    for ac_exec_ext in '' $ac_executable_extensions; do
30643  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30644    ac_cv_path_W3M="$as_dir$ac_word$ac_exec_ext"
30645    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30646    break 2
30647  fi
30648done
30649  done
30650IFS=$as_save_IFS
30651
30652  ;;
30653esac
30654fi
30655W3M=$ac_cv_path_W3M
30656if test -n "$W3M"; then
30657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
30658printf "%s\n" "$W3M" >&6; }
30659else
30660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30661printf "%s\n" "no" >&6; }
30662fi
30663
30664
30665fi
30666if test -z "$ac_cv_path_W3M"; then
30667  ac_pt_W3M=$W3M
30668  # Extract the first word of "w3m", so it can be a program name with args.
30669set dummy w3m; ac_word=$2
30670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30671printf %s "checking for $ac_word... " >&6; }
30672if test ${ac_cv_path_ac_pt_W3M+y}
30673then :
30674  printf %s "(cached) " >&6
30675else $as_nop
30676  case $ac_pt_W3M in
30677  [\\/]* | ?:[\\/]*)
30678  ac_cv_path_ac_pt_W3M="$ac_pt_W3M" # Let the user override the test with a path.
30679  ;;
30680  *)
30681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30682for as_dir in $PATH
30683do
30684  IFS=$as_save_IFS
30685  case $as_dir in #(((
30686    '') as_dir=./ ;;
30687    */) ;;
30688    *) as_dir=$as_dir/ ;;
30689  esac
30690    for ac_exec_ext in '' $ac_executable_extensions; do
30691  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30692    ac_cv_path_ac_pt_W3M="$as_dir$ac_word$ac_exec_ext"
30693    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30694    break 2
30695  fi
30696done
30697  done
30698IFS=$as_save_IFS
30699
30700  ;;
30701esac
30702fi
30703ac_pt_W3M=$ac_cv_path_ac_pt_W3M
30704if test -n "$ac_pt_W3M"; then
30705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_W3M" >&5
30706printf "%s\n" "$ac_pt_W3M" >&6; }
30707else
30708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30709printf "%s\n" "no" >&6; }
30710fi
30711
30712  if test "x$ac_pt_W3M" = x; then
30713    W3M=""
30714  else
30715    case $cross_compiling:$ac_tool_warned in
30716yes:)
30717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30719ac_tool_warned=yes ;;
30720esac
30721    W3M=$ac_pt_W3M
30722  fi
30723else
30724  W3M="$ac_cv_path_W3M"
30725fi
30726
30727
30728    if test -n "$ac_tool_prefix"; then
30729  # Extract the first word of "${ac_tool_prefix}lynx", so it can be a program name with args.
30730set dummy ${ac_tool_prefix}lynx; ac_word=$2
30731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30732printf %s "checking for $ac_word... " >&6; }
30733if test ${ac_cv_path_LYNX+y}
30734then :
30735  printf %s "(cached) " >&6
30736else $as_nop
30737  case $LYNX in
30738  [\\/]* | ?:[\\/]*)
30739  ac_cv_path_LYNX="$LYNX" # Let the user override the test with a path.
30740  ;;
30741  *)
30742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30743for as_dir in $PATH
30744do
30745  IFS=$as_save_IFS
30746  case $as_dir in #(((
30747    '') as_dir=./ ;;
30748    */) ;;
30749    *) as_dir=$as_dir/ ;;
30750  esac
30751    for ac_exec_ext in '' $ac_executable_extensions; do
30752  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30753    ac_cv_path_LYNX="$as_dir$ac_word$ac_exec_ext"
30754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30755    break 2
30756  fi
30757done
30758  done
30759IFS=$as_save_IFS
30760
30761  ;;
30762esac
30763fi
30764LYNX=$ac_cv_path_LYNX
30765if test -n "$LYNX"; then
30766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5
30767printf "%s\n" "$LYNX" >&6; }
30768else
30769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30770printf "%s\n" "no" >&6; }
30771fi
30772
30773
30774fi
30775if test -z "$ac_cv_path_LYNX"; then
30776  ac_pt_LYNX=$LYNX
30777  # Extract the first word of "lynx", so it can be a program name with args.
30778set dummy lynx; ac_word=$2
30779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30780printf %s "checking for $ac_word... " >&6; }
30781if test ${ac_cv_path_ac_pt_LYNX+y}
30782then :
30783  printf %s "(cached) " >&6
30784else $as_nop
30785  case $ac_pt_LYNX in
30786  [\\/]* | ?:[\\/]*)
30787  ac_cv_path_ac_pt_LYNX="$ac_pt_LYNX" # Let the user override the test with a path.
30788  ;;
30789  *)
30790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30791for as_dir in $PATH
30792do
30793  IFS=$as_save_IFS
30794  case $as_dir in #(((
30795    '') as_dir=./ ;;
30796    */) ;;
30797    *) as_dir=$as_dir/ ;;
30798  esac
30799    for ac_exec_ext in '' $ac_executable_extensions; do
30800  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30801    ac_cv_path_ac_pt_LYNX="$as_dir$ac_word$ac_exec_ext"
30802    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30803    break 2
30804  fi
30805done
30806  done
30807IFS=$as_save_IFS
30808
30809  ;;
30810esac
30811fi
30812ac_pt_LYNX=$ac_cv_path_ac_pt_LYNX
30813if test -n "$ac_pt_LYNX"; then
30814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LYNX" >&5
30815printf "%s\n" "$ac_pt_LYNX" >&6; }
30816else
30817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30818printf "%s\n" "no" >&6; }
30819fi
30820
30821  if test "x$ac_pt_LYNX" = x; then
30822    LYNX=""
30823  else
30824    case $cross_compiling:$ac_tool_warned in
30825yes:)
30826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30827printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30828ac_tool_warned=yes ;;
30829esac
30830    LYNX=$ac_pt_LYNX
30831  fi
30832else
30833  LYNX="$ac_cv_path_LYNX"
30834fi
30835
30836
30837    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if can build top-level README" >&5
30838printf %s "checking if can build top-level README... " >&6; }
30839    if test "x$W3M" != "x"
30840then :
30841  hwloc_generate_readme=yes
30842           HWLOC_W3_GENERATOR=$W3M
30843else $as_nop
30844  if test "x$LYNX" != "x"
30845then :
30846  hwloc_generate_readme=yes
30847                  HWLOC_W3_GENERATOR="$LYNX -dump -nolist"
30848else $as_nop
30849  hwloc_generate_readme=no
30850fi
30851fi
30852
30853    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_readme" >&5
30854printf "%s\n" "$hwloc_generate_readme" >&6; }
30855
30856    # If any one of the above tools is missing, we will refuse to make dist.
30857    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if will build doxygen docs" >&5
30858printf %s "checking if will build doxygen docs... " >&6; }
30859    if test "x$hwloc_generate_doxs" = "xyes" -a "x$enable_doxygen" != "xno"
30860then :
30861
30862else $as_nop
30863  hwloc_generate_doxs=no
30864fi
30865    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_generate_doxs" >&5
30866printf "%s\n" "$hwloc_generate_doxs" >&6; }
30867
30868    # See if we want to install the doxygen docs
30869    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if will install doxygen docs" >&5
30870printf %s "checking if will install doxygen docs... " >&6; }
30871    if test "x$hwloc_generate_doxs" = "xyes" -o \
30872	    -f "$srcdir/doc/doxygen-doc/man/man3/hwloc_distrib.3" -a \
30873    	    -f "$srcdir/doc/doxygen-doc/hwloc-a4.pdf" -a \
30874    	    -f "$srcdir/doc/doxygen-doc/hwloc-letter.pdf"
30875then :
30876  hwloc_install_doxs=yes
30877else $as_nop
30878  hwloc_install_doxs=no
30879fi
30880    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_install_doxs" >&5
30881printf "%s\n" "$hwloc_install_doxs" >&6; }
30882
30883    # Generate some files for the docs
30884    ac_config_files="$ac_config_files doc/Makefile doc/examples/Makefile doc/doxygen-config.cfg"
30885
30886
30887
30888    cat <<EOF
30889
30890###
30891### Configuring hwloc command line utilities
30892###
30893EOF
30894
30895
30896
30897    # runstatedir only supported in autoconf >= 2.70 and in some backports
30898    if test "x${runstatedir}" != "x"; then
30899      HWLOC_runstatedir=${runstatedir}
30900    else
30901      HWLOC_runstatedir='${localstatedir}/run'
30902    fi
30903
30904
30905    # X11 support
30906    if test "$no_x" = yes; then
30907  # Not all programs may use this symbol, but it does not hurt to define it.
30908
30909printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
30910
30911  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30912else
30913  if test -n "$x_includes"; then
30914    X_CFLAGS="$X_CFLAGS -I$x_includes"
30915  fi
30916
30917  # It would also be nice to do this for all -L options, not just this one.
30918  if test -n "$x_libraries"; then
30919    X_LIBS="$X_LIBS -L$x_libraries"
30920    # For Solaris; some versions of Sun CC require a space after -R and
30921    # others require no space.  Words are not sufficient . . . .
30922    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
30923printf %s "checking whether -R must be followed by a space... " >&6; }
30924    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30925    ac_xsave_c_werror_flag=$ac_c_werror_flag
30926    ac_c_werror_flag=yes
30927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30928/* end confdefs.h.  */
30929
30930int
30931main (void)
30932{
30933
30934  ;
30935  return 0;
30936}
30937_ACEOF
30938if ac_fn_c_try_link "$LINENO"
30939then :
30940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30941printf "%s\n" "no" >&6; }
30942       X_LIBS="$X_LIBS -R$x_libraries"
30943else $as_nop
30944  LIBS="$ac_xsave_LIBS -R $x_libraries"
30945       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30946/* end confdefs.h.  */
30947
30948int
30949main (void)
30950{
30951
30952  ;
30953  return 0;
30954}
30955_ACEOF
30956if ac_fn_c_try_link "$LINENO"
30957then :
30958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30959printf "%s\n" "yes" >&6; }
30960	  X_LIBS="$X_LIBS -R $x_libraries"
30961else $as_nop
30962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
30963printf "%s\n" "neither works" >&6; }
30964fi
30965rm -f core conftest.err conftest.$ac_objext conftest.beam \
30966    conftest$ac_exeext conftest.$ac_ext
30967fi
30968rm -f core conftest.err conftest.$ac_objext conftest.beam \
30969    conftest$ac_exeext conftest.$ac_ext
30970    ac_c_werror_flag=$ac_xsave_c_werror_flag
30971    LIBS=$ac_xsave_LIBS
30972  fi
30973
30974  # Check for system-dependent libraries X programs must link with.
30975  # Do this before checking for the system-independent R6 libraries
30976  # (-lICE), since we may need -lsocket or whatever for X linking.
30977
30978  if test "$ISC" = yes; then
30979    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30980  else
30981    # Martyn Johnson says this is needed for Ultrix, if the X
30982    # libraries were built with DECnet support.  And Karl Berry says
30983    # the Alpha needs dnet_stub (dnet does not exist).
30984    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30986/* end confdefs.h.  */
30987
30988/* Override any GCC internal prototype to avoid an error.
30989   Use char because int might match the return type of a GCC
30990   builtin and then its argument prototype would still apply.  */
30991char XOpenDisplay ();
30992int
30993main (void)
30994{
30995return XOpenDisplay ();
30996  ;
30997  return 0;
30998}
30999_ACEOF
31000if ac_fn_c_try_link "$LINENO"
31001then :
31002
31003else $as_nop
31004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
31005printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
31006if test ${ac_cv_lib_dnet_dnet_ntoa+y}
31007then :
31008  printf %s "(cached) " >&6
31009else $as_nop
31010  ac_check_lib_save_LIBS=$LIBS
31011LIBS="-ldnet  $LIBS"
31012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31013/* end confdefs.h.  */
31014
31015/* Override any GCC internal prototype to avoid an error.
31016   Use char because int might match the return type of a GCC
31017   builtin and then its argument prototype would still apply.  */
31018char dnet_ntoa ();
31019int
31020main (void)
31021{
31022return dnet_ntoa ();
31023  ;
31024  return 0;
31025}
31026_ACEOF
31027if ac_fn_c_try_link "$LINENO"
31028then :
31029  ac_cv_lib_dnet_dnet_ntoa=yes
31030else $as_nop
31031  ac_cv_lib_dnet_dnet_ntoa=no
31032fi
31033rm -f core conftest.err conftest.$ac_objext conftest.beam \
31034    conftest$ac_exeext conftest.$ac_ext
31035LIBS=$ac_check_lib_save_LIBS
31036fi
31037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31038printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31039if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
31040then :
31041  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31042fi
31043
31044    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31045      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
31046printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
31047if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
31048then :
31049  printf %s "(cached) " >&6
31050else $as_nop
31051  ac_check_lib_save_LIBS=$LIBS
31052LIBS="-ldnet_stub  $LIBS"
31053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31054/* end confdefs.h.  */
31055
31056/* Override any GCC internal prototype to avoid an error.
31057   Use char because int might match the return type of a GCC
31058   builtin and then its argument prototype would still apply.  */
31059char dnet_ntoa ();
31060int
31061main (void)
31062{
31063return dnet_ntoa ();
31064  ;
31065  return 0;
31066}
31067_ACEOF
31068if ac_fn_c_try_link "$LINENO"
31069then :
31070  ac_cv_lib_dnet_stub_dnet_ntoa=yes
31071else $as_nop
31072  ac_cv_lib_dnet_stub_dnet_ntoa=no
31073fi
31074rm -f core conftest.err conftest.$ac_objext conftest.beam \
31075    conftest$ac_exeext conftest.$ac_ext
31076LIBS=$ac_check_lib_save_LIBS
31077fi
31078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31079printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31080if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
31081then :
31082  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31083fi
31084
31085    fi
31086fi
31087rm -f core conftest.err conftest.$ac_objext conftest.beam \
31088    conftest$ac_exeext conftest.$ac_ext
31089    LIBS="$ac_xsave_LIBS"
31090
31091    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31092    # to get the SysV transport functions.
31093    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31094    # needs -lnsl.
31095    # The nsl library prevents programs from opening the X display
31096    # on Irix 5.2, according to T.E. Dickey.
31097    # The functions gethostbyname, getservbyname, and inet_addr are
31098    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31099    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
31100if test "x$ac_cv_func_gethostbyname" = xyes
31101then :
31102
31103fi
31104
31105    if test $ac_cv_func_gethostbyname = no; then
31106      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
31107printf %s "checking for gethostbyname in -lnsl... " >&6; }
31108if test ${ac_cv_lib_nsl_gethostbyname+y}
31109then :
31110  printf %s "(cached) " >&6
31111else $as_nop
31112  ac_check_lib_save_LIBS=$LIBS
31113LIBS="-lnsl  $LIBS"
31114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31115/* end confdefs.h.  */
31116
31117/* Override any GCC internal prototype to avoid an error.
31118   Use char because int might match the return type of a GCC
31119   builtin and then its argument prototype would still apply.  */
31120char gethostbyname ();
31121int
31122main (void)
31123{
31124return gethostbyname ();
31125  ;
31126  return 0;
31127}
31128_ACEOF
31129if ac_fn_c_try_link "$LINENO"
31130then :
31131  ac_cv_lib_nsl_gethostbyname=yes
31132else $as_nop
31133  ac_cv_lib_nsl_gethostbyname=no
31134fi
31135rm -f core conftest.err conftest.$ac_objext conftest.beam \
31136    conftest$ac_exeext conftest.$ac_ext
31137LIBS=$ac_check_lib_save_LIBS
31138fi
31139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
31140printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
31141if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
31142then :
31143  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31144fi
31145
31146      if test $ac_cv_lib_nsl_gethostbyname = no; then
31147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
31148printf %s "checking for gethostbyname in -lbsd... " >&6; }
31149if test ${ac_cv_lib_bsd_gethostbyname+y}
31150then :
31151  printf %s "(cached) " >&6
31152else $as_nop
31153  ac_check_lib_save_LIBS=$LIBS
31154LIBS="-lbsd  $LIBS"
31155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31156/* end confdefs.h.  */
31157
31158/* Override any GCC internal prototype to avoid an error.
31159   Use char because int might match the return type of a GCC
31160   builtin and then its argument prototype would still apply.  */
31161char gethostbyname ();
31162int
31163main (void)
31164{
31165return gethostbyname ();
31166  ;
31167  return 0;
31168}
31169_ACEOF
31170if ac_fn_c_try_link "$LINENO"
31171then :
31172  ac_cv_lib_bsd_gethostbyname=yes
31173else $as_nop
31174  ac_cv_lib_bsd_gethostbyname=no
31175fi
31176rm -f core conftest.err conftest.$ac_objext conftest.beam \
31177    conftest$ac_exeext conftest.$ac_ext
31178LIBS=$ac_check_lib_save_LIBS
31179fi
31180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
31181printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
31182if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
31183then :
31184  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31185fi
31186
31187      fi
31188    fi
31189
31190    # lieder@skyler.mavd.honeywell.com says without -lsocket,
31191    # socket/setsockopt and other routines are undefined under SCO ODT
31192    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31193    # on later versions), says Simon Leinen: it contains gethostby*
31194    # variants that don't use the name server (or something).  -lsocket
31195    # must be given before -lnsl if both are needed.  We assume that
31196    # if connect needs -lnsl, so does gethostbyname.
31197    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
31198if test "x$ac_cv_func_connect" = xyes
31199then :
31200
31201fi
31202
31203    if test $ac_cv_func_connect = no; then
31204      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
31205printf %s "checking for connect in -lsocket... " >&6; }
31206if test ${ac_cv_lib_socket_connect+y}
31207then :
31208  printf %s "(cached) " >&6
31209else $as_nop
31210  ac_check_lib_save_LIBS=$LIBS
31211LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31213/* end confdefs.h.  */
31214
31215/* Override any GCC internal prototype to avoid an error.
31216   Use char because int might match the return type of a GCC
31217   builtin and then its argument prototype would still apply.  */
31218char connect ();
31219int
31220main (void)
31221{
31222return connect ();
31223  ;
31224  return 0;
31225}
31226_ACEOF
31227if ac_fn_c_try_link "$LINENO"
31228then :
31229  ac_cv_lib_socket_connect=yes
31230else $as_nop
31231  ac_cv_lib_socket_connect=no
31232fi
31233rm -f core conftest.err conftest.$ac_objext conftest.beam \
31234    conftest$ac_exeext conftest.$ac_ext
31235LIBS=$ac_check_lib_save_LIBS
31236fi
31237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
31238printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
31239if test "x$ac_cv_lib_socket_connect" = xyes
31240then :
31241  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31242fi
31243
31244    fi
31245
31246    # Guillermo Gomez says -lposix is necessary on A/UX.
31247    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
31248if test "x$ac_cv_func_remove" = xyes
31249then :
31250
31251fi
31252
31253    if test $ac_cv_func_remove = no; then
31254      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
31255printf %s "checking for remove in -lposix... " >&6; }
31256if test ${ac_cv_lib_posix_remove+y}
31257then :
31258  printf %s "(cached) " >&6
31259else $as_nop
31260  ac_check_lib_save_LIBS=$LIBS
31261LIBS="-lposix  $LIBS"
31262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31263/* end confdefs.h.  */
31264
31265/* Override any GCC internal prototype to avoid an error.
31266   Use char because int might match the return type of a GCC
31267   builtin and then its argument prototype would still apply.  */
31268char remove ();
31269int
31270main (void)
31271{
31272return remove ();
31273  ;
31274  return 0;
31275}
31276_ACEOF
31277if ac_fn_c_try_link "$LINENO"
31278then :
31279  ac_cv_lib_posix_remove=yes
31280else $as_nop
31281  ac_cv_lib_posix_remove=no
31282fi
31283rm -f core conftest.err conftest.$ac_objext conftest.beam \
31284    conftest$ac_exeext conftest.$ac_ext
31285LIBS=$ac_check_lib_save_LIBS
31286fi
31287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
31288printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
31289if test "x$ac_cv_lib_posix_remove" = xyes
31290then :
31291  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31292fi
31293
31294    fi
31295
31296    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31297    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
31298if test "x$ac_cv_func_shmat" = xyes
31299then :
31300
31301fi
31302
31303    if test $ac_cv_func_shmat = no; then
31304      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
31305printf %s "checking for shmat in -lipc... " >&6; }
31306if test ${ac_cv_lib_ipc_shmat+y}
31307then :
31308  printf %s "(cached) " >&6
31309else $as_nop
31310  ac_check_lib_save_LIBS=$LIBS
31311LIBS="-lipc  $LIBS"
31312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31313/* end confdefs.h.  */
31314
31315/* Override any GCC internal prototype to avoid an error.
31316   Use char because int might match the return type of a GCC
31317   builtin and then its argument prototype would still apply.  */
31318char shmat ();
31319int
31320main (void)
31321{
31322return shmat ();
31323  ;
31324  return 0;
31325}
31326_ACEOF
31327if ac_fn_c_try_link "$LINENO"
31328then :
31329  ac_cv_lib_ipc_shmat=yes
31330else $as_nop
31331  ac_cv_lib_ipc_shmat=no
31332fi
31333rm -f core conftest.err conftest.$ac_objext conftest.beam \
31334    conftest$ac_exeext conftest.$ac_ext
31335LIBS=$ac_check_lib_save_LIBS
31336fi
31337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
31338printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
31339if test "x$ac_cv_lib_ipc_shmat" = xyes
31340then :
31341  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31342fi
31343
31344    fi
31345  fi
31346
31347  # Check for libraries that X11R6 Xt/Xaw programs need.
31348  ac_save_LDFLAGS=$LDFLAGS
31349  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31350  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31351  # check for ICE first), but we must link in the order -lSM -lICE or
31352  # we get undefined symbols.  So assume we have SM if we have ICE.
31353  # These have to be linked with before -lX11, unlike the other
31354  # libraries we check for below, so use a different variable.
31355  # John Interrante, Karl Berry
31356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
31357printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
31358if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
31359then :
31360  printf %s "(cached) " >&6
31361else $as_nop
31362  ac_check_lib_save_LIBS=$LIBS
31363LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365/* end confdefs.h.  */
31366
31367/* Override any GCC internal prototype to avoid an error.
31368   Use char because int might match the return type of a GCC
31369   builtin and then its argument prototype would still apply.  */
31370char IceConnectionNumber ();
31371int
31372main (void)
31373{
31374return IceConnectionNumber ();
31375  ;
31376  return 0;
31377}
31378_ACEOF
31379if ac_fn_c_try_link "$LINENO"
31380then :
31381  ac_cv_lib_ICE_IceConnectionNumber=yes
31382else $as_nop
31383  ac_cv_lib_ICE_IceConnectionNumber=no
31384fi
31385rm -f core conftest.err conftest.$ac_objext conftest.beam \
31386    conftest$ac_exeext conftest.$ac_ext
31387LIBS=$ac_check_lib_save_LIBS
31388fi
31389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31390printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31391if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
31392then :
31393  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31394fi
31395
31396  LDFLAGS=$ac_save_LDFLAGS
31397
31398fi
31399
31400
31401    CPPFLAGS_save=$CPPFLAGS
31402    LIBS_save=$LIBS
31403
31404    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
31405    LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
31406           for ac_header in X11/Xlib.h
31407do :
31408  ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
31409if test "x$ac_cv_header_X11_Xlib_h" = xyes
31410then :
31411  printf "%s\n" "#define HAVE_X11_XLIB_H 1" >>confdefs.h
31412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
31413printf %s "checking for XOpenDisplay in -lX11... " >&6; }
31414if test ${ac_cv_lib_X11_XOpenDisplay+y}
31415then :
31416  printf %s "(cached) " >&6
31417else $as_nop
31418  ac_check_lib_save_LIBS=$LIBS
31419LIBS="-lX11  $LIBS"
31420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31421/* end confdefs.h.  */
31422
31423/* Override any GCC internal prototype to avoid an error.
31424   Use char because int might match the return type of a GCC
31425   builtin and then its argument prototype would still apply.  */
31426char XOpenDisplay ();
31427int
31428main (void)
31429{
31430return XOpenDisplay ();
31431  ;
31432  return 0;
31433}
31434_ACEOF
31435if ac_fn_c_try_link "$LINENO"
31436then :
31437  ac_cv_lib_X11_XOpenDisplay=yes
31438else $as_nop
31439  ac_cv_lib_X11_XOpenDisplay=no
31440fi
31441rm -f core conftest.err conftest.$ac_objext conftest.beam \
31442    conftest$ac_exeext conftest.$ac_ext
31443LIBS=$ac_check_lib_save_LIBS
31444fi
31445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
31446printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; }
31447if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
31448then :
31449          for ac_header in X11/Xutil.h
31450do :
31451  ac_fn_c_check_header_compile "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "#include <X11/Xlib.h>
31452"
31453if test "x$ac_cv_header_X11_Xutil_h" = xyes
31454then :
31455  printf "%s\n" "#define HAVE_X11_XUTIL_H 1" >>confdefs.h
31456        for ac_header in X11/keysym.h
31457do :
31458  ac_fn_c_check_header_compile "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
31459if test "x$ac_cv_header_X11_keysym_h" = xyes
31460then :
31461  printf "%s\n" "#define HAVE_X11_KEYSYM_H 1" >>confdefs.h
31462
31463printf "%s\n" "#define HWLOC_HAVE_X11_KEYSYM 1" >>confdefs.h
31464
31465                     hwloc_x11_keysym_happy=yes
31466                     HWLOC_X11_CPPFLAGS="$X_CFLAGS"
31467
31468                     HWLOC_X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
31469
31470fi
31471
31472done
31473
31474fi
31475
31476done
31477
31478fi
31479
31480
31481fi
31482
31483done
31484    CPPFLAGS=$CPPFLAGS_save
31485    LIBS=$LIBS_save
31486
31487    # Cairo support
31488    hwloc_cairo_happy=no
31489    if test "x$enable_cairo" != "xno"; then
31490
31491
31492    HWLOC_pkg_failed=no
31493    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
31494printf %s "checking for CAIRO... " >&6; }
31495
31496    if test -n "$PKG_CONFIG"; then
31497    if test -n "$HWLOC_CAIRO_CFLAGS"; then
31498        HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS="$HWLOC_CAIRO_CFLAGS"
31499    else
31500        if test -n "$PKG_CONFIG" && \
31501    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cairo\""; } >&5
31502  ($PKG_CONFIG --exists --silence-errors "cairo") 2>&5
31503  ac_status=$?
31504  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31505  test $ac_status = 0; }; then
31506    HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
31507    else
31508                     HWLOC_pkg_failed=yes
31509fi
31510    fi
31511else
31512	HWLOC_pkg_failed=untried
31513fi
31514
31515    if test -n "$PKG_CONFIG"; then
31516    if test -n "$HWLOC_CAIRO_LIBS"; then
31517        HWLOC_pkg_cv_HWLOC_CAIRO_LIBS="$HWLOC_CAIRO_LIBS"
31518    else
31519        if test -n "$PKG_CONFIG" && \
31520    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"cairo\""; } >&5
31521  ($PKG_CONFIG --exists --silence-errors "cairo") 2>&5
31522  ac_status=$?
31523  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31524  test $ac_status = 0; }; then
31525    HWLOC_pkg_cv_HWLOC_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
31526    else
31527                     HWLOC_pkg_failed=yes
31528fi
31529    fi
31530else
31531	HWLOC_pkg_failed=untried
31532fi
31533
31534
31535
31536
31537    # Check for failure of pkg-config
31538    if test $HWLOC_pkg_failed = yes; then
31539
31540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31541        HWLOC_pkg_short_errors_supported=yes
31542else
31543        HWLOC_pkg_short_errors_supported=no
31544fi
31545        if test $HWLOC_pkg_short_errors_supported = yes; then
31546            HWLOC_CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo" 2>&1`
31547        else
31548            HWLOC_CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo" 2>&1`
31549        fi
31550        # Put the nasty error message in config.log where it belongs
31551	echo "$HWLOC_CAIRO_PKG_ERRORS" >&5
31552
31553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31554printf "%s\n" "no" >&6; }
31555                hwloc_cairo_happy=no
31556    elif test $HWLOC_pkg_failed = untried; then
31557        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
31558printf "%s\n" "cannot check without pkg-config" >&6; }
31559		hwloc_cairo_happy=no
31560    else
31561        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31562printf "%s\n" "yes" >&6; }
31563
31564        # If we got good results from pkg-config, check that they
31565        # actually work (i.e., that we can link against the resulting
31566        # $LIBS).  The canonical example why we do this is if
31567        # pkg-config returns 64 bit libraries but ./configure was run
31568        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
31569        # results, but we'll fail if we try to link.  So detect that
31570        # failure now.
31571        # There are also cases on Mac where pkg-config returns paths
31572        # that do not actually exists until some magic is applied.
31573        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
31574        # So check whether we find the header as well.
31575        hwloc_cflags_save=$CFLAGS
31576        hwloc_cppflags_save=$CPPFLAGS
31577        hwloc_libs_save=$LIBS
31578        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS"
31579        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS"
31580        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_CAIRO_LIBS"
31581        ac_fn_c_check_header_compile "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
31582if test "x$ac_cv_header_cairo_h" = xyes
31583then :
31584
31585            ac_fn_c_check_func "$LINENO" "cairo_fill" "ac_cv_func_cairo_fill"
31586if test "x$ac_cv_func_cairo_fill" = xyes
31587then :
31588  hwloc_result=yes
31589else $as_nop
31590  hwloc_result=no
31591fi
31592
31593
31594else $as_nop
31595  hwloc_result=no
31596fi
31597
31598        CFLAGS=$hwloc_cflags_save
31599        CPPFLAGS=$hwloc_cppflags_save
31600        LIBS=$hwloc_libs_save
31601
31602        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final CAIRO support" >&5
31603printf %s "checking for final CAIRO support... " >&6; }
31604        if test "$hwloc_result" = "yes"
31605then :
31606  HWLOC_CAIRO_CFLAGS=$HWLOC_pkg_cv_HWLOC_CAIRO_CFLAGS
31607               HWLOC_CAIRO_LIBS=$HWLOC_pkg_cv_HWLOC_CAIRO_LIBS
31608               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31609printf "%s\n" "yes" >&6; }
31610               hwloc_cairo_happy=yes
31611else $as_nop
31612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31613printf "%s\n" "no" >&6; }
31614               hwloc_cairo_happy=no
31615fi
31616    fi
31617    fi
31618
31619    if test "x$hwloc_cairo_happy" = "xyes"; then
31620
31621printf "%s\n" "#define HWLOC_HAVE_CAIRO 1" >>confdefs.h
31622
31623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstopo Cairo/X11 interactive graphical output is supported" >&5
31624printf %s "checking whether lstopo Cairo/X11 interactive graphical output is supported... " >&6; }
31625        if test "x$hwloc_x11_keysym_happy" = xyes; then
31626          save_CPPFLAGS="$CPPFLAGS"
31627          CPPFLAGS="$CPPFLAGS $HWLOC_CAIRO_CFLAGS $HWLOC_X11_CPPFLAGS"
31628          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31629/* end confdefs.h.  */
31630
31631
31632              #include <cairo.h>
31633
31634int
31635main (void)
31636{
31637
31638              #ifndef CAIRO_HAS_XLIB_SURFACE
31639              #error
31640              #endif
31641
31642  ;
31643  return 0;
31644}
31645
31646_ACEOF
31647if ac_fn_c_try_cpp "$LINENO"
31648then :
31649
31650            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31651printf "%s\n" "yes" >&6; }
31652            lstopo_have_x11=yes
31653
31654printf "%s\n" "#define LSTOPO_HAVE_X11 1" >>confdefs.h
31655
31656
31657else $as_nop
31658
31659            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (missing CAIRO_HAS_XLIB_SURFACE)" >&5
31660printf "%s\n" "no (missing CAIRO_HAS_XLIB_SURFACE)" >&6; }
31661
31662fi
31663rm -f conftest.err conftest.i conftest.$ac_ext
31664          CPPFLAGS="$save_CPPFLAGS"
31665        else
31666          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (missing X11)" >&5
31667printf "%s\n" "no (missing X11)" >&6; }
31668        fi
31669    else
31670        if test "$enable_cairo" = "yes"
31671then :
31672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-cairo requested, but Cairo/X11 support was not found" >&5
31673printf "%s\n" "$as_me: WARNING: --enable-cairo requested, but Cairo/X11 support was not found" >&2;}
31674               as_fn_error $? "Cannot continue" "$LINENO" 5
31675fi
31676    fi
31677
31678    ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "#include <wchar.h>
31679"
31680if test "x$ac_cv_type_wchar_t" = xyes
31681then :
31682
31683printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
31684
31685
31686      ac_fn_c_check_func "$LINENO" "putwc" "ac_cv_func_putwc"
31687if test "x$ac_cv_func_putwc" = xyes
31688then :
31689  printf "%s\n" "#define HAVE_PUTWC 1" >>confdefs.h
31690
31691fi
31692
31693
31694fi
31695
31696
31697    HWLOC_XML_LOCALIZED=1
31698           for ac_header in locale.h xlocale.h
31699do :
31700  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
31701ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31702if eval test \"x\$"$as_ac_Header"\" = x"yes"
31703then :
31704  cat >>confdefs.h <<_ACEOF
31705#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
31706_ACEOF
31707
31708      ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
31709if test "x$ac_cv_func_setlocale" = xyes
31710then :
31711  printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
31712
31713fi
31714
31715
31716  for ac_func in uselocale
31717do :
31718  ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
31719if test "x$ac_cv_func_uselocale" = xyes
31720then :
31721  printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
31722 HWLOC_XML_LOCALIZED=0
31723fi
31724
31725done
31726
31727fi
31728
31729done
31730
31731           for ac_header in langinfo.h
31732do :
31733  ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
31734if test "x$ac_cv_header_langinfo_h" = xyes
31735then :
31736  printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
31737
31738      ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
31739if test "x$ac_cv_func_nl_langinfo" = xyes
31740then :
31741  printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
31742
31743fi
31744
31745
31746fi
31747
31748done
31749    hwloc_old_LIBS="$LIBS"
31750    chosen_curses=""
31751    for curses in ncurses curses
31752    do
31753      for lib in "" -l${curses}w -l$curses -ltinfo -ltermcap
31754      do
31755        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking termcap support using $curses and $lib" >&5
31756printf %s "checking termcap support using $curses and $lib... " >&6; }
31757        LIBS="$hwloc_old_LIBS $lib"
31758        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31759/* end confdefs.h.  */
31760
31761#include <$curses.h>
31762#include <term.h>
31763
31764int
31765main (void)
31766{
31767tparm(NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0)
31768  ;
31769  return 0;
31770}
31771_ACEOF
31772if ac_fn_c_try_link "$LINENO"
31773then :
31774
31775          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31776printf "%s\n" "yes" >&6; }
31777          HWLOC_TERMCAP_LIBS="$LIBS"
31778
31779
31780printf "%s\n" "#define HWLOC_HAVE_LIBTERMCAP 1" >>confdefs.h
31781
31782          chosen_curses=$curses
31783
31784else $as_nop
31785
31786          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31787printf "%s\n" "no" >&6; }
31788
31789fi
31790rm -f core conftest.err conftest.$ac_objext conftest.beam \
31791    conftest$ac_exeext conftest.$ac_ext
31792        test "x$chosen_curses" != "x" && break
31793      done
31794      test "x$chosen_curses" != "x" && break
31795    done
31796    if test "$chosen_curses" = ncurses
31797    then
31798
31799printf "%s\n" "#define HWLOC_USE_NCURSES 1" >>confdefs.h
31800
31801    fi
31802    LIBS="$hwloc_old_LIBS"
31803    unset hwloc_old_LIBS
31804
31805
31806
31807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5
31808printf %s "checking whether diff accepts -u... " >&6; }
31809  if $DIFF -u /dev/null /dev/null 2> /dev/null
31810  then
31811    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31812printf "%s\n" "yes" >&6; }
31813    HWLOC_DIFF_U="-u"
31814  else
31815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31816printf "%s\n" "no" >&6; }
31817    HWLOC_DIFF_U=""
31818  fi
31819
31820
31821
31822
31823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -w" >&5
31824printf %s "checking whether diff accepts -w... " >&6; }
31825  if $DIFF -w /dev/null /dev/null 2> /dev/null
31826  then
31827    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31828printf "%s\n" "yes" >&6; }
31829    HWLOC_DIFF_W="-w"
31830  else
31831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31832printf "%s\n" "no" >&6; }
31833    HWLOC_DIFF_W=""
31834  fi
31835
31836
31837
31838    # Solaris needs -lsocket for socket/bind/... in hwloc-ps
31839    ac_fn_check_decl "$LINENO" "bind" "ac_cv_have_decl_bind" "#include <sys/socket.h>
31840" "$ac_c_undeclared_builtin_options" "CFLAGS"
31841if test "x$ac_cv_have_decl_bind" = xyes
31842then :
31843  ac_have_decl=1
31844else $as_nop
31845  ac_have_decl=0
31846fi
31847printf "%s\n" "#define HAVE_DECL_BIND $ac_have_decl" >>confdefs.h
31848if test $ac_have_decl = 1
31849then :
31850
31851      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
31852printf %s "checking for bind in -lsocket... " >&6; }
31853if test ${ac_cv_lib_socket_bind+y}
31854then :
31855  printf %s "(cached) " >&6
31856else $as_nop
31857  ac_check_lib_save_LIBS=$LIBS
31858LIBS="-lsocket  $LIBS"
31859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31860/* end confdefs.h.  */
31861
31862/* Override any GCC internal prototype to avoid an error.
31863   Use char because int might match the return type of a GCC
31864   builtin and then its argument prototype would still apply.  */
31865char bind ();
31866int
31867main (void)
31868{
31869return bind ();
31870  ;
31871  return 0;
31872}
31873_ACEOF
31874if ac_fn_c_try_link "$LINENO"
31875then :
31876  ac_cv_lib_socket_bind=yes
31877else $as_nop
31878  ac_cv_lib_socket_bind=no
31879fi
31880rm -f core conftest.err conftest.$ac_objext conftest.beam \
31881    conftest$ac_exeext conftest.$ac_ext
31882LIBS=$ac_check_lib_save_LIBS
31883fi
31884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
31885printf "%s\n" "$ac_cv_lib_socket_bind" >&6; }
31886if test "x$ac_cv_lib_socket_bind" = xyes
31887then :
31888  need_libsocket=yes
31889fi
31890
31891
31892fi
31893
31894    if test x$need_libsocket = xyes; then
31895      # keep -lsocket first in case there's also -lnsl which cannot be before -lsocket
31896      HWLOC_PS_LIBS="-lsocket $HWLOC_PS_LIBS"
31897    fi
31898
31899
31900           for ac_header in time.h
31901do :
31902  ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
31903if test "x$ac_cv_header_time_h" = xyes
31904then :
31905  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
31906
31907      ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
31908if test "x$ac_cv_func_clock_gettime" = xyes
31909then :
31910  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
31911
31912fi
31913
31914
31915fi
31916
31917done
31918
31919    # Only generate this if we're building the utilities
31920    # Even the netloc library Makefile is here because
31921    # we don't embed libnetloc yet, it's useless without tools
31922    ac_config_files="$ac_config_files utils/Makefile utils/hwloc/Makefile utils/lstopo/Makefile hwloc.pc netloc/Makefile utils/netloc/infiniband/Makefile utils/netloc/draw/Makefile utils/netloc/scotch/Makefile utils/netloc/mpi/Makefile netloc.pc netlocscotch.pc"
31923
31924
31925
31926    cat <<EOF
31927
31928###
31929### Configuring tests
31930###
31931EOF
31932
31933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
31934printf %s "checking for pthread_self in -lpthread... " >&6; }
31935if test ${ac_cv_lib_pthread_pthread_self+y}
31936then :
31937  printf %s "(cached) " >&6
31938else $as_nop
31939  ac_check_lib_save_LIBS=$LIBS
31940LIBS="-lpthread  $LIBS"
31941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31942/* end confdefs.h.  */
31943
31944/* Override any GCC internal prototype to avoid an error.
31945   Use char because int might match the return type of a GCC
31946   builtin and then its argument prototype would still apply.  */
31947char pthread_self ();
31948int
31949main (void)
31950{
31951return pthread_self ();
31952  ;
31953  return 0;
31954}
31955_ACEOF
31956if ac_fn_c_try_link "$LINENO"
31957then :
31958  ac_cv_lib_pthread_pthread_self=yes
31959else $as_nop
31960  ac_cv_lib_pthread_pthread_self=no
31961fi
31962rm -f core conftest.err conftest.$ac_objext conftest.beam \
31963    conftest$ac_exeext conftest.$ac_ext
31964LIBS=$ac_check_lib_save_LIBS
31965fi
31966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
31967printf "%s\n" "$ac_cv_lib_pthread_pthread_self" >&6; }
31968if test "x$ac_cv_lib_pthread_pthread_self" = xyes
31969then :
31970  hwloc_have_pthread=yes
31971fi
31972
31973
31974
31975
31976    HWLOC_pkg_failed=no
31977    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NUMA" >&5
31978printf %s "checking for NUMA... " >&6; }
31979
31980    if test -n "$PKG_CONFIG"; then
31981    if test -n "$HWLOC_NUMA_CFLAGS"; then
31982        HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS="$HWLOC_NUMA_CFLAGS"
31983    else
31984        if test -n "$PKG_CONFIG" && \
31985    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"numa\""; } >&5
31986  ($PKG_CONFIG --exists --silence-errors "numa") 2>&5
31987  ac_status=$?
31988  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31989  test $ac_status = 0; }; then
31990    HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS=`$PKG_CONFIG --cflags "numa" 2>/dev/null`
31991    else
31992                     HWLOC_pkg_failed=yes
31993fi
31994    fi
31995else
31996	HWLOC_pkg_failed=untried
31997fi
31998
31999    if test -n "$PKG_CONFIG"; then
32000    if test -n "$HWLOC_NUMA_LIBS"; then
32001        HWLOC_pkg_cv_HWLOC_NUMA_LIBS="$HWLOC_NUMA_LIBS"
32002    else
32003        if test -n "$PKG_CONFIG" && \
32004    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"numa\""; } >&5
32005  ($PKG_CONFIG --exists --silence-errors "numa") 2>&5
32006  ac_status=$?
32007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32008  test $ac_status = 0; }; then
32009    HWLOC_pkg_cv_HWLOC_NUMA_LIBS=`$PKG_CONFIG --libs "numa" 2>/dev/null`
32010    else
32011                     HWLOC_pkg_failed=yes
32012fi
32013    fi
32014else
32015	HWLOC_pkg_failed=untried
32016fi
32017
32018
32019
32020
32021    # Check for failure of pkg-config
32022    if test $HWLOC_pkg_failed = yes; then
32023
32024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32025        HWLOC_pkg_short_errors_supported=yes
32026else
32027        HWLOC_pkg_short_errors_supported=no
32028fi
32029        if test $HWLOC_pkg_short_errors_supported = yes; then
32030            HWLOC_NUMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "numa" 2>&1`
32031        else
32032            HWLOC_NUMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "numa" 2>&1`
32033        fi
32034        # Put the nasty error message in config.log where it belongs
32035	echo "$HWLOC_NUMA_PKG_ERRORS" >&5
32036
32037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038printf "%s\n" "no" >&6; }
32039
32040			     # libnuma didn't have a .pc before 2.0.12, look for it manually.
32041			     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
32042printf %s "checking for numa_available in -lnuma... " >&6; }
32043if test ${ac_cv_lib_numa_numa_available+y}
32044then :
32045  printf %s "(cached) " >&6
32046else $as_nop
32047  ac_check_lib_save_LIBS=$LIBS
32048LIBS="-lnuma  $LIBS"
32049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32050/* end confdefs.h.  */
32051
32052/* Override any GCC internal prototype to avoid an error.
32053   Use char because int might match the return type of a GCC
32054   builtin and then its argument prototype would still apply.  */
32055char numa_available ();
32056int
32057main (void)
32058{
32059return numa_available ();
32060  ;
32061  return 0;
32062}
32063_ACEOF
32064if ac_fn_c_try_link "$LINENO"
32065then :
32066  ac_cv_lib_numa_numa_available=yes
32067else $as_nop
32068  ac_cv_lib_numa_numa_available=no
32069fi
32070rm -f core conftest.err conftest.$ac_objext conftest.beam \
32071    conftest$ac_exeext conftest.$ac_ext
32072LIBS=$ac_check_lib_save_LIBS
32073fi
32074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
32075printf "%s\n" "$ac_cv_lib_numa_numa_available" >&6; }
32076if test "x$ac_cv_lib_numa_numa_available" = xyes
32077then :
32078
32079				# and make sure this old release has at least numa_bitmask_alloc() for our tests
32080			        ac_fn_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h>
32081" "$ac_c_undeclared_builtin_options" "CFLAGS"
32082if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes
32083then :
32084  hwloc_have_linux_libnuma=yes
32085					       HWLOC_NUMA_LIBS=-lnuma
32086
32087fi
32088
32089fi
32090
32091    elif test $HWLOC_pkg_failed = untried; then
32092        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
32093printf "%s\n" "cannot check without pkg-config" >&6; }
32094
32095			     # libnuma didn't have a .pc before 2.0.12, look for it manually.
32096			     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
32097printf %s "checking for numa_available in -lnuma... " >&6; }
32098if test ${ac_cv_lib_numa_numa_available+y}
32099then :
32100  printf %s "(cached) " >&6
32101else $as_nop
32102  ac_check_lib_save_LIBS=$LIBS
32103LIBS="-lnuma  $LIBS"
32104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32105/* end confdefs.h.  */
32106
32107/* Override any GCC internal prototype to avoid an error.
32108   Use char because int might match the return type of a GCC
32109   builtin and then its argument prototype would still apply.  */
32110char numa_available ();
32111int
32112main (void)
32113{
32114return numa_available ();
32115  ;
32116  return 0;
32117}
32118_ACEOF
32119if ac_fn_c_try_link "$LINENO"
32120then :
32121  ac_cv_lib_numa_numa_available=yes
32122else $as_nop
32123  ac_cv_lib_numa_numa_available=no
32124fi
32125rm -f core conftest.err conftest.$ac_objext conftest.beam \
32126    conftest$ac_exeext conftest.$ac_ext
32127LIBS=$ac_check_lib_save_LIBS
32128fi
32129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
32130printf "%s\n" "$ac_cv_lib_numa_numa_available" >&6; }
32131if test "x$ac_cv_lib_numa_numa_available" = xyes
32132then :
32133
32134				# and make sure this old release has at least numa_bitmask_alloc() for our tests
32135			        ac_fn_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h>
32136" "$ac_c_undeclared_builtin_options" "CFLAGS"
32137if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes
32138then :
32139  hwloc_have_linux_libnuma=yes
32140					       HWLOC_NUMA_LIBS=-lnuma
32141
32142fi
32143
32144fi
32145
32146    else
32147        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32148printf "%s\n" "yes" >&6; }
32149
32150        # If we got good results from pkg-config, check that they
32151        # actually work (i.e., that we can link against the resulting
32152        # $LIBS).  The canonical example why we do this is if
32153        # pkg-config returns 64 bit libraries but ./configure was run
32154        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
32155        # results, but we'll fail if we try to link.  So detect that
32156        # failure now.
32157        # There are also cases on Mac where pkg-config returns paths
32158        # that do not actually exists until some magic is applied.
32159        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
32160        # So check whether we find the header as well.
32161        hwloc_cflags_save=$CFLAGS
32162        hwloc_cppflags_save=$CPPFLAGS
32163        hwloc_libs_save=$LIBS
32164        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS"
32165        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS"
32166        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_NUMA_LIBS"
32167        ac_fn_c_check_header_compile "$LINENO" "numa.h" "ac_cv_header_numa_h" "$ac_includes_default"
32168if test "x$ac_cv_header_numa_h" = xyes
32169then :
32170
32171            ac_fn_c_check_func "$LINENO" "numa_available" "ac_cv_func_numa_available"
32172if test "x$ac_cv_func_numa_available" = xyes
32173then :
32174  hwloc_result=yes
32175else $as_nop
32176  hwloc_result=no
32177fi
32178
32179
32180else $as_nop
32181  hwloc_result=no
32182fi
32183
32184        CFLAGS=$hwloc_cflags_save
32185        CPPFLAGS=$hwloc_cppflags_save
32186        LIBS=$hwloc_libs_save
32187
32188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final NUMA support" >&5
32189printf %s "checking for final NUMA support... " >&6; }
32190        if test "$hwloc_result" = "yes"
32191then :
32192  HWLOC_NUMA_CFLAGS=$HWLOC_pkg_cv_HWLOC_NUMA_CFLAGS
32193               HWLOC_NUMA_LIBS=$HWLOC_pkg_cv_HWLOC_NUMA_LIBS
32194               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32195printf "%s\n" "yes" >&6; }
32196               hwloc_have_linux_libnuma=yes
32197else $as_nop
32198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32199printf "%s\n" "no" >&6; }
32200
32201			     # libnuma didn't have a .pc before 2.0.12, look for it manually.
32202			     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
32203printf %s "checking for numa_available in -lnuma... " >&6; }
32204if test ${ac_cv_lib_numa_numa_available+y}
32205then :
32206  printf %s "(cached) " >&6
32207else $as_nop
32208  ac_check_lib_save_LIBS=$LIBS
32209LIBS="-lnuma  $LIBS"
32210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32211/* end confdefs.h.  */
32212
32213/* Override any GCC internal prototype to avoid an error.
32214   Use char because int might match the return type of a GCC
32215   builtin and then its argument prototype would still apply.  */
32216char numa_available ();
32217int
32218main (void)
32219{
32220return numa_available ();
32221  ;
32222  return 0;
32223}
32224_ACEOF
32225if ac_fn_c_try_link "$LINENO"
32226then :
32227  ac_cv_lib_numa_numa_available=yes
32228else $as_nop
32229  ac_cv_lib_numa_numa_available=no
32230fi
32231rm -f core conftest.err conftest.$ac_objext conftest.beam \
32232    conftest$ac_exeext conftest.$ac_ext
32233LIBS=$ac_check_lib_save_LIBS
32234fi
32235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
32236printf "%s\n" "$ac_cv_lib_numa_numa_available" >&6; }
32237if test "x$ac_cv_lib_numa_numa_available" = xyes
32238then :
32239
32240				# and make sure this old release has at least numa_bitmask_alloc() for our tests
32241			        ac_fn_check_decl "$LINENO" "numa_bitmask_alloc" "ac_cv_have_decl_numa_bitmask_alloc" "#include <numa.h>
32242" "$ac_c_undeclared_builtin_options" "CFLAGS"
32243if test "x$ac_cv_have_decl_numa_bitmask_alloc" = xyes
32244then :
32245  hwloc_have_linux_libnuma=yes
32246					       HWLOC_NUMA_LIBS=-lnuma
32247
32248fi
32249
32250fi
32251
32252fi
32253    fi
32254
32255           for ac_header in stdlib.h
32256do :
32257  ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
32258if test "x$ac_cv_header_stdlib_h" = xyes
32259then :
32260  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32261
32262      ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
32263if test "x$ac_cv_func_mkstemp" = xyes
32264then :
32265  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
32266
32267fi
32268
32269
32270fi
32271
32272done
32273
32274           for ac_header in infiniband/verbs.h
32275do :
32276  ac_fn_c_check_header_compile "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
32277if test "x$ac_cv_header_infiniband_verbs_h" = xyes
32278then :
32279  printf "%s\n" "#define HAVE_INFINIBAND_VERBS_H 1" >>confdefs.h
32280
32281      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5
32282printf %s "checking for ibv_open_device in -libverbs... " >&6; }
32283if test ${ac_cv_lib_ibverbs_ibv_open_device+y}
32284then :
32285  printf %s "(cached) " >&6
32286else $as_nop
32287  ac_check_lib_save_LIBS=$LIBS
32288LIBS="-libverbs  $LIBS"
32289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32290/* end confdefs.h.  */
32291
32292/* Override any GCC internal prototype to avoid an error.
32293   Use char because int might match the return type of a GCC
32294   builtin and then its argument prototype would still apply.  */
32295char ibv_open_device ();
32296int
32297main (void)
32298{
32299return ibv_open_device ();
32300  ;
32301  return 0;
32302}
32303_ACEOF
32304if ac_fn_c_try_link "$LINENO"
32305then :
32306  ac_cv_lib_ibverbs_ibv_open_device=yes
32307else $as_nop
32308  ac_cv_lib_ibverbs_ibv_open_device=no
32309fi
32310rm -f core conftest.err conftest.$ac_objext conftest.beam \
32311    conftest$ac_exeext conftest.$ac_ext
32312LIBS=$ac_check_lib_save_LIBS
32313fi
32314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
32315printf "%s\n" "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
32316if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes
32317then :
32318
32319printf "%s\n" "#define HAVE_LIBIBVERBS 1" >>confdefs.h
32320
32321                    hwloc_have_libibverbs=yes
32322		    HWLOC_IBVERBS_LIBS=-libverbs
32323
32324
32325fi
32326
32327
32328fi
32329
32330done
32331
32332    for ac_prog in xmllint
32333do
32334  # Extract the first word of "$ac_prog", so it can be a program name with args.
32335set dummy $ac_prog; ac_word=$2
32336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32337printf %s "checking for $ac_word... " >&6; }
32338if test ${ac_cv_prog_XMLLINT+y}
32339then :
32340  printf %s "(cached) " >&6
32341else $as_nop
32342  if test -n "$XMLLINT"; then
32343  ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
32344else
32345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32346for as_dir in $PATH
32347do
32348  IFS=$as_save_IFS
32349  case $as_dir in #(((
32350    '') as_dir=./ ;;
32351    */) ;;
32352    *) as_dir=$as_dir/ ;;
32353  esac
32354    for ac_exec_ext in '' $ac_executable_extensions; do
32355  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32356    ac_cv_prog_XMLLINT="$ac_prog"
32357    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32358    break 2
32359  fi
32360done
32361  done
32362IFS=$as_save_IFS
32363
32364fi
32365fi
32366XMLLINT=$ac_cv_prog_XMLLINT
32367if test -n "$XMLLINT"; then
32368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
32369printf "%s\n" "$XMLLINT" >&6; }
32370else
32371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32372printf "%s\n" "no" >&6; }
32373fi
32374
32375
32376  test -n "$XMLLINT" && break
32377done
32378
32379
32380    for ac_prog in bunzip2
32381do
32382  # Extract the first word of "$ac_prog", so it can be a program name with args.
32383set dummy $ac_prog; ac_word=$2
32384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32385printf %s "checking for $ac_word... " >&6; }
32386if test ${ac_cv_prog_BUNZIPP+y}
32387then :
32388  printf %s "(cached) " >&6
32389else $as_nop
32390  if test -n "$BUNZIPP"; then
32391  ac_cv_prog_BUNZIPP="$BUNZIPP" # Let the user override the test.
32392else
32393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32394for as_dir in $PATH
32395do
32396  IFS=$as_save_IFS
32397  case $as_dir in #(((
32398    '') as_dir=./ ;;
32399    */) ;;
32400    *) as_dir=$as_dir/ ;;
32401  esac
32402    for ac_exec_ext in '' $ac_executable_extensions; do
32403  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32404    ac_cv_prog_BUNZIPP="$ac_prog"
32405    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32406    break 2
32407  fi
32408done
32409  done
32410IFS=$as_save_IFS
32411
32412fi
32413fi
32414BUNZIPP=$ac_cv_prog_BUNZIPP
32415if test -n "$BUNZIPP"; then
32416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUNZIPP" >&5
32417printf "%s\n" "$BUNZIPP" >&6; }
32418else
32419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32420printf "%s\n" "no" >&6; }
32421fi
32422
32423
32424  test -n "$BUNZIPP" && break
32425done
32426test -n "$BUNZIPP" || BUNZIPP="false"
32427
32428
32429    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CXX works" >&5
32430printf %s "checking if CXX works... " >&6; }
32431    ac_ext=cpp
32432ac_cpp='$CXXCPP $CPPFLAGS'
32433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32436
32437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32438/* end confdefs.h.  */
32439
32440#include <iostream>
32441using namespace std;
32442int foo(void) {
32443  cout << "test" << endl;
32444  return 0;
32445}
32446
32447int
32448main (void)
32449{
32450
32451  ;
32452  return 0;
32453}
32454_ACEOF
32455if ac_fn_cxx_try_compile "$LINENO"
32456then :
32457  hwloc_have_cxx=yes
32458else $as_nop
32459  hwloc_have_cxx=no
32460fi
32461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32462    ac_ext=c
32463ac_cpp='$CPP $CPPFLAGS'
32464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466ac_compiler_gnu=$ac_cv_c_compiler_gnu
32467
32468    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_cxx" >&5
32469printf "%s\n" "$hwloc_have_cxx" >&6; }
32470
32471
32472
32473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5
32474printf %s "checking whether diff accepts -u... " >&6; }
32475  if $DIFF -u /dev/null /dev/null 2> /dev/null
32476  then
32477    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32478printf "%s\n" "yes" >&6; }
32479    HWLOC_DIFF_U="-u"
32480  else
32481    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32482printf "%s\n" "no" >&6; }
32483    HWLOC_DIFF_U=""
32484  fi
32485
32486
32487
32488    # Only generate these files if we're making the tests
32489    ac_config_files="$ac_config_files tests/Makefile tests/hwloc/Makefile tests/hwloc/linux/Makefile tests/hwloc/linux/allowed/Makefile tests/hwloc/linux/gather/Makefile tests/hwloc/x86/Makefile tests/hwloc/x86+linux/Makefile tests/hwloc/xml/Makefile tests/hwloc/ports/Makefile tests/hwloc/rename/Makefile tests/hwloc/linux/allowed/test-topology.sh tests/hwloc/linux/gather/test-gather-topology.sh tests/hwloc/linux/test-topology.sh tests/hwloc/x86/test-topology.sh tests/hwloc/x86+linux/test-topology.sh tests/hwloc/xml/test-topology.sh tests/hwloc/wrapper.sh utils/hwloc/hwloc-compress-dir utils/hwloc/hwloc-gather-topology utils/hwloc/test-hwloc-annotate.sh utils/hwloc/test-hwloc-calc.sh utils/hwloc/test-hwloc-compress-dir.sh utils/hwloc/test-hwloc-diffpatch.sh utils/hwloc/test-hwloc-distrib.sh utils/hwloc/test-hwloc-info.sh utils/hwloc/test-fake-plugin.sh utils/hwloc/test-parsing-flags.sh utils/hwloc/test-hwloc-dump-hwdata/Makefile utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh utils/lstopo/test-lstopo.sh utils/lstopo/test-lstopo-shmem.sh utils/netloc/infiniband/netloc_ib_gather_raw contrib/hwloc-ps.www/Makefile contrib/systemd/Makefile contrib/completion/Makefile contrib/misc/Makefile contrib/windows/Makefile contrib/windows/test-windows-version.sh tests/netloc/Makefile tests/netloc/tests.sh"
32490
32491
32492    ac_config_commands="$ac_config_commands chmoding-scripts"
32493
32494
32495    # These links are only needed in standalone mode.  It would
32496    # be nice to m4 foreach this somehow, but whenever I tried
32497    # it, I got obscure "invalid tag" errors from
32498    # AC_CONFIG_LINKS.  :-\ Since these tests are only run when
32499    # built in standalone mode, only generate them in
32500    # standalone mode.
32501    ac_config_links="$ac_config_links tests/hwloc/ports/topology-solaris.c:hwloc/topology-solaris.c tests/hwloc/ports/topology-solaris-chiptype.c:hwloc/topology-solaris-chiptype.c tests/hwloc/ports/topology-aix.c:hwloc/topology-aix.c tests/hwloc/ports/topology-windows.c:hwloc/topology-windows.c tests/hwloc/ports/topology-darwin.c:hwloc/topology-darwin.c tests/hwloc/ports/topology-freebsd.c:hwloc/topology-freebsd.c tests/hwloc/ports/topology-netbsd.c:hwloc/topology-netbsd.c tests/hwloc/ports/topology-hpux.c:hwloc/topology-hpux.c tests/hwloc/ports/topology-bgq.c:hwloc/topology-bgq.c tests/hwloc/ports/topology-opencl.c:hwloc/topology-opencl.c tests/hwloc/ports/topology-cuda.c:hwloc/topology-cuda.c tests/hwloc/ports/topology-nvml.c:hwloc/topology-nvml.c tests/hwloc/ports/topology-rsmi.c:hwloc/topology-rsmi.c tests/hwloc/ports/topology-levelzero.c:hwloc/topology-levelzero.c tests/hwloc/ports/topology-gl.c:hwloc/topology-gl.c tests/hwloc/ports/lstopo-windows.c:utils/lstopo/lstopo-windows.c tests/hwloc/ports/lstopo-android.c:utils/lstopo/lstopo-android.c"
32502
32503
32504fi
32505
32506cat <<EOF
32507
32508###
32509### Performing final hwloc configuration
32510###
32511EOF
32512
32513# Run the AM_CONDITIONALs
32514
32515    if test "$hwloc_did_am_conditionals" != "yes"
32516then :
32517
32518         if test "$hwloc_mode" = "standalone"; then
32519  HWLOC_BUILD_STANDALONE_TRUE=
32520  HWLOC_BUILD_STANDALONE_FALSE='#'
32521else
32522  HWLOC_BUILD_STANDALONE_TRUE='#'
32523  HWLOC_BUILD_STANDALONE_FALSE=
32524fi
32525
32526
32527         if test "x$GCC" = "xyes"; then
32528  HWLOC_HAVE_GCC_TRUE=
32529  HWLOC_HAVE_GCC_FALSE='#'
32530else
32531  HWLOC_HAVE_GCC_TRUE='#'
32532  HWLOC_HAVE_GCC_FALSE=
32533fi
32534
32535         if test "x$HWLOC_MS_LIB" != "x"; then
32536  HWLOC_HAVE_MS_LIB_TRUE=
32537  HWLOC_HAVE_MS_LIB_FALSE='#'
32538else
32539  HWLOC_HAVE_MS_LIB_TRUE='#'
32540  HWLOC_HAVE_MS_LIB_FALSE=
32541fi
32542
32543         if test "x$hwloc_have_openat" = "xyes"; then
32544  HWLOC_HAVE_OPENAT_TRUE=
32545  HWLOC_HAVE_OPENAT_FALSE='#'
32546else
32547  HWLOC_HAVE_OPENAT_TRUE='#'
32548  HWLOC_HAVE_OPENAT_FALSE=
32549fi
32550
32551         if test "x$hwloc_have_sched_setaffinity" = "xyes"; then
32552  HWLOC_HAVE_SCHED_SETAFFINITY_TRUE=
32553  HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#'
32554else
32555  HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#'
32556  HWLOC_HAVE_SCHED_SETAFFINITY_FALSE=
32557fi
32558
32559         if test "x$hwloc_have_pthread" = "xyes"; then
32560  HWLOC_HAVE_PTHREAD_TRUE=
32561  HWLOC_HAVE_PTHREAD_FALSE='#'
32562else
32563  HWLOC_HAVE_PTHREAD_TRUE='#'
32564  HWLOC_HAVE_PTHREAD_FALSE=
32565fi
32566
32567         if test "x$hwloc_have_linux_libnuma" = "xyes"; then
32568  HWLOC_HAVE_LINUX_LIBNUMA_TRUE=
32569  HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#'
32570else
32571  HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#'
32572  HWLOC_HAVE_LINUX_LIBNUMA_FALSE=
32573fi
32574
32575         if test "x$hwloc_have_libibverbs" = "xyes"; then
32576  HWLOC_HAVE_LIBIBVERBS_TRUE=
32577  HWLOC_HAVE_LIBIBVERBS_FALSE='#'
32578else
32579  HWLOC_HAVE_LIBIBVERBS_TRUE='#'
32580  HWLOC_HAVE_LIBIBVERBS_FALSE=
32581fi
32582
32583	 if test "x$hwloc_have_cuda" = "xyes"; then
32584  HWLOC_HAVE_CUDA_TRUE=
32585  HWLOC_HAVE_CUDA_FALSE='#'
32586else
32587  HWLOC_HAVE_CUDA_TRUE='#'
32588  HWLOC_HAVE_CUDA_FALSE=
32589fi
32590
32591	 if test "x$hwloc_have_gl" = "xyes"; then
32592  HWLOC_HAVE_GL_TRUE=
32593  HWLOC_HAVE_GL_FALSE='#'
32594else
32595  HWLOC_HAVE_GL_TRUE='#'
32596  HWLOC_HAVE_GL_FALSE=
32597fi
32598
32599	 if test "x$hwloc_have_cudart" = "xyes"; then
32600  HWLOC_HAVE_CUDART_TRUE=
32601  HWLOC_HAVE_CUDART_FALSE='#'
32602else
32603  HWLOC_HAVE_CUDART_TRUE='#'
32604  HWLOC_HAVE_CUDART_FALSE=
32605fi
32606
32607         if test "$hwloc_libxml2_happy" = "yes"; then
32608  HWLOC_HAVE_LIBXML2_TRUE=
32609  HWLOC_HAVE_LIBXML2_FALSE='#'
32610else
32611  HWLOC_HAVE_LIBXML2_TRUE='#'
32612  HWLOC_HAVE_LIBXML2_FALSE=
32613fi
32614
32615         if test "$hwloc_cairo_happy" = "yes"; then
32616  HWLOC_HAVE_CAIRO_TRUE=
32617  HWLOC_HAVE_CAIRO_FALSE='#'
32618else
32619  HWLOC_HAVE_CAIRO_TRUE='#'
32620  HWLOC_HAVE_CAIRO_FALSE=
32621fi
32622
32623         if test "$hwloc_pciaccess_happy" = "yes"; then
32624  HWLOC_HAVE_PCIACCESS_TRUE=
32625  HWLOC_HAVE_PCIACCESS_FALSE='#'
32626else
32627  HWLOC_HAVE_PCIACCESS_TRUE='#'
32628  HWLOC_HAVE_PCIACCESS_FALSE=
32629fi
32630
32631         if test "$hwloc_opencl_happy" = "yes"; then
32632  HWLOC_HAVE_OPENCL_TRUE=
32633  HWLOC_HAVE_OPENCL_FALSE='#'
32634else
32635  HWLOC_HAVE_OPENCL_TRUE='#'
32636  HWLOC_HAVE_OPENCL_FALSE=
32637fi
32638
32639         if test "$hwloc_nvml_happy" = "yes"; then
32640  HWLOC_HAVE_NVML_TRUE=
32641  HWLOC_HAVE_NVML_FALSE='#'
32642else
32643  HWLOC_HAVE_NVML_TRUE='#'
32644  HWLOC_HAVE_NVML_FALSE=
32645fi
32646
32647         if test "$hwloc_rsmi_happy" = "yes"; then
32648  HWLOC_HAVE_RSMI_TRUE=
32649  HWLOC_HAVE_RSMI_FALSE='#'
32650else
32651  HWLOC_HAVE_RSMI_TRUE='#'
32652  HWLOC_HAVE_RSMI_FALSE=
32653fi
32654
32655         if test "$hwloc_levelzero_happy" = "yes"; then
32656  HWLOC_HAVE_LEVELZERO_TRUE=
32657  HWLOC_HAVE_LEVELZERO_FALSE='#'
32658else
32659  HWLOC_HAVE_LEVELZERO_TRUE='#'
32660  HWLOC_HAVE_LEVELZERO_FALSE=
32661fi
32662
32663         if test "x$BUNZIPP" != "xfalse"; then
32664  HWLOC_HAVE_BUNZIPP_TRUE=
32665  HWLOC_HAVE_BUNZIPP_FALSE='#'
32666else
32667  HWLOC_HAVE_BUNZIPP_TRUE='#'
32668  HWLOC_HAVE_BUNZIPP_FALSE=
32669fi
32670
32671         if test "x$hwloc_have_user32" = "xyes"; then
32672  HWLOC_HAVE_USER32_TRUE=
32673  HWLOC_HAVE_USER32_FALSE='#'
32674else
32675  HWLOC_HAVE_USER32_TRUE='#'
32676  HWLOC_HAVE_USER32_FALSE=
32677fi
32678
32679
32680         if test "x$hwloc_generate_doxs" = "xyes"; then
32681  HWLOC_BUILD_DOXYGEN_TRUE=
32682  HWLOC_BUILD_DOXYGEN_FALSE='#'
32683else
32684  HWLOC_BUILD_DOXYGEN_TRUE='#'
32685  HWLOC_BUILD_DOXYGEN_FALSE=
32686fi
32687
32688         if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then
32689  HWLOC_BUILD_README_TRUE=
32690  HWLOC_BUILD_README_FALSE='#'
32691else
32692  HWLOC_BUILD_README_TRUE='#'
32693  HWLOC_BUILD_README_FALSE=
32694fi
32695
32696         if test "x$hwloc_install_doxs" = "xyes"; then
32697  HWLOC_INSTALL_DOXYGEN_TRUE=
32698  HWLOC_INSTALL_DOXYGEN_FALSE='#'
32699else
32700  HWLOC_INSTALL_DOXYGEN_TRUE='#'
32701  HWLOC_INSTALL_DOXYGEN_FALSE=
32702fi
32703
32704
32705         if test "x$hwloc_linux" = "xyes"; then
32706  HWLOC_HAVE_LINUX_TRUE=
32707  HWLOC_HAVE_LINUX_FALSE='#'
32708else
32709  HWLOC_HAVE_LINUX_TRUE='#'
32710  HWLOC_HAVE_LINUX_FALSE=
32711fi
32712
32713         if test "x$hwloc_bgq" = "xyes"; then
32714  HWLOC_HAVE_BGQ_TRUE=
32715  HWLOC_HAVE_BGQ_FALSE='#'
32716else
32717  HWLOC_HAVE_BGQ_TRUE='#'
32718  HWLOC_HAVE_BGQ_FALSE=
32719fi
32720
32721         if test "x$hwloc_irix" = "xyes"; then
32722  HWLOC_HAVE_IRIX_TRUE=
32723  HWLOC_HAVE_IRIX_FALSE='#'
32724else
32725  HWLOC_HAVE_IRIX_TRUE='#'
32726  HWLOC_HAVE_IRIX_FALSE=
32727fi
32728
32729         if test "x$hwloc_darwin" = "xyes"; then
32730  HWLOC_HAVE_DARWIN_TRUE=
32731  HWLOC_HAVE_DARWIN_FALSE='#'
32732else
32733  HWLOC_HAVE_DARWIN_TRUE='#'
32734  HWLOC_HAVE_DARWIN_FALSE=
32735fi
32736
32737         if test "x$hwloc_freebsd" = "xyes"; then
32738  HWLOC_HAVE_FREEBSD_TRUE=
32739  HWLOC_HAVE_FREEBSD_FALSE='#'
32740else
32741  HWLOC_HAVE_FREEBSD_TRUE='#'
32742  HWLOC_HAVE_FREEBSD_FALSE=
32743fi
32744
32745         if test "x$hwloc_netbsd" = "xyes"; then
32746  HWLOC_HAVE_NETBSD_TRUE=
32747  HWLOC_HAVE_NETBSD_FALSE='#'
32748else
32749  HWLOC_HAVE_NETBSD_TRUE='#'
32750  HWLOC_HAVE_NETBSD_FALSE=
32751fi
32752
32753         if test "x$hwloc_solaris" = "xyes"; then
32754  HWLOC_HAVE_SOLARIS_TRUE=
32755  HWLOC_HAVE_SOLARIS_FALSE='#'
32756else
32757  HWLOC_HAVE_SOLARIS_TRUE='#'
32758  HWLOC_HAVE_SOLARIS_FALSE=
32759fi
32760
32761         if test "x$hwloc_aix" = "xyes"; then
32762  HWLOC_HAVE_AIX_TRUE=
32763  HWLOC_HAVE_AIX_FALSE='#'
32764else
32765  HWLOC_HAVE_AIX_TRUE='#'
32766  HWLOC_HAVE_AIX_FALSE=
32767fi
32768
32769         if test "x$hwloc_hpux" = "xyes"; then
32770  HWLOC_HAVE_HPUX_TRUE=
32771  HWLOC_HAVE_HPUX_FALSE='#'
32772else
32773  HWLOC_HAVE_HPUX_TRUE='#'
32774  HWLOC_HAVE_HPUX_FALSE=
32775fi
32776
32777         if test "x$hwloc_windows" = "xyes"; then
32778  HWLOC_HAVE_WINDOWS_TRUE=
32779  HWLOC_HAVE_WINDOWS_FALSE='#'
32780else
32781  HWLOC_HAVE_WINDOWS_TRUE='#'
32782  HWLOC_HAVE_WINDOWS_FALSE=
32783fi
32784
32785         if test "x$target_os" = "xmingw32"; then
32786  HWLOC_HAVE_MINGW32_TRUE=
32787  HWLOC_HAVE_MINGW32_FALSE='#'
32788else
32789  HWLOC_HAVE_MINGW32_TRUE='#'
32790  HWLOC_HAVE_MINGW32_FALSE=
32791fi
32792
32793
32794         if test "x$hwloc_x86_32" = "xyes" -o "x$hwloc_x86_64" = "xyes"; then
32795  HWLOC_HAVE_X86_TRUE=
32796  HWLOC_HAVE_X86_FALSE='#'
32797else
32798  HWLOC_HAVE_X86_TRUE='#'
32799  HWLOC_HAVE_X86_FALSE=
32800fi
32801
32802         if test "x$hwloc_x86_32" = "xyes"; then
32803  HWLOC_HAVE_X86_32_TRUE=
32804  HWLOC_HAVE_X86_32_FALSE='#'
32805else
32806  HWLOC_HAVE_X86_32_TRUE='#'
32807  HWLOC_HAVE_X86_32_FALSE=
32808fi
32809
32810         if test "x$hwloc_x86_64" = "xyes"; then
32811  HWLOC_HAVE_X86_64_TRUE=
32812  HWLOC_HAVE_X86_64_FALSE='#'
32813else
32814  HWLOC_HAVE_X86_64_TRUE='#'
32815  HWLOC_HAVE_X86_64_FALSE=
32816fi
32817
32818         if test "x$hwloc_have_x86_cpuid" = "xyes"; then
32819  HWLOC_HAVE_X86_CPUID_TRUE=
32820  HWLOC_HAVE_X86_CPUID_FALSE='#'
32821else
32822  HWLOC_HAVE_X86_CPUID_TRUE='#'
32823  HWLOC_HAVE_X86_CPUID_FALSE=
32824fi
32825
32826
32827         if test "x$enable_32bits_pci_domain" = "xyes"; then
32828  HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE=
32829  HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE='#'
32830else
32831  HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE='#'
32832  HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE=
32833fi
32834
32835
32836         if test "x$hwloc_have_plugins" = "xyes"; then
32837  HWLOC_HAVE_PLUGINS_TRUE=
32838  HWLOC_HAVE_PLUGINS_FALSE='#'
32839else
32840  HWLOC_HAVE_PLUGINS_TRUE='#'
32841  HWLOC_HAVE_PLUGINS_FALSE=
32842fi
32843
32844         if test "x$hwloc_pci_component" = "xstatic"; then
32845  HWLOC_PCI_BUILD_STATIC_TRUE=
32846  HWLOC_PCI_BUILD_STATIC_FALSE='#'
32847else
32848  HWLOC_PCI_BUILD_STATIC_TRUE='#'
32849  HWLOC_PCI_BUILD_STATIC_FALSE=
32850fi
32851
32852         if test "x$hwloc_opencl_component" = "xstatic"; then
32853  HWLOC_OPENCL_BUILD_STATIC_TRUE=
32854  HWLOC_OPENCL_BUILD_STATIC_FALSE='#'
32855else
32856  HWLOC_OPENCL_BUILD_STATIC_TRUE='#'
32857  HWLOC_OPENCL_BUILD_STATIC_FALSE=
32858fi
32859
32860         if test "x$hwloc_cuda_component" = "xstatic"; then
32861  HWLOC_CUDA_BUILD_STATIC_TRUE=
32862  HWLOC_CUDA_BUILD_STATIC_FALSE='#'
32863else
32864  HWLOC_CUDA_BUILD_STATIC_TRUE='#'
32865  HWLOC_CUDA_BUILD_STATIC_FALSE=
32866fi
32867
32868         if test "x$hwloc_nvml_component" = "xstatic"; then
32869  HWLOC_NVML_BUILD_STATIC_TRUE=
32870  HWLOC_NVML_BUILD_STATIC_FALSE='#'
32871else
32872  HWLOC_NVML_BUILD_STATIC_TRUE='#'
32873  HWLOC_NVML_BUILD_STATIC_FALSE=
32874fi
32875
32876         if test "x$hwloc_rsmi_component" = "xstatic"; then
32877  HWLOC_RSMI_BUILD_STATIC_TRUE=
32878  HWLOC_RSMI_BUILD_STATIC_FALSE='#'
32879else
32880  HWLOC_RSMI_BUILD_STATIC_TRUE='#'
32881  HWLOC_RSMI_BUILD_STATIC_FALSE=
32882fi
32883
32884         if test "x$hwloc_levelzero_component" = "xstatic"; then
32885  HWLOC_LEVELZERO_BUILD_STATIC_TRUE=
32886  HWLOC_LEVELZERO_BUILD_STATIC_FALSE='#'
32887else
32888  HWLOC_LEVELZERO_BUILD_STATIC_TRUE='#'
32889  HWLOC_LEVELZERO_BUILD_STATIC_FALSE=
32890fi
32891
32892         if test "x$hwloc_gl_component" = "xstatic"; then
32893  HWLOC_GL_BUILD_STATIC_TRUE=
32894  HWLOC_GL_BUILD_STATIC_FALSE='#'
32895else
32896  HWLOC_GL_BUILD_STATIC_TRUE='#'
32897  HWLOC_GL_BUILD_STATIC_FALSE=
32898fi
32899
32900         if test "x$hwloc_xml_libxml_component" = "xstatic"; then
32901  HWLOC_XML_LIBXML_BUILD_STATIC_TRUE=
32902  HWLOC_XML_LIBXML_BUILD_STATIC_FALSE='#'
32903else
32904  HWLOC_XML_LIBXML_BUILD_STATIC_TRUE='#'
32905  HWLOC_XML_LIBXML_BUILD_STATIC_FALSE=
32906fi
32907
32908
32909         if test "x$hwloc_have_cxx" = "xyes"; then
32910  HWLOC_HAVE_CXX_TRUE=
32911  HWLOC_HAVE_CXX_FALSE='#'
32912else
32913  HWLOC_HAVE_CXX_TRUE='#'
32914  HWLOC_HAVE_CXX_FALSE=
32915fi
32916
32917
32918fi
32919    hwloc_did_am_conditionals=yes
32920
32921    # For backwards compatibility (i.e., packages that only call
32922    # HWLOC_DO_AM_CONDITIONS, not NETLOC DO_AM_CONDITIONALS), we also have to
32923    # do the netloc AM conditionals here
32924
32925     if test "$netloc_happy" = "yes"; then
32926  BUILD_NETLOC_TRUE=
32927  BUILD_NETLOC_FALSE='#'
32928else
32929  BUILD_NETLOC_TRUE='#'
32930  BUILD_NETLOC_FALSE=
32931fi
32932
32933     if test "x$scotch_found_headers" = "xyes"; then
32934  BUILD_NETLOCSCOTCH_TRUE=
32935  BUILD_NETLOCSCOTCH_FALSE='#'
32936else
32937  BUILD_NETLOCSCOTCH_TRUE='#'
32938  BUILD_NETLOCSCOTCH_FALSE=
32939fi
32940
32941     if test "x$mpi_found_headers" = "xyes"; then
32942  BUILD_MPITOOLS_TRUE=
32943  BUILD_MPITOOLS_FALSE='#'
32944else
32945  BUILD_MPITOOLS_TRUE='#'
32946  BUILD_MPITOOLS_FALSE=
32947fi
32948
32949     if test "x$xz" = xyes; then
32950  FOUND_XZ_TRUE=
32951  FOUND_XZ_FALSE='#'
32952else
32953  FOUND_XZ_TRUE='#'
32954  FOUND_XZ_FALSE=
32955fi
32956
32957
32958
32959
32960     if test "$netloc_happy" = "yes"; then
32961  BUILD_NETLOC_TRUE=
32962  BUILD_NETLOC_FALSE='#'
32963else
32964  BUILD_NETLOC_TRUE='#'
32965  BUILD_NETLOC_FALSE=
32966fi
32967
32968     if test "x$scotch_found_headers" = "xyes"; then
32969  BUILD_NETLOCSCOTCH_TRUE=
32970  BUILD_NETLOCSCOTCH_FALSE='#'
32971else
32972  BUILD_NETLOCSCOTCH_TRUE='#'
32973  BUILD_NETLOCSCOTCH_FALSE=
32974fi
32975
32976     if test "x$mpi_found_headers" = "xyes"; then
32977  BUILD_MPITOOLS_TRUE=
32978  BUILD_MPITOOLS_FALSE='#'
32979else
32980  BUILD_MPITOOLS_TRUE='#'
32981  BUILD_MPITOOLS_FALSE=
32982fi
32983
32984     if test "x$xz" = xyes; then
32985  FOUND_XZ_TRUE=
32986  FOUND_XZ_FALSE='#'
32987else
32988  FOUND_XZ_TRUE='#'
32989  FOUND_XZ_FALSE=
32990fi
32991
32992
32993
32994####################################################################
32995# Final output
32996####################################################################
32997
32998# Set the final flags
32999CFLAGS="$HWLOC_EMBEDDED_CFLAGS $CFLAGS"
33000CPPFLAGS="$HWLOC_EMBEDDED_CPPFLAGS $CPPFLAGS"
33001LIBS="$HWLOC_EMBEDDED_LIBS $LIBS"
33002
33003# Party on
33004cat >confcache <<\_ACEOF
33005# This file is a shell script that caches the results of configure
33006# tests run on this system so they can be shared between configure
33007# scripts and configure runs, see configure's option --config-cache.
33008# It is not useful on other systems.  If it contains results you don't
33009# want to keep, you may remove or edit it.
33010#
33011# config.status only pays attention to the cache file if you give it
33012# the --recheck option to rerun configure.
33013#
33014# `ac_cv_env_foo' variables (set or unset) will be overridden when
33015# loading this file, other *unset* `ac_cv_foo' will be assigned the
33016# following values.
33017
33018_ACEOF
33019
33020# The following way of writing the cache mishandles newlines in values,
33021# but we know of no workaround that is simple, portable, and efficient.
33022# So, we kill variables containing newlines.
33023# Ultrix sh set writes to stderr and can't be redirected directly,
33024# and sets the high bit in the cache file unless we assign to the vars.
33025(
33026  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33027    eval ac_val=\$$ac_var
33028    case $ac_val in #(
33029    *${as_nl}*)
33030      case $ac_var in #(
33031      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33032printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33033      esac
33034      case $ac_var in #(
33035      _ | IFS | as_nl) ;; #(
33036      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33037      *) { eval $ac_var=; unset $ac_var;} ;;
33038      esac ;;
33039    esac
33040  done
33041
33042  (set) 2>&1 |
33043    case $as_nl`(ac_space=' '; set) 2>&1` in #(
33044    *${as_nl}ac_space=\ *)
33045      # `set' does not quote correctly, so add quotes: double-quote
33046      # substitution turns \\\\ into \\, and sed turns \\ into \.
33047      sed -n \
33048	"s/'/'\\\\''/g;
33049	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33050      ;; #(
33051    *)
33052      # `set' quotes correctly as required by POSIX, so do not add quotes.
33053      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33054      ;;
33055    esac |
33056    sort
33057) |
33058  sed '
33059     /^ac_cv_env_/b end
33060     t clear
33061     :clear
33062     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
33063     t end
33064     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33065     :end' >>confcache
33066if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33067  if test -w "$cache_file"; then
33068    if test "x$cache_file" != "x/dev/null"; then
33069      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33070printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
33071      if test ! -f "$cache_file" || test -h "$cache_file"; then
33072	cat confcache >"$cache_file"
33073      else
33074        case $cache_file in #(
33075        */* | ?:*)
33076	  mv -f confcache "$cache_file"$$ &&
33077	  mv -f "$cache_file"$$ "$cache_file" ;; #(
33078        *)
33079	  mv -f confcache "$cache_file" ;;
33080	esac
33081      fi
33082    fi
33083  else
33084    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33085printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
33086  fi
33087fi
33088rm -f confcache
33089
33090test "x$prefix" = xNONE && prefix=$ac_default_prefix
33091# Let make expand exec_prefix.
33092test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33093
33094DEFS=-DHAVE_CONFIG_H
33095
33096ac_libobjs=
33097ac_ltlibobjs=
33098U=
33099for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33100  # 1. Remove the extension, and $U if already installed.
33101  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33102  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
33103  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33104  #    will be set to the directory where LIBOBJS objects are built.
33105  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33106  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33107done
33108LIBOBJS=$ac_libobjs
33109
33110LTLIBOBJS=$ac_ltlibobjs
33111
33112
33113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33114printf %s "checking that generated files are newer than configure... " >&6; }
33115   if test -n "$am_sleep_pid"; then
33116     # Hide warnings about reused PIDs.
33117     wait $am_sleep_pid 2>/dev/null
33118   fi
33119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
33120printf "%s\n" "done" >&6; }
33121 if test -n "$EXEEXT"; then
33122  am__EXEEXT_TRUE=
33123  am__EXEEXT_FALSE='#'
33124else
33125  am__EXEEXT_TRUE='#'
33126  am__EXEEXT_FALSE=
33127fi
33128
33129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33130  as_fn_error $? "conditional \"AMDEP\" was never defined.
33131Usually this means the macro was only invoked conditionally." "$LINENO" 5
33132fi
33133if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33134  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33135Usually this means the macro was only invoked conditionally." "$LINENO" 5
33136fi
33137if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33138  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33139Usually this means the macro was only invoked conditionally." "$LINENO" 5
33140fi
33141if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33142  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33143Usually this means the macro was only invoked conditionally." "$LINENO" 5
33144fi
33145if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then
33146  as_fn_error $? "conditional \"HWLOC_BUILD_STANDALONE\" was never defined.
33147Usually this means the macro was only invoked conditionally." "$LINENO" 5
33148fi
33149if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then
33150  as_fn_error $? "conditional \"HWLOC_HAVE_GCC\" was never defined.
33151Usually this means the macro was only invoked conditionally." "$LINENO" 5
33152fi
33153if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then
33154  as_fn_error $? "conditional \"HWLOC_HAVE_MS_LIB\" was never defined.
33155Usually this means the macro was only invoked conditionally." "$LINENO" 5
33156fi
33157if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then
33158  as_fn_error $? "conditional \"HWLOC_HAVE_OPENAT\" was never defined.
33159Usually this means the macro was only invoked conditionally." "$LINENO" 5
33160fi
33161if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then
33162  as_fn_error $? "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined.
33163Usually this means the macro was only invoked conditionally." "$LINENO" 5
33164fi
33165if test -z "${HWLOC_HAVE_PTHREAD_TRUE}" && test -z "${HWLOC_HAVE_PTHREAD_FALSE}"; then
33166  as_fn_error $? "conditional \"HWLOC_HAVE_PTHREAD\" was never defined.
33167Usually this means the macro was only invoked conditionally." "$LINENO" 5
33168fi
33169if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then
33170  as_fn_error $? "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined.
33171Usually this means the macro was only invoked conditionally." "$LINENO" 5
33172fi
33173if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then
33174  as_fn_error $? "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined.
33175Usually this means the macro was only invoked conditionally." "$LINENO" 5
33176fi
33177if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then
33178  as_fn_error $? "conditional \"HWLOC_HAVE_CUDA\" was never defined.
33179Usually this means the macro was only invoked conditionally." "$LINENO" 5
33180fi
33181if test -z "${HWLOC_HAVE_GL_TRUE}" && test -z "${HWLOC_HAVE_GL_FALSE}"; then
33182  as_fn_error $? "conditional \"HWLOC_HAVE_GL\" was never defined.
33183Usually this means the macro was only invoked conditionally." "$LINENO" 5
33184fi
33185if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then
33186  as_fn_error $? "conditional \"HWLOC_HAVE_CUDART\" was never defined.
33187Usually this means the macro was only invoked conditionally." "$LINENO" 5
33188fi
33189if test -z "${HWLOC_HAVE_LIBXML2_TRUE}" && test -z "${HWLOC_HAVE_LIBXML2_FALSE}"; then
33190  as_fn_error $? "conditional \"HWLOC_HAVE_LIBXML2\" was never defined.
33191Usually this means the macro was only invoked conditionally." "$LINENO" 5
33192fi
33193if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then
33194  as_fn_error $? "conditional \"HWLOC_HAVE_CAIRO\" was never defined.
33195Usually this means the macro was only invoked conditionally." "$LINENO" 5
33196fi
33197if test -z "${HWLOC_HAVE_PCIACCESS_TRUE}" && test -z "${HWLOC_HAVE_PCIACCESS_FALSE}"; then
33198  as_fn_error $? "conditional \"HWLOC_HAVE_PCIACCESS\" was never defined.
33199Usually this means the macro was only invoked conditionally." "$LINENO" 5
33200fi
33201if test -z "${HWLOC_HAVE_OPENCL_TRUE}" && test -z "${HWLOC_HAVE_OPENCL_FALSE}"; then
33202  as_fn_error $? "conditional \"HWLOC_HAVE_OPENCL\" was never defined.
33203Usually this means the macro was only invoked conditionally." "$LINENO" 5
33204fi
33205if test -z "${HWLOC_HAVE_NVML_TRUE}" && test -z "${HWLOC_HAVE_NVML_FALSE}"; then
33206  as_fn_error $? "conditional \"HWLOC_HAVE_NVML\" was never defined.
33207Usually this means the macro was only invoked conditionally." "$LINENO" 5
33208fi
33209if test -z "${HWLOC_HAVE_RSMI_TRUE}" && test -z "${HWLOC_HAVE_RSMI_FALSE}"; then
33210  as_fn_error $? "conditional \"HWLOC_HAVE_RSMI\" was never defined.
33211Usually this means the macro was only invoked conditionally." "$LINENO" 5
33212fi
33213if test -z "${HWLOC_HAVE_LEVELZERO_TRUE}" && test -z "${HWLOC_HAVE_LEVELZERO_FALSE}"; then
33214  as_fn_error $? "conditional \"HWLOC_HAVE_LEVELZERO\" was never defined.
33215Usually this means the macro was only invoked conditionally." "$LINENO" 5
33216fi
33217if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then
33218  as_fn_error $? "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined.
33219Usually this means the macro was only invoked conditionally." "$LINENO" 5
33220fi
33221if test -z "${HWLOC_HAVE_USER32_TRUE}" && test -z "${HWLOC_HAVE_USER32_FALSE}"; then
33222  as_fn_error $? "conditional \"HWLOC_HAVE_USER32\" was never defined.
33223Usually this means the macro was only invoked conditionally." "$LINENO" 5
33224fi
33225if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then
33226  as_fn_error $? "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined.
33227Usually this means the macro was only invoked conditionally." "$LINENO" 5
33228fi
33229if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then
33230  as_fn_error $? "conditional \"HWLOC_BUILD_README\" was never defined.
33231Usually this means the macro was only invoked conditionally." "$LINENO" 5
33232fi
33233if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then
33234  as_fn_error $? "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined.
33235Usually this means the macro was only invoked conditionally." "$LINENO" 5
33236fi
33237if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then
33238  as_fn_error $? "conditional \"HWLOC_HAVE_LINUX\" was never defined.
33239Usually this means the macro was only invoked conditionally." "$LINENO" 5
33240fi
33241if test -z "${HWLOC_HAVE_BGQ_TRUE}" && test -z "${HWLOC_HAVE_BGQ_FALSE}"; then
33242  as_fn_error $? "conditional \"HWLOC_HAVE_BGQ\" was never defined.
33243Usually this means the macro was only invoked conditionally." "$LINENO" 5
33244fi
33245if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then
33246  as_fn_error $? "conditional \"HWLOC_HAVE_IRIX\" was never defined.
33247Usually this means the macro was only invoked conditionally." "$LINENO" 5
33248fi
33249if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then
33250  as_fn_error $? "conditional \"HWLOC_HAVE_DARWIN\" was never defined.
33251Usually this means the macro was only invoked conditionally." "$LINENO" 5
33252fi
33253if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then
33254  as_fn_error $? "conditional \"HWLOC_HAVE_FREEBSD\" was never defined.
33255Usually this means the macro was only invoked conditionally." "$LINENO" 5
33256fi
33257if test -z "${HWLOC_HAVE_NETBSD_TRUE}" && test -z "${HWLOC_HAVE_NETBSD_FALSE}"; then
33258  as_fn_error $? "conditional \"HWLOC_HAVE_NETBSD\" was never defined.
33259Usually this means the macro was only invoked conditionally." "$LINENO" 5
33260fi
33261if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then
33262  as_fn_error $? "conditional \"HWLOC_HAVE_SOLARIS\" was never defined.
33263Usually this means the macro was only invoked conditionally." "$LINENO" 5
33264fi
33265if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then
33266  as_fn_error $? "conditional \"HWLOC_HAVE_AIX\" was never defined.
33267Usually this means the macro was only invoked conditionally." "$LINENO" 5
33268fi
33269if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then
33270  as_fn_error $? "conditional \"HWLOC_HAVE_HPUX\" was never defined.
33271Usually this means the macro was only invoked conditionally." "$LINENO" 5
33272fi
33273if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then
33274  as_fn_error $? "conditional \"HWLOC_HAVE_WINDOWS\" was never defined.
33275Usually this means the macro was only invoked conditionally." "$LINENO" 5
33276fi
33277if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then
33278  as_fn_error $? "conditional \"HWLOC_HAVE_MINGW32\" was never defined.
33279Usually this means the macro was only invoked conditionally." "$LINENO" 5
33280fi
33281if test -z "${HWLOC_HAVE_X86_TRUE}" && test -z "${HWLOC_HAVE_X86_FALSE}"; then
33282  as_fn_error $? "conditional \"HWLOC_HAVE_X86\" was never defined.
33283Usually this means the macro was only invoked conditionally." "$LINENO" 5
33284fi
33285if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then
33286  as_fn_error $? "conditional \"HWLOC_HAVE_X86_32\" was never defined.
33287Usually this means the macro was only invoked conditionally." "$LINENO" 5
33288fi
33289if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then
33290  as_fn_error $? "conditional \"HWLOC_HAVE_X86_64\" was never defined.
33291Usually this means the macro was only invoked conditionally." "$LINENO" 5
33292fi
33293if test -z "${HWLOC_HAVE_X86_CPUID_TRUE}" && test -z "${HWLOC_HAVE_X86_CPUID_FALSE}"; then
33294  as_fn_error $? "conditional \"HWLOC_HAVE_X86_CPUID\" was never defined.
33295Usually this means the macro was only invoked conditionally." "$LINENO" 5
33296fi
33297if test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE}" && test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE}"; then
33298  as_fn_error $? "conditional \"HWLOC_HAVE_32BITS_PCI_DOMAIN\" was never defined.
33299Usually this means the macro was only invoked conditionally." "$LINENO" 5
33300fi
33301if test -z "${HWLOC_HAVE_PLUGINS_TRUE}" && test -z "${HWLOC_HAVE_PLUGINS_FALSE}"; then
33302  as_fn_error $? "conditional \"HWLOC_HAVE_PLUGINS\" was never defined.
33303Usually this means the macro was only invoked conditionally." "$LINENO" 5
33304fi
33305if test -z "${HWLOC_PCI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_PCI_BUILD_STATIC_FALSE}"; then
33306  as_fn_error $? "conditional \"HWLOC_PCI_BUILD_STATIC\" was never defined.
33307Usually this means the macro was only invoked conditionally." "$LINENO" 5
33308fi
33309if test -z "${HWLOC_OPENCL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_OPENCL_BUILD_STATIC_FALSE}"; then
33310  as_fn_error $? "conditional \"HWLOC_OPENCL_BUILD_STATIC\" was never defined.
33311Usually this means the macro was only invoked conditionally." "$LINENO" 5
33312fi
33313if test -z "${HWLOC_CUDA_BUILD_STATIC_TRUE}" && test -z "${HWLOC_CUDA_BUILD_STATIC_FALSE}"; then
33314  as_fn_error $? "conditional \"HWLOC_CUDA_BUILD_STATIC\" was never defined.
33315Usually this means the macro was only invoked conditionally." "$LINENO" 5
33316fi
33317if test -z "${HWLOC_NVML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_NVML_BUILD_STATIC_FALSE}"; then
33318  as_fn_error $? "conditional \"HWLOC_NVML_BUILD_STATIC\" was never defined.
33319Usually this means the macro was only invoked conditionally." "$LINENO" 5
33320fi
33321if test -z "${HWLOC_RSMI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_RSMI_BUILD_STATIC_FALSE}"; then
33322  as_fn_error $? "conditional \"HWLOC_RSMI_BUILD_STATIC\" was never defined.
33323Usually this means the macro was only invoked conditionally." "$LINENO" 5
33324fi
33325if test -z "${HWLOC_LEVELZERO_BUILD_STATIC_TRUE}" && test -z "${HWLOC_LEVELZERO_BUILD_STATIC_FALSE}"; then
33326  as_fn_error $? "conditional \"HWLOC_LEVELZERO_BUILD_STATIC\" was never defined.
33327Usually this means the macro was only invoked conditionally." "$LINENO" 5
33328fi
33329if test -z "${HWLOC_GL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_GL_BUILD_STATIC_FALSE}"; then
33330  as_fn_error $? "conditional \"HWLOC_GL_BUILD_STATIC\" was never defined.
33331Usually this means the macro was only invoked conditionally." "$LINENO" 5
33332fi
33333if test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_FALSE}"; then
33334  as_fn_error $? "conditional \"HWLOC_XML_LIBXML_BUILD_STATIC\" was never defined.
33335Usually this means the macro was only invoked conditionally." "$LINENO" 5
33336fi
33337if test -z "${HWLOC_HAVE_CXX_TRUE}" && test -z "${HWLOC_HAVE_CXX_FALSE}"; then
33338  as_fn_error $? "conditional \"HWLOC_HAVE_CXX\" was never defined.
33339Usually this means the macro was only invoked conditionally." "$LINENO" 5
33340fi
33341if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then
33342  as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined.
33343Usually this means the macro was only invoked conditionally." "$LINENO" 5
33344fi
33345if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then
33346  as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined.
33347Usually this means the macro was only invoked conditionally." "$LINENO" 5
33348fi
33349if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then
33350  as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined.
33351Usually this means the macro was only invoked conditionally." "$LINENO" 5
33352fi
33353if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then
33354  as_fn_error $? "conditional \"FOUND_XZ\" was never defined.
33355Usually this means the macro was only invoked conditionally." "$LINENO" 5
33356fi
33357if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then
33358  as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined.
33359Usually this means the macro was only invoked conditionally." "$LINENO" 5
33360fi
33361if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then
33362  as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined.
33363Usually this means the macro was only invoked conditionally." "$LINENO" 5
33364fi
33365if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then
33366  as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined.
33367Usually this means the macro was only invoked conditionally." "$LINENO" 5
33368fi
33369if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then
33370  as_fn_error $? "conditional \"FOUND_XZ\" was never defined.
33371Usually this means the macro was only invoked conditionally." "$LINENO" 5
33372fi
33373
33374: "${CONFIG_STATUS=./config.status}"
33375ac_write_fail=0
33376ac_clean_files_save=$ac_clean_files
33377ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33379printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
33380as_write_fail=0
33381cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33382#! $SHELL
33383# Generated by $as_me.
33384# Run this file to recreate the current configuration.
33385# Compiler output produced by configure, useful for debugging
33386# configure, is in config.log if it exists.
33387
33388debug=false
33389ac_cs_recheck=false
33390ac_cs_silent=false
33391
33392SHELL=\${CONFIG_SHELL-$SHELL}
33393export SHELL
33394_ASEOF
33395cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33396## -------------------- ##
33397## M4sh Initialization. ##
33398## -------------------- ##
33399
33400# Be more Bourne compatible
33401DUALCASE=1; export DUALCASE # for MKS sh
33402as_nop=:
33403if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
33404then :
33405  emulate sh
33406  NULLCMD=:
33407  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33408  # is contrary to our usage.  Disable this feature.
33409  alias -g '${1+"$@"}'='"$@"'
33410  setopt NO_GLOB_SUBST
33411else $as_nop
33412  case `(set -o) 2>/dev/null` in #(
33413  *posix*) :
33414    set -o posix ;; #(
33415  *) :
33416     ;;
33417esac
33418fi
33419
33420
33421
33422# Reset variables that may have inherited troublesome values from
33423# the environment.
33424
33425# IFS needs to be set, to space, tab, and newline, in precisely that order.
33426# (If _AS_PATH_WALK were called with IFS unset, it would have the
33427# side effect of setting IFS to empty, thus disabling word splitting.)
33428# Quoting is to prevent editors from complaining about space-tab.
33429as_nl='
33430'
33431export as_nl
33432IFS=" ""	$as_nl"
33433
33434PS1='$ '
33435PS2='> '
33436PS4='+ '
33437
33438# Ensure predictable behavior from utilities with locale-dependent output.
33439LC_ALL=C
33440export LC_ALL
33441LANGUAGE=C
33442export LANGUAGE
33443
33444# We cannot yet rely on "unset" to work, but we need these variables
33445# to be unset--not just set to an empty or harmless value--now, to
33446# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
33447# also avoids known problems related to "unset" and subshell syntax
33448# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
33449for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
33450do eval test \${$as_var+y} \
33451  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33452done
33453
33454# Ensure that fds 0, 1, and 2 are open.
33455if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
33456if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
33457if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
33458
33459# The user is always right.
33460if ${PATH_SEPARATOR+false} :; then
33461  PATH_SEPARATOR=:
33462  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33463    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33464      PATH_SEPARATOR=';'
33465  }
33466fi
33467
33468
33469# Find who we are.  Look in the path if we contain no directory separator.
33470as_myself=
33471case $0 in #((
33472  *[\\/]* ) as_myself=$0 ;;
33473  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33474for as_dir in $PATH
33475do
33476  IFS=$as_save_IFS
33477  case $as_dir in #(((
33478    '') as_dir=./ ;;
33479    */) ;;
33480    *) as_dir=$as_dir/ ;;
33481  esac
33482    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
33483  done
33484IFS=$as_save_IFS
33485
33486     ;;
33487esac
33488# We did not find ourselves, most probably we were run as `sh COMMAND'
33489# in which case we are not to be found in the path.
33490if test "x$as_myself" = x; then
33491  as_myself=$0
33492fi
33493if test ! -f "$as_myself"; then
33494  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33495  exit 1
33496fi
33497
33498
33499
33500# as_fn_error STATUS ERROR [LINENO LOG_FD]
33501# ----------------------------------------
33502# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33503# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33504# script with STATUS, using 1 if that was 0.
33505as_fn_error ()
33506{
33507  as_status=$1; test $as_status -eq 0 && as_status=1
33508  if test "$4"; then
33509    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33510    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33511  fi
33512  printf "%s\n" "$as_me: error: $2" >&2
33513  as_fn_exit $as_status
33514} # as_fn_error
33515
33516
33517
33518# as_fn_set_status STATUS
33519# -----------------------
33520# Set $? to STATUS, without forking.
33521as_fn_set_status ()
33522{
33523  return $1
33524} # as_fn_set_status
33525
33526# as_fn_exit STATUS
33527# -----------------
33528# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33529as_fn_exit ()
33530{
33531  set +e
33532  as_fn_set_status $1
33533  exit $1
33534} # as_fn_exit
33535
33536# as_fn_unset VAR
33537# ---------------
33538# Portably unset VAR.
33539as_fn_unset ()
33540{
33541  { eval $1=; unset $1;}
33542}
33543as_unset=as_fn_unset
33544
33545# as_fn_append VAR VALUE
33546# ----------------------
33547# Append the text in VALUE to the end of the definition contained in VAR. Take
33548# advantage of any shell optimizations that allow amortized linear growth over
33549# repeated appends, instead of the typical quadratic growth present in naive
33550# implementations.
33551if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
33552then :
33553  eval 'as_fn_append ()
33554  {
33555    eval $1+=\$2
33556  }'
33557else $as_nop
33558  as_fn_append ()
33559  {
33560    eval $1=\$$1\$2
33561  }
33562fi # as_fn_append
33563
33564# as_fn_arith ARG...
33565# ------------------
33566# Perform arithmetic evaluation on the ARGs, and store the result in the
33567# global $as_val. Take advantage of shells that can avoid forks. The arguments
33568# must be portable across $(()) and expr.
33569if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
33570then :
33571  eval 'as_fn_arith ()
33572  {
33573    as_val=$(( $* ))
33574  }'
33575else $as_nop
33576  as_fn_arith ()
33577  {
33578    as_val=`expr "$@" || test $? -eq 1`
33579  }
33580fi # as_fn_arith
33581
33582
33583if expr a : '\(a\)' >/dev/null 2>&1 &&
33584   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33585  as_expr=expr
33586else
33587  as_expr=false
33588fi
33589
33590if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33591  as_basename=basename
33592else
33593  as_basename=false
33594fi
33595
33596if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33597  as_dirname=dirname
33598else
33599  as_dirname=false
33600fi
33601
33602as_me=`$as_basename -- "$0" ||
33603$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33604	 X"$0" : 'X\(//\)$' \| \
33605	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33606printf "%s\n" X/"$0" |
33607    sed '/^.*\/\([^/][^/]*\)\/*$/{
33608	    s//\1/
33609	    q
33610	  }
33611	  /^X\/\(\/\/\)$/{
33612	    s//\1/
33613	    q
33614	  }
33615	  /^X\/\(\/\).*/{
33616	    s//\1/
33617	    q
33618	  }
33619	  s/.*/./; q'`
33620
33621# Avoid depending upon Character Ranges.
33622as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33623as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33624as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33625as_cr_digits='0123456789'
33626as_cr_alnum=$as_cr_Letters$as_cr_digits
33627
33628
33629# Determine whether it's possible to make 'echo' print without a newline.
33630# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
33631# for compatibility with existing Makefiles.
33632ECHO_C= ECHO_N= ECHO_T=
33633case `echo -n x` in #(((((
33634-n*)
33635  case `echo 'xy\c'` in
33636  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33637  xy)  ECHO_C='\c';;
33638  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33639       ECHO_T='	';;
33640  esac;;
33641*)
33642  ECHO_N='-n';;
33643esac
33644
33645# For backward compatibility with old third-party macros, we provide
33646# the shell variables $as_echo and $as_echo_n.  New code should use
33647# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
33648as_echo='printf %s\n'
33649as_echo_n='printf %s'
33650
33651rm -f conf$$ conf$$.exe conf$$.file
33652if test -d conf$$.dir; then
33653  rm -f conf$$.dir/conf$$.file
33654else
33655  rm -f conf$$.dir
33656  mkdir conf$$.dir 2>/dev/null
33657fi
33658if (echo >conf$$.file) 2>/dev/null; then
33659  if ln -s conf$$.file conf$$ 2>/dev/null; then
33660    as_ln_s='ln -s'
33661    # ... but there are two gotchas:
33662    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33663    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33664    # In both cases, we have to default to `cp -pR'.
33665    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33666      as_ln_s='cp -pR'
33667  elif ln conf$$.file conf$$ 2>/dev/null; then
33668    as_ln_s=ln
33669  else
33670    as_ln_s='cp -pR'
33671  fi
33672else
33673  as_ln_s='cp -pR'
33674fi
33675rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33676rmdir conf$$.dir 2>/dev/null
33677
33678
33679# as_fn_mkdir_p
33680# -------------
33681# Create "$as_dir" as a directory, including parents if necessary.
33682as_fn_mkdir_p ()
33683{
33684
33685  case $as_dir in #(
33686  -*) as_dir=./$as_dir;;
33687  esac
33688  test -d "$as_dir" || eval $as_mkdir_p || {
33689    as_dirs=
33690    while :; do
33691      case $as_dir in #(
33692      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33693      *) as_qdir=$as_dir;;
33694      esac
33695      as_dirs="'$as_qdir' $as_dirs"
33696      as_dir=`$as_dirname -- "$as_dir" ||
33697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33698	 X"$as_dir" : 'X\(//\)[^/]' \| \
33699	 X"$as_dir" : 'X\(//\)$' \| \
33700	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33701printf "%s\n" X"$as_dir" |
33702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33703	    s//\1/
33704	    q
33705	  }
33706	  /^X\(\/\/\)[^/].*/{
33707	    s//\1/
33708	    q
33709	  }
33710	  /^X\(\/\/\)$/{
33711	    s//\1/
33712	    q
33713	  }
33714	  /^X\(\/\).*/{
33715	    s//\1/
33716	    q
33717	  }
33718	  s/.*/./; q'`
33719      test -d "$as_dir" && break
33720    done
33721    test -z "$as_dirs" || eval "mkdir $as_dirs"
33722  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33723
33724
33725} # as_fn_mkdir_p
33726if mkdir -p . 2>/dev/null; then
33727  as_mkdir_p='mkdir -p "$as_dir"'
33728else
33729  test -d ./-p && rmdir ./-p
33730  as_mkdir_p=false
33731fi
33732
33733
33734# as_fn_executable_p FILE
33735# -----------------------
33736# Test if FILE is an executable regular file.
33737as_fn_executable_p ()
33738{
33739  test -f "$1" && test -x "$1"
33740} # as_fn_executable_p
33741as_test_x='test -x'
33742as_executable_p=as_fn_executable_p
33743
33744# Sed expression to map a string onto a valid CPP name.
33745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33746
33747# Sed expression to map a string onto a valid variable name.
33748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33749
33750
33751exec 6>&1
33752## ----------------------------------- ##
33753## Main body of $CONFIG_STATUS script. ##
33754## ----------------------------------- ##
33755_ASEOF
33756test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33757
33758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33759# Save the log message, to keep $0 and so on meaningful, and to
33760# report actual input values of CONFIG_FILES etc. instead of their
33761# values after options handling.
33762ac_log="
33763This file was extended by hwloc $as_me 2.5.0, which was
33764generated by GNU Autoconf 2.71.  Invocation command line was
33765
33766  CONFIG_FILES    = $CONFIG_FILES
33767  CONFIG_HEADERS  = $CONFIG_HEADERS
33768  CONFIG_LINKS    = $CONFIG_LINKS
33769  CONFIG_COMMANDS = $CONFIG_COMMANDS
33770  $ $0 $@
33771
33772on `(hostname || uname -n) 2>/dev/null | sed 1q`
33773"
33774
33775_ACEOF
33776
33777case $ac_config_files in *"
33778"*) set x $ac_config_files; shift; ac_config_files=$*;;
33779esac
33780
33781case $ac_config_headers in *"
33782"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33783esac
33784
33785
33786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33787# Files that config.status was made for.
33788config_files="$ac_config_files"
33789config_headers="$ac_config_headers"
33790config_links="$ac_config_links"
33791config_commands="$ac_config_commands"
33792
33793_ACEOF
33794
33795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33796ac_cs_usage="\
33797\`$as_me' instantiates files and other configuration actions
33798from templates according to the current configuration.  Unless the files
33799and actions are specified as TAGs, all are instantiated by default.
33800
33801Usage: $0 [OPTION]... [TAG]...
33802
33803  -h, --help       print this help, then exit
33804  -V, --version    print version number and configuration settings, then exit
33805      --config     print configuration, then exit
33806  -q, --quiet, --silent
33807                   do not print progress messages
33808  -d, --debug      don't remove temporary files
33809      --recheck    update $as_me by reconfiguring in the same conditions
33810      --file=FILE[:TEMPLATE]
33811                   instantiate the configuration file FILE
33812      --header=FILE[:TEMPLATE]
33813                   instantiate the configuration header FILE
33814
33815Configuration files:
33816$config_files
33817
33818Configuration headers:
33819$config_headers
33820
33821Configuration links:
33822$config_links
33823
33824Configuration commands:
33825$config_commands
33826
33827Report bugs to <https://github.com/open-mpi/hwloc/issues>."
33828
33829_ACEOF
33830ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
33831ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
33832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33833ac_cs_config='$ac_cs_config_escaped'
33834ac_cs_version="\\
33835hwloc config.status 2.5.0
33836configured by $0, generated by GNU Autoconf 2.71,
33837  with options \\"\$ac_cs_config\\"
33838
33839Copyright (C) 2021 Free Software Foundation, Inc.
33840This config.status script is free software; the Free Software Foundation
33841gives unlimited permission to copy, distribute and modify it."
33842
33843ac_pwd='$ac_pwd'
33844srcdir='$srcdir'
33845INSTALL='$INSTALL'
33846MKDIR_P='$MKDIR_P'
33847AWK='$AWK'
33848test -n "\$AWK" || AWK=awk
33849_ACEOF
33850
33851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33852# The default lists apply if the user does not specify any file.
33853ac_need_defaults=:
33854while test $# != 0
33855do
33856  case $1 in
33857  --*=?*)
33858    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33859    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33860    ac_shift=:
33861    ;;
33862  --*=)
33863    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33864    ac_optarg=
33865    ac_shift=:
33866    ;;
33867  *)
33868    ac_option=$1
33869    ac_optarg=$2
33870    ac_shift=shift
33871    ;;
33872  esac
33873
33874  case $ac_option in
33875  # Handling of the options.
33876  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33877    ac_cs_recheck=: ;;
33878  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33879    printf "%s\n" "$ac_cs_version"; exit ;;
33880  --config | --confi | --conf | --con | --co | --c )
33881    printf "%s\n" "$ac_cs_config"; exit ;;
33882  --debug | --debu | --deb | --de | --d | -d )
33883    debug=: ;;
33884  --file | --fil | --fi | --f )
33885    $ac_shift
33886    case $ac_optarg in
33887    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33888    '') as_fn_error $? "missing file argument" ;;
33889    esac
33890    as_fn_append CONFIG_FILES " '$ac_optarg'"
33891    ac_need_defaults=false;;
33892  --header | --heade | --head | --hea )
33893    $ac_shift
33894    case $ac_optarg in
33895    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33896    esac
33897    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33898    ac_need_defaults=false;;
33899  --he | --h)
33900    # Conflict between --help and --header
33901    as_fn_error $? "ambiguous option: \`$1'
33902Try \`$0 --help' for more information.";;
33903  --help | --hel | -h )
33904    printf "%s\n" "$ac_cs_usage"; exit ;;
33905  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33906  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33907    ac_cs_silent=: ;;
33908
33909  # This is an error.
33910  -*) as_fn_error $? "unrecognized option: \`$1'
33911Try \`$0 --help' for more information." ;;
33912
33913  *) as_fn_append ac_config_targets " $1"
33914     ac_need_defaults=false ;;
33915
33916  esac
33917  shift
33918done
33919
33920ac_configure_extra_args=
33921
33922if $ac_cs_silent; then
33923  exec 6>/dev/null
33924  ac_configure_extra_args="$ac_configure_extra_args --silent"
33925fi
33926
33927_ACEOF
33928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33929if \$ac_cs_recheck; then
33930  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33931  shift
33932  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
33933  CONFIG_SHELL='$SHELL'
33934  export CONFIG_SHELL
33935  exec "\$@"
33936fi
33937
33938_ACEOF
33939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33940exec 5>>config.log
33941{
33942  echo
33943  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33944## Running $as_me. ##
33945_ASBOX
33946  printf "%s\n" "$ac_log"
33947} >&5
33948
33949_ACEOF
33950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33951#
33952# INIT-COMMANDS
33953#
33954AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
33955
33956
33957# The HP-UX ksh and POSIX shell print the target directory to stdout
33958# if CDPATH is set.
33959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33960
33961sed_quote_subst='$sed_quote_subst'
33962double_quote_subst='$double_quote_subst'
33963delay_variable_subst='$delay_variable_subst'
33964enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33965enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33966macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33967macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33968AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33969DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33970OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33971pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33972enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33973shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33974SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33975ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33976PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33977host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33978host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33979host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33980build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33981build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33982build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33983SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33984Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33985GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33986EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33987FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33988LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33989NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33990LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33991max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33992ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33993exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33994lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33995lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33996lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33997lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33998lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33999reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34000reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34001deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34002file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34003file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34004want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34005sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34006AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34007AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34008archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34009STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34010RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34011old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34012old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34013old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34014lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34015CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34016CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34017compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34018GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34019lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34020lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34021lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34022lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34023lt_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"`'
34024lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34025nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34026lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34027lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34028objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34029MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34030lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34031lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34032lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34033lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34034lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34035need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34036MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34037DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34038NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34039LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34040OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34041OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34042libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34043shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34044extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34045archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34046enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34047export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34048whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34049compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34050old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34051old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34052archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34053archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34054module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34055module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34056with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34057allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34058no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34059hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34060hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34061hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34062hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34063hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34064hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34065hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34066inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34067link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34068always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34069export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34070exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34071include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34072prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34073postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34074file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34075variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34076need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34077need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34078version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34079runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34080shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34081shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34082libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34083library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34084soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34085install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34086postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34087postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34088finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34089finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34090hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34091sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34092configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34093configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34094hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34095enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34096enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34097enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34098old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34099striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34100compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34101predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34102postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34103predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34104postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34105compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34106LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34107reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34108reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34109old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34110compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34111GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34112lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34113lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34114lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34115lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34116lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34117archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34118enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34119export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34120whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34121compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34122old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34123old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34124archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34125archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34126module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34127module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34128with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34129allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34130no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34131hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34132hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34133hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34134hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34135hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34136hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34137hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34138inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34139link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34140always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34141export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34142exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34143include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34144prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34145postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34146file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34147hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34148compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34149predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34150postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34151predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34152postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34153compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34154
34155LTCC='$LTCC'
34156LTCFLAGS='$LTCFLAGS'
34157compiler='$compiler_DEFAULT'
34158
34159# A function that is used when there is no print builtin or printf.
34160func_fallback_echo ()
34161{
34162  eval 'cat <<_LTECHO_EOF
34163\$1
34164_LTECHO_EOF'
34165}
34166
34167# Quote evaled strings.
34168for var in AS \
34169DLLTOOL \
34170OBJDUMP \
34171SHELL \
34172ECHO \
34173PATH_SEPARATOR \
34174SED \
34175GREP \
34176EGREP \
34177FGREP \
34178LD \
34179NM \
34180LN_S \
34181lt_SP2NL \
34182lt_NL2SP \
34183reload_flag \
34184deplibs_check_method \
34185file_magic_cmd \
34186file_magic_glob \
34187want_nocaseglob \
34188sharedlib_from_linklib_cmd \
34189AR \
34190AR_FLAGS \
34191archiver_list_spec \
34192STRIP \
34193RANLIB \
34194CC \
34195CFLAGS \
34196compiler \
34197lt_cv_sys_global_symbol_pipe \
34198lt_cv_sys_global_symbol_to_cdecl \
34199lt_cv_sys_global_symbol_to_import \
34200lt_cv_sys_global_symbol_to_c_name_address \
34201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34202lt_cv_nm_interface \
34203nm_file_list_spec \
34204lt_cv_truncate_bin \
34205lt_prog_compiler_no_builtin_flag \
34206lt_prog_compiler_pic \
34207lt_prog_compiler_wl \
34208lt_prog_compiler_static \
34209lt_cv_prog_compiler_c_o \
34210need_locks \
34211MANIFEST_TOOL \
34212DSYMUTIL \
34213NMEDIT \
34214LIPO \
34215OTOOL \
34216OTOOL64 \
34217shrext_cmds \
34218export_dynamic_flag_spec \
34219whole_archive_flag_spec \
34220compiler_needs_object \
34221with_gnu_ld \
34222allow_undefined_flag \
34223no_undefined_flag \
34224hardcode_libdir_flag_spec \
34225hardcode_libdir_separator \
34226exclude_expsyms \
34227include_expsyms \
34228file_list_spec \
34229variables_saved_for_relink \
34230libname_spec \
34231library_names_spec \
34232soname_spec \
34233install_override_mode \
34234finish_eval \
34235old_striplib \
34236striplib \
34237compiler_lib_search_dirs \
34238predep_objects \
34239postdep_objects \
34240predeps \
34241postdeps \
34242compiler_lib_search_path \
34243LD_CXX \
34244reload_flag_CXX \
34245compiler_CXX \
34246lt_prog_compiler_no_builtin_flag_CXX \
34247lt_prog_compiler_pic_CXX \
34248lt_prog_compiler_wl_CXX \
34249lt_prog_compiler_static_CXX \
34250lt_cv_prog_compiler_c_o_CXX \
34251export_dynamic_flag_spec_CXX \
34252whole_archive_flag_spec_CXX \
34253compiler_needs_object_CXX \
34254with_gnu_ld_CXX \
34255allow_undefined_flag_CXX \
34256no_undefined_flag_CXX \
34257hardcode_libdir_flag_spec_CXX \
34258hardcode_libdir_separator_CXX \
34259exclude_expsyms_CXX \
34260include_expsyms_CXX \
34261file_list_spec_CXX \
34262compiler_lib_search_dirs_CXX \
34263predep_objects_CXX \
34264postdep_objects_CXX \
34265predeps_CXX \
34266postdeps_CXX \
34267compiler_lib_search_path_CXX; do
34268    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34269    *[\\\\\\\`\\"\\\$]*)
34270      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34271      ;;
34272    *)
34273      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34274      ;;
34275    esac
34276done
34277
34278# Double-quote double-evaled strings.
34279for var in reload_cmds \
34280old_postinstall_cmds \
34281old_postuninstall_cmds \
34282old_archive_cmds \
34283extract_expsyms_cmds \
34284old_archive_from_new_cmds \
34285old_archive_from_expsyms_cmds \
34286archive_cmds \
34287archive_expsym_cmds \
34288module_cmds \
34289module_expsym_cmds \
34290export_symbols_cmds \
34291prelink_cmds \
34292postlink_cmds \
34293postinstall_cmds \
34294postuninstall_cmds \
34295finish_cmds \
34296sys_lib_search_path_spec \
34297configure_time_dlsearch_path \
34298configure_time_lt_sys_library_path \
34299reload_cmds_CXX \
34300old_archive_cmds_CXX \
34301old_archive_from_new_cmds_CXX \
34302old_archive_from_expsyms_cmds_CXX \
34303archive_cmds_CXX \
34304archive_expsym_cmds_CXX \
34305module_cmds_CXX \
34306module_expsym_cmds_CXX \
34307export_symbols_cmds_CXX \
34308prelink_cmds_CXX \
34309postlink_cmds_CXX; do
34310    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34311    *[\\\\\\\`\\"\\\$]*)
34312      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34313      ;;
34314    *)
34315      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34316      ;;
34317    esac
34318done
34319
34320ac_aux_dir='$ac_aux_dir'
34321
34322# See if we are running on zsh, and set the options that allow our
34323# commands through without removal of \ escapes INIT.
34324if test -n "\${ZSH_VERSION+set}"; then
34325   setopt NO_GLOB_SUBST
34326fi
34327
34328
34329    PACKAGE='$PACKAGE'
34330    VERSION='$VERSION'
34331    RM='$RM'
34332    ofile='$ofile'
34333
34334
34335
34336
34337
34338
34339_ACEOF
34340
34341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34342
34343# Handling of arguments.
34344for ac_config_target in $ac_config_targets
34345do
34346  case $ac_config_target in
34347    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34348    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34349    "include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/autogen/config.h" ;;
34350    "include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/hwloc/autogen/config.h" ;;
34351    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34352    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34353    "hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES hwloc/Makefile" ;;
34354    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34355    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
34356    "doc/doxygen-config.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen-config.cfg" ;;
34357    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
34358    "utils/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/hwloc/Makefile" ;;
34359    "utils/lstopo/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lstopo/Makefile" ;;
34360    "hwloc.pc") CONFIG_FILES="$CONFIG_FILES hwloc.pc" ;;
34361    "netloc/Makefile") CONFIG_FILES="$CONFIG_FILES netloc/Makefile" ;;
34362    "utils/netloc/infiniband/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/infiniband/Makefile" ;;
34363    "utils/netloc/draw/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/draw/Makefile" ;;
34364    "utils/netloc/scotch/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/scotch/Makefile" ;;
34365    "utils/netloc/mpi/Makefile") CONFIG_FILES="$CONFIG_FILES utils/netloc/mpi/Makefile" ;;
34366    "netloc.pc") CONFIG_FILES="$CONFIG_FILES netloc.pc" ;;
34367    "netlocscotch.pc") CONFIG_FILES="$CONFIG_FILES netlocscotch.pc" ;;
34368    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34369    "tests/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/Makefile" ;;
34370    "tests/hwloc/linux/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/Makefile" ;;
34371    "tests/hwloc/linux/allowed/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/allowed/Makefile" ;;
34372    "tests/hwloc/linux/gather/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/gather/Makefile" ;;
34373    "tests/hwloc/x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86/Makefile" ;;
34374    "tests/hwloc/x86+linux/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86+linux/Makefile" ;;
34375    "tests/hwloc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/xml/Makefile" ;;
34376    "tests/hwloc/ports/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/ports/Makefile" ;;
34377    "tests/hwloc/rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hwloc/rename/Makefile" ;;
34378    "tests/hwloc/linux/allowed/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/allowed/test-topology.sh" ;;
34379    "tests/hwloc/linux/gather/test-gather-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/gather/test-gather-topology.sh" ;;
34380    "tests/hwloc/linux/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/linux/test-topology.sh" ;;
34381    "tests/hwloc/x86/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86/test-topology.sh" ;;
34382    "tests/hwloc/x86+linux/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/x86+linux/test-topology.sh" ;;
34383    "tests/hwloc/xml/test-topology.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/xml/test-topology.sh" ;;
34384    "tests/hwloc/wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/hwloc/wrapper.sh" ;;
34385    "utils/hwloc/hwloc-compress-dir") CONFIG_FILES="$CONFIG_FILES utils/hwloc/hwloc-compress-dir" ;;
34386    "utils/hwloc/hwloc-gather-topology") CONFIG_FILES="$CONFIG_FILES utils/hwloc/hwloc-gather-topology" ;;
34387    "utils/hwloc/test-hwloc-annotate.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-annotate.sh" ;;
34388    "utils/hwloc/test-hwloc-calc.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-calc.sh" ;;
34389    "utils/hwloc/test-hwloc-compress-dir.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-compress-dir.sh" ;;
34390    "utils/hwloc/test-hwloc-diffpatch.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-diffpatch.sh" ;;
34391    "utils/hwloc/test-hwloc-distrib.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-distrib.sh" ;;
34392    "utils/hwloc/test-hwloc-info.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-info.sh" ;;
34393    "utils/hwloc/test-fake-plugin.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-fake-plugin.sh" ;;
34394    "utils/hwloc/test-parsing-flags.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-parsing-flags.sh" ;;
34395    "utils/hwloc/test-hwloc-dump-hwdata/Makefile") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-dump-hwdata/Makefile" ;;
34396    "utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh") CONFIG_FILES="$CONFIG_FILES utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh" ;;
34397    "utils/lstopo/test-lstopo.sh") CONFIG_FILES="$CONFIG_FILES utils/lstopo/test-lstopo.sh" ;;
34398    "utils/lstopo/test-lstopo-shmem.sh") CONFIG_FILES="$CONFIG_FILES utils/lstopo/test-lstopo-shmem.sh" ;;
34399    "utils/netloc/infiniband/netloc_ib_gather_raw") CONFIG_FILES="$CONFIG_FILES utils/netloc/infiniband/netloc_ib_gather_raw" ;;
34400    "contrib/hwloc-ps.www/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/hwloc-ps.www/Makefile" ;;
34401    "contrib/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/systemd/Makefile" ;;
34402    "contrib/completion/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/completion/Makefile" ;;
34403    "contrib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/misc/Makefile" ;;
34404    "contrib/windows/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/windows/Makefile" ;;
34405    "contrib/windows/test-windows-version.sh") CONFIG_FILES="$CONFIG_FILES contrib/windows/test-windows-version.sh" ;;
34406    "tests/netloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/netloc/Makefile" ;;
34407    "tests/netloc/tests.sh") CONFIG_FILES="$CONFIG_FILES tests/netloc/tests.sh" ;;
34408    "chmoding-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmoding-scripts" ;;
34409    "tests/hwloc/ports/topology-solaris.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-solaris.c:hwloc/topology-solaris.c" ;;
34410    "tests/hwloc/ports/topology-solaris-chiptype.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-solaris-chiptype.c:hwloc/topology-solaris-chiptype.c" ;;
34411    "tests/hwloc/ports/topology-aix.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-aix.c:hwloc/topology-aix.c" ;;
34412    "tests/hwloc/ports/topology-windows.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-windows.c:hwloc/topology-windows.c" ;;
34413    "tests/hwloc/ports/topology-darwin.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-darwin.c:hwloc/topology-darwin.c" ;;
34414    "tests/hwloc/ports/topology-dragonfly.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-dragonfly.c:hwloc/topology-dragonfly.c" ;;
34415    "tests/hwloc/ports/topology-freebsd.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-freebsd.c:hwloc/topology-freebsd.c" ;;
34416    "tests/hwloc/ports/topology-netbsd.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-netbsd.c:hwloc/topology-netbsd.c" ;;
34417    "tests/hwloc/ports/topology-hpux.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-hpux.c:hwloc/topology-hpux.c" ;;
34418    "tests/hwloc/ports/topology-bgq.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-bgq.c:hwloc/topology-bgq.c" ;;
34419    "tests/hwloc/ports/topology-opencl.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-opencl.c:hwloc/topology-opencl.c" ;;
34420    "tests/hwloc/ports/topology-cuda.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-cuda.c:hwloc/topology-cuda.c" ;;
34421    "tests/hwloc/ports/topology-nvml.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-nvml.c:hwloc/topology-nvml.c" ;;
34422    "tests/hwloc/ports/topology-rsmi.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-rsmi.c:hwloc/topology-rsmi.c" ;;
34423    "tests/hwloc/ports/topology-levelzero.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-levelzero.c:hwloc/topology-levelzero.c" ;;
34424    "tests/hwloc/ports/topology-gl.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/topology-gl.c:hwloc/topology-gl.c" ;;
34425    "tests/hwloc/ports/lstopo-windows.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/lstopo-windows.c:utils/lstopo/lstopo-windows.c" ;;
34426    "tests/hwloc/ports/lstopo-android.c") CONFIG_LINKS="$CONFIG_LINKS tests/hwloc/ports/lstopo-android.c:utils/lstopo/lstopo-android.c" ;;
34427
34428  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34429  esac
34430done
34431
34432
34433# If the user did not use the arguments to specify the items to instantiate,
34434# then the envvar interface is used.  Set only those that are not.
34435# We use the long form for the default assignment because of an extremely
34436# bizarre bug on SunOS 4.1.3.
34437if $ac_need_defaults; then
34438  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
34439  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
34440  test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
34441  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
34442fi
34443
34444# Have a temporary directory for convenience.  Make it in the build tree
34445# simply because there is no reason against having it here, and in addition,
34446# creating and moving files from /tmp can sometimes cause problems.
34447# Hook for its removal unless debugging.
34448# Note that there is a small window in which the directory will not be cleaned:
34449# after its creation but before its name has been assigned to `$tmp'.
34450$debug ||
34451{
34452  tmp= ac_tmp=
34453  trap 'exit_status=$?
34454  : "${ac_tmp:=$tmp}"
34455  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34456' 0
34457  trap 'as_fn_exit 1' 1 2 13 15
34458}
34459# Create a (secure) tmp directory for tmp files.
34460
34461{
34462  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34463  test -d "$tmp"
34464}  ||
34465{
34466  tmp=./conf$$-$RANDOM
34467  (umask 077 && mkdir "$tmp")
34468} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34469ac_tmp=$tmp
34470
34471# Set up the scripts for CONFIG_FILES section.
34472# No need to generate them if there are no CONFIG_FILES.
34473# This happens for instance with `./config.status config.h'.
34474if test -n "$CONFIG_FILES"; then
34475
34476
34477ac_cr=`echo X | tr X '\015'`
34478# On cygwin, bash can eat \r inside `` if the user requested igncr.
34479# But we know of no other shell where ac_cr would be empty at this
34480# point, so we can use a bashism as a fallback.
34481if test "x$ac_cr" = x; then
34482  eval ac_cr=\$\'\\r\'
34483fi
34484ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34485if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34486  ac_cs_awk_cr='\\r'
34487else
34488  ac_cs_awk_cr=$ac_cr
34489fi
34490
34491echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34492_ACEOF
34493
34494
34495{
34496  echo "cat >conf$$subs.awk <<_ACEOF" &&
34497  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34498  echo "_ACEOF"
34499} >conf$$subs.sh ||
34500  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34501ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34502ac_delim='%!_!# '
34503for ac_last_try in false false false false false :; do
34504  . ./conf$$subs.sh ||
34505    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34506
34507  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34508  if test $ac_delim_n = $ac_delim_num; then
34509    break
34510  elif $ac_last_try; then
34511    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34512  else
34513    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34514  fi
34515done
34516rm -f conf$$subs.sh
34517
34518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34519cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34520_ACEOF
34521sed -n '
34522h
34523s/^/S["/; s/!.*/"]=/
34524p
34525g
34526s/^[^!]*!//
34527:repl
34528t repl
34529s/'"$ac_delim"'$//
34530t delim
34531:nl
34532h
34533s/\(.\{148\}\)..*/\1/
34534t more1
34535s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34536p
34537n
34538b repl
34539:more1
34540s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34541p
34542g
34543s/.\{148\}//
34544t nl
34545:delim
34546h
34547s/\(.\{148\}\)..*/\1/
34548t more2
34549s/["\\]/\\&/g; s/^/"/; s/$/"/
34550p
34551b
34552:more2
34553s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34554p
34555g
34556s/.\{148\}//
34557t delim
34558' <conf$$subs.awk | sed '
34559/^[^""]/{
34560  N
34561  s/\n//
34562}
34563' >>$CONFIG_STATUS || ac_write_fail=1
34564rm -f conf$$subs.awk
34565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34566_ACAWK
34567cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34568  for (key in S) S_is_set[key] = 1
34569  FS = ""
34570
34571}
34572{
34573  line = $ 0
34574  nfields = split(line, field, "@")
34575  substed = 0
34576  len = length(field[1])
34577  for (i = 2; i < nfields; i++) {
34578    key = field[i]
34579    keylen = length(key)
34580    if (S_is_set[key]) {
34581      value = S[key]
34582      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34583      len += length(value) + length(field[++i])
34584      substed = 1
34585    } else
34586      len += 1 + keylen
34587  }
34588
34589  print line
34590}
34591
34592_ACAWK
34593_ACEOF
34594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34595if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34596  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34597else
34598  cat
34599fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34600  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34601_ACEOF
34602
34603# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34604# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34605# trailing colons and then remove the whole line if VPATH becomes empty
34606# (actually we leave an empty line to preserve line numbers).
34607if test "x$srcdir" = x.; then
34608  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
34609h
34610s///
34611s/^/:/
34612s/[	 ]*$/:/
34613s/:\$(srcdir):/:/g
34614s/:\${srcdir}:/:/g
34615s/:@srcdir@:/:/g
34616s/^:*//
34617s/:*$//
34618x
34619s/\(=[	 ]*\).*/\1/
34620G
34621s/\n//
34622s/^[^=]*=[	 ]*$//
34623}'
34624fi
34625
34626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34627fi # test -n "$CONFIG_FILES"
34628
34629# Set up the scripts for CONFIG_HEADERS section.
34630# No need to generate them if there are no CONFIG_HEADERS.
34631# This happens for instance with `./config.status Makefile'.
34632if test -n "$CONFIG_HEADERS"; then
34633cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34634BEGIN {
34635_ACEOF
34636
34637# Transform confdefs.h into an awk script `defines.awk', embedded as
34638# here-document in config.status, that substitutes the proper values into
34639# config.h.in to produce config.h.
34640
34641# Create a delimiter string that does not exist in confdefs.h, to ease
34642# handling of long lines.
34643ac_delim='%!_!# '
34644for ac_last_try in false false :; do
34645  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34646  if test -z "$ac_tt"; then
34647    break
34648  elif $ac_last_try; then
34649    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34650  else
34651    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34652  fi
34653done
34654
34655# For the awk script, D is an array of macro values keyed by name,
34656# likewise P contains macro parameters if any.  Preserve backslash
34657# newline sequences.
34658
34659ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34660sed -n '
34661s/.\{148\}/&'"$ac_delim"'/g
34662t rset
34663:rset
34664s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34665t def
34666d
34667:def
34668s/\\$//
34669t bsnl
34670s/["\\]/\\&/g
34671s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34672D["\1"]=" \3"/p
34673s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34674d
34675:bsnl
34676s/["\\]/\\&/g
34677s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34678D["\1"]=" \3\\\\\\n"\\/p
34679t cont
34680s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34681t cont
34682d
34683:cont
34684n
34685s/.\{148\}/&'"$ac_delim"'/g
34686t clear
34687:clear
34688s/\\$//
34689t bsnlc
34690s/["\\]/\\&/g; s/^/"/; s/$/"/p
34691d
34692:bsnlc
34693s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34694b cont
34695' <confdefs.h | sed '
34696s/'"$ac_delim"'/"\\\
34697"/g' >>$CONFIG_STATUS || ac_write_fail=1
34698
34699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34700  for (key in D) D_is_set[key] = 1
34701  FS = ""
34702}
34703/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34704  line = \$ 0
34705  split(line, arg, " ")
34706  if (arg[1] == "#") {
34707    defundef = arg[2]
34708    mac1 = arg[3]
34709  } else {
34710    defundef = substr(arg[1], 2)
34711    mac1 = arg[2]
34712  }
34713  split(mac1, mac2, "(") #)
34714  macro = mac2[1]
34715  prefix = substr(line, 1, index(line, defundef) - 1)
34716  if (D_is_set[macro]) {
34717    # Preserve the white space surrounding the "#".
34718    print prefix "define", macro P[macro] D[macro]
34719    next
34720  } else {
34721    # Replace #undef with comments.  This is necessary, for example,
34722    # in the case of _POSIX_SOURCE, which is predefined and required
34723    # on some systems where configure will not decide to define it.
34724    if (defundef == "undef") {
34725      print "/*", prefix defundef, macro, "*/"
34726      next
34727    }
34728  }
34729}
34730{ print }
34731_ACAWK
34732_ACEOF
34733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34734  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34735fi # test -n "$CONFIG_HEADERS"
34736
34737
34738eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
34739shift
34740for ac_tag
34741do
34742  case $ac_tag in
34743  :[FHLC]) ac_mode=$ac_tag; continue;;
34744  esac
34745  case $ac_mode$ac_tag in
34746  :[FHL]*:*);;
34747  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34748  :[FH]-) ac_tag=-:-;;
34749  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34750  esac
34751  ac_save_IFS=$IFS
34752  IFS=:
34753  set x $ac_tag
34754  IFS=$ac_save_IFS
34755  shift
34756  ac_file=$1
34757  shift
34758
34759  case $ac_mode in
34760  :L) ac_source=$1;;
34761  :[FH])
34762    ac_file_inputs=
34763    for ac_f
34764    do
34765      case $ac_f in
34766      -) ac_f="$ac_tmp/stdin";;
34767      *) # Look for the file first in the build tree, then in the source tree
34768	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34769	 # because $ac_f cannot contain `:'.
34770	 test -f "$ac_f" ||
34771	   case $ac_f in
34772	   [\\/$]*) false;;
34773	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34774	   esac ||
34775	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34776      esac
34777      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34778      as_fn_append ac_file_inputs " '$ac_f'"
34779    done
34780
34781    # Let's still pretend it is `configure' which instantiates (i.e., don't
34782    # use $as_me), people would be surprised to read:
34783    #    /* config.h.  Generated by config.status.  */
34784    configure_input='Generated from '`
34785	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34786	`' by configure.'
34787    if test x"$ac_file" != x-; then
34788      configure_input="$ac_file.  $configure_input"
34789      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34790printf "%s\n" "$as_me: creating $ac_file" >&6;}
34791    fi
34792    # Neutralize special characters interpreted by sed in replacement strings.
34793    case $configure_input in #(
34794    *\&* | *\|* | *\\* )
34795       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
34796       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34797    *) ac_sed_conf_input=$configure_input;;
34798    esac
34799
34800    case $ac_tag in
34801    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34802      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34803    esac
34804    ;;
34805  esac
34806
34807  ac_dir=`$as_dirname -- "$ac_file" ||
34808$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34809	 X"$ac_file" : 'X\(//\)[^/]' \| \
34810	 X"$ac_file" : 'X\(//\)$' \| \
34811	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34812printf "%s\n" X"$ac_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="$ac_dir"; as_fn_mkdir_p
34831  ac_builddir=.
34832
34833case "$ac_dir" in
34834.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34835*)
34836  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
34837  # A ".." for each directory in $ac_dir_suffix.
34838  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34839  case $ac_top_builddir_sub in
34840  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34841  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34842  esac ;;
34843esac
34844ac_abs_top_builddir=$ac_pwd
34845ac_abs_builddir=$ac_pwd$ac_dir_suffix
34846# for backward compatibility:
34847ac_top_builddir=$ac_top_build_prefix
34848
34849case $srcdir in
34850  .)  # We are building in place.
34851    ac_srcdir=.
34852    ac_top_srcdir=$ac_top_builddir_sub
34853    ac_abs_top_srcdir=$ac_pwd ;;
34854  [\\/]* | ?:[\\/]* )  # Absolute name.
34855    ac_srcdir=$srcdir$ac_dir_suffix;
34856    ac_top_srcdir=$srcdir
34857    ac_abs_top_srcdir=$srcdir ;;
34858  *) # Relative name.
34859    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34860    ac_top_srcdir=$ac_top_build_prefix$srcdir
34861    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34862esac
34863ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34864
34865
34866  case $ac_mode in
34867  :F)
34868  #
34869  # CONFIG_FILE
34870  #
34871
34872  case $INSTALL in
34873  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34874  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34875  esac
34876  ac_MKDIR_P=$MKDIR_P
34877  case $MKDIR_P in
34878  [\\/$]* | ?:[\\/]* ) ;;
34879  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34880  esac
34881_ACEOF
34882
34883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34884# If the template does not know about datarootdir, expand it.
34885# FIXME: This hack should be removed a few years after 2.60.
34886ac_datarootdir_hack=; ac_datarootdir_seen=
34887ac_sed_dataroot='
34888/datarootdir/ {
34889  p
34890  q
34891}
34892/@datadir@/p
34893/@docdir@/p
34894/@infodir@/p
34895/@localedir@/p
34896/@mandir@/p'
34897case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34898*datarootdir*) ac_datarootdir_seen=yes;;
34899*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34901printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34902_ACEOF
34903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34904  ac_datarootdir_hack='
34905  s&@datadir@&$datadir&g
34906  s&@docdir@&$docdir&g
34907  s&@infodir@&$infodir&g
34908  s&@localedir@&$localedir&g
34909  s&@mandir@&$mandir&g
34910  s&\\\${datarootdir}&$datarootdir&g' ;;
34911esac
34912_ACEOF
34913
34914# Neutralize VPATH when `$srcdir' = `.'.
34915# Shell code in configure.ac might set extrasub.
34916# FIXME: do we really want to maintain this feature?
34917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34918ac_sed_extra="$ac_vpsub
34919$extrasub
34920_ACEOF
34921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34922:t
34923/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34924s|@configure_input@|$ac_sed_conf_input|;t t
34925s&@top_builddir@&$ac_top_builddir_sub&;t t
34926s&@top_build_prefix@&$ac_top_build_prefix&;t t
34927s&@srcdir@&$ac_srcdir&;t t
34928s&@abs_srcdir@&$ac_abs_srcdir&;t t
34929s&@top_srcdir@&$ac_top_srcdir&;t t
34930s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34931s&@builddir@&$ac_builddir&;t t
34932s&@abs_builddir@&$ac_abs_builddir&;t t
34933s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34934s&@INSTALL@&$ac_INSTALL&;t t
34935s&@MKDIR_P@&$ac_MKDIR_P&;t t
34936$ac_datarootdir_hack
34937"
34938eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34939  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34940
34941test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34942  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34943  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34944      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34946which seems to be undefined.  Please make sure it is defined" >&5
34947printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34948which seems to be undefined.  Please make sure it is defined" >&2;}
34949
34950  rm -f "$ac_tmp/stdin"
34951  case $ac_file in
34952  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34953  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34954  esac \
34955  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34956 ;;
34957  :H)
34958  #
34959  # CONFIG_HEADER
34960  #
34961  if test x"$ac_file" != x-; then
34962    {
34963      printf "%s\n" "/* $configure_input  */" >&1 \
34964      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34965    } >"$ac_tmp/config.h" \
34966      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34967    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34968      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34969printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
34970    else
34971      rm -f "$ac_file"
34972      mv "$ac_tmp/config.h" "$ac_file" \
34973	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34974    fi
34975  else
34976    printf "%s\n" "/* $configure_input  */" >&1 \
34977      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34978      || as_fn_error $? "could not create -" "$LINENO" 5
34979  fi
34980# Compute "$ac_file"'s index in $config_headers.
34981_am_arg="$ac_file"
34982_am_stamp_count=1
34983for _am_header in $config_headers :; do
34984  case $_am_header in
34985    $_am_arg | $_am_arg:* )
34986      break ;;
34987    * )
34988      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34989  esac
34990done
34991echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34992$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34993	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34994	 X"$_am_arg" : 'X\(//\)$' \| \
34995	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34996printf "%s\n" X"$_am_arg" |
34997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34998	    s//\1/
34999	    q
35000	  }
35001	  /^X\(\/\/\)[^/].*/{
35002	    s//\1/
35003	    q
35004	  }
35005	  /^X\(\/\/\)$/{
35006	    s//\1/
35007	    q
35008	  }
35009	  /^X\(\/\).*/{
35010	    s//\1/
35011	    q
35012	  }
35013	  s/.*/./; q'`/stamp-h$_am_stamp_count
35014 ;;
35015  :L)
35016  #
35017  # CONFIG_LINK
35018  #
35019
35020  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
35021    :
35022  else
35023    # Prefer the file from the source tree if names are identical.
35024    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35025      ac_source=$srcdir/$ac_source
35026    fi
35027
35028    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35029printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
35030
35031    if test ! -r "$ac_source"; then
35032      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35033    fi
35034    rm -f "$ac_file"
35035
35036    # Try a relative symlink, then a hard link, then a copy.
35037    case $ac_source in
35038    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35039	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35040    esac
35041    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35042      ln "$ac_source" "$ac_file" 2>/dev/null ||
35043      cp -p "$ac_source" "$ac_file" ||
35044      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35045  fi
35046 ;;
35047  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35048printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
35049 ;;
35050  esac
35051
35052
35053  case $ac_file$ac_mode in
35054    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35055  # Older Autoconf quotes --file arguments for eval, but not when files
35056  # are listed without --file.  Let's play safe and only enable the eval
35057  # if we detect the quoting.
35058  # TODO: see whether this extra hack can be removed once we start
35059  # requiring Autoconf 2.70 or later.
35060  case $CONFIG_FILES in #(
35061  *\'*) :
35062    eval set x "$CONFIG_FILES" ;; #(
35063  *) :
35064    set x $CONFIG_FILES ;; #(
35065  *) :
35066     ;;
35067esac
35068  shift
35069  # Used to flag and report bootstrapping failures.
35070  am_rc=0
35071  for am_mf
35072  do
35073    # Strip MF so we end up with the name of the file.
35074    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
35075    # Check whether this is an Automake generated Makefile which includes
35076    # dependency-tracking related rules and includes.
35077    # Grep'ing the whole file directly is not great: AIX grep has a line
35078    # limit of 2048, but all sed's we know have understand at least 4000.
35079    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
35080      || continue
35081    am_dirpart=`$as_dirname -- "$am_mf" ||
35082$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35083	 X"$am_mf" : 'X\(//\)[^/]' \| \
35084	 X"$am_mf" : 'X\(//\)$' \| \
35085	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35086printf "%s\n" X"$am_mf" |
35087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35088	    s//\1/
35089	    q
35090	  }
35091	  /^X\(\/\/\)[^/].*/{
35092	    s//\1/
35093	    q
35094	  }
35095	  /^X\(\/\/\)$/{
35096	    s//\1/
35097	    q
35098	  }
35099	  /^X\(\/\).*/{
35100	    s//\1/
35101	    q
35102	  }
35103	  s/.*/./; q'`
35104    am_filepart=`$as_basename -- "$am_mf" ||
35105$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
35106	 X"$am_mf" : 'X\(//\)$' \| \
35107	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35108printf "%s\n" X/"$am_mf" |
35109    sed '/^.*\/\([^/][^/]*\)\/*$/{
35110	    s//\1/
35111	    q
35112	  }
35113	  /^X\/\(\/\/\)$/{
35114	    s//\1/
35115	    q
35116	  }
35117	  /^X\/\(\/\).*/{
35118	    s//\1/
35119	    q
35120	  }
35121	  s/.*/./; q'`
35122    { echo "$as_me:$LINENO: cd "$am_dirpart" \
35123      && sed -e '/# am--include-marker/d' "$am_filepart" \
35124        | $MAKE -f - am--depfiles" >&5
35125   (cd "$am_dirpart" \
35126      && sed -e '/# am--include-marker/d' "$am_filepart" \
35127        | $MAKE -f - am--depfiles) >&5 2>&5
35128   ac_status=$?
35129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130   (exit $ac_status); } || am_rc=$?
35131  done
35132  if test $am_rc -ne 0; then
35133    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35135as_fn_error $? "Something went wrong bootstrapping makefile fragments
35136    for automatic dependency tracking.  If GNU make was not used, consider
35137    re-running the configure script with MAKE=\"gmake\" (or whatever is
35138    necessary).  You can also try re-running configure with the
35139    '--disable-dependency-tracking' option to at least be able to build
35140    the package (albeit without support for automatic dependency tracking).
35141See \`config.log' for more details" "$LINENO" 5; }
35142  fi
35143  { am_dirpart=; unset am_dirpart;}
35144  { am_filepart=; unset am_filepart;}
35145  { am_mf=; unset am_mf;}
35146  { am_rc=; unset am_rc;}
35147  rm -f conftest-deps.mk
35148}
35149 ;;
35150    "libtool":C)
35151
35152    # See if we are running on zsh, and set the options that allow our
35153    # commands through without removal of \ escapes.
35154    if test -n "${ZSH_VERSION+set}"; then
35155      setopt NO_GLOB_SUBST
35156    fi
35157
35158    cfgfile=${ofile}T
35159    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35160    $RM "$cfgfile"
35161
35162    cat <<_LT_EOF >> "$cfgfile"
35163#! $SHELL
35164# Generated automatically by $as_me ($PACKAGE) $VERSION
35165# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35166# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35167
35168# Provide generalized library-building support services.
35169# Written by Gordon Matzigkeit, 1996
35170
35171# Copyright (C) 2014 Free Software Foundation, Inc.
35172# This is free software; see the source for copying conditions.  There is NO
35173# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35174
35175# GNU Libtool is free software; you can redistribute it and/or modify
35176# it under the terms of the GNU General Public License as published by
35177# the Free Software Foundation; either version 2 of of the License, or
35178# (at your option) any later version.
35179#
35180# As a special exception to the GNU General Public License, if you
35181# distribute this file as part of a program or library that is built
35182# using GNU Libtool, you may include this file under the  same
35183# distribution terms that you use for the rest of that program.
35184#
35185# GNU Libtool is distributed in the hope that it will be useful, but
35186# WITHOUT ANY WARRANTY; without even the implied warranty of
35187# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35188# GNU General Public License for more details.
35189#
35190# You should have received a copy of the GNU General Public License
35191# along with this program.  If not, see <http://www.gnu.org/licenses/>.
35192
35193
35194# The names of the tagged configurations supported by this script.
35195available_tags='CXX '
35196
35197# Configured defaults for sys_lib_dlsearch_path munging.
35198: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35199
35200# ### BEGIN LIBTOOL CONFIG
35201
35202# Whether or not to build shared libraries.
35203build_libtool_libs=$enable_shared
35204
35205# Whether or not to build static libraries.
35206build_old_libs=$enable_static
35207
35208# Which release of libtool.m4 was used?
35209macro_version=$macro_version
35210macro_revision=$macro_revision
35211
35212# Assembler program.
35213AS=$lt_AS
35214
35215# DLL creation program.
35216DLLTOOL=$lt_DLLTOOL
35217
35218# Object dumper program.
35219OBJDUMP=$lt_OBJDUMP
35220
35221# What type of objects to build.
35222pic_mode=$pic_mode
35223
35224# Whether or not to optimize for fast installation.
35225fast_install=$enable_fast_install
35226
35227# Shared archive member basename,for filename based shared library versioning on AIX.
35228shared_archive_member_spec=$shared_archive_member_spec
35229
35230# Shell to use when invoking shell scripts.
35231SHELL=$lt_SHELL
35232
35233# An echo program that protects backslashes.
35234ECHO=$lt_ECHO
35235
35236# The PATH separator for the build system.
35237PATH_SEPARATOR=$lt_PATH_SEPARATOR
35238
35239# The host system.
35240host_alias=$host_alias
35241host=$host
35242host_os=$host_os
35243
35244# The build system.
35245build_alias=$build_alias
35246build=$build
35247build_os=$build_os
35248
35249# A sed program that does not truncate output.
35250SED=$lt_SED
35251
35252# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35253Xsed="\$SED -e 1s/^X//"
35254
35255# A grep program that handles long lines.
35256GREP=$lt_GREP
35257
35258# An ERE matcher.
35259EGREP=$lt_EGREP
35260
35261# A literal string matcher.
35262FGREP=$lt_FGREP
35263
35264# A BSD- or MS-compatible name lister.
35265NM=$lt_NM
35266
35267# Whether we need soft or hard links.
35268LN_S=$lt_LN_S
35269
35270# What is the maximum length of a command?
35271max_cmd_len=$max_cmd_len
35272
35273# Object file suffix (normally "o").
35274objext=$ac_objext
35275
35276# Executable file suffix (normally "").
35277exeext=$exeext
35278
35279# whether the shell understands "unset".
35280lt_unset=$lt_unset
35281
35282# turn spaces into newlines.
35283SP2NL=$lt_lt_SP2NL
35284
35285# turn newlines into spaces.
35286NL2SP=$lt_lt_NL2SP
35287
35288# convert \$build file names to \$host format.
35289to_host_file_cmd=$lt_cv_to_host_file_cmd
35290
35291# convert \$build files to toolchain format.
35292to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35293
35294# Method to check whether dependent libraries are shared objects.
35295deplibs_check_method=$lt_deplibs_check_method
35296
35297# Command to use when deplibs_check_method = "file_magic".
35298file_magic_cmd=$lt_file_magic_cmd
35299
35300# How to find potential files when deplibs_check_method = "file_magic".
35301file_magic_glob=$lt_file_magic_glob
35302
35303# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35304want_nocaseglob=$lt_want_nocaseglob
35305
35306# Command to associate shared and link libraries.
35307sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35308
35309# The archiver.
35310AR=$lt_AR
35311
35312# Flags to create an archive.
35313AR_FLAGS=$lt_AR_FLAGS
35314
35315# How to feed a file listing to the archiver.
35316archiver_list_spec=$lt_archiver_list_spec
35317
35318# A symbol stripping program.
35319STRIP=$lt_STRIP
35320
35321# Commands used to install an old-style archive.
35322RANLIB=$lt_RANLIB
35323old_postinstall_cmds=$lt_old_postinstall_cmds
35324old_postuninstall_cmds=$lt_old_postuninstall_cmds
35325
35326# Whether to use a lock for old archive extraction.
35327lock_old_archive_extraction=$lock_old_archive_extraction
35328
35329# A C compiler.
35330LTCC=$lt_CC
35331
35332# LTCC compiler flags.
35333LTCFLAGS=$lt_CFLAGS
35334
35335# Take the output of nm and produce a listing of raw symbols and C names.
35336global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35337
35338# Transform the output of nm in a proper C declaration.
35339global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35340
35341# Transform the output of nm into a list of symbols to manually relocate.
35342global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35343
35344# Transform the output of nm in a C name address pair.
35345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35346
35347# Transform the output of nm in a C name address pair when lib prefix is needed.
35348global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35349
35350# The name lister interface.
35351nm_interface=$lt_lt_cv_nm_interface
35352
35353# Specify filename containing input files for \$NM.
35354nm_file_list_spec=$lt_nm_file_list_spec
35355
35356# The root where to search for dependent libraries,and where our libraries should be installed.
35357lt_sysroot=$lt_sysroot
35358
35359# Command to truncate a binary pipe.
35360lt_truncate_bin=$lt_lt_cv_truncate_bin
35361
35362# The name of the directory that contains temporary libtool files.
35363objdir=$objdir
35364
35365# Used to examine libraries when file_magic_cmd begins with "file".
35366MAGIC_CMD=$MAGIC_CMD
35367
35368# Must we lock files when doing compilation?
35369need_locks=$lt_need_locks
35370
35371# Manifest tool.
35372MANIFEST_TOOL=$lt_MANIFEST_TOOL
35373
35374# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35375DSYMUTIL=$lt_DSYMUTIL
35376
35377# Tool to change global to local symbols on Mac OS X.
35378NMEDIT=$lt_NMEDIT
35379
35380# Tool to manipulate fat objects and archives on Mac OS X.
35381LIPO=$lt_LIPO
35382
35383# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35384OTOOL=$lt_OTOOL
35385
35386# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35387OTOOL64=$lt_OTOOL64
35388
35389# Old archive suffix (normally "a").
35390libext=$libext
35391
35392# Shared library suffix (normally ".so").
35393shrext_cmds=$lt_shrext_cmds
35394
35395# The commands to extract the exported symbol list from a shared archive.
35396extract_expsyms_cmds=$lt_extract_expsyms_cmds
35397
35398# Variables whose values should be saved in libtool wrapper scripts and
35399# restored at link time.
35400variables_saved_for_relink=$lt_variables_saved_for_relink
35401
35402# Do we need the "lib" prefix for modules?
35403need_lib_prefix=$need_lib_prefix
35404
35405# Do we need a version for libraries?
35406need_version=$need_version
35407
35408# Library versioning type.
35409version_type=$version_type
35410
35411# Shared library runtime path variable.
35412runpath_var=$runpath_var
35413
35414# Shared library path variable.
35415shlibpath_var=$shlibpath_var
35416
35417# Is shlibpath searched before the hard-coded library search path?
35418shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35419
35420# Format of library name prefix.
35421libname_spec=$lt_libname_spec
35422
35423# List of archive names.  First name is the real one, the rest are links.
35424# The last name is the one that the linker finds with -lNAME
35425library_names_spec=$lt_library_names_spec
35426
35427# The coded name of the library, if different from the real name.
35428soname_spec=$lt_soname_spec
35429
35430# Permission mode override for installation of shared libraries.
35431install_override_mode=$lt_install_override_mode
35432
35433# Command to use after installation of a shared archive.
35434postinstall_cmds=$lt_postinstall_cmds
35435
35436# Command to use after uninstallation of a shared archive.
35437postuninstall_cmds=$lt_postuninstall_cmds
35438
35439# Commands used to finish a libtool library installation in a directory.
35440finish_cmds=$lt_finish_cmds
35441
35442# As "finish_cmds", except a single script fragment to be evaled but
35443# not shown.
35444finish_eval=$lt_finish_eval
35445
35446# Whether we should hardcode library paths into libraries.
35447hardcode_into_libs=$hardcode_into_libs
35448
35449# Compile-time system search path for libraries.
35450sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35451
35452# Detected run-time system search path for libraries.
35453sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35454
35455# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35456configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35457
35458# Whether dlopen is supported.
35459dlopen_support=$enable_dlopen
35460
35461# Whether dlopen of programs is supported.
35462dlopen_self=$enable_dlopen_self
35463
35464# Whether dlopen of statically linked programs is supported.
35465dlopen_self_static=$enable_dlopen_self_static
35466
35467# Commands to strip libraries.
35468old_striplib=$lt_old_striplib
35469striplib=$lt_striplib
35470
35471
35472# The linker used to build libraries.
35473LD=$lt_LD
35474
35475# How to create reloadable object files.
35476reload_flag=$lt_reload_flag
35477reload_cmds=$lt_reload_cmds
35478
35479# Commands used to build an old-style archive.
35480old_archive_cmds=$lt_old_archive_cmds
35481
35482# A language specific compiler.
35483CC=$lt_compiler
35484
35485# Is the compiler the GNU compiler?
35486with_gcc=$GCC
35487
35488# Compiler flag to turn off builtin functions.
35489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35490
35491# Additional compiler flags for building library objects.
35492pic_flag=$lt_lt_prog_compiler_pic
35493
35494# How to pass a linker flag through the compiler.
35495wl=$lt_lt_prog_compiler_wl
35496
35497# Compiler flag to prevent dynamic linking.
35498link_static_flag=$lt_lt_prog_compiler_static
35499
35500# Does compiler simultaneously support -c and -o options?
35501compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35502
35503# Whether or not to add -lc for building shared libraries.
35504build_libtool_need_lc=$archive_cmds_need_lc
35505
35506# Whether or not to disallow shared libs when runtime libs are static.
35507allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35508
35509# Compiler flag to allow reflexive dlopens.
35510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35511
35512# Compiler flag to generate shared objects directly from archives.
35513whole_archive_flag_spec=$lt_whole_archive_flag_spec
35514
35515# Whether the compiler copes with passing no objects directly.
35516compiler_needs_object=$lt_compiler_needs_object
35517
35518# Create an old-style archive from a shared archive.
35519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35520
35521# Create a temporary old-style archive to link instead of a shared archive.
35522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35523
35524# Commands used to build a shared archive.
35525archive_cmds=$lt_archive_cmds
35526archive_expsym_cmds=$lt_archive_expsym_cmds
35527
35528# Commands used to build a loadable module if different from building
35529# a shared archive.
35530module_cmds=$lt_module_cmds
35531module_expsym_cmds=$lt_module_expsym_cmds
35532
35533# Whether we are building with GNU ld or not.
35534with_gnu_ld=$lt_with_gnu_ld
35535
35536# Flag that allows shared libraries with undefined symbols to be built.
35537allow_undefined_flag=$lt_allow_undefined_flag
35538
35539# Flag that enforces no undefined symbols.
35540no_undefined_flag=$lt_no_undefined_flag
35541
35542# Flag to hardcode \$libdir into a binary during linking.
35543# This must work even if \$libdir does not exist
35544hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35545
35546# Whether we need a single "-rpath" flag with a separated argument.
35547hardcode_libdir_separator=$lt_hardcode_libdir_separator
35548
35549# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35550# DIR into the resulting binary.
35551hardcode_direct=$hardcode_direct
35552
35553# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35554# DIR into the resulting binary and the resulting library dependency is
35555# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35556# library is relocated.
35557hardcode_direct_absolute=$hardcode_direct_absolute
35558
35559# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35560# into the resulting binary.
35561hardcode_minus_L=$hardcode_minus_L
35562
35563# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35564# into the resulting binary.
35565hardcode_shlibpath_var=$hardcode_shlibpath_var
35566
35567# Set to "yes" if building a shared library automatically hardcodes DIR
35568# into the library and all subsequent libraries and executables linked
35569# against it.
35570hardcode_automatic=$hardcode_automatic
35571
35572# Set to yes if linker adds runtime paths of dependent libraries
35573# to runtime path list.
35574inherit_rpath=$inherit_rpath
35575
35576# Whether libtool must link a program against all its dependency libraries.
35577link_all_deplibs=$link_all_deplibs
35578
35579# Set to "yes" if exported symbols are required.
35580always_export_symbols=$always_export_symbols
35581
35582# The commands to list exported symbols.
35583export_symbols_cmds=$lt_export_symbols_cmds
35584
35585# Symbols that should not be listed in the preloaded symbols.
35586exclude_expsyms=$lt_exclude_expsyms
35587
35588# Symbols that must always be exported.
35589include_expsyms=$lt_include_expsyms
35590
35591# Commands necessary for linking programs (against libraries) with templates.
35592prelink_cmds=$lt_prelink_cmds
35593
35594# Commands necessary for finishing linking programs.
35595postlink_cmds=$lt_postlink_cmds
35596
35597# Specify filename containing input files.
35598file_list_spec=$lt_file_list_spec
35599
35600# How to hardcode a shared library path into an executable.
35601hardcode_action=$hardcode_action
35602
35603# The directories searched by this compiler when creating a shared library.
35604compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35605
35606# Dependencies to place before and after the objects being linked to
35607# create a shared library.
35608predep_objects=$lt_predep_objects
35609postdep_objects=$lt_postdep_objects
35610predeps=$lt_predeps
35611postdeps=$lt_postdeps
35612
35613# The library search path used internally by the compiler when linking
35614# a shared library.
35615compiler_lib_search_path=$lt_compiler_lib_search_path
35616
35617# ### END LIBTOOL CONFIG
35618
35619_LT_EOF
35620
35621    cat <<'_LT_EOF' >> "$cfgfile"
35622
35623# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35624
35625# func_munge_path_list VARIABLE PATH
35626# -----------------------------------
35627# VARIABLE is name of variable containing _space_ separated list of
35628# directories to be munged by the contents of PATH, which is string
35629# having a format:
35630# "DIR[:DIR]:"
35631#       string "DIR[ DIR]" will be prepended to VARIABLE
35632# ":DIR[:DIR]"
35633#       string "DIR[ DIR]" will be appended to VARIABLE
35634# "DIRP[:DIRP]::[DIRA:]DIRA"
35635#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35636#       "DIRA[ DIRA]" will be appended to VARIABLE
35637# "DIR[:DIR]"
35638#       VARIABLE will be replaced by "DIR[ DIR]"
35639func_munge_path_list ()
35640{
35641    case x$2 in
35642    x)
35643        ;;
35644    *:)
35645        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35646        ;;
35647    x:*)
35648        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35649        ;;
35650    *::*)
35651        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35652        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35653        ;;
35654    *)
35655        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35656        ;;
35657    esac
35658}
35659
35660
35661# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35662func_cc_basename ()
35663{
35664    for cc_temp in $*""; do
35665      case $cc_temp in
35666        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35667        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35668        \-*) ;;
35669        *) break;;
35670      esac
35671    done
35672    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35673}
35674
35675
35676# ### END FUNCTIONS SHARED WITH CONFIGURE
35677
35678_LT_EOF
35679
35680  case $host_os in
35681  aix3*)
35682    cat <<\_LT_EOF >> "$cfgfile"
35683# AIX sometimes has problems with the GCC collect2 program.  For some
35684# reason, if we set the COLLECT_NAMES environment variable, the problems
35685# vanish in a puff of smoke.
35686if test set != "${COLLECT_NAMES+set}"; then
35687  COLLECT_NAMES=
35688  export COLLECT_NAMES
35689fi
35690_LT_EOF
35691    ;;
35692  esac
35693
35694
35695
35696ltmain=$ac_aux_dir/ltmain.sh
35697
35698
35699  # We use sed instead of cat because bash on DJGPP gets confused if
35700  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35701  # text mode, it properly converts lines to CR/LF.  This bash problem
35702  # is reportedly fixed, but why not run on old versions too?
35703  sed '$q' "$ltmain" >> "$cfgfile" \
35704     || (rm -f "$cfgfile"; exit 1)
35705
35706   mv -f "$cfgfile" "$ofile" ||
35707    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35708  chmod +x "$ofile"
35709
35710
35711    cat <<_LT_EOF >> "$ofile"
35712
35713# ### BEGIN LIBTOOL TAG CONFIG: CXX
35714
35715# The linker used to build libraries.
35716LD=$lt_LD_CXX
35717
35718# How to create reloadable object files.
35719reload_flag=$lt_reload_flag_CXX
35720reload_cmds=$lt_reload_cmds_CXX
35721
35722# Commands used to build an old-style archive.
35723old_archive_cmds=$lt_old_archive_cmds_CXX
35724
35725# A language specific compiler.
35726CC=$lt_compiler_CXX
35727
35728# Is the compiler the GNU compiler?
35729with_gcc=$GCC_CXX
35730
35731# Compiler flag to turn off builtin functions.
35732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35733
35734# Additional compiler flags for building library objects.
35735pic_flag=$lt_lt_prog_compiler_pic_CXX
35736
35737# How to pass a linker flag through the compiler.
35738wl=$lt_lt_prog_compiler_wl_CXX
35739
35740# Compiler flag to prevent dynamic linking.
35741link_static_flag=$lt_lt_prog_compiler_static_CXX
35742
35743# Does compiler simultaneously support -c and -o options?
35744compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35745
35746# Whether or not to add -lc for building shared libraries.
35747build_libtool_need_lc=$archive_cmds_need_lc_CXX
35748
35749# Whether or not to disallow shared libs when runtime libs are static.
35750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35751
35752# Compiler flag to allow reflexive dlopens.
35753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35754
35755# Compiler flag to generate shared objects directly from archives.
35756whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35757
35758# Whether the compiler copes with passing no objects directly.
35759compiler_needs_object=$lt_compiler_needs_object_CXX
35760
35761# Create an old-style archive from a shared archive.
35762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35763
35764# Create a temporary old-style archive to link instead of a shared archive.
35765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35766
35767# Commands used to build a shared archive.
35768archive_cmds=$lt_archive_cmds_CXX
35769archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35770
35771# Commands used to build a loadable module if different from building
35772# a shared archive.
35773module_cmds=$lt_module_cmds_CXX
35774module_expsym_cmds=$lt_module_expsym_cmds_CXX
35775
35776# Whether we are building with GNU ld or not.
35777with_gnu_ld=$lt_with_gnu_ld_CXX
35778
35779# Flag that allows shared libraries with undefined symbols to be built.
35780allow_undefined_flag=$lt_allow_undefined_flag_CXX
35781
35782# Flag that enforces no undefined symbols.
35783no_undefined_flag=$lt_no_undefined_flag_CXX
35784
35785# Flag to hardcode \$libdir into a binary during linking.
35786# This must work even if \$libdir does not exist
35787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35788
35789# Whether we need a single "-rpath" flag with a separated argument.
35790hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35791
35792# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35793# DIR into the resulting binary.
35794hardcode_direct=$hardcode_direct_CXX
35795
35796# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35797# DIR into the resulting binary and the resulting library dependency is
35798# "absolute",i.e impossible to change by setting \$shlibpath_var if the
35799# library is relocated.
35800hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35801
35802# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35803# into the resulting binary.
35804hardcode_minus_L=$hardcode_minus_L_CXX
35805
35806# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35807# into the resulting binary.
35808hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35809
35810# Set to "yes" if building a shared library automatically hardcodes DIR
35811# into the library and all subsequent libraries and executables linked
35812# against it.
35813hardcode_automatic=$hardcode_automatic_CXX
35814
35815# Set to yes if linker adds runtime paths of dependent libraries
35816# to runtime path list.
35817inherit_rpath=$inherit_rpath_CXX
35818
35819# Whether libtool must link a program against all its dependency libraries.
35820link_all_deplibs=$link_all_deplibs_CXX
35821
35822# Set to "yes" if exported symbols are required.
35823always_export_symbols=$always_export_symbols_CXX
35824
35825# The commands to list exported symbols.
35826export_symbols_cmds=$lt_export_symbols_cmds_CXX
35827
35828# Symbols that should not be listed in the preloaded symbols.
35829exclude_expsyms=$lt_exclude_expsyms_CXX
35830
35831# Symbols that must always be exported.
35832include_expsyms=$lt_include_expsyms_CXX
35833
35834# Commands necessary for linking programs (against libraries) with templates.
35835prelink_cmds=$lt_prelink_cmds_CXX
35836
35837# Commands necessary for finishing linking programs.
35838postlink_cmds=$lt_postlink_cmds_CXX
35839
35840# Specify filename containing input files.
35841file_list_spec=$lt_file_list_spec_CXX
35842
35843# How to hardcode a shared library path into an executable.
35844hardcode_action=$hardcode_action_CXX
35845
35846# The directories searched by this compiler when creating a shared library.
35847compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35848
35849# Dependencies to place before and after the objects being linked to
35850# create a shared library.
35851predep_objects=$lt_predep_objects_CXX
35852postdep_objects=$lt_postdep_objects_CXX
35853predeps=$lt_predeps_CXX
35854postdeps=$lt_postdeps_CXX
35855
35856# The library search path used internally by the compiler when linking
35857# a shared library.
35858compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35859
35860# ### END LIBTOOL TAG CONFIG: CXX
35861_LT_EOF
35862
35863 ;;
35864    "chmoding-scripts":C) chmod +x \
35865      tests/hwloc/linux/test-topology.sh \
35866      tests/hwloc/x86/test-topology.sh \
35867      tests/hwloc/x86+linux/test-topology.sh \
35868      tests/hwloc/xml/test-topology.sh \
35869      tests/hwloc/linux/allowed/test-topology.sh \
35870      tests/hwloc/linux/gather/test-gather-topology.sh \
35871      tests/hwloc/wrapper.sh \
35872      utils/hwloc/hwloc-compress-dir \
35873      utils/hwloc/hwloc-gather-topology \
35874      utils/hwloc/test-hwloc-annotate.sh \
35875      utils/hwloc/test-hwloc-calc.sh \
35876      utils/hwloc/test-hwloc-compress-dir.sh \
35877      utils/hwloc/test-hwloc-diffpatch.sh \
35878      utils/hwloc/test-hwloc-distrib.sh \
35879      utils/hwloc/test-hwloc-info.sh \
35880      utils/hwloc/test-fake-plugin.sh \
35881      utils/hwloc/test-parsing-flags.sh \
35882      utils/hwloc/test-hwloc-dump-hwdata/test-hwloc-dump-hwdata.sh \
35883      utils/lstopo/test-lstopo.sh \
35884      utils/lstopo/test-lstopo-shmem.sh \
35885      utils/netloc/infiniband/netloc_ib_gather_raw \
35886      contrib/windows/test-windows-version.sh \
35887      tests/netloc/tests.sh ;;
35888
35889  esac
35890done # for ac_tag
35891
35892
35893as_fn_exit 0
35894_ACEOF
35895ac_clean_files=$ac_clean_files_save
35896
35897test $ac_write_fail = 0 ||
35898  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35899
35900
35901# configure is writing to config.log, and then calls config.status.
35902# config.status does its own redirection, appending to config.log.
35903# Unfortunately, on DOS this fails, as config.log is still kept open
35904# by configure, so config.status won't be able to write to it; its
35905# output is simply discarded.  So we exec the FD to /dev/null,
35906# effectively closing config.log, so it can be properly (re)opened and
35907# appended to by config.status.  When coming back to configure, we
35908# need to make the FD available again.
35909if test "$no_create" != yes; then
35910  ac_cs_success=:
35911  ac_config_status_args=
35912  test "$silent" = yes &&
35913    ac_config_status_args="$ac_config_status_args --quiet"
35914  exec 5>/dev/null
35915  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35916  exec 5>>config.log
35917  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35918  # would make configure fail if this is the last instruction.
35919  $ac_cs_success || as_fn_exit 1
35920fi
35921if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35923printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35924fi
35925
35926
35927# Warn if we didn't have pkg-config
35928if test "x$PKG_CONFIG" = x; then
35929  cat << EOF
35930
35931************************************************************************
35932Could not detect/enable some features such as libxml2 and Cairo support
35933because pkg-config isn't available.
35934************************************************************************
35935EOF
35936fi
35937
35938# Show which optional support we'll be building
35939hwloc_xml_status=basic
35940if test "$hwloc_libxml2_happy" = "yes"
35941then :
35942  hwloc_xml_status=full
35943fi
35944netloc_status=no
35945if test "$netloc_happy" = "yes"
35946then :
35947
35948  netlocscotch_status=without
35949  if test "$scotch_found_headers" = "yes"
35950then :
35951  netlocscotch_status=with
35952fi
35953  netloc_status="yes ($netlocscotch_status scotch)"
35954
35955fi
35956
35957if test "$enable_embedded_mode" = "yes"
35958then :
35959  hwloc_graphical_lstopo_status="no (disabled in embedded mode)"
35960else $as_nop
35961  if test "$hwloc_windows" = "yes"
35962then :
35963  hwloc_graphical_lstopo_status="yes (Windows)"
35964else $as_nop
35965  if test "$hwloc_cairo_happy" = "yes"
35966then :
35967  if test "$lstopo_have_x11" = "yes"
35968then :
35969  hwloc_graphical_lstopo_status="yes (Cairo)"
35970else $as_nop
35971  hwloc_graphical_lstopo_status="partial (Cairo, without X11)"
35972fi
35973else $as_nop
35974  hwloc_graphical_lstopo_status="no"
35975fi
35976
35977fi
35978
35979fi
35980
35981# Prepare the I/O summary
35982hwloc_probeio_list=
35983if test "x$hwloc_pciaccess_happy" = "xyes" -o "x$hwloc_linuxpci_happy" = "xyes"; then
35984  test "x$hwloc_pciaccess_happy" = "xyes" && hwloc_probepci_list=pciaccess
35985  test "x$hwloc_pciaccess_happy$hwloc_linuxpci_happy" = "xyesyes" && hwloc_probepci_list="${hwloc_probepci_list}+"
35986  test "x$hwloc_linuxio_happy" = "xyes" && hwloc_probepci_list="${hwloc_probepci_list}linux"
35987  hwloc_probeio_list="$hwloc_probeio_list PCI($hwloc_probepci_list)"
35988fi
35989test "x$hwloc_linuxio_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list LinuxIO"
35990test "x$hwloc_opencl_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list OpenCL"
35991test "x$hwloc_have_cudart" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list CUDA"
35992test "x$hwloc_nvml_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list NVML"
35993test "x$hwloc_rsmi_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list RSMI"
35994test "x$hwloc_levelzero_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list LevelZero"
35995test "x$hwloc_gl_happy" = "xyes" && hwloc_probeio_list="$hwloc_probeio_list GL"
35996# if nothing, say "no"
35997test "x$hwloc_probeio_list" = "x" && hwloc_probeio_list=" no"
35998
35999# Beginning of generic support
36000cat <<EOF
36001
36002-----------------------------------------------------------------------------
36003Hwloc optional build support status (more details can be found above):
36004
36005Probe / display I/O devices:$hwloc_probeio_list
36006Graphical output:            $hwloc_graphical_lstopo_status
36007XML input / output:          $hwloc_xml_status
36008Netloc functionality:        $netloc_status
36009EOF
36010
36011# Plugin support
36012hwloc_plugin_summary=$hwloc_have_plugins
36013test "x$hwloc_plugin_components" != "x" && hwloc_plugin_summary="$hwloc_plugins_load ("`echo $hwloc_plugin_components`")" # echo removes the starting space
36014cat <<EOF
36015Plugin support:              $hwloc_plugin_summary
36016EOF
36017
36018# End of generic support
36019cat <<EOF
36020-----------------------------------------------------------------------------
36021
36022EOF
36023
36024