1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69.
5#
6#
7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19  emulate sh
20  NULLCMD=:
21  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in #(
27  *posix*) :
28    set -o posix ;; #(
29  *) :
30     ;;
31esac
32fi
33
34
35as_nl='
36'
37export as_nl
38# Printing a long string crashes Solaris 7 /usr/bin/printf.
39as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42# Prefer a ksh shell builtin over an external printf program on Solaris,
43# but without wasting forks for bash or zsh.
44if test -z "$BASH_VERSION$ZSH_VERSION" \
45    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46  as_echo='print -r --'
47  as_echo_n='print -rn --'
48elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='printf %s\n'
50  as_echo_n='printf %s'
51else
52  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54    as_echo_n='/usr/ucb/echo -n'
55  else
56    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57    as_echo_n_body='eval
58      arg=$1;
59      case $arg in #(
60      *"$as_nl"*)
61	expr "X$arg" : "X\\(.*\\)$as_nl";
62	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63      esac;
64      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65    '
66    export as_echo_n_body
67    as_echo_n='sh -c $as_echo_n_body as_echo'
68  fi
69  export as_echo_body
70  as_echo='sh -c $as_echo_body as_echo'
71fi
72
73# The user is always right.
74if test "${PATH_SEPARATOR+set}" != set; then
75  PATH_SEPARATOR=:
76  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78      PATH_SEPARATOR=';'
79  }
80fi
81
82
83# IFS
84# We need space, tab and new line, in precisely that order.  Quoting is
85# there to prevent editors from complaining about space-tab.
86# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87# splitting by setting IFS to empty value.)
88IFS=" ""	$as_nl"
89
90# Find who we are.  Look in the path if we contain no directory separator.
91as_myself=
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136# Use a proper internal environment variable to ensure we don't fall
137  # into an infinite loop, continuously re-executing ourselves.
138  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139    _as_can_reexec=no; export _as_can_reexec;
140    # We cannot yet assume a decent shell, so we have to provide a
141# neutralization value for shells without unset; and this also
142# works around shells that cannot unset nonexistent variables.
143# Preserve -v and -x to the replacement shell.
144BASH_ENV=/dev/null
145ENV=/dev/null
146(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147case $- in # ((((
148  *v*x* | *x*v* ) as_opts=-vx ;;
149  *v* ) as_opts=-v ;;
150  *x* ) as_opts=-x ;;
151  * ) as_opts= ;;
152esac
153exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154# Admittedly, this is quite paranoid, since all the known shells bail
155# out after a failed `exec'.
156$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157as_fn_exit 255
158  fi
159  # We don't want this to propagate to other subprocesses.
160          { _as_can_reexec=; unset _as_can_reexec;}
161if test "x$CONFIG_SHELL" = x; then
162  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163  emulate sh
164  NULLCMD=:
165  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166  # is contrary to our usage.  Disable this feature.
167  alias -g '\${1+\"\$@\"}'='\"\$@\"'
168  setopt NO_GLOB_SUBST
169else
170  case \`(set -o) 2>/dev/null\` in #(
171  *posix*) :
172    set -o posix ;; #(
173  *) :
174     ;;
175esac
176fi
177"
178  as_required="as_fn_return () { (exit \$1); }
179as_fn_success () { as_fn_return 0; }
180as_fn_failure () { as_fn_return 1; }
181as_fn_ret_success () { return 0; }
182as_fn_ret_failure () { return 1; }
183
184exitcode=0
185as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191else
192  exitcode=1; echo positional parameters were not saved.
193fi
194test x\$exitcode = x0 || exit 1
195test -x / || exit 1"
196  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200test \$(( 1 + 1 )) = 2 || exit 1"
201  if (eval "$as_required") 2>/dev/null; then :
202  as_have_required=yes
203else
204  as_have_required=no
205fi
206  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213  IFS=$as_save_IFS
214  test -z "$as_dir" && as_dir=.
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_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  CONFIG_SHELL=$as_shell as_have_required=yes
224		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239      if test "x$CONFIG_SHELL" != x; then :
240  export CONFIG_SHELL
241             # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249  *v*x* | *x*v* ) as_opts=-vx ;;
250  *v* ) as_opts=-v ;;
251  *x* ) as_opts=-x ;;
252  * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261    if test x$as_have_required = xno; then :
262  $as_echo "$0: This script requires a shell more modern than all"
263  $as_echo "$0: the shells that I found on your system."
264  if test x${ZSH_VERSION+set} = xset ; then
265    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267  else
268    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269$0: including any error possibly output before this
270$0: message. Then install a modern shell, or manually run
271$0: the script under such a shell if you do have one."
272  fi
273  exit 1
274fi
275fi
276fi
277SHELL=${CONFIG_SHELL-/bin/sh}
278export SHELL
279# Unset more variables known to interfere with behavior of common tools.
280CLICOLOR_FORCE= GREP_OPTIONS=
281unset CLICOLOR_FORCE GREP_OPTIONS
282
283## --------------------- ##
284## M4sh Shell Functions. ##
285## --------------------- ##
286# as_fn_unset VAR
287# ---------------
288# Portably unset VAR.
289as_fn_unset ()
290{
291  { eval $1=; unset $1;}
292}
293as_unset=as_fn_unset
294
295# as_fn_set_status STATUS
296# -----------------------
297# Set $? to STATUS, without forking.
298as_fn_set_status ()
299{
300  return $1
301} # as_fn_set_status
302
303# as_fn_exit STATUS
304# -----------------
305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306as_fn_exit ()
307{
308  set +e
309  as_fn_set_status $1
310  exit $1
311} # as_fn_exit
312
313# as_fn_mkdir_p
314# -------------
315# Create "$as_dir" as a directory, including parents if necessary.
316as_fn_mkdir_p ()
317{
318
319  case $as_dir in #(
320  -*) as_dir=./$as_dir;;
321  esac
322  test -d "$as_dir" || eval $as_mkdir_p || {
323    as_dirs=
324    while :; do
325      case $as_dir in #(
326      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327      *) as_qdir=$as_dir;;
328      esac
329      as_dirs="'$as_qdir' $as_dirs"
330      as_dir=`$as_dirname -- "$as_dir" ||
331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332	 X"$as_dir" : 'X\(//\)[^/]' \| \
333	 X"$as_dir" : 'X\(//\)$' \| \
334	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335$as_echo X"$as_dir" |
336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337	    s//\1/
338	    q
339	  }
340	  /^X\(\/\/\)[^/].*/{
341	    s//\1/
342	    q
343	  }
344	  /^X\(\/\/\)$/{
345	    s//\1/
346	    q
347	  }
348	  /^X\(\/\).*/{
349	    s//\1/
350	    q
351	  }
352	  s/.*/./; q'`
353      test -d "$as_dir" && break
354    done
355    test -z "$as_dirs" || eval "mkdir $as_dirs"
356  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359} # as_fn_mkdir_p
360
361# as_fn_executable_p FILE
362# -----------------------
363# Test if FILE is an executable regular file.
364as_fn_executable_p ()
365{
366  test -f "$1" && test -x "$1"
367} # as_fn_executable_p
368# as_fn_append VAR VALUE
369# ----------------------
370# Append the text in VALUE to the end of the definition contained in VAR. Take
371# advantage of any shell optimizations that allow amortized linear growth over
372# repeated appends, instead of the typical quadratic growth present in naive
373# implementations.
374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375  eval 'as_fn_append ()
376  {
377    eval $1+=\$2
378  }'
379else
380  as_fn_append ()
381  {
382    eval $1=\$$1\$2
383  }
384fi # as_fn_append
385
386# as_fn_arith ARG...
387# ------------------
388# Perform arithmetic evaluation on the ARGs, and store the result in the
389# global $as_val. Take advantage of shells that can avoid forks. The arguments
390# must be portable across $(()) and expr.
391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392  eval 'as_fn_arith ()
393  {
394    as_val=$(( $* ))
395  }'
396else
397  as_fn_arith ()
398  {
399    as_val=`expr "$@" || test $? -eq 1`
400  }
401fi # as_fn_arith
402
403
404# as_fn_error STATUS ERROR [LINENO LOG_FD]
405# ----------------------------------------
406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408# script with STATUS, using 1 if that was 0.
409as_fn_error ()
410{
411  as_status=$1; test $as_status -eq 0 && as_status=1
412  if test "$4"; then
413    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415  fi
416  $as_echo "$as_me: error: $2" >&2
417  as_fn_exit $as_status
418} # as_fn_error
419
420if expr a : '\(a\)' >/dev/null 2>&1 &&
421   test "X`expr 00001 : '.*\(...\)'`" = X001; then
422  as_expr=expr
423else
424  as_expr=false
425fi
426
427if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428  as_basename=basename
429else
430  as_basename=false
431fi
432
433if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434  as_dirname=dirname
435else
436  as_dirname=false
437fi
438
439as_me=`$as_basename -- "$0" ||
440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441	 X"$0" : 'X\(//\)$' \| \
442	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443$as_echo X/"$0" |
444    sed '/^.*\/\([^/][^/]*\)\/*$/{
445	    s//\1/
446	    q
447	  }
448	  /^X\/\(\/\/\)$/{
449	    s//\1/
450	    q
451	  }
452	  /^X\/\(\/\).*/{
453	    s//\1/
454	    q
455	  }
456	  s/.*/./; q'`
457
458# Avoid depending upon Character Ranges.
459as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462as_cr_digits='0123456789'
463as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466  as_lineno_1=$LINENO as_lineno_1a=$LINENO
467  as_lineno_2=$LINENO as_lineno_2a=$LINENO
468  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
471  sed -n '
472    p
473    /[$]LINENO/=
474  ' <$as_myself |
475    sed '
476      s/[$]LINENO.*/&-/
477      t lineno
478      b
479      :lineno
480      N
481      :loop
482      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483      t loop
484      s/-\n.*//
485    ' >$as_me.lineno &&
486  chmod +x "$as_me.lineno" ||
487    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490  # already done that, so ensure we don't try to do so again and fall
491  # in an infinite loop.  This has already happened in practice.
492  _as_can_reexec=no; export _as_can_reexec
493  # Don't try to exec as it changes $[0], causing all sort of problems
494  # (the dirname of $[0] is not the place where we might find the
495  # original and so on.  Autoconf is especially sensitive to this).
496  . "./$as_me.lineno"
497  # Exit status is that of the last command.
498  exit
499}
500
501ECHO_C= ECHO_N= ECHO_T=
502case `echo -n x` in #(((((
503-n*)
504  case `echo 'xy\c'` in
505  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
506  xy)  ECHO_C='\c';;
507  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
508       ECHO_T='	';;
509  esac;;
510*)
511  ECHO_N='-n';;
512esac
513
514rm -f conf$$ conf$$.exe conf$$.file
515if test -d conf$$.dir; then
516  rm -f conf$$.dir/conf$$.file
517else
518  rm -f conf$$.dir
519  mkdir conf$$.dir 2>/dev/null
520fi
521if (echo >conf$$.file) 2>/dev/null; then
522  if ln -s conf$$.file conf$$ 2>/dev/null; then
523    as_ln_s='ln -s'
524    # ... but there are two gotchas:
525    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527    # In both cases, we have to default to `cp -pR'.
528    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529      as_ln_s='cp -pR'
530  elif ln conf$$.file conf$$ 2>/dev/null; then
531    as_ln_s=ln
532  else
533    as_ln_s='cp -pR'
534  fi
535else
536  as_ln_s='cp -pR'
537fi
538rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539rmdir conf$$.dir 2>/dev/null
540
541if mkdir -p . 2>/dev/null; then
542  as_mkdir_p='mkdir -p "$as_dir"'
543else
544  test -d ./-p && rmdir ./-p
545  as_mkdir_p=false
546fi
547
548as_test_x='test -x'
549as_executable_p=as_fn_executable_p
550
551# Sed expression to map a string onto a valid CPP name.
552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554# Sed expression to map a string onto a valid variable name.
555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558
559# Check that we are running under the correct shell.
560SHELL=${CONFIG_SHELL-/bin/sh}
561
562case X$ECHO in
563X*--fallback-echo)
564  # Remove one level of quotation (which was required for Make).
565  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566  ;;
567esac
568
569echo=${ECHO-echo}
570if test "X$1" = X--no-reexec; then
571  # Discard the --no-reexec flag, and continue.
572  shift
573elif test "X$1" = X--fallback-echo; then
574  # Avoid inline document here, it may be left over
575  :
576elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577  # Yippee, $echo works!
578  :
579else
580  # Restart under the correct shell.
581  exec $SHELL "$0" --no-reexec ${1+"$@"}
582fi
583
584if test "X$1" = X--fallback-echo; then
585  # used as fallback echo
586  shift
587  cat <<EOF
588$*
589EOF
590  exit 0
591fi
592
593# The HP-UX ksh and POSIX shell print the target directory to stdout
594# if CDPATH is set.
595if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
596
597if test -z "$ECHO"; then
598if test "X${echo_test_string+set}" != Xset; then
599# find a string as large as possible, as long as the shell can cope with it
600  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
603       echo_test_string="`eval $cmd`" &&
604       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605    then
606      break
607    fi
608  done
609fi
610
611if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
613   test "X$echo_testing_string" = "X$echo_test_string"; then
614  :
615else
616  # The Solaris, AIX, and Digital Unix default echo programs unquote
617  # backslashes.  This makes it impossible to quote backslashes using
618  #   echo "$something" | sed 's/\\/\\\\/g'
619  #
620  # So, first we look for a working echo in the user's PATH.
621
622  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
623  for dir in $PATH /usr/ucb; do
624    IFS="$lt_save_ifs"
625    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
626       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628       test "X$echo_testing_string" = "X$echo_test_string"; then
629      echo="$dir/echo"
630      break
631    fi
632  done
633  IFS="$lt_save_ifs"
634
635  if test "X$echo" = Xecho; then
636    # We didn't find a better echo, so look for alternatives.
637    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
639       test "X$echo_testing_string" = "X$echo_test_string"; then
640      # This shell has a builtin print -r that does the trick.
641      echo='print -r'
642    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
643	 test "X$CONFIG_SHELL" != X/bin/ksh; then
644      # If we have ksh, try running configure again with it.
645      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
646      export ORIGINAL_CONFIG_SHELL
647      CONFIG_SHELL=/bin/ksh
648      export CONFIG_SHELL
649      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650    else
651      # Try using printf.
652      echo='printf %s\n'
653      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
655	 test "X$echo_testing_string" = "X$echo_test_string"; then
656	# Cool, printf works
657	:
658      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659	   test "X$echo_testing_string" = 'X\t' &&
660	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661	   test "X$echo_testing_string" = "X$echo_test_string"; then
662	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663	export CONFIG_SHELL
664	SHELL="$CONFIG_SHELL"
665	export SHELL
666	echo="$CONFIG_SHELL $0 --fallback-echo"
667      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668	   test "X$echo_testing_string" = 'X\t' &&
669	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	echo="$CONFIG_SHELL $0 --fallback-echo"
672      else
673	# maybe with a smaller string...
674	prev=:
675
676	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678	  then
679	    break
680	  fi
681	  prev="$cmd"
682	done
683
684	if test "$prev" != 'sed 50q "$0"'; then
685	  echo_test_string=`eval $prev`
686	  export echo_test_string
687	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688	else
689	  # Oops.  We lost completely, so just stick with echo.
690	  echo=echo
691	fi
692      fi
693    fi
694  fi
695fi
696fi
697
698# Copy echo and quote the copy suitably for passing to libtool from
699# the Makefile, instead of quoting the original, which is used later.
700ECHO=$echo
701if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703fi
704
705
706
707
708tagnames=${tagnames+${tagnames},}CXX
709
710tagnames=${tagnames+${tagnames},}F77
711
712test -n "$DJDIR" || exec 7<&0 </dev/null
713exec 6>&1
714
715# Name of the host.
716# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
717# so uname gets run too.
718ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719
720#
721# Initializations.
722#
723ac_default_prefix=/usr/local
724ac_clean_files=
725ac_config_libobj_dir=.
726LIBOBJS=
727cross_compiling=no
728subdirs=
729MFLAGS=
730MAKEFLAGS=
731
732# Identity of this package.
733PACKAGE_NAME=
734PACKAGE_TARNAME=
735PACKAGE_VERSION=
736PACKAGE_STRING=
737PACKAGE_BUGREPORT=
738PACKAGE_URL=
739
740ac_unique_file="hercules.h"
741# Factoring default headers for most tests.
742ac_includes_default="\
743#include <stdio.h>
744#ifdef HAVE_SYS_TYPES_H
745# include <sys/types.h>
746#endif
747#ifdef HAVE_SYS_STAT_H
748# include <sys/stat.h>
749#endif
750#ifdef STDC_HEADERS
751# include <stdlib.h>
752# include <stddef.h>
753#else
754# ifdef HAVE_STDLIB_H
755#  include <stdlib.h>
756# endif
757#endif
758#ifdef HAVE_STRING_H
759# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760#  include <memory.h>
761# endif
762# include <string.h>
763#endif
764#ifdef HAVE_STRINGS_H
765# include <strings.h>
766#endif
767#ifdef HAVE_INTTYPES_H
768# include <inttypes.h>
769#endif
770#ifdef HAVE_STDINT_H
771# include <stdint.h>
772#endif
773#ifdef HAVE_UNISTD_H
774# include <unistd.h>
775#endif"
776
777ac_subst_vars='am__EXEEXT_FALSE
778am__EXEEXT_TRUE
779LTLIBOBJS
780LIBOBJS
781USE_DLLTOOL_FALSE
782USE_DLLTOOL_TRUE
783BUILD_SHARED_FALSE
784BUILD_SHARED_TRUE
785HERCIFC_GROUPNAME
786HERCIFC_GROUPSET_FALSE
787HERCIFC_GROUPSET_TRUE
788SETUID_HERCIFC_FALSE
789SETUID_HERCIFC_TRUE
790BUILD_HERCIFC_FALSE
791BUILD_HERCIFC_TRUE
792BUILD_FTHREADS_FALSE
793BUILD_FTHREADS_TRUE
794OPTION_DYNAMIC_LOAD_FALSE
795OPTION_DYNAMIC_LOAD_TRUE
796LIBTOOL_DEPS
797LIBADD_DL
798CONVENIENCE_LTDL_FALSE
799CONVENIENCE_LTDL_TRUE
800INSTALL_LTDL_FALSE
801INSTALL_LTDL_TRUE
802LIBTOOL
803ac_ct_F77
804FFLAGS
805F77
806CXXCPP
807am__fastdepCXX_FALSE
808am__fastdepCXX_TRUE
809CXXDEPMODE
810ac_ct_CXX
811CXXFLAGS
812CXX
813CPP
814OBJDUMP
815AS
816DLLTOOL
817RANLIB
818AR
819ECHO
820LN_S
821EGREP
822GREP
823modexecdir
824am__fastdepCC_FALSE
825am__fastdepCC_TRUE
826CCDEPMODE
827am__nodep
828AMDEPBACKSLASH
829AMDEP_FALSE
830AMDEP_TRUE
831am__quote
832am__include
833DEPDIR
834OBJEXT
835EXEEXT
836ac_ct_CC
837CPPFLAGS
838LDFLAGS
839CFLAGS
840CC
841AM_BACKSLASH
842AM_DEFAULT_VERBOSITY
843AM_DEFAULT_V
844AM_V
845host_os
846host_vendor
847host_cpu
848host
849build_os
850build_vendor
851build_cpu
852build
853MAINT
854MAINTAINER_MODE_FALSE
855MAINTAINER_MODE_TRUE
856am__untar
857am__tar
858AMTAR
859am__leading_dot
860SET_MAKE
861AWK
862mkdir_p
863MKDIR_P
864INSTALL_STRIP_PROGRAM
865STRIP
866install_sh
867MAKEINFO
868AUTOHEADER
869AUTOMAKE
870AUTOCONF
871ACLOCAL
872VERSION
873PACKAGE
874CYGPATH_W
875am__isrc
876INSTALL_DATA
877INSTALL_SCRIPT
878INSTALL_PROGRAM
879target_alias
880host_alias
881build_alias
882LIBS
883ECHO_T
884ECHO_N
885ECHO_C
886DEFS
887mandir
888localedir
889libdir
890psdir
891pdfdir
892dvidir
893htmldir
894infodir
895docdir
896oldincludedir
897includedir
898localstatedir
899sharedstatedir
900sysconfdir
901datadir
902datarootdir
903libexecdir
904sbindir
905bindir
906program_transform_name
907prefix
908exec_prefix
909PACKAGE_URL
910PACKAGE_BUGREPORT
911PACKAGE_STRING
912PACKAGE_VERSION
913PACKAGE_TARNAME
914PACKAGE_NAME
915PATH_SEPARATOR
916SHELL'
917ac_subst_files=''
918ac_user_opts='
919enable_option_checking
920enable_maintainer_mode
921enable_silent_rules
922enable_dependency_tracking
923enable_static
924enable_shared
925enable_fast_install
926with_gnu_ld
927enable_libtool_lock
928with_pic
929with_tags
930enable_ltdl_install
931enable_largefile
932enable_dynamic_load
933enable_cckd_bzip2
934enable_het_bzip2
935enable_debug
936enable_optimization
937enable_configsymbols
938enable_enhanced_configsymbols
939enable_enhanced_configincludes
940enable_automatic_operator
941enable_external_gui
942enable_fthreads
943enable_multi_cpu
944enable_capabilities
945enable_custom
946enable_setuid_hercifc
947enable_getoptwrapper
948'
949      ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955LIBS
956CPPFLAGS
957CPP
958CXX
959CXXFLAGS
960CCC
961CXXCPP
962F77
963FFLAGS'
964
965
966# Initialize some variables set by options.
967ac_init_help=
968ac_init_version=false
969ac_unrecognized_opts=
970ac_unrecognized_sep=
971# The variables have the same names as the options, with
972# dashes changed to underlines.
973cache_file=/dev/null
974exec_prefix=NONE
975no_create=
976no_recursion=
977prefix=NONE
978program_prefix=NONE
979program_suffix=NONE
980program_transform_name=s,x,x,
981silent=
982site=
983srcdir=
984verbose=
985x_includes=NONE
986x_libraries=NONE
987
988# Installation directory options.
989# These are left unexpanded so users can "make install exec_prefix=/foo"
990# and all the variables that are supposed to be based on exec_prefix
991# by default will actually change.
992# Use braces instead of parens because sh, perl, etc. also accept them.
993# (The list follows the same order as the GNU Coding Standards.)
994bindir='${exec_prefix}/bin'
995sbindir='${exec_prefix}/sbin'
996libexecdir='${exec_prefix}/libexec'
997datarootdir='${prefix}/share'
998datadir='${datarootdir}'
999sysconfdir='${prefix}/etc'
1000sharedstatedir='${prefix}/com'
1001localstatedir='${prefix}/var'
1002includedir='${prefix}/include'
1003oldincludedir='/usr/include'
1004docdir='${datarootdir}/doc/${PACKAGE}'
1005infodir='${datarootdir}/info'
1006htmldir='${docdir}'
1007dvidir='${docdir}'
1008pdfdir='${docdir}'
1009psdir='${docdir}'
1010libdir='${exec_prefix}/lib'
1011localedir='${datarootdir}/locale'
1012mandir='${datarootdir}/man'
1013
1014ac_prev=
1015ac_dashdash=
1016for ac_option
1017do
1018  # If the previous option needs an argument, assign it.
1019  if test -n "$ac_prev"; then
1020    eval $ac_prev=\$ac_option
1021    ac_prev=
1022    continue
1023  fi
1024
1025  case $ac_option in
1026  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027  *=)   ac_optarg= ;;
1028  *)    ac_optarg=yes ;;
1029  esac
1030
1031  # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033  case $ac_dashdash$ac_option in
1034  --)
1035    ac_dashdash=yes ;;
1036
1037  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038    ac_prev=bindir ;;
1039  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040    bindir=$ac_optarg ;;
1041
1042  -build | --build | --buil | --bui | --bu)
1043    ac_prev=build_alias ;;
1044  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045    build_alias=$ac_optarg ;;
1046
1047  -cache-file | --cache-file | --cache-fil | --cache-fi \
1048  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049    ac_prev=cache_file ;;
1050  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052    cache_file=$ac_optarg ;;
1053
1054  --config-cache | -C)
1055    cache_file=config.cache ;;
1056
1057  -datadir | --datadir | --datadi | --datad)
1058    ac_prev=datadir ;;
1059  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060    datadir=$ac_optarg ;;
1061
1062  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063  | --dataroo | --dataro | --datar)
1064    ac_prev=datarootdir ;;
1065  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067    datarootdir=$ac_optarg ;;
1068
1069  -disable-* | --disable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: $ac_useropt"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=no ;;
1084
1085  -docdir | --docdir | --docdi | --doc | --do)
1086    ac_prev=docdir ;;
1087  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088    docdir=$ac_optarg ;;
1089
1090  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091    ac_prev=dvidir ;;
1092  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093    dvidir=$ac_optarg ;;
1094
1095  -enable-* | --enable-*)
1096    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097    # Reject names that are not valid shell variable names.
1098    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099      as_fn_error $? "invalid feature name: $ac_useropt"
1100    ac_useropt_orig=$ac_useropt
1101    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102    case $ac_user_opts in
1103      *"
1104"enable_$ac_useropt"
1105"*) ;;
1106      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107	 ac_unrecognized_sep=', ';;
1108    esac
1109    eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113  | --exec | --exe | --ex)
1114    ac_prev=exec_prefix ;;
1115  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117  | --exec=* | --exe=* | --ex=*)
1118    exec_prefix=$ac_optarg ;;
1119
1120  -gas | --gas | --ga | --g)
1121    # Obsolete; use --with-gas.
1122    with_gas=yes ;;
1123
1124  -help | --help | --hel | --he | -h)
1125    ac_init_help=long ;;
1126  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127    ac_init_help=recursive ;;
1128  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129    ac_init_help=short ;;
1130
1131  -host | --host | --hos | --ho)
1132    ac_prev=host_alias ;;
1133  -host=* | --host=* | --hos=* | --ho=*)
1134    host_alias=$ac_optarg ;;
1135
1136  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137    ac_prev=htmldir ;;
1138  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139  | --ht=*)
1140    htmldir=$ac_optarg ;;
1141
1142  -includedir | --includedir | --includedi | --included | --include \
1143  | --includ | --inclu | --incl | --inc)
1144    ac_prev=includedir ;;
1145  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146  | --includ=* | --inclu=* | --incl=* | --inc=*)
1147    includedir=$ac_optarg ;;
1148
1149  -infodir | --infodir | --infodi | --infod | --info | --inf)
1150    ac_prev=infodir ;;
1151  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152    infodir=$ac_optarg ;;
1153
1154  -libdir | --libdir | --libdi | --libd)
1155    ac_prev=libdir ;;
1156  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157    libdir=$ac_optarg ;;
1158
1159  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160  | --libexe | --libex | --libe)
1161    ac_prev=libexecdir ;;
1162  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163  | --libexe=* | --libex=* | --libe=*)
1164    libexecdir=$ac_optarg ;;
1165
1166  -localedir | --localedir | --localedi | --localed | --locale)
1167    ac_prev=localedir ;;
1168  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169    localedir=$ac_optarg ;;
1170
1171  -localstatedir | --localstatedir | --localstatedi | --localstated \
1172  | --localstate | --localstat | --localsta | --localst | --locals)
1173    ac_prev=localstatedir ;;
1174  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176    localstatedir=$ac_optarg ;;
1177
1178  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179    ac_prev=mandir ;;
1180  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181    mandir=$ac_optarg ;;
1182
1183  -nfp | --nfp | --nf)
1184    # Obsolete; use --without-fp.
1185    with_fp=no ;;
1186
1187  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188  | --no-cr | --no-c | -n)
1189    no_create=yes ;;
1190
1191  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193    no_recursion=yes ;;
1194
1195  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197  | --oldin | --oldi | --old | --ol | --o)
1198    ac_prev=oldincludedir ;;
1199  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202    oldincludedir=$ac_optarg ;;
1203
1204  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205    ac_prev=prefix ;;
1206  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207    prefix=$ac_optarg ;;
1208
1209  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210  | --program-pre | --program-pr | --program-p)
1211    ac_prev=program_prefix ;;
1212  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214    program_prefix=$ac_optarg ;;
1215
1216  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217  | --program-suf | --program-su | --program-s)
1218    ac_prev=program_suffix ;;
1219  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221    program_suffix=$ac_optarg ;;
1222
1223  -program-transform-name | --program-transform-name \
1224  | --program-transform-nam | --program-transform-na \
1225  | --program-transform-n | --program-transform- \
1226  | --program-transform | --program-transfor \
1227  | --program-transfo | --program-transf \
1228  | --program-trans | --program-tran \
1229  | --progr-tra | --program-tr | --program-t)
1230    ac_prev=program_transform_name ;;
1231  -program-transform-name=* | --program-transform-name=* \
1232  | --program-transform-nam=* | --program-transform-na=* \
1233  | --program-transform-n=* | --program-transform-=* \
1234  | --program-transform=* | --program-transfor=* \
1235  | --program-transfo=* | --program-transf=* \
1236  | --program-trans=* | --program-tran=* \
1237  | --progr-tra=* | --program-tr=* | --program-t=*)
1238    program_transform_name=$ac_optarg ;;
1239
1240  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241    ac_prev=pdfdir ;;
1242  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243    pdfdir=$ac_optarg ;;
1244
1245  -psdir | --psdir | --psdi | --psd | --ps)
1246    ac_prev=psdir ;;
1247  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248    psdir=$ac_optarg ;;
1249
1250  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251  | -silent | --silent | --silen | --sile | --sil)
1252    silent=yes ;;
1253
1254  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255    ac_prev=sbindir ;;
1256  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257  | --sbi=* | --sb=*)
1258    sbindir=$ac_optarg ;;
1259
1260  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262  | --sharedst | --shareds | --shared | --share | --shar \
1263  | --sha | --sh)
1264    ac_prev=sharedstatedir ;;
1265  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268  | --sha=* | --sh=*)
1269    sharedstatedir=$ac_optarg ;;
1270
1271  -site | --site | --sit)
1272    ac_prev=site ;;
1273  -site=* | --site=* | --sit=*)
1274    site=$ac_optarg ;;
1275
1276  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277    ac_prev=srcdir ;;
1278  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279    srcdir=$ac_optarg ;;
1280
1281  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282  | --syscon | --sysco | --sysc | --sys | --sy)
1283    ac_prev=sysconfdir ;;
1284  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286    sysconfdir=$ac_optarg ;;
1287
1288  -target | --target | --targe | --targ | --tar | --ta | --t)
1289    ac_prev=target_alias ;;
1290  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291    target_alias=$ac_optarg ;;
1292
1293  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294    verbose=yes ;;
1295
1296  -version | --version | --versio | --versi | --vers | -V)
1297    ac_init_version=: ;;
1298
1299  -with-* | --with-*)
1300    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301    # Reject names that are not valid shell variable names.
1302    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303      as_fn_error $? "invalid package name: $ac_useropt"
1304    ac_useropt_orig=$ac_useropt
1305    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306    case $ac_user_opts in
1307      *"
1308"with_$ac_useropt"
1309"*) ;;
1310      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311	 ac_unrecognized_sep=', ';;
1312    esac
1313    eval with_$ac_useropt=\$ac_optarg ;;
1314
1315  -without-* | --without-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      as_fn_error $? "invalid package name: $ac_useropt"
1320    ac_useropt_orig=$ac_useropt
1321    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322    case $ac_user_opts in
1323      *"
1324"with_$ac_useropt"
1325"*) ;;
1326      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327	 ac_unrecognized_sep=', ';;
1328    esac
1329    eval with_$ac_useropt=no ;;
1330
1331  --x)
1332    # Obsolete; use --with-x.
1333    with_x=yes ;;
1334
1335  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336  | --x-incl | --x-inc | --x-in | --x-i)
1337    ac_prev=x_includes ;;
1338  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340    x_includes=$ac_optarg ;;
1341
1342  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344    ac_prev=x_libraries ;;
1345  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347    x_libraries=$ac_optarg ;;
1348
1349  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350Try \`$0 --help' for more information"
1351    ;;
1352
1353  *=*)
1354    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355    # Reject names that are not valid shell variable names.
1356    case $ac_envvar in #(
1357      '' | [0-9]* | *[!_$as_cr_alnum]* )
1358      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359    esac
1360    eval $ac_envvar=\$ac_optarg
1361    export $ac_envvar ;;
1362
1363  *)
1364    # FIXME: should be removed in autoconf 3.0.
1365    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369    ;;
1370
1371  esac
1372done
1373
1374if test -n "$ac_prev"; then
1375  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376  as_fn_error $? "missing argument to $ac_option"
1377fi
1378
1379if test -n "$ac_unrecognized_opts"; then
1380  case $enable_option_checking in
1381    no) ;;
1382    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1406done
1407
1408# There might be people who depend on the old broken behavior: `$host'
1409# used to hold the argument of --host etc.
1410# FIXME: To remove some day.
1411build=$build_alias
1412host=$host_alias
1413target=$target_alias
1414
1415# FIXME: To remove some day.
1416if test "x$host_alias" != x; then
1417  if test "x$build_alias" = x; then
1418    cross_compiling=maybe
1419  elif test "x$build_alias" != "x$host_alias"; then
1420    cross_compiling=yes
1421  fi
1422fi
1423
1424ac_tool_prefix=
1425test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427test "$silent" = yes && exec 6>/dev/null
1428
1429
1430ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431ac_ls_di=`ls -di .` &&
1432ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433  as_fn_error $? "working directory cannot be determined"
1434test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435  as_fn_error $? "pwd does not report name of working directory"
1436
1437
1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440  ac_srcdir_defaulted=yes
1441  # Try the directory containing this script, then the parent directory.
1442  ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444	 X"$as_myself" : 'X\(//\)[^/]' \| \
1445	 X"$as_myself" : 'X\(//\)$' \| \
1446	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447$as_echo X"$as_myself" |
1448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)[^/].*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\).*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  s/.*/./; q'`
1465  srcdir=$ac_confdir
1466  if test ! -r "$srcdir/$ac_unique_file"; then
1467    srcdir=..
1468  fi
1469else
1470  ac_srcdir_defaulted=no
1471fi
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1475fi
1476ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477ac_abs_confdir=`(
1478	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479	pwd)`
1480# When building in place, set srcdir=.
1481if test "$ac_abs_confdir" = "$ac_pwd"; then
1482  srcdir=.
1483fi
1484# Remove unnecessary trailing slashes from srcdir.
1485# Double slashes in file names in object file debugging info
1486# mess up M-x gdb in Emacs.
1487case $srcdir in
1488*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489esac
1490for ac_var in $ac_precious_vars; do
1491  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_env_${ac_var}_value=\$${ac_var}
1493  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495done
1496
1497#
1498# Report the --help message.
1499#
1500if test "$ac_init_help" = "long"; then
1501  # Omit some internal or obsolete options to make the list less imposing.
1502  # This message is too long to be a string in the A/UX 3.1 sh.
1503  cat <<_ACEOF
1504\`configure' configures this package to adapt to many kinds of systems.
1505
1506Usage: $0 [OPTION]... [VAR=VALUE]...
1507
1508To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509VAR=VALUE.  See below for descriptions of some of the useful variables.
1510
1511Defaults for the options are specified in brackets.
1512
1513Configuration:
1514  -h, --help              display this help and exit
1515      --help=short        display options specific to this package
1516      --help=recursive    display the short help of all the included packages
1517  -V, --version           display version information and exit
1518  -q, --quiet, --silent   do not print \`checking ...' messages
1519      --cache-file=FILE   cache test results in FILE [disabled]
1520  -C, --config-cache      alias for \`--cache-file=config.cache'
1521  -n, --no-create         do not create output files
1522      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1523
1524Installation directories:
1525  --prefix=PREFIX         install architecture-independent files in PREFIX
1526                          [$ac_default_prefix]
1527  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1528                          [PREFIX]
1529
1530By default, \`make install' will install all the files in
1531\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1532an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533for instance \`--prefix=\$HOME'.
1534
1535For better control, use the options below.
1536
1537Fine tuning of the installation directories:
1538  --bindir=DIR            user executables [EPREFIX/bin]
1539  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1540  --libexecdir=DIR        program executables [EPREFIX/libexec]
1541  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1542  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1543  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1544  --libdir=DIR            object code libraries [EPREFIX/lib]
1545  --includedir=DIR        C header files [PREFIX/include]
1546  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1547  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1548  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1549  --infodir=DIR           info documentation [DATAROOTDIR/info]
1550  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1551  --mandir=DIR            man documentation [DATAROOTDIR/man]
1552  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1553  --htmldir=DIR           html documentation [DOCDIR]
1554  --dvidir=DIR            dvi documentation [DOCDIR]
1555  --pdfdir=DIR            pdf documentation [DOCDIR]
1556  --psdir=DIR             ps documentation [DOCDIR]
1557_ACEOF
1558
1559  cat <<\_ACEOF
1560
1561Program names:
1562  --program-prefix=PREFIX            prepend PREFIX to installed program names
1563  --program-suffix=SUFFIX            append SUFFIX to installed program names
1564  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1565
1566System types:
1567  --build=BUILD     configure for building on BUILD [guessed]
1568  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1569_ACEOF
1570fi
1571
1572if test -n "$ac_init_help"; then
1573
1574  cat <<\_ACEOF
1575
1576Optional Features:
1577  --disable-option-checking  ignore unrecognized --enable/--with options
1578  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1579  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1580  --enable-maintainer-mode
1581                          enable make rules and dependencies not useful (and
1582                          sometimes confusing) to the casual installer
1583  --enable-silent-rules   less verbose build output (undo: "make V=1")
1584  --disable-silent-rules  verbose build output (undo: "make V=0")
1585  --enable-dependency-tracking
1586                          do not reject slow dependency extractors
1587  --disable-dependency-tracking
1588                          speeds up one-time build
1589  --enable-static[=PKGS]  build static libraries [default=no]
1590  --enable-shared[=PKGS]  build shared libraries [default=yes]
1591  --enable-fast-install[=PKGS]
1592                          optimize for fast installation [default=yes]
1593  --disable-libtool-lock  avoid locking (might break parallel builds)
1594  --enable-ltdl-install   install libltdl
1595  --disable-largefile     omit support for large files
1596  --disable-dynamic-load  disable dynamic loader option
1597  --enable-cckd-bzip2     enable bzip2 compression for emulated dasd
1598  --enable-het-bzip2      enable bzip2 compression for emulated tapes
1599  --enable-debug          enable debugging (TRACE/VERIFY/ASSERT macros)
1600  --enable-optimization=yes|no|FLAGS
1601                          enable automatic optimization, or specify flags
1602  --disable-configsymbols disable symbolic substitutions in configuration file
1603  --disable-enhanced-configsymbols
1604                          disable enhanced-mode symbolic substitutions in
1605                          configuration file
1606  --disable-enhanced-configincludes
1607                          disable enhanced-mode 'include' file support in
1608                          configuration file
1609  --disable-automatic-operator
1610                          disable Hercules Automatic Operator feature
1611  --disable-external-gui  disable external GUI interface
1612  --disable-fthreads      disable use of fish threads instead of posix threads
1613  --enable-multi-cpu=yes|no|NUMBER
1614                          enable/disable multi-cpu support (1-128, default 8)
1615  --disable-capabilities  disable fine grained privileges
1616  --enable-custom=STRING  provide a custom description for this build
1617  --enable-setuid-hercifc=yes|no|GROUPNAME
1618                          install hercifc as setuid root, and allow execution
1619                          by users in group GROUPNAME
1620  --enable-getoptwrapper  force use of the getopt wrapper kludge
1621
1622Optional Packages:
1623  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1624  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1625  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1626  --with-pic              try to use only PIC/non-PIC objects [default=use
1627                          both]
1628  --with-tags[=TAGS]      include additional configurations [automatic]
1629
1630Some influential environment variables:
1631  CC          C compiler command
1632  CFLAGS      C compiler flags
1633  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1634              nonstandard directory <lib dir>
1635  LIBS        libraries to pass to the linker, e.g. -l<library>
1636  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1637              you have headers in a nonstandard directory <include dir>
1638  CPP         C preprocessor
1639  CXX         C++ compiler command
1640  CXXFLAGS    C++ compiler flags
1641  CXXCPP      C++ preprocessor
1642  F77         Fortran 77 compiler command
1643  FFLAGS      Fortran 77 compiler flags
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648Report bugs to the package provider.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654  # If there are subdirs, report their specific --help.
1655  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656    test -d "$ac_dir" ||
1657      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658      continue
1659    ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665  # A ".." for each directory in $ac_dir_suffix.
1666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667  case $ac_top_builddir_sub in
1668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670  esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678  .)  # We are building in place.
1679    ac_srcdir=.
1680    ac_top_srcdir=$ac_top_builddir_sub
1681    ac_abs_top_srcdir=$ac_pwd ;;
1682  [\\/]* | ?:[\\/]* )  # Absolute name.
1683    ac_srcdir=$srcdir$ac_dir_suffix;
1684    ac_top_srcdir=$srcdir
1685    ac_abs_top_srcdir=$srcdir ;;
1686  *) # Relative name.
1687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688    ac_top_srcdir=$ac_top_build_prefix$srcdir
1689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693    cd "$ac_dir" || { ac_status=$?; continue; }
1694    # Check for guested configure.
1695    if test -f "$ac_srcdir/configure.gnu"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698    elif test -f "$ac_srcdir/configure"; then
1699      echo &&
1700      $SHELL "$ac_srcdir/configure" --help=recursive
1701    else
1702      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703    fi || ac_status=$?
1704    cd "$ac_pwd" || { ac_status=$?; break; }
1705  done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710  cat <<\_ACEOF
1711configure
1712generated by GNU Autoconf 2.69
1713
1714Copyright (C) 2012 Free Software Foundation, Inc.
1715This configure script is free software; the Free Software Foundation
1716gives unlimited permission to copy, distribute and modify it.
1717_ACEOF
1718  exit
1719fi
1720
1721## ------------------------ ##
1722## Autoconf initialization. ##
1723## ------------------------ ##
1724
1725# ac_fn_c_try_compile LINENO
1726# --------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext
1732  if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_compile") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest.$ac_objext; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  rm -f conftest.$ac_objext conftest$ac_exeext
1770  if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777  (eval "$ac_link") 2>conftest.err
1778  ac_status=$?
1779  if test -s conftest.err; then
1780    grep -v '^ *+' conftest.err >conftest.er1
1781    cat conftest.er1 >&5
1782    mv -f conftest.er1 conftest.err
1783  fi
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && {
1786	 test -z "$ac_c_werror_flag" ||
1787	 test ! -s conftest.err
1788       } && test -s conftest$ac_exeext && {
1789	 test "$cross_compiling" = yes ||
1790	 test -x conftest$ac_exeext
1791       }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797	ac_retval=1
1798fi
1799  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801  # interfere with the next link command; also delete a directory that is
1802  # left behind by Apple's compiler.  We do this before executing the actions.
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_link
1808
1809# ac_fn_c_try_cpp LINENO
1810# ----------------------
1811# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_cpp ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  if { { ac_try="$ac_cpp conftest.$ac_ext"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } > conftest.i && {
1831	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832	 test ! -s conftest.err
1833       }; then :
1834  ac_retval=0
1835else
1836  $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839    ac_retval=1
1840fi
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_c_try_cpp
1845
1846# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847# -------------------------------------------------------
1848# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849# the include files in INCLUDES and setting the cache variable VAR
1850# accordingly.
1851ac_fn_c_check_header_mongrel ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  if eval \${$3+:} false; then :
1855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if eval \${$3+:} false; then :
1858  $as_echo_n "(cached) " >&6
1859fi
1860eval ac_res=\$$3
1861	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863else
1864  # Is the header compilable?
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866$as_echo_n "checking $2 usability... " >&6; }
1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869$4
1870#include <$2>
1871_ACEOF
1872if ac_fn_c_try_compile "$LINENO"; then :
1873  ac_header_compiler=yes
1874else
1875  ac_header_compiler=no
1876fi
1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879$as_echo "$ac_header_compiler" >&6; }
1880
1881# Is the header present?
1882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883$as_echo_n "checking $2 presence... " >&6; }
1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886#include <$2>
1887_ACEOF
1888if ac_fn_c_try_cpp "$LINENO"; then :
1889  ac_header_preproc=yes
1890else
1891  ac_header_preproc=no
1892fi
1893rm -f conftest.err conftest.i conftest.$ac_ext
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895$as_echo "$ac_header_preproc" >&6; }
1896
1897# So?  What about this header?
1898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899  yes:no: )
1900    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904    ;;
1905  no:yes:* )
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1909$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1913$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1914    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916    ;;
1917esac
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  eval "$3=\$ac_header_compiler"
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928fi
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_header_mongrel
1932
1933# ac_fn_c_try_run LINENO
1934# ----------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936# that executables *can* be run.
1937ac_fn_c_try_run ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_link") 2>&5
1948  ac_status=$?
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951  { { case "(($ac_try" in
1952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953  *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957  (eval "$ac_try") 2>&5
1958  ac_status=$?
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; }; }; then :
1961  ac_retval=0
1962else
1963  $as_echo "$as_me: program exited with status $ac_status" >&5
1964       $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967       ac_retval=$ac_status
1968fi
1969  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971  as_fn_set_status $ac_retval
1972
1973} # ac_fn_c_try_run
1974
1975# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists and can be compiled using the include files in
1978# INCLUDES, setting the cache variable VAR accordingly.
1979ac_fn_c_check_header_compile ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  eval "$3=yes"
1994else
1995  eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_c_check_header_compile
2005
2006# ac_fn_c_check_func LINENO FUNC VAR
2007# ----------------------------------
2008# Tests whether FUNC exists, setting the cache variable VAR accordingly
2009ac_fn_c_check_func ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015  $as_echo_n "(cached) " >&6
2016else
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2021#define $2 innocuous_$2
2022
2023/* System header to define __stub macros and hopefully few prototypes,
2024    which can conflict with char $2 (); below.
2025    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026    <limits.h> exists even on freestanding compilers.  */
2027
2028#ifdef __STDC__
2029# include <limits.h>
2030#else
2031# include <assert.h>
2032#endif
2033
2034#undef $2
2035
2036/* Override any GCC internal prototype to avoid an error.
2037   Use char because int might match the return type of a GCC
2038   builtin and then its argument prototype would still apply.  */
2039#ifdef __cplusplus
2040extern "C"
2041#endif
2042char $2 ();
2043/* The GNU C library defines this for functions which it implements
2044    to always fail with ENOSYS.  Some functions are actually named
2045    something starting with __ and the normal name is an alias.  */
2046#if defined __stub_$2 || defined __stub___$2
2047choke me
2048#endif
2049
2050int
2051main ()
2052{
2053return $2 ();
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_link "$LINENO"; then :
2059  eval "$3=yes"
2060else
2061  eval "$3=no"
2062fi
2063rm -f core conftest.err conftest.$ac_objext \
2064    conftest$ac_exeext conftest.$ac_ext
2065fi
2066eval ac_res=\$$3
2067	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068$as_echo "$ac_res" >&6; }
2069  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071} # ac_fn_c_check_func
2072
2073# ac_fn_cxx_try_compile LINENO
2074# ----------------------------
2075# Try to compile conftest.$ac_ext, and return whether this succeeded.
2076ac_fn_cxx_try_compile ()
2077{
2078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079  rm -f conftest.$ac_objext
2080  if { { ac_try="$ac_compile"
2081case "(($ac_try" in
2082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083  *) ac_try_echo=$ac_try;;
2084esac
2085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086$as_echo "$ac_try_echo"; } >&5
2087  (eval "$ac_compile") 2>conftest.err
2088  ac_status=$?
2089  if test -s conftest.err; then
2090    grep -v '^ *+' conftest.err >conftest.er1
2091    cat conftest.er1 >&5
2092    mv -f conftest.er1 conftest.err
2093  fi
2094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095  test $ac_status = 0; } && {
2096	 test -z "$ac_cxx_werror_flag" ||
2097	 test ! -s conftest.err
2098       } && test -s conftest.$ac_objext; then :
2099  ac_retval=0
2100else
2101  $as_echo "$as_me: failed program was:" >&5
2102sed 's/^/| /' conftest.$ac_ext >&5
2103
2104	ac_retval=1
2105fi
2106  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107  as_fn_set_status $ac_retval
2108
2109} # ac_fn_cxx_try_compile
2110
2111# ac_fn_cxx_try_cpp LINENO
2112# ------------------------
2113# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2114ac_fn_cxx_try_cpp ()
2115{
2116  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117  if { { ac_try="$ac_cpp conftest.$ac_ext"
2118case "(($ac_try" in
2119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120  *) ac_try_echo=$ac_try;;
2121esac
2122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123$as_echo "$ac_try_echo"; } >&5
2124  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2125  ac_status=$?
2126  if test -s conftest.err; then
2127    grep -v '^ *+' conftest.err >conftest.er1
2128    cat conftest.er1 >&5
2129    mv -f conftest.er1 conftest.err
2130  fi
2131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132  test $ac_status = 0; } > conftest.i && {
2133	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2134	 test ! -s conftest.err
2135       }; then :
2136  ac_retval=0
2137else
2138  $as_echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141    ac_retval=1
2142fi
2143  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144  as_fn_set_status $ac_retval
2145
2146} # ac_fn_cxx_try_cpp
2147
2148# ac_fn_cxx_try_link LINENO
2149# -------------------------
2150# Try to link conftest.$ac_ext, and return whether this succeeded.
2151ac_fn_cxx_try_link ()
2152{
2153  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154  rm -f conftest.$ac_objext conftest$ac_exeext
2155  if { { ac_try="$ac_link"
2156case "(($ac_try" in
2157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158  *) ac_try_echo=$ac_try;;
2159esac
2160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161$as_echo "$ac_try_echo"; } >&5
2162  (eval "$ac_link") 2>conftest.err
2163  ac_status=$?
2164  if test -s conftest.err; then
2165    grep -v '^ *+' conftest.err >conftest.er1
2166    cat conftest.er1 >&5
2167    mv -f conftest.er1 conftest.err
2168  fi
2169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170  test $ac_status = 0; } && {
2171	 test -z "$ac_cxx_werror_flag" ||
2172	 test ! -s conftest.err
2173       } && test -s conftest$ac_exeext && {
2174	 test "$cross_compiling" = yes ||
2175	 test -x conftest$ac_exeext
2176       }; then :
2177  ac_retval=0
2178else
2179  $as_echo "$as_me: failed program was:" >&5
2180sed 's/^/| /' conftest.$ac_ext >&5
2181
2182	ac_retval=1
2183fi
2184  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2185  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2186  # interfere with the next link command; also delete a directory that is
2187  # left behind by Apple's compiler.  We do this before executing the actions.
2188  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2189  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190  as_fn_set_status $ac_retval
2191
2192} # ac_fn_cxx_try_link
2193
2194# ac_fn_cxx_check_func LINENO FUNC VAR
2195# ------------------------------------
2196# Tests whether FUNC exists, setting the cache variable VAR accordingly
2197ac_fn_cxx_check_func ()
2198{
2199  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201$as_echo_n "checking for $2... " >&6; }
2202if eval \${$3+:} false; then :
2203  $as_echo_n "(cached) " >&6
2204else
2205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h.  */
2207/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2208   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2209#define $2 innocuous_$2
2210
2211/* System header to define __stub macros and hopefully few prototypes,
2212    which can conflict with char $2 (); below.
2213    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2214    <limits.h> exists even on freestanding compilers.  */
2215
2216#ifdef __STDC__
2217# include <limits.h>
2218#else
2219# include <assert.h>
2220#endif
2221
2222#undef $2
2223
2224/* Override any GCC internal prototype to avoid an error.
2225   Use char because int might match the return type of a GCC
2226   builtin and then its argument prototype would still apply.  */
2227#ifdef __cplusplus
2228extern "C"
2229#endif
2230char $2 ();
2231/* The GNU C library defines this for functions which it implements
2232    to always fail with ENOSYS.  Some functions are actually named
2233    something starting with __ and the normal name is an alias.  */
2234#if defined __stub_$2 || defined __stub___$2
2235choke me
2236#endif
2237
2238int
2239main ()
2240{
2241return $2 ();
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_cxx_try_link "$LINENO"; then :
2247  eval "$3=yes"
2248else
2249  eval "$3=no"
2250fi
2251rm -f core conftest.err conftest.$ac_objext \
2252    conftest$ac_exeext conftest.$ac_ext
2253fi
2254eval ac_res=\$$3
2255	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256$as_echo "$ac_res" >&6; }
2257  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259} # ac_fn_cxx_check_func
2260
2261# ac_fn_f77_try_compile LINENO
2262# ----------------------------
2263# Try to compile conftest.$ac_ext, and return whether this succeeded.
2264ac_fn_f77_try_compile ()
2265{
2266  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267  rm -f conftest.$ac_objext
2268  if { { ac_try="$ac_compile"
2269case "(($ac_try" in
2270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271  *) ac_try_echo=$ac_try;;
2272esac
2273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274$as_echo "$ac_try_echo"; } >&5
2275  (eval "$ac_compile") 2>conftest.err
2276  ac_status=$?
2277  if test -s conftest.err; then
2278    grep -v '^ *+' conftest.err >conftest.er1
2279    cat conftest.er1 >&5
2280    mv -f conftest.er1 conftest.err
2281  fi
2282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283  test $ac_status = 0; } && {
2284	 test -z "$ac_f77_werror_flag" ||
2285	 test ! -s conftest.err
2286       } && test -s conftest.$ac_objext; then :
2287  ac_retval=0
2288else
2289  $as_echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292	ac_retval=1
2293fi
2294  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295  as_fn_set_status $ac_retval
2296
2297} # ac_fn_f77_try_compile
2298
2299# ac_fn_f77_try_link LINENO
2300# -------------------------
2301# Try to link conftest.$ac_ext, and return whether this succeeded.
2302ac_fn_f77_try_link ()
2303{
2304  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305  rm -f conftest.$ac_objext conftest$ac_exeext
2306  if { { ac_try="$ac_link"
2307case "(($ac_try" in
2308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309  *) ac_try_echo=$ac_try;;
2310esac
2311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312$as_echo "$ac_try_echo"; } >&5
2313  (eval "$ac_link") 2>conftest.err
2314  ac_status=$?
2315  if test -s conftest.err; then
2316    grep -v '^ *+' conftest.err >conftest.er1
2317    cat conftest.er1 >&5
2318    mv -f conftest.er1 conftest.err
2319  fi
2320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321  test $ac_status = 0; } && {
2322	 test -z "$ac_f77_werror_flag" ||
2323	 test ! -s conftest.err
2324       } && test -s conftest$ac_exeext && {
2325	 test "$cross_compiling" = yes ||
2326	 test -x conftest$ac_exeext
2327       }; then :
2328  ac_retval=0
2329else
2330  $as_echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333	ac_retval=1
2334fi
2335  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2336  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2337  # interfere with the next link command; also delete a directory that is
2338  # left behind by Apple's compiler.  We do this before executing the actions.
2339  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2340  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341  as_fn_set_status $ac_retval
2342
2343} # ac_fn_f77_try_link
2344
2345# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2346# -------------------------------------------
2347# Tests whether TYPE exists after having included INCLUDES, setting cache
2348# variable VAR accordingly.
2349ac_fn_c_check_type ()
2350{
2351  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2353$as_echo_n "checking for $2... " >&6; }
2354if eval \${$3+:} false; then :
2355  $as_echo_n "(cached) " >&6
2356else
2357  eval "$3=no"
2358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h.  */
2360$4
2361int
2362main ()
2363{
2364if (sizeof ($2))
2365	 return 0;
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"; then :
2371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h.  */
2373$4
2374int
2375main ()
2376{
2377if (sizeof (($2)))
2378	    return 0;
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383if ac_fn_c_try_compile "$LINENO"; then :
2384
2385else
2386  eval "$3=yes"
2387fi
2388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389fi
2390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391fi
2392eval ac_res=\$$3
2393	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394$as_echo "$ac_res" >&6; }
2395  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2396
2397} # ac_fn_c_check_type
2398
2399# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2400# ---------------------------------------------
2401# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2402# accordingly.
2403ac_fn_c_check_decl ()
2404{
2405  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406  as_decl_name=`echo $2|sed 's/ *(.*//'`
2407  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2409$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2410if eval \${$3+:} false; then :
2411  $as_echo_n "(cached) " >&6
2412else
2413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h.  */
2415$4
2416int
2417main ()
2418{
2419#ifndef $as_decl_name
2420#ifdef __cplusplus
2421  (void) $as_decl_use;
2422#else
2423  (void) $as_decl_name;
2424#endif
2425#endif
2426
2427  ;
2428  return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_compile "$LINENO"; then :
2432  eval "$3=yes"
2433else
2434  eval "$3=no"
2435fi
2436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437fi
2438eval ac_res=\$$3
2439	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440$as_echo "$ac_res" >&6; }
2441  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442
2443} # ac_fn_c_check_decl
2444
2445# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2446# ----------------------------------------------------
2447# Tries to find if the field MEMBER exists in type AGGR, after including
2448# INCLUDES, setting cache variable VAR accordingly.
2449ac_fn_c_check_member ()
2450{
2451  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2453$as_echo_n "checking for $2.$3... " >&6; }
2454if eval \${$4+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458/* end confdefs.h.  */
2459$5
2460int
2461main ()
2462{
2463static $2 ac_aggr;
2464if (ac_aggr.$3)
2465return 0;
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471  eval "$4=yes"
2472else
2473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h.  */
2475$5
2476int
2477main ()
2478{
2479static $2 ac_aggr;
2480if (sizeof ac_aggr.$3)
2481return 0;
2482  ;
2483  return 0;
2484}
2485_ACEOF
2486if ac_fn_c_try_compile "$LINENO"; then :
2487  eval "$4=yes"
2488else
2489  eval "$4=no"
2490fi
2491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495eval ac_res=\$$4
2496	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497$as_echo "$ac_res" >&6; }
2498  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499
2500} # ac_fn_c_check_member
2501
2502# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2503# --------------------------------------------
2504# Tries to find the compile-time value of EXPR in a program that includes
2505# INCLUDES, setting VAR accordingly. Returns whether the value could be
2506# computed
2507ac_fn_c_compute_int ()
2508{
2509  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510  if test "$cross_compiling" = yes; then
2511    # Depending upon the size, compute the lo and hi bounds.
2512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513/* end confdefs.h.  */
2514$4
2515int
2516main ()
2517{
2518static int test_array [1 - 2 * !(($2) >= 0)];
2519test_array [0] = 0;
2520return test_array [0];
2521
2522  ;
2523  return 0;
2524}
2525_ACEOF
2526if ac_fn_c_try_compile "$LINENO"; then :
2527  ac_lo=0 ac_mid=0
2528  while :; do
2529    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530/* end confdefs.h.  */
2531$4
2532int
2533main ()
2534{
2535static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2536test_array [0] = 0;
2537return test_array [0];
2538
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543if ac_fn_c_try_compile "$LINENO"; then :
2544  ac_hi=$ac_mid; break
2545else
2546  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2547			if test $ac_lo -le $ac_mid; then
2548			  ac_lo= ac_hi=
2549			  break
2550			fi
2551			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2552fi
2553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554  done
2555else
2556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h.  */
2558$4
2559int
2560main ()
2561{
2562static int test_array [1 - 2 * !(($2) < 0)];
2563test_array [0] = 0;
2564return test_array [0];
2565
2566  ;
2567  return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_compile "$LINENO"; then :
2571  ac_hi=-1 ac_mid=-1
2572  while :; do
2573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574/* end confdefs.h.  */
2575$4
2576int
2577main ()
2578{
2579static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2580test_array [0] = 0;
2581return test_array [0];
2582
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587if ac_fn_c_try_compile "$LINENO"; then :
2588  ac_lo=$ac_mid; break
2589else
2590  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2591			if test $ac_mid -le $ac_hi; then
2592			  ac_lo= ac_hi=
2593			  break
2594			fi
2595			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598  done
2599else
2600  ac_lo= ac_hi=
2601fi
2602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
2604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605# Binary search between lo and hi bounds.
2606while test "x$ac_lo" != "x$ac_hi"; do
2607  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h.  */
2610$4
2611int
2612main ()
2613{
2614static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2615test_array [0] = 0;
2616return test_array [0];
2617
2618  ;
2619  return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623  ac_hi=$ac_mid
2624else
2625  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628done
2629case $ac_lo in #((
2630?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2631'') ac_retval=1 ;;
2632esac
2633  else
2634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h.  */
2636$4
2637static long int longval () { return $2; }
2638static unsigned long int ulongval () { return $2; }
2639#include <stdio.h>
2640#include <stdlib.h>
2641int
2642main ()
2643{
2644
2645  FILE *f = fopen ("conftest.val", "w");
2646  if (! f)
2647    return 1;
2648  if (($2) < 0)
2649    {
2650      long int i = longval ();
2651      if (i != ($2))
2652	return 1;
2653      fprintf (f, "%ld", i);
2654    }
2655  else
2656    {
2657      unsigned long int i = ulongval ();
2658      if (i != ($2))
2659	return 1;
2660      fprintf (f, "%lu", i);
2661    }
2662  /* Do not output a trailing newline, as this causes \r\n confusion
2663     on some platforms.  */
2664  return ferror (f) || fclose (f) != 0;
2665
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670if ac_fn_c_try_run "$LINENO"; then :
2671  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2672else
2673  ac_retval=1
2674fi
2675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2676  conftest.$ac_objext conftest.beam conftest.$ac_ext
2677rm -f conftest.val
2678
2679  fi
2680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2681  as_fn_set_status $ac_retval
2682
2683} # ac_fn_c_compute_int
2684cat >config.log <<_ACEOF
2685This file contains any messages produced by compilers while
2686running configure, to aid debugging if configure makes a mistake.
2687
2688It was created by $as_me, which was
2689generated by GNU Autoconf 2.69.  Invocation command line was
2690
2691  $ $0 $@
2692
2693_ACEOF
2694exec 5>>config.log
2695{
2696cat <<_ASUNAME
2697## --------- ##
2698## Platform. ##
2699## --------- ##
2700
2701hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2702uname -m = `(uname -m) 2>/dev/null || echo unknown`
2703uname -r = `(uname -r) 2>/dev/null || echo unknown`
2704uname -s = `(uname -s) 2>/dev/null || echo unknown`
2705uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706
2707/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2708/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2709
2710/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2711/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2712/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2713/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2714/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2715/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2716/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2717
2718_ASUNAME
2719
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  test -z "$as_dir" && as_dir=.
2725    $as_echo "PATH: $as_dir"
2726  done
2727IFS=$as_save_IFS
2728
2729} >&5
2730
2731cat >&5 <<_ACEOF
2732
2733
2734## ----------- ##
2735## Core tests. ##
2736## ----------- ##
2737
2738_ACEOF
2739
2740
2741# Keep a trace of the command line.
2742# Strip out --no-create and --no-recursion so they do not pile up.
2743# Strip out --silent because we don't want to record it for future runs.
2744# Also quote any args containing shell meta-characters.
2745# Make two passes to allow for proper duplicate-argument suppression.
2746ac_configure_args=
2747ac_configure_args0=
2748ac_configure_args1=
2749ac_must_keep_next=false
2750for ac_pass in 1 2
2751do
2752  for ac_arg
2753  do
2754    case $ac_arg in
2755    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2756    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2757    | -silent | --silent | --silen | --sile | --sil)
2758      continue ;;
2759    *\'*)
2760      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2761    esac
2762    case $ac_pass in
2763    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2764    2)
2765      as_fn_append ac_configure_args1 " '$ac_arg'"
2766      if test $ac_must_keep_next = true; then
2767	ac_must_keep_next=false # Got value, back to normal.
2768      else
2769	case $ac_arg in
2770	  *=* | --config-cache | -C | -disable-* | --disable-* \
2771	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2772	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2773	  | -with-* | --with-* | -without-* | --without-* | --x)
2774	    case "$ac_configure_args0 " in
2775	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2776	    esac
2777	    ;;
2778	  -* ) ac_must_keep_next=true ;;
2779	esac
2780      fi
2781      as_fn_append ac_configure_args " '$ac_arg'"
2782      ;;
2783    esac
2784  done
2785done
2786{ ac_configure_args0=; unset ac_configure_args0;}
2787{ ac_configure_args1=; unset ac_configure_args1;}
2788
2789# When interrupted or exit'd, cleanup temporary files, and complete
2790# config.log.  We remove comments because anyway the quotes in there
2791# would cause problems or look ugly.
2792# WARNING: Use '\'' to represent an apostrophe within the trap.
2793# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2794trap 'exit_status=$?
2795  # Save into config.log some information that might help in debugging.
2796  {
2797    echo
2798
2799    $as_echo "## ---------------- ##
2800## Cache variables. ##
2801## ---------------- ##"
2802    echo
2803    # The following way of writing the cache mishandles newlines in values,
2804(
2805  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2806    eval ac_val=\$$ac_var
2807    case $ac_val in #(
2808    *${as_nl}*)
2809      case $ac_var in #(
2810      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2811$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2812      esac
2813      case $ac_var in #(
2814      _ | IFS | as_nl) ;; #(
2815      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2816      *) { eval $ac_var=; unset $ac_var;} ;;
2817      esac ;;
2818    esac
2819  done
2820  (set) 2>&1 |
2821    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2822    *${as_nl}ac_space=\ *)
2823      sed -n \
2824	"s/'\''/'\''\\\\'\'''\''/g;
2825	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2826      ;; #(
2827    *)
2828      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2829      ;;
2830    esac |
2831    sort
2832)
2833    echo
2834
2835    $as_echo "## ----------------- ##
2836## Output variables. ##
2837## ----------------- ##"
2838    echo
2839    for ac_var in $ac_subst_vars
2840    do
2841      eval ac_val=\$$ac_var
2842      case $ac_val in
2843      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844      esac
2845      $as_echo "$ac_var='\''$ac_val'\''"
2846    done | sort
2847    echo
2848
2849    if test -n "$ac_subst_files"; then
2850      $as_echo "## ------------------- ##
2851## File substitutions. ##
2852## ------------------- ##"
2853      echo
2854      for ac_var in $ac_subst_files
2855      do
2856	eval ac_val=\$$ac_var
2857	case $ac_val in
2858	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2859	esac
2860	$as_echo "$ac_var='\''$ac_val'\''"
2861      done | sort
2862      echo
2863    fi
2864
2865    if test -s confdefs.h; then
2866      $as_echo "## ----------- ##
2867## confdefs.h. ##
2868## ----------- ##"
2869      echo
2870      cat confdefs.h
2871      echo
2872    fi
2873    test "$ac_signal" != 0 &&
2874      $as_echo "$as_me: caught signal $ac_signal"
2875    $as_echo "$as_me: exit $exit_status"
2876  } >&5
2877  rm -f core *.core core.conftest.* &&
2878    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2879    exit $exit_status
2880' 0
2881for ac_signal in 1 2 13 15; do
2882  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2883done
2884ac_signal=0
2885
2886# confdefs.h avoids OS command line length limits that DEFS can exceed.
2887rm -f -r conftest* confdefs.h
2888
2889$as_echo "/* confdefs.h */" > confdefs.h
2890
2891# Predefined preprocessor variables.
2892
2893cat >>confdefs.h <<_ACEOF
2894#define PACKAGE_NAME "$PACKAGE_NAME"
2895_ACEOF
2896
2897cat >>confdefs.h <<_ACEOF
2898#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2899_ACEOF
2900
2901cat >>confdefs.h <<_ACEOF
2902#define PACKAGE_VERSION "$PACKAGE_VERSION"
2903_ACEOF
2904
2905cat >>confdefs.h <<_ACEOF
2906#define PACKAGE_STRING "$PACKAGE_STRING"
2907_ACEOF
2908
2909cat >>confdefs.h <<_ACEOF
2910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2911_ACEOF
2912
2913cat >>confdefs.h <<_ACEOF
2914#define PACKAGE_URL "$PACKAGE_URL"
2915_ACEOF
2916
2917
2918# Let the site file select an alternate cache file if it wants to.
2919# Prefer an explicitly selected file to automatically selected ones.
2920ac_site_file1=NONE
2921ac_site_file2=NONE
2922if test -n "$CONFIG_SITE"; then
2923  # We do not want a PATH search for config.site.
2924  case $CONFIG_SITE in #((
2925    -*)  ac_site_file1=./$CONFIG_SITE;;
2926    */*) ac_site_file1=$CONFIG_SITE;;
2927    *)   ac_site_file1=./$CONFIG_SITE;;
2928  esac
2929elif test "x$prefix" != xNONE; then
2930  ac_site_file1=$prefix/share/config.site
2931  ac_site_file2=$prefix/etc/config.site
2932else
2933  ac_site_file1=$ac_default_prefix/share/config.site
2934  ac_site_file2=$ac_default_prefix/etc/config.site
2935fi
2936for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2937do
2938  test "x$ac_site_file" = xNONE && continue
2939  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2940    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2941$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2942    sed 's/^/| /' "$ac_site_file" >&5
2943    . "$ac_site_file" \
2944      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946as_fn_error $? "failed to load site script $ac_site_file
2947See \`config.log' for more details" "$LINENO" 5; }
2948  fi
2949done
2950
2951if test -r "$cache_file"; then
2952  # Some versions of bash will fail to source /dev/null (special files
2953  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2954  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2955    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2956$as_echo "$as_me: loading cache $cache_file" >&6;}
2957    case $cache_file in
2958      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2959      *)                      . "./$cache_file";;
2960    esac
2961  fi
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2964$as_echo "$as_me: creating cache $cache_file" >&6;}
2965  >$cache_file
2966fi
2967
2968# Check that the precious variables saved in the cache have kept the same
2969# value.
2970ac_cache_corrupted=false
2971for ac_var in $ac_precious_vars; do
2972  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2973  eval ac_new_set=\$ac_env_${ac_var}_set
2974  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2975  eval ac_new_val=\$ac_env_${ac_var}_value
2976  case $ac_old_set,$ac_new_set in
2977    set,)
2978      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2979$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2980      ac_cache_corrupted=: ;;
2981    ,set)
2982      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2983$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2984      ac_cache_corrupted=: ;;
2985    ,);;
2986    *)
2987      if test "x$ac_old_val" != "x$ac_new_val"; then
2988	# differences in whitespace do not lead to failure.
2989	ac_old_val_w=`echo x $ac_old_val`
2990	ac_new_val_w=`echo x $ac_new_val`
2991	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2992	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2993$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2994	  ac_cache_corrupted=:
2995	else
2996	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2997$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2998	  eval $ac_var=\$ac_old_val
2999	fi
3000	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3001$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3002	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3003$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3004      fi;;
3005  esac
3006  # Pass precious variables to config.status.
3007  if test "$ac_new_set" = set; then
3008    case $ac_new_val in
3009    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3010    *) ac_arg=$ac_var=$ac_new_val ;;
3011    esac
3012    case " $ac_configure_args " in
3013      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3014      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3015    esac
3016  fi
3017done
3018if $ac_cache_corrupted; then
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3022$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3023  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3024fi
3025## -------------------- ##
3026## Main body of script. ##
3027## -------------------- ##
3028
3029ac_ext=c
3030ac_cpp='$CPP $CPPFLAGS'
3031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034
3035                     # (package, version, bugreport email, etc)
3036          # (the version of this configure.ac)
3037ac_aux_dir=
3038for ac_dir in autoconf "$srcdir"/autoconf; do
3039  if test -f "$ac_dir/install-sh"; then
3040    ac_aux_dir=$ac_dir
3041    ac_install_sh="$ac_aux_dir/install-sh -c"
3042    break
3043  elif test -f "$ac_dir/install.sh"; then
3044    ac_aux_dir=$ac_dir
3045    ac_install_sh="$ac_aux_dir/install.sh -c"
3046    break
3047  elif test -f "$ac_dir/shtool"; then
3048    ac_aux_dir=$ac_dir
3049    ac_install_sh="$ac_aux_dir/shtool install -c"
3050    break
3051  fi
3052done
3053if test -z "$ac_aux_dir"; then
3054  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
3055fi
3056
3057# These three variables are undocumented and unsupported,
3058# and are intended to be withdrawn in a future Autoconf release.
3059# They can cause serious problems if a builder's source tree is in a directory
3060# whose full name contains unusual characters.
3061ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3062ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3063ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3064
3065             # (directory containing auxillary build tools)
3066am__api_version='1.12'
3067
3068# Find a good install program.  We prefer a C program (faster),
3069# so one script is as good as another.  But avoid the broken or
3070# incompatible versions:
3071# SysV /etc/install, /usr/sbin/install
3072# SunOS /usr/etc/install
3073# IRIX /sbin/install
3074# AIX /bin/install
3075# AmigaOS /C/install, which installs bootblocks on floppy discs
3076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3079# OS/2's system install, which has a completely different semantic
3080# ./install, which can be erroneously created by make from ./install.sh.
3081# Reject install programs that cannot install multiple files.
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3083$as_echo_n "checking for a BSD-compatible install... " >&6; }
3084if test -z "$INSTALL"; then
3085if ${ac_cv_path_install+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    # Account for people who put trailing slashes in PATH elements.
3094case $as_dir/ in #((
3095  ./ | .// | /[cC]/* | \
3096  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3097  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3098  /usr/ucb/* ) ;;
3099  *)
3100    # OSF1 and SCO ODT 3.0 have their own names for install.
3101    # Don't use installbsd from OSF since it installs stuff as root
3102    # by default.
3103    for ac_prog in ginstall scoinst install; do
3104      for ac_exec_ext in '' $ac_executable_extensions; do
3105	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3106	  if test $ac_prog = install &&
3107	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108	    # AIX install.  It has an incompatible calling convention.
3109	    :
3110	  elif test $ac_prog = install &&
3111	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112	    # program-specific install script used by HP pwplus--don't use.
3113	    :
3114	  else
3115	    rm -rf conftest.one conftest.two conftest.dir
3116	    echo one > conftest.one
3117	    echo two > conftest.two
3118	    mkdir conftest.dir
3119	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3120	      test -s conftest.one && test -s conftest.two &&
3121	      test -s conftest.dir/conftest.one &&
3122	      test -s conftest.dir/conftest.two
3123	    then
3124	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3125	      break 3
3126	    fi
3127	  fi
3128	fi
3129      done
3130    done
3131    ;;
3132esac
3133
3134  done
3135IFS=$as_save_IFS
3136
3137rm -rf conftest.one conftest.two conftest.dir
3138
3139fi
3140  if test "${ac_cv_path_install+set}" = set; then
3141    INSTALL=$ac_cv_path_install
3142  else
3143    # As a last resort, use the slow shell script.  Don't cache a
3144    # value for INSTALL within a source directory, because that will
3145    # break other packages using the cache if that directory is
3146    # removed, or if the value is a relative name.
3147    INSTALL=$ac_install_sh
3148  fi
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3151$as_echo "$INSTALL" >&6; }
3152
3153# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3154# It thinks the first close brace ends the variable substitution.
3155test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3156
3157test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3158
3159test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3160
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3162$as_echo_n "checking whether build environment is sane... " >&6; }
3163# Reject unsafe characters in $srcdir or the absolute working directory
3164# name.  Accept space and tab only in the latter.
3165am_lf='
3166'
3167case `pwd` in
3168  *[\\\"\#\$\&\'\`$am_lf]*)
3169    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3170esac
3171case $srcdir in
3172  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3173    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3174esac
3175
3176# Do 'set' in a subshell so we don't clobber the current shell's
3177# arguments.  Must try -L first in case configure is actually a
3178# symlink; some systems play weird games with the mod time of symlinks
3179# (eg FreeBSD returns the mod time of the symlink's containing
3180# directory).
3181if (
3182   am_has_slept=no
3183   for am_try in 1 2; do
3184     echo "timestamp, slept: $am_has_slept" > conftest.file
3185     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3186     if test "$*" = "X"; then
3187	# -L didn't work.
3188	set X `ls -t "$srcdir/configure" conftest.file`
3189     fi
3190     if test "$*" != "X $srcdir/configure conftest.file" \
3191	&& test "$*" != "X conftest.file $srcdir/configure"; then
3192
3193	# If neither matched, then we have a broken ls.  This can happen
3194	# if, for instance, CONFIG_SHELL is bash and it inherits a
3195	# broken ls alias from the environment.  This has actually
3196	# happened.  Such a system could not be considered "sane".
3197	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3198  alias in your environment" "$LINENO" 5
3199     fi
3200     if test "$2" = conftest.file || test $am_try -eq 2; then
3201       break
3202     fi
3203     # Just in case.
3204     sleep 1
3205     am_has_slept=yes
3206   done
3207   test "$2" = conftest.file
3208   )
3209then
3210   # Ok.
3211   :
3212else
3213   as_fn_error $? "newly created file is older than distributed files!
3214Check your system clock" "$LINENO" 5
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217$as_echo "yes" >&6; }
3218# If we didn't sleep, we still need to ensure time stamps of config.status and
3219# generated files are strictly newer.
3220am_sleep_pid=
3221if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3222  ( sleep 1 ) &
3223  am_sleep_pid=$!
3224fi
3225
3226rm -f conftest.file
3227
3228test "$program_prefix" != NONE &&
3229  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3230# Use a double $ so make ignores it.
3231test "$program_suffix" != NONE &&
3232  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3233# Double any \ or $.
3234# By default was `s,x,x', remove it if useless.
3235ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3236program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3237
3238# expand $ac_aux_dir to an absolute path
3239am_aux_dir=`cd $ac_aux_dir && pwd`
3240
3241if test x"${MISSING+set}" != xset; then
3242  case $am_aux_dir in
3243  *\ * | *\	*)
3244    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3245  *)
3246    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3247  esac
3248fi
3249# Use eval to expand $SHELL
3250if eval "$MISSING --run true"; then
3251  am_missing_run="$MISSING --run "
3252else
3253  am_missing_run=
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3255$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3256fi
3257
3258if test x"${install_sh}" != xset; then
3259  case $am_aux_dir in
3260  *\ * | *\	*)
3261    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3262  *)
3263    install_sh="\${SHELL} $am_aux_dir/install-sh"
3264  esac
3265fi
3266
3267# Installed binaries are usually stripped using 'strip' when the user
3268# run "make install-strip".  However 'strip' might not be the right
3269# tool to use in cross-compilation environments, therefore Automake
3270# will honor the 'STRIP' environment variable to overrule this program.
3271if test "$cross_compiling" != no; then
3272  if test -n "$ac_tool_prefix"; then
3273  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3274set dummy ${ac_tool_prefix}strip; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_STRIP+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -n "$STRIP"; then
3281  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    for ac_exec_ext in '' $ac_executable_extensions; do
3289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298fi
3299fi
3300STRIP=$ac_cv_prog_STRIP
3301if test -n "$STRIP"; then
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3303$as_echo "$STRIP" >&6; }
3304else
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307fi
3308
3309
3310fi
3311if test -z "$ac_cv_prog_STRIP"; then
3312  ac_ct_STRIP=$STRIP
3313  # Extract the first word of "strip", so it can be a program name with args.
3314set dummy strip; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3318  $as_echo_n "(cached) " >&6
3319else
3320  if test -n "$ac_ct_STRIP"; then
3321  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328    for ac_exec_ext in '' $ac_executable_extensions; do
3329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330    ac_cv_prog_ac_ct_STRIP="strip"
3331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335  done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3341if test -n "$ac_ct_STRIP"; then
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3343$as_echo "$ac_ct_STRIP" >&6; }
3344else
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347fi
3348
3349  if test "x$ac_ct_STRIP" = x; then
3350    STRIP=":"
3351  else
3352    case $cross_compiling:$ac_tool_warned in
3353yes:)
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356ac_tool_warned=yes ;;
3357esac
3358    STRIP=$ac_ct_STRIP
3359  fi
3360else
3361  STRIP="$ac_cv_prog_STRIP"
3362fi
3363
3364fi
3365INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3366
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3368$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3369if test -z "$MKDIR_P"; then
3370  if ${ac_cv_path_mkdir+:} false; then :
3371  $as_echo_n "(cached) " >&6
3372else
3373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3375do
3376  IFS=$as_save_IFS
3377  test -z "$as_dir" && as_dir=.
3378    for ac_prog in mkdir gmkdir; do
3379	 for ac_exec_ext in '' $ac_executable_extensions; do
3380	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3381	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3382	     'mkdir (GNU coreutils) '* | \
3383	     'mkdir (coreutils) '* | \
3384	     'mkdir (fileutils) '4.1*)
3385	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3386	       break 3;;
3387	   esac
3388	 done
3389       done
3390  done
3391IFS=$as_save_IFS
3392
3393fi
3394
3395  test -d ./--version && rmdir ./--version
3396  if test "${ac_cv_path_mkdir+set}" = set; then
3397    MKDIR_P="$ac_cv_path_mkdir -p"
3398  else
3399    # As a last resort, use the slow shell script.  Don't cache a
3400    # value for MKDIR_P within a source directory, because that will
3401    # break other packages using the cache if that directory is
3402    # removed, or if the value is a relative name.
3403    MKDIR_P="$ac_install_sh -d"
3404  fi
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3407$as_echo "$MKDIR_P" >&6; }
3408
3409for ac_prog in gawk mawk nawk awk
3410do
3411  # Extract the first word of "$ac_prog", so it can be a program name with args.
3412set dummy $ac_prog; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if ${ac_cv_prog_AWK+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test -n "$AWK"; then
3419  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_AWK="$ac_prog"
3429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433  done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438AWK=$ac_cv_prog_AWK
3439if test -n "$AWK"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3441$as_echo "$AWK" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448  test -n "$AWK" && break
3449done
3450
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3452$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3453set x ${MAKE-make}
3454ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3455if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3456  $as_echo_n "(cached) " >&6
3457else
3458  cat >conftest.make <<\_ACEOF
3459SHELL = /bin/sh
3460all:
3461	@echo '@@@%%%=$(MAKE)=@@@%%%'
3462_ACEOF
3463# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3464case `${MAKE-make} -f conftest.make 2>/dev/null` in
3465  *@@@%%%=?*=@@@%%%*)
3466    eval ac_cv_prog_make_${ac_make}_set=yes;;
3467  *)
3468    eval ac_cv_prog_make_${ac_make}_set=no;;
3469esac
3470rm -f conftest.make
3471fi
3472if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3474$as_echo "yes" >&6; }
3475  SET_MAKE=
3476else
3477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478$as_echo "no" >&6; }
3479  SET_MAKE="MAKE=${MAKE-make}"
3480fi
3481
3482rm -rf .tst 2>/dev/null
3483mkdir .tst 2>/dev/null
3484if test -d .tst; then
3485  am__leading_dot=.
3486else
3487  am__leading_dot=_
3488fi
3489rmdir .tst 2>/dev/null
3490
3491if test "`cd $srcdir && pwd`" != "`pwd`"; then
3492  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3493  # is not polluted with repeated "-I."
3494  am__isrc=' -I$(srcdir)'
3495  # test to see if srcdir already configured
3496  if test -f $srcdir/config.status; then
3497    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3498  fi
3499fi
3500
3501# test whether we have cygpath
3502if test -z "$CYGPATH_W"; then
3503  if (cygpath --version) >/dev/null 2>/dev/null; then
3504    CYGPATH_W='cygpath -w'
3505  else
3506    CYGPATH_W=echo
3507  fi
3508fi
3509
3510
3511# Define the identity of the package.
3512
3513 PACKAGE=hercules
3514 VERSION=3.13
3515
3516
3517cat >>confdefs.h <<_ACEOF
3518#define PACKAGE "$PACKAGE"
3519_ACEOF
3520
3521
3522cat >>confdefs.h <<_ACEOF
3523#define VERSION "$VERSION"
3524_ACEOF
3525
3526# Some tools Automake needs.
3527
3528ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3529
3530
3531AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3532
3533
3534AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3535
3536
3537AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3538
3539
3540MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3541
3542# For better backward compatibility.  To be removed once Automake 1.9.x
3543# dies out for good.  For more background, see:
3544# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3545# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3546mkdir_p='$(MKDIR_P)'
3547
3548# We need awk for the "check" target.  The system "awk" is bad on
3549# some platforms.
3550# Always define AMTAR for backward compatibility.  Yes, it's still used
3551# in the wild :-(  We should find a proper way to deprecate it ...
3552AMTAR='$${TAR-tar}'
3553
3554am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3555
3556
3557
3558
3559         # (the version of our software package)
3560ac_config_headers="$ac_config_headers config.h"
3561              # (the file the resulting configure script will produce)
3562
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3564$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3565    # Check whether --enable-maintainer-mode was given.
3566if test "${enable_maintainer_mode+set}" = set; then :
3567  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3568else
3569  USE_MAINTAINER_MODE=no
3570fi
3571
3572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3573$as_echo "$USE_MAINTAINER_MODE" >&6; }
3574   if test $USE_MAINTAINER_MODE = yes; then
3575  MAINTAINER_MODE_TRUE=
3576  MAINTAINER_MODE_FALSE='#'
3577else
3578  MAINTAINER_MODE_TRUE='#'
3579  MAINTAINER_MODE_FALSE=
3580fi
3581
3582  MAINT=$MAINTAINER_MODE_TRUE
3583
3584
3585# Make sure we can run config.sub.
3586$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3587  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3588
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3590$as_echo_n "checking build system type... " >&6; }
3591if ${ac_cv_build+:} false; then :
3592  $as_echo_n "(cached) " >&6
3593else
3594  ac_build_alias=$build_alias
3595test "x$ac_build_alias" = x &&
3596  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3597test "x$ac_build_alias" = x &&
3598  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3599ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3600  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3601
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3604$as_echo "$ac_cv_build" >&6; }
3605case $ac_cv_build in
3606*-*-*) ;;
3607*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3608esac
3609build=$ac_cv_build
3610ac_save_IFS=$IFS; IFS='-'
3611set x $ac_cv_build
3612shift
3613build_cpu=$1
3614build_vendor=$2
3615shift; shift
3616# Remember, the first character of IFS is used to create $*,
3617# except with old shells:
3618build_os=$*
3619IFS=$ac_save_IFS
3620case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3621
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3624$as_echo_n "checking host system type... " >&6; }
3625if ${ac_cv_host+:} false; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  if test "x$host_alias" = x; then
3629  ac_cv_host=$ac_cv_build
3630else
3631  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3632    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3633fi
3634
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3637$as_echo "$ac_cv_host" >&6; }
3638case $ac_cv_host in
3639*-*-*) ;;
3640*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3641esac
3642host=$ac_cv_host
3643ac_save_IFS=$IFS; IFS='-'
3644set x $ac_cv_host
3645shift
3646host_cpu=$1
3647host_vendor=$2
3648shift; shift
3649# Remember, the first character of IFS is used to create $*,
3650# except with old shells:
3651host_os=$*
3652IFS=$ac_save_IFS
3653case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3654
3655                     # (sets $host_cpu, $host_vendor, and $host_os)
3656# Check whether --enable-silent-rules was given.
3657if test "${enable_silent_rules+set}" = set; then :
3658  enableval=$enable_silent_rules;
3659fi
3660
3661case $enable_silent_rules in # (((
3662  yes) AM_DEFAULT_VERBOSITY=0;;
3663   no) AM_DEFAULT_VERBOSITY=1;;
3664    *) AM_DEFAULT_VERBOSITY=0;;
3665esac
3666am_make=${MAKE-make}
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3668$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3669if ${am_cv_make_support_nested_variables+:} false; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  if $as_echo 'TRUE=$(BAR$(V))
3673BAR0=false
3674BAR1=true
3675V=1
3676am__doit:
3677	@$(TRUE)
3678.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3679  am_cv_make_support_nested_variables=yes
3680else
3681  am_cv_make_support_nested_variables=no
3682fi
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3685$as_echo "$am_cv_make_support_nested_variables" >&6; }
3686if test $am_cv_make_support_nested_variables = yes; then
3687    AM_V='$(V)'
3688  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3689else
3690  AM_V=$AM_DEFAULT_VERBOSITY
3691  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3692fi
3693AM_BACKSLASH='\'
3694
3695
3696###############################################################################
3697#   Programs section...
3698###############################################################################
3699
3700# Set CFLAGS first to override the AC_PROG_CC default setting
3701
3702CFLAGS="$CFLAGS -W -Wall"
3703
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709if test -n "$ac_tool_prefix"; then
3710  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3711set dummy ${ac_tool_prefix}gcc; ac_word=$2
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713$as_echo_n "checking for $ac_word... " >&6; }
3714if ${ac_cv_prog_CC+:} false; then :
3715  $as_echo_n "(cached) " >&6
3716else
3717  if test -n "$CC"; then
3718  ac_cv_prog_CC="$CC" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  test -z "$as_dir" && as_dir=.
3725    for ac_exec_ext in '' $ac_executable_extensions; do
3726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732  done
3733IFS=$as_save_IFS
3734
3735fi
3736fi
3737CC=$ac_cv_prog_CC
3738if test -n "$CC"; then
3739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740$as_echo "$CC" >&6; }
3741else
3742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743$as_echo "no" >&6; }
3744fi
3745
3746
3747fi
3748if test -z "$ac_cv_prog_CC"; then
3749  ac_ct_CC=$CC
3750  # Extract the first word of "gcc", so it can be a program name with args.
3751set dummy gcc; ac_word=$2
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753$as_echo_n "checking for $ac_word... " >&6; }
3754if ${ac_cv_prog_ac_ct_CC+:} false; then :
3755  $as_echo_n "(cached) " >&6
3756else
3757  if test -n "$ac_ct_CC"; then
3758  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763  IFS=$as_save_IFS
3764  test -z "$as_dir" && as_dir=.
3765    for ac_exec_ext in '' $ac_executable_extensions; do
3766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767    ac_cv_prog_ac_ct_CC="gcc"
3768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769    break 2
3770  fi
3771done
3772  done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778if test -n "$ac_ct_CC"; then
3779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780$as_echo "$ac_ct_CC" >&6; }
3781else
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783$as_echo "no" >&6; }
3784fi
3785
3786  if test "x$ac_ct_CC" = x; then
3787    CC=""
3788  else
3789    case $cross_compiling:$ac_tool_warned in
3790yes:)
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793ac_tool_warned=yes ;;
3794esac
3795    CC=$ac_ct_CC
3796  fi
3797else
3798  CC="$ac_cv_prog_CC"
3799fi
3800
3801if test -z "$CC"; then
3802          if test -n "$ac_tool_prefix"; then
3803    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3804set dummy ${ac_tool_prefix}cc; ac_word=$2
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806$as_echo_n "checking for $ac_word... " >&6; }
3807if ${ac_cv_prog_CC+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  if test -n "$CC"; then
3811  ac_cv_prog_CC="$CC" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816  IFS=$as_save_IFS
3817  test -z "$as_dir" && as_dir=.
3818    for ac_exec_ext in '' $ac_executable_extensions; do
3819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820    ac_cv_prog_CC="${ac_tool_prefix}cc"
3821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822    break 2
3823  fi
3824done
3825  done
3826IFS=$as_save_IFS
3827
3828fi
3829fi
3830CC=$ac_cv_prog_CC
3831if test -n "$CC"; then
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833$as_echo "$CC" >&6; }
3834else
3835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836$as_echo "no" >&6; }
3837fi
3838
3839
3840  fi
3841fi
3842if test -z "$CC"; then
3843  # Extract the first word of "cc", so it can be a program name with args.
3844set dummy cc; ac_word=$2
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846$as_echo_n "checking for $ac_word... " >&6; }
3847if ${ac_cv_prog_CC+:} false; then :
3848  $as_echo_n "(cached) " >&6
3849else
3850  if test -n "$CC"; then
3851  ac_cv_prog_CC="$CC" # Let the user override the test.
3852else
3853  ac_prog_rejected=no
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857  IFS=$as_save_IFS
3858  test -z "$as_dir" && as_dir=.
3859    for ac_exec_ext in '' $ac_executable_extensions; do
3860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3862       ac_prog_rejected=yes
3863       continue
3864     fi
3865    ac_cv_prog_CC="cc"
3866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870  done
3871IFS=$as_save_IFS
3872
3873if test $ac_prog_rejected = yes; then
3874  # We found a bogon in the path, so make sure we never use it.
3875  set dummy $ac_cv_prog_CC
3876  shift
3877  if test $# != 0; then
3878    # We chose a different compiler from the bogus one.
3879    # However, it has the same basename, so the bogon will be chosen
3880    # first if we set CC to just the basename; use the full file name.
3881    shift
3882    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3883  fi
3884fi
3885fi
3886fi
3887CC=$ac_cv_prog_CC
3888if test -n "$CC"; then
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890$as_echo "$CC" >&6; }
3891else
3892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$CC"; then
3899  if test -n "$ac_tool_prefix"; then
3900  for ac_prog in cl.exe
3901  do
3902    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
3906if ${ac_cv_prog_CC+:} false; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909  if test -n "$CC"; then
3910  ac_cv_prog_CC="$CC" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917    for ac_exec_ext in '' $ac_executable_extensions; do
3918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921    break 2
3922  fi
3923done
3924  done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929CC=$ac_cv_prog_CC
3930if test -n "$CC"; then
3931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932$as_echo "$CC" >&6; }
3933else
3934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
3936fi
3937
3938
3939    test -n "$CC" && break
3940  done
3941fi
3942if test -z "$CC"; then
3943  ac_ct_CC=$CC
3944  for ac_prog in cl.exe
3945do
3946  # Extract the first word of "$ac_prog", so it can be a program name with args.
3947set dummy $ac_prog; ac_word=$2
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
3950if ${ac_cv_prog_ac_ct_CC+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  if test -n "$ac_ct_CC"; then
3954  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959  IFS=$as_save_IFS
3960  test -z "$as_dir" && as_dir=.
3961    for ac_exec_ext in '' $ac_executable_extensions; do
3962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963    ac_cv_prog_ac_ct_CC="$ac_prog"
3964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965    break 2
3966  fi
3967done
3968  done
3969IFS=$as_save_IFS
3970
3971fi
3972fi
3973ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974if test -n "$ac_ct_CC"; then
3975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976$as_echo "$ac_ct_CC" >&6; }
3977else
3978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
3980fi
3981
3982
3983  test -n "$ac_ct_CC" && break
3984done
3985
3986  if test "x$ac_ct_CC" = x; then
3987    CC=""
3988  else
3989    case $cross_compiling:$ac_tool_warned in
3990yes:)
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993ac_tool_warned=yes ;;
3994esac
3995    CC=$ac_ct_CC
3996  fi
3997fi
3998
3999fi
4000
4001
4002test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004as_fn_error $? "no acceptable C compiler found in \$PATH
4005See \`config.log' for more details" "$LINENO" 5; }
4006
4007# Provide some information about the compiler.
4008$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4009set X $ac_compile
4010ac_compiler=$2
4011for ac_option in --version -v -V -qversion; do
4012  { { ac_try="$ac_compiler $ac_option >&5"
4013case "(($ac_try" in
4014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015  *) ac_try_echo=$ac_try;;
4016esac
4017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018$as_echo "$ac_try_echo"; } >&5
4019  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4020  ac_status=$?
4021  if test -s conftest.err; then
4022    sed '10a\
4023... rest of stderr output deleted ...
4024         10q' conftest.err >conftest.er1
4025    cat conftest.er1 >&5
4026  fi
4027  rm -f conftest.er1 conftest.err
4028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; }
4030done
4031
4032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h.  */
4034
4035int
4036main ()
4037{
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043ac_clean_files_save=$ac_clean_files
4044ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4045# Try to create an executable without -o first, disregard a.out.
4046# It will help us diagnose broken compilers, and finding out an intuition
4047# of exeext.
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4049$as_echo_n "checking whether the C compiler works... " >&6; }
4050ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4051
4052# The possible output files:
4053ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4054
4055ac_rmfiles=
4056for ac_file in $ac_files
4057do
4058  case $ac_file in
4059    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4060    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4061  esac
4062done
4063rm -f $ac_rmfiles
4064
4065if { { ac_try="$ac_link_default"
4066case "(($ac_try" in
4067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068  *) ac_try_echo=$ac_try;;
4069esac
4070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071$as_echo "$ac_try_echo"; } >&5
4072  (eval "$ac_link_default") 2>&5
4073  ac_status=$?
4074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075  test $ac_status = 0; }; then :
4076  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4077# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4078# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4079# so that the user can short-circuit this test for compilers unknown to
4080# Autoconf.
4081for ac_file in $ac_files ''
4082do
4083  test -f "$ac_file" || continue
4084  case $ac_file in
4085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4086	;;
4087    [ab].out )
4088	# We found the default executable, but exeext='' is most
4089	# certainly right.
4090	break;;
4091    *.* )
4092	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4093	then :; else
4094	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4095	fi
4096	# We set ac_cv_exeext here because the later test for it is not
4097	# safe: cross compilers may not add the suffix if given an `-o'
4098	# argument, so we may need to know it at that point already.
4099	# Even if this section looks crufty: it has the advantage of
4100	# actually working.
4101	break;;
4102    * )
4103	break;;
4104  esac
4105done
4106test "$ac_cv_exeext" = no && ac_cv_exeext=
4107
4108else
4109  ac_file=''
4110fi
4111if test -z "$ac_file"; then :
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114$as_echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119as_fn_error 77 "C compiler cannot create executables
4120See \`config.log' for more details" "$LINENO" 5; }
4121else
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4123$as_echo "yes" >&6; }
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4126$as_echo_n "checking for C compiler default output file name... " >&6; }
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4128$as_echo "$ac_file" >&6; }
4129ac_exeext=$ac_cv_exeext
4130
4131rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4132ac_clean_files=$ac_clean_files_save
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4134$as_echo_n "checking for suffix of executables... " >&6; }
4135if { { ac_try="$ac_link"
4136case "(($ac_try" in
4137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138  *) ac_try_echo=$ac_try;;
4139esac
4140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141$as_echo "$ac_try_echo"; } >&5
4142  (eval "$ac_link") 2>&5
4143  ac_status=$?
4144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145  test $ac_status = 0; }; then :
4146  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4147# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4148# work properly (i.e., refer to `conftest.exe'), while it won't with
4149# `rm'.
4150for ac_file in conftest.exe conftest conftest.*; do
4151  test -f "$ac_file" || continue
4152  case $ac_file in
4153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4154    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4155	  break;;
4156    * ) break;;
4157  esac
4158done
4159else
4160  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4163See \`config.log' for more details" "$LINENO" 5; }
4164fi
4165rm -f conftest conftest$ac_cv_exeext
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4167$as_echo "$ac_cv_exeext" >&6; }
4168
4169rm -f conftest.$ac_ext
4170EXEEXT=$ac_cv_exeext
4171ac_exeext=$EXEEXT
4172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h.  */
4174#include <stdio.h>
4175int
4176main ()
4177{
4178FILE *f = fopen ("conftest.out", "w");
4179 return ferror (f) || fclose (f) != 0;
4180
4181  ;
4182  return 0;
4183}
4184_ACEOF
4185ac_clean_files="$ac_clean_files conftest.out"
4186# Check that the compiler produces executables we can run.  If not, either
4187# the compiler is broken, or we cross compile.
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4189$as_echo_n "checking whether we are cross compiling... " >&6; }
4190if test "$cross_compiling" != yes; then
4191  { { ac_try="$ac_link"
4192case "(($ac_try" in
4193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194  *) ac_try_echo=$ac_try;;
4195esac
4196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197$as_echo "$ac_try_echo"; } >&5
4198  (eval "$ac_link") 2>&5
4199  ac_status=$?
4200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201  test $ac_status = 0; }
4202  if { ac_try='./conftest$ac_cv_exeext'
4203  { { case "(($ac_try" in
4204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205  *) ac_try_echo=$ac_try;;
4206esac
4207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208$as_echo "$ac_try_echo"; } >&5
4209  (eval "$ac_try") 2>&5
4210  ac_status=$?
4211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212  test $ac_status = 0; }; }; then
4213    cross_compiling=no
4214  else
4215    if test "$cross_compiling" = maybe; then
4216	cross_compiling=yes
4217    else
4218	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220as_fn_error $? "cannot run C compiled programs.
4221If you meant to cross compile, use \`--host'.
4222See \`config.log' for more details" "$LINENO" 5; }
4223    fi
4224  fi
4225fi
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4227$as_echo "$cross_compiling" >&6; }
4228
4229rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4230ac_clean_files=$ac_clean_files_save
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4232$as_echo_n "checking for suffix of object files... " >&6; }
4233if ${ac_cv_objext+:} false; then :
4234  $as_echo_n "(cached) " >&6
4235else
4236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238
4239int
4240main ()
4241{
4242
4243  ;
4244  return 0;
4245}
4246_ACEOF
4247rm -f conftest.o conftest.obj
4248if { { ac_try="$ac_compile"
4249case "(($ac_try" in
4250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251  *) ac_try_echo=$ac_try;;
4252esac
4253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254$as_echo "$ac_try_echo"; } >&5
4255  (eval "$ac_compile") 2>&5
4256  ac_status=$?
4257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258  test $ac_status = 0; }; then :
4259  for ac_file in conftest.o conftest.obj conftest.*; do
4260  test -f "$ac_file" || continue;
4261  case $ac_file in
4262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4263    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4264       break;;
4265  esac
4266done
4267else
4268  $as_echo "$as_me: failed program was:" >&5
4269sed 's/^/| /' conftest.$ac_ext >&5
4270
4271{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273as_fn_error $? "cannot compute suffix of object files: cannot compile
4274See \`config.log' for more details" "$LINENO" 5; }
4275fi
4276rm -f conftest.$ac_cv_objext conftest.$ac_ext
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4279$as_echo "$ac_cv_objext" >&6; }
4280OBJEXT=$ac_cv_objext
4281ac_objext=$OBJEXT
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4283$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4284if ${ac_cv_c_compiler_gnu+:} false; then :
4285  $as_echo_n "(cached) " >&6
4286else
4287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289
4290int
4291main ()
4292{
4293#ifndef __GNUC__
4294       choke me
4295#endif
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301if ac_fn_c_try_compile "$LINENO"; then :
4302  ac_compiler_gnu=yes
4303else
4304  ac_compiler_gnu=no
4305fi
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307ac_cv_c_compiler_gnu=$ac_compiler_gnu
4308
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4311$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4312if test $ac_compiler_gnu = yes; then
4313  GCC=yes
4314else
4315  GCC=
4316fi
4317ac_test_CFLAGS=${CFLAGS+set}
4318ac_save_CFLAGS=$CFLAGS
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4320$as_echo_n "checking whether $CC accepts -g... " >&6; }
4321if ${ac_cv_prog_cc_g+:} false; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  ac_save_c_werror_flag=$ac_c_werror_flag
4325   ac_c_werror_flag=yes
4326   ac_cv_prog_cc_g=no
4327   CFLAGS="-g"
4328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330
4331int
4332main ()
4333{
4334
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340  ac_cv_prog_cc_g=yes
4341else
4342  CFLAGS=""
4343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345
4346int
4347main ()
4348{
4349
4350  ;
4351  return 0;
4352}
4353_ACEOF
4354if ac_fn_c_try_compile "$LINENO"; then :
4355
4356else
4357  ac_c_werror_flag=$ac_save_c_werror_flag
4358	 CFLAGS="-g"
4359	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h.  */
4361
4362int
4363main ()
4364{
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_compile "$LINENO"; then :
4371  ac_cv_prog_cc_g=yes
4372fi
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378   ac_c_werror_flag=$ac_save_c_werror_flag
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4381$as_echo "$ac_cv_prog_cc_g" >&6; }
4382if test "$ac_test_CFLAGS" = set; then
4383  CFLAGS=$ac_save_CFLAGS
4384elif test $ac_cv_prog_cc_g = yes; then
4385  if test "$GCC" = yes; then
4386    CFLAGS="-g -O2"
4387  else
4388    CFLAGS="-g"
4389  fi
4390else
4391  if test "$GCC" = yes; then
4392    CFLAGS="-O2"
4393  else
4394    CFLAGS=
4395  fi
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4398$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4399if ${ac_cv_prog_cc_c89+:} false; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  ac_cv_prog_cc_c89=no
4403ac_save_CC=$CC
4404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h.  */
4406#include <stdarg.h>
4407#include <stdio.h>
4408struct stat;
4409/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4410struct buf { int x; };
4411FILE * (*rcsopen) (struct buf *, struct stat *, int);
4412static char *e (p, i)
4413     char **p;
4414     int i;
4415{
4416  return p[i];
4417}
4418static char *f (char * (*g) (char **, int), char **p, ...)
4419{
4420  char *s;
4421  va_list v;
4422  va_start (v,p);
4423  s = g (p, va_arg (v,int));
4424  va_end (v);
4425  return s;
4426}
4427
4428/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4429   function prototypes and stuff, but not '\xHH' hex character constants.
4430   These don't provoke an error unfortunately, instead are silently treated
4431   as 'x'.  The following induces an error, until -std is added to get
4432   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4433   array size at least.  It's necessary to write '\x00'==0 to get something
4434   that's true only with -std.  */
4435int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4436
4437/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4438   inside strings and character constants.  */
4439#define FOO(x) 'x'
4440int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4441
4442int test (int i, double x);
4443struct s1 {int (*f) (int a);};
4444struct s2 {int (*f) (double a);};
4445int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4446int argc;
4447char **argv;
4448int
4449main ()
4450{
4451return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4452  ;
4453  return 0;
4454}
4455_ACEOF
4456for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4457	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4458do
4459  CC="$ac_save_CC $ac_arg"
4460  if ac_fn_c_try_compile "$LINENO"; then :
4461  ac_cv_prog_cc_c89=$ac_arg
4462fi
4463rm -f core conftest.err conftest.$ac_objext
4464  test "x$ac_cv_prog_cc_c89" != "xno" && break
4465done
4466rm -f conftest.$ac_ext
4467CC=$ac_save_CC
4468
4469fi
4470# AC_CACHE_VAL
4471case "x$ac_cv_prog_cc_c89" in
4472  x)
4473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4474$as_echo "none needed" >&6; } ;;
4475  xno)
4476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4477$as_echo "unsupported" >&6; } ;;
4478  *)
4479    CC="$CC $ac_cv_prog_cc_c89"
4480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4481$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4482esac
4483if test "x$ac_cv_prog_cc_c89" != xno; then :
4484
4485fi
4486
4487ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492DEPDIR="${am__leading_dot}deps"
4493
4494ac_config_commands="$ac_config_commands depfiles"
4495
4496
4497am_make=${MAKE-make}
4498cat > confinc << 'END'
4499am__doit:
4500	@echo this is the am__doit target
4501.PHONY: am__doit
4502END
4503# If we don't find an include directive, just comment out the code.
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4505$as_echo_n "checking for style of include used by $am_make... " >&6; }
4506am__include="#"
4507am__quote=
4508_am_result=none
4509# First try GNU make style include.
4510echo "include confinc" > confmf
4511# Ignore all kinds of additional output from 'make'.
4512case `$am_make -s -f confmf 2> /dev/null` in #(
4513*the\ am__doit\ target*)
4514  am__include=include
4515  am__quote=
4516  _am_result=GNU
4517  ;;
4518esac
4519# Now try BSD make style include.
4520if test "$am__include" = "#"; then
4521   echo '.include "confinc"' > confmf
4522   case `$am_make -s -f confmf 2> /dev/null` in #(
4523   *the\ am__doit\ target*)
4524     am__include=.include
4525     am__quote="\""
4526     _am_result=BSD
4527     ;;
4528   esac
4529fi
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4533$as_echo "$_am_result" >&6; }
4534rm -f confinc confmf
4535
4536# Check whether --enable-dependency-tracking was given.
4537if test "${enable_dependency_tracking+set}" = set; then :
4538  enableval=$enable_dependency_tracking;
4539fi
4540
4541if test "x$enable_dependency_tracking" != xno; then
4542  am_depcomp="$ac_aux_dir/depcomp"
4543  AMDEPBACKSLASH='\'
4544  am__nodep='_no'
4545fi
4546 if test "x$enable_dependency_tracking" != xno; then
4547  AMDEP_TRUE=
4548  AMDEP_FALSE='#'
4549else
4550  AMDEP_TRUE='#'
4551  AMDEP_FALSE=
4552fi
4553
4554
4555
4556depcc="$CC"   am_compiler_list=
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4559$as_echo_n "checking dependency style of $depcc... " >&6; }
4560if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4564  # We make a subdir and do the tests there.  Otherwise we can end up
4565  # making bogus files that we don't know about and never remove.  For
4566  # instance it was reported that on HP-UX the gcc test will end up
4567  # making a dummy file named 'D' -- because '-MD' means "put the output
4568  # in D".
4569  rm -rf conftest.dir
4570  mkdir conftest.dir
4571  # Copy depcomp to subdir because otherwise we won't find it if we're
4572  # using a relative directory.
4573  cp "$am_depcomp" conftest.dir
4574  cd conftest.dir
4575  # We will build objects and dependencies in a subdirectory because
4576  # it helps to detect inapplicable dependency modes.  For instance
4577  # both Tru64's cc and ICC support -MD to output dependencies as a
4578  # side effect of compilation, but ICC will put the dependencies in
4579  # the current directory while Tru64 will put them in the object
4580  # directory.
4581  mkdir sub
4582
4583  am_cv_CC_dependencies_compiler_type=none
4584  if test "$am_compiler_list" = ""; then
4585     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4586  fi
4587  am__universal=false
4588  case " $depcc " in #(
4589     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4590     esac
4591
4592  for depmode in $am_compiler_list; do
4593    # Setup a source with many dependencies, because some compilers
4594    # like to wrap large dependency lists on column 80 (with \), and
4595    # we should not choose a depcomp mode which is confused by this.
4596    #
4597    # We need to recreate these files for each test, as the compiler may
4598    # overwrite some of them when testing with obscure command lines.
4599    # This happens at least with the AIX C compiler.
4600    : > sub/conftest.c
4601    for i in 1 2 3 4 5 6; do
4602      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4603      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4604      # Solaris 10 /bin/sh.
4605      echo '/* dummy */' > sub/conftst$i.h
4606    done
4607    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4608
4609    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4610    # mode.  It turns out that the SunPro C++ compiler does not properly
4611    # handle '-M -o', and we need to detect this.  Also, some Intel
4612    # versions had trouble with output in subdirs.
4613    am__obj=sub/conftest.${OBJEXT-o}
4614    am__minus_obj="-o $am__obj"
4615    case $depmode in
4616    gcc)
4617      # This depmode causes a compiler race in universal mode.
4618      test "$am__universal" = false || continue
4619      ;;
4620    nosideeffect)
4621      # After this tag, mechanisms are not by side-effect, so they'll
4622      # only be used when explicitly requested.
4623      if test "x$enable_dependency_tracking" = xyes; then
4624	continue
4625      else
4626	break
4627      fi
4628      ;;
4629    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4630      # This compiler won't grok '-c -o', but also, the minuso test has
4631      # not run yet.  These depmodes are late enough in the game, and
4632      # so weak that their functioning should not be impacted.
4633      am__obj=conftest.${OBJEXT-o}
4634      am__minus_obj=
4635      ;;
4636    none) break ;;
4637    esac
4638    if depmode=$depmode \
4639       source=sub/conftest.c object=$am__obj \
4640       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4641       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4642         >/dev/null 2>conftest.err &&
4643       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4644       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4645       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4646       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4647      # icc doesn't choke on unknown options, it will just issue warnings
4648      # or remarks (even with -Werror).  So we grep stderr for any message
4649      # that says an option was ignored or not supported.
4650      # When given -MP, icc 7.0 and 7.1 complain thusly:
4651      #   icc: Command line warning: ignoring option '-M'; no argument required
4652      # The diagnosis changed in icc 8.0:
4653      #   icc: Command line remark: option '-MP' not supported
4654      if (grep 'ignoring option' conftest.err ||
4655          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4656        am_cv_CC_dependencies_compiler_type=$depmode
4657        break
4658      fi
4659    fi
4660  done
4661
4662  cd ..
4663  rm -rf conftest.dir
4664else
4665  am_cv_CC_dependencies_compiler_type=none
4666fi
4667
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4670$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4671CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4672
4673 if
4674  test "x$enable_dependency_tracking" != xno \
4675  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4676  am__fastdepCC_TRUE=
4677  am__fastdepCC_FALSE='#'
4678else
4679  am__fastdepCC_TRUE='#'
4680  am__fastdepCC_FALSE=
4681fi
4682
4683                            # (set CC to the name of the compiler)
4684
4685# -----------------------------------------------------------------------------
4686#  PROGRAMMING NOTE: The below 'AC_SUBST' macro causes AC_OUTPUT to replace
4687#  all instances of "@xxxxxx@" in input files with the value that the shell
4688#  variable "xxxxxx" has when AC_OUTPUT is called. However, we setup a define
4689#  for source files (MODULESDIR) and a variable for make ($(modexecdir)).  Any
4690#  other usage should be avoided.
4691# -----------------------------------------------------------------------------
4692
4693modexecdir='$(libdir)/$(PACKAGE)'
4694
4695
4696
4697# -----------------------------------------------------------------------------
4698#
4699#  AC_LIBTOOL_DLOPEN
4700#
4701#       Enable checking for dlopen support. This macro should be used if the
4702#       package makes use of the '-dlopen' and '-dlpreopen' flags, otherwise
4703#       libtool will assume that the system does not support dlopening. The
4704#       macro must be called before AC_PROG_LIBTOOL.
4705#
4706# -----------------------------------------------------------------------------
4707
4708
4709                     # (we need libtool's dlopen support)
4710
4711
4712# -----------------------------------------------------------------------------
4713#
4714#  AC_LIBTOOL_WIN32_DLL
4715#
4716#       This macro should be used if the package has been ported to build
4717#       clean dlls on win32 platforms. Usually this means that any library
4718#       data items are exported with __declspec(dllexport) and imported with
4719#       __declspec(dllimport). If this macro is not used, libtool will assume
4720#       that the package libraries are not dll clean and will build only static
4721#       libraries on win32 hosts.
4722#
4723#       This macro must be called before AC_PROG_LIBTOOL, and provision must
4724#       be made to pass '-no-undefined' to libtool in link mode from the package
4725#       Makefile. Naturally, if you pass '-no-undefined', you must ensure that
4726#       all the library symbols really are defined at link time!
4727#
4728# -----------------------------------------------------------------------------
4729
4730
4731                  # (we need Win32 support in libtool)
4732
4733
4734# -----------------------------------------------------------------------------
4735#  See: 'AC_PROG_LIBTOOL' below.
4736# -----------------------------------------------------------------------------
4737
4738# Check whether --enable-static was given.
4739if test "${enable_static+set}" = set; then :
4740  enableval=$enable_static; p=${PACKAGE-default}
4741    case $enableval in
4742    yes) enable_static=yes ;;
4743    no) enable_static=no ;;
4744    *)
4745     enable_static=no
4746      # Look at the argument we got.  We use all the common list separators.
4747      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4748      for pkg in $enableval; do
4749	IFS="$lt_save_ifs"
4750	if test "X$pkg" = "X$p"; then
4751	  enable_static=yes
4752	fi
4753      done
4754      IFS="$lt_save_ifs"
4755      ;;
4756    esac
4757else
4758  enable_static=no
4759fi
4760
4761
4762                     # (forces libtool to build shared
4763
4764                                        #  libraries instead of static ones)
4765# -----------------------------------------------------------------------------
4766#  AC_PROG_LIBTOOL
4767#
4768#       Add support for the '--enable-shared' and '--disable-shared'
4769#       configure flags. By default, this macro turns on shared libraries
4770#       if they are available, and also enables static libraries if they
4771#       don't conflict with the shared libraries. You can modify these
4772#       defaults by calling either the AC_DISABLE_SHARED or AC_DISABLE_STATIC
4773#       macros.
4774#
4775#       Hercules REQUIRES shared libraries (i.e. DLLs), so we do indeed use
4776#       the AC_DISABLE_STATIC macro above.
4777#
4778# -----------------------------------------------------------------------------
4779
4780# Check whether --enable-shared was given.
4781if test "${enable_shared+set}" = set; then :
4782  enableval=$enable_shared; p=${PACKAGE-default}
4783    case $enableval in
4784    yes) enable_shared=yes ;;
4785    no) enable_shared=no ;;
4786    *)
4787      enable_shared=no
4788      # Look at the argument we got.  We use all the common list separators.
4789      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4790      for pkg in $enableval; do
4791	IFS="$lt_save_ifs"
4792	if test "X$pkg" = "X$p"; then
4793	  enable_shared=yes
4794	fi
4795      done
4796      IFS="$lt_save_ifs"
4797      ;;
4798    esac
4799else
4800  enable_shared=yes
4801fi
4802
4803
4804# Check whether --enable-fast-install was given.
4805if test "${enable_fast_install+set}" = set; then :
4806  enableval=$enable_fast_install; p=${PACKAGE-default}
4807    case $enableval in
4808    yes) enable_fast_install=yes ;;
4809    no) enable_fast_install=no ;;
4810    *)
4811      enable_fast_install=no
4812      # Look at the argument we got.  We use all the common list separators.
4813      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4814      for pkg in $enableval; do
4815	IFS="$lt_save_ifs"
4816	if test "X$pkg" = "X$p"; then
4817	  enable_fast_install=yes
4818	fi
4819      done
4820      IFS="$lt_save_ifs"
4821      ;;
4822    esac
4823else
4824  enable_fast_install=yes
4825fi
4826
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4829$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4830if ${lt_cv_path_SED+:} false; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  # Loop through the user's path and test for sed and gsed.
4834# Then use that list of sed's as ones to test for truncation.
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for lt_ac_prog in sed gsed; do
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4843        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4844      fi
4845    done
4846  done
4847done
4848lt_ac_max=0
4849lt_ac_count=0
4850# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4851# along with /bin/sed that truncates output.
4852for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4853  test ! -f $lt_ac_sed && break
4854  cat /dev/null > conftest.in
4855  lt_ac_count=0
4856  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4857  # Check for GNU sed and select it if it is found.
4858  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4859    lt_cv_path_SED=$lt_ac_sed
4860    break
4861  fi
4862  while true; do
4863    cat conftest.in conftest.in >conftest.tmp
4864    mv conftest.tmp conftest.in
4865    cp conftest.in conftest.nl
4866    echo >>conftest.nl
4867    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4868    cmp -s conftest.out conftest.nl || break
4869    # 10000 chars as input seems more than enough
4870    test $lt_ac_count -gt 10 && break
4871    lt_ac_count=`expr $lt_ac_count + 1`
4872    if test $lt_ac_count -gt $lt_ac_max; then
4873      lt_ac_max=$lt_ac_count
4874      lt_cv_path_SED=$lt_ac_sed
4875    fi
4876  done
4877done
4878SED=$lt_cv_path_SED
4879
4880fi
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4883$as_echo "$SED" >&6; }
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4886$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4887if ${ac_cv_path_GREP+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if test -z "$GREP"; then
4891  ac_path_GREP_found=false
4892  # Loop through the user's path and test for each of PROGNAME-LIST
4893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898    for ac_prog in grep ggrep; do
4899    for ac_exec_ext in '' $ac_executable_extensions; do
4900      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4901      as_fn_executable_p "$ac_path_GREP" || continue
4902# Check for GNU ac_path_GREP and select it if it is found.
4903  # Check for GNU $ac_path_GREP
4904case `"$ac_path_GREP" --version 2>&1` in
4905*GNU*)
4906  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4907*)
4908  ac_count=0
4909  $as_echo_n 0123456789 >"conftest.in"
4910  while :
4911  do
4912    cat "conftest.in" "conftest.in" >"conftest.tmp"
4913    mv "conftest.tmp" "conftest.in"
4914    cp "conftest.in" "conftest.nl"
4915    $as_echo 'GREP' >> "conftest.nl"
4916    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918    as_fn_arith $ac_count + 1 && ac_count=$as_val
4919    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4920      # Best one so far, save it but keep looking for a better one
4921      ac_cv_path_GREP="$ac_path_GREP"
4922      ac_path_GREP_max=$ac_count
4923    fi
4924    # 10*(2^10) chars as input seems more than enough
4925    test $ac_count -gt 10 && break
4926  done
4927  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928esac
4929
4930      $ac_path_GREP_found && break 3
4931    done
4932  done
4933  done
4934IFS=$as_save_IFS
4935  if test -z "$ac_cv_path_GREP"; then
4936    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937  fi
4938else
4939  ac_cv_path_GREP=$GREP
4940fi
4941
4942fi
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4944$as_echo "$ac_cv_path_GREP" >&6; }
4945 GREP="$ac_cv_path_GREP"
4946
4947
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4949$as_echo_n "checking for egrep... " >&6; }
4950if ${ac_cv_path_EGREP+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4954   then ac_cv_path_EGREP="$GREP -E"
4955   else
4956     if test -z "$EGREP"; then
4957  ac_path_EGREP_found=false
4958  # Loop through the user's path and test for each of PROGNAME-LIST
4959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4961do
4962  IFS=$as_save_IFS
4963  test -z "$as_dir" && as_dir=.
4964    for ac_prog in egrep; do
4965    for ac_exec_ext in '' $ac_executable_extensions; do
4966      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4967      as_fn_executable_p "$ac_path_EGREP" || continue
4968# Check for GNU ac_path_EGREP and select it if it is found.
4969  # Check for GNU $ac_path_EGREP
4970case `"$ac_path_EGREP" --version 2>&1` in
4971*GNU*)
4972  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4973*)
4974  ac_count=0
4975  $as_echo_n 0123456789 >"conftest.in"
4976  while :
4977  do
4978    cat "conftest.in" "conftest.in" >"conftest.tmp"
4979    mv "conftest.tmp" "conftest.in"
4980    cp "conftest.in" "conftest.nl"
4981    $as_echo 'EGREP' >> "conftest.nl"
4982    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4984    as_fn_arith $ac_count + 1 && ac_count=$as_val
4985    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4986      # Best one so far, save it but keep looking for a better one
4987      ac_cv_path_EGREP="$ac_path_EGREP"
4988      ac_path_EGREP_max=$ac_count
4989    fi
4990    # 10*(2^10) chars as input seems more than enough
4991    test $ac_count -gt 10 && break
4992  done
4993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4994esac
4995
4996      $ac_path_EGREP_found && break 3
4997    done
4998  done
4999  done
5000IFS=$as_save_IFS
5001  if test -z "$ac_cv_path_EGREP"; then
5002    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5003  fi
5004else
5005  ac_cv_path_EGREP=$EGREP
5006fi
5007
5008   fi
5009fi
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5011$as_echo "$ac_cv_path_EGREP" >&6; }
5012 EGREP="$ac_cv_path_EGREP"
5013
5014
5015
5016# Check whether --with-gnu-ld was given.
5017if test "${with_gnu_ld+set}" = set; then :
5018  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5019else
5020  with_gnu_ld=no
5021fi
5022
5023ac_prog=ld
5024if test "$GCC" = yes; then
5025  # Check if gcc -print-prog-name=ld gives a path.
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5027$as_echo_n "checking for ld used by $CC... " >&6; }
5028  case $host in
5029  *-*-mingw*)
5030    # gcc leaves a trailing carriage return which upsets mingw
5031    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5032  *)
5033    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5034  esac
5035  case $ac_prog in
5036    # Accept absolute paths.
5037    [\\/]* | ?:[\\/]*)
5038      re_direlt='/[^/][^/]*/\.\./'
5039      # Canonicalize the pathname of ld
5040      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5041      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5042	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5043      done
5044      test -z "$LD" && LD="$ac_prog"
5045      ;;
5046  "")
5047    # If it fails, then pretend we aren't using GCC.
5048    ac_prog=ld
5049    ;;
5050  *)
5051    # If it is relative, then search for the first ld in PATH.
5052    with_gnu_ld=unknown
5053    ;;
5054  esac
5055elif test "$with_gnu_ld" = yes; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5057$as_echo_n "checking for GNU ld... " >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5060$as_echo_n "checking for non-GNU ld... " >&6; }
5061fi
5062if ${lt_cv_path_LD+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  if test -z "$LD"; then
5066  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5067  for ac_dir in $PATH; do
5068    IFS="$lt_save_ifs"
5069    test -z "$ac_dir" && ac_dir=.
5070    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5071      lt_cv_path_LD="$ac_dir/$ac_prog"
5072      # Check to see if the program is GNU ld.  I'd rather use --version,
5073      # but apparently some GNU ld's only accept -v.
5074      # Break only if it was the GNU/non-GNU ld that we prefer.
5075      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5076      *GNU* | *'with BFD'*)
5077	test "$with_gnu_ld" != no && break
5078	;;
5079      *)
5080	test "$with_gnu_ld" != yes && break
5081	;;
5082      esac
5083    fi
5084  done
5085  IFS="$lt_save_ifs"
5086else
5087  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5088fi
5089fi
5090
5091LD="$lt_cv_path_LD"
5092if test -n "$LD"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5094$as_echo "$LD" >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5101$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5102if ${lt_cv_prog_gnu_ld+:} false; then :
5103  $as_echo_n "(cached) " >&6
5104else
5105  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5106case `$LD -v 2>&1 </dev/null` in
5107*GNU* | *'with BFD'*)
5108  lt_cv_prog_gnu_ld=yes
5109  ;;
5110*)
5111  lt_cv_prog_gnu_ld=no
5112  ;;
5113esac
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5116$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5117with_gnu_ld=$lt_cv_prog_gnu_ld
5118
5119
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5121$as_echo_n "checking for $LD option to reload object files... " >&6; }
5122if ${lt_cv_ld_reload_flag+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  lt_cv_ld_reload_flag='-r'
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5128$as_echo "$lt_cv_ld_reload_flag" >&6; }
5129reload_flag=$lt_cv_ld_reload_flag
5130case $reload_flag in
5131"" | " "*) ;;
5132*) reload_flag=" $reload_flag" ;;
5133esac
5134reload_cmds='$LD$reload_flag -o $output$reload_objs'
5135
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5137$as_echo_n "checking for BSD-compatible nm... " >&6; }
5138if ${lt_cv_path_NM+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  if test -n "$NM"; then
5142  # Let the user override the test.
5143  lt_cv_path_NM="$NM"
5144else
5145  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5146  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5147    IFS="$lt_save_ifs"
5148    test -z "$ac_dir" && ac_dir=.
5149    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5150    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5151      # Check to see if the nm accepts a BSD-compat flag.
5152      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5153      #   nm: unknown option "B" ignored
5154      # Tru64's nm complains that /dev/null is an invalid object file
5155      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5156      */dev/null* | *'Invalid file or object type'*)
5157	lt_cv_path_NM="$tmp_nm -B"
5158	break
5159        ;;
5160      *)
5161	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5162	*/dev/null*)
5163	  lt_cv_path_NM="$tmp_nm -p"
5164	  break
5165	  ;;
5166	*)
5167	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5168	  continue # so that we can try to find one that supports BSD flags
5169	  ;;
5170	esac
5171      esac
5172    fi
5173  done
5174  IFS="$lt_save_ifs"
5175  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5176fi
5177fi
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5179$as_echo "$lt_cv_path_NM" >&6; }
5180NM="$lt_cv_path_NM"
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5183$as_echo_n "checking whether ln -s works... " >&6; }
5184LN_S=$as_ln_s
5185if test "$LN_S" = "ln -s"; then
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5187$as_echo "yes" >&6; }
5188else
5189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5190$as_echo "no, using $LN_S" >&6; }
5191fi
5192
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5194$as_echo_n "checking how to recognise dependent libraries... " >&6; }
5195if ${lt_cv_deplibs_check_method+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  lt_cv_file_magic_cmd='$MAGIC_CMD'
5199lt_cv_file_magic_test_file=
5200lt_cv_deplibs_check_method='unknown'
5201# Need to set the preceding variable on all platforms that support
5202# interlibrary dependencies.
5203# 'none' -- dependencies not supported.
5204# `unknown' -- same as none, but documents that we really don't know.
5205# 'pass_all' -- all dependencies passed with no checks.
5206# 'test_compile' -- check by making test program.
5207# 'file_magic [[regex]]' -- check by looking for files in library path
5208# which responds to the $file_magic_cmd with a given extended regex.
5209# If you have `file' or equivalent on your system and you're not sure
5210# whether `pass_all' will *always* work, you probably want this one.
5211
5212case $host_os in
5213aix4* | aix5*)
5214  lt_cv_deplibs_check_method=pass_all
5215  ;;
5216
5217beos*)
5218  lt_cv_deplibs_check_method=pass_all
5219  ;;
5220
5221bsdi4*)
5222  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5223  lt_cv_file_magic_cmd='/usr/bin/file -L'
5224  lt_cv_file_magic_test_file=/shlib/libc.so
5225  ;;
5226
5227cygwin* | mingw* | pw32*)
5228  # win32_libid is a shell function defined in ltmain.sh
5229  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5230  lt_cv_file_magic_cmd='win32_libid'
5231  ;;
5232
5233darwin* | rhapsody*)
5234  # this will be overwritten by pass_all, but leave it in just in case
5235  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5236  lt_cv_file_magic_cmd='/usr/bin/file -L'
5237  case "$host_os" in
5238  rhapsody* | darwin1.[012])
5239    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5240    ;;
5241  *) # Darwin 1.3 on
5242    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5243    ;;
5244  esac
5245  lt_cv_deplibs_check_method=pass_all
5246  ;;
5247
5248freebsd* | kfreebsd*-gnu)
5249  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5250    case $host_cpu in
5251    i*86 )
5252      # Not sure whether the presence of OpenBSD here was a mistake.
5253      # Let's accept both of them until this is cleared up.
5254      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5255      lt_cv_file_magic_cmd=/usr/bin/file
5256      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5257      ;;
5258    esac
5259  else
5260    lt_cv_deplibs_check_method=pass_all
5261  fi
5262  ;;
5263
5264gnu*)
5265  lt_cv_deplibs_check_method=pass_all
5266  ;;
5267
5268hpux10.20* | hpux11*)
5269  lt_cv_file_magic_cmd=/usr/bin/file
5270  case "$host_cpu" in
5271  ia64*)
5272    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5273    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5274    ;;
5275  hppa*64*)
5276    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5277    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5278    ;;
5279  *)
5280    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5281    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5282    ;;
5283  esac
5284  ;;
5285
5286irix5* | irix6* | nonstopux*)
5287  case $host_os in
5288  irix5* | nonstopux*)
5289    # this will be overridden with pass_all, but let us keep it just in case
5290    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5291    ;;
5292  *)
5293    case $LD in
5294    *-32|*"-32 ") libmagic=32-bit;;
5295    *-n32|*"-n32 ") libmagic=N32;;
5296    *-64|*"-64 ") libmagic=64-bit;;
5297    *) libmagic=never-match;;
5298    esac
5299    # this will be overridden with pass_all, but let us keep it just in case
5300    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5301    ;;
5302  esac
5303  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5304  lt_cv_deplibs_check_method=pass_all
5305  ;;
5306
5307# This must be Linux ELF.
5308linux*)
5309  case $host_cpu in
5310  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64)
5311    lt_cv_deplibs_check_method=pass_all ;;
5312  *)
5313    # glibc up to 2.1.1 does not perform some relocations on ARM
5314    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5315  esac
5316  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5317  ;;
5318
5319netbsd*)
5320  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322  else
5323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5324  fi
5325  ;;
5326
5327newos6*)
5328  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5329  lt_cv_file_magic_cmd=/usr/bin/file
5330  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5331  ;;
5332
5333nto-qnx*)
5334  lt_cv_deplibs_check_method=unknown
5335  ;;
5336
5337openbsd*)
5338  lt_cv_file_magic_cmd=/usr/bin/file
5339  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5340  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5341    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5342  else
5343    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5344  fi
5345  ;;
5346
5347osf3* | osf4* | osf5*)
5348  # this will be overridden with pass_all, but let us keep it just in case
5349  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5350  lt_cv_file_magic_test_file=/shlib/libc.so
5351  lt_cv_deplibs_check_method=pass_all
5352  ;;
5353
5354sco3.2v5*)
5355  lt_cv_deplibs_check_method=pass_all
5356  ;;
5357
5358solaris*)
5359  lt_cv_deplibs_check_method=pass_all
5360  lt_cv_file_magic_test_file=/lib/libc.so
5361  ;;
5362
5363sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5364  case $host_vendor in
5365  motorola)
5366    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]'
5367    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5368    ;;
5369  ncr)
5370    lt_cv_deplibs_check_method=pass_all
5371    ;;
5372  sequent)
5373    lt_cv_file_magic_cmd='/bin/file'
5374    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5375    ;;
5376  sni)
5377    lt_cv_file_magic_cmd='/bin/file'
5378    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5379    lt_cv_file_magic_test_file=/lib/libc.so
5380    ;;
5381  siemens)
5382    lt_cv_deplibs_check_method=pass_all
5383    ;;
5384  esac
5385  ;;
5386
5387sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5388  lt_cv_deplibs_check_method=pass_all
5389  ;;
5390esac
5391
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5394$as_echo "$lt_cv_deplibs_check_method" >&6; }
5395file_magic_cmd=$lt_cv_file_magic_cmd
5396deplibs_check_method=$lt_cv_deplibs_check_method
5397test -z "$deplibs_check_method" && deplibs_check_method=unknown
5398
5399
5400
5401
5402# If no C compiler was specified, use CC.
5403LTCC=${LTCC-"$CC"}
5404
5405# Allow CC to be a program name with arguments.
5406compiler=$CC
5407
5408
5409# Check whether --enable-libtool-lock was given.
5410if test "${enable_libtool_lock+set}" = set; then :
5411  enableval=$enable_libtool_lock;
5412fi
5413
5414test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5415
5416# Some flags need to be propagated to the compiler or linker for good
5417# libtool support.
5418case $host in
5419ia64-*-hpux*)
5420  # Find out which ABI we are using.
5421  echo 'int i;' > conftest.$ac_ext
5422  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5423  (eval $ac_compile) 2>&5
5424  ac_status=$?
5425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426  test $ac_status = 0; }; then
5427    case `/usr/bin/file conftest.$ac_objext` in
5428    *ELF-32*)
5429      HPUX_IA64_MODE="32"
5430      ;;
5431    *ELF-64*)
5432      HPUX_IA64_MODE="64"
5433      ;;
5434    esac
5435  fi
5436  rm -rf conftest*
5437  ;;
5438*-*-irix6*)
5439  # Find out which ABI we are using.
5440  echo '#line 5440 "configure"' > conftest.$ac_ext
5441  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5442  (eval $ac_compile) 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445  test $ac_status = 0; }; then
5446   if test "$lt_cv_prog_gnu_ld" = yes; then
5447    case `/usr/bin/file conftest.$ac_objext` in
5448    *32-bit*)
5449      LD="${LD-ld} -melf32bsmip"
5450      ;;
5451    *N32*)
5452      LD="${LD-ld} -melf32bmipn32"
5453      ;;
5454    *64-bit*)
5455      LD="${LD-ld} -melf64bmip"
5456      ;;
5457    esac
5458   else
5459    case `/usr/bin/file conftest.$ac_objext` in
5460    *32-bit*)
5461      LD="${LD-ld} -32"
5462      ;;
5463    *N32*)
5464      LD="${LD-ld} -n32"
5465      ;;
5466    *64-bit*)
5467      LD="${LD-ld} -64"
5468      ;;
5469    esac
5470   fi
5471  fi
5472  rm -rf conftest*
5473  ;;
5474
5475x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5476  # Find out which ABI we are using.
5477  echo 'int i;' > conftest.$ac_ext
5478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5479  (eval $ac_compile) 2>&5
5480  ac_status=$?
5481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482  test $ac_status = 0; }; then
5483    case "`/usr/bin/file conftest.o`" in
5484    *32-bit*)
5485      case $host in
5486        x86_64-*linux*)
5487          LD="${LD-ld} -m elf_i386"
5488          ;;
5489        ppc64-*linux*|powerpc64-*linux*)
5490          LD="${LD-ld} -m elf32ppclinux"
5491          ;;
5492        s390x-*linux*)
5493          LD="${LD-ld} -m elf_s390"
5494          ;;
5495        sparc64-*linux*)
5496          LD="${LD-ld} -m elf32_sparc"
5497          ;;
5498      esac
5499      ;;
5500    *64-bit*)
5501      case $host in
5502        x86_64-*linux*)
5503          LD="${LD-ld} -m elf_x86_64"
5504          ;;
5505        ppc*-*linux*|powerpc*-*linux*)
5506          LD="${LD-ld} -m elf64ppc"
5507          ;;
5508        s390*-*linux*)
5509          LD="${LD-ld} -m elf64_s390"
5510          ;;
5511        sparc*-*linux*)
5512          LD="${LD-ld} -m elf64_sparc"
5513          ;;
5514      esac
5515      ;;
5516    esac
5517  fi
5518  rm -rf conftest*
5519  ;;
5520
5521*-*-sco3.2v5*)
5522  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5523  SAVE_CFLAGS="$CFLAGS"
5524  CFLAGS="$CFLAGS -belf"
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5526$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5527if ${lt_cv_cc_needs_belf+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
5536     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538
5539int
5540main ()
5541{
5542
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547if ac_fn_c_try_link "$LINENO"; then :
5548  lt_cv_cc_needs_belf=yes
5549else
5550  lt_cv_cc_needs_belf=no
5551fi
5552rm -f core conftest.err conftest.$ac_objext \
5553    conftest$ac_exeext conftest.$ac_ext
5554     ac_ext=c
5555ac_cpp='$CPP $CPPFLAGS'
5556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5562$as_echo "$lt_cv_cc_needs_belf" >&6; }
5563  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5564    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5565    CFLAGS="$SAVE_CFLAGS"
5566  fi
5567  ;;
5568*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5569  if test -n "$ac_tool_prefix"; then
5570  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5571set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573$as_echo_n "checking for $ac_word... " >&6; }
5574if ${ac_cv_prog_DLLTOOL+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  if test -n "$DLLTOOL"; then
5578  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583  IFS=$as_save_IFS
5584  test -z "$as_dir" && as_dir=.
5585    for ac_exec_ext in '' $ac_executable_extensions; do
5586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589    break 2
5590  fi
5591done
5592  done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597DLLTOOL=$ac_cv_prog_DLLTOOL
5598if test -n "$DLLTOOL"; then
5599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5600$as_echo "$DLLTOOL" >&6; }
5601else
5602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }
5604fi
5605
5606
5607fi
5608if test -z "$ac_cv_prog_DLLTOOL"; then
5609  ac_ct_DLLTOOL=$DLLTOOL
5610  # Extract the first word of "dlltool", so it can be a program name with args.
5611set dummy dlltool; ac_word=$2
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613$as_echo_n "checking for $ac_word... " >&6; }
5614if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5615  $as_echo_n "(cached) " >&6
5616else
5617  if test -n "$ac_ct_DLLTOOL"; then
5618  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623  IFS=$as_save_IFS
5624  test -z "$as_dir" && as_dir=.
5625    for ac_exec_ext in '' $ac_executable_extensions; do
5626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629    break 2
5630  fi
5631done
5632  done
5633IFS=$as_save_IFS
5634
5635fi
5636fi
5637ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5638if test -n "$ac_ct_DLLTOOL"; then
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5640$as_echo "$ac_ct_DLLTOOL" >&6; }
5641else
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645
5646  if test "x$ac_ct_DLLTOOL" = x; then
5647    DLLTOOL="false"
5648  else
5649    case $cross_compiling:$ac_tool_warned in
5650yes:)
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653ac_tool_warned=yes ;;
5654esac
5655    DLLTOOL=$ac_ct_DLLTOOL
5656  fi
5657else
5658  DLLTOOL="$ac_cv_prog_DLLTOOL"
5659fi
5660
5661  if test -n "$ac_tool_prefix"; then
5662  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5663set dummy ${ac_tool_prefix}as; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665$as_echo_n "checking for $ac_word... " >&6; }
5666if ${ac_cv_prog_AS+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if test -n "$AS"; then
5670  ac_cv_prog_AS="$AS" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677    for ac_exec_ext in '' $ac_executable_extensions; do
5678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679    ac_cv_prog_AS="${ac_tool_prefix}as"
5680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681    break 2
5682  fi
5683done
5684  done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689AS=$ac_cv_prog_AS
5690if test -n "$AS"; then
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5692$as_echo "$AS" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }
5696fi
5697
5698
5699fi
5700if test -z "$ac_cv_prog_AS"; then
5701  ac_ct_AS=$AS
5702  # Extract the first word of "as", so it can be a program name with args.
5703set dummy as; ac_word=$2
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705$as_echo_n "checking for $ac_word... " >&6; }
5706if ${ac_cv_prog_ac_ct_AS+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  if test -n "$ac_ct_AS"; then
5710  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  test -z "$as_dir" && as_dir=.
5717    for ac_exec_ext in '' $ac_executable_extensions; do
5718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719    ac_cv_prog_ac_ct_AS="as"
5720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721    break 2
5722  fi
5723done
5724  done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729ac_ct_AS=$ac_cv_prog_ac_ct_AS
5730if test -n "$ac_ct_AS"; then
5731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5732$as_echo "$ac_ct_AS" >&6; }
5733else
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736fi
5737
5738  if test "x$ac_ct_AS" = x; then
5739    AS="false"
5740  else
5741    case $cross_compiling:$ac_tool_warned in
5742yes:)
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745ac_tool_warned=yes ;;
5746esac
5747    AS=$ac_ct_AS
5748  fi
5749else
5750  AS="$ac_cv_prog_AS"
5751fi
5752
5753  if test -n "$ac_tool_prefix"; then
5754  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}objdump; ac_word=$2
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757$as_echo_n "checking for $ac_word... " >&6; }
5758if ${ac_cv_prog_OBJDUMP+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  if test -n "$OBJDUMP"; then
5762  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767  IFS=$as_save_IFS
5768  test -z "$as_dir" && as_dir=.
5769    for ac_exec_ext in '' $ac_executable_extensions; do
5770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776  done
5777IFS=$as_save_IFS
5778
5779fi
5780fi
5781OBJDUMP=$ac_cv_prog_OBJDUMP
5782if test -n "$OBJDUMP"; then
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5784$as_echo "$OBJDUMP" >&6; }
5785else
5786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787$as_echo "no" >&6; }
5788fi
5789
5790
5791fi
5792if test -z "$ac_cv_prog_OBJDUMP"; then
5793  ac_ct_OBJDUMP=$OBJDUMP
5794  # Extract the first word of "objdump", so it can be a program name with args.
5795set dummy objdump; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  if test -n "$ac_ct_OBJDUMP"; then
5802  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809    for ac_exec_ext in '' $ac_executable_extensions; do
5810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816  done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5822if test -n "$ac_ct_OBJDUMP"; then
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5824$as_echo "$ac_ct_OBJDUMP" >&6; }
5825else
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830  if test "x$ac_ct_OBJDUMP" = x; then
5831    OBJDUMP="false"
5832  else
5833    case $cross_compiling:$ac_tool_warned in
5834yes:)
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837ac_tool_warned=yes ;;
5838esac
5839    OBJDUMP=$ac_ct_OBJDUMP
5840  fi
5841else
5842  OBJDUMP="$ac_cv_prog_OBJDUMP"
5843fi
5844
5845  ;;
5846
5847esac
5848
5849need_locks="$enable_libtool_lock"
5850
5851
5852ac_ext=c
5853ac_cpp='$CPP $CPPFLAGS'
5854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5858$as_echo_n "checking how to run the C preprocessor... " >&6; }
5859# On Suns, sometimes $CPP names a directory.
5860if test -n "$CPP" && test -d "$CPP"; then
5861  CPP=
5862fi
5863if test -z "$CPP"; then
5864  if ${ac_cv_prog_CPP+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867      # Double quotes because CPP needs to be expanded
5868    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5869    do
5870      ac_preproc_ok=false
5871for ac_c_preproc_warn_flag in '' yes
5872do
5873  # Use a header file that comes with gcc, so configuring glibc
5874  # with a fresh cross-compiler works.
5875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876  # <limits.h> exists even on freestanding compilers.
5877  # On the NeXT, cc -E runs the code through the compiler's parser,
5878  # not just through cpp. "Syntax error" is here to catch this case.
5879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h.  */
5881#ifdef __STDC__
5882# include <limits.h>
5883#else
5884# include <assert.h>
5885#endif
5886		     Syntax error
5887_ACEOF
5888if ac_fn_c_try_cpp "$LINENO"; then :
5889
5890else
5891  # Broken: fails on valid input.
5892continue
5893fi
5894rm -f conftest.err conftest.i conftest.$ac_ext
5895
5896  # OK, works on sane cases.  Now check whether nonexistent headers
5897  # can be detected and how.
5898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h.  */
5900#include <ac_nonexistent.h>
5901_ACEOF
5902if ac_fn_c_try_cpp "$LINENO"; then :
5903  # Broken: success on invalid input.
5904continue
5905else
5906  # Passes both tests.
5907ac_preproc_ok=:
5908break
5909fi
5910rm -f conftest.err conftest.i conftest.$ac_ext
5911
5912done
5913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5914rm -f conftest.i conftest.err conftest.$ac_ext
5915if $ac_preproc_ok; then :
5916  break
5917fi
5918
5919    done
5920    ac_cv_prog_CPP=$CPP
5921
5922fi
5923  CPP=$ac_cv_prog_CPP
5924else
5925  ac_cv_prog_CPP=$CPP
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5928$as_echo "$CPP" >&6; }
5929ac_preproc_ok=false
5930for ac_c_preproc_warn_flag in '' yes
5931do
5932  # Use a header file that comes with gcc, so configuring glibc
5933  # with a fresh cross-compiler works.
5934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935  # <limits.h> exists even on freestanding compilers.
5936  # On the NeXT, cc -E runs the code through the compiler's parser,
5937  # not just through cpp. "Syntax error" is here to catch this case.
5938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939/* end confdefs.h.  */
5940#ifdef __STDC__
5941# include <limits.h>
5942#else
5943# include <assert.h>
5944#endif
5945		     Syntax error
5946_ACEOF
5947if ac_fn_c_try_cpp "$LINENO"; then :
5948
5949else
5950  # Broken: fails on valid input.
5951continue
5952fi
5953rm -f conftest.err conftest.i conftest.$ac_ext
5954
5955  # OK, works on sane cases.  Now check whether nonexistent headers
5956  # can be detected and how.
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959#include <ac_nonexistent.h>
5960_ACEOF
5961if ac_fn_c_try_cpp "$LINENO"; then :
5962  # Broken: success on invalid input.
5963continue
5964else
5965  # Passes both tests.
5966ac_preproc_ok=:
5967break
5968fi
5969rm -f conftest.err conftest.i conftest.$ac_ext
5970
5971done
5972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5973rm -f conftest.i conftest.err conftest.$ac_ext
5974if $ac_preproc_ok; then :
5975
5976else
5977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5979as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5980See \`config.log' for more details" "$LINENO" 5; }
5981fi
5982
5983ac_ext=c
5984ac_cpp='$CPP $CPPFLAGS'
5985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988
5989
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5991$as_echo_n "checking for ANSI C header files... " >&6; }
5992if ${ac_cv_header_stdc+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997#include <stdlib.h>
5998#include <stdarg.h>
5999#include <string.h>
6000#include <float.h>
6001
6002int
6003main ()
6004{
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"; then :
6011  ac_cv_header_stdc=yes
6012else
6013  ac_cv_header_stdc=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016
6017if test $ac_cv_header_stdc = yes; then
6018  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h.  */
6021#include <string.h>
6022
6023_ACEOF
6024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025  $EGREP "memchr" >/dev/null 2>&1; then :
6026
6027else
6028  ac_cv_header_stdc=no
6029fi
6030rm -f conftest*
6031
6032fi
6033
6034if test $ac_cv_header_stdc = yes; then
6035  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038#include <stdlib.h>
6039
6040_ACEOF
6041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042  $EGREP "free" >/dev/null 2>&1; then :
6043
6044else
6045  ac_cv_header_stdc=no
6046fi
6047rm -f conftest*
6048
6049fi
6050
6051if test $ac_cv_header_stdc = yes; then
6052  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6053  if test "$cross_compiling" = yes; then :
6054  :
6055else
6056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057/* end confdefs.h.  */
6058#include <ctype.h>
6059#include <stdlib.h>
6060#if ((' ' & 0x0FF) == 0x020)
6061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6063#else
6064# define ISLOWER(c) \
6065		   (('a' <= (c) && (c) <= 'i') \
6066		     || ('j' <= (c) && (c) <= 'r') \
6067		     || ('s' <= (c) && (c) <= 'z'))
6068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6069#endif
6070
6071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6072int
6073main ()
6074{
6075  int i;
6076  for (i = 0; i < 256; i++)
6077    if (XOR (islower (i), ISLOWER (i))
6078	|| toupper (i) != TOUPPER (i))
6079      return 2;
6080  return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_run "$LINENO"; then :
6084
6085else
6086  ac_cv_header_stdc=no
6087fi
6088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6089  conftest.$ac_objext conftest.beam conftest.$ac_ext
6090fi
6091
6092fi
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6095$as_echo "$ac_cv_header_stdc" >&6; }
6096if test $ac_cv_header_stdc = yes; then
6097
6098$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6099
6100fi
6101
6102# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6103for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6104		  inttypes.h stdint.h unistd.h
6105do :
6106  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6108"
6109if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6110  cat >>confdefs.h <<_ACEOF
6111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112_ACEOF
6113
6114fi
6115
6116done
6117
6118
6119for ac_header in dlfcn.h
6120do :
6121  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6122if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6123  cat >>confdefs.h <<_ACEOF
6124#define HAVE_DLFCN_H 1
6125_ACEOF
6126
6127fi
6128
6129done
6130
6131ac_ext=cpp
6132ac_cpp='$CXXCPP $CPPFLAGS'
6133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6136if test -z "$CXX"; then
6137  if test -n "$CCC"; then
6138    CXX=$CCC
6139  else
6140    if test -n "$ac_tool_prefix"; then
6141  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6142  do
6143    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if ${ac_cv_prog_CXX+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  if test -n "$CXX"; then
6151  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156  IFS=$as_save_IFS
6157  test -z "$as_dir" && as_dir=.
6158    for ac_exec_ext in '' $ac_executable_extensions; do
6159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162    break 2
6163  fi
6164done
6165  done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170CXX=$ac_cv_prog_CXX
6171if test -n "$CXX"; then
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6173$as_echo "$CXX" >&6; }
6174else
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179
6180    test -n "$CXX" && break
6181  done
6182fi
6183if test -z "$CXX"; then
6184  ac_ct_CXX=$CXX
6185  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6186do
6187  # Extract the first word of "$ac_prog", so it can be a program name with args.
6188set dummy $ac_prog; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  if test -n "$ac_ct_CXX"; then
6195  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202    for ac_exec_ext in '' $ac_executable_extensions; do
6203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204    ac_cv_prog_ac_ct_CXX="$ac_prog"
6205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209  done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6215if test -n "$ac_ct_CXX"; then
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6217$as_echo "$ac_ct_CXX" >&6; }
6218else
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223
6224  test -n "$ac_ct_CXX" && break
6225done
6226
6227  if test "x$ac_ct_CXX" = x; then
6228    CXX="g++"
6229  else
6230    case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236    CXX=$ac_ct_CXX
6237  fi
6238fi
6239
6240  fi
6241fi
6242# Provide some information about the compiler.
6243$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6244set X $ac_compile
6245ac_compiler=$2
6246for ac_option in --version -v -V -qversion; do
6247  { { ac_try="$ac_compiler $ac_option >&5"
6248case "(($ac_try" in
6249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250  *) ac_try_echo=$ac_try;;
6251esac
6252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6253$as_echo "$ac_try_echo"; } >&5
6254  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6255  ac_status=$?
6256  if test -s conftest.err; then
6257    sed '10a\
6258... rest of stderr output deleted ...
6259         10q' conftest.err >conftest.er1
6260    cat conftest.er1 >&5
6261  fi
6262  rm -f conftest.er1 conftest.err
6263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264  test $ac_status = 0; }
6265done
6266
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6268$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6269if ${ac_cv_cxx_compiler_gnu+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274
6275int
6276main ()
6277{
6278#ifndef __GNUC__
6279       choke me
6280#endif
6281
6282  ;
6283  return 0;
6284}
6285_ACEOF
6286if ac_fn_cxx_try_compile "$LINENO"; then :
6287  ac_compiler_gnu=yes
6288else
6289  ac_compiler_gnu=no
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6293
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6296$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6297if test $ac_compiler_gnu = yes; then
6298  GXX=yes
6299else
6300  GXX=
6301fi
6302ac_test_CXXFLAGS=${CXXFLAGS+set}
6303ac_save_CXXFLAGS=$CXXFLAGS
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6305$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6306if ${ac_cv_prog_cxx_g+:} false; then :
6307  $as_echo_n "(cached) " >&6
6308else
6309  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6310   ac_cxx_werror_flag=yes
6311   ac_cv_prog_cxx_g=no
6312   CXXFLAGS="-g"
6313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h.  */
6315
6316int
6317main ()
6318{
6319
6320  ;
6321  return 0;
6322}
6323_ACEOF
6324if ac_fn_cxx_try_compile "$LINENO"; then :
6325  ac_cv_prog_cxx_g=yes
6326else
6327  CXXFLAGS=""
6328      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330
6331int
6332main ()
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339if ac_fn_cxx_try_compile "$LINENO"; then :
6340
6341else
6342  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6343	 CXXFLAGS="-g"
6344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346
6347int
6348main ()
6349{
6350
6351  ;
6352  return 0;
6353}
6354_ACEOF
6355if ac_fn_cxx_try_compile "$LINENO"; then :
6356  ac_cv_prog_cxx_g=yes
6357fi
6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6366$as_echo "$ac_cv_prog_cxx_g" >&6; }
6367if test "$ac_test_CXXFLAGS" = set; then
6368  CXXFLAGS=$ac_save_CXXFLAGS
6369elif test $ac_cv_prog_cxx_g = yes; then
6370  if test "$GXX" = yes; then
6371    CXXFLAGS="-g -O2"
6372  else
6373    CXXFLAGS="-g"
6374  fi
6375else
6376  if test "$GXX" = yes; then
6377    CXXFLAGS="-O2"
6378  else
6379    CXXFLAGS=
6380  fi
6381fi
6382ac_ext=cpp
6383ac_cpp='$CXXCPP $CPPFLAGS'
6384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6387
6388depcc="$CXX"  am_compiler_list=
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6391$as_echo_n "checking dependency style of $depcc... " >&6; }
6392if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6396  # We make a subdir and do the tests there.  Otherwise we can end up
6397  # making bogus files that we don't know about and never remove.  For
6398  # instance it was reported that on HP-UX the gcc test will end up
6399  # making a dummy file named 'D' -- because '-MD' means "put the output
6400  # in D".
6401  rm -rf conftest.dir
6402  mkdir conftest.dir
6403  # Copy depcomp to subdir because otherwise we won't find it if we're
6404  # using a relative directory.
6405  cp "$am_depcomp" conftest.dir
6406  cd conftest.dir
6407  # We will build objects and dependencies in a subdirectory because
6408  # it helps to detect inapplicable dependency modes.  For instance
6409  # both Tru64's cc and ICC support -MD to output dependencies as a
6410  # side effect of compilation, but ICC will put the dependencies in
6411  # the current directory while Tru64 will put them in the object
6412  # directory.
6413  mkdir sub
6414
6415  am_cv_CXX_dependencies_compiler_type=none
6416  if test "$am_compiler_list" = ""; then
6417     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6418  fi
6419  am__universal=false
6420  case " $depcc " in #(
6421     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6422     esac
6423
6424  for depmode in $am_compiler_list; do
6425    # Setup a source with many dependencies, because some compilers
6426    # like to wrap large dependency lists on column 80 (with \), and
6427    # we should not choose a depcomp mode which is confused by this.
6428    #
6429    # We need to recreate these files for each test, as the compiler may
6430    # overwrite some of them when testing with obscure command lines.
6431    # This happens at least with the AIX C compiler.
6432    : > sub/conftest.c
6433    for i in 1 2 3 4 5 6; do
6434      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6435      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6436      # Solaris 10 /bin/sh.
6437      echo '/* dummy */' > sub/conftst$i.h
6438    done
6439    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6440
6441    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6442    # mode.  It turns out that the SunPro C++ compiler does not properly
6443    # handle '-M -o', and we need to detect this.  Also, some Intel
6444    # versions had trouble with output in subdirs.
6445    am__obj=sub/conftest.${OBJEXT-o}
6446    am__minus_obj="-o $am__obj"
6447    case $depmode in
6448    gcc)
6449      # This depmode causes a compiler race in universal mode.
6450      test "$am__universal" = false || continue
6451      ;;
6452    nosideeffect)
6453      # After this tag, mechanisms are not by side-effect, so they'll
6454      # only be used when explicitly requested.
6455      if test "x$enable_dependency_tracking" = xyes; then
6456	continue
6457      else
6458	break
6459      fi
6460      ;;
6461    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6462      # This compiler won't grok '-c -o', but also, the minuso test has
6463      # not run yet.  These depmodes are late enough in the game, and
6464      # so weak that their functioning should not be impacted.
6465      am__obj=conftest.${OBJEXT-o}
6466      am__minus_obj=
6467      ;;
6468    none) break ;;
6469    esac
6470    if depmode=$depmode \
6471       source=sub/conftest.c object=$am__obj \
6472       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6473       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6474         >/dev/null 2>conftest.err &&
6475       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6476       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6477       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6478       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6479      # icc doesn't choke on unknown options, it will just issue warnings
6480      # or remarks (even with -Werror).  So we grep stderr for any message
6481      # that says an option was ignored or not supported.
6482      # When given -MP, icc 7.0 and 7.1 complain thusly:
6483      #   icc: Command line warning: ignoring option '-M'; no argument required
6484      # The diagnosis changed in icc 8.0:
6485      #   icc: Command line remark: option '-MP' not supported
6486      if (grep 'ignoring option' conftest.err ||
6487          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6488        am_cv_CXX_dependencies_compiler_type=$depmode
6489        break
6490      fi
6491    fi
6492  done
6493
6494  cd ..
6495  rm -rf conftest.dir
6496else
6497  am_cv_CXX_dependencies_compiler_type=none
6498fi
6499
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6502$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6503CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6504
6505 if
6506  test "x$enable_dependency_tracking" != xno \
6507  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6508  am__fastdepCXX_TRUE=
6509  am__fastdepCXX_FALSE='#'
6510else
6511  am__fastdepCXX_TRUE='#'
6512  am__fastdepCXX_FALSE=
6513fi
6514
6515
6516ac_ext=cpp
6517ac_cpp='$CXXCPP $CPPFLAGS'
6518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6522$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6523if test -z "$CXXCPP"; then
6524  if ${ac_cv_prog_CXXCPP+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527      # Double quotes because CXXCPP needs to be expanded
6528    for CXXCPP in "$CXX -E" "/lib/cpp"
6529    do
6530      ac_preproc_ok=false
6531for ac_cxx_preproc_warn_flag in '' yes
6532do
6533  # Use a header file that comes with gcc, so configuring glibc
6534  # with a fresh cross-compiler works.
6535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536  # <limits.h> exists even on freestanding compilers.
6537  # On the NeXT, cc -E runs the code through the compiler's parser,
6538  # not just through cpp. "Syntax error" is here to catch this case.
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541#ifdef __STDC__
6542# include <limits.h>
6543#else
6544# include <assert.h>
6545#endif
6546		     Syntax error
6547_ACEOF
6548if ac_fn_cxx_try_cpp "$LINENO"; then :
6549
6550else
6551  # Broken: fails on valid input.
6552continue
6553fi
6554rm -f conftest.err conftest.i conftest.$ac_ext
6555
6556  # OK, works on sane cases.  Now check whether nonexistent headers
6557  # can be detected and how.
6558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560#include <ac_nonexistent.h>
6561_ACEOF
6562if ac_fn_cxx_try_cpp "$LINENO"; then :
6563  # Broken: success on invalid input.
6564continue
6565else
6566  # Passes both tests.
6567ac_preproc_ok=:
6568break
6569fi
6570rm -f conftest.err conftest.i conftest.$ac_ext
6571
6572done
6573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6574rm -f conftest.i conftest.err conftest.$ac_ext
6575if $ac_preproc_ok; then :
6576  break
6577fi
6578
6579    done
6580    ac_cv_prog_CXXCPP=$CXXCPP
6581
6582fi
6583  CXXCPP=$ac_cv_prog_CXXCPP
6584else
6585  ac_cv_prog_CXXCPP=$CXXCPP
6586fi
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6588$as_echo "$CXXCPP" >&6; }
6589ac_preproc_ok=false
6590for ac_cxx_preproc_warn_flag in '' yes
6591do
6592  # Use a header file that comes with gcc, so configuring glibc
6593  # with a fresh cross-compiler works.
6594  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595  # <limits.h> exists even on freestanding compilers.
6596  # On the NeXT, cc -E runs the code through the compiler's parser,
6597  # not just through cpp. "Syntax error" is here to catch this case.
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600#ifdef __STDC__
6601# include <limits.h>
6602#else
6603# include <assert.h>
6604#endif
6605		     Syntax error
6606_ACEOF
6607if ac_fn_cxx_try_cpp "$LINENO"; then :
6608
6609else
6610  # Broken: fails on valid input.
6611continue
6612fi
6613rm -f conftest.err conftest.i conftest.$ac_ext
6614
6615  # OK, works on sane cases.  Now check whether nonexistent headers
6616  # can be detected and how.
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619#include <ac_nonexistent.h>
6620_ACEOF
6621if ac_fn_cxx_try_cpp "$LINENO"; then :
6622  # Broken: success on invalid input.
6623continue
6624else
6625  # Passes both tests.
6626ac_preproc_ok=:
6627break
6628fi
6629rm -f conftest.err conftest.i conftest.$ac_ext
6630
6631done
6632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6633rm -f conftest.i conftest.err conftest.$ac_ext
6634if $ac_preproc_ok; then :
6635
6636else
6637  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6639as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6640See \`config.log' for more details" "$LINENO" 5; }
6641fi
6642
6643ac_ext=cpp
6644ac_cpp='$CXXCPP $CPPFLAGS'
6645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648
6649
6650ac_ext=f
6651ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6652ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6653ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6654if test -n "$ac_tool_prefix"; then
6655  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6656  do
6657    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660$as_echo_n "checking for $ac_word... " >&6; }
6661if ${ac_cv_prog_F77+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  if test -n "$F77"; then
6665  ac_cv_prog_F77="$F77" # Let the user override the test.
6666else
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672    for ac_exec_ext in '' $ac_executable_extensions; do
6673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679  done
6680IFS=$as_save_IFS
6681
6682fi
6683fi
6684F77=$ac_cv_prog_F77
6685if test -n "$F77"; then
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6687$as_echo "$F77" >&6; }
6688else
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690$as_echo "no" >&6; }
6691fi
6692
6693
6694    test -n "$F77" && break
6695  done
6696fi
6697if test -z "$F77"; then
6698  ac_ct_F77=$F77
6699  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6700do
6701  # Extract the first word of "$ac_prog", so it can be a program name with args.
6702set dummy $ac_prog; ac_word=$2
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if ${ac_cv_prog_ac_ct_F77+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  if test -n "$ac_ct_F77"; then
6709  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716    for ac_exec_ext in '' $ac_executable_extensions; do
6717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718    ac_cv_prog_ac_ct_F77="$ac_prog"
6719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720    break 2
6721  fi
6722done
6723  done
6724IFS=$as_save_IFS
6725
6726fi
6727fi
6728ac_ct_F77=$ac_cv_prog_ac_ct_F77
6729if test -n "$ac_ct_F77"; then
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6731$as_echo "$ac_ct_F77" >&6; }
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736
6737
6738  test -n "$ac_ct_F77" && break
6739done
6740
6741  if test "x$ac_ct_F77" = x; then
6742    F77=""
6743  else
6744    case $cross_compiling:$ac_tool_warned in
6745yes:)
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748ac_tool_warned=yes ;;
6749esac
6750    F77=$ac_ct_F77
6751  fi
6752fi
6753
6754
6755# Provide some information about the compiler.
6756$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6757set X $ac_compile
6758ac_compiler=$2
6759for ac_option in --version -v -V -qversion; do
6760  { { ac_try="$ac_compiler $ac_option >&5"
6761case "(($ac_try" in
6762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763  *) ac_try_echo=$ac_try;;
6764esac
6765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6766$as_echo "$ac_try_echo"; } >&5
6767  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6768  ac_status=$?
6769  if test -s conftest.err; then
6770    sed '10a\
6771... rest of stderr output deleted ...
6772         10q' conftest.err >conftest.er1
6773    cat conftest.er1 >&5
6774  fi
6775  rm -f conftest.er1 conftest.err
6776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777  test $ac_status = 0; }
6778done
6779rm -f a.out
6780
6781# If we don't use `.F' as extension, the preprocessor is not run on the
6782# input file.  (Note that this only needs to work for GNU compilers.)
6783ac_save_ext=$ac_ext
6784ac_ext=F
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6786$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6787if ${ac_cv_f77_compiler_gnu+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  cat > conftest.$ac_ext <<_ACEOF
6791      program main
6792#ifndef __GNUC__
6793       choke me
6794#endif
6795
6796      end
6797_ACEOF
6798if ac_fn_f77_try_compile "$LINENO"; then :
6799  ac_compiler_gnu=yes
6800else
6801  ac_compiler_gnu=no
6802fi
6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6805
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6808$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6809ac_ext=$ac_save_ext
6810ac_test_FFLAGS=${FFLAGS+set}
6811ac_save_FFLAGS=$FFLAGS
6812FFLAGS=
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6814$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6815if ${ac_cv_prog_f77_g+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  FFLAGS=-g
6819cat > conftest.$ac_ext <<_ACEOF
6820      program main
6821
6822      end
6823_ACEOF
6824if ac_fn_f77_try_compile "$LINENO"; then :
6825  ac_cv_prog_f77_g=yes
6826else
6827  ac_cv_prog_f77_g=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6833$as_echo "$ac_cv_prog_f77_g" >&6; }
6834if test "$ac_test_FFLAGS" = set; then
6835  FFLAGS=$ac_save_FFLAGS
6836elif test $ac_cv_prog_f77_g = yes; then
6837  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6838    FFLAGS="-g -O2"
6839  else
6840    FFLAGS="-g"
6841  fi
6842else
6843  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6844    FFLAGS="-O2"
6845  else
6846    FFLAGS=
6847  fi
6848fi
6849
6850if test $ac_compiler_gnu = yes; then
6851  G77=yes
6852else
6853  G77=
6854fi
6855ac_ext=c
6856ac_cpp='$CPP $CPPFLAGS'
6857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860
6861
6862
6863# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6864
6865# find the maximum length of command line arguments
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6867$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6868if ${lt_cv_sys_max_cmd_len+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871    i=0
6872  testring="ABCD"
6873
6874  case $build_os in
6875  msdosdjgpp*)
6876    # On DJGPP, this test can blow up pretty badly due to problems in libc
6877    # (any single argument exceeding 2000 bytes causes a buffer overrun
6878    # during glob expansion).  Even if it were fixed, the result of this
6879    # check would be larger than it should be.
6880    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6881    ;;
6882
6883  gnu*)
6884    # Under GNU Hurd, this test is not required because there is
6885    # no limit to the length of command line arguments.
6886    # Libtool will interpret -1 as no limit whatsoever
6887    lt_cv_sys_max_cmd_len=-1;
6888    ;;
6889
6890  cygwin* | mingw*)
6891    # On Win9x/ME, this test blows up -- it succeeds, but takes
6892    # about 5 minutes as the teststring grows exponentially.
6893    # Worse, since 9x/ME are not pre-emptively multitasking,
6894    # you end up with a "frozen" computer, even though with patience
6895    # the test eventually succeeds (with a max line length of 256k).
6896    # Instead, let's just punt: use the minimum linelength reported by
6897    # all of the supported platforms: 8192 (on NT/2K/XP).
6898    lt_cv_sys_max_cmd_len=8192;
6899    ;;
6900
6901  amigaos*)
6902    # On AmigaOS with pdksh, this test takes hours, literally.
6903    # So we just punt and use a minimum line length of 8192.
6904    lt_cv_sys_max_cmd_len=8192;
6905    ;;
6906
6907 *)
6908    # If test is not a shell built-in, we'll probably end up computing a
6909    # maximum length that is only half of the actual maximum length, but
6910    # we can't tell.
6911    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6912	       = "XX$testring") >/dev/null 2>&1 &&
6913	    new_result=`expr "X$testring" : ".*" 2>&1` &&
6914	    lt_cv_sys_max_cmd_len=$new_result &&
6915	    test $i != 17 # 1/2 MB should be enough
6916    do
6917      i=`expr $i + 1`
6918      testring=$testring$testring
6919    done
6920    testring=
6921    # Add a significant safety factor because C++ compilers can tack on massive
6922    # amounts of additional arguments before passing them to the linker.
6923    # It appears as though 1/2 is a usable value.
6924    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6925    ;;
6926  esac
6927
6928fi
6929
6930if test -n $lt_cv_sys_max_cmd_len ; then
6931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6932$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6933else
6934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6935$as_echo "none" >&6; }
6936fi
6937
6938
6939
6940
6941# Check for command to grab the raw symbol name followed by C symbol from nm.
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6943$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6944if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947
6948# These are sane defaults that work on at least a few old systems.
6949# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6950
6951# Character class describing NM global symbol codes.
6952symcode='[BCDEGRST]'
6953
6954# Regexp to match symbols that can be accessed directly from C.
6955sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6956
6957# Transform the above into a raw symbol and a C symbol.
6958symxfrm='\1 \2\3 \3'
6959
6960# Transform an extracted symbol line into a proper C declaration
6961lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6962
6963# Transform an extracted symbol line into symbol name and symbol address
6964lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6965
6966# Define system-specific variables.
6967case $host_os in
6968aix*)
6969  symcode='[BCDT]'
6970  ;;
6971cygwin* | mingw* | pw32*)
6972  symcode='[ABCDGISTW]'
6973  ;;
6974hpux*) # Its linker distinguishes data from code symbols
6975  if test "$host_cpu" = ia64; then
6976    symcode='[ABCDEGRST]'
6977  fi
6978  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6979  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6980  ;;
6981irix* | nonstopux*)
6982  symcode='[BCDEGRST]'
6983  ;;
6984osf*)
6985  symcode='[BCDEGQRST]'
6986  ;;
6987solaris* | sysv5*)
6988  symcode='[BDT]'
6989  ;;
6990sysv4)
6991  symcode='[DFNSTU]'
6992  ;;
6993esac
6994
6995# Handle CRLF in mingw tool chain
6996opt_cr=
6997case $build_os in
6998mingw*)
6999  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7000  ;;
7001esac
7002
7003# If we're using GNU nm, then use its standard symbol codes.
7004case `$NM -V 2>&1` in
7005*GNU* | *'with BFD'*)
7006  symcode='[ABCDGISTW]' ;;
7007esac
7008
7009# Try without a prefix undercore, then with it.
7010for ac_symprfx in "" "_"; do
7011
7012  # Write the raw and C identifiers.
7013  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7014
7015  # Check to see that the pipe works correctly.
7016  pipe_works=no
7017
7018  rm -f conftest*
7019  cat > conftest.$ac_ext <<EOF
7020#ifdef __cplusplus
7021extern "C" {
7022#endif
7023char nm_test_var;
7024void nm_test_func(){}
7025#ifdef __cplusplus
7026}
7027#endif
7028int main(){nm_test_var='a';nm_test_func();return(0);}
7029EOF
7030
7031  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7032  (eval $ac_compile) 2>&5
7033  ac_status=$?
7034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035  test $ac_status = 0; }; then
7036    # Now try to grab the symbols.
7037    nlist=conftest.nm
7038    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7039  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7040  ac_status=$?
7041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042  test $ac_status = 0; } && test -s "$nlist"; then
7043      # Try sorting and uniquifying the output.
7044      if sort "$nlist" | uniq > "$nlist"T; then
7045	mv -f "$nlist"T "$nlist"
7046      else
7047	rm -f "$nlist"T
7048      fi
7049
7050      # Make sure that we snagged all the symbols we need.
7051      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7052	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7053	  cat <<EOF > conftest.$ac_ext
7054#ifdef __cplusplus
7055extern "C" {
7056#endif
7057
7058EOF
7059	  # Now generate the symbol file.
7060	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7061
7062	  cat <<EOF >> conftest.$ac_ext
7063#if defined (__STDC__) && __STDC__
7064# define lt_ptr_t void *
7065#else
7066# define lt_ptr_t char *
7067# define const
7068#endif
7069
7070/* The mapping between symbol names and symbols. */
7071const struct {
7072  const char *name;
7073  lt_ptr_t address;
7074}
7075lt_preloaded_symbols[] =
7076{
7077EOF
7078	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7079	  cat <<\EOF >> conftest.$ac_ext
7080  {0, (lt_ptr_t) 0}
7081};
7082
7083#ifdef __cplusplus
7084}
7085#endif
7086EOF
7087	  # Now try linking the two files.
7088	  mv conftest.$ac_objext conftstm.$ac_objext
7089	  lt_save_LIBS="$LIBS"
7090	  lt_save_CFLAGS="$CFLAGS"
7091	  LIBS="conftstm.$ac_objext"
7092	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7093	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7094  (eval $ac_link) 2>&5
7095  ac_status=$?
7096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7098	    pipe_works=yes
7099	  fi
7100	  LIBS="$lt_save_LIBS"
7101	  CFLAGS="$lt_save_CFLAGS"
7102	else
7103	  echo "cannot find nm_test_func in $nlist" >&5
7104	fi
7105      else
7106	echo "cannot find nm_test_var in $nlist" >&5
7107      fi
7108    else
7109      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7110    fi
7111  else
7112    echo "$progname: failed program was:" >&5
7113    cat conftest.$ac_ext >&5
7114  fi
7115  rm -f conftest* conftst*
7116
7117  # Do not use the global_symbol_pipe unless it works.
7118  if test "$pipe_works" = yes; then
7119    break
7120  else
7121    lt_cv_sys_global_symbol_pipe=
7122  fi
7123done
7124
7125fi
7126
7127if test -z "$lt_cv_sys_global_symbol_pipe"; then
7128  lt_cv_sys_global_symbol_to_cdecl=
7129fi
7130if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7132$as_echo "failed" >&6; }
7133else
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7135$as_echo "ok" >&6; }
7136fi
7137
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7139$as_echo_n "checking for objdir... " >&6; }
7140if ${lt_cv_objdir+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  rm -f .libs 2>/dev/null
7144mkdir .libs 2>/dev/null
7145if test -d .libs; then
7146  lt_cv_objdir=.libs
7147else
7148  # MS-DOS does not allow filenames that begin with a dot.
7149  lt_cv_objdir=_libs
7150fi
7151rmdir .libs 2>/dev/null
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7154$as_echo "$lt_cv_objdir" >&6; }
7155objdir=$lt_cv_objdir
7156
7157
7158
7159
7160
7161case $host_os in
7162aix3*)
7163  # AIX sometimes has problems with the GCC collect2 program.  For some
7164  # reason, if we set the COLLECT_NAMES environment variable, the problems
7165  # vanish in a puff of smoke.
7166  if test "X${COLLECT_NAMES+set}" != Xset; then
7167    COLLECT_NAMES=
7168    export COLLECT_NAMES
7169  fi
7170  ;;
7171esac
7172
7173# Sed substitution that helps us do robust quoting.  It backslashifies
7174# metacharacters that are still active within double-quoted strings.
7175Xsed='sed -e s/^X//'
7176sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7177
7178# Same as above, but do not quote variable references.
7179double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7180
7181# Sed substitution to delay expansion of an escaped shell variable in a
7182# double_quote_subst'ed string.
7183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7184
7185# Sed substitution to avoid accidental globbing in evaled expressions
7186no_glob_subst='s/\*/\\\*/g'
7187
7188# Constants:
7189rm="rm -f"
7190
7191# Global variables:
7192default_ofile=libtool
7193can_build_shared=yes
7194
7195# All known linkers require a `.a' archive for static linking (except M$VC,
7196# which needs '.lib').
7197libext=a
7198ltmain="$ac_aux_dir/ltmain.sh"
7199ofile="$default_ofile"
7200with_gnu_ld="$lt_cv_prog_gnu_ld"
7201
7202if test -n "$ac_tool_prefix"; then
7203  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7204set dummy ${ac_tool_prefix}ar; ac_word=$2
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206$as_echo_n "checking for $ac_word... " >&6; }
7207if ${ac_cv_prog_AR+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  if test -n "$AR"; then
7211  ac_cv_prog_AR="$AR" # Let the user override the test.
7212else
7213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216  IFS=$as_save_IFS
7217  test -z "$as_dir" && as_dir=.
7218    for ac_exec_ext in '' $ac_executable_extensions; do
7219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220    ac_cv_prog_AR="${ac_tool_prefix}ar"
7221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222    break 2
7223  fi
7224done
7225  done
7226IFS=$as_save_IFS
7227
7228fi
7229fi
7230AR=$ac_cv_prog_AR
7231if test -n "$AR"; then
7232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7233$as_echo "$AR" >&6; }
7234else
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236$as_echo "no" >&6; }
7237fi
7238
7239
7240fi
7241if test -z "$ac_cv_prog_AR"; then
7242  ac_ct_AR=$AR
7243  # Extract the first word of "ar", so it can be a program name with args.
7244set dummy ar; ac_word=$2
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246$as_echo_n "checking for $ac_word... " >&6; }
7247if ${ac_cv_prog_ac_ct_AR+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  if test -n "$ac_ct_AR"; then
7251  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7252else
7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256  IFS=$as_save_IFS
7257  test -z "$as_dir" && as_dir=.
7258    for ac_exec_ext in '' $ac_executable_extensions; do
7259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260    ac_cv_prog_ac_ct_AR="ar"
7261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262    break 2
7263  fi
7264done
7265  done
7266IFS=$as_save_IFS
7267
7268fi
7269fi
7270ac_ct_AR=$ac_cv_prog_ac_ct_AR
7271if test -n "$ac_ct_AR"; then
7272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7273$as_echo "$ac_ct_AR" >&6; }
7274else
7275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276$as_echo "no" >&6; }
7277fi
7278
7279  if test "x$ac_ct_AR" = x; then
7280    AR="false"
7281  else
7282    case $cross_compiling:$ac_tool_warned in
7283yes:)
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286ac_tool_warned=yes ;;
7287esac
7288    AR=$ac_ct_AR
7289  fi
7290else
7291  AR="$ac_cv_prog_AR"
7292fi
7293
7294if test -n "$ac_tool_prefix"; then
7295  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7296set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298$as_echo_n "checking for $ac_word... " >&6; }
7299if ${ac_cv_prog_RANLIB+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  if test -n "$RANLIB"; then
7303  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308  IFS=$as_save_IFS
7309  test -z "$as_dir" && as_dir=.
7310    for ac_exec_ext in '' $ac_executable_extensions; do
7311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314    break 2
7315  fi
7316done
7317  done
7318IFS=$as_save_IFS
7319
7320fi
7321fi
7322RANLIB=$ac_cv_prog_RANLIB
7323if test -n "$RANLIB"; then
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7325$as_echo "$RANLIB" >&6; }
7326else
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328$as_echo "no" >&6; }
7329fi
7330
7331
7332fi
7333if test -z "$ac_cv_prog_RANLIB"; then
7334  ac_ct_RANLIB=$RANLIB
7335  # Extract the first word of "ranlib", so it can be a program name with args.
7336set dummy ranlib; ac_word=$2
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338$as_echo_n "checking for $ac_word... " >&6; }
7339if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342  if test -n "$ac_ct_RANLIB"; then
7343  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348  IFS=$as_save_IFS
7349  test -z "$as_dir" && as_dir=.
7350    for ac_exec_ext in '' $ac_executable_extensions; do
7351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352    ac_cv_prog_ac_ct_RANLIB="ranlib"
7353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354    break 2
7355  fi
7356done
7357  done
7358IFS=$as_save_IFS
7359
7360fi
7361fi
7362ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7363if test -n "$ac_ct_RANLIB"; then
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7365$as_echo "$ac_ct_RANLIB" >&6; }
7366else
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368$as_echo "no" >&6; }
7369fi
7370
7371  if test "x$ac_ct_RANLIB" = x; then
7372    RANLIB=":"
7373  else
7374    case $cross_compiling:$ac_tool_warned in
7375yes:)
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7378ac_tool_warned=yes ;;
7379esac
7380    RANLIB=$ac_ct_RANLIB
7381  fi
7382else
7383  RANLIB="$ac_cv_prog_RANLIB"
7384fi
7385
7386if test -n "$ac_tool_prefix"; then
7387  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7388set dummy ${ac_tool_prefix}strip; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if ${ac_cv_prog_STRIP+:} false; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  if test -n "$STRIP"; then
7395  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414STRIP=$ac_cv_prog_STRIP
7415if test -n "$STRIP"; then
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7417$as_echo "$STRIP" >&6; }
7418else
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423
7424fi
7425if test -z "$ac_cv_prog_STRIP"; then
7426  ac_ct_STRIP=$STRIP
7427  # Extract the first word of "strip", so it can be a program name with args.
7428set dummy strip; ac_word=$2
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430$as_echo_n "checking for $ac_word... " >&6; }
7431if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  if test -n "$ac_ct_STRIP"; then
7435  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7436else
7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440  IFS=$as_save_IFS
7441  test -z "$as_dir" && as_dir=.
7442    for ac_exec_ext in '' $ac_executable_extensions; do
7443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444    ac_cv_prog_ac_ct_STRIP="strip"
7445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446    break 2
7447  fi
7448done
7449  done
7450IFS=$as_save_IFS
7451
7452fi
7453fi
7454ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7455if test -n "$ac_ct_STRIP"; then
7456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7457$as_echo "$ac_ct_STRIP" >&6; }
7458else
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460$as_echo "no" >&6; }
7461fi
7462
7463  if test "x$ac_ct_STRIP" = x; then
7464    STRIP=":"
7465  else
7466    case $cross_compiling:$ac_tool_warned in
7467yes:)
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470ac_tool_warned=yes ;;
7471esac
7472    STRIP=$ac_ct_STRIP
7473  fi
7474else
7475  STRIP="$ac_cv_prog_STRIP"
7476fi
7477
7478
7479old_CC="$CC"
7480old_CFLAGS="$CFLAGS"
7481
7482# Set sane defaults for various variables
7483test -z "$AR" && AR=ar
7484test -z "$AR_FLAGS" && AR_FLAGS=cru
7485test -z "$AS" && AS=as
7486test -z "$CC" && CC=cc
7487test -z "$LTCC" && LTCC=$CC
7488test -z "$DLLTOOL" && DLLTOOL=dlltool
7489test -z "$LD" && LD=ld
7490test -z "$LN_S" && LN_S="ln -s"
7491test -z "$MAGIC_CMD" && MAGIC_CMD=file
7492test -z "$NM" && NM=nm
7493test -z "$SED" && SED=sed
7494test -z "$OBJDUMP" && OBJDUMP=objdump
7495test -z "$RANLIB" && RANLIB=:
7496test -z "$STRIP" && STRIP=:
7497test -z "$ac_objext" && ac_objext=o
7498
7499# Determine commands to create old-style static archives.
7500old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7501old_postinstall_cmds='chmod 644 $oldlib'
7502old_postuninstall_cmds=
7503
7504if test -n "$RANLIB"; then
7505  case $host_os in
7506  openbsd*)
7507    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7508    ;;
7509  *)
7510    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7511    ;;
7512  esac
7513  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7514fi
7515
7516# Only perform the check for file, if the check method requires it
7517case $deplibs_check_method in
7518file_magic*)
7519  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7520    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7521$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7522if ${lt_cv_path_MAGIC_CMD+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  case $MAGIC_CMD in
7526[\\/*] |  ?:[\\/]*)
7527  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7528  ;;
7529*)
7530  lt_save_MAGIC_CMD="$MAGIC_CMD"
7531  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7532  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7533  for ac_dir in $ac_dummy; do
7534    IFS="$lt_save_ifs"
7535    test -z "$ac_dir" && ac_dir=.
7536    if test -f $ac_dir/${ac_tool_prefix}file; then
7537      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7538      if test -n "$file_magic_test_file"; then
7539	case $deplibs_check_method in
7540	"file_magic "*)
7541	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7542	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7543	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7544	    $EGREP "$file_magic_regex" > /dev/null; then
7545	    :
7546	  else
7547	    cat <<EOF 1>&2
7548
7549*** Warning: the command libtool uses to detect shared libraries,
7550*** $file_magic_cmd, produces output that libtool cannot recognize.
7551*** The result is that libtool may fail to recognize shared libraries
7552*** as such.  This will affect the creation of libtool libraries that
7553*** depend on shared libraries, but programs linked with such libtool
7554*** libraries will work regardless of this problem.  Nevertheless, you
7555*** may want to report the problem to your system manager and/or to
7556*** bug-libtool@gnu.org
7557
7558EOF
7559	  fi ;;
7560	esac
7561      fi
7562      break
7563    fi
7564  done
7565  IFS="$lt_save_ifs"
7566  MAGIC_CMD="$lt_save_MAGIC_CMD"
7567  ;;
7568esac
7569fi
7570
7571MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7572if test -n "$MAGIC_CMD"; then
7573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7574$as_echo "$MAGIC_CMD" >&6; }
7575else
7576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577$as_echo "no" >&6; }
7578fi
7579
7580if test -z "$lt_cv_path_MAGIC_CMD"; then
7581  if test -n "$ac_tool_prefix"; then
7582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7583$as_echo_n "checking for file... " >&6; }
7584if ${lt_cv_path_MAGIC_CMD+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  case $MAGIC_CMD in
7588[\\/*] |  ?:[\\/]*)
7589  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7590  ;;
7591*)
7592  lt_save_MAGIC_CMD="$MAGIC_CMD"
7593  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7594  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7595  for ac_dir in $ac_dummy; do
7596    IFS="$lt_save_ifs"
7597    test -z "$ac_dir" && ac_dir=.
7598    if test -f $ac_dir/file; then
7599      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7600      if test -n "$file_magic_test_file"; then
7601	case $deplibs_check_method in
7602	"file_magic "*)
7603	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7604	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7606	    $EGREP "$file_magic_regex" > /dev/null; then
7607	    :
7608	  else
7609	    cat <<EOF 1>&2
7610
7611*** Warning: the command libtool uses to detect shared libraries,
7612*** $file_magic_cmd, produces output that libtool cannot recognize.
7613*** The result is that libtool may fail to recognize shared libraries
7614*** as such.  This will affect the creation of libtool libraries that
7615*** depend on shared libraries, but programs linked with such libtool
7616*** libraries will work regardless of this problem.  Nevertheless, you
7617*** may want to report the problem to your system manager and/or to
7618*** bug-libtool@gnu.org
7619
7620EOF
7621	  fi ;;
7622	esac
7623      fi
7624      break
7625    fi
7626  done
7627  IFS="$lt_save_ifs"
7628  MAGIC_CMD="$lt_save_MAGIC_CMD"
7629  ;;
7630esac
7631fi
7632
7633MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634if test -n "$MAGIC_CMD"; then
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7636$as_echo "$MAGIC_CMD" >&6; }
7637else
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
7642  else
7643    MAGIC_CMD=:
7644  fi
7645fi
7646
7647  fi
7648  ;;
7649esac
7650
7651enable_dlopen=yes
7652enable_win32_dll=yes
7653
7654# Check whether --enable-libtool-lock was given.
7655if test "${enable_libtool_lock+set}" = set; then :
7656  enableval=$enable_libtool_lock;
7657fi
7658
7659test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7660
7661
7662# Check whether --with-pic was given.
7663if test "${with_pic+set}" = set; then :
7664  withval=$with_pic; pic_mode="$withval"
7665else
7666  pic_mode=default
7667fi
7668
7669test -z "$pic_mode" && pic_mode=default
7670
7671# Use C for the default configuration in the libtool script
7672tagname=
7673lt_save_CC="$CC"
7674ac_ext=c
7675ac_cpp='$CPP $CPPFLAGS'
7676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680
7681# Source file extension for C test sources.
7682ac_ext=c
7683
7684# Object file extension for compiled C test sources.
7685objext=o
7686objext=$objext
7687
7688# Code to be used in simple compile tests
7689lt_simple_compile_test_code="int some_variable = 0;\n"
7690
7691# Code to be used in simple link tests
7692lt_simple_link_test_code='int main(){return(0);}\n'
7693
7694
7695# If no C compiler was specified, use CC.
7696LTCC=${LTCC-"$CC"}
7697
7698# Allow CC to be a program name with arguments.
7699compiler=$CC
7700
7701
7702#
7703# Check for any special shared library compilation flags.
7704#
7705lt_prog_cc_shlib=
7706if test "$GCC" = no; then
7707  case $host_os in
7708  sco3.2v5*)
7709    lt_prog_cc_shlib='-belf'
7710    ;;
7711  esac
7712fi
7713if test -n "$lt_prog_cc_shlib"; then
7714  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7715$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7716  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7717  else
7718    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7719$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7720    lt_cv_prog_cc_can_build_shared=no
7721  fi
7722fi
7723
7724
7725#
7726# Check to make sure the static flag actually works.
7727#
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7729$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
7730if ${lt_prog_compiler_static_works+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  lt_prog_compiler_static_works=no
7734   save_LDFLAGS="$LDFLAGS"
7735   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7736   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7737   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7738     # The compiler can only warn and ignore the option if not recognized
7739     # So say no if there are warnings
7740     if test -s conftest.err; then
7741       # Append any errors to the config.log.
7742       cat conftest.err 1>&5
7743     else
7744       lt_prog_compiler_static_works=yes
7745     fi
7746   fi
7747   $rm conftest*
7748   LDFLAGS="$save_LDFLAGS"
7749
7750fi
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7752$as_echo "$lt_prog_compiler_static_works" >&6; }
7753
7754if test x"$lt_prog_compiler_static_works" = xyes; then
7755    :
7756else
7757    lt_prog_compiler_static=
7758fi
7759
7760
7761
7762## CAVEAT EMPTOR:
7763## There is no encapsulation within the following macros, do not change
7764## the running order or otherwise move them around unless you know exactly
7765## what you are doing...
7766
7767lt_prog_compiler_no_builtin_flag=
7768
7769if test "$GCC" = yes; then
7770  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7771
7772
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7774$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7775if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  lt_cv_prog_compiler_rtti_exceptions=no
7779  ac_outfile=conftest.$ac_objext
7780   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7781   lt_compiler_flag="-fno-rtti -fno-exceptions"
7782   # Insert the option either (1) after the last *FLAGS variable, or
7783   # (2) before a word containing "conftest.", or (3) at the end.
7784   # Note that $ac_compile itself does not contain backslashes and begins
7785   # with a dollar sign (not a hyphen), so the echo should work correctly.
7786   # The option is referenced via a variable to avoid confusing sed.
7787   lt_compile=`echo "$ac_compile" | $SED \
7788   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7789   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7790   -e 's:$: $lt_compiler_flag:'`
7791   (eval echo "\"\$as_me:7791: $lt_compile\"" >&5)
7792   (eval "$lt_compile" 2>conftest.err)
7793   ac_status=$?
7794   cat conftest.err >&5
7795   echo "$as_me:7795: \$? = $ac_status" >&5
7796   if (exit $ac_status) && test -s "$ac_outfile"; then
7797     # The compiler can only warn and ignore the option if not recognized
7798     # So say no if there are warnings
7799     if test ! -s conftest.err; then
7800       lt_cv_prog_compiler_rtti_exceptions=yes
7801     fi
7802   fi
7803   $rm conftest*
7804
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7807$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7808
7809if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7810    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7811else
7812    :
7813fi
7814
7815fi
7816
7817lt_prog_compiler_wl=
7818lt_prog_compiler_pic=
7819lt_prog_compiler_static=
7820
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7822$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7823
7824  if test "$GCC" = yes; then
7825    lt_prog_compiler_wl='-Wl,'
7826    lt_prog_compiler_static='-static'
7827
7828    case $host_os in
7829      aix*)
7830      # All AIX code is PIC.
7831      if test "$host_cpu" = ia64; then
7832	# AIX 5 now supports IA64 processor
7833	lt_prog_compiler_static='-Bstatic'
7834      fi
7835      ;;
7836
7837    amigaos*)
7838      # FIXME: we need at least 68020 code to build shared libraries, but
7839      # adding the `-m68020' flag to GCC prevents building anything better,
7840      # like `-m68040'.
7841      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7842      ;;
7843
7844    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7845      # PIC is the default for these OSes.
7846      ;;
7847
7848    mingw* | pw32* | os2*)
7849      # This hack is so that the source file can tell whether it is being
7850      # built for inclusion in a dll (and should export symbols for example).
7851      lt_prog_compiler_pic='-DDLL_EXPORT'
7852      ;;
7853
7854    darwin* | rhapsody*)
7855      # PIC is the default on this platform
7856      # Common symbols not allowed in MH_DYLIB files
7857      lt_prog_compiler_pic='-fno-common'
7858      ;;
7859
7860    msdosdjgpp*)
7861      # Just because we use GCC doesn't mean we suddenly get shared libraries
7862      # on systems that don't support them.
7863      lt_prog_compiler_can_build_shared=no
7864      enable_shared=no
7865      ;;
7866
7867    sysv4*MP*)
7868      if test -d /usr/nec; then
7869	lt_prog_compiler_pic=-Kconform_pic
7870      fi
7871      ;;
7872
7873    hpux*)
7874      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7875      # not for PA HP-UX.
7876      case "$host_cpu" in
7877      hppa*64*|ia64*)
7878	# +Z the default
7879	;;
7880      *)
7881	lt_prog_compiler_pic='-fPIC'
7882	;;
7883      esac
7884      ;;
7885
7886    *)
7887      lt_prog_compiler_pic='-fPIC'
7888      ;;
7889    esac
7890  else
7891    # PORTME Check for flag to pass linker flags through the system compiler.
7892    case $host_os in
7893    aix*)
7894      lt_prog_compiler_wl='-Wl,'
7895      if test "$host_cpu" = ia64; then
7896	# AIX 5 now supports IA64 processor
7897	lt_prog_compiler_static='-Bstatic'
7898      else
7899	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7900      fi
7901      ;;
7902
7903    mingw* | pw32* | os2*)
7904      # This hack is so that the source file can tell whether it is being
7905      # built for inclusion in a dll (and should export symbols for example).
7906      lt_prog_compiler_pic='-DDLL_EXPORT'
7907      ;;
7908
7909    hpux9* | hpux10* | hpux11*)
7910      lt_prog_compiler_wl='-Wl,'
7911      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7912      # not for PA HP-UX.
7913      case "$host_cpu" in
7914      hppa*64*|ia64*)
7915	# +Z the default
7916	;;
7917      *)
7918	lt_prog_compiler_pic='+Z'
7919	;;
7920      esac
7921      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7922      lt_prog_compiler_static='${wl}-a ${wl}archive'
7923      ;;
7924
7925    irix5* | irix6* | nonstopux*)
7926      lt_prog_compiler_wl='-Wl,'
7927      # PIC (with -KPIC) is the default.
7928      lt_prog_compiler_static='-non_shared'
7929      ;;
7930
7931    newsos6)
7932      lt_prog_compiler_pic='-KPIC'
7933      lt_prog_compiler_static='-Bstatic'
7934      ;;
7935
7936    linux*)
7937      case $CC in
7938      icc* | ecc*)
7939	lt_prog_compiler_wl='-Wl,'
7940	lt_prog_compiler_pic='-KPIC'
7941	lt_prog_compiler_static='-static'
7942        ;;
7943      ccc*)
7944        lt_prog_compiler_wl='-Wl,'
7945        # All Alpha code is PIC.
7946        lt_prog_compiler_static='-non_shared'
7947        ;;
7948      esac
7949      ;;
7950
7951    osf3* | osf4* | osf5*)
7952      lt_prog_compiler_wl='-Wl,'
7953      # All OSF/1 code is PIC.
7954      lt_prog_compiler_static='-non_shared'
7955      ;;
7956
7957    sco3.2v5*)
7958      lt_prog_compiler_pic='-Kpic'
7959      lt_prog_compiler_static='-dn'
7960      ;;
7961
7962    solaris*)
7963      lt_prog_compiler_wl='-Wl,'
7964      lt_prog_compiler_pic='-KPIC'
7965      lt_prog_compiler_static='-Bstatic'
7966      ;;
7967
7968    sunos4*)
7969      lt_prog_compiler_wl='-Qoption ld '
7970      lt_prog_compiler_pic='-PIC'
7971      lt_prog_compiler_static='-Bstatic'
7972      ;;
7973
7974    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7975      lt_prog_compiler_wl='-Wl,'
7976      lt_prog_compiler_pic='-KPIC'
7977      lt_prog_compiler_static='-Bstatic'
7978      ;;
7979
7980    sysv4*MP*)
7981      if test -d /usr/nec ;then
7982	lt_prog_compiler_pic='-Kconform_pic'
7983	lt_prog_compiler_static='-Bstatic'
7984      fi
7985      ;;
7986
7987    uts4*)
7988      lt_prog_compiler_pic='-pic'
7989      lt_prog_compiler_static='-Bstatic'
7990      ;;
7991
7992    *)
7993      lt_prog_compiler_can_build_shared=no
7994      ;;
7995    esac
7996  fi
7997
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7999$as_echo "$lt_prog_compiler_pic" >&6; }
8000
8001#
8002# Check to make sure the PIC flag actually works.
8003#
8004if test -n "$lt_prog_compiler_pic"; then
8005
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8007$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8008if ${lt_prog_compiler_pic_works+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  lt_prog_compiler_pic_works=no
8012  ac_outfile=conftest.$ac_objext
8013   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8014   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8015   # Insert the option either (1) after the last *FLAGS variable, or
8016   # (2) before a word containing "conftest.", or (3) at the end.
8017   # Note that $ac_compile itself does not contain backslashes and begins
8018   # with a dollar sign (not a hyphen), so the echo should work correctly.
8019   # The option is referenced via a variable to avoid confusing sed.
8020   lt_compile=`echo "$ac_compile" | $SED \
8021   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8023   -e 's:$: $lt_compiler_flag:'`
8024   (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
8025   (eval "$lt_compile" 2>conftest.err)
8026   ac_status=$?
8027   cat conftest.err >&5
8028   echo "$as_me:8028: \$? = $ac_status" >&5
8029   if (exit $ac_status) && test -s "$ac_outfile"; then
8030     # The compiler can only warn and ignore the option if not recognized
8031     # So say no if there are warnings
8032     if test ! -s conftest.err; then
8033       lt_prog_compiler_pic_works=yes
8034     fi
8035   fi
8036   $rm conftest*
8037
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8040$as_echo "$lt_prog_compiler_pic_works" >&6; }
8041
8042if test x"$lt_prog_compiler_pic_works" = xyes; then
8043    case $lt_prog_compiler_pic in
8044     "" | " "*) ;;
8045     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8046     esac
8047else
8048    lt_prog_compiler_pic=
8049     lt_prog_compiler_can_build_shared=no
8050fi
8051
8052fi
8053case "$host_os" in
8054  # For platforms which do not support PIC, -DPIC is meaningless:
8055  *djgpp*)
8056    lt_prog_compiler_pic=
8057    ;;
8058  *)
8059    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8060    ;;
8061esac
8062
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8065if ${lt_cv_prog_compiler_c_o+:} false; then :
8066  $as_echo_n "(cached) " >&6
8067else
8068  lt_cv_prog_compiler_c_o=no
8069   $rm -r conftest 2>/dev/null
8070   mkdir conftest
8071   cd conftest
8072   mkdir out
8073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8074
8075   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8076   # that will create temporary files in the current directory regardless of
8077   # the output directory.  Thus, making CWD read-only will cause this test
8078   # to fail, enabling locking or at least warning the user not to do parallel
8079   # builds.
8080   chmod -w .
8081
8082   lt_compiler_flag="-o out/conftest2.$ac_objext"
8083   # Insert the option either (1) after the last *FLAGS variable, or
8084   # (2) before a word containing "conftest.", or (3) at the end.
8085   # Note that $ac_compile itself does not contain backslashes and begins
8086   # with a dollar sign (not a hyphen), so the echo should work correctly.
8087   lt_compile=`echo "$ac_compile" | $SED \
8088   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8090   -e 's:$: $lt_compiler_flag:'`
8091   (eval echo "\"\$as_me:8091: $lt_compile\"" >&5)
8092   (eval "$lt_compile" 2>out/conftest.err)
8093   ac_status=$?
8094   cat out/conftest.err >&5
8095   echo "$as_me:8095: \$? = $ac_status" >&5
8096   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8097   then
8098     # The compiler can only warn and ignore the option if not recognized
8099     # So say no if there are warnings
8100     if test ! -s out/conftest.err; then
8101       lt_cv_prog_compiler_c_o=yes
8102     fi
8103   fi
8104   chmod u+w .
8105   $rm conftest*
8106   # SGI C++ compiler will create directory out/ii_files/ for
8107   # template instantiation
8108   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8109   $rm out/* && rmdir out
8110   cd ..
8111   rmdir conftest
8112   $rm conftest*
8113
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8116$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8117
8118
8119hard_links="nottested"
8120if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8121  # do not overwrite the value of need_locks provided by the user
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8123$as_echo_n "checking if we can lock with hard links... " >&6; }
8124  hard_links=yes
8125  $rm conftest*
8126  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8127  touch conftest.a
8128  ln conftest.a conftest.b 2>&5 || hard_links=no
8129  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8131$as_echo "$hard_links" >&6; }
8132  if test "$hard_links" = no; then
8133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8134$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8135    need_locks=warn
8136  fi
8137else
8138  need_locks=no
8139fi
8140
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8142$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8143
8144  runpath_var=
8145  allow_undefined_flag=
8146  enable_shared_with_static_runtimes=no
8147  archive_cmds=
8148  archive_expsym_cmds=
8149  old_archive_From_new_cmds=
8150  old_archive_from_expsyms_cmds=
8151  export_dynamic_flag_spec=
8152  whole_archive_flag_spec=
8153  thread_safe_flag_spec=
8154  hardcode_libdir_flag_spec=
8155  hardcode_libdir_flag_spec_ld=
8156  hardcode_libdir_separator=
8157  hardcode_direct=no
8158  hardcode_minus_L=no
8159  hardcode_shlibpath_var=unsupported
8160  link_all_deplibs=unknown
8161  hardcode_automatic=no
8162  module_cmds=
8163  module_expsym_cmds=
8164  always_export_symbols=no
8165  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8166  # include_expsyms should be a list of space-separated symbols to be *always*
8167  # included in the symbol list
8168  include_expsyms=
8169  # exclude_expsyms can be an extended regexp of symbols to exclude
8170  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8171  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8172  # as well as any symbol that contains `d'.
8173  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8174  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8175  # platforms (ab)use it in PIC code, but their linkers get confused if
8176  # the symbol is explicitly referenced.  Since portable code cannot
8177  # rely on this symbol name, it's probably fine to never include it in
8178  # preloaded symbol tables.
8179  extract_expsyms_cmds=
8180
8181  case $host_os in
8182  cygwin* | mingw* | pw32*)
8183    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8184    # When not using gcc, we currently assume that we are using
8185    # Microsoft Visual C++.
8186    if test "$GCC" != yes; then
8187      with_gnu_ld=no
8188    fi
8189    ;;
8190  openbsd*)
8191    with_gnu_ld=no
8192    ;;
8193  esac
8194
8195  ld_shlibs=yes
8196  if test "$with_gnu_ld" = yes; then
8197    # If archive_cmds runs LD, not CC, wlarc should be empty
8198    wlarc='${wl}'
8199
8200    # See if GNU ld supports shared libraries.
8201    case $host_os in
8202    aix3* | aix4* | aix5*)
8203      # On AIX/PPC, the GNU linker is very broken
8204      if test "$host_cpu" != ia64; then
8205	ld_shlibs=no
8206	cat <<EOF 1>&2
8207
8208*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8209*** to be unable to reliably create shared libraries on AIX.
8210*** Therefore, libtool is disabling shared libraries support.  If you
8211*** really care for shared libraries, you may want to modify your PATH
8212*** so that a non-GNU linker is found, and then restart.
8213
8214EOF
8215      fi
8216      ;;
8217
8218    amigaos*)
8219      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)'
8220      hardcode_libdir_flag_spec='-L$libdir'
8221      hardcode_minus_L=yes
8222
8223      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8224      # that the semantics of dynamic libraries on AmigaOS, at least up
8225      # to version 4, is to share data among multiple programs linked
8226      # with the same dynamic library.  Since this doesn't match the
8227      # behavior of shared libraries on other platforms, we can't use
8228      # them.
8229      ld_shlibs=no
8230      ;;
8231
8232    beos*)
8233      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234	allow_undefined_flag=unsupported
8235	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8236	# support --undefined.  This deserves some investigation.  FIXME
8237	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238      else
8239	ld_shlibs=no
8240      fi
8241      ;;
8242
8243    cygwin* | mingw* | pw32*)
8244      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8245      # as there is no search path for DLLs.
8246      hardcode_libdir_flag_spec='-L$libdir'
8247      allow_undefined_flag=unsupported
8248      always_export_symbols=no
8249      enable_shared_with_static_runtimes=yes
8250      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8251
8252      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8253        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8254	# If the export-symbols file already is a .def file (1st line
8255	# is EXPORTS), use it as is; otherwise, prepend...
8256	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8257	  cp $export_symbols $output_objdir/$soname.def;
8258	else
8259	  echo EXPORTS > $output_objdir/$soname.def;
8260	  cat $export_symbols >> $output_objdir/$soname.def;
8261	fi~
8262	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8263      else
8264	ld_shlibs=no
8265      fi
8266      ;;
8267
8268    netbsd*)
8269      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8270	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8271	wlarc=
8272      else
8273	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275      fi
8276      ;;
8277
8278    solaris* | sysv5*)
8279      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8280	ld_shlibs=no
8281	cat <<EOF 1>&2
8282
8283*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8284*** create shared libraries on Solaris systems.  Therefore, libtool
8285*** is disabling shared libraries support.  We urge you to upgrade GNU
8286*** binutils to release 2.9.1 or newer.  Another option is to modify
8287*** your PATH or compiler configuration so that the native linker is
8288*** used, and then restart.
8289
8290EOF
8291      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8292	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294      else
8295	ld_shlibs=no
8296      fi
8297      ;;
8298
8299    sunos4*)
8300      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8301      wlarc=
8302      hardcode_direct=yes
8303      hardcode_shlibpath_var=no
8304      ;;
8305
8306    *)
8307      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8308	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310      else
8311	ld_shlibs=no
8312      fi
8313      ;;
8314    esac
8315
8316    if test "$ld_shlibs" = yes; then
8317      runpath_var=LD_RUN_PATH
8318      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8319      export_dynamic_flag_spec='${wl}--export-dynamic'
8320      # ancient GNU ld didn't support --whole-archive et. al.
8321      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8322 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8323      else
8324  	whole_archive_flag_spec=
8325      fi
8326    fi
8327  else
8328    # PORTME fill in a description of your system's linker (not GNU ld)
8329    case $host_os in
8330    aix3*)
8331      allow_undefined_flag=unsupported
8332      always_export_symbols=yes
8333      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'
8334      # Note: this linker hardcodes the directories in LIBPATH if there
8335      # are no directories specified by -L.
8336      hardcode_minus_L=yes
8337      if test "$GCC" = yes && test -z "$link_static_flag"; then
8338	# Neither direct hardcoding nor static linking is supported with a
8339	# broken collect2.
8340	hardcode_direct=unsupported
8341      fi
8342      ;;
8343
8344    aix4* | aix5*)
8345      if test "$host_cpu" = ia64; then
8346	# On IA64, the linker does run time linking by default, so we don't
8347	# have to do anything special.
8348	aix_use_runtimelinking=no
8349	exp_sym_flag='-Bexport'
8350	no_entry_flag=""
8351      else
8352	# If we're using GNU nm, then we don't want the "-C" option.
8353	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8354	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8355	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8356	else
8357	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8358	fi
8359	aix_use_runtimelinking=no
8360
8361	# Test if we are trying to use run time linking or normal
8362	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8363	# need to do runtime linking.
8364	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8365	  for ld_flag in $LDFLAGS; do
8366  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8367  	    aix_use_runtimelinking=yes
8368  	    break
8369  	  fi
8370	  done
8371	esac
8372
8373	exp_sym_flag='-bexport'
8374	no_entry_flag='-bnoentry'
8375      fi
8376
8377      # When large executables or shared objects are built, AIX ld can
8378      # have problems creating the table of contents.  If linking a library
8379      # or program results in "error TOC overflow" add -mminimal-toc to
8380      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8381      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8382
8383      archive_cmds=''
8384      hardcode_direct=yes
8385      hardcode_libdir_separator=':'
8386      link_all_deplibs=yes
8387
8388      if test "$GCC" = yes; then
8389	case $host_os in aix4.012|aix4.012.*)
8390	# We only want to do this on AIX 4.2 and lower, the check
8391	# below for broken collect2 doesn't work under 4.3+
8392	  collect2name=`${CC} -print-prog-name=collect2`
8393	  if test -f "$collect2name" && \
8394  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8395	  then
8396  	  # We have reworked collect2
8397  	  hardcode_direct=yes
8398	  else
8399  	  # We have old collect2
8400  	  hardcode_direct=unsupported
8401  	  # It fails to find uninstalled libraries when the uninstalled
8402  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8403  	  # to unsupported forces relinking
8404  	  hardcode_minus_L=yes
8405  	  hardcode_libdir_flag_spec='-L$libdir'
8406  	  hardcode_libdir_separator=
8407	  fi
8408	esac
8409	shared_flag='-shared'
8410      else
8411	# not using gcc
8412	if test "$host_cpu" = ia64; then
8413  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8414  	# chokes on -Wl,-G. The following line is correct:
8415	  shared_flag='-G'
8416	else
8417  	if test "$aix_use_runtimelinking" = yes; then
8418	    shared_flag='${wl}-G'
8419	  else
8420	    shared_flag='${wl}-bM:SRE'
8421  	fi
8422	fi
8423      fi
8424
8425      # It seems that -bexpall does not export symbols beginning with
8426      # underscore (_), so it is better to generate a list of symbols to export.
8427      always_export_symbols=yes
8428      if test "$aix_use_runtimelinking" = yes; then
8429	# Warning - without using the other runtime loading flags (-brtl),
8430	# -berok will link without error, but may produce a broken library.
8431	allow_undefined_flag='-berok'
8432       # Determine the default libpath from the value encoded in an empty executable.
8433       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h.  */
8435
8436int
8437main ()
8438{
8439
8440  ;
8441  return 0;
8442}
8443_ACEOF
8444if ac_fn_c_try_link "$LINENO"; then :
8445
8446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8447}'`
8448# Check for a 64-bit object if we didn't find anything.
8449if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8450}'`; fi
8451fi
8452rm -f core conftest.err conftest.$ac_objext \
8453    conftest$ac_exeext conftest.$ac_ext
8454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8455
8456       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8457	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8458       else
8459	if test "$host_cpu" = ia64; then
8460	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8461	  allow_undefined_flag="-z nodefs"
8462	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8463	else
8464	 # Determine the default libpath from the value encoded in an empty executable.
8465	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467
8468int
8469main ()
8470{
8471
8472  ;
8473  return 0;
8474}
8475_ACEOF
8476if ac_fn_c_try_link "$LINENO"; then :
8477
8478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8479}'`
8480# Check for a 64-bit object if we didn't find anything.
8481if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8482}'`; fi
8483fi
8484rm -f core conftest.err conftest.$ac_objext \
8485    conftest$ac_exeext conftest.$ac_ext
8486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8487
8488	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8489	  # Warning - without using the other run time loading flags,
8490	  # -berok will link without error, but may produce a broken library.
8491	  no_undefined_flag=' ${wl}-bernotok'
8492	  allow_undefined_flag=' ${wl}-berok'
8493	  # -bexpall does not export symbols beginning with underscore (_)
8494	  always_export_symbols=yes
8495	  # Exported symbols can be pulled into shared objects from archives
8496	  whole_archive_flag_spec=' '
8497	  archive_cmds_need_lc=yes
8498	  # This is similar to how AIX traditionally builds it's shared libraries.
8499	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8500	fi
8501      fi
8502      ;;
8503
8504    amigaos*)
8505      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)'
8506      hardcode_libdir_flag_spec='-L$libdir'
8507      hardcode_minus_L=yes
8508      # see comment about different semantics on the GNU ld section
8509      ld_shlibs=no
8510      ;;
8511
8512    bsdi4*)
8513      export_dynamic_flag_spec=-rdynamic
8514      ;;
8515
8516    cygwin* | mingw* | pw32*)
8517      # When not using gcc, we currently assume that we are using
8518      # Microsoft Visual C++.
8519      # hardcode_libdir_flag_spec is actually meaningless, as there is
8520      # no search path for DLLs.
8521      hardcode_libdir_flag_spec=' '
8522      allow_undefined_flag=unsupported
8523      # Tell ltmain to make .lib files, not .a files.
8524      libext=lib
8525      # Tell ltmain to make .dll files, not .so files.
8526      shrext=".dll"
8527      # FIXME: Setting linknames here is a bad hack.
8528      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8529      # The linker will automatically build a .lib file if we build a DLL.
8530      old_archive_From_new_cmds='true'
8531      # FIXME: Should let the user specify the lib program.
8532      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8533      fix_srcfile_path='`cygpath -w "$srcfile"`'
8534      enable_shared_with_static_runtimes=yes
8535      ;;
8536
8537    darwin* | rhapsody*)
8538    if test "$GXX" = yes ; then
8539      archive_cmds_need_lc=no
8540      case "$host_os" in
8541      rhapsody* | darwin1.[012])
8542	allow_undefined_flag='-undefined suppress'
8543	;;
8544      *) # Darwin 1.3 on
8545      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8546      	allow_undefined_flag='-flat_namespace -undefined suppress'
8547      else
8548        case ${MACOSX_DEPLOYMENT_TARGET} in
8549          10.[012])
8550            allow_undefined_flag='-flat_namespace -undefined suppress'
8551            ;;
8552          10.*)
8553            allow_undefined_flag='-undefined dynamic_lookup'
8554            ;;
8555        esac
8556      fi
8557	;;
8558      esac
8559    	lt_int_apple_cc_single_mod=no
8560    	output_verbose_link_cmd='echo'
8561    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8562    	  lt_int_apple_cc_single_mod=yes
8563    	fi
8564    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8565    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8566    	else
8567        archive_cmds='$CC -r ${wl}-bind_at_load -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'
8568      fi
8569      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8570      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8571        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8572          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8573        else
8574          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8575        fi
8576          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8577      hardcode_direct=no
8578      hardcode_automatic=yes
8579      hardcode_shlibpath_var=unsupported
8580      whole_archive_flag_spec='-all_load $convenience'
8581      link_all_deplibs=yes
8582    else
8583      ld_shlibs=no
8584    fi
8585      ;;
8586
8587    dgux*)
8588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8589      hardcode_libdir_flag_spec='-L$libdir'
8590      hardcode_shlibpath_var=no
8591      ;;
8592
8593    freebsd1*)
8594      ld_shlibs=no
8595      ;;
8596
8597    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8598    # support.  Future versions do this automatically, but an explicit c++rt0.o
8599    # does not break anything, and helps significantly (at the cost of a little
8600    # extra space).
8601    freebsd2.2*)
8602      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8603      hardcode_libdir_flag_spec='-R$libdir'
8604      hardcode_direct=yes
8605      hardcode_shlibpath_var=no
8606      ;;
8607
8608    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8609    freebsd2*)
8610      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8611      hardcode_direct=yes
8612      hardcode_minus_L=yes
8613      hardcode_shlibpath_var=no
8614      ;;
8615
8616    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8617    freebsd* | kfreebsd*-gnu)
8618      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8619      hardcode_libdir_flag_spec='-R$libdir'
8620      hardcode_direct=yes
8621      hardcode_shlibpath_var=no
8622      ;;
8623
8624    hpux9*)
8625      if test "$GCC" = yes; then
8626	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8627      else
8628	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8629      fi
8630      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8631      hardcode_libdir_separator=:
8632      hardcode_direct=yes
8633
8634      # hardcode_minus_L: Not really in the search PATH,
8635      # but as the default location of the library.
8636      hardcode_minus_L=yes
8637      export_dynamic_flag_spec='${wl}-E'
8638      ;;
8639
8640    hpux10* | hpux11*)
8641      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8642	case "$host_cpu" in
8643	hppa*64*|ia64*)
8644	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8645	  ;;
8646	*)
8647	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8648	  ;;
8649	esac
8650      else
8651	case "$host_cpu" in
8652	hppa*64*|ia64*)
8653	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8654	  ;;
8655	*)
8656	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8657	  ;;
8658	esac
8659      fi
8660      if test "$with_gnu_ld" = no; then
8661	case "$host_cpu" in
8662	hppa*64*)
8663	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8664	  hardcode_libdir_flag_spec_ld='+b $libdir'
8665	  hardcode_libdir_separator=:
8666	  hardcode_direct=no
8667	  hardcode_shlibpath_var=no
8668	  ;;
8669	ia64*)
8670	  hardcode_libdir_flag_spec='-L$libdir'
8671	  hardcode_direct=no
8672	  hardcode_shlibpath_var=no
8673
8674	  # hardcode_minus_L: Not really in the search PATH,
8675	  # but as the default location of the library.
8676	  hardcode_minus_L=yes
8677	  ;;
8678	*)
8679	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8680	  hardcode_libdir_separator=:
8681	  hardcode_direct=yes
8682	  export_dynamic_flag_spec='${wl}-E'
8683
8684	  # hardcode_minus_L: Not really in the search PATH,
8685	  # but as the default location of the library.
8686	  hardcode_minus_L=yes
8687	  ;;
8688	esac
8689      fi
8690      ;;
8691
8692    irix5* | irix6* | nonstopux*)
8693      if test "$GCC" = yes; then
8694	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8695      else
8696	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8697	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8698      fi
8699      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700      hardcode_libdir_separator=:
8701      link_all_deplibs=yes
8702      ;;
8703
8704    netbsd*)
8705      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8706	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8707      else
8708	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8709      fi
8710      hardcode_libdir_flag_spec='-R$libdir'
8711      hardcode_direct=yes
8712      hardcode_shlibpath_var=no
8713      ;;
8714
8715    newsos6)
8716      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717      hardcode_direct=yes
8718      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719      hardcode_libdir_separator=:
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    openbsd*)
8724      hardcode_direct=yes
8725      hardcode_shlibpath_var=no
8726      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8727	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8728	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8729	export_dynamic_flag_spec='${wl}-E'
8730      else
8731       case $host_os in
8732	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8733	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8734	   hardcode_libdir_flag_spec='-R$libdir'
8735	   ;;
8736	 *)
8737	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8738	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8739	   ;;
8740       esac
8741      fi
8742      ;;
8743
8744    os2*)
8745      hardcode_libdir_flag_spec='-L$libdir'
8746      hardcode_minus_L=yes
8747      allow_undefined_flag=unsupported
8748      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8749      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8750      ;;
8751
8752    osf3*)
8753      if test "$GCC" = yes; then
8754	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8755	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8756      else
8757	allow_undefined_flag=' -expect_unresolved \*'
8758	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8759      fi
8760      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761      hardcode_libdir_separator=:
8762      ;;
8763
8764    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8765      if test "$GCC" = yes; then
8766	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8767	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8768	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769      else
8770	allow_undefined_flag=' -expect_unresolved \*'
8771	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8772	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8773	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8774
8775	# Both c and cxx compiler support -rpath directly
8776	hardcode_libdir_flag_spec='-rpath $libdir'
8777      fi
8778      hardcode_libdir_separator=:
8779      ;;
8780
8781    sco3.2v5*)
8782      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783      hardcode_shlibpath_var=no
8784      export_dynamic_flag_spec='${wl}-Bexport'
8785      runpath_var=LD_RUN_PATH
8786      hardcode_runpath_var=yes
8787      ;;
8788
8789    solaris*)
8790      no_undefined_flag=' -z text'
8791      if test "$GCC" = yes; then
8792	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8794	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8795      else
8796	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8798  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8799      fi
8800      hardcode_libdir_flag_spec='-R$libdir'
8801      hardcode_shlibpath_var=no
8802      case $host_os in
8803      solaris2.[0-5] | solaris2.[0-5].*) ;;
8804      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8805	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8806      esac
8807      link_all_deplibs=yes
8808      ;;
8809
8810    sunos4*)
8811      if test "x$host_vendor" = xsequent; then
8812	# Use $CC to link under sequent, because it throws in some extra .o
8813	# files that make .init and .fini sections work.
8814	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8815      else
8816	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8817      fi
8818      hardcode_libdir_flag_spec='-L$libdir'
8819      hardcode_direct=yes
8820      hardcode_minus_L=yes
8821      hardcode_shlibpath_var=no
8822      ;;
8823
8824    sysv4)
8825      case $host_vendor in
8826	sni)
8827	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8828	  hardcode_direct=yes # is this really true???
8829	;;
8830	siemens)
8831	  ## LD is ld it makes a PLAMLIB
8832	  ## CC just makes a GrossModule.
8833	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8834	  reload_cmds='$CC -r -o $output$reload_objs'
8835	  hardcode_direct=no
8836        ;;
8837	motorola)
8838	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8840	;;
8841      esac
8842      runpath_var='LD_RUN_PATH'
8843      hardcode_shlibpath_var=no
8844      ;;
8845
8846    sysv4.3*)
8847      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848      hardcode_shlibpath_var=no
8849      export_dynamic_flag_spec='-Bexport'
8850      ;;
8851
8852    sysv4*MP*)
8853      if test -d /usr/nec; then
8854	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855	hardcode_shlibpath_var=no
8856	runpath_var=LD_RUN_PATH
8857	hardcode_runpath_var=yes
8858	ld_shlibs=yes
8859      fi
8860      ;;
8861
8862    sysv4.2uw2*)
8863      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8864      hardcode_direct=yes
8865      hardcode_minus_L=no
8866      hardcode_shlibpath_var=no
8867      hardcode_runpath_var=yes
8868      runpath_var=LD_RUN_PATH
8869      ;;
8870
8871   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8872      no_undefined_flag='${wl}-z ${wl}text'
8873      if test "$GCC" = yes; then
8874	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875      else
8876	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877      fi
8878      runpath_var='LD_RUN_PATH'
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    sysv5*)
8883      no_undefined_flag=' -z text'
8884      # $CC -shared without GNU ld will not create a library from C++
8885      # object files and a static libstdc++, better avoid it by now
8886      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8888  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8889      hardcode_libdir_flag_spec=
8890      hardcode_shlibpath_var=no
8891      runpath_var='LD_RUN_PATH'
8892      ;;
8893
8894    uts4*)
8895      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896      hardcode_libdir_flag_spec='-L$libdir'
8897      hardcode_shlibpath_var=no
8898      ;;
8899
8900    *)
8901      ld_shlibs=no
8902      ;;
8903    esac
8904  fi
8905
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8907$as_echo "$ld_shlibs" >&6; }
8908test "$ld_shlibs" = no && can_build_shared=no
8909
8910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8911if test "$GCC" = yes; then
8912  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8913fi
8914
8915#
8916# Do we need to explicitly link libc?
8917#
8918case "x$archive_cmds_need_lc" in
8919x|xyes)
8920  # Assume -lc should be added
8921  archive_cmds_need_lc=yes
8922
8923  if test "$enable_shared" = yes && test "$GCC" = yes; then
8924    case $archive_cmds in
8925    *'~'*)
8926      # FIXME: we may have to deal with multi-command sequences.
8927      ;;
8928    '$CC '*)
8929      # Test whether the compiler implicitly links with -lc since on some
8930      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8931      # to ld, don't add -lc before -lgcc.
8932      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8933$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8934      $rm conftest*
8935      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8936
8937      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8938  (eval $ac_compile) 2>&5
8939  ac_status=$?
8940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8941  test $ac_status = 0; } 2>conftest.err; then
8942        soname=conftest
8943        lib=conftest
8944        libobjs=conftest.$ac_objext
8945        deplibs=
8946        wl=$lt_prog_compiler_wl
8947        compiler_flags=-v
8948        linker_flags=-v
8949        verstring=
8950        output_objdir=.
8951        libname=conftest
8952        lt_save_allow_undefined_flag=$allow_undefined_flag
8953        allow_undefined_flag=
8954        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8955  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8956  ac_status=$?
8957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8958  test $ac_status = 0; }
8959        then
8960	  archive_cmds_need_lc=no
8961        else
8962	  archive_cmds_need_lc=yes
8963        fi
8964        allow_undefined_flag=$lt_save_allow_undefined_flag
8965      else
8966        cat conftest.err 1>&5
8967      fi
8968      $rm conftest*
8969      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8970$as_echo "$archive_cmds_need_lc" >&6; }
8971      ;;
8972    esac
8973  fi
8974  ;;
8975esac
8976
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8978$as_echo_n "checking dynamic linker characteristics... " >&6; }
8979library_names_spec=
8980libname_spec='lib$name'
8981soname_spec=
8982shrext=".so"
8983postinstall_cmds=
8984postuninstall_cmds=
8985finish_cmds=
8986finish_eval=
8987shlibpath_var=
8988shlibpath_overrides_runpath=unknown
8989version_type=none
8990dynamic_linker="$host_os ld.so"
8991sys_lib_dlsearch_path_spec="/lib /usr/lib"
8992if test "$GCC" = yes; then
8993  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8995    # if the path contains ";" then we assume it to be the separator
8996    # otherwise default to the standard path separator (i.e. ":") - it is
8997    # assumed that no part of a normal pathname contains ";" but that should
8998    # okay in the real world where ";" in dirpaths is itself problematic.
8999    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9000  else
9001    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9002  fi
9003else
9004  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9005fi
9006need_lib_prefix=unknown
9007hardcode_into_libs=no
9008
9009# when you set need_version to no, make sure it does not cause -set_version
9010# flags to be left without arguments
9011need_version=unknown
9012
9013case $host_os in
9014aix3*)
9015  version_type=linux
9016  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9017  shlibpath_var=LIBPATH
9018
9019  # AIX 3 has no versioning support, so we append a major version to the name.
9020  soname_spec='${libname}${release}${shared_ext}$major'
9021  ;;
9022
9023aix4* | aix5*)
9024  version_type=linux
9025  need_lib_prefix=no
9026  need_version=no
9027  hardcode_into_libs=yes
9028  if test "$host_cpu" = ia64; then
9029    # AIX 5 supports IA64
9030    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9031    shlibpath_var=LD_LIBRARY_PATH
9032  else
9033    # With GCC up to 2.95.x, collect2 would create an import file
9034    # for dependence libraries.  The import file would start with
9035    # the line `#! .'.  This would cause the generated library to
9036    # depend on `.', always an invalid library.  This was fixed in
9037    # development snapshots of GCC prior to 3.0.
9038    case $host_os in
9039      aix4 | aix4.[01] | aix4.[01].*)
9040      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9041	   echo ' yes '
9042	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9043	:
9044      else
9045	can_build_shared=no
9046      fi
9047      ;;
9048    esac
9049    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9050    # soname into executable. Probably we can add versioning support to
9051    # collect2, so additional links can be useful in future.
9052    if test "$aix_use_runtimelinking" = yes; then
9053      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9054      # instead of lib<name>.a to let people know that these are not
9055      # typical AIX shared libraries.
9056      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057    else
9058      # We preserve .a as extension for shared libraries through AIX4.2
9059      # and later when we are not doing run time linking.
9060      library_names_spec='${libname}${release}.a $libname.a'
9061      soname_spec='${libname}${release}${shared_ext}$major'
9062    fi
9063    shlibpath_var=LIBPATH
9064  fi
9065  ;;
9066
9067amigaos*)
9068  library_names_spec='$libname.ixlibrary $libname.a'
9069  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9070  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9071  ;;
9072
9073beos*)
9074  library_names_spec='${libname}${shared_ext}'
9075  dynamic_linker="$host_os ld.so"
9076  shlibpath_var=LIBRARY_PATH
9077  ;;
9078
9079bsdi4*)
9080  version_type=linux
9081  need_version=no
9082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083  soname_spec='${libname}${release}${shared_ext}$major'
9084  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9085  shlibpath_var=LD_LIBRARY_PATH
9086  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9087  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9088  # the default ld.so.conf also contains /usr/contrib/lib and
9089  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9090  # libtool to hard-code these into programs
9091  ;;
9092
9093cygwin* | mingw* | pw32*)
9094  version_type=windows
9095  shrext=".dll"
9096  need_version=no
9097  need_lib_prefix=no
9098
9099  case $GCC,$host_os in
9100  yes,cygwin* | yes,mingw* | yes,pw32*)
9101    library_names_spec='$libname.dll.a'
9102    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9103    postinstall_cmds='base_file=`basename \${file}`~
9104      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9105      dldir=$destdir/`dirname \$dlpath`~
9106      test -d \$dldir || mkdir -p \$dldir~
9107      $install_prog $dir/$dlname \$dldir/$dlname'
9108    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9109      dlpath=$dir/\$dldll~
9110       $rm \$dlpath'
9111    shlibpath_overrides_runpath=yes
9112
9113    case $host_os in
9114    cygwin*)
9115      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9116      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9118      ;;
9119    mingw*)
9120      # MinGW DLLs use traditional 'lib' prefix
9121      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9124        # It is most probably a Windows format PATH printed by
9125        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9126        # path with ; separators, and with drive letters. We can handle the
9127        # drive letters (cygwin fileutils understands them), so leave them,
9128        # especially as we might pass files found there to a mingw objdump,
9129        # which wouldn't understand a cygwinified path. Ahh.
9130        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9131      else
9132        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9133      fi
9134      ;;
9135    pw32*)
9136      # pw32 DLLs use 'pw' prefix rather than 'lib'
9137      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9138      ;;
9139    esac
9140    ;;
9141
9142  *)
9143    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9144    ;;
9145  esac
9146  dynamic_linker='Win32 ld.exe'
9147  # FIXME: first we should search . and the directory the executable is in
9148  shlibpath_var=PATH
9149  ;;
9150
9151darwin* | rhapsody*)
9152  dynamic_linker="$host_os dyld"
9153  version_type=darwin
9154  need_lib_prefix=no
9155  need_version=no
9156  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9157  soname_spec='${libname}${release}${major}$shared_ext'
9158  shlibpath_overrides_runpath=yes
9159  shlibpath_var=DYLD_LIBRARY_PATH
9160  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9161  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9162  if test "$GCC" = yes; then
9163    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9164  else
9165    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9166  fi
9167  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9168  ;;
9169
9170dgux*)
9171  version_type=linux
9172  need_lib_prefix=no
9173  need_version=no
9174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9175  soname_spec='${libname}${release}${shared_ext}$major'
9176  shlibpath_var=LD_LIBRARY_PATH
9177  ;;
9178
9179freebsd1*)
9180  dynamic_linker=no
9181  ;;
9182
9183kfreebsd*-gnu)
9184  version_type=linux
9185  need_lib_prefix=no
9186  need_version=no
9187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188  soname_spec='${libname}${release}${shared_ext}$major'
9189  shlibpath_var=LD_LIBRARY_PATH
9190  shlibpath_overrides_runpath=no
9191  hardcode_into_libs=yes
9192  dynamic_linker='GNU ld.so'
9193  ;;
9194
9195freebsd*)
9196  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9197  version_type=freebsd-$objformat
9198  case $version_type in
9199    freebsd-elf*)
9200      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9201      need_version=no
9202      need_lib_prefix=no
9203      ;;
9204    freebsd-*)
9205      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9206      need_version=yes
9207      ;;
9208  esac
9209  shlibpath_var=LD_LIBRARY_PATH
9210  case $host_os in
9211  freebsd2*)
9212    shlibpath_overrides_runpath=yes
9213    ;;
9214  freebsd3.01* | freebsdelf3.01*)
9215    shlibpath_overrides_runpath=yes
9216    hardcode_into_libs=yes
9217    ;;
9218  *) # from 3.2 on
9219    shlibpath_overrides_runpath=no
9220    hardcode_into_libs=yes
9221    ;;
9222  esac
9223  ;;
9224
9225gnu*)
9226  version_type=linux
9227  need_lib_prefix=no
9228  need_version=no
9229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9230  soname_spec='${libname}${release}${shared_ext}$major'
9231  shlibpath_var=LD_LIBRARY_PATH
9232  hardcode_into_libs=yes
9233  ;;
9234
9235hpux9* | hpux10* | hpux11*)
9236  # Give a soname corresponding to the major version so that dld.sl refuses to
9237  # link against other versions.
9238  version_type=sunos
9239  need_lib_prefix=no
9240  need_version=no
9241  case "$host_cpu" in
9242  ia64*)
9243    shrext='.so'
9244    hardcode_into_libs=yes
9245    dynamic_linker="$host_os dld.so"
9246    shlibpath_var=LD_LIBRARY_PATH
9247    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9248    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249    soname_spec='${libname}${release}${shared_ext}$major'
9250    if test "X$HPUX_IA64_MODE" = X32; then
9251      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9252    else
9253      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9254    fi
9255    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9256    ;;
9257   hppa*64*)
9258     shrext='.sl'
9259     hardcode_into_libs=yes
9260     dynamic_linker="$host_os dld.sl"
9261     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9262     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264     soname_spec='${libname}${release}${shared_ext}$major'
9265     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9266     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9267     ;;
9268   *)
9269    shrext='.sl'
9270    dynamic_linker="$host_os dld.sl"
9271    shlibpath_var=SHLIB_PATH
9272    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9273    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274    soname_spec='${libname}${release}${shared_ext}$major'
9275    ;;
9276  esac
9277  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9278  postinstall_cmds='chmod 555 $lib'
9279  ;;
9280
9281irix5* | irix6* | nonstopux*)
9282  case $host_os in
9283    nonstopux*) version_type=nonstopux ;;
9284    *)
9285	if test "$lt_cv_prog_gnu_ld" = yes; then
9286		version_type=linux
9287	else
9288		version_type=irix
9289	fi ;;
9290  esac
9291  need_lib_prefix=no
9292  need_version=no
9293  soname_spec='${libname}${release}${shared_ext}$major'
9294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9295  case $host_os in
9296  irix5* | nonstopux*)
9297    libsuff= shlibsuff=
9298    ;;
9299  *)
9300    case $LD in # libtool.m4 will add one of these switches to LD
9301    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9302      libsuff= shlibsuff= libmagic=32-bit;;
9303    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9304      libsuff=32 shlibsuff=N32 libmagic=N32;;
9305    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9306      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9307    *) libsuff= shlibsuff= libmagic=never-match;;
9308    esac
9309    ;;
9310  esac
9311  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9312  shlibpath_overrides_runpath=no
9313  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9314  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9315  hardcode_into_libs=yes
9316  ;;
9317
9318# No shared lib support for Linux oldld, aout, or coff.
9319linux*oldld* | linux*aout* | linux*coff*)
9320  dynamic_linker=no
9321  ;;
9322
9323# This must be Linux ELF.
9324linux*)
9325  version_type=linux
9326  need_lib_prefix=no
9327  need_version=no
9328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9331  shlibpath_var=LD_LIBRARY_PATH
9332  shlibpath_overrides_runpath=no
9333  # This implies no fast_install, which is unacceptable.
9334  # Some rework will be needed to allow for fast_install
9335  # before this can be enabled.
9336  hardcode_into_libs=yes
9337
9338  # We used to test for /lib/ld.so.1 and disable shared libraries on
9339  # powerpc, because MkLinux only supported shared libraries with the
9340  # GNU dynamic linker.  Since this was broken with cross compilers,
9341  # most powerpc-linux boxes support dynamic linking these days and
9342  # people can always --disable-shared, the test was removed, and we
9343  # assume the GNU/Linux dynamic linker is in use.
9344  dynamic_linker='GNU/Linux ld.so'
9345  ;;
9346
9347netbsd*)
9348  version_type=sunos
9349  need_lib_prefix=no
9350  need_version=no
9351  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9354    dynamic_linker='NetBSD (a.out) ld.so'
9355  else
9356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
9357    soname_spec='${libname}${release}${shared_ext}$major'
9358    dynamic_linker='NetBSD ld.elf_so'
9359  fi
9360  shlibpath_var=LD_LIBRARY_PATH
9361  shlibpath_overrides_runpath=yes
9362  hardcode_into_libs=yes
9363  ;;
9364
9365newsos6)
9366  version_type=linux
9367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368  shlibpath_var=LD_LIBRARY_PATH
9369  shlibpath_overrides_runpath=yes
9370  ;;
9371
9372nto-qnx*)
9373  version_type=linux
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  shlibpath_var=LD_LIBRARY_PATH
9379  shlibpath_overrides_runpath=yes
9380  ;;
9381
9382openbsd*)
9383  version_type=sunos
9384  need_lib_prefix=no
9385  need_version=no
9386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9388  shlibpath_var=LD_LIBRARY_PATH
9389  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9390    case $host_os in
9391      openbsd2.[89] | openbsd2.[89].*)
9392	shlibpath_overrides_runpath=no
9393	;;
9394      *)
9395	shlibpath_overrides_runpath=yes
9396	;;
9397      esac
9398  else
9399    shlibpath_overrides_runpath=yes
9400  fi
9401  ;;
9402
9403os2*)
9404  libname_spec='$name'
9405  shrext=".dll"
9406  need_lib_prefix=no
9407  library_names_spec='$libname${shared_ext} $libname.a'
9408  dynamic_linker='OS/2 ld.exe'
9409  shlibpath_var=LIBPATH
9410  ;;
9411
9412osf3* | osf4* | osf5*)
9413  version_type=osf
9414  need_lib_prefix=no
9415  need_version=no
9416  soname_spec='${libname}${release}${shared_ext}$major'
9417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418  shlibpath_var=LD_LIBRARY_PATH
9419  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9420  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9421  ;;
9422
9423sco3.2v5*)
9424  version_type=osf
9425  soname_spec='${libname}${release}${shared_ext}$major'
9426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427  shlibpath_var=LD_LIBRARY_PATH
9428  ;;
9429
9430solaris*)
9431  version_type=linux
9432  need_lib_prefix=no
9433  need_version=no
9434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9435  soname_spec='${libname}${release}${shared_ext}$major'
9436  shlibpath_var=LD_LIBRARY_PATH
9437  shlibpath_overrides_runpath=yes
9438  hardcode_into_libs=yes
9439  # ldd complains unless libraries are executable
9440  postinstall_cmds='chmod +x $lib'
9441  ;;
9442
9443sunos4*)
9444  version_type=sunos
9445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9446  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  shlibpath_overrides_runpath=yes
9449  if test "$with_gnu_ld" = yes; then
9450    need_lib_prefix=no
9451  fi
9452  need_version=yes
9453  ;;
9454
9455sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9456  version_type=linux
9457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458  soname_spec='${libname}${release}${shared_ext}$major'
9459  shlibpath_var=LD_LIBRARY_PATH
9460  case $host_vendor in
9461    sni)
9462      shlibpath_overrides_runpath=no
9463      need_lib_prefix=no
9464      export_dynamic_flag_spec='${wl}-Blargedynsym'
9465      runpath_var=LD_RUN_PATH
9466      ;;
9467    siemens)
9468      need_lib_prefix=no
9469      ;;
9470    motorola)
9471      need_lib_prefix=no
9472      need_version=no
9473      shlibpath_overrides_runpath=no
9474      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9475      ;;
9476  esac
9477  ;;
9478
9479sysv4*MP*)
9480  if test -d /usr/nec ;then
9481    version_type=linux
9482    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9483    soname_spec='$libname${shared_ext}.$major'
9484    shlibpath_var=LD_LIBRARY_PATH
9485  fi
9486  ;;
9487
9488uts4*)
9489  version_type=linux
9490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491  soname_spec='${libname}${release}${shared_ext}$major'
9492  shlibpath_var=LD_LIBRARY_PATH
9493  ;;
9494
9495*)
9496  dynamic_linker=no
9497  ;;
9498esac
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9500$as_echo "$dynamic_linker" >&6; }
9501test "$dynamic_linker" = no && can_build_shared=no
9502
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9504$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9505hardcode_action=
9506if test -n "$hardcode_libdir_flag_spec" || \
9507   test -n "$runpath_var " || \
9508   test "X$hardcode_automatic"="Xyes" ; then
9509
9510  # We can hardcode non-existant directories.
9511  if test "$hardcode_direct" != no &&
9512     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9513     # have to relink, otherwise we might link with an installed library
9514     # when we should be linking with a yet-to-be-installed one
9515     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9516     test "$hardcode_minus_L" != no; then
9517    # Linking always hardcodes the temporary library directory.
9518    hardcode_action=relink
9519  else
9520    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9521    hardcode_action=immediate
9522  fi
9523else
9524  # We cannot hardcode anything, or else we can only hardcode existing
9525  # directories.
9526  hardcode_action=unsupported
9527fi
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9529$as_echo "$hardcode_action" >&6; }
9530
9531if test "$hardcode_action" = relink; then
9532  # Fast installation is not supported
9533  enable_fast_install=no
9534elif test "$shlibpath_overrides_runpath" = yes ||
9535     test "$enable_shared" = no; then
9536  # Fast installation is not necessary
9537  enable_fast_install=needless
9538fi
9539
9540striplib=
9541old_striplib=
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9543$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9544if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9545  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9546  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9547# <PATCH NAME="ISW20030916-1">
9548# <NEW>
9549# The following section is a PATCH to overcome the
9550# stripped import library issues under cygwin
9551  case $host_os in
9552    cygwin*)
9553        striplib=
9554        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555$as_echo "no" >&6; }
9556        ;;
9557    *)
9558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559$as_echo "yes" >&6; }
9560        ;;
9561   esac
9562# </NEW>
9563# <OLD>
9564#  AC_MSG_RESULT([yes])
9565# </OLD>
9566# </PATCH>
9567
9568else
9569# FIXME - insert some real tests, host_os isn't really good enough
9570  case $host_os in
9571   darwin*)
9572       if test -n "$STRIP" ; then
9573         striplib="$STRIP -x"
9574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9575$as_echo "yes" >&6; }
9576       else
9577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578$as_echo "no" >&6; }
9579fi
9580       ;;
9581   *)
9582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583$as_echo "no" >&6; }
9584    ;;
9585  esac
9586fi
9587
9588if test "x$enable_dlopen" != xyes; then
9589  enable_dlopen=unknown
9590  enable_dlopen_self=unknown
9591  enable_dlopen_self_static=unknown
9592else
9593  lt_cv_dlopen=no
9594  lt_cv_dlopen_libs=
9595
9596  case $host_os in
9597  beos*)
9598    lt_cv_dlopen="load_add_on"
9599    lt_cv_dlopen_libs=
9600    lt_cv_dlopen_self=yes
9601    ;;
9602
9603  mingw* | pw32*)
9604    lt_cv_dlopen="LoadLibrary"
9605    lt_cv_dlopen_libs=
9606   ;;
9607
9608  cygwin*)
9609    lt_cv_dlopen="dlopen"
9610    lt_cv_dlopen_libs=
9611   ;;
9612
9613  darwin*)
9614  # if libdl is installed we need to link against it
9615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9616$as_echo_n "checking for dlopen in -ldl... " >&6; }
9617if ${ac_cv_lib_dl_dlopen+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  ac_check_lib_save_LIBS=$LIBS
9621LIBS="-ldl  $LIBS"
9622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h.  */
9624
9625/* Override any GCC internal prototype to avoid an error.
9626   Use char because int might match the return type of a GCC
9627   builtin and then its argument prototype would still apply.  */
9628#ifdef __cplusplus
9629extern "C"
9630#endif
9631char dlopen ();
9632int
9633main ()
9634{
9635return dlopen ();
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641  ac_cv_lib_dl_dlopen=yes
9642else
9643  ac_cv_lib_dl_dlopen=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext \
9646    conftest$ac_exeext conftest.$ac_ext
9647LIBS=$ac_check_lib_save_LIBS
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9652  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9653else
9654
9655    lt_cv_dlopen="dyld"
9656    lt_cv_dlopen_libs=
9657    lt_cv_dlopen_self=yes
9658
9659fi
9660
9661   ;;
9662
9663  *)
9664    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9665if test "x$ac_cv_func_shl_load" = xyes; then :
9666  lt_cv_dlopen="shl_load"
9667else
9668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9669$as_echo_n "checking for shl_load in -ldld... " >&6; }
9670if ${ac_cv_lib_dld_shl_load+:} false; then :
9671  $as_echo_n "(cached) " >&6
9672else
9673  ac_check_lib_save_LIBS=$LIBS
9674LIBS="-ldld  $LIBS"
9675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677
9678/* Override any GCC internal prototype to avoid an error.
9679   Use char because int might match the return type of a GCC
9680   builtin and then its argument prototype would still apply.  */
9681#ifdef __cplusplus
9682extern "C"
9683#endif
9684char shl_load ();
9685int
9686main ()
9687{
9688return shl_load ();
9689  ;
9690  return 0;
9691}
9692_ACEOF
9693if ac_fn_c_try_link "$LINENO"; then :
9694  ac_cv_lib_dld_shl_load=yes
9695else
9696  ac_cv_lib_dld_shl_load=no
9697fi
9698rm -f core conftest.err conftest.$ac_objext \
9699    conftest$ac_exeext conftest.$ac_ext
9700LIBS=$ac_check_lib_save_LIBS
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9703$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9704if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9705  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9706else
9707  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9708if test "x$ac_cv_func_dlopen" = xyes; then :
9709  lt_cv_dlopen="dlopen"
9710else
9711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9712$as_echo_n "checking for dlopen in -ldl... " >&6; }
9713if ${ac_cv_lib_dl_dlopen+:} false; then :
9714  $as_echo_n "(cached) " >&6
9715else
9716  ac_check_lib_save_LIBS=$LIBS
9717LIBS="-ldl  $LIBS"
9718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719/* end confdefs.h.  */
9720
9721/* Override any GCC internal prototype to avoid an error.
9722   Use char because int might match the return type of a GCC
9723   builtin and then its argument prototype would still apply.  */
9724#ifdef __cplusplus
9725extern "C"
9726#endif
9727char dlopen ();
9728int
9729main ()
9730{
9731return dlopen ();
9732  ;
9733  return 0;
9734}
9735_ACEOF
9736if ac_fn_c_try_link "$LINENO"; then :
9737  ac_cv_lib_dl_dlopen=yes
9738else
9739  ac_cv_lib_dl_dlopen=no
9740fi
9741rm -f core conftest.err conftest.$ac_objext \
9742    conftest$ac_exeext conftest.$ac_ext
9743LIBS=$ac_check_lib_save_LIBS
9744fi
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9746$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9747if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9748  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9749else
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9751$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9752if ${ac_cv_lib_svld_dlopen+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  ac_check_lib_save_LIBS=$LIBS
9756LIBS="-lsvld  $LIBS"
9757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761   Use char because int might match the return type of a GCC
9762   builtin and then its argument prototype would still apply.  */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char dlopen ();
9767int
9768main ()
9769{
9770return dlopen ();
9771  ;
9772  return 0;
9773}
9774_ACEOF
9775if ac_fn_c_try_link "$LINENO"; then :
9776  ac_cv_lib_svld_dlopen=yes
9777else
9778  ac_cv_lib_svld_dlopen=no
9779fi
9780rm -f core conftest.err conftest.$ac_objext \
9781    conftest$ac_exeext conftest.$ac_ext
9782LIBS=$ac_check_lib_save_LIBS
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9785$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9786if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9787  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9788else
9789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9790$as_echo_n "checking for dld_link in -ldld... " >&6; }
9791if ${ac_cv_lib_dld_dld_link+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  ac_check_lib_save_LIBS=$LIBS
9795LIBS="-ldld  $LIBS"
9796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h.  */
9798
9799/* Override any GCC internal prototype to avoid an error.
9800   Use char because int might match the return type of a GCC
9801   builtin and then its argument prototype would still apply.  */
9802#ifdef __cplusplus
9803extern "C"
9804#endif
9805char dld_link ();
9806int
9807main ()
9808{
9809return dld_link ();
9810  ;
9811  return 0;
9812}
9813_ACEOF
9814if ac_fn_c_try_link "$LINENO"; then :
9815  ac_cv_lib_dld_dld_link=yes
9816else
9817  ac_cv_lib_dld_dld_link=no
9818fi
9819rm -f core conftest.err conftest.$ac_objext \
9820    conftest$ac_exeext conftest.$ac_ext
9821LIBS=$ac_check_lib_save_LIBS
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9824$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9825if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9826  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9827fi
9828
9829
9830fi
9831
9832
9833fi
9834
9835
9836fi
9837
9838
9839fi
9840
9841
9842fi
9843
9844    ;;
9845  esac
9846
9847  if test "x$lt_cv_dlopen" != xno; then
9848    enable_dlopen=yes
9849  else
9850    enable_dlopen=no
9851  fi
9852
9853  case $lt_cv_dlopen in
9854  dlopen)
9855    save_CPPFLAGS="$CPPFLAGS"
9856    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9857
9858    save_LDFLAGS="$LDFLAGS"
9859    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9860
9861    save_LIBS="$LIBS"
9862    LIBS="$lt_cv_dlopen_libs $LIBS"
9863
9864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9865$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9866if ${lt_cv_dlopen_self+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  	  if test "$cross_compiling" = yes; then :
9870  lt_cv_dlopen_self=cross
9871else
9872  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9873  lt_status=$lt_dlunknown
9874  cat > conftest.$ac_ext <<EOF
9875#line 9875 "configure"
9876#include "confdefs.h"
9877
9878#if HAVE_DLFCN_H
9879#include <dlfcn.h>
9880#endif
9881
9882#include <stdio.h>
9883
9884#ifdef RTLD_GLOBAL
9885#  define LT_DLGLOBAL		RTLD_GLOBAL
9886#else
9887#  ifdef DL_GLOBAL
9888#    define LT_DLGLOBAL		DL_GLOBAL
9889#  else
9890#    define LT_DLGLOBAL		0
9891#  endif
9892#endif
9893
9894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9895   find out it does not work in some platform. */
9896#ifndef LT_DLLAZY_OR_NOW
9897#  ifdef RTLD_LAZY
9898#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9899#  else
9900#    ifdef DL_LAZY
9901#      define LT_DLLAZY_OR_NOW		DL_LAZY
9902#    else
9903#      ifdef RTLD_NOW
9904#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9905#      else
9906#        ifdef DL_NOW
9907#          define LT_DLLAZY_OR_NOW	DL_NOW
9908#        else
9909#          define LT_DLLAZY_OR_NOW	0
9910#        endif
9911#      endif
9912#    endif
9913#  endif
9914#endif
9915
9916#ifdef __cplusplus
9917extern "C" void exit (int);
9918#endif
9919
9920void fnord() { int i=42;}
9921int main ()
9922{
9923  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9924  int status = $lt_dlunknown;
9925
9926  if (self)
9927    {
9928      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9929      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9930      /* dlclose (self); */
9931    }
9932
9933    exit (status);
9934}
9935EOF
9936  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9937  (eval $ac_link) 2>&5
9938  ac_status=$?
9939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9940  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9941    (./conftest; exit; ) 2>/dev/null
9942    lt_status=$?
9943    case x$lt_status in
9944      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9945      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9946      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9947    esac
9948  else :
9949    # compilation failed
9950    lt_cv_dlopen_self=no
9951  fi
9952fi
9953rm -fr conftest*
9954
9955
9956fi
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9958$as_echo "$lt_cv_dlopen_self" >&6; }
9959
9960    if test "x$lt_cv_dlopen_self" = xyes; then
9961      LDFLAGS="$LDFLAGS $link_static_flag"
9962      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9963$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9964if ${lt_cv_dlopen_self_static+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  	  if test "$cross_compiling" = yes; then :
9968  lt_cv_dlopen_self_static=cross
9969else
9970  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9971  lt_status=$lt_dlunknown
9972  cat > conftest.$ac_ext <<EOF
9973#line 9973 "configure"
9974#include "confdefs.h"
9975
9976#if HAVE_DLFCN_H
9977#include <dlfcn.h>
9978#endif
9979
9980#include <stdio.h>
9981
9982#ifdef RTLD_GLOBAL
9983#  define LT_DLGLOBAL		RTLD_GLOBAL
9984#else
9985#  ifdef DL_GLOBAL
9986#    define LT_DLGLOBAL		DL_GLOBAL
9987#  else
9988#    define LT_DLGLOBAL		0
9989#  endif
9990#endif
9991
9992/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9993   find out it does not work in some platform. */
9994#ifndef LT_DLLAZY_OR_NOW
9995#  ifdef RTLD_LAZY
9996#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9997#  else
9998#    ifdef DL_LAZY
9999#      define LT_DLLAZY_OR_NOW		DL_LAZY
10000#    else
10001#      ifdef RTLD_NOW
10002#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10003#      else
10004#        ifdef DL_NOW
10005#          define LT_DLLAZY_OR_NOW	DL_NOW
10006#        else
10007#          define LT_DLLAZY_OR_NOW	0
10008#        endif
10009#      endif
10010#    endif
10011#  endif
10012#endif
10013
10014#ifdef __cplusplus
10015extern "C" void exit (int);
10016#endif
10017
10018void fnord() { int i=42;}
10019int main ()
10020{
10021  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10022  int status = $lt_dlunknown;
10023
10024  if (self)
10025    {
10026      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10027      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10028      /* dlclose (self); */
10029    }
10030
10031    exit (status);
10032}
10033EOF
10034  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10035  (eval $ac_link) 2>&5
10036  ac_status=$?
10037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10039    (./conftest; exit; ) 2>/dev/null
10040    lt_status=$?
10041    case x$lt_status in
10042      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10043      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10044      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10045    esac
10046  else :
10047    # compilation failed
10048    lt_cv_dlopen_self_static=no
10049  fi
10050fi
10051rm -fr conftest*
10052
10053
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10056$as_echo "$lt_cv_dlopen_self_static" >&6; }
10057    fi
10058
10059    CPPFLAGS="$save_CPPFLAGS"
10060    LDFLAGS="$save_LDFLAGS"
10061    LIBS="$save_LIBS"
10062    ;;
10063  esac
10064
10065  case $lt_cv_dlopen_self in
10066  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10067  *) enable_dlopen_self=unknown ;;
10068  esac
10069
10070  case $lt_cv_dlopen_self_static in
10071  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10072  *) enable_dlopen_self_static=unknown ;;
10073  esac
10074fi
10075
10076
10077# Report which librarie types wil actually be built
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10079$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10081$as_echo "$can_build_shared" >&6; }
10082
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10084$as_echo_n "checking whether to build shared libraries... " >&6; }
10085test "$can_build_shared" = "no" && enable_shared=no
10086
10087# On AIX, shared libraries and static libraries use the same namespace, and
10088# are all built from PIC.
10089case "$host_os" in
10090aix3*)
10091  test "$enable_shared" = yes && enable_static=no
10092  if test -n "$RANLIB"; then
10093    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10094    postinstall_cmds='$RANLIB $lib'
10095  fi
10096  ;;
10097
10098aix4*)
10099  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10100    test "$enable_shared" = yes && enable_static=no
10101  fi
10102  ;;
10103  darwin* | rhapsody*)
10104  if test "$GCC" = yes; then
10105    archive_cmds_need_lc=no
10106    case "$host_os" in
10107    rhapsody* | darwin1.[012])
10108      allow_undefined_flag='-undefined suppress'
10109      ;;
10110    *) # Darwin 1.3 on
10111      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10112      	allow_undefined_flag='-flat_namespace -undefined suppress'
10113      else
10114        case ${MACOSX_DEPLOYMENT_TARGET} in
10115          10.[012])
10116            allow_undefined_flag='-flat_namespace -undefined suppress'
10117            ;;
10118          10.*)
10119            allow_undefined_flag='-undefined dynamic_lookup'
10120            ;;
10121        esac
10122      fi
10123      ;;
10124    esac
10125    output_verbose_link_cmd='echo'
10126    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10127    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10128    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10129    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10130    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10131    hardcode_direct=no
10132    hardcode_automatic=yes
10133    hardcode_shlibpath_var=unsupported
10134    whole_archive_flag_spec='-all_load $convenience'
10135    link_all_deplibs=yes
10136  else
10137    ld_shlibs=no
10138  fi
10139    ;;
10140esac
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10142$as_echo "$enable_shared" >&6; }
10143
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10145$as_echo_n "checking whether to build static libraries... " >&6; }
10146# Make sure either enable_shared or enable_static is yes.
10147test "$enable_shared" = yes || enable_static=yes
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10149$as_echo "$enable_static" >&6; }
10150
10151# The else clause should only fire when bootstrapping the
10152# libtool distribution, otherwise you forgot to ship ltmain.sh
10153# with your package, and you will get complaints that there are
10154# no rules to generate ltmain.sh.
10155if test -f "$ltmain"; then
10156  # See if we are running on zsh, and set the options which allow our commands through
10157  # without removal of \ escapes.
10158  if test -n "${ZSH_VERSION+set}" ; then
10159    setopt NO_GLOB_SUBST
10160  fi
10161  # Now quote all the things that may contain metacharacters while being
10162  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10163  # variables and quote the copies for generation of the libtool script.
10164  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
10165    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10166    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10167    deplibs_check_method reload_flag reload_cmds need_locks \
10168    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10169    lt_cv_sys_global_symbol_to_c_name_address \
10170    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10171    old_postinstall_cmds old_postuninstall_cmds \
10172    compiler \
10173    CC \
10174    LD \
10175    lt_prog_compiler_wl \
10176    lt_prog_compiler_pic \
10177    lt_prog_compiler_static \
10178    lt_prog_compiler_no_builtin_flag \
10179    export_dynamic_flag_spec \
10180    thread_safe_flag_spec \
10181    whole_archive_flag_spec \
10182    enable_shared_with_static_runtimes \
10183    old_archive_cmds \
10184    old_archive_from_new_cmds \
10185    predep_objects \
10186    postdep_objects \
10187    predeps \
10188    postdeps \
10189    compiler_lib_search_path \
10190    archive_cmds \
10191    archive_expsym_cmds \
10192    postinstall_cmds \
10193    postuninstall_cmds \
10194    old_archive_from_expsyms_cmds \
10195    allow_undefined_flag \
10196    no_undefined_flag \
10197    export_symbols_cmds \
10198    hardcode_libdir_flag_spec \
10199    hardcode_libdir_flag_spec_ld \
10200    hardcode_libdir_separator \
10201    hardcode_automatic \
10202    module_cmds \
10203    module_expsym_cmds \
10204    lt_cv_prog_compiler_c_o \
10205    exclude_expsyms \
10206    include_expsyms; do
10207
10208    case $var in
10209    old_archive_cmds | \
10210    old_archive_from_new_cmds | \
10211    archive_cmds | \
10212    archive_expsym_cmds | \
10213    module_cmds | \
10214    module_expsym_cmds | \
10215    old_archive_from_expsyms_cmds | \
10216    export_symbols_cmds | \
10217    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10218    postinstall_cmds | postuninstall_cmds | \
10219    old_postinstall_cmds | old_postuninstall_cmds | \
10220    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10221      # Double-quote double-evaled strings.
10222      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10223      ;;
10224    *)
10225      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10226      ;;
10227    esac
10228  done
10229
10230  case $lt_echo in
10231  *'\$0 --fallback-echo"')
10232    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10233    ;;
10234  esac
10235
10236cfgfile="${ofile}T"
10237  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10238  $rm -f "$cfgfile"
10239  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10240$as_echo "$as_me: creating $ofile" >&6;}
10241
10242  cat <<__EOF__ >> "$cfgfile"
10243#! $SHELL
10244
10245# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10246# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10247# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10248#
10249# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10250# Free Software Foundation, Inc.
10251#
10252# This file is part of GNU Libtool:
10253# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10254#
10255# This program is free software; you can redistribute it and/or modify
10256# it under the terms of the GNU General Public License as published by
10257# the Free Software Foundation; either version 2 of the License, or
10258# (at your option) any later version.
10259#
10260# This program is distributed in the hope that it will be useful, but
10261# WITHOUT ANY WARRANTY; without even the implied warranty of
10262# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10263# General Public License for more details.
10264#
10265# You should have received a copy of the GNU General Public License
10266# along with this program; if not, write to the Free Software
10267# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10268#
10269# As a special exception to the GNU General Public License, if you
10270# distribute this file as part of a program that contains a
10271# configuration script generated by Autoconf, you may include it under
10272# the same distribution terms that you use for the rest of that program.
10273
10274# A sed program that does not truncate output.
10275SED=$lt_SED
10276
10277# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10278Xsed="$SED -e s/^X//"
10279
10280# The HP-UX ksh and POSIX shell print the target directory to stdout
10281# if CDPATH is set.
10282if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10283
10284# The names of the tagged configurations supported by this script.
10285available_tags=
10286
10287# ### BEGIN LIBTOOL CONFIG
10288
10289# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10290
10291# Shell to use when invoking shell scripts.
10292SHELL=$lt_SHELL
10293
10294# Whether or not to build shared libraries.
10295build_libtool_libs=$enable_shared
10296
10297# Whether or not to build static libraries.
10298build_old_libs=$enable_static
10299
10300# Whether or not to add -lc for building shared libraries.
10301build_libtool_need_lc=$archive_cmds_need_lc
10302
10303# Whether or not to disallow shared libs when runtime libs are static
10304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10305
10306# Whether or not to optimize for fast installation.
10307fast_install=$enable_fast_install
10308
10309# The host system.
10310host_alias=$host_alias
10311host=$host
10312
10313# An echo program that does not interpret backslashes.
10314echo=$lt_echo
10315
10316# The archiver.
10317AR=$lt_AR
10318AR_FLAGS=$lt_AR_FLAGS
10319
10320# A C compiler.
10321LTCC=$lt_LTCC
10322
10323# A language-specific compiler.
10324CC=$lt_compiler
10325
10326# Is the compiler the GNU C compiler?
10327with_gcc=$GCC
10328
10329# An ERE matcher.
10330EGREP=$lt_EGREP
10331
10332# The linker used to build libraries.
10333LD=$lt_LD
10334
10335# Whether we need hard or soft links.
10336LN_S=$lt_LN_S
10337
10338# A BSD-compatible nm program.
10339NM=$lt_NM
10340
10341# A symbol stripping program
10342STRIP=$STRIP
10343
10344# Used to examine libraries when file_magic_cmd begins "file"
10345MAGIC_CMD=$MAGIC_CMD
10346
10347# Used on cygwin: DLL creation program.
10348DLLTOOL="$DLLTOOL"
10349
10350# Used on cygwin: object dumper.
10351OBJDUMP="$OBJDUMP"
10352
10353# Used on cygwin: assembler.
10354AS="$AS"
10355
10356# The name of the directory that contains temporary libtool files.
10357objdir=$objdir
10358
10359# How to create reloadable object files.
10360reload_flag=$lt_reload_flag
10361reload_cmds=$lt_reload_cmds
10362
10363# How to pass a linker flag through the compiler.
10364wl=$lt_lt_prog_compiler_wl
10365
10366# Object file suffix (normally "o").
10367objext="$ac_objext"
10368
10369# Old archive suffix (normally "a").
10370libext="$libext"
10371
10372# Shared library suffix (normally ".so").
10373shrext='$shrext'
10374
10375# Executable file suffix (normally "").
10376exeext="$exeext"
10377
10378# Additional compiler flags for building library objects.
10379pic_flag=$lt_lt_prog_compiler_pic
10380pic_mode=$pic_mode
10381
10382# What is the maximum length of a command?
10383max_cmd_len=$lt_cv_sys_max_cmd_len
10384
10385# Does compiler simultaneously support -c and -o options?
10386compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10387
10388# Must we lock files when doing compilation ?
10389need_locks=$lt_need_locks
10390
10391# Do we need the lib prefix for modules?
10392need_lib_prefix=$need_lib_prefix
10393
10394# Do we need a version for libraries?
10395need_version=$need_version
10396
10397# Whether dlopen is supported.
10398dlopen_support=$enable_dlopen
10399
10400# Whether dlopen of programs is supported.
10401dlopen_self=$enable_dlopen_self
10402
10403# Whether dlopen of statically linked programs is supported.
10404dlopen_self_static=$enable_dlopen_self_static
10405
10406# Compiler flag to prevent dynamic linking.
10407link_static_flag=$lt_lt_prog_compiler_static
10408
10409# Compiler flag to turn off builtin functions.
10410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10411
10412# Compiler flag to allow reflexive dlopens.
10413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10414
10415# Compiler flag to generate shared objects directly from archives.
10416whole_archive_flag_spec=$lt_whole_archive_flag_spec
10417
10418# Compiler flag to generate thread-safe objects.
10419thread_safe_flag_spec=$lt_thread_safe_flag_spec
10420
10421# Library versioning type.
10422version_type=$version_type
10423
10424# Format of library name prefix.
10425libname_spec=$lt_libname_spec
10426
10427# List of archive names.  First name is the real one, the rest are links.
10428# The last name is the one that the linker finds with -lNAME.
10429library_names_spec=$lt_library_names_spec
10430
10431# The coded name of the library, if different from the real name.
10432soname_spec=$lt_soname_spec
10433
10434# Commands used to build and install an old-style archive.
10435RANLIB=$lt_RANLIB
10436old_archive_cmds=$lt_old_archive_cmds
10437old_postinstall_cmds=$lt_old_postinstall_cmds
10438old_postuninstall_cmds=$lt_old_postuninstall_cmds
10439
10440# Create an old-style archive from a shared archive.
10441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10442
10443# Create a temporary old-style archive to link instead of a shared archive.
10444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10445
10446# Commands used to build and install a shared archive.
10447archive_cmds=$lt_archive_cmds
10448archive_expsym_cmds=$lt_archive_expsym_cmds
10449postinstall_cmds=$lt_postinstall_cmds
10450postuninstall_cmds=$lt_postuninstall_cmds
10451
10452# Commands used to build a loadable module (assumed same as above if empty)
10453module_cmds=$lt_module_cmds
10454module_expsym_cmds=$lt_module_expsym_cmds
10455
10456# Commands to strip libraries.
10457old_striplib=$lt_old_striplib
10458striplib=$lt_striplib
10459
10460# Dependencies to place before the objects being linked to create a
10461# shared library.
10462predep_objects=$lt_predep_objects
10463
10464# Dependencies to place after the objects being linked to create a
10465# shared library.
10466postdep_objects=$lt_postdep_objects
10467
10468# Dependencies to place before the objects being linked to create a
10469# shared library.
10470predeps=$lt_predeps
10471
10472# Dependencies to place after the objects being linked to create a
10473# shared library.
10474postdeps=$lt_postdeps
10475
10476# The library search path used internally by the compiler when linking
10477# a shared library.
10478compiler_lib_search_path=$lt_compiler_lib_search_path
10479
10480# Method to check whether dependent libraries are shared objects.
10481deplibs_check_method=$lt_deplibs_check_method
10482
10483# Command to use when deplibs_check_method == file_magic.
10484file_magic_cmd=$lt_file_magic_cmd
10485
10486# Flag that allows shared libraries with undefined symbols to be built.
10487allow_undefined_flag=$lt_allow_undefined_flag
10488
10489# Flag that forces no undefined symbols.
10490no_undefined_flag=$lt_no_undefined_flag
10491
10492# Commands used to finish a libtool library installation in a directory.
10493finish_cmds=$lt_finish_cmds
10494
10495# Same as above, but a single script fragment to be evaled but not shown.
10496finish_eval=$lt_finish_eval
10497
10498# Take the output of nm and produce a listing of raw symbols and C names.
10499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10500
10501# Transform the output of nm in a proper C declaration
10502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10503
10504# Transform the output of nm in a C name address pair
10505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10506
10507# This is the shared library runtime path variable.
10508runpath_var=$runpath_var
10509
10510# This is the shared library path variable.
10511shlibpath_var=$shlibpath_var
10512
10513# Is shlibpath searched before the hard-coded library search path?
10514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10515
10516# How to hardcode a shared library path into an executable.
10517hardcode_action=$hardcode_action
10518
10519# Whether we should hardcode library paths into libraries.
10520hardcode_into_libs=$hardcode_into_libs
10521
10522# Flag to hardcode \$libdir into a binary during linking.
10523# This must work even if \$libdir does not exist.
10524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10525
10526# If ld is used when linking, flag to hardcode \$libdir into
10527# a binary during linking. This must work even if \$libdir does
10528# not exist.
10529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10530
10531# Whether we need a single -rpath flag with a separated argument.
10532hardcode_libdir_separator=$lt_hardcode_libdir_separator
10533
10534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10535# resulting binary.
10536hardcode_direct=$hardcode_direct
10537
10538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10539# resulting binary.
10540hardcode_minus_L=$hardcode_minus_L
10541
10542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10543# the resulting binary.
10544hardcode_shlibpath_var=$hardcode_shlibpath_var
10545
10546# Set to yes if building a shared library automatically hardcodes DIR into the library
10547# and all subsequent libraries and executables linked against it.
10548hardcode_automatic=$hardcode_automatic
10549
10550# Variables whose values should be saved in libtool wrapper scripts and
10551# restored at relink time.
10552variables_saved_for_relink="$variables_saved_for_relink"
10553
10554# Whether libtool must link a program against all its dependency libraries.
10555link_all_deplibs=$link_all_deplibs
10556
10557# Compile-time system search path for libraries
10558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10559
10560# Run-time system search path for libraries
10561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10562
10563# Fix the shell variable \$srcfile for the compiler.
10564fix_srcfile_path="$fix_srcfile_path"
10565
10566# Set to yes if exported symbols are required.
10567always_export_symbols=$always_export_symbols
10568
10569# The commands to list exported symbols.
10570export_symbols_cmds=$lt_export_symbols_cmds
10571
10572# The commands to extract the exported symbol list from a shared archive.
10573extract_expsyms_cmds=$lt_extract_expsyms_cmds
10574
10575# Symbols that should not be listed in the preloaded symbols.
10576exclude_expsyms=$lt_exclude_expsyms
10577
10578# Symbols that must always be exported.
10579include_expsyms=$lt_include_expsyms
10580
10581# ### END LIBTOOL CONFIG
10582
10583__EOF__
10584
10585
10586  case $host_os in
10587  aix3*)
10588    cat <<\EOF >> "$cfgfile"
10589
10590# AIX sometimes has problems with the GCC collect2 program.  For some
10591# reason, if we set the COLLECT_NAMES environment variable, the problems
10592# vanish in a puff of smoke.
10593if test "X${COLLECT_NAMES+set}" != Xset; then
10594  COLLECT_NAMES=
10595  export COLLECT_NAMES
10596fi
10597EOF
10598    ;;
10599  esac
10600
10601  # We use sed instead of cat because bash on DJGPP gets confused if
10602  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10603  # text mode, it properly converts lines to CR/LF.  This bash problem
10604  # is reportedly fixed, but why not run on old versions too?
10605  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10606
10607  mv -f "$cfgfile" "$ofile" || \
10608    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10609  chmod +x "$ofile"
10610
10611else
10612  # If there is no Makefile yet, we rely on a make rule to execute
10613  # `config.status --recheck' to rerun these tests and create the
10614  # libtool script then.
10615  test -f Makefile && make "$ltmain"
10616fi
10617
10618
10619ac_ext=c
10620ac_cpp='$CPP $CPPFLAGS'
10621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624
10625CC="$lt_save_CC"
10626
10627
10628# Check whether --with-tags was given.
10629if test "${with_tags+set}" = set; then :
10630  withval=$with_tags; tagnames="$withval"
10631fi
10632
10633
10634if test -f "$ltmain" && test -n "$tagnames"; then
10635  if test ! -f "${ofile}"; then
10636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10637$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10638  fi
10639
10640  if test -z "$LTCC"; then
10641    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10642    if test -z "$LTCC"; then
10643      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10644$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10645    else
10646      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10647$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10648    fi
10649  fi
10650
10651  # Extract list of available tagged configurations in $ofile.
10652  # Note that this assumes the entire list is on one line.
10653  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10654
10655  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10656  for tagname in $tagnames; do
10657    IFS="$lt_save_ifs"
10658    # Check whether tagname contains only valid characters
10659    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10660    "") ;;
10661    *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10662	;;
10663    esac
10664
10665    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10666    then
10667      as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10668    fi
10669
10670    # Update the list of available tags.
10671    if test -n "$tagname"; then
10672      echo appending configuration tag \"$tagname\" to $ofile
10673
10674      case $tagname in
10675      CXX)
10676	if test -n "$CXX" && test "X$CXX" != "Xno"; then
10677	  ac_ext=cpp
10678ac_cpp='$CXXCPP $CPPFLAGS'
10679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10682
10683
10684
10685
10686archive_cmds_need_lc_CXX=no
10687allow_undefined_flag_CXX=
10688always_export_symbols_CXX=no
10689archive_expsym_cmds_CXX=
10690export_dynamic_flag_spec_CXX=
10691hardcode_direct_CXX=no
10692hardcode_libdir_flag_spec_CXX=
10693hardcode_libdir_flag_spec_ld_CXX=
10694hardcode_libdir_separator_CXX=
10695hardcode_minus_L_CXX=no
10696hardcode_automatic_CXX=no
10697module_cmds_CXX=
10698module_expsym_cmds_CXX=
10699link_all_deplibs_CXX=unknown
10700old_archive_cmds_CXX=$old_archive_cmds
10701no_undefined_flag_CXX=
10702whole_archive_flag_spec_CXX=
10703enable_shared_with_static_runtimes_CXX=no
10704
10705# Dependencies to place before and after the object being linked:
10706predep_objects_CXX=
10707postdep_objects_CXX=
10708predeps_CXX=
10709postdeps_CXX=
10710compiler_lib_search_path_CXX=
10711
10712# Source file extension for C++ test sources.
10713ac_ext=cc
10714
10715# Object file extension for compiled C++ test sources.
10716objext=o
10717objext_CXX=$objext
10718
10719# Code to be used in simple compile tests
10720lt_simple_compile_test_code="int some_variable = 0;\n"
10721
10722# Code to be used in simple link tests
10723lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10724
10725# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10726
10727# If no C compiler was specified, use CC.
10728LTCC=${LTCC-"$CC"}
10729
10730# Allow CC to be a program name with arguments.
10731compiler=$CC
10732
10733
10734# Allow CC to be a program name with arguments.
10735lt_save_CC=$CC
10736lt_save_LD=$LD
10737lt_save_GCC=$GCC
10738GCC=$GXX
10739lt_save_with_gnu_ld=$with_gnu_ld
10740lt_save_path_LD=$lt_cv_path_LD
10741if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10742  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10743else
10744  unset lt_cv_prog_gnu_ld
10745fi
10746if test -n "${lt_cv_path_LDCXX+set}"; then
10747  lt_cv_path_LD=$lt_cv_path_LDCXX
10748else
10749  unset lt_cv_path_LD
10750fi
10751test -z "${LDCXX+set}" || LD=$LDCXX
10752CC=${CXX-"c++"}
10753compiler=$CC
10754compiler_CXX=$CC
10755cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10756
10757# We don't want -fno-exception wen compiling C++ code, so set the
10758# no_builtin_flag separately
10759if test "$GXX" = yes; then
10760  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10761else
10762  lt_prog_compiler_no_builtin_flag_CXX=
10763fi
10764
10765if test "$GXX" = yes; then
10766  # Set up default GNU C++ configuration
10767
10768
10769# Check whether --with-gnu-ld was given.
10770if test "${with_gnu_ld+set}" = set; then :
10771  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10772else
10773  with_gnu_ld=no
10774fi
10775
10776ac_prog=ld
10777if test "$GCC" = yes; then
10778  # Check if gcc -print-prog-name=ld gives a path.
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10780$as_echo_n "checking for ld used by $CC... " >&6; }
10781  case $host in
10782  *-*-mingw*)
10783    # gcc leaves a trailing carriage return which upsets mingw
10784    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10785  *)
10786    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10787  esac
10788  case $ac_prog in
10789    # Accept absolute paths.
10790    [\\/]* | ?:[\\/]*)
10791      re_direlt='/[^/][^/]*/\.\./'
10792      # Canonicalize the pathname of ld
10793      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10794      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10795	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10796      done
10797      test -z "$LD" && LD="$ac_prog"
10798      ;;
10799  "")
10800    # If it fails, then pretend we aren't using GCC.
10801    ac_prog=ld
10802    ;;
10803  *)
10804    # If it is relative, then search for the first ld in PATH.
10805    with_gnu_ld=unknown
10806    ;;
10807  esac
10808elif test "$with_gnu_ld" = yes; then
10809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10810$as_echo_n "checking for GNU ld... " >&6; }
10811else
10812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10813$as_echo_n "checking for non-GNU ld... " >&6; }
10814fi
10815if ${lt_cv_path_LD+:} false; then :
10816  $as_echo_n "(cached) " >&6
10817else
10818  if test -z "$LD"; then
10819  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10820  for ac_dir in $PATH; do
10821    IFS="$lt_save_ifs"
10822    test -z "$ac_dir" && ac_dir=.
10823    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10824      lt_cv_path_LD="$ac_dir/$ac_prog"
10825      # Check to see if the program is GNU ld.  I'd rather use --version,
10826      # but apparently some GNU ld's only accept -v.
10827      # Break only if it was the GNU/non-GNU ld that we prefer.
10828      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10829      *GNU* | *'with BFD'*)
10830	test "$with_gnu_ld" != no && break
10831	;;
10832      *)
10833	test "$with_gnu_ld" != yes && break
10834	;;
10835      esac
10836    fi
10837  done
10838  IFS="$lt_save_ifs"
10839else
10840  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10841fi
10842fi
10843
10844LD="$lt_cv_path_LD"
10845if test -n "$LD"; then
10846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10847$as_echo "$LD" >&6; }
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
10851fi
10852test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10854$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10855if ${lt_cv_prog_gnu_ld+:} false; then :
10856  $as_echo_n "(cached) " >&6
10857else
10858  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10859case `$LD -v 2>&1 </dev/null` in
10860*GNU* | *'with BFD'*)
10861  lt_cv_prog_gnu_ld=yes
10862  ;;
10863*)
10864  lt_cv_prog_gnu_ld=no
10865  ;;
10866esac
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10869$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10870with_gnu_ld=$lt_cv_prog_gnu_ld
10871
10872
10873
10874  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10875  # archiving commands below assume that GNU ld is being used.
10876  if test "$with_gnu_ld" = yes; then
10877    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10879
10880    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10881    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10882
10883    # If archive_cmds runs LD, not CC, wlarc should be empty
10884    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10885    #     investigate it a little bit more. (MM)
10886    wlarc='${wl}'
10887
10888    # ancient GNU ld didn't support --whole-archive et. al.
10889    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10890	grep 'no-whole-archive' > /dev/null; then
10891      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10892    else
10893      whole_archive_flag_spec_CXX=
10894    fi
10895  else
10896    with_gnu_ld=no
10897    wlarc=
10898
10899    # A generic and very simple default shared library creation
10900    # command for GNU C++ for the case where it uses the native
10901    # linker, instead of GNU ld.  If possible, this setting should
10902    # overridden to take advantage of the native linker features on
10903    # the platform it is being used on.
10904    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10905  fi
10906
10907  # Commands to make compiler produce verbose output that lists
10908  # what "hidden" libraries, object files and flags are used when
10909  # linking a shared library.
10910  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10911
10912else
10913  GXX=no
10914  with_gnu_ld=no
10915  wlarc=
10916fi
10917
10918# PORTME: fill in a description of your system's C++ link characteristics
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10920$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10921ld_shlibs_CXX=yes
10922case $host_os in
10923  aix3*)
10924    # FIXME: insert proper C++ library support
10925    ld_shlibs_CXX=no
10926    ;;
10927  aix4* | aix5*)
10928    if test "$host_cpu" = ia64; then
10929      # On IA64, the linker does run time linking by default, so we don't
10930      # have to do anything special.
10931      aix_use_runtimelinking=no
10932      exp_sym_flag='-Bexport'
10933      no_entry_flag=""
10934    else
10935      aix_use_runtimelinking=no
10936
10937      # Test if we are trying to use run time linking or normal
10938      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10939      # need to do runtime linking.
10940      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10941	for ld_flag in $LDFLAGS; do
10942	  case $ld_flag in
10943	  *-brtl*)
10944	    aix_use_runtimelinking=yes
10945	    break
10946	    ;;
10947	  esac
10948	done
10949      esac
10950
10951      exp_sym_flag='-bexport'
10952      no_entry_flag='-bnoentry'
10953    fi
10954
10955    # When large executables or shared objects are built, AIX ld can
10956    # have problems creating the table of contents.  If linking a library
10957    # or program results in "error TOC overflow" add -mminimal-toc to
10958    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10959    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10960
10961    archive_cmds_CXX=''
10962    hardcode_direct_CXX=yes
10963    hardcode_libdir_separator_CXX=':'
10964    link_all_deplibs_CXX=yes
10965
10966    if test "$GXX" = yes; then
10967      case $host_os in aix4.012|aix4.012.*)
10968      # We only want to do this on AIX 4.2 and lower, the check
10969      # below for broken collect2 doesn't work under 4.3+
10970	collect2name=`${CC} -print-prog-name=collect2`
10971	if test -f "$collect2name" && \
10972	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10973	then
10974	  # We have reworked collect2
10975	  hardcode_direct_CXX=yes
10976	else
10977	  # We have old collect2
10978	  hardcode_direct_CXX=unsupported
10979	  # It fails to find uninstalled libraries when the uninstalled
10980	  # path is not listed in the libpath.  Setting hardcode_minus_L
10981	  # to unsupported forces relinking
10982	  hardcode_minus_L_CXX=yes
10983	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10984	  hardcode_libdir_separator_CXX=
10985	fi
10986      esac
10987      shared_flag='-shared'
10988    else
10989      # not using gcc
10990      if test "$host_cpu" = ia64; then
10991	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10992	# chokes on -Wl,-G. The following line is correct:
10993	shared_flag='-G'
10994      else
10995	if test "$aix_use_runtimelinking" = yes; then
10996	  shared_flag='${wl}-G'
10997	else
10998	  shared_flag='${wl}-bM:SRE'
10999	fi
11000      fi
11001    fi
11002
11003    # It seems that -bexpall does not export symbols beginning with
11004    # underscore (_), so it is better to generate a list of symbols to export.
11005    always_export_symbols_CXX=yes
11006    if test "$aix_use_runtimelinking" = yes; then
11007      # Warning - without using the other runtime loading flags (-brtl),
11008      # -berok will link without error, but may produce a broken library.
11009      allow_undefined_flag_CXX='-berok'
11010      # Determine the default libpath from the value encoded in an empty executable.
11011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012/* end confdefs.h.  */
11013
11014int
11015main ()
11016{
11017
11018  ;
11019  return 0;
11020}
11021_ACEOF
11022if ac_fn_cxx_try_link "$LINENO"; then :
11023
11024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11025}'`
11026# Check for a 64-bit object if we didn't find anything.
11027if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11028}'`; fi
11029fi
11030rm -f core conftest.err conftest.$ac_objext \
11031    conftest$ac_exeext conftest.$ac_ext
11032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11033
11034      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11035
11036      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11037     else
11038      if test "$host_cpu" = ia64; then
11039	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11040	allow_undefined_flag_CXX="-z nodefs"
11041	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11042      else
11043	# Determine the default libpath from the value encoded in an empty executable.
11044	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h.  */
11046
11047int
11048main ()
11049{
11050
11051  ;
11052  return 0;
11053}
11054_ACEOF
11055if ac_fn_cxx_try_link "$LINENO"; then :
11056
11057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11058}'`
11059# Check for a 64-bit object if we didn't find anything.
11060if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11061}'`; fi
11062fi
11063rm -f core conftest.err conftest.$ac_objext \
11064    conftest$ac_exeext conftest.$ac_ext
11065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11066
11067	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11068	# Warning - without using the other run time loading flags,
11069	# -berok will link without error, but may produce a broken library.
11070	no_undefined_flag_CXX=' ${wl}-bernotok'
11071	allow_undefined_flag_CXX=' ${wl}-berok'
11072	# -bexpall does not export symbols beginning with underscore (_)
11073	always_export_symbols_CXX=yes
11074	# Exported symbols can be pulled into shared objects from archives
11075	whole_archive_flag_spec_CXX=' '
11076	archive_cmds_need_lc_CXX=yes
11077	# This is similar to how AIX traditionally builds it's shared libraries.
11078	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11079      fi
11080    fi
11081    ;;
11082  chorus*)
11083    case $cc_basename in
11084      *)
11085	# FIXME: insert proper C++ library support
11086	ld_shlibs_CXX=no
11087	;;
11088    esac
11089    ;;
11090
11091  cygwin* | mingw* | pw32*)
11092    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11093    # as there is no search path for DLLs.
11094    hardcode_libdir_flag_spec_CXX='-L$libdir'
11095    allow_undefined_flag_CXX=unsupported
11096    always_export_symbols_CXX=no
11097    enable_shared_with_static_runtimes_CXX=yes
11098
11099    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11100      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11101      # If the export-symbols file already is a .def file (1st line
11102      # is EXPORTS), use it as is; otherwise, prepend...
11103      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11104	cp $export_symbols $output_objdir/$soname.def;
11105      else
11106	echo EXPORTS > $output_objdir/$soname.def;
11107	cat $export_symbols >> $output_objdir/$soname.def;
11108      fi~
11109      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11110    else
11111      ld_shlibs_CXX=no
11112    fi
11113  ;;
11114
11115  darwin* | rhapsody*)
11116  if test "$GXX" = yes; then
11117    archive_cmds_need_lc_CXX=no
11118    case "$host_os" in
11119    rhapsody* | darwin1.[012])
11120      allow_undefined_flag_CXX='-undefined suppress'
11121      ;;
11122    *) # Darwin 1.3 on
11123      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11124      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11125      else
11126        case ${MACOSX_DEPLOYMENT_TARGET} in
11127          10.[012])
11128            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11129            ;;
11130          10.*)
11131            allow_undefined_flag_CXX='-undefined dynamic_lookup'
11132            ;;
11133        esac
11134      fi
11135      ;;
11136    esac
11137    lt_int_apple_cc_single_mod=no
11138    output_verbose_link_cmd='echo'
11139    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11140      lt_int_apple_cc_single_mod=yes
11141    fi
11142    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11143      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11144    else
11145      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
11146    fi
11147    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11148
11149    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11150    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11151      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11152    else
11153      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11154    fi
11155    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11156    hardcode_direct_CXX=no
11157    hardcode_automatic_CXX=yes
11158    hardcode_shlibpath_var_CXX=unsupported
11159    whole_archive_flag_spec_CXX='-all_load $convenience'
11160    link_all_deplibs_CXX=yes
11161  else
11162    ld_shlibs_CXX=no
11163  fi
11164    ;;
11165
11166  dgux*)
11167    case $cc_basename in
11168      ec++)
11169	# FIXME: insert proper C++ library support
11170	ld_shlibs_CXX=no
11171	;;
11172      ghcx)
11173	# Green Hills C++ Compiler
11174	# FIXME: insert proper C++ library support
11175	ld_shlibs_CXX=no
11176	;;
11177      *)
11178	# FIXME: insert proper C++ library support
11179	ld_shlibs_CXX=no
11180	;;
11181    esac
11182    ;;
11183  freebsd12*)
11184    # C++ shared libraries reported to be fairly broken before switch to ELF
11185    ld_shlibs_CXX=no
11186    ;;
11187  freebsd-elf*)
11188    archive_cmds_need_lc_CXX=no
11189    ;;
11190  freebsd* | kfreebsd*-gnu)
11191    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11192    # conventions
11193    ld_shlibs_CXX=yes
11194    ;;
11195  gnu*)
11196    ;;
11197  hpux9*)
11198    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11199    hardcode_libdir_separator_CXX=:
11200    export_dynamic_flag_spec_CXX='${wl}-E'
11201    hardcode_direct_CXX=yes
11202    hardcode_minus_L_CXX=yes # Not in the search PATH,
11203				# but as the default
11204				# location of the library.
11205
11206    case $cc_basename in
11207    CC)
11208      # FIXME: insert proper C++ library support
11209      ld_shlibs_CXX=no
11210      ;;
11211    aCC)
11212      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11213      # Commands to make compiler produce verbose output that lists
11214      # what "hidden" libraries, object files and flags are used when
11215      # linking a shared library.
11216      #
11217      # There doesn't appear to be a way to prevent this compiler from
11218      # explicitly linking system object files so we need to strip them
11219      # from the output so that they don't get included in the library
11220      # dependencies.
11221      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; echo $list'
11222      ;;
11223    *)
11224      if test "$GXX" = yes; then
11225        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11226      else
11227        # FIXME: insert proper C++ library support
11228        ld_shlibs_CXX=no
11229      fi
11230      ;;
11231    esac
11232    ;;
11233  hpux10*|hpux11*)
11234    if test $with_gnu_ld = no; then
11235      case "$host_cpu" in
11236      hppa*64*)
11237	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11238	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11239	hardcode_libdir_separator_CXX=:
11240        ;;
11241      ia64*)
11242	hardcode_libdir_flag_spec_CXX='-L$libdir'
11243        ;;
11244      *)
11245	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11246	hardcode_libdir_separator_CXX=:
11247	export_dynamic_flag_spec_CXX='${wl}-E'
11248        ;;
11249      esac
11250    fi
11251    case "$host_cpu" in
11252    hppa*64*)
11253      hardcode_direct_CXX=no
11254      hardcode_shlibpath_var_CXX=no
11255      ;;
11256    ia64*)
11257      hardcode_direct_CXX=no
11258      hardcode_shlibpath_var_CXX=no
11259      hardcode_minus_L_CXX=yes # Not in the search PATH,
11260					      # but as the default
11261					      # location of the library.
11262      ;;
11263    *)
11264      hardcode_direct_CXX=yes
11265      hardcode_minus_L_CXX=yes # Not in the search PATH,
11266					      # but as the default
11267					      # location of the library.
11268      ;;
11269    esac
11270
11271    case $cc_basename in
11272      CC)
11273	# FIXME: insert proper C++ library support
11274	ld_shlibs_CXX=no
11275	;;
11276      aCC)
11277	case "$host_cpu" in
11278	hppa*64*|ia64*)
11279	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11280	  ;;
11281	*)
11282	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11283	  ;;
11284	esac
11285	# Commands to make compiler produce verbose output that lists
11286	# what "hidden" libraries, object files and flags are used when
11287	# linking a shared library.
11288	#
11289	# There doesn't appear to be a way to prevent this compiler from
11290	# explicitly linking system object files so we need to strip them
11291	# from the output so that they don't get included in the library
11292	# dependencies.
11293	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; echo $list'
11294	;;
11295      *)
11296	if test "$GXX" = yes; then
11297	  if test $with_gnu_ld = no; then
11298	    case "$host_cpu" in
11299	    ia64*|hppa*64*)
11300	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11301	      ;;
11302	    *)
11303	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11304	      ;;
11305	    esac
11306	  fi
11307	else
11308	  # FIXME: insert proper C++ library support
11309	  ld_shlibs_CXX=no
11310	fi
11311	;;
11312    esac
11313    ;;
11314  irix5* | irix6*)
11315    case $cc_basename in
11316      CC)
11317	# SGI C++
11318	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11319
11320	# Archives containing C++ object files must be created using
11321	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11322	# necessary to make sure instantiated templates are included
11323	# in the archive.
11324	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11325	;;
11326      *)
11327	if test "$GXX" = yes; then
11328	  if test "$with_gnu_ld" = no; then
11329	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11330	  else
11331	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11332	  fi
11333	fi
11334	link_all_deplibs_CXX=yes
11335	;;
11336    esac
11337    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11338    hardcode_libdir_separator_CXX=:
11339    ;;
11340  linux*)
11341    case $cc_basename in
11342      KCC)
11343	# Kuck and Associates, Inc. (KAI) C++ Compiler
11344
11345	# KCC will only create a shared library if the output file
11346	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11347	# to its proper name (with version) after linking.
11348	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'
11349	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'
11350	# Commands to make compiler produce verbose output that lists
11351	# what "hidden" libraries, object files and flags are used when
11352	# linking a shared library.
11353	#
11354	# There doesn't appear to be a way to prevent this compiler from
11355	# explicitly linking system object files so we need to strip them
11356	# from the output so that they don't get included in the library
11357	# dependencies.
11358	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; echo $list'
11359
11360	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11361	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11362
11363	# Archives containing C++ object files must be created using
11364	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11365	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11366	;;
11367      icpc)
11368	# Intel C++
11369	with_gnu_ld=yes
11370	archive_cmds_need_lc_CXX=no
11371	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11372	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'
11373	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11374	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11375	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11376	;;
11377      cxx)
11378	# Compaq C++
11379	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380	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'
11381
11382	runpath_var=LD_RUN_PATH
11383	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11384	hardcode_libdir_separator_CXX=:
11385
11386	# Commands to make compiler produce verbose output that lists
11387	# what "hidden" libraries, object files and flags are used when
11388	# linking a shared library.
11389	#
11390	# There doesn't appear to be a way to prevent this compiler from
11391	# explicitly linking system object files so we need to strip them
11392	# from the output so that they don't get included in the library
11393	# dependencies.
11394	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11395	;;
11396    esac
11397    ;;
11398  lynxos*)
11399    # FIXME: insert proper C++ library support
11400    ld_shlibs_CXX=no
11401    ;;
11402  m88k*)
11403    # FIXME: insert proper C++ library support
11404    ld_shlibs_CXX=no
11405    ;;
11406  mvs*)
11407    case $cc_basename in
11408      cxx)
11409	# FIXME: insert proper C++ library support
11410	ld_shlibs_CXX=no
11411	;;
11412      *)
11413	# FIXME: insert proper C++ library support
11414	ld_shlibs_CXX=no
11415	;;
11416    esac
11417    ;;
11418  netbsd*)
11419    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11420      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11421      wlarc=
11422      hardcode_libdir_flag_spec_CXX='-R$libdir'
11423      hardcode_direct_CXX=yes
11424      hardcode_shlibpath_var_CXX=no
11425    fi
11426    # Workaround some broken pre-1.5 toolchains
11427    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11428    ;;
11429  osf3*)
11430    case $cc_basename in
11431      KCC)
11432	# Kuck and Associates, Inc. (KAI) C++ Compiler
11433
11434	# KCC will only create a shared library if the output file
11435	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11436	# to its proper name (with version) after linking.
11437	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'
11438
11439	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11440	hardcode_libdir_separator_CXX=:
11441
11442	# Archives containing C++ object files must be created using
11443	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11444	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11445
11446	;;
11447      RCC)
11448	# Rational C++ 2.4.1
11449	# FIXME: insert proper C++ library support
11450	ld_shlibs_CXX=no
11451	;;
11452      cxx)
11453	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11454	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11455
11456	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11457	hardcode_libdir_separator_CXX=:
11458
11459	# Commands to make compiler produce verbose output that lists
11460	# what "hidden" libraries, object files and flags are used when
11461	# linking a shared library.
11462	#
11463	# There doesn't appear to be a way to prevent this compiler from
11464	# explicitly linking system object files so we need to strip them
11465	# from the output so that they don't get included in the library
11466	# dependencies.
11467	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11468	;;
11469      *)
11470	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11471	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11472	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11473
11474	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11475	  hardcode_libdir_separator_CXX=:
11476
11477	  # Commands to make compiler produce verbose output that lists
11478	  # what "hidden" libraries, object files and flags are used when
11479	  # linking a shared library.
11480	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11481
11482	else
11483	  # FIXME: insert proper C++ library support
11484	  ld_shlibs_CXX=no
11485	fi
11486	;;
11487    esac
11488    ;;
11489  osf4* | osf5*)
11490    case $cc_basename in
11491      KCC)
11492	# Kuck and Associates, Inc. (KAI) C++ Compiler
11493
11494	# KCC will only create a shared library if the output file
11495	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11496	# to its proper name (with version) after linking.
11497	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'
11498
11499	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11500	hardcode_libdir_separator_CXX=:
11501
11502	# Archives containing C++ object files must be created using
11503	# the KAI C++ compiler.
11504	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11505	;;
11506      RCC)
11507	# Rational C++ 2.4.1
11508	# FIXME: insert proper C++ library support
11509	ld_shlibs_CXX=no
11510	;;
11511      cxx)
11512	allow_undefined_flag_CXX=' -expect_unresolved \*'
11513	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11514	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11515	  echo "-hidden">> $lib.exp~
11516	  $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 $objdir/so_locations -o $lib~
11517	  $rm $lib.exp'
11518
11519	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11520	hardcode_libdir_separator_CXX=:
11521
11522	# Commands to make compiler produce verbose output that lists
11523	# what "hidden" libraries, object files and flags are used when
11524	# linking a shared library.
11525	#
11526	# There doesn't appear to be a way to prevent this compiler from
11527	# explicitly linking system object files so we need to strip them
11528	# from the output so that they don't get included in the library
11529	# dependencies.
11530	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11531	;;
11532      *)
11533	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11534	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11535	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11536
11537	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11538	  hardcode_libdir_separator_CXX=:
11539
11540	  # Commands to make compiler produce verbose output that lists
11541	  # what "hidden" libraries, object files and flags are used when
11542	  # linking a shared library.
11543	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11544
11545	else
11546	  # FIXME: insert proper C++ library support
11547	  ld_shlibs_CXX=no
11548	fi
11549	;;
11550    esac
11551    ;;
11552  psos*)
11553    # FIXME: insert proper C++ library support
11554    ld_shlibs_CXX=no
11555    ;;
11556  sco*)
11557    archive_cmds_need_lc_CXX=no
11558    case $cc_basename in
11559      CC)
11560	# FIXME: insert proper C++ library support
11561	ld_shlibs_CXX=no
11562	;;
11563      *)
11564	# FIXME: insert proper C++ library support
11565	ld_shlibs_CXX=no
11566	;;
11567    esac
11568    ;;
11569  sunos4*)
11570    case $cc_basename in
11571      CC)
11572	# Sun C++ 4.x
11573	# FIXME: insert proper C++ library support
11574	ld_shlibs_CXX=no
11575	;;
11576      lcc)
11577	# Lucid
11578	# FIXME: insert proper C++ library support
11579	ld_shlibs_CXX=no
11580	;;
11581      *)
11582	# FIXME: insert proper C++ library support
11583	ld_shlibs_CXX=no
11584	;;
11585    esac
11586    ;;
11587  solaris*)
11588    case $cc_basename in
11589      CC)
11590	# Sun C++ 4.2, 5.x and Centerline C++
11591	no_undefined_flag_CXX=' -zdefs'
11592	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11593	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11594	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11595
11596	hardcode_libdir_flag_spec_CXX='-R$libdir'
11597	hardcode_shlibpath_var_CXX=no
11598	case $host_os in
11599	  solaris2.0-5 | solaris2.0-5.*) ;;
11600	  *)
11601	    # The C++ compiler is used as linker so we must use $wl
11602	    # flag to pass the commands to the underlying system
11603	    # linker.
11604	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11605	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11606	    ;;
11607	esac
11608	link_all_deplibs_CXX=yes
11609
11610	# Commands to make compiler produce verbose output that lists
11611	# what "hidden" libraries, object files and flags are used when
11612	# linking a shared library.
11613	#
11614	# There doesn't appear to be a way to prevent this compiler from
11615	# explicitly linking system object files so we need to strip them
11616	# from the output so that they don't get included in the library
11617	# dependencies.
11618	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11619
11620	# Archives containing C++ object files must be created using
11621	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11622	# necessary to make sure instantiated templates are included
11623	# in the archive.
11624	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11625	;;
11626      gcx)
11627	# Green Hills C++ Compiler
11628	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11629
11630	# The C++ compiler must be used to create the archive.
11631	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11632	;;
11633      *)
11634	# GNU C++ compiler with Solaris linker
11635	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11636	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11637	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11638	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11639	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11640		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11641
11642	    # Commands to make compiler produce verbose output that lists
11643	    # what "hidden" libraries, object files and flags are used when
11644	    # linking a shared library.
11645	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11646	  else
11647	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11648	    # platform.
11649	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11650	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11651		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11652
11653	    # Commands to make compiler produce verbose output that lists
11654	    # what "hidden" libraries, object files and flags are used when
11655	    # linking a shared library.
11656	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11657	  fi
11658
11659	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11660	fi
11661	;;
11662    esac
11663    ;;
11664  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11665    archive_cmds_need_lc_CXX=no
11666    ;;
11667  tandem*)
11668    case $cc_basename in
11669      NCC)
11670	# NonStop-UX NCC 3.20
11671	# FIXME: insert proper C++ library support
11672	ld_shlibs_CXX=no
11673	;;
11674      *)
11675	# FIXME: insert proper C++ library support
11676	ld_shlibs_CXX=no
11677	;;
11678    esac
11679    ;;
11680  vxworks*)
11681    # FIXME: insert proper C++ library support
11682    ld_shlibs_CXX=no
11683    ;;
11684  *)
11685    # FIXME: insert proper C++ library support
11686    ld_shlibs_CXX=no
11687    ;;
11688esac
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11690$as_echo "$ld_shlibs_CXX" >&6; }
11691test "$ld_shlibs_CXX" = no && can_build_shared=no
11692
11693GCC_CXX="$GXX"
11694LD_CXX="$LD"
11695
11696## CAVEAT EMPTOR:
11697## There is no encapsulation within the following macros, do not change
11698## the running order or otherwise move them around unless you know exactly
11699## what you are doing...
11700
11701cat > conftest.$ac_ext <<EOF
11702class Foo
11703{
11704public:
11705  Foo (void) { a = 0; }
11706private:
11707  int a;
11708};
11709EOF
11710
11711if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11712  (eval $ac_compile) 2>&5
11713  ac_status=$?
11714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11715  test $ac_status = 0; }; then
11716  # Parse the compiler output and extract the necessary
11717  # objects, libraries and library flags.
11718
11719  # Sentinel used to keep track of whether or not we are before
11720  # the conftest object file.
11721  pre_test_object_deps_done=no
11722
11723  # The `*' in the case matches for architectures that use `case' in
11724  # $output_verbose_cmd can trigger glob expansion during the loop
11725  # eval without this substitution.
11726  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11727
11728  for p in `eval $output_verbose_link_cmd`; do
11729    case $p in
11730
11731    -L* | -R* | -l*)
11732       # Some compilers place space between "-{L,R}" and the path.
11733       # Remove the space.
11734       if test $p = "-L" \
11735	  || test $p = "-R"; then
11736	 prev=$p
11737	 continue
11738       else
11739	 prev=
11740       fi
11741
11742       if test "$pre_test_object_deps_done" = no; then
11743	 case $p in
11744	 -L* | -R*)
11745	   # Internal compiler library paths should come after those
11746	   # provided the user.  The postdeps already come after the
11747	   # user supplied libs so there is no need to process them.
11748	   if test -z "$compiler_lib_search_path_CXX"; then
11749	     compiler_lib_search_path_CXX="${prev}${p}"
11750	   else
11751	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11752	   fi
11753	   ;;
11754	 # The "-l" case would never come before the object being
11755	 # linked, so don't bother handling this case.
11756	 esac
11757       else
11758	 if test -z "$postdeps_CXX"; then
11759	   postdeps_CXX="${prev}${p}"
11760	 else
11761	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11762	 fi
11763       fi
11764       ;;
11765
11766    *.$objext)
11767       # This assumes that the test object file only shows up
11768       # once in the compiler output.
11769       if test "$p" = "conftest.$objext"; then
11770	 pre_test_object_deps_done=yes
11771	 continue
11772       fi
11773
11774       if test "$pre_test_object_deps_done" = no; then
11775	 if test -z "$predep_objects_CXX"; then
11776	   predep_objects_CXX="$p"
11777	 else
11778	   predep_objects_CXX="$predep_objects_CXX $p"
11779	 fi
11780       else
11781	 if test -z "$postdep_objects_CXX"; then
11782	   postdep_objects_CXX="$p"
11783	 else
11784	   postdep_objects_CXX="$postdep_objects_CXX $p"
11785	 fi
11786       fi
11787       ;;
11788
11789    *) ;; # Ignore the rest.
11790
11791    esac
11792  done
11793
11794  # Clean up.
11795  rm -f a.out a.exe
11796else
11797  echo "libtool.m4: error: problem compiling CXX test program"
11798fi
11799
11800$rm -f confest.$objext
11801
11802case " $postdeps_CXX " in
11803*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11804esac
11805
11806lt_prog_compiler_wl_CXX=
11807lt_prog_compiler_pic_CXX=
11808lt_prog_compiler_static_CXX=
11809
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11811$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11812
11813  # C++ specific cases for pic, static, wl, etc.
11814  if test "$GXX" = yes; then
11815    lt_prog_compiler_wl_CXX='-Wl,'
11816    lt_prog_compiler_static_CXX='-static'
11817
11818    case $host_os in
11819    aix*)
11820      # All AIX code is PIC.
11821      if test "$host_cpu" = ia64; then
11822	# AIX 5 now supports IA64 processor
11823	lt_prog_compiler_static_CXX='-Bstatic'
11824      fi
11825      ;;
11826    amigaos*)
11827      # FIXME: we need at least 68020 code to build shared libraries, but
11828      # adding the `-m68020' flag to GCC prevents building anything better,
11829      # like `-m68040'.
11830      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11831      ;;
11832    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11833      # PIC is the default for these OSes.
11834      ;;
11835    mingw* | os2* | pw32*)
11836      # This hack is so that the source file can tell whether it is being
11837      # built for inclusion in a dll (and should export symbols for example).
11838      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11839      ;;
11840    darwin* | rhapsody*)
11841      # PIC is the default on this platform
11842      # Common symbols not allowed in MH_DYLIB files
11843      lt_prog_compiler_pic_CXX='-fno-common'
11844      ;;
11845    *djgpp*)
11846      # DJGPP does not support shared libraries at all
11847      lt_prog_compiler_pic_CXX=
11848      ;;
11849    sysv4*MP*)
11850      if test -d /usr/nec; then
11851	lt_prog_compiler_pic_CXX=-Kconform_pic
11852      fi
11853      ;;
11854    hpux*)
11855      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856      # not for PA HP-UX.
11857      case "$host_cpu" in
11858      hppa*64*|ia64*)
11859	;;
11860      *)
11861	lt_prog_compiler_pic_CXX='-fPIC'
11862	;;
11863      esac
11864      ;;
11865    *)
11866      lt_prog_compiler_pic_CXX='-fPIC'
11867      ;;
11868    esac
11869  else
11870    case $host_os in
11871      aix4* | aix5*)
11872	# All AIX code is PIC.
11873	if test "$host_cpu" = ia64; then
11874	  # AIX 5 now supports IA64 processor
11875	  lt_prog_compiler_static_CXX='-Bstatic'
11876	else
11877	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11878	fi
11879	;;
11880      chorus*)
11881	case $cc_basename in
11882	cxch68)
11883	  # Green Hills C++ Compiler
11884	  # _LT_AC_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"
11885	  ;;
11886	esac
11887	;;
11888      dgux*)
11889	case $cc_basename in
11890	  ec++)
11891	    lt_prog_compiler_pic_CXX='-KPIC'
11892	    ;;
11893	  ghcx)
11894	    # Green Hills C++ Compiler
11895	    lt_prog_compiler_pic_CXX='-pic'
11896	    ;;
11897	  *)
11898	    ;;
11899	esac
11900	;;
11901      freebsd* | kfreebsd*-gnu)
11902	# FreeBSD uses GNU C++
11903	;;
11904      hpux9* | hpux10* | hpux11*)
11905	case $cc_basename in
11906	  CC)
11907	    lt_prog_compiler_wl_CXX='-Wl,'
11908	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11909	    if test "$host_cpu" != ia64; then
11910	      lt_prog_compiler_pic_CXX='+Z'
11911	    fi
11912	    ;;
11913	  aCC)
11914	    lt_prog_compiler_wl_CXX='-Wl,'
11915	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11916	    case "$host_cpu" in
11917	    hppa*64*|ia64*)
11918	      # +Z the default
11919	      ;;
11920	    *)
11921	      lt_prog_compiler_pic_CXX='+Z'
11922	      ;;
11923	    esac
11924	    ;;
11925	  *)
11926	    ;;
11927	esac
11928	;;
11929      irix5* | irix6* | nonstopux*)
11930	case $cc_basename in
11931	  CC)
11932	    lt_prog_compiler_wl_CXX='-Wl,'
11933	    lt_prog_compiler_static_CXX='-non_shared'
11934	    # CC pic flag -KPIC is the default.
11935	    ;;
11936	  *)
11937	    ;;
11938	esac
11939	;;
11940      linux*)
11941	case $cc_basename in
11942	  KCC)
11943	    # KAI C++ Compiler
11944	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11945	    lt_prog_compiler_pic_CXX='-fPIC'
11946	    ;;
11947	  icpc)
11948	    # Intel C++
11949	    lt_prog_compiler_wl_CXX='-Wl,'
11950	    lt_prog_compiler_pic_CXX='-KPIC'
11951	    lt_prog_compiler_static_CXX='-static'
11952	    ;;
11953	  cxx)
11954	    # Compaq C++
11955	    # Make sure the PIC flag is empty.  It appears that all Alpha
11956	    # Linux and Compaq Tru64 Unix objects are PIC.
11957	    lt_prog_compiler_pic_CXX=
11958	    lt_prog_compiler_static_CXX='-non_shared'
11959	    ;;
11960	  *)
11961	    ;;
11962	esac
11963	;;
11964      lynxos*)
11965	;;
11966      m88k*)
11967	;;
11968      mvs*)
11969	case $cc_basename in
11970	  cxx)
11971	    lt_prog_compiler_pic_CXX='-W c,exportall'
11972	    ;;
11973	  *)
11974	    ;;
11975	esac
11976	;;
11977      netbsd*)
11978	;;
11979      osf3* | osf4* | osf5*)
11980	case $cc_basename in
11981	  KCC)
11982	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11983	    ;;
11984	  RCC)
11985	    # Rational C++ 2.4.1
11986	    lt_prog_compiler_pic_CXX='-pic'
11987	    ;;
11988	  cxx)
11989	    # Digital/Compaq C++
11990	    lt_prog_compiler_wl_CXX='-Wl,'
11991	    # Make sure the PIC flag is empty.  It appears that all Alpha
11992	    # Linux and Compaq Tru64 Unix objects are PIC.
11993	    lt_prog_compiler_pic_CXX=
11994	    lt_prog_compiler_static_CXX='-non_shared'
11995	    ;;
11996	  *)
11997	    ;;
11998	esac
11999	;;
12000      psos*)
12001	;;
12002      sco*)
12003	case $cc_basename in
12004	  CC)
12005	    lt_prog_compiler_pic_CXX='-fPIC'
12006	    ;;
12007	  *)
12008	    ;;
12009	esac
12010	;;
12011      solaris*)
12012	case $cc_basename in
12013	  CC)
12014	    # Sun C++ 4.2, 5.x and Centerline C++
12015	    lt_prog_compiler_pic_CXX='-KPIC'
12016	    lt_prog_compiler_static_CXX='-Bstatic'
12017	    lt_prog_compiler_wl_CXX='-Qoption ld '
12018	    ;;
12019	  gcx)
12020	    # Green Hills C++ Compiler
12021	    lt_prog_compiler_pic_CXX='-PIC'
12022	    ;;
12023	  *)
12024	    ;;
12025	esac
12026	;;
12027      sunos4*)
12028	case $cc_basename in
12029	  CC)
12030	    # Sun C++ 4.x
12031	    lt_prog_compiler_pic_CXX='-pic'
12032	    lt_prog_compiler_static_CXX='-Bstatic'
12033	    ;;
12034	  lcc)
12035	    # Lucid
12036	    lt_prog_compiler_pic_CXX='-pic'
12037	    ;;
12038	  *)
12039	    ;;
12040	esac
12041	;;
12042      tandem*)
12043	case $cc_basename in
12044	  NCC)
12045	    # NonStop-UX NCC 3.20
12046	    lt_prog_compiler_pic_CXX='-KPIC'
12047	    ;;
12048	  *)
12049	    ;;
12050	esac
12051	;;
12052      unixware*)
12053	;;
12054      vxworks*)
12055	;;
12056      *)
12057	lt_prog_compiler_can_build_shared_CXX=no
12058	;;
12059    esac
12060  fi
12061
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12063$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12064
12065#
12066# Check to make sure the PIC flag actually works.
12067#
12068if test -n "$lt_prog_compiler_pic_CXX"; then
12069
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12071$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12072if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12073  $as_echo_n "(cached) " >&6
12074else
12075  lt_prog_compiler_pic_works_CXX=no
12076  ac_outfile=conftest.$ac_objext
12077   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12078   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12079   # Insert the option either (1) after the last *FLAGS variable, or
12080   # (2) before a word containing "conftest.", or (3) at the end.
12081   # Note that $ac_compile itself does not contain backslashes and begins
12082   # with a dollar sign (not a hyphen), so the echo should work correctly.
12083   # The option is referenced via a variable to avoid confusing sed.
12084   lt_compile=`echo "$ac_compile" | $SED \
12085   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12087   -e 's:$: $lt_compiler_flag:'`
12088   (eval echo "\"\$as_me:12088: $lt_compile\"" >&5)
12089   (eval "$lt_compile" 2>conftest.err)
12090   ac_status=$?
12091   cat conftest.err >&5
12092   echo "$as_me:12092: \$? = $ac_status" >&5
12093   if (exit $ac_status) && test -s "$ac_outfile"; then
12094     # The compiler can only warn and ignore the option if not recognized
12095     # So say no if there are warnings
12096     if test ! -s conftest.err; then
12097       lt_prog_compiler_pic_works_CXX=yes
12098     fi
12099   fi
12100   $rm conftest*
12101
12102fi
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12104$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12105
12106if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12107    case $lt_prog_compiler_pic_CXX in
12108     "" | " "*) ;;
12109     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12110     esac
12111else
12112    lt_prog_compiler_pic_CXX=
12113     lt_prog_compiler_can_build_shared_CXX=no
12114fi
12115
12116fi
12117case "$host_os" in
12118  # For platforms which do not support PIC, -DPIC is meaningless:
12119  *djgpp*)
12120    lt_prog_compiler_pic_CXX=
12121    ;;
12122  *)
12123    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12124    ;;
12125esac
12126
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12128$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12129if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  lt_cv_prog_compiler_c_o_CXX=no
12133   $rm -r conftest 2>/dev/null
12134   mkdir conftest
12135   cd conftest
12136   mkdir out
12137   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12138
12139   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12140   # that will create temporary files in the current directory regardless of
12141   # the output directory.  Thus, making CWD read-only will cause this test
12142   # to fail, enabling locking or at least warning the user not to do parallel
12143   # builds.
12144   chmod -w .
12145
12146   lt_compiler_flag="-o out/conftest2.$ac_objext"
12147   # Insert the option either (1) after the last *FLAGS variable, or
12148   # (2) before a word containing "conftest.", or (3) at the end.
12149   # Note that $ac_compile itself does not contain backslashes and begins
12150   # with a dollar sign (not a hyphen), so the echo should work correctly.
12151   lt_compile=`echo "$ac_compile" | $SED \
12152   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12154   -e 's:$: $lt_compiler_flag:'`
12155   (eval echo "\"\$as_me:12155: $lt_compile\"" >&5)
12156   (eval "$lt_compile" 2>out/conftest.err)
12157   ac_status=$?
12158   cat out/conftest.err >&5
12159   echo "$as_me:12159: \$? = $ac_status" >&5
12160   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12161   then
12162     # The compiler can only warn and ignore the option if not recognized
12163     # So say no if there are warnings
12164     if test ! -s out/conftest.err; then
12165       lt_cv_prog_compiler_c_o_CXX=yes
12166     fi
12167   fi
12168   chmod u+w .
12169   $rm conftest*
12170   # SGI C++ compiler will create directory out/ii_files/ for
12171   # template instantiation
12172   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12173   $rm out/* && rmdir out
12174   cd ..
12175   rmdir conftest
12176   $rm conftest*
12177
12178fi
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12180$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12181
12182
12183hard_links="nottested"
12184if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12185  # do not overwrite the value of need_locks provided by the user
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12187$as_echo_n "checking if we can lock with hard links... " >&6; }
12188  hard_links=yes
12189  $rm conftest*
12190  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12191  touch conftest.a
12192  ln conftest.a conftest.b 2>&5 || hard_links=no
12193  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12195$as_echo "$hard_links" >&6; }
12196  if test "$hard_links" = no; then
12197    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12198$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12199    need_locks=warn
12200  fi
12201else
12202  need_locks=no
12203fi
12204
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12206$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12207
12208  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12209  case $host_os in
12210  aix4* | aix5*)
12211    # If we're using GNU nm, then we don't want the "-C" option.
12212    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12213    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12214      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12215    else
12216      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12217    fi
12218    ;;
12219  pw32*)
12220    export_symbols_cmds_CXX="$ltdll_cmds"
12221  ;;
12222  cygwin* | mingw*)
12223    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12224  ;;
12225  *)
12226    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12227  ;;
12228  esac
12229
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12231$as_echo "$ld_shlibs_CXX" >&6; }
12232test "$ld_shlibs_CXX" = no && can_build_shared=no
12233
12234variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12235if test "$GCC" = yes; then
12236  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12237fi
12238
12239#
12240# Do we need to explicitly link libc?
12241#
12242case "x$archive_cmds_need_lc_CXX" in
12243x|xyes)
12244  # Assume -lc should be added
12245  archive_cmds_need_lc_CXX=yes
12246
12247  if test "$enable_shared" = yes && test "$GCC" = yes; then
12248    case $archive_cmds_CXX in
12249    *'~'*)
12250      # FIXME: we may have to deal with multi-command sequences.
12251      ;;
12252    '$CC '*)
12253      # Test whether the compiler implicitly links with -lc since on some
12254      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12255      # to ld, don't add -lc before -lgcc.
12256      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12257$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12258      $rm conftest*
12259      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12260
12261      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12262  (eval $ac_compile) 2>&5
12263  ac_status=$?
12264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265  test $ac_status = 0; } 2>conftest.err; then
12266        soname=conftest
12267        lib=conftest
12268        libobjs=conftest.$ac_objext
12269        deplibs=
12270        wl=$lt_prog_compiler_wl_CXX
12271        compiler_flags=-v
12272        linker_flags=-v
12273        verstring=
12274        output_objdir=.
12275        libname=conftest
12276        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12277        allow_undefined_flag_CXX=
12278        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12279  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12280  ac_status=$?
12281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12282  test $ac_status = 0; }
12283        then
12284	  archive_cmds_need_lc_CXX=no
12285        else
12286	  archive_cmds_need_lc_CXX=yes
12287        fi
12288        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12289      else
12290        cat conftest.err 1>&5
12291      fi
12292      $rm conftest*
12293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12294$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12295      ;;
12296    esac
12297  fi
12298  ;;
12299esac
12300
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12302$as_echo_n "checking dynamic linker characteristics... " >&6; }
12303library_names_spec=
12304libname_spec='lib$name'
12305soname_spec=
12306shrext=".so"
12307postinstall_cmds=
12308postuninstall_cmds=
12309finish_cmds=
12310finish_eval=
12311shlibpath_var=
12312shlibpath_overrides_runpath=unknown
12313version_type=none
12314dynamic_linker="$host_os ld.so"
12315sys_lib_dlsearch_path_spec="/lib /usr/lib"
12316if test "$GCC" = yes; then
12317  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12318  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12319    # if the path contains ";" then we assume it to be the separator
12320    # otherwise default to the standard path separator (i.e. ":") - it is
12321    # assumed that no part of a normal pathname contains ";" but that should
12322    # okay in the real world where ";" in dirpaths is itself problematic.
12323    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12324  else
12325    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12326  fi
12327else
12328  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12329fi
12330need_lib_prefix=unknown
12331hardcode_into_libs=no
12332
12333# when you set need_version to no, make sure it does not cause -set_version
12334# flags to be left without arguments
12335need_version=unknown
12336
12337case $host_os in
12338aix3*)
12339  version_type=linux
12340  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12341  shlibpath_var=LIBPATH
12342
12343  # AIX 3 has no versioning support, so we append a major version to the name.
12344  soname_spec='${libname}${release}${shared_ext}$major'
12345  ;;
12346
12347aix4* | aix5*)
12348  version_type=linux
12349  need_lib_prefix=no
12350  need_version=no
12351  hardcode_into_libs=yes
12352  if test "$host_cpu" = ia64; then
12353    # AIX 5 supports IA64
12354    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12355    shlibpath_var=LD_LIBRARY_PATH
12356  else
12357    # With GCC up to 2.95.x, collect2 would create an import file
12358    # for dependence libraries.  The import file would start with
12359    # the line `#! .'.  This would cause the generated library to
12360    # depend on `.', always an invalid library.  This was fixed in
12361    # development snapshots of GCC prior to 3.0.
12362    case $host_os in
12363      aix4 | aix4.[01] | aix4.[01].*)
12364      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12365	   echo ' yes '
12366	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12367	:
12368      else
12369	can_build_shared=no
12370      fi
12371      ;;
12372    esac
12373    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12374    # soname into executable. Probably we can add versioning support to
12375    # collect2, so additional links can be useful in future.
12376    if test "$aix_use_runtimelinking" = yes; then
12377      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12378      # instead of lib<name>.a to let people know that these are not
12379      # typical AIX shared libraries.
12380      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381    else
12382      # We preserve .a as extension for shared libraries through AIX4.2
12383      # and later when we are not doing run time linking.
12384      library_names_spec='${libname}${release}.a $libname.a'
12385      soname_spec='${libname}${release}${shared_ext}$major'
12386    fi
12387    shlibpath_var=LIBPATH
12388  fi
12389  ;;
12390
12391amigaos*)
12392  library_names_spec='$libname.ixlibrary $libname.a'
12393  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12394  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12395  ;;
12396
12397beos*)
12398  library_names_spec='${libname}${shared_ext}'
12399  dynamic_linker="$host_os ld.so"
12400  shlibpath_var=LIBRARY_PATH
12401  ;;
12402
12403bsdi4*)
12404  version_type=linux
12405  need_version=no
12406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407  soname_spec='${libname}${release}${shared_ext}$major'
12408  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12409  shlibpath_var=LD_LIBRARY_PATH
12410  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12411  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12412  # the default ld.so.conf also contains /usr/contrib/lib and
12413  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12414  # libtool to hard-code these into programs
12415  ;;
12416
12417cygwin* | mingw* | pw32*)
12418  version_type=windows
12419  shrext=".dll"
12420  need_version=no
12421  need_lib_prefix=no
12422
12423  case $GCC,$host_os in
12424  yes,cygwin* | yes,mingw* | yes,pw32*)
12425    library_names_spec='$libname.dll.a'
12426    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12427    postinstall_cmds='base_file=`basename \${file}`~
12428      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12429      dldir=$destdir/`dirname \$dlpath`~
12430      test -d \$dldir || mkdir -p \$dldir~
12431      $install_prog $dir/$dlname \$dldir/$dlname'
12432    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12433      dlpath=$dir/\$dldll~
12434       $rm \$dlpath'
12435    shlibpath_overrides_runpath=yes
12436
12437    case $host_os in
12438    cygwin*)
12439      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12440      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12441      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12442      ;;
12443    mingw*)
12444      # MinGW DLLs use traditional 'lib' prefix
12445      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12446      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12447      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12448        # It is most probably a Windows format PATH printed by
12449        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12450        # path with ; separators, and with drive letters. We can handle the
12451        # drive letters (cygwin fileutils understands them), so leave them,
12452        # especially as we might pass files found there to a mingw objdump,
12453        # which wouldn't understand a cygwinified path. Ahh.
12454        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12455      else
12456        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12457      fi
12458      ;;
12459    pw32*)
12460      # pw32 DLLs use 'pw' prefix rather than 'lib'
12461      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12462      ;;
12463    esac
12464    ;;
12465
12466  *)
12467    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12468    ;;
12469  esac
12470  dynamic_linker='Win32 ld.exe'
12471  # FIXME: first we should search . and the directory the executable is in
12472  shlibpath_var=PATH
12473  ;;
12474
12475darwin* | rhapsody*)
12476  dynamic_linker="$host_os dyld"
12477  version_type=darwin
12478  need_lib_prefix=no
12479  need_version=no
12480  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12481  soname_spec='${libname}${release}${major}$shared_ext'
12482  shlibpath_overrides_runpath=yes
12483  shlibpath_var=DYLD_LIBRARY_PATH
12484  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12485  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12486  if test "$GCC" = yes; then
12487    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12488  else
12489    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12490  fi
12491  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12492  ;;
12493
12494dgux*)
12495  version_type=linux
12496  need_lib_prefix=no
12497  need_version=no
12498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12499  soname_spec='${libname}${release}${shared_ext}$major'
12500  shlibpath_var=LD_LIBRARY_PATH
12501  ;;
12502
12503freebsd1*)
12504  dynamic_linker=no
12505  ;;
12506
12507kfreebsd*-gnu)
12508  version_type=linux
12509  need_lib_prefix=no
12510  need_version=no
12511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12512  soname_spec='${libname}${release}${shared_ext}$major'
12513  shlibpath_var=LD_LIBRARY_PATH
12514  shlibpath_overrides_runpath=no
12515  hardcode_into_libs=yes
12516  dynamic_linker='GNU ld.so'
12517  ;;
12518
12519freebsd*)
12520  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12521  version_type=freebsd-$objformat
12522  case $version_type in
12523    freebsd-elf*)
12524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12525      need_version=no
12526      need_lib_prefix=no
12527      ;;
12528    freebsd-*)
12529      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12530      need_version=yes
12531      ;;
12532  esac
12533  shlibpath_var=LD_LIBRARY_PATH
12534  case $host_os in
12535  freebsd2*)
12536    shlibpath_overrides_runpath=yes
12537    ;;
12538  freebsd3.01* | freebsdelf3.01*)
12539    shlibpath_overrides_runpath=yes
12540    hardcode_into_libs=yes
12541    ;;
12542  *) # from 3.2 on
12543    shlibpath_overrides_runpath=no
12544    hardcode_into_libs=yes
12545    ;;
12546  esac
12547  ;;
12548
12549gnu*)
12550  version_type=linux
12551  need_lib_prefix=no
12552  need_version=no
12553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12554  soname_spec='${libname}${release}${shared_ext}$major'
12555  shlibpath_var=LD_LIBRARY_PATH
12556  hardcode_into_libs=yes
12557  ;;
12558
12559hpux9* | hpux10* | hpux11*)
12560  # Give a soname corresponding to the major version so that dld.sl refuses to
12561  # link against other versions.
12562  version_type=sunos
12563  need_lib_prefix=no
12564  need_version=no
12565  case "$host_cpu" in
12566  ia64*)
12567    shrext='.so'
12568    hardcode_into_libs=yes
12569    dynamic_linker="$host_os dld.so"
12570    shlibpath_var=LD_LIBRARY_PATH
12571    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573    soname_spec='${libname}${release}${shared_ext}$major'
12574    if test "X$HPUX_IA64_MODE" = X32; then
12575      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12576    else
12577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12578    fi
12579    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12580    ;;
12581   hppa*64*)
12582     shrext='.sl'
12583     hardcode_into_libs=yes
12584     dynamic_linker="$host_os dld.sl"
12585     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588     soname_spec='${libname}${release}${shared_ext}$major'
12589     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12591     ;;
12592   *)
12593    shrext='.sl'
12594    dynamic_linker="$host_os dld.sl"
12595    shlibpath_var=SHLIB_PATH
12596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598    soname_spec='${libname}${release}${shared_ext}$major'
12599    ;;
12600  esac
12601  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12602  postinstall_cmds='chmod 555 $lib'
12603  ;;
12604
12605irix5* | irix6* | nonstopux*)
12606  case $host_os in
12607    nonstopux*) version_type=nonstopux ;;
12608    *)
12609	if test "$lt_cv_prog_gnu_ld" = yes; then
12610		version_type=linux
12611	else
12612		version_type=irix
12613	fi ;;
12614  esac
12615  need_lib_prefix=no
12616  need_version=no
12617  soname_spec='${libname}${release}${shared_ext}$major'
12618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12619  case $host_os in
12620  irix5* | nonstopux*)
12621    libsuff= shlibsuff=
12622    ;;
12623  *)
12624    case $LD in # libtool.m4 will add one of these switches to LD
12625    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12626      libsuff= shlibsuff= libmagic=32-bit;;
12627    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12628      libsuff=32 shlibsuff=N32 libmagic=N32;;
12629    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12630      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12631    *) libsuff= shlibsuff= libmagic=never-match;;
12632    esac
12633    ;;
12634  esac
12635  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12636  shlibpath_overrides_runpath=no
12637  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12638  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12639  hardcode_into_libs=yes
12640  ;;
12641
12642# No shared lib support for Linux oldld, aout, or coff.
12643linux*oldld* | linux*aout* | linux*coff*)
12644  dynamic_linker=no
12645  ;;
12646
12647# This must be Linux ELF.
12648linux*)
12649  version_type=linux
12650  need_lib_prefix=no
12651  need_version=no
12652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12653  soname_spec='${libname}${release}${shared_ext}$major'
12654  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12655  shlibpath_var=LD_LIBRARY_PATH
12656  shlibpath_overrides_runpath=no
12657  # This implies no fast_install, which is unacceptable.
12658  # Some rework will be needed to allow for fast_install
12659  # before this can be enabled.
12660  hardcode_into_libs=yes
12661
12662  # We used to test for /lib/ld.so.1 and disable shared libraries on
12663  # powerpc, because MkLinux only supported shared libraries with the
12664  # GNU dynamic linker.  Since this was broken with cross compilers,
12665  # most powerpc-linux boxes support dynamic linking these days and
12666  # people can always --disable-shared, the test was removed, and we
12667  # assume the GNU/Linux dynamic linker is in use.
12668  dynamic_linker='GNU/Linux ld.so'
12669  ;;
12670
12671netbsd*)
12672  version_type=sunos
12673  need_lib_prefix=no
12674  need_version=no
12675  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12677    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12678    dynamic_linker='NetBSD (a.out) ld.so'
12679  else
12680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12681    soname_spec='${libname}${release}${shared_ext}$major'
12682    dynamic_linker='NetBSD ld.elf_so'
12683  fi
12684  shlibpath_var=LD_LIBRARY_PATH
12685  shlibpath_overrides_runpath=yes
12686  hardcode_into_libs=yes
12687  ;;
12688
12689newsos6)
12690  version_type=linux
12691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692  shlibpath_var=LD_LIBRARY_PATH
12693  shlibpath_overrides_runpath=yes
12694  ;;
12695
12696nto-qnx*)
12697  version_type=linux
12698  need_lib_prefix=no
12699  need_version=no
12700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12701  soname_spec='${libname}${release}${shared_ext}$major'
12702  shlibpath_var=LD_LIBRARY_PATH
12703  shlibpath_overrides_runpath=yes
12704  ;;
12705
12706openbsd*)
12707  version_type=sunos
12708  need_lib_prefix=no
12709  need_version=no
12710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12711  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12712  shlibpath_var=LD_LIBRARY_PATH
12713  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12714    case $host_os in
12715      openbsd2.[89] | openbsd2.[89].*)
12716	shlibpath_overrides_runpath=no
12717	;;
12718      *)
12719	shlibpath_overrides_runpath=yes
12720	;;
12721      esac
12722  else
12723    shlibpath_overrides_runpath=yes
12724  fi
12725  ;;
12726
12727os2*)
12728  libname_spec='$name'
12729  shrext=".dll"
12730  need_lib_prefix=no
12731  library_names_spec='$libname${shared_ext} $libname.a'
12732  dynamic_linker='OS/2 ld.exe'
12733  shlibpath_var=LIBPATH
12734  ;;
12735
12736osf3* | osf4* | osf5*)
12737  version_type=osf
12738  need_lib_prefix=no
12739  need_version=no
12740  soname_spec='${libname}${release}${shared_ext}$major'
12741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742  shlibpath_var=LD_LIBRARY_PATH
12743  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12744  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12745  ;;
12746
12747sco3.2v5*)
12748  version_type=osf
12749  soname_spec='${libname}${release}${shared_ext}$major'
12750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12751  shlibpath_var=LD_LIBRARY_PATH
12752  ;;
12753
12754solaris*)
12755  version_type=linux
12756  need_lib_prefix=no
12757  need_version=no
12758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12759  soname_spec='${libname}${release}${shared_ext}$major'
12760  shlibpath_var=LD_LIBRARY_PATH
12761  shlibpath_overrides_runpath=yes
12762  hardcode_into_libs=yes
12763  # ldd complains unless libraries are executable
12764  postinstall_cmds='chmod +x $lib'
12765  ;;
12766
12767sunos4*)
12768  version_type=sunos
12769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12770  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12771  shlibpath_var=LD_LIBRARY_PATH
12772  shlibpath_overrides_runpath=yes
12773  if test "$with_gnu_ld" = yes; then
12774    need_lib_prefix=no
12775  fi
12776  need_version=yes
12777  ;;
12778
12779sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12780  version_type=linux
12781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782  soname_spec='${libname}${release}${shared_ext}$major'
12783  shlibpath_var=LD_LIBRARY_PATH
12784  case $host_vendor in
12785    sni)
12786      shlibpath_overrides_runpath=no
12787      need_lib_prefix=no
12788      export_dynamic_flag_spec='${wl}-Blargedynsym'
12789      runpath_var=LD_RUN_PATH
12790      ;;
12791    siemens)
12792      need_lib_prefix=no
12793      ;;
12794    motorola)
12795      need_lib_prefix=no
12796      need_version=no
12797      shlibpath_overrides_runpath=no
12798      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12799      ;;
12800  esac
12801  ;;
12802
12803sysv4*MP*)
12804  if test -d /usr/nec ;then
12805    version_type=linux
12806    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12807    soname_spec='$libname${shared_ext}.$major'
12808    shlibpath_var=LD_LIBRARY_PATH
12809  fi
12810  ;;
12811
12812uts4*)
12813  version_type=linux
12814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815  soname_spec='${libname}${release}${shared_ext}$major'
12816  shlibpath_var=LD_LIBRARY_PATH
12817  ;;
12818
12819*)
12820  dynamic_linker=no
12821  ;;
12822esac
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12824$as_echo "$dynamic_linker" >&6; }
12825test "$dynamic_linker" = no && can_build_shared=no
12826
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12828$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12829hardcode_action_CXX=
12830if test -n "$hardcode_libdir_flag_spec_CXX" || \
12831   test -n "$runpath_var CXX" || \
12832   test "X$hardcode_automatic_CXX"="Xyes" ; then
12833
12834  # We can hardcode non-existant directories.
12835  if test "$hardcode_direct_CXX" != no &&
12836     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12837     # have to relink, otherwise we might link with an installed library
12838     # when we should be linking with a yet-to-be-installed one
12839     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12840     test "$hardcode_minus_L_CXX" != no; then
12841    # Linking always hardcodes the temporary library directory.
12842    hardcode_action_CXX=relink
12843  else
12844    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12845    hardcode_action_CXX=immediate
12846  fi
12847else
12848  # We cannot hardcode anything, or else we can only hardcode existing
12849  # directories.
12850  hardcode_action_CXX=unsupported
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12853$as_echo "$hardcode_action_CXX" >&6; }
12854
12855if test "$hardcode_action_CXX" = relink; then
12856  # Fast installation is not supported
12857  enable_fast_install=no
12858elif test "$shlibpath_overrides_runpath" = yes ||
12859     test "$enable_shared" = no; then
12860  # Fast installation is not necessary
12861  enable_fast_install=needless
12862fi
12863
12864striplib=
12865old_striplib=
12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12867$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12868if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12869  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12870  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12871# <PATCH NAME="ISW20030916-1">
12872# <NEW>
12873# The following section is a PATCH to overcome the
12874# stripped import library issues under cygwin
12875  case $host_os in
12876    cygwin*)
12877        striplib=
12878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
12880        ;;
12881    *)
12882        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12883$as_echo "yes" >&6; }
12884        ;;
12885   esac
12886# </NEW>
12887# <OLD>
12888#  AC_MSG_RESULT([yes])
12889# </OLD>
12890# </PATCH>
12891
12892else
12893# FIXME - insert some real tests, host_os isn't really good enough
12894  case $host_os in
12895   darwin*)
12896       if test -n "$STRIP" ; then
12897         striplib="$STRIP -x"
12898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12899$as_echo "yes" >&6; }
12900       else
12901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902$as_echo "no" >&6; }
12903fi
12904       ;;
12905   *)
12906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
12908    ;;
12909  esac
12910fi
12911
12912if test "x$enable_dlopen" != xyes; then
12913  enable_dlopen=unknown
12914  enable_dlopen_self=unknown
12915  enable_dlopen_self_static=unknown
12916else
12917  lt_cv_dlopen=no
12918  lt_cv_dlopen_libs=
12919
12920  case $host_os in
12921  beos*)
12922    lt_cv_dlopen="load_add_on"
12923    lt_cv_dlopen_libs=
12924    lt_cv_dlopen_self=yes
12925    ;;
12926
12927  mingw* | pw32*)
12928    lt_cv_dlopen="LoadLibrary"
12929    lt_cv_dlopen_libs=
12930   ;;
12931
12932  cygwin*)
12933    lt_cv_dlopen="dlopen"
12934    lt_cv_dlopen_libs=
12935   ;;
12936
12937  darwin*)
12938  # if libdl is installed we need to link against it
12939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12940$as_echo_n "checking for dlopen in -ldl... " >&6; }
12941if ${ac_cv_lib_dl_dlopen+:} false; then :
12942  $as_echo_n "(cached) " >&6
12943else
12944  ac_check_lib_save_LIBS=$LIBS
12945LIBS="-ldl  $LIBS"
12946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947/* end confdefs.h.  */
12948
12949/* Override any GCC internal prototype to avoid an error.
12950   Use char because int might match the return type of a GCC
12951   builtin and then its argument prototype would still apply.  */
12952#ifdef __cplusplus
12953extern "C"
12954#endif
12955char dlopen ();
12956int
12957main ()
12958{
12959return dlopen ();
12960  ;
12961  return 0;
12962}
12963_ACEOF
12964if ac_fn_cxx_try_link "$LINENO"; then :
12965  ac_cv_lib_dl_dlopen=yes
12966else
12967  ac_cv_lib_dl_dlopen=no
12968fi
12969rm -f core conftest.err conftest.$ac_objext \
12970    conftest$ac_exeext conftest.$ac_ext
12971LIBS=$ac_check_lib_save_LIBS
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12974$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12975if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12976  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12977else
12978
12979    lt_cv_dlopen="dyld"
12980    lt_cv_dlopen_libs=
12981    lt_cv_dlopen_self=yes
12982
12983fi
12984
12985   ;;
12986
12987  *)
12988    ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12989if test "x$ac_cv_func_shl_load" = xyes; then :
12990  lt_cv_dlopen="shl_load"
12991else
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12993$as_echo_n "checking for shl_load in -ldld... " >&6; }
12994if ${ac_cv_lib_dld_shl_load+:} false; then :
12995  $as_echo_n "(cached) " >&6
12996else
12997  ac_check_lib_save_LIBS=$LIBS
12998LIBS="-ldld  $LIBS"
12999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001
13002/* Override any GCC internal prototype to avoid an error.
13003   Use char because int might match the return type of a GCC
13004   builtin and then its argument prototype would still apply.  */
13005#ifdef __cplusplus
13006extern "C"
13007#endif
13008char shl_load ();
13009int
13010main ()
13011{
13012return shl_load ();
13013  ;
13014  return 0;
13015}
13016_ACEOF
13017if ac_fn_cxx_try_link "$LINENO"; then :
13018  ac_cv_lib_dld_shl_load=yes
13019else
13020  ac_cv_lib_dld_shl_load=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext \
13023    conftest$ac_exeext conftest.$ac_ext
13024LIBS=$ac_check_lib_save_LIBS
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13027$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13028if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13029  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13030else
13031  ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13032if test "x$ac_cv_func_dlopen" = xyes; then :
13033  lt_cv_dlopen="dlopen"
13034else
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13036$as_echo_n "checking for dlopen in -ldl... " >&6; }
13037if ${ac_cv_lib_dl_dlopen+:} false; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  ac_check_lib_save_LIBS=$LIBS
13041LIBS="-ldl  $LIBS"
13042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044
13045/* Override any GCC internal prototype to avoid an error.
13046   Use char because int might match the return type of a GCC
13047   builtin and then its argument prototype would still apply.  */
13048#ifdef __cplusplus
13049extern "C"
13050#endif
13051char dlopen ();
13052int
13053main ()
13054{
13055return dlopen ();
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060if ac_fn_cxx_try_link "$LINENO"; then :
13061  ac_cv_lib_dl_dlopen=yes
13062else
13063  ac_cv_lib_dl_dlopen=no
13064fi
13065rm -f core conftest.err conftest.$ac_objext \
13066    conftest$ac_exeext conftest.$ac_ext
13067LIBS=$ac_check_lib_save_LIBS
13068fi
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13070$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13071if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13072  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13073else
13074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13075$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13076if ${ac_cv_lib_svld_dlopen+:} false; then :
13077  $as_echo_n "(cached) " >&6
13078else
13079  ac_check_lib_save_LIBS=$LIBS
13080LIBS="-lsvld  $LIBS"
13081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083
13084/* Override any GCC internal prototype to avoid an error.
13085   Use char because int might match the return type of a GCC
13086   builtin and then its argument prototype would still apply.  */
13087#ifdef __cplusplus
13088extern "C"
13089#endif
13090char dlopen ();
13091int
13092main ()
13093{
13094return dlopen ();
13095  ;
13096  return 0;
13097}
13098_ACEOF
13099if ac_fn_cxx_try_link "$LINENO"; then :
13100  ac_cv_lib_svld_dlopen=yes
13101else
13102  ac_cv_lib_svld_dlopen=no
13103fi
13104rm -f core conftest.err conftest.$ac_objext \
13105    conftest$ac_exeext conftest.$ac_ext
13106LIBS=$ac_check_lib_save_LIBS
13107fi
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13109$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13110if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13111  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13112else
13113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13114$as_echo_n "checking for dld_link in -ldld... " >&6; }
13115if ${ac_cv_lib_dld_dld_link+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  ac_check_lib_save_LIBS=$LIBS
13119LIBS="-ldld  $LIBS"
13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122
13123/* Override any GCC internal prototype to avoid an error.
13124   Use char because int might match the return type of a GCC
13125   builtin and then its argument prototype would still apply.  */
13126#ifdef __cplusplus
13127extern "C"
13128#endif
13129char dld_link ();
13130int
13131main ()
13132{
13133return dld_link ();
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138if ac_fn_cxx_try_link "$LINENO"; then :
13139  ac_cv_lib_dld_dld_link=yes
13140else
13141  ac_cv_lib_dld_dld_link=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext \
13144    conftest$ac_exeext conftest.$ac_ext
13145LIBS=$ac_check_lib_save_LIBS
13146fi
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13148$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13149if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13150  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13151fi
13152
13153
13154fi
13155
13156
13157fi
13158
13159
13160fi
13161
13162
13163fi
13164
13165
13166fi
13167
13168    ;;
13169  esac
13170
13171  if test "x$lt_cv_dlopen" != xno; then
13172    enable_dlopen=yes
13173  else
13174    enable_dlopen=no
13175  fi
13176
13177  case $lt_cv_dlopen in
13178  dlopen)
13179    save_CPPFLAGS="$CPPFLAGS"
13180    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13181
13182    save_LDFLAGS="$LDFLAGS"
13183    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13184
13185    save_LIBS="$LIBS"
13186    LIBS="$lt_cv_dlopen_libs $LIBS"
13187
13188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13189$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13190if ${lt_cv_dlopen_self+:} false; then :
13191  $as_echo_n "(cached) " >&6
13192else
13193  	  if test "$cross_compiling" = yes; then :
13194  lt_cv_dlopen_self=cross
13195else
13196  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13197  lt_status=$lt_dlunknown
13198  cat > conftest.$ac_ext <<EOF
13199#line 13199 "configure"
13200#include "confdefs.h"
13201
13202#if HAVE_DLFCN_H
13203#include <dlfcn.h>
13204#endif
13205
13206#include <stdio.h>
13207
13208#ifdef RTLD_GLOBAL
13209#  define LT_DLGLOBAL		RTLD_GLOBAL
13210#else
13211#  ifdef DL_GLOBAL
13212#    define LT_DLGLOBAL		DL_GLOBAL
13213#  else
13214#    define LT_DLGLOBAL		0
13215#  endif
13216#endif
13217
13218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13219   find out it does not work in some platform. */
13220#ifndef LT_DLLAZY_OR_NOW
13221#  ifdef RTLD_LAZY
13222#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13223#  else
13224#    ifdef DL_LAZY
13225#      define LT_DLLAZY_OR_NOW		DL_LAZY
13226#    else
13227#      ifdef RTLD_NOW
13228#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13229#      else
13230#        ifdef DL_NOW
13231#          define LT_DLLAZY_OR_NOW	DL_NOW
13232#        else
13233#          define LT_DLLAZY_OR_NOW	0
13234#        endif
13235#      endif
13236#    endif
13237#  endif
13238#endif
13239
13240#ifdef __cplusplus
13241extern "C" void exit (int);
13242#endif
13243
13244void fnord() { int i=42;}
13245int main ()
13246{
13247  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13248  int status = $lt_dlunknown;
13249
13250  if (self)
13251    {
13252      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13253      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13254      /* dlclose (self); */
13255    }
13256
13257    exit (status);
13258}
13259EOF
13260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13261  (eval $ac_link) 2>&5
13262  ac_status=$?
13263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13265    (./conftest; exit; ) 2>/dev/null
13266    lt_status=$?
13267    case x$lt_status in
13268      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13269      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13270      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13271    esac
13272  else :
13273    # compilation failed
13274    lt_cv_dlopen_self=no
13275  fi
13276fi
13277rm -fr conftest*
13278
13279
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13282$as_echo "$lt_cv_dlopen_self" >&6; }
13283
13284    if test "x$lt_cv_dlopen_self" = xyes; then
13285      LDFLAGS="$LDFLAGS $link_static_flag"
13286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13287$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13288if ${lt_cv_dlopen_self_static+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290else
13291  	  if test "$cross_compiling" = yes; then :
13292  lt_cv_dlopen_self_static=cross
13293else
13294  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13295  lt_status=$lt_dlunknown
13296  cat > conftest.$ac_ext <<EOF
13297#line 13297 "configure"
13298#include "confdefs.h"
13299
13300#if HAVE_DLFCN_H
13301#include <dlfcn.h>
13302#endif
13303
13304#include <stdio.h>
13305
13306#ifdef RTLD_GLOBAL
13307#  define LT_DLGLOBAL		RTLD_GLOBAL
13308#else
13309#  ifdef DL_GLOBAL
13310#    define LT_DLGLOBAL		DL_GLOBAL
13311#  else
13312#    define LT_DLGLOBAL		0
13313#  endif
13314#endif
13315
13316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317   find out it does not work in some platform. */
13318#ifndef LT_DLLAZY_OR_NOW
13319#  ifdef RTLD_LAZY
13320#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13321#  else
13322#    ifdef DL_LAZY
13323#      define LT_DLLAZY_OR_NOW		DL_LAZY
13324#    else
13325#      ifdef RTLD_NOW
13326#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13327#      else
13328#        ifdef DL_NOW
13329#          define LT_DLLAZY_OR_NOW	DL_NOW
13330#        else
13331#          define LT_DLLAZY_OR_NOW	0
13332#        endif
13333#      endif
13334#    endif
13335#  endif
13336#endif
13337
13338#ifdef __cplusplus
13339extern "C" void exit (int);
13340#endif
13341
13342void fnord() { int i=42;}
13343int main ()
13344{
13345  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13346  int status = $lt_dlunknown;
13347
13348  if (self)
13349    {
13350      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13351      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13352      /* dlclose (self); */
13353    }
13354
13355    exit (status);
13356}
13357EOF
13358  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13359  (eval $ac_link) 2>&5
13360  ac_status=$?
13361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13362  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13363    (./conftest; exit; ) 2>/dev/null
13364    lt_status=$?
13365    case x$lt_status in
13366      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13367      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13368      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13369    esac
13370  else :
13371    # compilation failed
13372    lt_cv_dlopen_self_static=no
13373  fi
13374fi
13375rm -fr conftest*
13376
13377
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13380$as_echo "$lt_cv_dlopen_self_static" >&6; }
13381    fi
13382
13383    CPPFLAGS="$save_CPPFLAGS"
13384    LDFLAGS="$save_LDFLAGS"
13385    LIBS="$save_LIBS"
13386    ;;
13387  esac
13388
13389  case $lt_cv_dlopen_self in
13390  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13391  *) enable_dlopen_self=unknown ;;
13392  esac
13393
13394  case $lt_cv_dlopen_self_static in
13395  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13396  *) enable_dlopen_self_static=unknown ;;
13397  esac
13398fi
13399
13400
13401# The else clause should only fire when bootstrapping the
13402# libtool distribution, otherwise you forgot to ship ltmain.sh
13403# with your package, and you will get complaints that there are
13404# no rules to generate ltmain.sh.
13405if test -f "$ltmain"; then
13406  # See if we are running on zsh, and set the options which allow our commands through
13407  # without removal of \ escapes.
13408  if test -n "${ZSH_VERSION+set}" ; then
13409    setopt NO_GLOB_SUBST
13410  fi
13411  # Now quote all the things that may contain metacharacters while being
13412  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13413  # variables and quote the copies for generation of the libtool script.
13414  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13415    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13416    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13417    deplibs_check_method reload_flag reload_cmds need_locks \
13418    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13419    lt_cv_sys_global_symbol_to_c_name_address \
13420    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13421    old_postinstall_cmds old_postuninstall_cmds \
13422    compiler_CXX \
13423    CC_CXX \
13424    LD_CXX \
13425    lt_prog_compiler_wl_CXX \
13426    lt_prog_compiler_pic_CXX \
13427    lt_prog_compiler_static_CXX \
13428    lt_prog_compiler_no_builtin_flag_CXX \
13429    export_dynamic_flag_spec_CXX \
13430    thread_safe_flag_spec_CXX \
13431    whole_archive_flag_spec_CXX \
13432    enable_shared_with_static_runtimes_CXX \
13433    old_archive_cmds_CXX \
13434    old_archive_from_new_cmds_CXX \
13435    predep_objects_CXX \
13436    postdep_objects_CXX \
13437    predeps_CXX \
13438    postdeps_CXX \
13439    compiler_lib_search_path_CXX \
13440    archive_cmds_CXX \
13441    archive_expsym_cmds_CXX \
13442    postinstall_cmds_CXX \
13443    postuninstall_cmds_CXX \
13444    old_archive_from_expsyms_cmds_CXX \
13445    allow_undefined_flag_CXX \
13446    no_undefined_flag_CXX \
13447    export_symbols_cmds_CXX \
13448    hardcode_libdir_flag_spec_CXX \
13449    hardcode_libdir_flag_spec_ld_CXX \
13450    hardcode_libdir_separator_CXX \
13451    hardcode_automatic_CXX \
13452    module_cmds_CXX \
13453    module_expsym_cmds_CXX \
13454    lt_cv_prog_compiler_c_o_CXX \
13455    exclude_expsyms_CXX \
13456    include_expsyms_CXX; do
13457
13458    case $var in
13459    old_archive_cmds_CXX | \
13460    old_archive_from_new_cmds_CXX | \
13461    archive_cmds_CXX | \
13462    archive_expsym_cmds_CXX | \
13463    module_cmds_CXX | \
13464    module_expsym_cmds_CXX | \
13465    old_archive_from_expsyms_cmds_CXX | \
13466    export_symbols_cmds_CXX | \
13467    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13468    postinstall_cmds | postuninstall_cmds | \
13469    old_postinstall_cmds | old_postuninstall_cmds | \
13470    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13471      # Double-quote double-evaled strings.
13472      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13473      ;;
13474    *)
13475      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13476      ;;
13477    esac
13478  done
13479
13480  case $lt_echo in
13481  *'\$0 --fallback-echo"')
13482    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13483    ;;
13484  esac
13485
13486cfgfile="$ofile"
13487
13488  cat <<__EOF__ >> "$cfgfile"
13489# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13490
13491# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13492
13493# Shell to use when invoking shell scripts.
13494SHELL=$lt_SHELL
13495
13496# Whether or not to build shared libraries.
13497build_libtool_libs=$enable_shared
13498
13499# Whether or not to build static libraries.
13500build_old_libs=$enable_static
13501
13502# Whether or not to add -lc for building shared libraries.
13503build_libtool_need_lc=$archive_cmds_need_lc_CXX
13504
13505# Whether or not to disallow shared libs when runtime libs are static
13506allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13507
13508# Whether or not to optimize for fast installation.
13509fast_install=$enable_fast_install
13510
13511# The host system.
13512host_alias=$host_alias
13513host=$host
13514
13515# An echo program that does not interpret backslashes.
13516echo=$lt_echo
13517
13518# The archiver.
13519AR=$lt_AR
13520AR_FLAGS=$lt_AR_FLAGS
13521
13522# A C compiler.
13523LTCC=$lt_LTCC
13524
13525# A language-specific compiler.
13526CC=$lt_compiler_CXX
13527
13528# Is the compiler the GNU C compiler?
13529with_gcc=$GCC_CXX
13530
13531# An ERE matcher.
13532EGREP=$lt_EGREP
13533
13534# The linker used to build libraries.
13535LD=$lt_LD_CXX
13536
13537# Whether we need hard or soft links.
13538LN_S=$lt_LN_S
13539
13540# A BSD-compatible nm program.
13541NM=$lt_NM
13542
13543# A symbol stripping program
13544STRIP=$STRIP
13545
13546# Used to examine libraries when file_magic_cmd begins "file"
13547MAGIC_CMD=$MAGIC_CMD
13548
13549# Used on cygwin: DLL creation program.
13550DLLTOOL="$DLLTOOL"
13551
13552# Used on cygwin: object dumper.
13553OBJDUMP="$OBJDUMP"
13554
13555# Used on cygwin: assembler.
13556AS="$AS"
13557
13558# The name of the directory that contains temporary libtool files.
13559objdir=$objdir
13560
13561# How to create reloadable object files.
13562reload_flag=$lt_reload_flag
13563reload_cmds=$lt_reload_cmds
13564
13565# How to pass a linker flag through the compiler.
13566wl=$lt_lt_prog_compiler_wl_CXX
13567
13568# Object file suffix (normally "o").
13569objext="$ac_objext"
13570
13571# Old archive suffix (normally "a").
13572libext="$libext"
13573
13574# Shared library suffix (normally ".so").
13575shrext='$shrext'
13576
13577# Executable file suffix (normally "").
13578exeext="$exeext"
13579
13580# Additional compiler flags for building library objects.
13581pic_flag=$lt_lt_prog_compiler_pic_CXX
13582pic_mode=$pic_mode
13583
13584# What is the maximum length of a command?
13585max_cmd_len=$lt_cv_sys_max_cmd_len
13586
13587# Does compiler simultaneously support -c and -o options?
13588compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13589
13590# Must we lock files when doing compilation ?
13591need_locks=$lt_need_locks
13592
13593# Do we need the lib prefix for modules?
13594need_lib_prefix=$need_lib_prefix
13595
13596# Do we need a version for libraries?
13597need_version=$need_version
13598
13599# Whether dlopen is supported.
13600dlopen_support=$enable_dlopen
13601
13602# Whether dlopen of programs is supported.
13603dlopen_self=$enable_dlopen_self
13604
13605# Whether dlopen of statically linked programs is supported.
13606dlopen_self_static=$enable_dlopen_self_static
13607
13608# Compiler flag to prevent dynamic linking.
13609link_static_flag=$lt_lt_prog_compiler_static_CXX
13610
13611# Compiler flag to turn off builtin functions.
13612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13613
13614# Compiler flag to allow reflexive dlopens.
13615export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13616
13617# Compiler flag to generate shared objects directly from archives.
13618whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13619
13620# Compiler flag to generate thread-safe objects.
13621thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13622
13623# Library versioning type.
13624version_type=$version_type
13625
13626# Format of library name prefix.
13627libname_spec=$lt_libname_spec
13628
13629# List of archive names.  First name is the real one, the rest are links.
13630# The last name is the one that the linker finds with -lNAME.
13631library_names_spec=$lt_library_names_spec
13632
13633# The coded name of the library, if different from the real name.
13634soname_spec=$lt_soname_spec
13635
13636# Commands used to build and install an old-style archive.
13637RANLIB=$lt_RANLIB
13638old_archive_cmds=$lt_old_archive_cmds_CXX
13639old_postinstall_cmds=$lt_old_postinstall_cmds
13640old_postuninstall_cmds=$lt_old_postuninstall_cmds
13641
13642# Create an old-style archive from a shared archive.
13643old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13644
13645# Create a temporary old-style archive to link instead of a shared archive.
13646old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13647
13648# Commands used to build and install a shared archive.
13649archive_cmds=$lt_archive_cmds_CXX
13650archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13651postinstall_cmds=$lt_postinstall_cmds
13652postuninstall_cmds=$lt_postuninstall_cmds
13653
13654# Commands used to build a loadable module (assumed same as above if empty)
13655module_cmds=$lt_module_cmds_CXX
13656module_expsym_cmds=$lt_module_expsym_cmds_CXX
13657
13658# Commands to strip libraries.
13659old_striplib=$lt_old_striplib
13660striplib=$lt_striplib
13661
13662# Dependencies to place before the objects being linked to create a
13663# shared library.
13664predep_objects=$lt_predep_objects_CXX
13665
13666# Dependencies to place after the objects being linked to create a
13667# shared library.
13668postdep_objects=$lt_postdep_objects_CXX
13669
13670# Dependencies to place before the objects being linked to create a
13671# shared library.
13672predeps=$lt_predeps_CXX
13673
13674# Dependencies to place after the objects being linked to create a
13675# shared library.
13676postdeps=$lt_postdeps_CXX
13677
13678# The library search path used internally by the compiler when linking
13679# a shared library.
13680compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13681
13682# Method to check whether dependent libraries are shared objects.
13683deplibs_check_method=$lt_deplibs_check_method
13684
13685# Command to use when deplibs_check_method == file_magic.
13686file_magic_cmd=$lt_file_magic_cmd
13687
13688# Flag that allows shared libraries with undefined symbols to be built.
13689allow_undefined_flag=$lt_allow_undefined_flag_CXX
13690
13691# Flag that forces no undefined symbols.
13692no_undefined_flag=$lt_no_undefined_flag_CXX
13693
13694# Commands used to finish a libtool library installation in a directory.
13695finish_cmds=$lt_finish_cmds
13696
13697# Same as above, but a single script fragment to be evaled but not shown.
13698finish_eval=$lt_finish_eval
13699
13700# Take the output of nm and produce a listing of raw symbols and C names.
13701global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13702
13703# Transform the output of nm in a proper C declaration
13704global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13705
13706# Transform the output of nm in a C name address pair
13707global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13708
13709# This is the shared library runtime path variable.
13710runpath_var=$runpath_var
13711
13712# This is the shared library path variable.
13713shlibpath_var=$shlibpath_var
13714
13715# Is shlibpath searched before the hard-coded library search path?
13716shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13717
13718# How to hardcode a shared library path into an executable.
13719hardcode_action=$hardcode_action_CXX
13720
13721# Whether we should hardcode library paths into libraries.
13722hardcode_into_libs=$hardcode_into_libs
13723
13724# Flag to hardcode \$libdir into a binary during linking.
13725# This must work even if \$libdir does not exist.
13726hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13727
13728# If ld is used when linking, flag to hardcode \$libdir into
13729# a binary during linking. This must work even if \$libdir does
13730# not exist.
13731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13732
13733# Whether we need a single -rpath flag with a separated argument.
13734hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13735
13736# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13737# resulting binary.
13738hardcode_direct=$hardcode_direct_CXX
13739
13740# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13741# resulting binary.
13742hardcode_minus_L=$hardcode_minus_L_CXX
13743
13744# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13745# the resulting binary.
13746hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13747
13748# Set to yes if building a shared library automatically hardcodes DIR into the library
13749# and all subsequent libraries and executables linked against it.
13750hardcode_automatic=$hardcode_automatic_CXX
13751
13752# Variables whose values should be saved in libtool wrapper scripts and
13753# restored at relink time.
13754variables_saved_for_relink="$variables_saved_for_relink"
13755
13756# Whether libtool must link a program against all its dependency libraries.
13757link_all_deplibs=$link_all_deplibs_CXX
13758
13759# Compile-time system search path for libraries
13760sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13761
13762# Run-time system search path for libraries
13763sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13764
13765# Fix the shell variable \$srcfile for the compiler.
13766fix_srcfile_path="$fix_srcfile_path_CXX"
13767
13768# Set to yes if exported symbols are required.
13769always_export_symbols=$always_export_symbols_CXX
13770
13771# The commands to list exported symbols.
13772export_symbols_cmds=$lt_export_symbols_cmds_CXX
13773
13774# The commands to extract the exported symbol list from a shared archive.
13775extract_expsyms_cmds=$lt_extract_expsyms_cmds
13776
13777# Symbols that should not be listed in the preloaded symbols.
13778exclude_expsyms=$lt_exclude_expsyms_CXX
13779
13780# Symbols that must always be exported.
13781include_expsyms=$lt_include_expsyms_CXX
13782
13783# ### END LIBTOOL TAG CONFIG: $tagname
13784
13785__EOF__
13786
13787
13788else
13789  # If there is no Makefile yet, we rely on a make rule to execute
13790  # `config.status --recheck' to rerun these tests and create the
13791  # libtool script then.
13792  test -f Makefile && make "$ltmain"
13793fi
13794
13795
13796ac_ext=c
13797ac_cpp='$CPP $CPPFLAGS'
13798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13800ac_compiler_gnu=$ac_cv_c_compiler_gnu
13801
13802CC=$lt_save_CC
13803LDCXX=$LD
13804LD=$lt_save_LD
13805GCC=$lt_save_GCC
13806with_gnu_ldcxx=$with_gnu_ld
13807with_gnu_ld=$lt_save_with_gnu_ld
13808lt_cv_path_LDCXX=$lt_cv_path_LD
13809lt_cv_path_LD=$lt_save_path_LD
13810lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13811lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13812
13813	else
13814	  tagname=""
13815	fi
13816	;;
13817
13818      F77)
13819	if test -n "$F77" && test "X$F77" != "Xno"; then
13820
13821ac_ext=f
13822ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13823ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13824ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13825
13826
13827archive_cmds_need_lc_F77=no
13828allow_undefined_flag_F77=
13829always_export_symbols_F77=no
13830archive_expsym_cmds_F77=
13831export_dynamic_flag_spec_F77=
13832hardcode_direct_F77=no
13833hardcode_libdir_flag_spec_F77=
13834hardcode_libdir_flag_spec_ld_F77=
13835hardcode_libdir_separator_F77=
13836hardcode_minus_L_F77=no
13837hardcode_automatic_F77=no
13838module_cmds_F77=
13839module_expsym_cmds_F77=
13840link_all_deplibs_F77=unknown
13841old_archive_cmds_F77=$old_archive_cmds
13842no_undefined_flag_F77=
13843whole_archive_flag_spec_F77=
13844enable_shared_with_static_runtimes_F77=no
13845
13846# Source file extension for f77 test sources.
13847ac_ext=f
13848
13849# Object file extension for compiled f77 test sources.
13850objext=o
13851objext_F77=$objext
13852
13853# Code to be used in simple compile tests
13854lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13855
13856# Code to be used in simple link tests
13857lt_simple_link_test_code="      program t\n      end\n"
13858
13859# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13860
13861# If no C compiler was specified, use CC.
13862LTCC=${LTCC-"$CC"}
13863
13864# Allow CC to be a program name with arguments.
13865compiler=$CC
13866
13867
13868# Allow CC to be a program name with arguments.
13869lt_save_CC="$CC"
13870CC=${F77-"f77"}
13871compiler=$CC
13872compiler_F77=$CC
13873cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13874
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13876$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13878$as_echo "$can_build_shared" >&6; }
13879
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13881$as_echo_n "checking whether to build shared libraries... " >&6; }
13882test "$can_build_shared" = "no" && enable_shared=no
13883
13884# On AIX, shared libraries and static libraries use the same namespace, and
13885# are all built from PIC.
13886case "$host_os" in
13887aix3*)
13888  test "$enable_shared" = yes && enable_static=no
13889  if test -n "$RANLIB"; then
13890    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13891    postinstall_cmds='$RANLIB $lib'
13892  fi
13893  ;;
13894aix4*)
13895  test "$enable_shared" = yes && enable_static=no
13896  ;;
13897esac
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13899$as_echo "$enable_shared" >&6; }
13900
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13902$as_echo_n "checking whether to build static libraries... " >&6; }
13903# Make sure either enable_shared or enable_static is yes.
13904test "$enable_shared" = yes || enable_static=yes
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13906$as_echo "$enable_static" >&6; }
13907
13908test "$ld_shlibs_F77" = no && can_build_shared=no
13909
13910GCC_F77="$G77"
13911LD_F77="$LD"
13912
13913lt_prog_compiler_wl_F77=
13914lt_prog_compiler_pic_F77=
13915lt_prog_compiler_static_F77=
13916
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13918$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13919
13920  if test "$GCC" = yes; then
13921    lt_prog_compiler_wl_F77='-Wl,'
13922    lt_prog_compiler_static_F77='-static'
13923
13924    case $host_os in
13925      aix*)
13926      # All AIX code is PIC.
13927      if test "$host_cpu" = ia64; then
13928	# AIX 5 now supports IA64 processor
13929	lt_prog_compiler_static_F77='-Bstatic'
13930      fi
13931      ;;
13932
13933    amigaos*)
13934      # FIXME: we need at least 68020 code to build shared libraries, but
13935      # adding the `-m68020' flag to GCC prevents building anything better,
13936      # like `-m68040'.
13937      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13938      ;;
13939
13940    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13941      # PIC is the default for these OSes.
13942      ;;
13943
13944    mingw* | pw32* | os2*)
13945      # This hack is so that the source file can tell whether it is being
13946      # built for inclusion in a dll (and should export symbols for example).
13947      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13948      ;;
13949
13950    darwin* | rhapsody*)
13951      # PIC is the default on this platform
13952      # Common symbols not allowed in MH_DYLIB files
13953      lt_prog_compiler_pic_F77='-fno-common'
13954      ;;
13955
13956    msdosdjgpp*)
13957      # Just because we use GCC doesn't mean we suddenly get shared libraries
13958      # on systems that don't support them.
13959      lt_prog_compiler_can_build_shared_F77=no
13960      enable_shared=no
13961      ;;
13962
13963    sysv4*MP*)
13964      if test -d /usr/nec; then
13965	lt_prog_compiler_pic_F77=-Kconform_pic
13966      fi
13967      ;;
13968
13969    hpux*)
13970      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13971      # not for PA HP-UX.
13972      case "$host_cpu" in
13973      hppa*64*|ia64*)
13974	# +Z the default
13975	;;
13976      *)
13977	lt_prog_compiler_pic_F77='-fPIC'
13978	;;
13979      esac
13980      ;;
13981
13982    *)
13983      lt_prog_compiler_pic_F77='-fPIC'
13984      ;;
13985    esac
13986  else
13987    # PORTME Check for flag to pass linker flags through the system compiler.
13988    case $host_os in
13989    aix*)
13990      lt_prog_compiler_wl_F77='-Wl,'
13991      if test "$host_cpu" = ia64; then
13992	# AIX 5 now supports IA64 processor
13993	lt_prog_compiler_static_F77='-Bstatic'
13994      else
13995	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13996      fi
13997      ;;
13998
13999    mingw* | pw32* | os2*)
14000      # This hack is so that the source file can tell whether it is being
14001      # built for inclusion in a dll (and should export symbols for example).
14002      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14003      ;;
14004
14005    hpux9* | hpux10* | hpux11*)
14006      lt_prog_compiler_wl_F77='-Wl,'
14007      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14008      # not for PA HP-UX.
14009      case "$host_cpu" in
14010      hppa*64*|ia64*)
14011	# +Z the default
14012	;;
14013      *)
14014	lt_prog_compiler_pic_F77='+Z'
14015	;;
14016      esac
14017      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14018      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14019      ;;
14020
14021    irix5* | irix6* | nonstopux*)
14022      lt_prog_compiler_wl_F77='-Wl,'
14023      # PIC (with -KPIC) is the default.
14024      lt_prog_compiler_static_F77='-non_shared'
14025      ;;
14026
14027    newsos6)
14028      lt_prog_compiler_pic_F77='-KPIC'
14029      lt_prog_compiler_static_F77='-Bstatic'
14030      ;;
14031
14032    linux*)
14033      case $CC in
14034      icc* | ecc*)
14035	lt_prog_compiler_wl_F77='-Wl,'
14036	lt_prog_compiler_pic_F77='-KPIC'
14037	lt_prog_compiler_static_F77='-static'
14038        ;;
14039      ccc*)
14040        lt_prog_compiler_wl_F77='-Wl,'
14041        # All Alpha code is PIC.
14042        lt_prog_compiler_static_F77='-non_shared'
14043        ;;
14044      esac
14045      ;;
14046
14047    osf3* | osf4* | osf5*)
14048      lt_prog_compiler_wl_F77='-Wl,'
14049      # All OSF/1 code is PIC.
14050      lt_prog_compiler_static_F77='-non_shared'
14051      ;;
14052
14053    sco3.2v5*)
14054      lt_prog_compiler_pic_F77='-Kpic'
14055      lt_prog_compiler_static_F77='-dn'
14056      ;;
14057
14058    solaris*)
14059      lt_prog_compiler_wl_F77='-Wl,'
14060      lt_prog_compiler_pic_F77='-KPIC'
14061      lt_prog_compiler_static_F77='-Bstatic'
14062      ;;
14063
14064    sunos4*)
14065      lt_prog_compiler_wl_F77='-Qoption ld '
14066      lt_prog_compiler_pic_F77='-PIC'
14067      lt_prog_compiler_static_F77='-Bstatic'
14068      ;;
14069
14070    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14071      lt_prog_compiler_wl_F77='-Wl,'
14072      lt_prog_compiler_pic_F77='-KPIC'
14073      lt_prog_compiler_static_F77='-Bstatic'
14074      ;;
14075
14076    sysv4*MP*)
14077      if test -d /usr/nec ;then
14078	lt_prog_compiler_pic_F77='-Kconform_pic'
14079	lt_prog_compiler_static_F77='-Bstatic'
14080      fi
14081      ;;
14082
14083    uts4*)
14084      lt_prog_compiler_pic_F77='-pic'
14085      lt_prog_compiler_static_F77='-Bstatic'
14086      ;;
14087
14088    *)
14089      lt_prog_compiler_can_build_shared_F77=no
14090      ;;
14091    esac
14092  fi
14093
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14095$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14096
14097#
14098# Check to make sure the PIC flag actually works.
14099#
14100if test -n "$lt_prog_compiler_pic_F77"; then
14101
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14103$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14104if ${lt_prog_compiler_pic_works_F77+:} false; then :
14105  $as_echo_n "(cached) " >&6
14106else
14107  lt_prog_compiler_pic_works_F77=no
14108  ac_outfile=conftest.$ac_objext
14109   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14110   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14111   # Insert the option either (1) after the last *FLAGS variable, or
14112   # (2) before a word containing "conftest.", or (3) at the end.
14113   # Note that $ac_compile itself does not contain backslashes and begins
14114   # with a dollar sign (not a hyphen), so the echo should work correctly.
14115   # The option is referenced via a variable to avoid confusing sed.
14116   lt_compile=`echo "$ac_compile" | $SED \
14117   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119   -e 's:$: $lt_compiler_flag:'`
14120   (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121   (eval "$lt_compile" 2>conftest.err)
14122   ac_status=$?
14123   cat conftest.err >&5
14124   echo "$as_me:14124: \$? = $ac_status" >&5
14125   if (exit $ac_status) && test -s "$ac_outfile"; then
14126     # The compiler can only warn and ignore the option if not recognized
14127     # So say no if there are warnings
14128     if test ! -s conftest.err; then
14129       lt_prog_compiler_pic_works_F77=yes
14130     fi
14131   fi
14132   $rm conftest*
14133
14134fi
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14136$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14137
14138if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14139    case $lt_prog_compiler_pic_F77 in
14140     "" | " "*) ;;
14141     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14142     esac
14143else
14144    lt_prog_compiler_pic_F77=
14145     lt_prog_compiler_can_build_shared_F77=no
14146fi
14147
14148fi
14149case "$host_os" in
14150  # For platforms which do not support PIC, -DPIC is meaningless:
14151  *djgpp*)
14152    lt_prog_compiler_pic_F77=
14153    ;;
14154  *)
14155    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14156    ;;
14157esac
14158
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14161if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14162  $as_echo_n "(cached) " >&6
14163else
14164  lt_cv_prog_compiler_c_o_F77=no
14165   $rm -r conftest 2>/dev/null
14166   mkdir conftest
14167   cd conftest
14168   mkdir out
14169   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14170
14171   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14172   # that will create temporary files in the current directory regardless of
14173   # the output directory.  Thus, making CWD read-only will cause this test
14174   # to fail, enabling locking or at least warning the user not to do parallel
14175   # builds.
14176   chmod -w .
14177
14178   lt_compiler_flag="-o out/conftest2.$ac_objext"
14179   # Insert the option either (1) after the last *FLAGS variable, or
14180   # (2) before a word containing "conftest.", or (3) at the end.
14181   # Note that $ac_compile itself does not contain backslashes and begins
14182   # with a dollar sign (not a hyphen), so the echo should work correctly.
14183   lt_compile=`echo "$ac_compile" | $SED \
14184   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14186   -e 's:$: $lt_compiler_flag:'`
14187   (eval echo "\"\$as_me:14187: $lt_compile\"" >&5)
14188   (eval "$lt_compile" 2>out/conftest.err)
14189   ac_status=$?
14190   cat out/conftest.err >&5
14191   echo "$as_me:14191: \$? = $ac_status" >&5
14192   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14193   then
14194     # The compiler can only warn and ignore the option if not recognized
14195     # So say no if there are warnings
14196     if test ! -s out/conftest.err; then
14197       lt_cv_prog_compiler_c_o_F77=yes
14198     fi
14199   fi
14200   chmod u+w .
14201   $rm conftest*
14202   # SGI C++ compiler will create directory out/ii_files/ for
14203   # template instantiation
14204   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14205   $rm out/* && rmdir out
14206   cd ..
14207   rmdir conftest
14208   $rm conftest*
14209
14210fi
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14212$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14213
14214
14215hard_links="nottested"
14216if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14217  # do not overwrite the value of need_locks provided by the user
14218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14219$as_echo_n "checking if we can lock with hard links... " >&6; }
14220  hard_links=yes
14221  $rm conftest*
14222  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14223  touch conftest.a
14224  ln conftest.a conftest.b 2>&5 || hard_links=no
14225  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14227$as_echo "$hard_links" >&6; }
14228  if test "$hard_links" = no; then
14229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14230$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14231    need_locks=warn
14232  fi
14233else
14234  need_locks=no
14235fi
14236
14237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14238$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14239
14240  runpath_var=
14241  allow_undefined_flag_F77=
14242  enable_shared_with_static_runtimes_F77=no
14243  archive_cmds_F77=
14244  archive_expsym_cmds_F77=
14245  old_archive_From_new_cmds_F77=
14246  old_archive_from_expsyms_cmds_F77=
14247  export_dynamic_flag_spec_F77=
14248  whole_archive_flag_spec_F77=
14249  thread_safe_flag_spec_F77=
14250  hardcode_libdir_flag_spec_F77=
14251  hardcode_libdir_flag_spec_ld_F77=
14252  hardcode_libdir_separator_F77=
14253  hardcode_direct_F77=no
14254  hardcode_minus_L_F77=no
14255  hardcode_shlibpath_var_F77=unsupported
14256  link_all_deplibs_F77=unknown
14257  hardcode_automatic_F77=no
14258  module_cmds_F77=
14259  module_expsym_cmds_F77=
14260  always_export_symbols_F77=no
14261  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14262  # include_expsyms should be a list of space-separated symbols to be *always*
14263  # included in the symbol list
14264  include_expsyms_F77=
14265  # exclude_expsyms can be an extended regexp of symbols to exclude
14266  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14267  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14268  # as well as any symbol that contains `d'.
14269  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14270  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14271  # platforms (ab)use it in PIC code, but their linkers get confused if
14272  # the symbol is explicitly referenced.  Since portable code cannot
14273  # rely on this symbol name, it's probably fine to never include it in
14274  # preloaded symbol tables.
14275  extract_expsyms_cmds=
14276
14277  case $host_os in
14278  cygwin* | mingw* | pw32*)
14279    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14280    # When not using gcc, we currently assume that we are using
14281    # Microsoft Visual C++.
14282    if test "$GCC" != yes; then
14283      with_gnu_ld=no
14284    fi
14285    ;;
14286  openbsd*)
14287    with_gnu_ld=no
14288    ;;
14289  esac
14290
14291  ld_shlibs_F77=yes
14292  if test "$with_gnu_ld" = yes; then
14293    # If archive_cmds runs LD, not CC, wlarc should be empty
14294    wlarc='${wl}'
14295
14296    # See if GNU ld supports shared libraries.
14297    case $host_os in
14298    aix3* | aix4* | aix5*)
14299      # On AIX/PPC, the GNU linker is very broken
14300      if test "$host_cpu" != ia64; then
14301	ld_shlibs_F77=no
14302	cat <<EOF 1>&2
14303
14304*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14305*** to be unable to reliably create shared libraries on AIX.
14306*** Therefore, libtool is disabling shared libraries support.  If you
14307*** really care for shared libraries, you may want to modify your PATH
14308*** so that a non-GNU linker is found, and then restart.
14309
14310EOF
14311      fi
14312      ;;
14313
14314    amigaos*)
14315      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14316      hardcode_libdir_flag_spec_F77='-L$libdir'
14317      hardcode_minus_L_F77=yes
14318
14319      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14320      # that the semantics of dynamic libraries on AmigaOS, at least up
14321      # to version 4, is to share data among multiple programs linked
14322      # with the same dynamic library.  Since this doesn't match the
14323      # behavior of shared libraries on other platforms, we can't use
14324      # them.
14325      ld_shlibs_F77=no
14326      ;;
14327
14328    beos*)
14329      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14330	allow_undefined_flag_F77=unsupported
14331	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14332	# support --undefined.  This deserves some investigation.  FIXME
14333	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14334      else
14335	ld_shlibs_F77=no
14336      fi
14337      ;;
14338
14339    cygwin* | mingw* | pw32*)
14340      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14341      # as there is no search path for DLLs.
14342      hardcode_libdir_flag_spec_F77='-L$libdir'
14343      allow_undefined_flag_F77=unsupported
14344      always_export_symbols_F77=no
14345      enable_shared_with_static_runtimes_F77=yes
14346      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14347
14348      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14349        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14350	# If the export-symbols file already is a .def file (1st line
14351	# is EXPORTS), use it as is; otherwise, prepend...
14352	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14353	  cp $export_symbols $output_objdir/$soname.def;
14354	else
14355	  echo EXPORTS > $output_objdir/$soname.def;
14356	  cat $export_symbols >> $output_objdir/$soname.def;
14357	fi~
14358	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14359      else
14360	ld_shlibs=no
14361      fi
14362      ;;
14363
14364    netbsd*)
14365      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14366	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14367	wlarc=
14368      else
14369	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14370	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14371      fi
14372      ;;
14373
14374    solaris* | sysv5*)
14375      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14376	ld_shlibs_F77=no
14377	cat <<EOF 1>&2
14378
14379*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14380*** create shared libraries on Solaris systems.  Therefore, libtool
14381*** is disabling shared libraries support.  We urge you to upgrade GNU
14382*** binutils to release 2.9.1 or newer.  Another option is to modify
14383*** your PATH or compiler configuration so that the native linker is
14384*** used, and then restart.
14385
14386EOF
14387      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14388	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14390      else
14391	ld_shlibs_F77=no
14392      fi
14393      ;;
14394
14395    sunos4*)
14396      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14397      wlarc=
14398      hardcode_direct_F77=yes
14399      hardcode_shlibpath_var_F77=no
14400      ;;
14401
14402    *)
14403      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14404	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14405	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14406      else
14407	ld_shlibs_F77=no
14408      fi
14409      ;;
14410    esac
14411
14412    if test "$ld_shlibs_F77" = yes; then
14413      runpath_var=LD_RUN_PATH
14414      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14415      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14416      # ancient GNU ld didn't support --whole-archive et. al.
14417      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14418 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14419      else
14420  	whole_archive_flag_spec_F77=
14421      fi
14422    fi
14423  else
14424    # PORTME fill in a description of your system's linker (not GNU ld)
14425    case $host_os in
14426    aix3*)
14427      allow_undefined_flag_F77=unsupported
14428      always_export_symbols_F77=yes
14429      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14430      # Note: this linker hardcodes the directories in LIBPATH if there
14431      # are no directories specified by -L.
14432      hardcode_minus_L_F77=yes
14433      if test "$GCC" = yes && test -z "$link_static_flag"; then
14434	# Neither direct hardcoding nor static linking is supported with a
14435	# broken collect2.
14436	hardcode_direct_F77=unsupported
14437      fi
14438      ;;
14439
14440    aix4* | aix5*)
14441      if test "$host_cpu" = ia64; then
14442	# On IA64, the linker does run time linking by default, so we don't
14443	# have to do anything special.
14444	aix_use_runtimelinking=no
14445	exp_sym_flag='-Bexport'
14446	no_entry_flag=""
14447      else
14448	# If we're using GNU nm, then we don't want the "-C" option.
14449	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14450	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14451	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14452	else
14453	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14454	fi
14455	aix_use_runtimelinking=no
14456
14457	# Test if we are trying to use run time linking or normal
14458	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14459	# need to do runtime linking.
14460	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14461	  for ld_flag in $LDFLAGS; do
14462  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14463  	    aix_use_runtimelinking=yes
14464  	    break
14465  	  fi
14466	  done
14467	esac
14468
14469	exp_sym_flag='-bexport'
14470	no_entry_flag='-bnoentry'
14471      fi
14472
14473      # When large executables or shared objects are built, AIX ld can
14474      # have problems creating the table of contents.  If linking a library
14475      # or program results in "error TOC overflow" add -mminimal-toc to
14476      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14477      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14478
14479      archive_cmds_F77=''
14480      hardcode_direct_F77=yes
14481      hardcode_libdir_separator_F77=':'
14482      link_all_deplibs_F77=yes
14483
14484      if test "$GCC" = yes; then
14485	case $host_os in aix4.012|aix4.012.*)
14486	# We only want to do this on AIX 4.2 and lower, the check
14487	# below for broken collect2 doesn't work under 4.3+
14488	  collect2name=`${CC} -print-prog-name=collect2`
14489	  if test -f "$collect2name" && \
14490  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14491	  then
14492  	  # We have reworked collect2
14493  	  hardcode_direct_F77=yes
14494	  else
14495  	  # We have old collect2
14496  	  hardcode_direct_F77=unsupported
14497  	  # It fails to find uninstalled libraries when the uninstalled
14498  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14499  	  # to unsupported forces relinking
14500  	  hardcode_minus_L_F77=yes
14501  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14502  	  hardcode_libdir_separator_F77=
14503	  fi
14504	esac
14505	shared_flag='-shared'
14506      else
14507	# not using gcc
14508	if test "$host_cpu" = ia64; then
14509  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14510  	# chokes on -Wl,-G. The following line is correct:
14511	  shared_flag='-G'
14512	else
14513  	if test "$aix_use_runtimelinking" = yes; then
14514	    shared_flag='${wl}-G'
14515	  else
14516	    shared_flag='${wl}-bM:SRE'
14517  	fi
14518	fi
14519      fi
14520
14521      # It seems that -bexpall does not export symbols beginning with
14522      # underscore (_), so it is better to generate a list of symbols to export.
14523      always_export_symbols_F77=yes
14524      if test "$aix_use_runtimelinking" = yes; then
14525	# Warning - without using the other runtime loading flags (-brtl),
14526	# -berok will link without error, but may produce a broken library.
14527	allow_undefined_flag_F77='-berok'
14528       # Determine the default libpath from the value encoded in an empty executable.
14529       cat > conftest.$ac_ext <<_ACEOF
14530      program main
14531
14532      end
14533_ACEOF
14534if ac_fn_f77_try_link "$LINENO"; then :
14535
14536aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14537}'`
14538# Check for a 64-bit object if we didn't find anything.
14539if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14540}'`; fi
14541fi
14542rm -f core conftest.err conftest.$ac_objext \
14543    conftest$ac_exeext conftest.$ac_ext
14544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14545
14546       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14547	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14548       else
14549	if test "$host_cpu" = ia64; then
14550	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14551	  allow_undefined_flag_F77="-z nodefs"
14552	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14553	else
14554	 # Determine the default libpath from the value encoded in an empty executable.
14555	 cat > conftest.$ac_ext <<_ACEOF
14556      program main
14557
14558      end
14559_ACEOF
14560if ac_fn_f77_try_link "$LINENO"; then :
14561
14562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14563}'`
14564# Check for a 64-bit object if we didn't find anything.
14565if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14566}'`; fi
14567fi
14568rm -f core conftest.err conftest.$ac_objext \
14569    conftest$ac_exeext conftest.$ac_ext
14570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14571
14572	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14573	  # Warning - without using the other run time loading flags,
14574	  # -berok will link without error, but may produce a broken library.
14575	  no_undefined_flag_F77=' ${wl}-bernotok'
14576	  allow_undefined_flag_F77=' ${wl}-berok'
14577	  # -bexpall does not export symbols beginning with underscore (_)
14578	  always_export_symbols_F77=yes
14579	  # Exported symbols can be pulled into shared objects from archives
14580	  whole_archive_flag_spec_F77=' '
14581	  archive_cmds_need_lc_F77=yes
14582	  # This is similar to how AIX traditionally builds it's shared libraries.
14583	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14584	fi
14585      fi
14586      ;;
14587
14588    amigaos*)
14589      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14590      hardcode_libdir_flag_spec_F77='-L$libdir'
14591      hardcode_minus_L_F77=yes
14592      # see comment about different semantics on the GNU ld section
14593      ld_shlibs_F77=no
14594      ;;
14595
14596    bsdi4*)
14597      export_dynamic_flag_spec_F77=-rdynamic
14598      ;;
14599
14600    cygwin* | mingw* | pw32*)
14601      # When not using gcc, we currently assume that we are using
14602      # Microsoft Visual C++.
14603      # hardcode_libdir_flag_spec is actually meaningless, as there is
14604      # no search path for DLLs.
14605      hardcode_libdir_flag_spec_F77=' '
14606      allow_undefined_flag_F77=unsupported
14607      # Tell ltmain to make .lib files, not .a files.
14608      libext=lib
14609      # Tell ltmain to make .dll files, not .so files.
14610      shrext=".dll"
14611      # FIXME: Setting linknames here is a bad hack.
14612      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14613      # The linker will automatically build a .lib file if we build a DLL.
14614      old_archive_From_new_cmds_F77='true'
14615      # FIXME: Should let the user specify the lib program.
14616      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14617      fix_srcfile_path='`cygpath -w "$srcfile"`'
14618      enable_shared_with_static_runtimes_F77=yes
14619      ;;
14620
14621    darwin* | rhapsody*)
14622    if test "$GXX" = yes ; then
14623      archive_cmds_need_lc_F77=no
14624      case "$host_os" in
14625      rhapsody* | darwin1.[012])
14626	allow_undefined_flag_F77='-undefined suppress'
14627	;;
14628      *) # Darwin 1.3 on
14629      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14630      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14631      else
14632        case ${MACOSX_DEPLOYMENT_TARGET} in
14633          10.[012])
14634            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14635            ;;
14636          10.*)
14637            allow_undefined_flag_F77='-undefined dynamic_lookup'
14638            ;;
14639        esac
14640      fi
14641	;;
14642      esac
14643    	lt_int_apple_cc_single_mod=no
14644    	output_verbose_link_cmd='echo'
14645    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14646    	  lt_int_apple_cc_single_mod=yes
14647    	fi
14648    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14649    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14650    	else
14651        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14652      fi
14653      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14654      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14655        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14656          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14657        else
14658          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14659        fi
14660          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14661      hardcode_direct_F77=no
14662      hardcode_automatic_F77=yes
14663      hardcode_shlibpath_var_F77=unsupported
14664      whole_archive_flag_spec_F77='-all_load $convenience'
14665      link_all_deplibs_F77=yes
14666    else
14667      ld_shlibs_F77=no
14668    fi
14669      ;;
14670
14671    dgux*)
14672      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14673      hardcode_libdir_flag_spec_F77='-L$libdir'
14674      hardcode_shlibpath_var_F77=no
14675      ;;
14676
14677    freebsd1*)
14678      ld_shlibs_F77=no
14679      ;;
14680
14681    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14682    # support.  Future versions do this automatically, but an explicit c++rt0.o
14683    # does not break anything, and helps significantly (at the cost of a little
14684    # extra space).
14685    freebsd2.2*)
14686      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14687      hardcode_libdir_flag_spec_F77='-R$libdir'
14688      hardcode_direct_F77=yes
14689      hardcode_shlibpath_var_F77=no
14690      ;;
14691
14692    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14693    freebsd2*)
14694      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14695      hardcode_direct_F77=yes
14696      hardcode_minus_L_F77=yes
14697      hardcode_shlibpath_var_F77=no
14698      ;;
14699
14700    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14701    freebsd* | kfreebsd*-gnu)
14702      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14703      hardcode_libdir_flag_spec_F77='-R$libdir'
14704      hardcode_direct_F77=yes
14705      hardcode_shlibpath_var_F77=no
14706      ;;
14707
14708    hpux9*)
14709      if test "$GCC" = yes; then
14710	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14711      else
14712	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14713      fi
14714      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14715      hardcode_libdir_separator_F77=:
14716      hardcode_direct_F77=yes
14717
14718      # hardcode_minus_L: Not really in the search PATH,
14719      # but as the default location of the library.
14720      hardcode_minus_L_F77=yes
14721      export_dynamic_flag_spec_F77='${wl}-E'
14722      ;;
14723
14724    hpux10* | hpux11*)
14725      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14726	case "$host_cpu" in
14727	hppa*64*|ia64*)
14728	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14729	  ;;
14730	*)
14731	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14732	  ;;
14733	esac
14734      else
14735	case "$host_cpu" in
14736	hppa*64*|ia64*)
14737	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14738	  ;;
14739	*)
14740	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14741	  ;;
14742	esac
14743      fi
14744      if test "$with_gnu_ld" = no; then
14745	case "$host_cpu" in
14746	hppa*64*)
14747	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14748	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14749	  hardcode_libdir_separator_F77=:
14750	  hardcode_direct_F77=no
14751	  hardcode_shlibpath_var_F77=no
14752	  ;;
14753	ia64*)
14754	  hardcode_libdir_flag_spec_F77='-L$libdir'
14755	  hardcode_direct_F77=no
14756	  hardcode_shlibpath_var_F77=no
14757
14758	  # hardcode_minus_L: Not really in the search PATH,
14759	  # but as the default location of the library.
14760	  hardcode_minus_L_F77=yes
14761	  ;;
14762	*)
14763	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14764	  hardcode_libdir_separator_F77=:
14765	  hardcode_direct_F77=yes
14766	  export_dynamic_flag_spec_F77='${wl}-E'
14767
14768	  # hardcode_minus_L: Not really in the search PATH,
14769	  # but as the default location of the library.
14770	  hardcode_minus_L_F77=yes
14771	  ;;
14772	esac
14773      fi
14774      ;;
14775
14776    irix5* | irix6* | nonstopux*)
14777      if test "$GCC" = yes; then
14778	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14779      else
14780	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14781	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14782      fi
14783      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14784      hardcode_libdir_separator_F77=:
14785      link_all_deplibs_F77=yes
14786      ;;
14787
14788    netbsd*)
14789      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14790	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14791      else
14792	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14793      fi
14794      hardcode_libdir_flag_spec_F77='-R$libdir'
14795      hardcode_direct_F77=yes
14796      hardcode_shlibpath_var_F77=no
14797      ;;
14798
14799    newsos6)
14800      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14801      hardcode_direct_F77=yes
14802      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14803      hardcode_libdir_separator_F77=:
14804      hardcode_shlibpath_var_F77=no
14805      ;;
14806
14807    openbsd*)
14808      hardcode_direct_F77=yes
14809      hardcode_shlibpath_var_F77=no
14810      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14811	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14812	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14813	export_dynamic_flag_spec_F77='${wl}-E'
14814      else
14815       case $host_os in
14816	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14817	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14818	   hardcode_libdir_flag_spec_F77='-R$libdir'
14819	   ;;
14820	 *)
14821	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14822	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14823	   ;;
14824       esac
14825      fi
14826      ;;
14827
14828    os2*)
14829      hardcode_libdir_flag_spec_F77='-L$libdir'
14830      hardcode_minus_L_F77=yes
14831      allow_undefined_flag_F77=unsupported
14832      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14833      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14834      ;;
14835
14836    osf3*)
14837      if test "$GCC" = yes; then
14838	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14839	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14840      else
14841	allow_undefined_flag_F77=' -expect_unresolved \*'
14842	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14843      fi
14844      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14845      hardcode_libdir_separator_F77=:
14846      ;;
14847
14848    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14849      if test "$GCC" = yes; then
14850	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14851	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14852	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14853      else
14854	allow_undefined_flag_F77=' -expect_unresolved \*'
14855	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14856	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14857	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14858
14859	# Both c and cxx compiler support -rpath directly
14860	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14861      fi
14862      hardcode_libdir_separator_F77=:
14863      ;;
14864
14865    sco3.2v5*)
14866      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867      hardcode_shlibpath_var_F77=no
14868      export_dynamic_flag_spec_F77='${wl}-Bexport'
14869      runpath_var=LD_RUN_PATH
14870      hardcode_runpath_var=yes
14871      ;;
14872
14873    solaris*)
14874      no_undefined_flag_F77=' -z text'
14875      if test "$GCC" = yes; then
14876	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14877	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14878	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14879      else
14880	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14881	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14882  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14883      fi
14884      hardcode_libdir_flag_spec_F77='-R$libdir'
14885      hardcode_shlibpath_var_F77=no
14886      case $host_os in
14887      solaris2.[0-5] | solaris2.[0-5].*) ;;
14888      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14889	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14890      esac
14891      link_all_deplibs_F77=yes
14892      ;;
14893
14894    sunos4*)
14895      if test "x$host_vendor" = xsequent; then
14896	# Use $CC to link under sequent, because it throws in some extra .o
14897	# files that make .init and .fini sections work.
14898	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14899      else
14900	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14901      fi
14902      hardcode_libdir_flag_spec_F77='-L$libdir'
14903      hardcode_direct_F77=yes
14904      hardcode_minus_L_F77=yes
14905      hardcode_shlibpath_var_F77=no
14906      ;;
14907
14908    sysv4)
14909      case $host_vendor in
14910	sni)
14911	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912	  hardcode_direct_F77=yes # is this really true???
14913	;;
14914	siemens)
14915	  ## LD is ld it makes a PLAMLIB
14916	  ## CC just makes a GrossModule.
14917	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14918	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14919	  hardcode_direct_F77=no
14920        ;;
14921	motorola)
14922	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14924	;;
14925      esac
14926      runpath_var='LD_RUN_PATH'
14927      hardcode_shlibpath_var_F77=no
14928      ;;
14929
14930    sysv4.3*)
14931      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14932      hardcode_shlibpath_var_F77=no
14933      export_dynamic_flag_spec_F77='-Bexport'
14934      ;;
14935
14936    sysv4*MP*)
14937      if test -d /usr/nec; then
14938	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939	hardcode_shlibpath_var_F77=no
14940	runpath_var=LD_RUN_PATH
14941	hardcode_runpath_var=yes
14942	ld_shlibs_F77=yes
14943      fi
14944      ;;
14945
14946    sysv4.2uw2*)
14947      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14948      hardcode_direct_F77=yes
14949      hardcode_minus_L_F77=no
14950      hardcode_shlibpath_var_F77=no
14951      hardcode_runpath_var=yes
14952      runpath_var=LD_RUN_PATH
14953      ;;
14954
14955   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14956      no_undefined_flag_F77='${wl}-z ${wl}text'
14957      if test "$GCC" = yes; then
14958	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14959      else
14960	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961      fi
14962      runpath_var='LD_RUN_PATH'
14963      hardcode_shlibpath_var_F77=no
14964      ;;
14965
14966    sysv5*)
14967      no_undefined_flag_F77=' -z text'
14968      # $CC -shared without GNU ld will not create a library from C++
14969      # object files and a static libstdc++, better avoid it by now
14970      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14972  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14973      hardcode_libdir_flag_spec_F77=
14974      hardcode_shlibpath_var_F77=no
14975      runpath_var='LD_RUN_PATH'
14976      ;;
14977
14978    uts4*)
14979      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980      hardcode_libdir_flag_spec_F77='-L$libdir'
14981      hardcode_shlibpath_var_F77=no
14982      ;;
14983
14984    *)
14985      ld_shlibs_F77=no
14986      ;;
14987    esac
14988  fi
14989
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14991$as_echo "$ld_shlibs_F77" >&6; }
14992test "$ld_shlibs_F77" = no && can_build_shared=no
14993
14994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14995if test "$GCC" = yes; then
14996  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14997fi
14998
14999#
15000# Do we need to explicitly link libc?
15001#
15002case "x$archive_cmds_need_lc_F77" in
15003x|xyes)
15004  # Assume -lc should be added
15005  archive_cmds_need_lc_F77=yes
15006
15007  if test "$enable_shared" = yes && test "$GCC" = yes; then
15008    case $archive_cmds_F77 in
15009    *'~'*)
15010      # FIXME: we may have to deal with multi-command sequences.
15011      ;;
15012    '$CC '*)
15013      # Test whether the compiler implicitly links with -lc since on some
15014      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15015      # to ld, don't add -lc before -lgcc.
15016      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15017$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15018      $rm conftest*
15019      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15020
15021      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15022  (eval $ac_compile) 2>&5
15023  ac_status=$?
15024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025  test $ac_status = 0; } 2>conftest.err; then
15026        soname=conftest
15027        lib=conftest
15028        libobjs=conftest.$ac_objext
15029        deplibs=
15030        wl=$lt_prog_compiler_wl_F77
15031        compiler_flags=-v
15032        linker_flags=-v
15033        verstring=
15034        output_objdir=.
15035        libname=conftest
15036        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15037        allow_undefined_flag_F77=
15038        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15039  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15040  ac_status=$?
15041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042  test $ac_status = 0; }
15043        then
15044	  archive_cmds_need_lc_F77=no
15045        else
15046	  archive_cmds_need_lc_F77=yes
15047        fi
15048        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15049      else
15050        cat conftest.err 1>&5
15051      fi
15052      $rm conftest*
15053      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15054$as_echo "$archive_cmds_need_lc_F77" >&6; }
15055      ;;
15056    esac
15057  fi
15058  ;;
15059esac
15060
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15062$as_echo_n "checking dynamic linker characteristics... " >&6; }
15063library_names_spec=
15064libname_spec='lib$name'
15065soname_spec=
15066shrext=".so"
15067postinstall_cmds=
15068postuninstall_cmds=
15069finish_cmds=
15070finish_eval=
15071shlibpath_var=
15072shlibpath_overrides_runpath=unknown
15073version_type=none
15074dynamic_linker="$host_os ld.so"
15075sys_lib_dlsearch_path_spec="/lib /usr/lib"
15076if test "$GCC" = yes; then
15077  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15078  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15079    # if the path contains ";" then we assume it to be the separator
15080    # otherwise default to the standard path separator (i.e. ":") - it is
15081    # assumed that no part of a normal pathname contains ";" but that should
15082    # okay in the real world where ";" in dirpaths is itself problematic.
15083    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15084  else
15085    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15086  fi
15087else
15088  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15089fi
15090need_lib_prefix=unknown
15091hardcode_into_libs=no
15092
15093# when you set need_version to no, make sure it does not cause -set_version
15094# flags to be left without arguments
15095need_version=unknown
15096
15097case $host_os in
15098aix3*)
15099  version_type=linux
15100  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15101  shlibpath_var=LIBPATH
15102
15103  # AIX 3 has no versioning support, so we append a major version to the name.
15104  soname_spec='${libname}${release}${shared_ext}$major'
15105  ;;
15106
15107aix4* | aix5*)
15108  version_type=linux
15109  need_lib_prefix=no
15110  need_version=no
15111  hardcode_into_libs=yes
15112  if test "$host_cpu" = ia64; then
15113    # AIX 5 supports IA64
15114    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15115    shlibpath_var=LD_LIBRARY_PATH
15116  else
15117    # With GCC up to 2.95.x, collect2 would create an import file
15118    # for dependence libraries.  The import file would start with
15119    # the line `#! .'.  This would cause the generated library to
15120    # depend on `.', always an invalid library.  This was fixed in
15121    # development snapshots of GCC prior to 3.0.
15122    case $host_os in
15123      aix4 | aix4.[01] | aix4.[01].*)
15124      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15125	   echo ' yes '
15126	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15127	:
15128      else
15129	can_build_shared=no
15130      fi
15131      ;;
15132    esac
15133    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15134    # soname into executable. Probably we can add versioning support to
15135    # collect2, so additional links can be useful in future.
15136    if test "$aix_use_runtimelinking" = yes; then
15137      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15138      # instead of lib<name>.a to let people know that these are not
15139      # typical AIX shared libraries.
15140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15141    else
15142      # We preserve .a as extension for shared libraries through AIX4.2
15143      # and later when we are not doing run time linking.
15144      library_names_spec='${libname}${release}.a $libname.a'
15145      soname_spec='${libname}${release}${shared_ext}$major'
15146    fi
15147    shlibpath_var=LIBPATH
15148  fi
15149  ;;
15150
15151amigaos*)
15152  library_names_spec='$libname.ixlibrary $libname.a'
15153  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15154  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15155  ;;
15156
15157beos*)
15158  library_names_spec='${libname}${shared_ext}'
15159  dynamic_linker="$host_os ld.so"
15160  shlibpath_var=LIBRARY_PATH
15161  ;;
15162
15163bsdi4*)
15164  version_type=linux
15165  need_version=no
15166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167  soname_spec='${libname}${release}${shared_ext}$major'
15168  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15169  shlibpath_var=LD_LIBRARY_PATH
15170  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15171  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15172  # the default ld.so.conf also contains /usr/contrib/lib and
15173  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15174  # libtool to hard-code these into programs
15175  ;;
15176
15177cygwin* | mingw* | pw32*)
15178  version_type=windows
15179  shrext=".dll"
15180  need_version=no
15181  need_lib_prefix=no
15182
15183  case $GCC,$host_os in
15184  yes,cygwin* | yes,mingw* | yes,pw32*)
15185    library_names_spec='$libname.dll.a'
15186    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15187    postinstall_cmds='base_file=`basename \${file}`~
15188      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15189      dldir=$destdir/`dirname \$dlpath`~
15190      test -d \$dldir || mkdir -p \$dldir~
15191      $install_prog $dir/$dlname \$dldir/$dlname'
15192    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15193      dlpath=$dir/\$dldll~
15194       $rm \$dlpath'
15195    shlibpath_overrides_runpath=yes
15196
15197    case $host_os in
15198    cygwin*)
15199      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15200      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15201      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15202      ;;
15203    mingw*)
15204      # MinGW DLLs use traditional 'lib' prefix
15205      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15206      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15207      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15208        # It is most probably a Windows format PATH printed by
15209        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15210        # path with ; separators, and with drive letters. We can handle the
15211        # drive letters (cygwin fileutils understands them), so leave them,
15212        # especially as we might pass files found there to a mingw objdump,
15213        # which wouldn't understand a cygwinified path. Ahh.
15214        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15215      else
15216        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15217      fi
15218      ;;
15219    pw32*)
15220      # pw32 DLLs use 'pw' prefix rather than 'lib'
15221      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15222      ;;
15223    esac
15224    ;;
15225
15226  *)
15227    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15228    ;;
15229  esac
15230  dynamic_linker='Win32 ld.exe'
15231  # FIXME: first we should search . and the directory the executable is in
15232  shlibpath_var=PATH
15233  ;;
15234
15235darwin* | rhapsody*)
15236  dynamic_linker="$host_os dyld"
15237  version_type=darwin
15238  need_lib_prefix=no
15239  need_version=no
15240  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15241  soname_spec='${libname}${release}${major}$shared_ext'
15242  shlibpath_overrides_runpath=yes
15243  shlibpath_var=DYLD_LIBRARY_PATH
15244  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15245  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15246  if test "$GCC" = yes; then
15247    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15248  else
15249    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15250  fi
15251  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15252  ;;
15253
15254dgux*)
15255  version_type=linux
15256  need_lib_prefix=no
15257  need_version=no
15258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15259  soname_spec='${libname}${release}${shared_ext}$major'
15260  shlibpath_var=LD_LIBRARY_PATH
15261  ;;
15262
15263freebsd1*)
15264  dynamic_linker=no
15265  ;;
15266
15267kfreebsd*-gnu)
15268  version_type=linux
15269  need_lib_prefix=no
15270  need_version=no
15271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15272  soname_spec='${libname}${release}${shared_ext}$major'
15273  shlibpath_var=LD_LIBRARY_PATH
15274  shlibpath_overrides_runpath=no
15275  hardcode_into_libs=yes
15276  dynamic_linker='GNU ld.so'
15277  ;;
15278
15279freebsd*)
15280  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15281  version_type=freebsd-$objformat
15282  case $version_type in
15283    freebsd-elf*)
15284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15285      need_version=no
15286      need_lib_prefix=no
15287      ;;
15288    freebsd-*)
15289      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15290      need_version=yes
15291      ;;
15292  esac
15293  shlibpath_var=LD_LIBRARY_PATH
15294  case $host_os in
15295  freebsd2*)
15296    shlibpath_overrides_runpath=yes
15297    ;;
15298  freebsd3.01* | freebsdelf3.01*)
15299    shlibpath_overrides_runpath=yes
15300    hardcode_into_libs=yes
15301    ;;
15302  *) # from 3.2 on
15303    shlibpath_overrides_runpath=no
15304    hardcode_into_libs=yes
15305    ;;
15306  esac
15307  ;;
15308
15309gnu*)
15310  version_type=linux
15311  need_lib_prefix=no
15312  need_version=no
15313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15314  soname_spec='${libname}${release}${shared_ext}$major'
15315  shlibpath_var=LD_LIBRARY_PATH
15316  hardcode_into_libs=yes
15317  ;;
15318
15319hpux9* | hpux10* | hpux11*)
15320  # Give a soname corresponding to the major version so that dld.sl refuses to
15321  # link against other versions.
15322  version_type=sunos
15323  need_lib_prefix=no
15324  need_version=no
15325  case "$host_cpu" in
15326  ia64*)
15327    shrext='.so'
15328    hardcode_into_libs=yes
15329    dynamic_linker="$host_os dld.so"
15330    shlibpath_var=LD_LIBRARY_PATH
15331    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333    soname_spec='${libname}${release}${shared_ext}$major'
15334    if test "X$HPUX_IA64_MODE" = X32; then
15335      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15336    else
15337      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15338    fi
15339    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15340    ;;
15341   hppa*64*)
15342     shrext='.sl'
15343     hardcode_into_libs=yes
15344     dynamic_linker="$host_os dld.sl"
15345     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348     soname_spec='${libname}${release}${shared_ext}$major'
15349     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15350     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15351     ;;
15352   *)
15353    shrext='.sl'
15354    dynamic_linker="$host_os dld.sl"
15355    shlibpath_var=SHLIB_PATH
15356    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15357    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358    soname_spec='${libname}${release}${shared_ext}$major'
15359    ;;
15360  esac
15361  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15362  postinstall_cmds='chmod 555 $lib'
15363  ;;
15364
15365irix5* | irix6* | nonstopux*)
15366  case $host_os in
15367    nonstopux*) version_type=nonstopux ;;
15368    *)
15369	if test "$lt_cv_prog_gnu_ld" = yes; then
15370		version_type=linux
15371	else
15372		version_type=irix
15373	fi ;;
15374  esac
15375  need_lib_prefix=no
15376  need_version=no
15377  soname_spec='${libname}${release}${shared_ext}$major'
15378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15379  case $host_os in
15380  irix5* | nonstopux*)
15381    libsuff= shlibsuff=
15382    ;;
15383  *)
15384    case $LD in # libtool.m4 will add one of these switches to LD
15385    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15386      libsuff= shlibsuff= libmagic=32-bit;;
15387    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15388      libsuff=32 shlibsuff=N32 libmagic=N32;;
15389    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15390      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15391    *) libsuff= shlibsuff= libmagic=never-match;;
15392    esac
15393    ;;
15394  esac
15395  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15396  shlibpath_overrides_runpath=no
15397  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15398  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15399  hardcode_into_libs=yes
15400  ;;
15401
15402# No shared lib support for Linux oldld, aout, or coff.
15403linux*oldld* | linux*aout* | linux*coff*)
15404  dynamic_linker=no
15405  ;;
15406
15407# This must be Linux ELF.
15408linux*)
15409  version_type=linux
15410  need_lib_prefix=no
15411  need_version=no
15412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413  soname_spec='${libname}${release}${shared_ext}$major'
15414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15415  shlibpath_var=LD_LIBRARY_PATH
15416  shlibpath_overrides_runpath=no
15417  # This implies no fast_install, which is unacceptable.
15418  # Some rework will be needed to allow for fast_install
15419  # before this can be enabled.
15420  hardcode_into_libs=yes
15421
15422  # We used to test for /lib/ld.so.1 and disable shared libraries on
15423  # powerpc, because MkLinux only supported shared libraries with the
15424  # GNU dynamic linker.  Since this was broken with cross compilers,
15425  # most powerpc-linux boxes support dynamic linking these days and
15426  # people can always --disable-shared, the test was removed, and we
15427  # assume the GNU/Linux dynamic linker is in use.
15428  dynamic_linker='GNU/Linux ld.so'
15429  ;;
15430
15431netbsd*)
15432  version_type=sunos
15433  need_lib_prefix=no
15434  need_version=no
15435  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15437    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15438    dynamic_linker='NetBSD (a.out) ld.so'
15439  else
15440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15441    soname_spec='${libname}${release}${shared_ext}$major'
15442    dynamic_linker='NetBSD ld.elf_so'
15443  fi
15444  shlibpath_var=LD_LIBRARY_PATH
15445  shlibpath_overrides_runpath=yes
15446  hardcode_into_libs=yes
15447  ;;
15448
15449newsos6)
15450  version_type=linux
15451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452  shlibpath_var=LD_LIBRARY_PATH
15453  shlibpath_overrides_runpath=yes
15454  ;;
15455
15456nto-qnx*)
15457  version_type=linux
15458  need_lib_prefix=no
15459  need_version=no
15460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461  soname_spec='${libname}${release}${shared_ext}$major'
15462  shlibpath_var=LD_LIBRARY_PATH
15463  shlibpath_overrides_runpath=yes
15464  ;;
15465
15466openbsd*)
15467  version_type=sunos
15468  need_lib_prefix=no
15469  need_version=no
15470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15471  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15472  shlibpath_var=LD_LIBRARY_PATH
15473  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15474    case $host_os in
15475      openbsd2.[89] | openbsd2.[89].*)
15476	shlibpath_overrides_runpath=no
15477	;;
15478      *)
15479	shlibpath_overrides_runpath=yes
15480	;;
15481      esac
15482  else
15483    shlibpath_overrides_runpath=yes
15484  fi
15485  ;;
15486
15487os2*)
15488  libname_spec='$name'
15489  shrext=".dll"
15490  need_lib_prefix=no
15491  library_names_spec='$libname${shared_ext} $libname.a'
15492  dynamic_linker='OS/2 ld.exe'
15493  shlibpath_var=LIBPATH
15494  ;;
15495
15496osf3* | osf4* | osf5*)
15497  version_type=osf
15498  need_lib_prefix=no
15499  need_version=no
15500  soname_spec='${libname}${release}${shared_ext}$major'
15501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15502  shlibpath_var=LD_LIBRARY_PATH
15503  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15504  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15505  ;;
15506
15507sco3.2v5*)
15508  version_type=osf
15509  soname_spec='${libname}${release}${shared_ext}$major'
15510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511  shlibpath_var=LD_LIBRARY_PATH
15512  ;;
15513
15514solaris*)
15515  version_type=linux
15516  need_lib_prefix=no
15517  need_version=no
15518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519  soname_spec='${libname}${release}${shared_ext}$major'
15520  shlibpath_var=LD_LIBRARY_PATH
15521  shlibpath_overrides_runpath=yes
15522  hardcode_into_libs=yes
15523  # ldd complains unless libraries are executable
15524  postinstall_cmds='chmod +x $lib'
15525  ;;
15526
15527sunos4*)
15528  version_type=sunos
15529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15531  shlibpath_var=LD_LIBRARY_PATH
15532  shlibpath_overrides_runpath=yes
15533  if test "$with_gnu_ld" = yes; then
15534    need_lib_prefix=no
15535  fi
15536  need_version=yes
15537  ;;
15538
15539sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15540  version_type=linux
15541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542  soname_spec='${libname}${release}${shared_ext}$major'
15543  shlibpath_var=LD_LIBRARY_PATH
15544  case $host_vendor in
15545    sni)
15546      shlibpath_overrides_runpath=no
15547      need_lib_prefix=no
15548      export_dynamic_flag_spec='${wl}-Blargedynsym'
15549      runpath_var=LD_RUN_PATH
15550      ;;
15551    siemens)
15552      need_lib_prefix=no
15553      ;;
15554    motorola)
15555      need_lib_prefix=no
15556      need_version=no
15557      shlibpath_overrides_runpath=no
15558      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15559      ;;
15560  esac
15561  ;;
15562
15563sysv4*MP*)
15564  if test -d /usr/nec ;then
15565    version_type=linux
15566    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15567    soname_spec='$libname${shared_ext}.$major'
15568    shlibpath_var=LD_LIBRARY_PATH
15569  fi
15570  ;;
15571
15572uts4*)
15573  version_type=linux
15574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575  soname_spec='${libname}${release}${shared_ext}$major'
15576  shlibpath_var=LD_LIBRARY_PATH
15577  ;;
15578
15579*)
15580  dynamic_linker=no
15581  ;;
15582esac
15583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15584$as_echo "$dynamic_linker" >&6; }
15585test "$dynamic_linker" = no && can_build_shared=no
15586
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15588$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15589hardcode_action_F77=
15590if test -n "$hardcode_libdir_flag_spec_F77" || \
15591   test -n "$runpath_var F77" || \
15592   test "X$hardcode_automatic_F77"="Xyes" ; then
15593
15594  # We can hardcode non-existant directories.
15595  if test "$hardcode_direct_F77" != no &&
15596     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15597     # have to relink, otherwise we might link with an installed library
15598     # when we should be linking with a yet-to-be-installed one
15599     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15600     test "$hardcode_minus_L_F77" != no; then
15601    # Linking always hardcodes the temporary library directory.
15602    hardcode_action_F77=relink
15603  else
15604    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15605    hardcode_action_F77=immediate
15606  fi
15607else
15608  # We cannot hardcode anything, or else we can only hardcode existing
15609  # directories.
15610  hardcode_action_F77=unsupported
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15613$as_echo "$hardcode_action_F77" >&6; }
15614
15615if test "$hardcode_action_F77" = relink; then
15616  # Fast installation is not supported
15617  enable_fast_install=no
15618elif test "$shlibpath_overrides_runpath" = yes ||
15619     test "$enable_shared" = no; then
15620  # Fast installation is not necessary
15621  enable_fast_install=needless
15622fi
15623
15624striplib=
15625old_striplib=
15626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15627$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15628if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15629  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15630  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15631# <PATCH NAME="ISW20030916-1">
15632# <NEW>
15633# The following section is a PATCH to overcome the
15634# stripped import library issues under cygwin
15635  case $host_os in
15636    cygwin*)
15637        striplib=
15638        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639$as_echo "no" >&6; }
15640        ;;
15641    *)
15642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643$as_echo "yes" >&6; }
15644        ;;
15645   esac
15646# </NEW>
15647# <OLD>
15648#  AC_MSG_RESULT([yes])
15649# </OLD>
15650# </PATCH>
15651
15652else
15653# FIXME - insert some real tests, host_os isn't really good enough
15654  case $host_os in
15655   darwin*)
15656       if test -n "$STRIP" ; then
15657         striplib="$STRIP -x"
15658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15659$as_echo "yes" >&6; }
15660       else
15661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15662$as_echo "no" >&6; }
15663fi
15664       ;;
15665   *)
15666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667$as_echo "no" >&6; }
15668    ;;
15669  esac
15670fi
15671
15672
15673
15674# The else clause should only fire when bootstrapping the
15675# libtool distribution, otherwise you forgot to ship ltmain.sh
15676# with your package, and you will get complaints that there are
15677# no rules to generate ltmain.sh.
15678if test -f "$ltmain"; then
15679  # See if we are running on zsh, and set the options which allow our commands through
15680  # without removal of \ escapes.
15681  if test -n "${ZSH_VERSION+set}" ; then
15682    setopt NO_GLOB_SUBST
15683  fi
15684  # Now quote all the things that may contain metacharacters while being
15685  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15686  # variables and quote the copies for generation of the libtool script.
15687  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15688    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15689    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15690    deplibs_check_method reload_flag reload_cmds need_locks \
15691    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15692    lt_cv_sys_global_symbol_to_c_name_address \
15693    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15694    old_postinstall_cmds old_postuninstall_cmds \
15695    compiler_F77 \
15696    CC_F77 \
15697    LD_F77 \
15698    lt_prog_compiler_wl_F77 \
15699    lt_prog_compiler_pic_F77 \
15700    lt_prog_compiler_static_F77 \
15701    lt_prog_compiler_no_builtin_flag_F77 \
15702    export_dynamic_flag_spec_F77 \
15703    thread_safe_flag_spec_F77 \
15704    whole_archive_flag_spec_F77 \
15705    enable_shared_with_static_runtimes_F77 \
15706    old_archive_cmds_F77 \
15707    old_archive_from_new_cmds_F77 \
15708    predep_objects_F77 \
15709    postdep_objects_F77 \
15710    predeps_F77 \
15711    postdeps_F77 \
15712    compiler_lib_search_path_F77 \
15713    archive_cmds_F77 \
15714    archive_expsym_cmds_F77 \
15715    postinstall_cmds_F77 \
15716    postuninstall_cmds_F77 \
15717    old_archive_from_expsyms_cmds_F77 \
15718    allow_undefined_flag_F77 \
15719    no_undefined_flag_F77 \
15720    export_symbols_cmds_F77 \
15721    hardcode_libdir_flag_spec_F77 \
15722    hardcode_libdir_flag_spec_ld_F77 \
15723    hardcode_libdir_separator_F77 \
15724    hardcode_automatic_F77 \
15725    module_cmds_F77 \
15726    module_expsym_cmds_F77 \
15727    lt_cv_prog_compiler_c_o_F77 \
15728    exclude_expsyms_F77 \
15729    include_expsyms_F77; do
15730
15731    case $var in
15732    old_archive_cmds_F77 | \
15733    old_archive_from_new_cmds_F77 | \
15734    archive_cmds_F77 | \
15735    archive_expsym_cmds_F77 | \
15736    module_cmds_F77 | \
15737    module_expsym_cmds_F77 | \
15738    old_archive_from_expsyms_cmds_F77 | \
15739    export_symbols_cmds_F77 | \
15740    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15741    postinstall_cmds | postuninstall_cmds | \
15742    old_postinstall_cmds | old_postuninstall_cmds | \
15743    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15744      # Double-quote double-evaled strings.
15745      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15746      ;;
15747    *)
15748      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15749      ;;
15750    esac
15751  done
15752
15753  case $lt_echo in
15754  *'\$0 --fallback-echo"')
15755    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15756    ;;
15757  esac
15758
15759cfgfile="$ofile"
15760
15761  cat <<__EOF__ >> "$cfgfile"
15762# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15763
15764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15765
15766# Shell to use when invoking shell scripts.
15767SHELL=$lt_SHELL
15768
15769# Whether or not to build shared libraries.
15770build_libtool_libs=$enable_shared
15771
15772# Whether or not to build static libraries.
15773build_old_libs=$enable_static
15774
15775# Whether or not to add -lc for building shared libraries.
15776build_libtool_need_lc=$archive_cmds_need_lc_F77
15777
15778# Whether or not to disallow shared libs when runtime libs are static
15779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15780
15781# Whether or not to optimize for fast installation.
15782fast_install=$enable_fast_install
15783
15784# The host system.
15785host_alias=$host_alias
15786host=$host
15787
15788# An echo program that does not interpret backslashes.
15789echo=$lt_echo
15790
15791# The archiver.
15792AR=$lt_AR
15793AR_FLAGS=$lt_AR_FLAGS
15794
15795# A C compiler.
15796LTCC=$lt_LTCC
15797
15798# A language-specific compiler.
15799CC=$lt_compiler_F77
15800
15801# Is the compiler the GNU C compiler?
15802with_gcc=$GCC_F77
15803
15804# An ERE matcher.
15805EGREP=$lt_EGREP
15806
15807# The linker used to build libraries.
15808LD=$lt_LD_F77
15809
15810# Whether we need hard or soft links.
15811LN_S=$lt_LN_S
15812
15813# A BSD-compatible nm program.
15814NM=$lt_NM
15815
15816# A symbol stripping program
15817STRIP=$STRIP
15818
15819# Used to examine libraries when file_magic_cmd begins "file"
15820MAGIC_CMD=$MAGIC_CMD
15821
15822# Used on cygwin: DLL creation program.
15823DLLTOOL="$DLLTOOL"
15824
15825# Used on cygwin: object dumper.
15826OBJDUMP="$OBJDUMP"
15827
15828# Used on cygwin: assembler.
15829AS="$AS"
15830
15831# The name of the directory that contains temporary libtool files.
15832objdir=$objdir
15833
15834# How to create reloadable object files.
15835reload_flag=$lt_reload_flag
15836reload_cmds=$lt_reload_cmds
15837
15838# How to pass a linker flag through the compiler.
15839wl=$lt_lt_prog_compiler_wl_F77
15840
15841# Object file suffix (normally "o").
15842objext="$ac_objext"
15843
15844# Old archive suffix (normally "a").
15845libext="$libext"
15846
15847# Shared library suffix (normally ".so").
15848shrext='$shrext'
15849
15850# Executable file suffix (normally "").
15851exeext="$exeext"
15852
15853# Additional compiler flags for building library objects.
15854pic_flag=$lt_lt_prog_compiler_pic_F77
15855pic_mode=$pic_mode
15856
15857# What is the maximum length of a command?
15858max_cmd_len=$lt_cv_sys_max_cmd_len
15859
15860# Does compiler simultaneously support -c and -o options?
15861compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15862
15863# Must we lock files when doing compilation ?
15864need_locks=$lt_need_locks
15865
15866# Do we need the lib prefix for modules?
15867need_lib_prefix=$need_lib_prefix
15868
15869# Do we need a version for libraries?
15870need_version=$need_version
15871
15872# Whether dlopen is supported.
15873dlopen_support=$enable_dlopen
15874
15875# Whether dlopen of programs is supported.
15876dlopen_self=$enable_dlopen_self
15877
15878# Whether dlopen of statically linked programs is supported.
15879dlopen_self_static=$enable_dlopen_self_static
15880
15881# Compiler flag to prevent dynamic linking.
15882link_static_flag=$lt_lt_prog_compiler_static_F77
15883
15884# Compiler flag to turn off builtin functions.
15885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15886
15887# Compiler flag to allow reflexive dlopens.
15888export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15889
15890# Compiler flag to generate shared objects directly from archives.
15891whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15892
15893# Compiler flag to generate thread-safe objects.
15894thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15895
15896# Library versioning type.
15897version_type=$version_type
15898
15899# Format of library name prefix.
15900libname_spec=$lt_libname_spec
15901
15902# List of archive names.  First name is the real one, the rest are links.
15903# The last name is the one that the linker finds with -lNAME.
15904library_names_spec=$lt_library_names_spec
15905
15906# The coded name of the library, if different from the real name.
15907soname_spec=$lt_soname_spec
15908
15909# Commands used to build and install an old-style archive.
15910RANLIB=$lt_RANLIB
15911old_archive_cmds=$lt_old_archive_cmds_F77
15912old_postinstall_cmds=$lt_old_postinstall_cmds
15913old_postuninstall_cmds=$lt_old_postuninstall_cmds
15914
15915# Create an old-style archive from a shared archive.
15916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15917
15918# Create a temporary old-style archive to link instead of a shared archive.
15919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15920
15921# Commands used to build and install a shared archive.
15922archive_cmds=$lt_archive_cmds_F77
15923archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15924postinstall_cmds=$lt_postinstall_cmds
15925postuninstall_cmds=$lt_postuninstall_cmds
15926
15927# Commands used to build a loadable module (assumed same as above if empty)
15928module_cmds=$lt_module_cmds_F77
15929module_expsym_cmds=$lt_module_expsym_cmds_F77
15930
15931# Commands to strip libraries.
15932old_striplib=$lt_old_striplib
15933striplib=$lt_striplib
15934
15935# Dependencies to place before the objects being linked to create a
15936# shared library.
15937predep_objects=$lt_predep_objects_F77
15938
15939# Dependencies to place after the objects being linked to create a
15940# shared library.
15941postdep_objects=$lt_postdep_objects_F77
15942
15943# Dependencies to place before the objects being linked to create a
15944# shared library.
15945predeps=$lt_predeps_F77
15946
15947# Dependencies to place after the objects being linked to create a
15948# shared library.
15949postdeps=$lt_postdeps_F77
15950
15951# The library search path used internally by the compiler when linking
15952# a shared library.
15953compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15954
15955# Method to check whether dependent libraries are shared objects.
15956deplibs_check_method=$lt_deplibs_check_method
15957
15958# Command to use when deplibs_check_method == file_magic.
15959file_magic_cmd=$lt_file_magic_cmd
15960
15961# Flag that allows shared libraries with undefined symbols to be built.
15962allow_undefined_flag=$lt_allow_undefined_flag_F77
15963
15964# Flag that forces no undefined symbols.
15965no_undefined_flag=$lt_no_undefined_flag_F77
15966
15967# Commands used to finish a libtool library installation in a directory.
15968finish_cmds=$lt_finish_cmds
15969
15970# Same as above, but a single script fragment to be evaled but not shown.
15971finish_eval=$lt_finish_eval
15972
15973# Take the output of nm and produce a listing of raw symbols and C names.
15974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15975
15976# Transform the output of nm in a proper C declaration
15977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15978
15979# Transform the output of nm in a C name address pair
15980global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15981
15982# This is the shared library runtime path variable.
15983runpath_var=$runpath_var
15984
15985# This is the shared library path variable.
15986shlibpath_var=$shlibpath_var
15987
15988# Is shlibpath searched before the hard-coded library search path?
15989shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15990
15991# How to hardcode a shared library path into an executable.
15992hardcode_action=$hardcode_action_F77
15993
15994# Whether we should hardcode library paths into libraries.
15995hardcode_into_libs=$hardcode_into_libs
15996
15997# Flag to hardcode \$libdir into a binary during linking.
15998# This must work even if \$libdir does not exist.
15999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16000
16001# If ld is used when linking, flag to hardcode \$libdir into
16002# a binary during linking. This must work even if \$libdir does
16003# not exist.
16004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16005
16006# Whether we need a single -rpath flag with a separated argument.
16007hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16008
16009# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16010# resulting binary.
16011hardcode_direct=$hardcode_direct_F77
16012
16013# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16014# resulting binary.
16015hardcode_minus_L=$hardcode_minus_L_F77
16016
16017# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16018# the resulting binary.
16019hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16020
16021# Set to yes if building a shared library automatically hardcodes DIR into the library
16022# and all subsequent libraries and executables linked against it.
16023hardcode_automatic=$hardcode_automatic_F77
16024
16025# Variables whose values should be saved in libtool wrapper scripts and
16026# restored at relink time.
16027variables_saved_for_relink="$variables_saved_for_relink"
16028
16029# Whether libtool must link a program against all its dependency libraries.
16030link_all_deplibs=$link_all_deplibs_F77
16031
16032# Compile-time system search path for libraries
16033sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16034
16035# Run-time system search path for libraries
16036sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16037
16038# Fix the shell variable \$srcfile for the compiler.
16039fix_srcfile_path="$fix_srcfile_path_F77"
16040
16041# Set to yes if exported symbols are required.
16042always_export_symbols=$always_export_symbols_F77
16043
16044# The commands to list exported symbols.
16045export_symbols_cmds=$lt_export_symbols_cmds_F77
16046
16047# The commands to extract the exported symbol list from a shared archive.
16048extract_expsyms_cmds=$lt_extract_expsyms_cmds
16049
16050# Symbols that should not be listed in the preloaded symbols.
16051exclude_expsyms=$lt_exclude_expsyms_F77
16052
16053# Symbols that must always be exported.
16054include_expsyms=$lt_include_expsyms_F77
16055
16056# ### END LIBTOOL TAG CONFIG: $tagname
16057
16058__EOF__
16059
16060
16061else
16062  # If there is no Makefile yet, we rely on a make rule to execute
16063  # `config.status --recheck' to rerun these tests and create the
16064  # libtool script then.
16065  test -f Makefile && make "$ltmain"
16066fi
16067
16068
16069ac_ext=c
16070ac_cpp='$CPP $CPPFLAGS'
16071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16073ac_compiler_gnu=$ac_cv_c_compiler_gnu
16074
16075CC="$lt_save_CC"
16076
16077	else
16078	  tagname=""
16079	fi
16080	;;
16081
16082      GCJ)
16083	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16084
16085
16086# Source file extension for Java test sources.
16087ac_ext=java
16088
16089# Object file extension for compiled Java test sources.
16090objext=o
16091objext_GCJ=$objext
16092
16093# Code to be used in simple compile tests
16094lt_simple_compile_test_code="class foo {}\n"
16095
16096# Code to be used in simple link tests
16097lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16098
16099# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16100
16101# If no C compiler was specified, use CC.
16102LTCC=${LTCC-"$CC"}
16103
16104# Allow CC to be a program name with arguments.
16105compiler=$CC
16106
16107
16108# Allow CC to be a program name with arguments.
16109lt_save_CC="$CC"
16110CC=${GCJ-"gcj"}
16111compiler=$CC
16112compiler_GCJ=$CC
16113
16114# GCJ did not exist at the time GCC didn't implicitly link libc in.
16115archive_cmds_need_lc_GCJ=no
16116
16117## CAVEAT EMPTOR:
16118## There is no encapsulation within the following macros, do not change
16119## the running order or otherwise move them around unless you know exactly
16120## what you are doing...
16121
16122lt_prog_compiler_no_builtin_flag_GCJ=
16123
16124if test "$GCC" = yes; then
16125  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16126
16127
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16129$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16130if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16131  $as_echo_n "(cached) " >&6
16132else
16133  lt_cv_prog_compiler_rtti_exceptions=no
16134  ac_outfile=conftest.$ac_objext
16135   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16136   lt_compiler_flag="-fno-rtti -fno-exceptions"
16137   # Insert the option either (1) after the last *FLAGS variable, or
16138   # (2) before a word containing "conftest.", or (3) at the end.
16139   # Note that $ac_compile itself does not contain backslashes and begins
16140   # with a dollar sign (not a hyphen), so the echo should work correctly.
16141   # The option is referenced via a variable to avoid confusing sed.
16142   lt_compile=`echo "$ac_compile" | $SED \
16143   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16145   -e 's:$: $lt_compiler_flag:'`
16146   (eval echo "\"\$as_me:16146: $lt_compile\"" >&5)
16147   (eval "$lt_compile" 2>conftest.err)
16148   ac_status=$?
16149   cat conftest.err >&5
16150   echo "$as_me:16150: \$? = $ac_status" >&5
16151   if (exit $ac_status) && test -s "$ac_outfile"; then
16152     # The compiler can only warn and ignore the option if not recognized
16153     # So say no if there are warnings
16154     if test ! -s conftest.err; then
16155       lt_cv_prog_compiler_rtti_exceptions=yes
16156     fi
16157   fi
16158   $rm conftest*
16159
16160fi
16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16162$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16163
16164if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16165    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16166else
16167    :
16168fi
16169
16170fi
16171
16172lt_prog_compiler_wl_GCJ=
16173lt_prog_compiler_pic_GCJ=
16174lt_prog_compiler_static_GCJ=
16175
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16177$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16178
16179  if test "$GCC" = yes; then
16180    lt_prog_compiler_wl_GCJ='-Wl,'
16181    lt_prog_compiler_static_GCJ='-static'
16182
16183    case $host_os in
16184      aix*)
16185      # All AIX code is PIC.
16186      if test "$host_cpu" = ia64; then
16187	# AIX 5 now supports IA64 processor
16188	lt_prog_compiler_static_GCJ='-Bstatic'
16189      fi
16190      ;;
16191
16192    amigaos*)
16193      # FIXME: we need at least 68020 code to build shared libraries, but
16194      # adding the `-m68020' flag to GCC prevents building anything better,
16195      # like `-m68040'.
16196      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16197      ;;
16198
16199    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16200      # PIC is the default for these OSes.
16201      ;;
16202
16203    mingw* | pw32* | os2*)
16204      # This hack is so that the source file can tell whether it is being
16205      # built for inclusion in a dll (and should export symbols for example).
16206      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16207      ;;
16208
16209    darwin* | rhapsody*)
16210      # PIC is the default on this platform
16211      # Common symbols not allowed in MH_DYLIB files
16212      lt_prog_compiler_pic_GCJ='-fno-common'
16213      ;;
16214
16215    msdosdjgpp*)
16216      # Just because we use GCC doesn't mean we suddenly get shared libraries
16217      # on systems that don't support them.
16218      lt_prog_compiler_can_build_shared_GCJ=no
16219      enable_shared=no
16220      ;;
16221
16222    sysv4*MP*)
16223      if test -d /usr/nec; then
16224	lt_prog_compiler_pic_GCJ=-Kconform_pic
16225      fi
16226      ;;
16227
16228    hpux*)
16229      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16230      # not for PA HP-UX.
16231      case "$host_cpu" in
16232      hppa*64*|ia64*)
16233	# +Z the default
16234	;;
16235      *)
16236	lt_prog_compiler_pic_GCJ='-fPIC'
16237	;;
16238      esac
16239      ;;
16240
16241    *)
16242      lt_prog_compiler_pic_GCJ='-fPIC'
16243      ;;
16244    esac
16245  else
16246    # PORTME Check for flag to pass linker flags through the system compiler.
16247    case $host_os in
16248    aix*)
16249      lt_prog_compiler_wl_GCJ='-Wl,'
16250      if test "$host_cpu" = ia64; then
16251	# AIX 5 now supports IA64 processor
16252	lt_prog_compiler_static_GCJ='-Bstatic'
16253      else
16254	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16255      fi
16256      ;;
16257
16258    mingw* | pw32* | os2*)
16259      # This hack is so that the source file can tell whether it is being
16260      # built for inclusion in a dll (and should export symbols for example).
16261      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16262      ;;
16263
16264    hpux9* | hpux10* | hpux11*)
16265      lt_prog_compiler_wl_GCJ='-Wl,'
16266      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16267      # not for PA HP-UX.
16268      case "$host_cpu" in
16269      hppa*64*|ia64*)
16270	# +Z the default
16271	;;
16272      *)
16273	lt_prog_compiler_pic_GCJ='+Z'
16274	;;
16275      esac
16276      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16277      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16278      ;;
16279
16280    irix5* | irix6* | nonstopux*)
16281      lt_prog_compiler_wl_GCJ='-Wl,'
16282      # PIC (with -KPIC) is the default.
16283      lt_prog_compiler_static_GCJ='-non_shared'
16284      ;;
16285
16286    newsos6)
16287      lt_prog_compiler_pic_GCJ='-KPIC'
16288      lt_prog_compiler_static_GCJ='-Bstatic'
16289      ;;
16290
16291    linux*)
16292      case $CC in
16293      icc* | ecc*)
16294	lt_prog_compiler_wl_GCJ='-Wl,'
16295	lt_prog_compiler_pic_GCJ='-KPIC'
16296	lt_prog_compiler_static_GCJ='-static'
16297        ;;
16298      ccc*)
16299        lt_prog_compiler_wl_GCJ='-Wl,'
16300        # All Alpha code is PIC.
16301        lt_prog_compiler_static_GCJ='-non_shared'
16302        ;;
16303      esac
16304      ;;
16305
16306    osf3* | osf4* | osf5*)
16307      lt_prog_compiler_wl_GCJ='-Wl,'
16308      # All OSF/1 code is PIC.
16309      lt_prog_compiler_static_GCJ='-non_shared'
16310      ;;
16311
16312    sco3.2v5*)
16313      lt_prog_compiler_pic_GCJ='-Kpic'
16314      lt_prog_compiler_static_GCJ='-dn'
16315      ;;
16316
16317    solaris*)
16318      lt_prog_compiler_wl_GCJ='-Wl,'
16319      lt_prog_compiler_pic_GCJ='-KPIC'
16320      lt_prog_compiler_static_GCJ='-Bstatic'
16321      ;;
16322
16323    sunos4*)
16324      lt_prog_compiler_wl_GCJ='-Qoption ld '
16325      lt_prog_compiler_pic_GCJ='-PIC'
16326      lt_prog_compiler_static_GCJ='-Bstatic'
16327      ;;
16328
16329    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16330      lt_prog_compiler_wl_GCJ='-Wl,'
16331      lt_prog_compiler_pic_GCJ='-KPIC'
16332      lt_prog_compiler_static_GCJ='-Bstatic'
16333      ;;
16334
16335    sysv4*MP*)
16336      if test -d /usr/nec ;then
16337	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16338	lt_prog_compiler_static_GCJ='-Bstatic'
16339      fi
16340      ;;
16341
16342    uts4*)
16343      lt_prog_compiler_pic_GCJ='-pic'
16344      lt_prog_compiler_static_GCJ='-Bstatic'
16345      ;;
16346
16347    *)
16348      lt_prog_compiler_can_build_shared_GCJ=no
16349      ;;
16350    esac
16351  fi
16352
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16354$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16355
16356#
16357# Check to make sure the PIC flag actually works.
16358#
16359if test -n "$lt_prog_compiler_pic_GCJ"; then
16360
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16362$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16363if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16364  $as_echo_n "(cached) " >&6
16365else
16366  lt_prog_compiler_pic_works_GCJ=no
16367  ac_outfile=conftest.$ac_objext
16368   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16369   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16370   # Insert the option either (1) after the last *FLAGS variable, or
16371   # (2) before a word containing "conftest.", or (3) at the end.
16372   # Note that $ac_compile itself does not contain backslashes and begins
16373   # with a dollar sign (not a hyphen), so the echo should work correctly.
16374   # The option is referenced via a variable to avoid confusing sed.
16375   lt_compile=`echo "$ac_compile" | $SED \
16376   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16377   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16378   -e 's:$: $lt_compiler_flag:'`
16379   (eval echo "\"\$as_me:16379: $lt_compile\"" >&5)
16380   (eval "$lt_compile" 2>conftest.err)
16381   ac_status=$?
16382   cat conftest.err >&5
16383   echo "$as_me:16383: \$? = $ac_status" >&5
16384   if (exit $ac_status) && test -s "$ac_outfile"; then
16385     # The compiler can only warn and ignore the option if not recognized
16386     # So say no if there are warnings
16387     if test ! -s conftest.err; then
16388       lt_prog_compiler_pic_works_GCJ=yes
16389     fi
16390   fi
16391   $rm conftest*
16392
16393fi
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16395$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16396
16397if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16398    case $lt_prog_compiler_pic_GCJ in
16399     "" | " "*) ;;
16400     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16401     esac
16402else
16403    lt_prog_compiler_pic_GCJ=
16404     lt_prog_compiler_can_build_shared_GCJ=no
16405fi
16406
16407fi
16408case "$host_os" in
16409  # For platforms which do not support PIC, -DPIC is meaningless:
16410  *djgpp*)
16411    lt_prog_compiler_pic_GCJ=
16412    ;;
16413  *)
16414    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16415    ;;
16416esac
16417
16418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16419$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16420if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16421  $as_echo_n "(cached) " >&6
16422else
16423  lt_cv_prog_compiler_c_o_GCJ=no
16424   $rm -r conftest 2>/dev/null
16425   mkdir conftest
16426   cd conftest
16427   mkdir out
16428   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16429
16430   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16431   # that will create temporary files in the current directory regardless of
16432   # the output directory.  Thus, making CWD read-only will cause this test
16433   # to fail, enabling locking or at least warning the user not to do parallel
16434   # builds.
16435   chmod -w .
16436
16437   lt_compiler_flag="-o out/conftest2.$ac_objext"
16438   # Insert the option either (1) after the last *FLAGS variable, or
16439   # (2) before a word containing "conftest.", or (3) at the end.
16440   # Note that $ac_compile itself does not contain backslashes and begins
16441   # with a dollar sign (not a hyphen), so the echo should work correctly.
16442   lt_compile=`echo "$ac_compile" | $SED \
16443   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16445   -e 's:$: $lt_compiler_flag:'`
16446   (eval echo "\"\$as_me:16446: $lt_compile\"" >&5)
16447   (eval "$lt_compile" 2>out/conftest.err)
16448   ac_status=$?
16449   cat out/conftest.err >&5
16450   echo "$as_me:16450: \$? = $ac_status" >&5
16451   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16452   then
16453     # The compiler can only warn and ignore the option if not recognized
16454     # So say no if there are warnings
16455     if test ! -s out/conftest.err; then
16456       lt_cv_prog_compiler_c_o_GCJ=yes
16457     fi
16458   fi
16459   chmod u+w .
16460   $rm conftest*
16461   # SGI C++ compiler will create directory out/ii_files/ for
16462   # template instantiation
16463   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16464   $rm out/* && rmdir out
16465   cd ..
16466   rmdir conftest
16467   $rm conftest*
16468
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16471$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16472
16473
16474hard_links="nottested"
16475if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16476  # do not overwrite the value of need_locks provided by the user
16477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16478$as_echo_n "checking if we can lock with hard links... " >&6; }
16479  hard_links=yes
16480  $rm conftest*
16481  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16482  touch conftest.a
16483  ln conftest.a conftest.b 2>&5 || hard_links=no
16484  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16486$as_echo "$hard_links" >&6; }
16487  if test "$hard_links" = no; then
16488    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16489$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16490    need_locks=warn
16491  fi
16492else
16493  need_locks=no
16494fi
16495
16496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16497$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16498
16499  runpath_var=
16500  allow_undefined_flag_GCJ=
16501  enable_shared_with_static_runtimes_GCJ=no
16502  archive_cmds_GCJ=
16503  archive_expsym_cmds_GCJ=
16504  old_archive_From_new_cmds_GCJ=
16505  old_archive_from_expsyms_cmds_GCJ=
16506  export_dynamic_flag_spec_GCJ=
16507  whole_archive_flag_spec_GCJ=
16508  thread_safe_flag_spec_GCJ=
16509  hardcode_libdir_flag_spec_GCJ=
16510  hardcode_libdir_flag_spec_ld_GCJ=
16511  hardcode_libdir_separator_GCJ=
16512  hardcode_direct_GCJ=no
16513  hardcode_minus_L_GCJ=no
16514  hardcode_shlibpath_var_GCJ=unsupported
16515  link_all_deplibs_GCJ=unknown
16516  hardcode_automatic_GCJ=no
16517  module_cmds_GCJ=
16518  module_expsym_cmds_GCJ=
16519  always_export_symbols_GCJ=no
16520  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16521  # include_expsyms should be a list of space-separated symbols to be *always*
16522  # included in the symbol list
16523  include_expsyms_GCJ=
16524  # exclude_expsyms can be an extended regexp of symbols to exclude
16525  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16526  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16527  # as well as any symbol that contains `d'.
16528  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16529  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16530  # platforms (ab)use it in PIC code, but their linkers get confused if
16531  # the symbol is explicitly referenced.  Since portable code cannot
16532  # rely on this symbol name, it's probably fine to never include it in
16533  # preloaded symbol tables.
16534  extract_expsyms_cmds=
16535
16536  case $host_os in
16537  cygwin* | mingw* | pw32*)
16538    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16539    # When not using gcc, we currently assume that we are using
16540    # Microsoft Visual C++.
16541    if test "$GCC" != yes; then
16542      with_gnu_ld=no
16543    fi
16544    ;;
16545  openbsd*)
16546    with_gnu_ld=no
16547    ;;
16548  esac
16549
16550  ld_shlibs_GCJ=yes
16551  if test "$with_gnu_ld" = yes; then
16552    # If archive_cmds runs LD, not CC, wlarc should be empty
16553    wlarc='${wl}'
16554
16555    # See if GNU ld supports shared libraries.
16556    case $host_os in
16557    aix3* | aix4* | aix5*)
16558      # On AIX/PPC, the GNU linker is very broken
16559      if test "$host_cpu" != ia64; then
16560	ld_shlibs_GCJ=no
16561	cat <<EOF 1>&2
16562
16563*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16564*** to be unable to reliably create shared libraries on AIX.
16565*** Therefore, libtool is disabling shared libraries support.  If you
16566*** really care for shared libraries, you may want to modify your PATH
16567*** so that a non-GNU linker is found, and then restart.
16568
16569EOF
16570      fi
16571      ;;
16572
16573    amigaos*)
16574      archive_cmds_GCJ='$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)'
16575      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16576      hardcode_minus_L_GCJ=yes
16577
16578      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16579      # that the semantics of dynamic libraries on AmigaOS, at least up
16580      # to version 4, is to share data among multiple programs linked
16581      # with the same dynamic library.  Since this doesn't match the
16582      # behavior of shared libraries on other platforms, we can't use
16583      # them.
16584      ld_shlibs_GCJ=no
16585      ;;
16586
16587    beos*)
16588      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16589	allow_undefined_flag_GCJ=unsupported
16590	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16591	# support --undefined.  This deserves some investigation.  FIXME
16592	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16593      else
16594	ld_shlibs_GCJ=no
16595      fi
16596      ;;
16597
16598    cygwin* | mingw* | pw32*)
16599      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16600      # as there is no search path for DLLs.
16601      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16602      allow_undefined_flag_GCJ=unsupported
16603      always_export_symbols_GCJ=no
16604      enable_shared_with_static_runtimes_GCJ=yes
16605      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16606
16607      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16608        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16609	# If the export-symbols file already is a .def file (1st line
16610	# is EXPORTS), use it as is; otherwise, prepend...
16611	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16612	  cp $export_symbols $output_objdir/$soname.def;
16613	else
16614	  echo EXPORTS > $output_objdir/$soname.def;
16615	  cat $export_symbols >> $output_objdir/$soname.def;
16616	fi~
16617	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16618      else
16619	ld_shlibs=no
16620      fi
16621      ;;
16622
16623    netbsd*)
16624      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16625	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16626	wlarc=
16627      else
16628	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16630      fi
16631      ;;
16632
16633    solaris* | sysv5*)
16634      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16635	ld_shlibs_GCJ=no
16636	cat <<EOF 1>&2
16637
16638*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16639*** create shared libraries on Solaris systems.  Therefore, libtool
16640*** is disabling shared libraries support.  We urge you to upgrade GNU
16641*** binutils to release 2.9.1 or newer.  Another option is to modify
16642*** your PATH or compiler configuration so that the native linker is
16643*** used, and then restart.
16644
16645EOF
16646      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16647	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16648	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16649      else
16650	ld_shlibs_GCJ=no
16651      fi
16652      ;;
16653
16654    sunos4*)
16655      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16656      wlarc=
16657      hardcode_direct_GCJ=yes
16658      hardcode_shlibpath_var_GCJ=no
16659      ;;
16660
16661    *)
16662      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16663	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16664	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16665      else
16666	ld_shlibs_GCJ=no
16667      fi
16668      ;;
16669    esac
16670
16671    if test "$ld_shlibs_GCJ" = yes; then
16672      runpath_var=LD_RUN_PATH
16673      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16674      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16675      # ancient GNU ld didn't support --whole-archive et. al.
16676      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16677 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16678      else
16679  	whole_archive_flag_spec_GCJ=
16680      fi
16681    fi
16682  else
16683    # PORTME fill in a description of your system's linker (not GNU ld)
16684    case $host_os in
16685    aix3*)
16686      allow_undefined_flag_GCJ=unsupported
16687      always_export_symbols_GCJ=yes
16688      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16689      # Note: this linker hardcodes the directories in LIBPATH if there
16690      # are no directories specified by -L.
16691      hardcode_minus_L_GCJ=yes
16692      if test "$GCC" = yes && test -z "$link_static_flag"; then
16693	# Neither direct hardcoding nor static linking is supported with a
16694	# broken collect2.
16695	hardcode_direct_GCJ=unsupported
16696      fi
16697      ;;
16698
16699    aix4* | aix5*)
16700      if test "$host_cpu" = ia64; then
16701	# On IA64, the linker does run time linking by default, so we don't
16702	# have to do anything special.
16703	aix_use_runtimelinking=no
16704	exp_sym_flag='-Bexport'
16705	no_entry_flag=""
16706      else
16707	# If we're using GNU nm, then we don't want the "-C" option.
16708	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16709	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16710	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16711	else
16712	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16713	fi
16714	aix_use_runtimelinking=no
16715
16716	# Test if we are trying to use run time linking or normal
16717	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16718	# need to do runtime linking.
16719	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16720	  for ld_flag in $LDFLAGS; do
16721  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16722  	    aix_use_runtimelinking=yes
16723  	    break
16724  	  fi
16725	  done
16726	esac
16727
16728	exp_sym_flag='-bexport'
16729	no_entry_flag='-bnoentry'
16730      fi
16731
16732      # When large executables or shared objects are built, AIX ld can
16733      # have problems creating the table of contents.  If linking a library
16734      # or program results in "error TOC overflow" add -mminimal-toc to
16735      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16736      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16737
16738      archive_cmds_GCJ=''
16739      hardcode_direct_GCJ=yes
16740      hardcode_libdir_separator_GCJ=':'
16741      link_all_deplibs_GCJ=yes
16742
16743      if test "$GCC" = yes; then
16744	case $host_os in aix4.012|aix4.012.*)
16745	# We only want to do this on AIX 4.2 and lower, the check
16746	# below for broken collect2 doesn't work under 4.3+
16747	  collect2name=`${CC} -print-prog-name=collect2`
16748	  if test -f "$collect2name" && \
16749  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16750	  then
16751  	  # We have reworked collect2
16752  	  hardcode_direct_GCJ=yes
16753	  else
16754  	  # We have old collect2
16755  	  hardcode_direct_GCJ=unsupported
16756  	  # It fails to find uninstalled libraries when the uninstalled
16757  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16758  	  # to unsupported forces relinking
16759  	  hardcode_minus_L_GCJ=yes
16760  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16761  	  hardcode_libdir_separator_GCJ=
16762	  fi
16763	esac
16764	shared_flag='-shared'
16765      else
16766	# not using gcc
16767	if test "$host_cpu" = ia64; then
16768  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16769  	# chokes on -Wl,-G. The following line is correct:
16770	  shared_flag='-G'
16771	else
16772  	if test "$aix_use_runtimelinking" = yes; then
16773	    shared_flag='${wl}-G'
16774	  else
16775	    shared_flag='${wl}-bM:SRE'
16776  	fi
16777	fi
16778      fi
16779
16780      # It seems that -bexpall does not export symbols beginning with
16781      # underscore (_), so it is better to generate a list of symbols to export.
16782      always_export_symbols_GCJ=yes
16783      if test "$aix_use_runtimelinking" = yes; then
16784	# Warning - without using the other runtime loading flags (-brtl),
16785	# -berok will link without error, but may produce a broken library.
16786	allow_undefined_flag_GCJ='-berok'
16787       # Determine the default libpath from the value encoded in an empty executable.
16788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789/* end confdefs.h.  */
16790
16791int
16792main ()
16793{
16794
16795  ;
16796  return 0;
16797}
16798_ACEOF
16799if ac_fn_c_try_link "$LINENO"; then :
16800
16801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16802}'`
16803# Check for a 64-bit object if we didn't find anything.
16804if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16805}'`; fi
16806fi
16807rm -f core conftest.err conftest.$ac_objext \
16808    conftest$ac_exeext conftest.$ac_ext
16809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16810
16811       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16812	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16813       else
16814	if test "$host_cpu" = ia64; then
16815	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16816	  allow_undefined_flag_GCJ="-z nodefs"
16817	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16818	else
16819	 # Determine the default libpath from the value encoded in an empty executable.
16820	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h.  */
16822
16823int
16824main ()
16825{
16826
16827  ;
16828  return 0;
16829}
16830_ACEOF
16831if ac_fn_c_try_link "$LINENO"; then :
16832
16833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16834}'`
16835# Check for a 64-bit object if we didn't find anything.
16836if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16837}'`; fi
16838fi
16839rm -f core conftest.err conftest.$ac_objext \
16840    conftest$ac_exeext conftest.$ac_ext
16841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16842
16843	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16844	  # Warning - without using the other run time loading flags,
16845	  # -berok will link without error, but may produce a broken library.
16846	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16847	  allow_undefined_flag_GCJ=' ${wl}-berok'
16848	  # -bexpall does not export symbols beginning with underscore (_)
16849	  always_export_symbols_GCJ=yes
16850	  # Exported symbols can be pulled into shared objects from archives
16851	  whole_archive_flag_spec_GCJ=' '
16852	  archive_cmds_need_lc_GCJ=yes
16853	  # This is similar to how AIX traditionally builds it's shared libraries.
16854	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16855	fi
16856      fi
16857      ;;
16858
16859    amigaos*)
16860      archive_cmds_GCJ='$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)'
16861      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16862      hardcode_minus_L_GCJ=yes
16863      # see comment about different semantics on the GNU ld section
16864      ld_shlibs_GCJ=no
16865      ;;
16866
16867    bsdi4*)
16868      export_dynamic_flag_spec_GCJ=-rdynamic
16869      ;;
16870
16871    cygwin* | mingw* | pw32*)
16872      # When not using gcc, we currently assume that we are using
16873      # Microsoft Visual C++.
16874      # hardcode_libdir_flag_spec is actually meaningless, as there is
16875      # no search path for DLLs.
16876      hardcode_libdir_flag_spec_GCJ=' '
16877      allow_undefined_flag_GCJ=unsupported
16878      # Tell ltmain to make .lib files, not .a files.
16879      libext=lib
16880      # Tell ltmain to make .dll files, not .so files.
16881      shrext=".dll"
16882      # FIXME: Setting linknames here is a bad hack.
16883      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16884      # The linker will automatically build a .lib file if we build a DLL.
16885      old_archive_From_new_cmds_GCJ='true'
16886      # FIXME: Should let the user specify the lib program.
16887      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16888      fix_srcfile_path='`cygpath -w "$srcfile"`'
16889      enable_shared_with_static_runtimes_GCJ=yes
16890      ;;
16891
16892    darwin* | rhapsody*)
16893    if test "$GXX" = yes ; then
16894      archive_cmds_need_lc_GCJ=no
16895      case "$host_os" in
16896      rhapsody* | darwin1.[012])
16897	allow_undefined_flag_GCJ='-undefined suppress'
16898	;;
16899      *) # Darwin 1.3 on
16900      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16901      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16902      else
16903        case ${MACOSX_DEPLOYMENT_TARGET} in
16904          10.[012])
16905            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16906            ;;
16907          10.*)
16908            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16909            ;;
16910        esac
16911      fi
16912	;;
16913      esac
16914    	lt_int_apple_cc_single_mod=no
16915    	output_verbose_link_cmd='echo'
16916    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16917    	  lt_int_apple_cc_single_mod=yes
16918    	fi
16919    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16920    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16921    	else
16922        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16923      fi
16924      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16925      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16926        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16927          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16928        else
16929          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16930        fi
16931          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16932      hardcode_direct_GCJ=no
16933      hardcode_automatic_GCJ=yes
16934      hardcode_shlibpath_var_GCJ=unsupported
16935      whole_archive_flag_spec_GCJ='-all_load $convenience'
16936      link_all_deplibs_GCJ=yes
16937    else
16938      ld_shlibs_GCJ=no
16939    fi
16940      ;;
16941
16942    dgux*)
16943      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16945      hardcode_shlibpath_var_GCJ=no
16946      ;;
16947
16948    freebsd1*)
16949      ld_shlibs_GCJ=no
16950      ;;
16951
16952    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16953    # support.  Future versions do this automatically, but an explicit c++rt0.o
16954    # does not break anything, and helps significantly (at the cost of a little
16955    # extra space).
16956    freebsd2.2*)
16957      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16958      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16959      hardcode_direct_GCJ=yes
16960      hardcode_shlibpath_var_GCJ=no
16961      ;;
16962
16963    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16964    freebsd2*)
16965      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16966      hardcode_direct_GCJ=yes
16967      hardcode_minus_L_GCJ=yes
16968      hardcode_shlibpath_var_GCJ=no
16969      ;;
16970
16971    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16972    freebsd* | kfreebsd*-gnu)
16973      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16974      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16975      hardcode_direct_GCJ=yes
16976      hardcode_shlibpath_var_GCJ=no
16977      ;;
16978
16979    hpux9*)
16980      if test "$GCC" = yes; then
16981	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16982      else
16983	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16984      fi
16985      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16986      hardcode_libdir_separator_GCJ=:
16987      hardcode_direct_GCJ=yes
16988
16989      # hardcode_minus_L: Not really in the search PATH,
16990      # but as the default location of the library.
16991      hardcode_minus_L_GCJ=yes
16992      export_dynamic_flag_spec_GCJ='${wl}-E'
16993      ;;
16994
16995    hpux10* | hpux11*)
16996      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16997	case "$host_cpu" in
16998	hppa*64*|ia64*)
16999	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17000	  ;;
17001	*)
17002	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17003	  ;;
17004	esac
17005      else
17006	case "$host_cpu" in
17007	hppa*64*|ia64*)
17008	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17009	  ;;
17010	*)
17011	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17012	  ;;
17013	esac
17014      fi
17015      if test "$with_gnu_ld" = no; then
17016	case "$host_cpu" in
17017	hppa*64*)
17018	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17019	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17020	  hardcode_libdir_separator_GCJ=:
17021	  hardcode_direct_GCJ=no
17022	  hardcode_shlibpath_var_GCJ=no
17023	  ;;
17024	ia64*)
17025	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17026	  hardcode_direct_GCJ=no
17027	  hardcode_shlibpath_var_GCJ=no
17028
17029	  # hardcode_minus_L: Not really in the search PATH,
17030	  # but as the default location of the library.
17031	  hardcode_minus_L_GCJ=yes
17032	  ;;
17033	*)
17034	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17035	  hardcode_libdir_separator_GCJ=:
17036	  hardcode_direct_GCJ=yes
17037	  export_dynamic_flag_spec_GCJ='${wl}-E'
17038
17039	  # hardcode_minus_L: Not really in the search PATH,
17040	  # but as the default location of the library.
17041	  hardcode_minus_L_GCJ=yes
17042	  ;;
17043	esac
17044      fi
17045      ;;
17046
17047    irix5* | irix6* | nonstopux*)
17048      if test "$GCC" = yes; then
17049	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17050      else
17051	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17052	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17053      fi
17054      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17055      hardcode_libdir_separator_GCJ=:
17056      link_all_deplibs_GCJ=yes
17057      ;;
17058
17059    netbsd*)
17060      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17061	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17062      else
17063	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17064      fi
17065      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17066      hardcode_direct_GCJ=yes
17067      hardcode_shlibpath_var_GCJ=no
17068      ;;
17069
17070    newsos6)
17071      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072      hardcode_direct_GCJ=yes
17073      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17074      hardcode_libdir_separator_GCJ=:
17075      hardcode_shlibpath_var_GCJ=no
17076      ;;
17077
17078    openbsd*)
17079      hardcode_direct_GCJ=yes
17080      hardcode_shlibpath_var_GCJ=no
17081      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17082	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17083	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17084	export_dynamic_flag_spec_GCJ='${wl}-E'
17085      else
17086       case $host_os in
17087	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17088	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17089	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090	   ;;
17091	 *)
17092	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17093	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17094	   ;;
17095       esac
17096      fi
17097      ;;
17098
17099    os2*)
17100      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17101      hardcode_minus_L_GCJ=yes
17102      allow_undefined_flag_GCJ=unsupported
17103      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17104      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17105      ;;
17106
17107    osf3*)
17108      if test "$GCC" = yes; then
17109	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17110	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17111      else
17112	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17113	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17114      fi
17115      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17116      hardcode_libdir_separator_GCJ=:
17117      ;;
17118
17119    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17120      if test "$GCC" = yes; then
17121	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17122	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17123	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17124      else
17125	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17126	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17127	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17128	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17129
17130	# Both c and cxx compiler support -rpath directly
17131	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17132      fi
17133      hardcode_libdir_separator_GCJ=:
17134      ;;
17135
17136    sco3.2v5*)
17137      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138      hardcode_shlibpath_var_GCJ=no
17139      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17140      runpath_var=LD_RUN_PATH
17141      hardcode_runpath_var=yes
17142      ;;
17143
17144    solaris*)
17145      no_undefined_flag_GCJ=' -z text'
17146      if test "$GCC" = yes; then
17147	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17148	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17149	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17150      else
17151	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17152	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17153  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17154      fi
17155      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17156      hardcode_shlibpath_var_GCJ=no
17157      case $host_os in
17158      solaris2.[0-5] | solaris2.[0-5].*) ;;
17159      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17160	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17161      esac
17162      link_all_deplibs_GCJ=yes
17163      ;;
17164
17165    sunos4*)
17166      if test "x$host_vendor" = xsequent; then
17167	# Use $CC to link under sequent, because it throws in some extra .o
17168	# files that make .init and .fini sections work.
17169	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17170      else
17171	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17172      fi
17173      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174      hardcode_direct_GCJ=yes
17175      hardcode_minus_L_GCJ=yes
17176      hardcode_shlibpath_var_GCJ=no
17177      ;;
17178
17179    sysv4)
17180      case $host_vendor in
17181	sni)
17182	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17183	  hardcode_direct_GCJ=yes # is this really true???
17184	;;
17185	siemens)
17186	  ## LD is ld it makes a PLAMLIB
17187	  ## CC just makes a GrossModule.
17188	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17189	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17190	  hardcode_direct_GCJ=no
17191        ;;
17192	motorola)
17193	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17194	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17195	;;
17196      esac
17197      runpath_var='LD_RUN_PATH'
17198      hardcode_shlibpath_var_GCJ=no
17199      ;;
17200
17201    sysv4.3*)
17202      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17203      hardcode_shlibpath_var_GCJ=no
17204      export_dynamic_flag_spec_GCJ='-Bexport'
17205      ;;
17206
17207    sysv4*MP*)
17208      if test -d /usr/nec; then
17209	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17210	hardcode_shlibpath_var_GCJ=no
17211	runpath_var=LD_RUN_PATH
17212	hardcode_runpath_var=yes
17213	ld_shlibs_GCJ=yes
17214      fi
17215      ;;
17216
17217    sysv4.2uw2*)
17218      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17219      hardcode_direct_GCJ=yes
17220      hardcode_minus_L_GCJ=no
17221      hardcode_shlibpath_var_GCJ=no
17222      hardcode_runpath_var=yes
17223      runpath_var=LD_RUN_PATH
17224      ;;
17225
17226   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17227      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17228      if test "$GCC" = yes; then
17229	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230      else
17231	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17232      fi
17233      runpath_var='LD_RUN_PATH'
17234      hardcode_shlibpath_var_GCJ=no
17235      ;;
17236
17237    sysv5*)
17238      no_undefined_flag_GCJ=' -z text'
17239      # $CC -shared without GNU ld will not create a library from C++
17240      # object files and a static libstdc++, better avoid it by now
17241      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17242      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17243  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17244      hardcode_libdir_flag_spec_GCJ=
17245      hardcode_shlibpath_var_GCJ=no
17246      runpath_var='LD_RUN_PATH'
17247      ;;
17248
17249    uts4*)
17250      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17251      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17252      hardcode_shlibpath_var_GCJ=no
17253      ;;
17254
17255    *)
17256      ld_shlibs_GCJ=no
17257      ;;
17258    esac
17259  fi
17260
17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17262$as_echo "$ld_shlibs_GCJ" >&6; }
17263test "$ld_shlibs_GCJ" = no && can_build_shared=no
17264
17265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17266if test "$GCC" = yes; then
17267  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17268fi
17269
17270#
17271# Do we need to explicitly link libc?
17272#
17273case "x$archive_cmds_need_lc_GCJ" in
17274x|xyes)
17275  # Assume -lc should be added
17276  archive_cmds_need_lc_GCJ=yes
17277
17278  if test "$enable_shared" = yes && test "$GCC" = yes; then
17279    case $archive_cmds_GCJ in
17280    *'~'*)
17281      # FIXME: we may have to deal with multi-command sequences.
17282      ;;
17283    '$CC '*)
17284      # Test whether the compiler implicitly links with -lc since on some
17285      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17286      # to ld, don't add -lc before -lgcc.
17287      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17288$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17289      $rm conftest*
17290      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17291
17292      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17293  (eval $ac_compile) 2>&5
17294  ac_status=$?
17295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296  test $ac_status = 0; } 2>conftest.err; then
17297        soname=conftest
17298        lib=conftest
17299        libobjs=conftest.$ac_objext
17300        deplibs=
17301        wl=$lt_prog_compiler_wl_GCJ
17302        compiler_flags=-v
17303        linker_flags=-v
17304        verstring=
17305        output_objdir=.
17306        libname=conftest
17307        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17308        allow_undefined_flag_GCJ=
17309        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17310  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17311  ac_status=$?
17312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17313  test $ac_status = 0; }
17314        then
17315	  archive_cmds_need_lc_GCJ=no
17316        else
17317	  archive_cmds_need_lc_GCJ=yes
17318        fi
17319        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17320      else
17321        cat conftest.err 1>&5
17322      fi
17323      $rm conftest*
17324      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17325$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17326      ;;
17327    esac
17328  fi
17329  ;;
17330esac
17331
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17333$as_echo_n "checking dynamic linker characteristics... " >&6; }
17334library_names_spec=
17335libname_spec='lib$name'
17336soname_spec=
17337shrext=".so"
17338postinstall_cmds=
17339postuninstall_cmds=
17340finish_cmds=
17341finish_eval=
17342shlibpath_var=
17343shlibpath_overrides_runpath=unknown
17344version_type=none
17345dynamic_linker="$host_os ld.so"
17346sys_lib_dlsearch_path_spec="/lib /usr/lib"
17347if test "$GCC" = yes; then
17348  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17349  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17350    # if the path contains ";" then we assume it to be the separator
17351    # otherwise default to the standard path separator (i.e. ":") - it is
17352    # assumed that no part of a normal pathname contains ";" but that should
17353    # okay in the real world where ";" in dirpaths is itself problematic.
17354    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17355  else
17356    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17357  fi
17358else
17359  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17360fi
17361need_lib_prefix=unknown
17362hardcode_into_libs=no
17363
17364# when you set need_version to no, make sure it does not cause -set_version
17365# flags to be left without arguments
17366need_version=unknown
17367
17368case $host_os in
17369aix3*)
17370  version_type=linux
17371  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17372  shlibpath_var=LIBPATH
17373
17374  # AIX 3 has no versioning support, so we append a major version to the name.
17375  soname_spec='${libname}${release}${shared_ext}$major'
17376  ;;
17377
17378aix4* | aix5*)
17379  version_type=linux
17380  need_lib_prefix=no
17381  need_version=no
17382  hardcode_into_libs=yes
17383  if test "$host_cpu" = ia64; then
17384    # AIX 5 supports IA64
17385    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17386    shlibpath_var=LD_LIBRARY_PATH
17387  else
17388    # With GCC up to 2.95.x, collect2 would create an import file
17389    # for dependence libraries.  The import file would start with
17390    # the line `#! .'.  This would cause the generated library to
17391    # depend on `.', always an invalid library.  This was fixed in
17392    # development snapshots of GCC prior to 3.0.
17393    case $host_os in
17394      aix4 | aix4.[01] | aix4.[01].*)
17395      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17396	   echo ' yes '
17397	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17398	:
17399      else
17400	can_build_shared=no
17401      fi
17402      ;;
17403    esac
17404    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17405    # soname into executable. Probably we can add versioning support to
17406    # collect2, so additional links can be useful in future.
17407    if test "$aix_use_runtimelinking" = yes; then
17408      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17409      # instead of lib<name>.a to let people know that these are not
17410      # typical AIX shared libraries.
17411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412    else
17413      # We preserve .a as extension for shared libraries through AIX4.2
17414      # and later when we are not doing run time linking.
17415      library_names_spec='${libname}${release}.a $libname.a'
17416      soname_spec='${libname}${release}${shared_ext}$major'
17417    fi
17418    shlibpath_var=LIBPATH
17419  fi
17420  ;;
17421
17422amigaos*)
17423  library_names_spec='$libname.ixlibrary $libname.a'
17424  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17425  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17426  ;;
17427
17428beos*)
17429  library_names_spec='${libname}${shared_ext}'
17430  dynamic_linker="$host_os ld.so"
17431  shlibpath_var=LIBRARY_PATH
17432  ;;
17433
17434bsdi4*)
17435  version_type=linux
17436  need_version=no
17437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438  soname_spec='${libname}${release}${shared_ext}$major'
17439  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17440  shlibpath_var=LD_LIBRARY_PATH
17441  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17442  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17443  # the default ld.so.conf also contains /usr/contrib/lib and
17444  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17445  # libtool to hard-code these into programs
17446  ;;
17447
17448cygwin* | mingw* | pw32*)
17449  version_type=windows
17450  shrext=".dll"
17451  need_version=no
17452  need_lib_prefix=no
17453
17454  case $GCC,$host_os in
17455  yes,cygwin* | yes,mingw* | yes,pw32*)
17456    library_names_spec='$libname.dll.a'
17457    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17458    postinstall_cmds='base_file=`basename \${file}`~
17459      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17460      dldir=$destdir/`dirname \$dlpath`~
17461      test -d \$dldir || mkdir -p \$dldir~
17462      $install_prog $dir/$dlname \$dldir/$dlname'
17463    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17464      dlpath=$dir/\$dldll~
17465       $rm \$dlpath'
17466    shlibpath_overrides_runpath=yes
17467
17468    case $host_os in
17469    cygwin*)
17470      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17471      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17472      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17473      ;;
17474    mingw*)
17475      # MinGW DLLs use traditional 'lib' prefix
17476      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17477      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17478      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17479        # It is most probably a Windows format PATH printed by
17480        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17481        # path with ; separators, and with drive letters. We can handle the
17482        # drive letters (cygwin fileutils understands them), so leave them,
17483        # especially as we might pass files found there to a mingw objdump,
17484        # which wouldn't understand a cygwinified path. Ahh.
17485        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17486      else
17487        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17488      fi
17489      ;;
17490    pw32*)
17491      # pw32 DLLs use 'pw' prefix rather than 'lib'
17492      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17493      ;;
17494    esac
17495    ;;
17496
17497  *)
17498    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17499    ;;
17500  esac
17501  dynamic_linker='Win32 ld.exe'
17502  # FIXME: first we should search . and the directory the executable is in
17503  shlibpath_var=PATH
17504  ;;
17505
17506darwin* | rhapsody*)
17507  dynamic_linker="$host_os dyld"
17508  version_type=darwin
17509  need_lib_prefix=no
17510  need_version=no
17511  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17512  soname_spec='${libname}${release}${major}$shared_ext'
17513  shlibpath_overrides_runpath=yes
17514  shlibpath_var=DYLD_LIBRARY_PATH
17515  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17516  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17517  if test "$GCC" = yes; then
17518    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17519  else
17520    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17521  fi
17522  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17523  ;;
17524
17525dgux*)
17526  version_type=linux
17527  need_lib_prefix=no
17528  need_version=no
17529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17530  soname_spec='${libname}${release}${shared_ext}$major'
17531  shlibpath_var=LD_LIBRARY_PATH
17532  ;;
17533
17534freebsd1*)
17535  dynamic_linker=no
17536  ;;
17537
17538kfreebsd*-gnu)
17539  version_type=linux
17540  need_lib_prefix=no
17541  need_version=no
17542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17543  soname_spec='${libname}${release}${shared_ext}$major'
17544  shlibpath_var=LD_LIBRARY_PATH
17545  shlibpath_overrides_runpath=no
17546  hardcode_into_libs=yes
17547  dynamic_linker='GNU ld.so'
17548  ;;
17549
17550freebsd*)
17551  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17552  version_type=freebsd-$objformat
17553  case $version_type in
17554    freebsd-elf*)
17555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17556      need_version=no
17557      need_lib_prefix=no
17558      ;;
17559    freebsd-*)
17560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17561      need_version=yes
17562      ;;
17563  esac
17564  shlibpath_var=LD_LIBRARY_PATH
17565  case $host_os in
17566  freebsd2*)
17567    shlibpath_overrides_runpath=yes
17568    ;;
17569  freebsd3.01* | freebsdelf3.01*)
17570    shlibpath_overrides_runpath=yes
17571    hardcode_into_libs=yes
17572    ;;
17573  *) # from 3.2 on
17574    shlibpath_overrides_runpath=no
17575    hardcode_into_libs=yes
17576    ;;
17577  esac
17578  ;;
17579
17580gnu*)
17581  version_type=linux
17582  need_lib_prefix=no
17583  need_version=no
17584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17585  soname_spec='${libname}${release}${shared_ext}$major'
17586  shlibpath_var=LD_LIBRARY_PATH
17587  hardcode_into_libs=yes
17588  ;;
17589
17590hpux9* | hpux10* | hpux11*)
17591  # Give a soname corresponding to the major version so that dld.sl refuses to
17592  # link against other versions.
17593  version_type=sunos
17594  need_lib_prefix=no
17595  need_version=no
17596  case "$host_cpu" in
17597  ia64*)
17598    shrext='.so'
17599    hardcode_into_libs=yes
17600    dynamic_linker="$host_os dld.so"
17601    shlibpath_var=LD_LIBRARY_PATH
17602    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604    soname_spec='${libname}${release}${shared_ext}$major'
17605    if test "X$HPUX_IA64_MODE" = X32; then
17606      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17607    else
17608      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17609    fi
17610    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17611    ;;
17612   hppa*64*)
17613     shrext='.sl'
17614     hardcode_into_libs=yes
17615     dynamic_linker="$host_os dld.sl"
17616     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619     soname_spec='${libname}${release}${shared_ext}$major'
17620     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17622     ;;
17623   *)
17624    shrext='.sl'
17625    dynamic_linker="$host_os dld.sl"
17626    shlibpath_var=SHLIB_PATH
17627    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17628    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629    soname_spec='${libname}${release}${shared_ext}$major'
17630    ;;
17631  esac
17632  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17633  postinstall_cmds='chmod 555 $lib'
17634  ;;
17635
17636irix5* | irix6* | nonstopux*)
17637  case $host_os in
17638    nonstopux*) version_type=nonstopux ;;
17639    *)
17640	if test "$lt_cv_prog_gnu_ld" = yes; then
17641		version_type=linux
17642	else
17643		version_type=irix
17644	fi ;;
17645  esac
17646  need_lib_prefix=no
17647  need_version=no
17648  soname_spec='${libname}${release}${shared_ext}$major'
17649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17650  case $host_os in
17651  irix5* | nonstopux*)
17652    libsuff= shlibsuff=
17653    ;;
17654  *)
17655    case $LD in # libtool.m4 will add one of these switches to LD
17656    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17657      libsuff= shlibsuff= libmagic=32-bit;;
17658    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17659      libsuff=32 shlibsuff=N32 libmagic=N32;;
17660    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17661      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17662    *) libsuff= shlibsuff= libmagic=never-match;;
17663    esac
17664    ;;
17665  esac
17666  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17667  shlibpath_overrides_runpath=no
17668  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17669  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17670  hardcode_into_libs=yes
17671  ;;
17672
17673# No shared lib support for Linux oldld, aout, or coff.
17674linux*oldld* | linux*aout* | linux*coff*)
17675  dynamic_linker=no
17676  ;;
17677
17678# This must be Linux ELF.
17679linux*)
17680  version_type=linux
17681  need_lib_prefix=no
17682  need_version=no
17683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684  soname_spec='${libname}${release}${shared_ext}$major'
17685  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17686  shlibpath_var=LD_LIBRARY_PATH
17687  shlibpath_overrides_runpath=no
17688  # This implies no fast_install, which is unacceptable.
17689  # Some rework will be needed to allow for fast_install
17690  # before this can be enabled.
17691  hardcode_into_libs=yes
17692
17693  # We used to test for /lib/ld.so.1 and disable shared libraries on
17694  # powerpc, because MkLinux only supported shared libraries with the
17695  # GNU dynamic linker.  Since this was broken with cross compilers,
17696  # most powerpc-linux boxes support dynamic linking these days and
17697  # people can always --disable-shared, the test was removed, and we
17698  # assume the GNU/Linux dynamic linker is in use.
17699  dynamic_linker='GNU/Linux ld.so'
17700  ;;
17701
17702netbsd*)
17703  version_type=sunos
17704  need_lib_prefix=no
17705  need_version=no
17706  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17708    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17709    dynamic_linker='NetBSD (a.out) ld.so'
17710  else
17711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17712    soname_spec='${libname}${release}${shared_ext}$major'
17713    dynamic_linker='NetBSD ld.elf_so'
17714  fi
17715  shlibpath_var=LD_LIBRARY_PATH
17716  shlibpath_overrides_runpath=yes
17717  hardcode_into_libs=yes
17718  ;;
17719
17720newsos6)
17721  version_type=linux
17722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723  shlibpath_var=LD_LIBRARY_PATH
17724  shlibpath_overrides_runpath=yes
17725  ;;
17726
17727nto-qnx*)
17728  version_type=linux
17729  need_lib_prefix=no
17730  need_version=no
17731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732  soname_spec='${libname}${release}${shared_ext}$major'
17733  shlibpath_var=LD_LIBRARY_PATH
17734  shlibpath_overrides_runpath=yes
17735  ;;
17736
17737openbsd*)
17738  version_type=sunos
17739  need_lib_prefix=no
17740  need_version=no
17741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17742  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17743  shlibpath_var=LD_LIBRARY_PATH
17744  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17745    case $host_os in
17746      openbsd2.[89] | openbsd2.[89].*)
17747	shlibpath_overrides_runpath=no
17748	;;
17749      *)
17750	shlibpath_overrides_runpath=yes
17751	;;
17752      esac
17753  else
17754    shlibpath_overrides_runpath=yes
17755  fi
17756  ;;
17757
17758os2*)
17759  libname_spec='$name'
17760  shrext=".dll"
17761  need_lib_prefix=no
17762  library_names_spec='$libname${shared_ext} $libname.a'
17763  dynamic_linker='OS/2 ld.exe'
17764  shlibpath_var=LIBPATH
17765  ;;
17766
17767osf3* | osf4* | osf5*)
17768  version_type=osf
17769  need_lib_prefix=no
17770  need_version=no
17771  soname_spec='${libname}${release}${shared_ext}$major'
17772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773  shlibpath_var=LD_LIBRARY_PATH
17774  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17775  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17776  ;;
17777
17778sco3.2v5*)
17779  version_type=osf
17780  soname_spec='${libname}${release}${shared_ext}$major'
17781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782  shlibpath_var=LD_LIBRARY_PATH
17783  ;;
17784
17785solaris*)
17786  version_type=linux
17787  need_lib_prefix=no
17788  need_version=no
17789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17790  soname_spec='${libname}${release}${shared_ext}$major'
17791  shlibpath_var=LD_LIBRARY_PATH
17792  shlibpath_overrides_runpath=yes
17793  hardcode_into_libs=yes
17794  # ldd complains unless libraries are executable
17795  postinstall_cmds='chmod +x $lib'
17796  ;;
17797
17798sunos4*)
17799  version_type=sunos
17800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17801  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17802  shlibpath_var=LD_LIBRARY_PATH
17803  shlibpath_overrides_runpath=yes
17804  if test "$with_gnu_ld" = yes; then
17805    need_lib_prefix=no
17806  fi
17807  need_version=yes
17808  ;;
17809
17810sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17811  version_type=linux
17812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17813  soname_spec='${libname}${release}${shared_ext}$major'
17814  shlibpath_var=LD_LIBRARY_PATH
17815  case $host_vendor in
17816    sni)
17817      shlibpath_overrides_runpath=no
17818      need_lib_prefix=no
17819      export_dynamic_flag_spec='${wl}-Blargedynsym'
17820      runpath_var=LD_RUN_PATH
17821      ;;
17822    siemens)
17823      need_lib_prefix=no
17824      ;;
17825    motorola)
17826      need_lib_prefix=no
17827      need_version=no
17828      shlibpath_overrides_runpath=no
17829      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17830      ;;
17831  esac
17832  ;;
17833
17834sysv4*MP*)
17835  if test -d /usr/nec ;then
17836    version_type=linux
17837    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17838    soname_spec='$libname${shared_ext}.$major'
17839    shlibpath_var=LD_LIBRARY_PATH
17840  fi
17841  ;;
17842
17843uts4*)
17844  version_type=linux
17845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846  soname_spec='${libname}${release}${shared_ext}$major'
17847  shlibpath_var=LD_LIBRARY_PATH
17848  ;;
17849
17850*)
17851  dynamic_linker=no
17852  ;;
17853esac
17854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17855$as_echo "$dynamic_linker" >&6; }
17856test "$dynamic_linker" = no && can_build_shared=no
17857
17858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17859$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17860hardcode_action_GCJ=
17861if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17862   test -n "$runpath_var GCJ" || \
17863   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17864
17865  # We can hardcode non-existant directories.
17866  if test "$hardcode_direct_GCJ" != no &&
17867     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17868     # have to relink, otherwise we might link with an installed library
17869     # when we should be linking with a yet-to-be-installed one
17870     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17871     test "$hardcode_minus_L_GCJ" != no; then
17872    # Linking always hardcodes the temporary library directory.
17873    hardcode_action_GCJ=relink
17874  else
17875    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17876    hardcode_action_GCJ=immediate
17877  fi
17878else
17879  # We cannot hardcode anything, or else we can only hardcode existing
17880  # directories.
17881  hardcode_action_GCJ=unsupported
17882fi
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17884$as_echo "$hardcode_action_GCJ" >&6; }
17885
17886if test "$hardcode_action_GCJ" = relink; then
17887  # Fast installation is not supported
17888  enable_fast_install=no
17889elif test "$shlibpath_overrides_runpath" = yes ||
17890     test "$enable_shared" = no; then
17891  # Fast installation is not necessary
17892  enable_fast_install=needless
17893fi
17894
17895striplib=
17896old_striplib=
17897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17898$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17899if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17900  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17901  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17902# <PATCH NAME="ISW20030916-1">
17903# <NEW>
17904# The following section is a PATCH to overcome the
17905# stripped import library issues under cygwin
17906  case $host_os in
17907    cygwin*)
17908        striplib=
17909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17910$as_echo "no" >&6; }
17911        ;;
17912    *)
17913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17914$as_echo "yes" >&6; }
17915        ;;
17916   esac
17917# </NEW>
17918# <OLD>
17919#  AC_MSG_RESULT([yes])
17920# </OLD>
17921# </PATCH>
17922
17923else
17924# FIXME - insert some real tests, host_os isn't really good enough
17925  case $host_os in
17926   darwin*)
17927       if test -n "$STRIP" ; then
17928         striplib="$STRIP -x"
17929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930$as_echo "yes" >&6; }
17931       else
17932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17933$as_echo "no" >&6; }
17934fi
17935       ;;
17936   *)
17937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17938$as_echo "no" >&6; }
17939    ;;
17940  esac
17941fi
17942
17943if test "x$enable_dlopen" != xyes; then
17944  enable_dlopen=unknown
17945  enable_dlopen_self=unknown
17946  enable_dlopen_self_static=unknown
17947else
17948  lt_cv_dlopen=no
17949  lt_cv_dlopen_libs=
17950
17951  case $host_os in
17952  beos*)
17953    lt_cv_dlopen="load_add_on"
17954    lt_cv_dlopen_libs=
17955    lt_cv_dlopen_self=yes
17956    ;;
17957
17958  mingw* | pw32*)
17959    lt_cv_dlopen="LoadLibrary"
17960    lt_cv_dlopen_libs=
17961   ;;
17962
17963  cygwin*)
17964    lt_cv_dlopen="dlopen"
17965    lt_cv_dlopen_libs=
17966   ;;
17967
17968  darwin*)
17969  # if libdl is installed we need to link against it
17970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17971$as_echo_n "checking for dlopen in -ldl... " >&6; }
17972if ${ac_cv_lib_dl_dlopen+:} false; then :
17973  $as_echo_n "(cached) " >&6
17974else
17975  ac_check_lib_save_LIBS=$LIBS
17976LIBS="-ldl  $LIBS"
17977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979
17980/* Override any GCC internal prototype to avoid an error.
17981   Use char because int might match the return type of a GCC
17982   builtin and then its argument prototype would still apply.  */
17983#ifdef __cplusplus
17984extern "C"
17985#endif
17986char dlopen ();
17987int
17988main ()
17989{
17990return dlopen ();
17991  ;
17992  return 0;
17993}
17994_ACEOF
17995if ac_fn_c_try_link "$LINENO"; then :
17996  ac_cv_lib_dl_dlopen=yes
17997else
17998  ac_cv_lib_dl_dlopen=no
17999fi
18000rm -f core conftest.err conftest.$ac_objext \
18001    conftest$ac_exeext conftest.$ac_ext
18002LIBS=$ac_check_lib_save_LIBS
18003fi
18004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18005$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18006if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18007  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18008else
18009
18010    lt_cv_dlopen="dyld"
18011    lt_cv_dlopen_libs=
18012    lt_cv_dlopen_self=yes
18013
18014fi
18015
18016   ;;
18017
18018  *)
18019    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18020if test "x$ac_cv_func_shl_load" = xyes; then :
18021  lt_cv_dlopen="shl_load"
18022else
18023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18024$as_echo_n "checking for shl_load in -ldld... " >&6; }
18025if ${ac_cv_lib_dld_shl_load+:} false; then :
18026  $as_echo_n "(cached) " >&6
18027else
18028  ac_check_lib_save_LIBS=$LIBS
18029LIBS="-ldld  $LIBS"
18030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031/* end confdefs.h.  */
18032
18033/* Override any GCC internal prototype to avoid an error.
18034   Use char because int might match the return type of a GCC
18035   builtin and then its argument prototype would still apply.  */
18036#ifdef __cplusplus
18037extern "C"
18038#endif
18039char shl_load ();
18040int
18041main ()
18042{
18043return shl_load ();
18044  ;
18045  return 0;
18046}
18047_ACEOF
18048if ac_fn_c_try_link "$LINENO"; then :
18049  ac_cv_lib_dld_shl_load=yes
18050else
18051  ac_cv_lib_dld_shl_load=no
18052fi
18053rm -f core conftest.err conftest.$ac_objext \
18054    conftest$ac_exeext conftest.$ac_ext
18055LIBS=$ac_check_lib_save_LIBS
18056fi
18057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18058$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18059if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18060  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18061else
18062  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18063if test "x$ac_cv_func_dlopen" = xyes; then :
18064  lt_cv_dlopen="dlopen"
18065else
18066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18067$as_echo_n "checking for dlopen in -ldl... " >&6; }
18068if ${ac_cv_lib_dl_dlopen+:} false; then :
18069  $as_echo_n "(cached) " >&6
18070else
18071  ac_check_lib_save_LIBS=$LIBS
18072LIBS="-ldl  $LIBS"
18073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074/* end confdefs.h.  */
18075
18076/* Override any GCC internal prototype to avoid an error.
18077   Use char because int might match the return type of a GCC
18078   builtin and then its argument prototype would still apply.  */
18079#ifdef __cplusplus
18080extern "C"
18081#endif
18082char dlopen ();
18083int
18084main ()
18085{
18086return dlopen ();
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091if ac_fn_c_try_link "$LINENO"; then :
18092  ac_cv_lib_dl_dlopen=yes
18093else
18094  ac_cv_lib_dl_dlopen=no
18095fi
18096rm -f core conftest.err conftest.$ac_objext \
18097    conftest$ac_exeext conftest.$ac_ext
18098LIBS=$ac_check_lib_save_LIBS
18099fi
18100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18101$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18102if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18103  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18104else
18105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18106$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18107if ${ac_cv_lib_svld_dlopen+:} false; then :
18108  $as_echo_n "(cached) " >&6
18109else
18110  ac_check_lib_save_LIBS=$LIBS
18111LIBS="-lsvld  $LIBS"
18112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113/* end confdefs.h.  */
18114
18115/* Override any GCC internal prototype to avoid an error.
18116   Use char because int might match the return type of a GCC
18117   builtin and then its argument prototype would still apply.  */
18118#ifdef __cplusplus
18119extern "C"
18120#endif
18121char dlopen ();
18122int
18123main ()
18124{
18125return dlopen ();
18126  ;
18127  return 0;
18128}
18129_ACEOF
18130if ac_fn_c_try_link "$LINENO"; then :
18131  ac_cv_lib_svld_dlopen=yes
18132else
18133  ac_cv_lib_svld_dlopen=no
18134fi
18135rm -f core conftest.err conftest.$ac_objext \
18136    conftest$ac_exeext conftest.$ac_ext
18137LIBS=$ac_check_lib_save_LIBS
18138fi
18139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18140$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18141if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18142  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18143else
18144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18145$as_echo_n "checking for dld_link in -ldld... " >&6; }
18146if ${ac_cv_lib_dld_dld_link+:} false; then :
18147  $as_echo_n "(cached) " >&6
18148else
18149  ac_check_lib_save_LIBS=$LIBS
18150LIBS="-ldld  $LIBS"
18151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152/* end confdefs.h.  */
18153
18154/* Override any GCC internal prototype to avoid an error.
18155   Use char because int might match the return type of a GCC
18156   builtin and then its argument prototype would still apply.  */
18157#ifdef __cplusplus
18158extern "C"
18159#endif
18160char dld_link ();
18161int
18162main ()
18163{
18164return dld_link ();
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169if ac_fn_c_try_link "$LINENO"; then :
18170  ac_cv_lib_dld_dld_link=yes
18171else
18172  ac_cv_lib_dld_dld_link=no
18173fi
18174rm -f core conftest.err conftest.$ac_objext \
18175    conftest$ac_exeext conftest.$ac_ext
18176LIBS=$ac_check_lib_save_LIBS
18177fi
18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18179$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18180if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18181  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18182fi
18183
18184
18185fi
18186
18187
18188fi
18189
18190
18191fi
18192
18193
18194fi
18195
18196
18197fi
18198
18199    ;;
18200  esac
18201
18202  if test "x$lt_cv_dlopen" != xno; then
18203    enable_dlopen=yes
18204  else
18205    enable_dlopen=no
18206  fi
18207
18208  case $lt_cv_dlopen in
18209  dlopen)
18210    save_CPPFLAGS="$CPPFLAGS"
18211    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18212
18213    save_LDFLAGS="$LDFLAGS"
18214    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18215
18216    save_LIBS="$LIBS"
18217    LIBS="$lt_cv_dlopen_libs $LIBS"
18218
18219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18220$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18221if ${lt_cv_dlopen_self+:} false; then :
18222  $as_echo_n "(cached) " >&6
18223else
18224  	  if test "$cross_compiling" = yes; then :
18225  lt_cv_dlopen_self=cross
18226else
18227  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18228  lt_status=$lt_dlunknown
18229  cat > conftest.$ac_ext <<EOF
18230#line 18230 "configure"
18231#include "confdefs.h"
18232
18233#if HAVE_DLFCN_H
18234#include <dlfcn.h>
18235#endif
18236
18237#include <stdio.h>
18238
18239#ifdef RTLD_GLOBAL
18240#  define LT_DLGLOBAL		RTLD_GLOBAL
18241#else
18242#  ifdef DL_GLOBAL
18243#    define LT_DLGLOBAL		DL_GLOBAL
18244#  else
18245#    define LT_DLGLOBAL		0
18246#  endif
18247#endif
18248
18249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18250   find out it does not work in some platform. */
18251#ifndef LT_DLLAZY_OR_NOW
18252#  ifdef RTLD_LAZY
18253#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18254#  else
18255#    ifdef DL_LAZY
18256#      define LT_DLLAZY_OR_NOW		DL_LAZY
18257#    else
18258#      ifdef RTLD_NOW
18259#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18260#      else
18261#        ifdef DL_NOW
18262#          define LT_DLLAZY_OR_NOW	DL_NOW
18263#        else
18264#          define LT_DLLAZY_OR_NOW	0
18265#        endif
18266#      endif
18267#    endif
18268#  endif
18269#endif
18270
18271#ifdef __cplusplus
18272extern "C" void exit (int);
18273#endif
18274
18275void fnord() { int i=42;}
18276int main ()
18277{
18278  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18279  int status = $lt_dlunknown;
18280
18281  if (self)
18282    {
18283      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18284      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18285      /* dlclose (self); */
18286    }
18287
18288    exit (status);
18289}
18290EOF
18291  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18292  (eval $ac_link) 2>&5
18293  ac_status=$?
18294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18295  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18296    (./conftest; exit; ) 2>/dev/null
18297    lt_status=$?
18298    case x$lt_status in
18299      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18300      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18301      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18302    esac
18303  else :
18304    # compilation failed
18305    lt_cv_dlopen_self=no
18306  fi
18307fi
18308rm -fr conftest*
18309
18310
18311fi
18312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18313$as_echo "$lt_cv_dlopen_self" >&6; }
18314
18315    if test "x$lt_cv_dlopen_self" = xyes; then
18316      LDFLAGS="$LDFLAGS $link_static_flag"
18317      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18318$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18319if ${lt_cv_dlopen_self_static+:} false; then :
18320  $as_echo_n "(cached) " >&6
18321else
18322  	  if test "$cross_compiling" = yes; then :
18323  lt_cv_dlopen_self_static=cross
18324else
18325  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18326  lt_status=$lt_dlunknown
18327  cat > conftest.$ac_ext <<EOF
18328#line 18328 "configure"
18329#include "confdefs.h"
18330
18331#if HAVE_DLFCN_H
18332#include <dlfcn.h>
18333#endif
18334
18335#include <stdio.h>
18336
18337#ifdef RTLD_GLOBAL
18338#  define LT_DLGLOBAL		RTLD_GLOBAL
18339#else
18340#  ifdef DL_GLOBAL
18341#    define LT_DLGLOBAL		DL_GLOBAL
18342#  else
18343#    define LT_DLGLOBAL		0
18344#  endif
18345#endif
18346
18347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18348   find out it does not work in some platform. */
18349#ifndef LT_DLLAZY_OR_NOW
18350#  ifdef RTLD_LAZY
18351#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18352#  else
18353#    ifdef DL_LAZY
18354#      define LT_DLLAZY_OR_NOW		DL_LAZY
18355#    else
18356#      ifdef RTLD_NOW
18357#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18358#      else
18359#        ifdef DL_NOW
18360#          define LT_DLLAZY_OR_NOW	DL_NOW
18361#        else
18362#          define LT_DLLAZY_OR_NOW	0
18363#        endif
18364#      endif
18365#    endif
18366#  endif
18367#endif
18368
18369#ifdef __cplusplus
18370extern "C" void exit (int);
18371#endif
18372
18373void fnord() { int i=42;}
18374int main ()
18375{
18376  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18377  int status = $lt_dlunknown;
18378
18379  if (self)
18380    {
18381      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18382      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18383      /* dlclose (self); */
18384    }
18385
18386    exit (status);
18387}
18388EOF
18389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18390  (eval $ac_link) 2>&5
18391  ac_status=$?
18392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18393  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18394    (./conftest; exit; ) 2>/dev/null
18395    lt_status=$?
18396    case x$lt_status in
18397      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18398      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18399      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18400    esac
18401  else :
18402    # compilation failed
18403    lt_cv_dlopen_self_static=no
18404  fi
18405fi
18406rm -fr conftest*
18407
18408
18409fi
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18411$as_echo "$lt_cv_dlopen_self_static" >&6; }
18412    fi
18413
18414    CPPFLAGS="$save_CPPFLAGS"
18415    LDFLAGS="$save_LDFLAGS"
18416    LIBS="$save_LIBS"
18417    ;;
18418  esac
18419
18420  case $lt_cv_dlopen_self in
18421  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18422  *) enable_dlopen_self=unknown ;;
18423  esac
18424
18425  case $lt_cv_dlopen_self_static in
18426  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18427  *) enable_dlopen_self_static=unknown ;;
18428  esac
18429fi
18430
18431
18432# The else clause should only fire when bootstrapping the
18433# libtool distribution, otherwise you forgot to ship ltmain.sh
18434# with your package, and you will get complaints that there are
18435# no rules to generate ltmain.sh.
18436if test -f "$ltmain"; then
18437  # See if we are running on zsh, and set the options which allow our commands through
18438  # without removal of \ escapes.
18439  if test -n "${ZSH_VERSION+set}" ; then
18440    setopt NO_GLOB_SUBST
18441  fi
18442  # Now quote all the things that may contain metacharacters while being
18443  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18444  # variables and quote the copies for generation of the libtool script.
18445  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18446    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18447    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18448    deplibs_check_method reload_flag reload_cmds need_locks \
18449    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18450    lt_cv_sys_global_symbol_to_c_name_address \
18451    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18452    old_postinstall_cmds old_postuninstall_cmds \
18453    compiler_GCJ \
18454    CC_GCJ \
18455    LD_GCJ \
18456    lt_prog_compiler_wl_GCJ \
18457    lt_prog_compiler_pic_GCJ \
18458    lt_prog_compiler_static_GCJ \
18459    lt_prog_compiler_no_builtin_flag_GCJ \
18460    export_dynamic_flag_spec_GCJ \
18461    thread_safe_flag_spec_GCJ \
18462    whole_archive_flag_spec_GCJ \
18463    enable_shared_with_static_runtimes_GCJ \
18464    old_archive_cmds_GCJ \
18465    old_archive_from_new_cmds_GCJ \
18466    predep_objects_GCJ \
18467    postdep_objects_GCJ \
18468    predeps_GCJ \
18469    postdeps_GCJ \
18470    compiler_lib_search_path_GCJ \
18471    archive_cmds_GCJ \
18472    archive_expsym_cmds_GCJ \
18473    postinstall_cmds_GCJ \
18474    postuninstall_cmds_GCJ \
18475    old_archive_from_expsyms_cmds_GCJ \
18476    allow_undefined_flag_GCJ \
18477    no_undefined_flag_GCJ \
18478    export_symbols_cmds_GCJ \
18479    hardcode_libdir_flag_spec_GCJ \
18480    hardcode_libdir_flag_spec_ld_GCJ \
18481    hardcode_libdir_separator_GCJ \
18482    hardcode_automatic_GCJ \
18483    module_cmds_GCJ \
18484    module_expsym_cmds_GCJ \
18485    lt_cv_prog_compiler_c_o_GCJ \
18486    exclude_expsyms_GCJ \
18487    include_expsyms_GCJ; do
18488
18489    case $var in
18490    old_archive_cmds_GCJ | \
18491    old_archive_from_new_cmds_GCJ | \
18492    archive_cmds_GCJ | \
18493    archive_expsym_cmds_GCJ | \
18494    module_cmds_GCJ | \
18495    module_expsym_cmds_GCJ | \
18496    old_archive_from_expsyms_cmds_GCJ | \
18497    export_symbols_cmds_GCJ | \
18498    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18499    postinstall_cmds | postuninstall_cmds | \
18500    old_postinstall_cmds | old_postuninstall_cmds | \
18501    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18502      # Double-quote double-evaled strings.
18503      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18504      ;;
18505    *)
18506      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18507      ;;
18508    esac
18509  done
18510
18511  case $lt_echo in
18512  *'\$0 --fallback-echo"')
18513    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18514    ;;
18515  esac
18516
18517cfgfile="$ofile"
18518
18519  cat <<__EOF__ >> "$cfgfile"
18520# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18521
18522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18523
18524# Shell to use when invoking shell scripts.
18525SHELL=$lt_SHELL
18526
18527# Whether or not to build shared libraries.
18528build_libtool_libs=$enable_shared
18529
18530# Whether or not to build static libraries.
18531build_old_libs=$enable_static
18532
18533# Whether or not to add -lc for building shared libraries.
18534build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18535
18536# Whether or not to disallow shared libs when runtime libs are static
18537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18538
18539# Whether or not to optimize for fast installation.
18540fast_install=$enable_fast_install
18541
18542# The host system.
18543host_alias=$host_alias
18544host=$host
18545
18546# An echo program that does not interpret backslashes.
18547echo=$lt_echo
18548
18549# The archiver.
18550AR=$lt_AR
18551AR_FLAGS=$lt_AR_FLAGS
18552
18553# A C compiler.
18554LTCC=$lt_LTCC
18555
18556# A language-specific compiler.
18557CC=$lt_compiler_GCJ
18558
18559# Is the compiler the GNU C compiler?
18560with_gcc=$GCC_GCJ
18561
18562# An ERE matcher.
18563EGREP=$lt_EGREP
18564
18565# The linker used to build libraries.
18566LD=$lt_LD_GCJ
18567
18568# Whether we need hard or soft links.
18569LN_S=$lt_LN_S
18570
18571# A BSD-compatible nm program.
18572NM=$lt_NM
18573
18574# A symbol stripping program
18575STRIP=$STRIP
18576
18577# Used to examine libraries when file_magic_cmd begins "file"
18578MAGIC_CMD=$MAGIC_CMD
18579
18580# Used on cygwin: DLL creation program.
18581DLLTOOL="$DLLTOOL"
18582
18583# Used on cygwin: object dumper.
18584OBJDUMP="$OBJDUMP"
18585
18586# Used on cygwin: assembler.
18587AS="$AS"
18588
18589# The name of the directory that contains temporary libtool files.
18590objdir=$objdir
18591
18592# How to create reloadable object files.
18593reload_flag=$lt_reload_flag
18594reload_cmds=$lt_reload_cmds
18595
18596# How to pass a linker flag through the compiler.
18597wl=$lt_lt_prog_compiler_wl_GCJ
18598
18599# Object file suffix (normally "o").
18600objext="$ac_objext"
18601
18602# Old archive suffix (normally "a").
18603libext="$libext"
18604
18605# Shared library suffix (normally ".so").
18606shrext='$shrext'
18607
18608# Executable file suffix (normally "").
18609exeext="$exeext"
18610
18611# Additional compiler flags for building library objects.
18612pic_flag=$lt_lt_prog_compiler_pic_GCJ
18613pic_mode=$pic_mode
18614
18615# What is the maximum length of a command?
18616max_cmd_len=$lt_cv_sys_max_cmd_len
18617
18618# Does compiler simultaneously support -c and -o options?
18619compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18620
18621# Must we lock files when doing compilation ?
18622need_locks=$lt_need_locks
18623
18624# Do we need the lib prefix for modules?
18625need_lib_prefix=$need_lib_prefix
18626
18627# Do we need a version for libraries?
18628need_version=$need_version
18629
18630# Whether dlopen is supported.
18631dlopen_support=$enable_dlopen
18632
18633# Whether dlopen of programs is supported.
18634dlopen_self=$enable_dlopen_self
18635
18636# Whether dlopen of statically linked programs is supported.
18637dlopen_self_static=$enable_dlopen_self_static
18638
18639# Compiler flag to prevent dynamic linking.
18640link_static_flag=$lt_lt_prog_compiler_static_GCJ
18641
18642# Compiler flag to turn off builtin functions.
18643no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18644
18645# Compiler flag to allow reflexive dlopens.
18646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18647
18648# Compiler flag to generate shared objects directly from archives.
18649whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18650
18651# Compiler flag to generate thread-safe objects.
18652thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18653
18654# Library versioning type.
18655version_type=$version_type
18656
18657# Format of library name prefix.
18658libname_spec=$lt_libname_spec
18659
18660# List of archive names.  First name is the real one, the rest are links.
18661# The last name is the one that the linker finds with -lNAME.
18662library_names_spec=$lt_library_names_spec
18663
18664# The coded name of the library, if different from the real name.
18665soname_spec=$lt_soname_spec
18666
18667# Commands used to build and install an old-style archive.
18668RANLIB=$lt_RANLIB
18669old_archive_cmds=$lt_old_archive_cmds_GCJ
18670old_postinstall_cmds=$lt_old_postinstall_cmds
18671old_postuninstall_cmds=$lt_old_postuninstall_cmds
18672
18673# Create an old-style archive from a shared archive.
18674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18675
18676# Create a temporary old-style archive to link instead of a shared archive.
18677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18678
18679# Commands used to build and install a shared archive.
18680archive_cmds=$lt_archive_cmds_GCJ
18681archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18682postinstall_cmds=$lt_postinstall_cmds
18683postuninstall_cmds=$lt_postuninstall_cmds
18684
18685# Commands used to build a loadable module (assumed same as above if empty)
18686module_cmds=$lt_module_cmds_GCJ
18687module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18688
18689# Commands to strip libraries.
18690old_striplib=$lt_old_striplib
18691striplib=$lt_striplib
18692
18693# Dependencies to place before the objects being linked to create a
18694# shared library.
18695predep_objects=$lt_predep_objects_GCJ
18696
18697# Dependencies to place after the objects being linked to create a
18698# shared library.
18699postdep_objects=$lt_postdep_objects_GCJ
18700
18701# Dependencies to place before the objects being linked to create a
18702# shared library.
18703predeps=$lt_predeps_GCJ
18704
18705# Dependencies to place after the objects being linked to create a
18706# shared library.
18707postdeps=$lt_postdeps_GCJ
18708
18709# The library search path used internally by the compiler when linking
18710# a shared library.
18711compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18712
18713# Method to check whether dependent libraries are shared objects.
18714deplibs_check_method=$lt_deplibs_check_method
18715
18716# Command to use when deplibs_check_method == file_magic.
18717file_magic_cmd=$lt_file_magic_cmd
18718
18719# Flag that allows shared libraries with undefined symbols to be built.
18720allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18721
18722# Flag that forces no undefined symbols.
18723no_undefined_flag=$lt_no_undefined_flag_GCJ
18724
18725# Commands used to finish a libtool library installation in a directory.
18726finish_cmds=$lt_finish_cmds
18727
18728# Same as above, but a single script fragment to be evaled but not shown.
18729finish_eval=$lt_finish_eval
18730
18731# Take the output of nm and produce a listing of raw symbols and C names.
18732global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18733
18734# Transform the output of nm in a proper C declaration
18735global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18736
18737# Transform the output of nm in a C name address pair
18738global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18739
18740# This is the shared library runtime path variable.
18741runpath_var=$runpath_var
18742
18743# This is the shared library path variable.
18744shlibpath_var=$shlibpath_var
18745
18746# Is shlibpath searched before the hard-coded library search path?
18747shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18748
18749# How to hardcode a shared library path into an executable.
18750hardcode_action=$hardcode_action_GCJ
18751
18752# Whether we should hardcode library paths into libraries.
18753hardcode_into_libs=$hardcode_into_libs
18754
18755# Flag to hardcode \$libdir into a binary during linking.
18756# This must work even if \$libdir does not exist.
18757hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18758
18759# If ld is used when linking, flag to hardcode \$libdir into
18760# a binary during linking. This must work even if \$libdir does
18761# not exist.
18762hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18763
18764# Whether we need a single -rpath flag with a separated argument.
18765hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18766
18767# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18768# resulting binary.
18769hardcode_direct=$hardcode_direct_GCJ
18770
18771# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18772# resulting binary.
18773hardcode_minus_L=$hardcode_minus_L_GCJ
18774
18775# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18776# the resulting binary.
18777hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18778
18779# Set to yes if building a shared library automatically hardcodes DIR into the library
18780# and all subsequent libraries and executables linked against it.
18781hardcode_automatic=$hardcode_automatic_GCJ
18782
18783# Variables whose values should be saved in libtool wrapper scripts and
18784# restored at relink time.
18785variables_saved_for_relink="$variables_saved_for_relink"
18786
18787# Whether libtool must link a program against all its dependency libraries.
18788link_all_deplibs=$link_all_deplibs_GCJ
18789
18790# Compile-time system search path for libraries
18791sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18792
18793# Run-time system search path for libraries
18794sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18795
18796# Fix the shell variable \$srcfile for the compiler.
18797fix_srcfile_path="$fix_srcfile_path_GCJ"
18798
18799# Set to yes if exported symbols are required.
18800always_export_symbols=$always_export_symbols_GCJ
18801
18802# The commands to list exported symbols.
18803export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18804
18805# The commands to extract the exported symbol list from a shared archive.
18806extract_expsyms_cmds=$lt_extract_expsyms_cmds
18807
18808# Symbols that should not be listed in the preloaded symbols.
18809exclude_expsyms=$lt_exclude_expsyms_GCJ
18810
18811# Symbols that must always be exported.
18812include_expsyms=$lt_include_expsyms_GCJ
18813
18814# ### END LIBTOOL TAG CONFIG: $tagname
18815
18816__EOF__
18817
18818
18819else
18820  # If there is no Makefile yet, we rely on a make rule to execute
18821  # `config.status --recheck' to rerun these tests and create the
18822  # libtool script then.
18823  test -f Makefile && make "$ltmain"
18824fi
18825
18826
18827ac_ext=c
18828ac_cpp='$CPP $CPPFLAGS'
18829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18831ac_compiler_gnu=$ac_cv_c_compiler_gnu
18832
18833CC="$lt_save_CC"
18834
18835	else
18836	  tagname=""
18837	fi
18838	;;
18839
18840      RC)
18841
18842
18843# Source file extension for RC test sources.
18844ac_ext=rc
18845
18846# Object file extension for compiled RC test sources.
18847objext=o
18848objext_RC=$objext
18849
18850# Code to be used in simple compile tests
18851lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18852
18853# Code to be used in simple link tests
18854lt_simple_link_test_code="$lt_simple_compile_test_code"
18855
18856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18857
18858# If no C compiler was specified, use CC.
18859LTCC=${LTCC-"$CC"}
18860
18861# Allow CC to be a program name with arguments.
18862compiler=$CC
18863
18864
18865# Allow CC to be a program name with arguments.
18866lt_save_CC="$CC"
18867CC=${RC-"windres"}
18868compiler=$CC
18869compiler_RC=$CC
18870lt_cv_prog_compiler_c_o_RC=yes
18871
18872# The else clause should only fire when bootstrapping the
18873# libtool distribution, otherwise you forgot to ship ltmain.sh
18874# with your package, and you will get complaints that there are
18875# no rules to generate ltmain.sh.
18876if test -f "$ltmain"; then
18877  # See if we are running on zsh, and set the options which allow our commands through
18878  # without removal of \ escapes.
18879  if test -n "${ZSH_VERSION+set}" ; then
18880    setopt NO_GLOB_SUBST
18881  fi
18882  # Now quote all the things that may contain metacharacters while being
18883  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18884  # variables and quote the copies for generation of the libtool script.
18885  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18886    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18887    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18888    deplibs_check_method reload_flag reload_cmds need_locks \
18889    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18890    lt_cv_sys_global_symbol_to_c_name_address \
18891    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18892    old_postinstall_cmds old_postuninstall_cmds \
18893    compiler_RC \
18894    CC_RC \
18895    LD_RC \
18896    lt_prog_compiler_wl_RC \
18897    lt_prog_compiler_pic_RC \
18898    lt_prog_compiler_static_RC \
18899    lt_prog_compiler_no_builtin_flag_RC \
18900    export_dynamic_flag_spec_RC \
18901    thread_safe_flag_spec_RC \
18902    whole_archive_flag_spec_RC \
18903    enable_shared_with_static_runtimes_RC \
18904    old_archive_cmds_RC \
18905    old_archive_from_new_cmds_RC \
18906    predep_objects_RC \
18907    postdep_objects_RC \
18908    predeps_RC \
18909    postdeps_RC \
18910    compiler_lib_search_path_RC \
18911    archive_cmds_RC \
18912    archive_expsym_cmds_RC \
18913    postinstall_cmds_RC \
18914    postuninstall_cmds_RC \
18915    old_archive_from_expsyms_cmds_RC \
18916    allow_undefined_flag_RC \
18917    no_undefined_flag_RC \
18918    export_symbols_cmds_RC \
18919    hardcode_libdir_flag_spec_RC \
18920    hardcode_libdir_flag_spec_ld_RC \
18921    hardcode_libdir_separator_RC \
18922    hardcode_automatic_RC \
18923    module_cmds_RC \
18924    module_expsym_cmds_RC \
18925    lt_cv_prog_compiler_c_o_RC \
18926    exclude_expsyms_RC \
18927    include_expsyms_RC; do
18928
18929    case $var in
18930    old_archive_cmds_RC | \
18931    old_archive_from_new_cmds_RC | \
18932    archive_cmds_RC | \
18933    archive_expsym_cmds_RC | \
18934    module_cmds_RC | \
18935    module_expsym_cmds_RC | \
18936    old_archive_from_expsyms_cmds_RC | \
18937    export_symbols_cmds_RC | \
18938    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18939    postinstall_cmds | postuninstall_cmds | \
18940    old_postinstall_cmds | old_postuninstall_cmds | \
18941    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18942      # Double-quote double-evaled strings.
18943      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18944      ;;
18945    *)
18946      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18947      ;;
18948    esac
18949  done
18950
18951  case $lt_echo in
18952  *'\$0 --fallback-echo"')
18953    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18954    ;;
18955  esac
18956
18957cfgfile="$ofile"
18958
18959  cat <<__EOF__ >> "$cfgfile"
18960# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18961
18962# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18963
18964# Shell to use when invoking shell scripts.
18965SHELL=$lt_SHELL
18966
18967# Whether or not to build shared libraries.
18968build_libtool_libs=$enable_shared
18969
18970# Whether or not to build static libraries.
18971build_old_libs=$enable_static
18972
18973# Whether or not to add -lc for building shared libraries.
18974build_libtool_need_lc=$archive_cmds_need_lc_RC
18975
18976# Whether or not to disallow shared libs when runtime libs are static
18977allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18978
18979# Whether or not to optimize for fast installation.
18980fast_install=$enable_fast_install
18981
18982# The host system.
18983host_alias=$host_alias
18984host=$host
18985
18986# An echo program that does not interpret backslashes.
18987echo=$lt_echo
18988
18989# The archiver.
18990AR=$lt_AR
18991AR_FLAGS=$lt_AR_FLAGS
18992
18993# A C compiler.
18994LTCC=$lt_LTCC
18995
18996# A language-specific compiler.
18997CC=$lt_compiler_RC
18998
18999# Is the compiler the GNU C compiler?
19000with_gcc=$GCC_RC
19001
19002# An ERE matcher.
19003EGREP=$lt_EGREP
19004
19005# The linker used to build libraries.
19006LD=$lt_LD_RC
19007
19008# Whether we need hard or soft links.
19009LN_S=$lt_LN_S
19010
19011# A BSD-compatible nm program.
19012NM=$lt_NM
19013
19014# A symbol stripping program
19015STRIP=$STRIP
19016
19017# Used to examine libraries when file_magic_cmd begins "file"
19018MAGIC_CMD=$MAGIC_CMD
19019
19020# Used on cygwin: DLL creation program.
19021DLLTOOL="$DLLTOOL"
19022
19023# Used on cygwin: object dumper.
19024OBJDUMP="$OBJDUMP"
19025
19026# Used on cygwin: assembler.
19027AS="$AS"
19028
19029# The name of the directory that contains temporary libtool files.
19030objdir=$objdir
19031
19032# How to create reloadable object files.
19033reload_flag=$lt_reload_flag
19034reload_cmds=$lt_reload_cmds
19035
19036# How to pass a linker flag through the compiler.
19037wl=$lt_lt_prog_compiler_wl_RC
19038
19039# Object file suffix (normally "o").
19040objext="$ac_objext"
19041
19042# Old archive suffix (normally "a").
19043libext="$libext"
19044
19045# Shared library suffix (normally ".so").
19046shrext='$shrext'
19047
19048# Executable file suffix (normally "").
19049exeext="$exeext"
19050
19051# Additional compiler flags for building library objects.
19052pic_flag=$lt_lt_prog_compiler_pic_RC
19053pic_mode=$pic_mode
19054
19055# What is the maximum length of a command?
19056max_cmd_len=$lt_cv_sys_max_cmd_len
19057
19058# Does compiler simultaneously support -c and -o options?
19059compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19060
19061# Must we lock files when doing compilation ?
19062need_locks=$lt_need_locks
19063
19064# Do we need the lib prefix for modules?
19065need_lib_prefix=$need_lib_prefix
19066
19067# Do we need a version for libraries?
19068need_version=$need_version
19069
19070# Whether dlopen is supported.
19071dlopen_support=$enable_dlopen
19072
19073# Whether dlopen of programs is supported.
19074dlopen_self=$enable_dlopen_self
19075
19076# Whether dlopen of statically linked programs is supported.
19077dlopen_self_static=$enable_dlopen_self_static
19078
19079# Compiler flag to prevent dynamic linking.
19080link_static_flag=$lt_lt_prog_compiler_static_RC
19081
19082# Compiler flag to turn off builtin functions.
19083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19084
19085# Compiler flag to allow reflexive dlopens.
19086export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19087
19088# Compiler flag to generate shared objects directly from archives.
19089whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19090
19091# Compiler flag to generate thread-safe objects.
19092thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19093
19094# Library versioning type.
19095version_type=$version_type
19096
19097# Format of library name prefix.
19098libname_spec=$lt_libname_spec
19099
19100# List of archive names.  First name is the real one, the rest are links.
19101# The last name is the one that the linker finds with -lNAME.
19102library_names_spec=$lt_library_names_spec
19103
19104# The coded name of the library, if different from the real name.
19105soname_spec=$lt_soname_spec
19106
19107# Commands used to build and install an old-style archive.
19108RANLIB=$lt_RANLIB
19109old_archive_cmds=$lt_old_archive_cmds_RC
19110old_postinstall_cmds=$lt_old_postinstall_cmds
19111old_postuninstall_cmds=$lt_old_postuninstall_cmds
19112
19113# Create an old-style archive from a shared archive.
19114old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19115
19116# Create a temporary old-style archive to link instead of a shared archive.
19117old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19118
19119# Commands used to build and install a shared archive.
19120archive_cmds=$lt_archive_cmds_RC
19121archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19122postinstall_cmds=$lt_postinstall_cmds
19123postuninstall_cmds=$lt_postuninstall_cmds
19124
19125# Commands used to build a loadable module (assumed same as above if empty)
19126module_cmds=$lt_module_cmds_RC
19127module_expsym_cmds=$lt_module_expsym_cmds_RC
19128
19129# Commands to strip libraries.
19130old_striplib=$lt_old_striplib
19131striplib=$lt_striplib
19132
19133# Dependencies to place before the objects being linked to create a
19134# shared library.
19135predep_objects=$lt_predep_objects_RC
19136
19137# Dependencies to place after the objects being linked to create a
19138# shared library.
19139postdep_objects=$lt_postdep_objects_RC
19140
19141# Dependencies to place before the objects being linked to create a
19142# shared library.
19143predeps=$lt_predeps_RC
19144
19145# Dependencies to place after the objects being linked to create a
19146# shared library.
19147postdeps=$lt_postdeps_RC
19148
19149# The library search path used internally by the compiler when linking
19150# a shared library.
19151compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19152
19153# Method to check whether dependent libraries are shared objects.
19154deplibs_check_method=$lt_deplibs_check_method
19155
19156# Command to use when deplibs_check_method == file_magic.
19157file_magic_cmd=$lt_file_magic_cmd
19158
19159# Flag that allows shared libraries with undefined symbols to be built.
19160allow_undefined_flag=$lt_allow_undefined_flag_RC
19161
19162# Flag that forces no undefined symbols.
19163no_undefined_flag=$lt_no_undefined_flag_RC
19164
19165# Commands used to finish a libtool library installation in a directory.
19166finish_cmds=$lt_finish_cmds
19167
19168# Same as above, but a single script fragment to be evaled but not shown.
19169finish_eval=$lt_finish_eval
19170
19171# Take the output of nm and produce a listing of raw symbols and C names.
19172global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19173
19174# Transform the output of nm in a proper C declaration
19175global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19176
19177# Transform the output of nm in a C name address pair
19178global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19179
19180# This is the shared library runtime path variable.
19181runpath_var=$runpath_var
19182
19183# This is the shared library path variable.
19184shlibpath_var=$shlibpath_var
19185
19186# Is shlibpath searched before the hard-coded library search path?
19187shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19188
19189# How to hardcode a shared library path into an executable.
19190hardcode_action=$hardcode_action_RC
19191
19192# Whether we should hardcode library paths into libraries.
19193hardcode_into_libs=$hardcode_into_libs
19194
19195# Flag to hardcode \$libdir into a binary during linking.
19196# This must work even if \$libdir does not exist.
19197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19198
19199# If ld is used when linking, flag to hardcode \$libdir into
19200# a binary during linking. This must work even if \$libdir does
19201# not exist.
19202hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19203
19204# Whether we need a single -rpath flag with a separated argument.
19205hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19206
19207# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19208# resulting binary.
19209hardcode_direct=$hardcode_direct_RC
19210
19211# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19212# resulting binary.
19213hardcode_minus_L=$hardcode_minus_L_RC
19214
19215# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19216# the resulting binary.
19217hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19218
19219# Set to yes if building a shared library automatically hardcodes DIR into the library
19220# and all subsequent libraries and executables linked against it.
19221hardcode_automatic=$hardcode_automatic_RC
19222
19223# Variables whose values should be saved in libtool wrapper scripts and
19224# restored at relink time.
19225variables_saved_for_relink="$variables_saved_for_relink"
19226
19227# Whether libtool must link a program against all its dependency libraries.
19228link_all_deplibs=$link_all_deplibs_RC
19229
19230# Compile-time system search path for libraries
19231sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19232
19233# Run-time system search path for libraries
19234sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19235
19236# Fix the shell variable \$srcfile for the compiler.
19237fix_srcfile_path="$fix_srcfile_path_RC"
19238
19239# Set to yes if exported symbols are required.
19240always_export_symbols=$always_export_symbols_RC
19241
19242# The commands to list exported symbols.
19243export_symbols_cmds=$lt_export_symbols_cmds_RC
19244
19245# The commands to extract the exported symbol list from a shared archive.
19246extract_expsyms_cmds=$lt_extract_expsyms_cmds
19247
19248# Symbols that should not be listed in the preloaded symbols.
19249exclude_expsyms=$lt_exclude_expsyms_RC
19250
19251# Symbols that must always be exported.
19252include_expsyms=$lt_include_expsyms_RC
19253
19254# ### END LIBTOOL TAG CONFIG: $tagname
19255
19256__EOF__
19257
19258
19259else
19260  # If there is no Makefile yet, we rely on a make rule to execute
19261  # `config.status --recheck' to rerun these tests and create the
19262  # libtool script then.
19263  test -f Makefile && make "$ltmain"
19264fi
19265
19266
19267ac_ext=c
19268ac_cpp='$CPP $CPPFLAGS'
19269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19271ac_compiler_gnu=$ac_cv_c_compiler_gnu
19272
19273CC="$lt_save_CC"
19274
19275	;;
19276
19277      *)
19278	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19279	;;
19280      esac
19281
19282      # Append the new tag name to the list of available tags.
19283      if test -n "$tagname" ; then
19284      available_tags="$available_tags $tagname"
19285    fi
19286    fi
19287  done
19288  IFS="$lt_save_ifs"
19289
19290  # Now substitute the updated list of available tags.
19291  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19292    mv "${ofile}T" "$ofile"
19293    chmod +x "$ofile"
19294  else
19295    rm -f "${ofile}T"
19296    as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19297  fi
19298fi
19299
19300
19301
19302# This can be used to rebuild libtool when needed
19303LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19304
19305# Always use our own libtool.
19306LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19307
19308# Prevent multiple expansion
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328                       # (we build libtool for ourselves)
19329
19330
19331# -----------------------------------------------------------------------------
19332#
19333#  AC_LIB_LTDL
19334#
19335#       Even though libltdl is installed together with libtool, you may wish
19336#       to include libltdl in the distribution of your package, for the convenience
19337#       of users of your package that don't have libtool or libltdl installed.
19338#
19339#       The most simplistic way to add libltdl to your package is to copy the
19340#       source files, 'ltdl.c' and 'ltdl.h', to a source directory withing your
19341#       package and to build and link them along with the rest of your sources.
19342#
19343#       To do this, you must add a call to the 'AC_LIB_LTDL' macro to your package's
19344#       'configure.in' to perform the required configure time checks in order that
19345#       'ltdl.o' is built correctly.
19346#
19347#       This method does have its problems though: if you try to link the package
19348#       binaries with an installed libltdl, or a library which depends on libltdl,
19349#       you may have problems with duplicate symbol definitions.
19350#
19351#       In order to enable this flavor of libltdl, you should add the line
19352#       'AC_LIBLTDL_CONVENIENCE' to your `configure.in', before 'AC_PROG_LIBTOOL'.
19353#
19354#       In order to select the installable version of libltdl, you should add a
19355#       call of the macro 'AC_LIBLTDL_INSTALLABLE' to your 'configure.in' before
19356#       'AC_PROG_LIBTOOL'. This macro will check whether libltdl is already
19357#       installed and, if not, request the libltdl embedded in your package to be
19358#       built and installed.
19359#
19360#       Whatever macro you use, it is up to you to ensure that your 'configure.in'
19361#       will configure libltdl, using 'AC_CONFIG_SUBDIRS', and that your 'Makefile's
19362#       will start sub-makes within libltdl's directory, using automake's SUBDIRS,
19363#       for example. Both macros define the shell variables LIBLTDL, to the link flag
19364#       that you should use to link with libltdl, and LTDLINCL, to the preprocessor
19365#       flag that you should use to compile with programs that include 'ltdl.h'. It
19366#       is up to you to use 'AC_SUBST' to ensure that this variable will be available
19367#       in 'Makefile's, or add them to variables that are 'AC_SUBST'ed by default,
19368#       such as LIBS and CPPFLAGS.
19369#
19370#       So, when you want to link a program with libltdl, be it a convenience,
19371#       installed or installable library, just compile with '$(LTDLINCL)' and link
19372#       it with '$(LIBLTDL)', using libtool.
19373#
19374#       You should probably also add 'AC_LIBTOOL_DLOPEN' to your 'configure.in' before
19375#       'AC_PROG_LIBTOOL', otherwise libtool will assume no dlopening mechanism is
19376#       supported, and revert to dlpreopening, which is probably not what you want.
19377#
19378#       The following example shows you how to embed the convenience libltdl
19379#       in your package. In order to use the installable variant just replace
19380#       'AC_LIBLTDL_CONVENIENCE' with 'AC_LIBLTDL_INSTALLABLE'. We assume that libltdl
19381#       was embedded using 'libtoolize --ltdl':
19382#
19383#           configure.in:
19384#
19385#               ...
19386#               dnl Enable building of the convenience library
19387#               dnl and set LIBLTDL accordingly
19388#               AC_LIBLTDL_CONVENIENCE
19389#               dnl Substitute LTDLINCL and LIBLTDL in the Makefiles
19390#               AC_SUBST(LTDLINCL)
19391#               AC_SUBST(LIBLTDL)
19392#               dnl Check for dlopen support
19393#               AC_LIBTOOL_DLOPEN
19394#               dnl Configure libtool
19395#               AC_PROG_LIBTOOL
19396#               dnl Configure libltdl
19397#               AC_CONFIG_SUBDIRS(libltdl)
19398#               ...
19399#
19400#           Makefile.am:
19401#
19402#               ...
19403#               SUBDIRS = libltdl
19404#
19405#               INCLUDES = $(LTDLINCL)
19406#
19407#               myprog_LDFLAGS = -export-dynamic
19408#               # The quotes around -dlopen below fool automake <= 1.4 into accepting it
19409#               myprog_LDADD = $(LIBLTDL) "-dlopen" self "-dlopen" foo1.la
19410#               myprog_DEPENDENCIES = $(LIBLTDL) foo1.la
19411#               ...
19412#
19413# -----------------------------------------------------------------------------
19414
19415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19416$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19417if ${ac_cv_c_const+:} false; then :
19418  $as_echo_n "(cached) " >&6
19419else
19420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421/* end confdefs.h.  */
19422
19423int
19424main ()
19425{
19426
19427#ifndef __cplusplus
19428  /* Ultrix mips cc rejects this sort of thing.  */
19429  typedef int charset[2];
19430  const charset cs = { 0, 0 };
19431  /* SunOS 4.1.1 cc rejects this.  */
19432  char const *const *pcpcc;
19433  char **ppc;
19434  /* NEC SVR4.0.2 mips cc rejects this.  */
19435  struct point {int x, y;};
19436  static struct point const zero = {0,0};
19437  /* AIX XL C 1.02.0.0 rejects this.
19438     It does not let you subtract one const X* pointer from another in
19439     an arm of an if-expression whose if-part is not a constant
19440     expression */
19441  const char *g = "string";
19442  pcpcc = &g + (g ? g-g : 0);
19443  /* HPUX 7.0 cc rejects these. */
19444  ++pcpcc;
19445  ppc = (char**) pcpcc;
19446  pcpcc = (char const *const *) ppc;
19447  { /* SCO 3.2v4 cc rejects this sort of thing.  */
19448    char tx;
19449    char *t = &tx;
19450    char const *s = 0 ? (char *) 0 : (char const *) 0;
19451
19452    *t++ = 0;
19453    if (s) return 0;
19454  }
19455  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19456    int x[] = {25, 17};
19457    const int *foo = &x[0];
19458    ++foo;
19459  }
19460  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19461    typedef const int *iptr;
19462    iptr p = 0;
19463    ++p;
19464  }
19465  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19466       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19467    struct s { int j; const int *ap[3]; } bx;
19468    struct s *b = &bx; b->j = 5;
19469  }
19470  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19471    const int foo = 10;
19472    if (!foo) return 0;
19473  }
19474  return !cs[0] && !zero.x;
19475#endif
19476
19477  ;
19478  return 0;
19479}
19480_ACEOF
19481if ac_fn_c_try_compile "$LINENO"; then :
19482  ac_cv_c_const=yes
19483else
19484  ac_cv_c_const=no
19485fi
19486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487fi
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19489$as_echo "$ac_cv_c_const" >&6; }
19490if test $ac_cv_c_const = no; then
19491
19492$as_echo "#define const /**/" >>confdefs.h
19493
19494fi
19495
19496ac_header_dirent=no
19497for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19498  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19500$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19501if eval \${$as_ac_Header+:} false; then :
19502  $as_echo_n "(cached) " >&6
19503else
19504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505/* end confdefs.h.  */
19506#include <sys/types.h>
19507#include <$ac_hdr>
19508
19509int
19510main ()
19511{
19512if ((DIR *) 0)
19513return 0;
19514  ;
19515  return 0;
19516}
19517_ACEOF
19518if ac_fn_c_try_compile "$LINENO"; then :
19519  eval "$as_ac_Header=yes"
19520else
19521  eval "$as_ac_Header=no"
19522fi
19523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524fi
19525eval ac_res=\$$as_ac_Header
19526	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19527$as_echo "$ac_res" >&6; }
19528if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19529  cat >>confdefs.h <<_ACEOF
19530#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19531_ACEOF
19532
19533ac_header_dirent=$ac_hdr; break
19534fi
19535
19536done
19537# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19538if test $ac_header_dirent = dirent.h; then
19539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19540$as_echo_n "checking for library containing opendir... " >&6; }
19541if ${ac_cv_search_opendir+:} false; then :
19542  $as_echo_n "(cached) " >&6
19543else
19544  ac_func_search_save_LIBS=$LIBS
19545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546/* end confdefs.h.  */
19547
19548/* Override any GCC internal prototype to avoid an error.
19549   Use char because int might match the return type of a GCC
19550   builtin and then its argument prototype would still apply.  */
19551#ifdef __cplusplus
19552extern "C"
19553#endif
19554char opendir ();
19555int
19556main ()
19557{
19558return opendir ();
19559  ;
19560  return 0;
19561}
19562_ACEOF
19563for ac_lib in '' dir; do
19564  if test -z "$ac_lib"; then
19565    ac_res="none required"
19566  else
19567    ac_res=-l$ac_lib
19568    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19569  fi
19570  if ac_fn_c_try_link "$LINENO"; then :
19571  ac_cv_search_opendir=$ac_res
19572fi
19573rm -f core conftest.err conftest.$ac_objext \
19574    conftest$ac_exeext
19575  if ${ac_cv_search_opendir+:} false; then :
19576  break
19577fi
19578done
19579if ${ac_cv_search_opendir+:} false; then :
19580
19581else
19582  ac_cv_search_opendir=no
19583fi
19584rm conftest.$ac_ext
19585LIBS=$ac_func_search_save_LIBS
19586fi
19587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19588$as_echo "$ac_cv_search_opendir" >&6; }
19589ac_res=$ac_cv_search_opendir
19590if test "$ac_res" != no; then :
19591  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19592
19593fi
19594
19595else
19596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19597$as_echo_n "checking for library containing opendir... " >&6; }
19598if ${ac_cv_search_opendir+:} false; then :
19599  $as_echo_n "(cached) " >&6
19600else
19601  ac_func_search_save_LIBS=$LIBS
19602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603/* end confdefs.h.  */
19604
19605/* Override any GCC internal prototype to avoid an error.
19606   Use char because int might match the return type of a GCC
19607   builtin and then its argument prototype would still apply.  */
19608#ifdef __cplusplus
19609extern "C"
19610#endif
19611char opendir ();
19612int
19613main ()
19614{
19615return opendir ();
19616  ;
19617  return 0;
19618}
19619_ACEOF
19620for ac_lib in '' x; do
19621  if test -z "$ac_lib"; then
19622    ac_res="none required"
19623  else
19624    ac_res=-l$ac_lib
19625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19626  fi
19627  if ac_fn_c_try_link "$LINENO"; then :
19628  ac_cv_search_opendir=$ac_res
19629fi
19630rm -f core conftest.err conftest.$ac_objext \
19631    conftest$ac_exeext
19632  if ${ac_cv_search_opendir+:} false; then :
19633  break
19634fi
19635done
19636if ${ac_cv_search_opendir+:} false; then :
19637
19638else
19639  ac_cv_search_opendir=no
19640fi
19641rm conftest.$ac_ext
19642LIBS=$ac_func_search_save_LIBS
19643fi
19644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19645$as_echo "$ac_cv_search_opendir" >&6; }
19646ac_res=$ac_cv_search_opendir
19647if test "$ac_res" != no; then :
19648  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19649
19650fi
19651
19652fi
19653
19654# Check whether --enable-ltdl-install was given.
19655if test "${enable_ltdl_install+set}" = set; then :
19656  enableval=$enable_ltdl_install;
19657fi
19658
19659
19660 if test x"${enable_ltdl_install-no}" != xno; then
19661  INSTALL_LTDL_TRUE=
19662  INSTALL_LTDL_FALSE='#'
19663else
19664  INSTALL_LTDL_TRUE='#'
19665  INSTALL_LTDL_FALSE=
19666fi
19667
19668 if test x"${enable_ltdl_convenience-no}" != xno; then
19669  CONVENIENCE_LTDL_TRUE=
19670  CONVENIENCE_LTDL_FALSE='#'
19671else
19672  CONVENIENCE_LTDL_TRUE='#'
19673  CONVENIENCE_LTDL_FALSE=
19674fi
19675
19676
19677
19678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
19679$as_echo_n "checking which extension is used for loadable modules... " >&6; }
19680if ${libltdl_cv_shlibext+:} false; then :
19681  $as_echo_n "(cached) " >&6
19682else
19683
19684module=yes
19685eval libltdl_cv_shlibext=$shrext_cmds
19686
19687fi
19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19689$as_echo "$libltdl_cv_shlibext" >&6; }
19690if test -n "$libltdl_cv_shlibext"; then
19691
19692cat >>confdefs.h <<_ACEOF
19693#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19694_ACEOF
19695
19696fi
19697
19698
19699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
19700$as_echo_n "checking which variable specifies run-time library path... " >&6; }
19701if ${libltdl_cv_shlibpath_var+:} false; then :
19702  $as_echo_n "(cached) " >&6
19703else
19704  libltdl_cv_shlibpath_var="$shlibpath_var"
19705fi
19706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
19707$as_echo "$libltdl_cv_shlibpath_var" >&6; }
19708if test -n "$libltdl_cv_shlibpath_var"; then
19709
19710cat >>confdefs.h <<_ACEOF
19711#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19712_ACEOF
19713
19714fi
19715
19716
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19718$as_echo_n "checking for the default library search path... " >&6; }
19719if ${libltdl_cv_sys_search_path+:} false; then :
19720  $as_echo_n "(cached) " >&6
19721else
19722  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19723fi
19724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
19725$as_echo "$libltdl_cv_sys_search_path" >&6; }
19726if test -n "$libltdl_cv_sys_search_path"; then
19727  sys_search_path=
19728  for dir in $libltdl_cv_sys_search_path; do
19729    if test -z "$sys_search_path"; then
19730      sys_search_path="$dir"
19731    else
19732      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19733    fi
19734  done
19735
19736cat >>confdefs.h <<_ACEOF
19737#define LTDL_SYSSEARCHPATH "$sys_search_path"
19738_ACEOF
19739
19740fi
19741
19742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19743$as_echo_n "checking for objdir... " >&6; }
19744if ${libltdl_cv_objdir+:} false; then :
19745  $as_echo_n "(cached) " >&6
19746else
19747  libltdl_cv_objdir="$objdir"
19748  if test -n "$objdir"; then
19749    :
19750  else
19751    rm -f .libs 2>/dev/null
19752    mkdir .libs 2>/dev/null
19753    if test -d .libs; then
19754      libltdl_cv_objdir=.libs
19755    else
19756      # MS-DOS does not allow filenames that begin with a dot.
19757      libltdl_cv_objdir=_libs
19758    fi
19759  rmdir .libs 2>/dev/null
19760  fi
19761
19762fi
19763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
19764$as_echo "$libltdl_cv_objdir" >&6; }
19765
19766cat >>confdefs.h <<_ACEOF
19767#define LTDL_OBJDIR "$libltdl_cv_objdir/"
19768_ACEOF
19769
19770
19771
19772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19773$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19774if ${libltdl_cv_preloaded_symbols+:} false; then :
19775  $as_echo_n "(cached) " >&6
19776else
19777  if test -n "$lt_cv_sys_global_symbol_pipe"; then
19778    libltdl_cv_preloaded_symbols=yes
19779  else
19780    libltdl_cv_preloaded_symbols=no
19781  fi
19782
19783fi
19784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19785$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19786if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19787
19788$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19789
19790fi
19791
19792LIBADD_DL=
19793
19794ac_ext=c
19795ac_cpp='$CPP $CPPFLAGS'
19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798ac_compiler_gnu=$ac_cv_c_compiler_gnu
19799
19800
19801ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19802if test "x$ac_cv_func_shl_load" = xyes; then :
19803
19804$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19805
19806else
19807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19808$as_echo_n "checking for shl_load in -ldld... " >&6; }
19809if ${ac_cv_lib_dld_shl_load+:} false; then :
19810  $as_echo_n "(cached) " >&6
19811else
19812  ac_check_lib_save_LIBS=$LIBS
19813LIBS="-ldld  $LIBS"
19814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815/* end confdefs.h.  */
19816
19817/* Override any GCC internal prototype to avoid an error.
19818   Use char because int might match the return type of a GCC
19819   builtin and then its argument prototype would still apply.  */
19820#ifdef __cplusplus
19821extern "C"
19822#endif
19823char shl_load ();
19824int
19825main ()
19826{
19827return shl_load ();
19828  ;
19829  return 0;
19830}
19831_ACEOF
19832if ac_fn_c_try_link "$LINENO"; then :
19833  ac_cv_lib_dld_shl_load=yes
19834else
19835  ac_cv_lib_dld_shl_load=no
19836fi
19837rm -f core conftest.err conftest.$ac_objext \
19838    conftest$ac_exeext conftest.$ac_ext
19839LIBS=$ac_check_lib_save_LIBS
19840fi
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19842$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19843if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19844
19845$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19846
19847	LIBADD_DL="$LIBADD_DL -ldld"
19848else
19849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19850$as_echo_n "checking for dlopen in -ldl... " >&6; }
19851if ${ac_cv_lib_dl_dlopen+:} false; then :
19852  $as_echo_n "(cached) " >&6
19853else
19854  ac_check_lib_save_LIBS=$LIBS
19855LIBS="-ldl  $LIBS"
19856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857/* end confdefs.h.  */
19858
19859/* Override any GCC internal prototype to avoid an error.
19860   Use char because int might match the return type of a GCC
19861   builtin and then its argument prototype would still apply.  */
19862#ifdef __cplusplus
19863extern "C"
19864#endif
19865char dlopen ();
19866int
19867main ()
19868{
19869return dlopen ();
19870  ;
19871  return 0;
19872}
19873_ACEOF
19874if ac_fn_c_try_link "$LINENO"; then :
19875  ac_cv_lib_dl_dlopen=yes
19876else
19877  ac_cv_lib_dl_dlopen=no
19878fi
19879rm -f core conftest.err conftest.$ac_objext \
19880    conftest$ac_exeext conftest.$ac_ext
19881LIBS=$ac_check_lib_save_LIBS
19882fi
19883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19884$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19885if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19886
19887$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19888
19889	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19890else
19891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892/* end confdefs.h.  */
19893#if HAVE_DLFCN_H
19894#  include <dlfcn.h>
19895#endif
19896
19897int
19898main ()
19899{
19900dlopen(0, 0);
19901  ;
19902  return 0;
19903}
19904_ACEOF
19905if ac_fn_c_try_link "$LINENO"; then :
19906
19907$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19908 libltdl_cv_func_dlopen="yes"
19909else
19910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19911$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19912if ${ac_cv_lib_svld_dlopen+:} false; then :
19913  $as_echo_n "(cached) " >&6
19914else
19915  ac_check_lib_save_LIBS=$LIBS
19916LIBS="-lsvld  $LIBS"
19917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918/* end confdefs.h.  */
19919
19920/* Override any GCC internal prototype to avoid an error.
19921   Use char because int might match the return type of a GCC
19922   builtin and then its argument prototype would still apply.  */
19923#ifdef __cplusplus
19924extern "C"
19925#endif
19926char dlopen ();
19927int
19928main ()
19929{
19930return dlopen ();
19931  ;
19932  return 0;
19933}
19934_ACEOF
19935if ac_fn_c_try_link "$LINENO"; then :
19936  ac_cv_lib_svld_dlopen=yes
19937else
19938  ac_cv_lib_svld_dlopen=no
19939fi
19940rm -f core conftest.err conftest.$ac_objext \
19941    conftest$ac_exeext conftest.$ac_ext
19942LIBS=$ac_check_lib_save_LIBS
19943fi
19944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19945$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19946if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19947
19948$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19949
19950	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
19951else
19952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19953$as_echo_n "checking for dld_link in -ldld... " >&6; }
19954if ${ac_cv_lib_dld_dld_link+:} false; then :
19955  $as_echo_n "(cached) " >&6
19956else
19957  ac_check_lib_save_LIBS=$LIBS
19958LIBS="-ldld  $LIBS"
19959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960/* end confdefs.h.  */
19961
19962/* Override any GCC internal prototype to avoid an error.
19963   Use char because int might match the return type of a GCC
19964   builtin and then its argument prototype would still apply.  */
19965#ifdef __cplusplus
19966extern "C"
19967#endif
19968char dld_link ();
19969int
19970main ()
19971{
19972return dld_link ();
19973  ;
19974  return 0;
19975}
19976_ACEOF
19977if ac_fn_c_try_link "$LINENO"; then :
19978  ac_cv_lib_dld_dld_link=yes
19979else
19980  ac_cv_lib_dld_dld_link=no
19981fi
19982rm -f core conftest.err conftest.$ac_objext \
19983    conftest$ac_exeext conftest.$ac_ext
19984LIBS=$ac_check_lib_save_LIBS
19985fi
19986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19987$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19988if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19989
19990$as_echo "#define HAVE_DLD 1" >>confdefs.h
19991
19992	 	LIBADD_DL="$LIBADD_DL -ldld"
19993else
19994  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19995if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
19996
19997$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19998
19999fi
20000
20001
20002fi
20003
20004
20005fi
20006
20007
20008fi
20009rm -f core conftest.err conftest.$ac_objext \
20010    conftest$ac_exeext conftest.$ac_ext
20011
20012fi
20013
20014
20015fi
20016
20017
20018fi
20019
20020
20021if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20022then
20023  lt_save_LIBS="$LIBS"
20024  LIBS="$LIBS $LIBADD_DL"
20025  for ac_func in dlerror
20026do :
20027  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20028if test "x$ac_cv_func_dlerror" = xyes; then :
20029  cat >>confdefs.h <<_ACEOF
20030#define HAVE_DLERROR 1
20031_ACEOF
20032
20033fi
20034done
20035
20036  LIBS="$lt_save_LIBS"
20037fi
20038ac_ext=c
20039ac_cpp='$CPP $CPPFLAGS'
20040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042ac_compiler_gnu=$ac_cv_c_compiler_gnu
20043
20044
20045
20046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20047$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20048if ${ac_cv_sys_symbol_underscore+:} false; then :
20049  $as_echo_n "(cached) " >&6
20050else
20051  ac_cv_sys_symbol_underscore=no
20052  cat > conftest.$ac_ext <<EOF
20053void nm_test_func(){}
20054int main(){nm_test_func;return 0;}
20055EOF
20056  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20057  (eval $ac_compile) 2>&5
20058  ac_status=$?
20059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20060  test $ac_status = 0; }; then
20061    # Now try to grab the symbols.
20062    ac_nlist=conftest.nm
20063    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20064  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20065  ac_status=$?
20066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20067  test $ac_status = 0; } && test -s "$ac_nlist"; then
20068      # See whether the symbols have a leading underscore.
20069      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20070        ac_cv_sys_symbol_underscore=yes
20071      else
20072        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20073	  :
20074        else
20075	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20076        fi
20077      fi
20078    else
20079      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20080    fi
20081  else
20082    echo "configure: failed program was:" >&5
20083    cat conftest.c >&5
20084  fi
20085  rm -rf conftest*
20086
20087fi
20088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
20089$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
20090
20091
20092if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20093  if test x"$libltdl_cv_func_dlopen" = xyes ||
20094     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20096$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20097if ${libltdl_cv_need_uscore+:} false; then :
20098  $as_echo_n "(cached) " >&6
20099else
20100  libltdl_cv_need_uscore=unknown
20101          save_LIBS="$LIBS"
20102          LIBS="$LIBS $LIBADD_DL"
20103	  if test "$cross_compiling" = yes; then :
20104  libltdl_cv_need_uscore=cross
20105else
20106  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20107  lt_status=$lt_dlunknown
20108  cat > conftest.$ac_ext <<EOF
20109#line 20109 "configure"
20110#include "confdefs.h"
20111
20112#if HAVE_DLFCN_H
20113#include <dlfcn.h>
20114#endif
20115
20116#include <stdio.h>
20117
20118#ifdef RTLD_GLOBAL
20119#  define LT_DLGLOBAL		RTLD_GLOBAL
20120#else
20121#  ifdef DL_GLOBAL
20122#    define LT_DLGLOBAL		DL_GLOBAL
20123#  else
20124#    define LT_DLGLOBAL		0
20125#  endif
20126#endif
20127
20128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20129   find out it does not work in some platform. */
20130#ifndef LT_DLLAZY_OR_NOW
20131#  ifdef RTLD_LAZY
20132#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20133#  else
20134#    ifdef DL_LAZY
20135#      define LT_DLLAZY_OR_NOW		DL_LAZY
20136#    else
20137#      ifdef RTLD_NOW
20138#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20139#      else
20140#        ifdef DL_NOW
20141#          define LT_DLLAZY_OR_NOW	DL_NOW
20142#        else
20143#          define LT_DLLAZY_OR_NOW	0
20144#        endif
20145#      endif
20146#    endif
20147#  endif
20148#endif
20149
20150#ifdef __cplusplus
20151extern "C" void exit (int);
20152#endif
20153
20154void fnord() { int i=42;}
20155int main ()
20156{
20157  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20158  int status = $lt_dlunknown;
20159
20160  if (self)
20161    {
20162      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20163      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20164      /* dlclose (self); */
20165    }
20166
20167    exit (status);
20168}
20169EOF
20170  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20171  (eval $ac_link) 2>&5
20172  ac_status=$?
20173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20174  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20175    (./conftest; exit; ) 2>/dev/null
20176    lt_status=$?
20177    case x$lt_status in
20178      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20179      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20180      x$lt_unknown|x*)  ;;
20181    esac
20182  else :
20183    # compilation failed
20184
20185  fi
20186fi
20187rm -fr conftest*
20188
20189	  LIBS="$save_LIBS"
20190
20191fi
20192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20193$as_echo "$libltdl_cv_need_uscore" >&6; }
20194  fi
20195fi
20196
20197if test x"$libltdl_cv_need_uscore" = xyes; then
20198
20199$as_echo "#define NEED_USCORE 1" >>confdefs.h
20200
20201fi
20202
20203
20204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20205$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20206if ${libltdl_cv_sys_dlopen_deplibs+:} false; then :
20207  $as_echo_n "(cached) " >&6
20208else
20209  # PORTME does your system automatically load deplibs for dlopen?
20210  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20211  # For now, we just catch OSes we know something about -- in the
20212  # future, we'll try test this programmatically.
20213  libltdl_cv_sys_dlopen_deplibs=unknown
20214  case "$host_os" in
20215  aix3*|aix4.1.*|aix4.2.*)
20216    # Unknown whether this is true for these versions of AIX, but
20217    # we want this `case' here to explicitly catch those versions.
20218    libltdl_cv_sys_dlopen_deplibs=unknown
20219    ;;
20220  aix[45]*)
20221    libltdl_cv_sys_dlopen_deplibs=yes
20222    ;;
20223  darwin*)
20224    # Assuming the user has installed a libdl from somewhere, this is true
20225    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20226    libltdl_cv_sys_dlopen_deplibs=yes
20227    ;;
20228  kfreebsd*-gnu)
20229    libltdl_cv_sys_dlopen_deplibs=yes
20230    ;;
20231  gnu*)
20232    libltdl_cv_sys_dlopen_deplibs=yes
20233    ;;
20234  hpux10*|hpux11*)
20235    libltdl_cv_sys_dlopen_deplibs=yes
20236    ;;
20237  irix[12345]*|irix6.[01]*)
20238    # Catch all versions of IRIX before 6.2, and indicate that we don't
20239    # know how it worked for any of those versions.
20240    libltdl_cv_sys_dlopen_deplibs=unknown
20241    ;;
20242  irix*)
20243    # The case above catches anything before 6.2, and it's known that
20244    # at 6.2 and later dlopen does load deplibs.
20245    libltdl_cv_sys_dlopen_deplibs=yes
20246    ;;
20247  linux*)
20248    libltdl_cv_sys_dlopen_deplibs=yes
20249    ;;
20250  netbsd*)
20251    libltdl_cv_sys_dlopen_deplibs=yes
20252    ;;
20253  openbsd*)
20254    libltdl_cv_sys_dlopen_deplibs=yes
20255    ;;
20256  osf[1234]*)
20257    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20258    # it did *not* use an RPATH in a shared library to find objects the
20259    # library depends on, so we explictly say `no'.
20260    libltdl_cv_sys_dlopen_deplibs=no
20261    ;;
20262  osf5.0|osf5.0a|osf5.1)
20263    # dlopen *does* load deplibs and with the right loader patch applied
20264    # it even uses RPATH in a shared library to search for shared objects
20265    # that the library depends on, but there's no easy way to know if that
20266    # patch is installed.  Since this is the case, all we can really
20267    # say is unknown -- it depends on the patch being installed.  If
20268    # it is, this changes to `yes'.  Without it, it would be `no'.
20269    libltdl_cv_sys_dlopen_deplibs=unknown
20270    ;;
20271  osf*)
20272    # the two cases above should catch all versions of osf <= 5.1.  Read
20273    # the comments above for what we know about them.
20274    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20275    # is used to find them so we can finally say `yes'.
20276    libltdl_cv_sys_dlopen_deplibs=yes
20277    ;;
20278  solaris*)
20279    libltdl_cv_sys_dlopen_deplibs=yes
20280    ;;
20281  esac
20282
20283fi
20284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20285$as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
20286if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20287
20288$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20289
20290fi
20291
20292for ac_header in argz.h
20293do :
20294  ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
20295if test "x$ac_cv_header_argz_h" = xyes; then :
20296  cat >>confdefs.h <<_ACEOF
20297#define HAVE_ARGZ_H 1
20298_ACEOF
20299
20300fi
20301
20302done
20303
20304
20305ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
20306#  include <argz.h>
20307#endif
20308"
20309if test "x$ac_cv_type_error_t" = xyes; then :
20310
20311cat >>confdefs.h <<_ACEOF
20312#define HAVE_ERROR_T 1
20313_ACEOF
20314
20315
20316else
20317
20318$as_echo "#define error_t int" >>confdefs.h
20319
20320fi
20321
20322
20323for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20324do :
20325  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20326ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20327if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20328  cat >>confdefs.h <<_ACEOF
20329#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20330_ACEOF
20331
20332fi
20333done
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20355		  stdio.h unistd.h
20356do :
20357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20360  cat >>confdefs.h <<_ACEOF
20361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20362_ACEOF
20363
20364fi
20365
20366done
20367
20368for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
20369do :
20370  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20371ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20372if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20373  cat >>confdefs.h <<_ACEOF
20374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20375_ACEOF
20376
20377fi
20378
20379done
20380
20381for ac_header in string.h strings.h
20382do :
20383  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20384ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20386  cat >>confdefs.h <<_ACEOF
20387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20388_ACEOF
20389 break
20390fi
20391
20392done
20393
20394
20395for ac_func in strchr index
20396do :
20397  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20398ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20399if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20400  cat >>confdefs.h <<_ACEOF
20401#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20402_ACEOF
20403 break
20404fi
20405done
20406
20407for ac_func in strrchr rindex
20408do :
20409  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20410ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20411if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20412  cat >>confdefs.h <<_ACEOF
20413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20414_ACEOF
20415 break
20416fi
20417done
20418
20419for ac_func in memcpy bcopy
20420do :
20421  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20422ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20423if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20424  cat >>confdefs.h <<_ACEOF
20425#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20426_ACEOF
20427 break
20428fi
20429done
20430
20431for ac_func in memmove strcmp
20432do :
20433  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20434ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20435if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20436  cat >>confdefs.h <<_ACEOF
20437#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20438_ACEOF
20439
20440fi
20441done
20442
20443for ac_func in closedir opendir readdir
20444do :
20445  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20446ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20447if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20448  cat >>confdefs.h <<_ACEOF
20449#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20450_ACEOF
20451
20452fi
20453done
20454
20455                           # (we need the ltdl libtool library)
20456                # (see PROGRAMMING NOTE above)
20457
20458
20459# -----------------------------------------------------------------------------
20460# (See comments in the 'AC_CHECK_LIB' Libraries section further below)
20461# -----------------------------------------------------------------------------
20462{ $as_echo "$as_me:${as_lineno-$LINENO}: (use of lt_dlopen forced by Hercules Dynamic Loader requirement) " >&5
20463$as_echo "$as_me: (use of lt_dlopen forced by Hercules Dynamic Loader requirement) " >&6;}
20464if test "x${with_included_ltdl}" = "xno"; then :
20465  hc_cv_have_lt_dlopen=no
20466else
20467  hc_cv_have_lt_dlopen=yes
20468fi
20469if test "x${ac_cv_func_dlopen}" = "xyes" -o "x${ac_cv_lib_dl_dlopen}" = "xyes"; then :
20470  hc_cv_have_dlopen=yes
20471else
20472  hc_cv_have_dlopen=no
20473fi
20474
20475
20476
20477
20478
20479
20480
20481    if test "$lt_cv_prog_gnu_ld" = "yes"; then
20482
20483        LDFLAGS="$LDFLAGS -Wl,--warn-common"
20484    fi
20485                    # (add duplicate symbols option to LDFLAGS)
20486
20487# -----------------------------------------------------------------------------
20488#  The following is a "global error" flag used to defer aborting configure
20489#  until after ALL errors have been detected/reported.
20490# -----------------------------------------------------------------------------
20491
20492hc_error=no
20493
20494###############################################################################
20495#   Autoheader templates
20496###############################################################################
20497
20498#  All AC_DEFINE() macros used within autoconf (to define pre-processor vars
20499#  used during the actual build process) must have corresponding AH_TEMPLATE
20500#  statements coded somewhere. We place them all here simply for convenience.
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543###############################################################################
20544#   OS-specific settings that we can't figure out any other way (yet)
20545###############################################################################
20546
20547#
20548#  Determine what type of host we're building on...
20549#
20550
20551case "$host_os" in
20552
20553    linux*)
20554
20555        hc_cv_is_nix=yes
20556        hc_cv_is_windows=no
20557        hc_cv_is_mingw32=no
20558        hc_cv_is_apple=no
20559        ;;
20560
20561    mingw*)
20562
20563        hc_cv_is_nix=no
20564        hc_cv_is_windows=yes
20565        hc_cv_is_mingw32=yes
20566        hc_cv_is_apple=no
20567        ;;
20568
20569    cygwin*)
20570
20571        hc_cv_is_nix=no
20572        hc_cv_is_windows=yes
20573        hc_cv_is_mingw32=no
20574        hc_cv_is_apple=no
20575        ;;
20576
20577    darwin*)
20578
20579        if test $host_vendor = apple; then
20580
20581            hc_cv_is_nix=no
20582            hc_cv_is_windows=no
20583            hc_cv_is_mingw32=no
20584            hc_cv_is_apple=yes
20585
20586        else
20587
20588            hc_cv_is_nix=no
20589            hc_cv_is_windows=no
20590            hc_cv_is_mingw32=no
20591            hc_cv_is_apple=no
20592
20593        fi
20594        ;;
20595
20596    *bsd*|*dragonfly*)
20597        hc_cv_is_nix=yes
20598        hc_cv_is_windows=no
20599        hc_cv_is_mingw32=no
20600        hc_cv_is_apple=no
20601        ;;
20602
20603    *)
20604        hc_cv_is_nix=no
20605        hc_cv_is_windows=no
20606        hc_cv_is_mingw32=no
20607        hc_cv_is_apple=no
20608        ;;
20609esac
20610
20611#------------------------------------------------------#
20612#  Hard-coded host-operating-system-specific settings  #
20613#  that we have no other/easy way to figure out...     #
20614#------------------------------------------------------#
20615
20616if test "$hc_cv_is_nix"        = "yes"; then
20617
20618    hc_cv_build_hercifc=yes
20619    hc_cv_non_unique_gettimeofday=no
20620
20621elif test "$hc_cv_is_windows"  = "yes"; then
20622
20623    hc_cv_build_hercifc=no
20624    hc_cv_non_unique_gettimeofday=yes
20625
20626elif test "$hc_cv_is_apple"    = "yes"; then
20627
20628    hc_cv_build_hercifc=yes
20629    hc_cv_non_unique_gettimeofday=no
20630
20631else
20632    hc_cv_build_hercifc=no
20633    hc_cv_non_unique_gettimeofday=no
20634fi
20635
20636###############################################################################
20637#   Checks for REQUIRED (non-optional) header files...
20638###############################################################################
20639
20640#  PROGRAMMING NOTE: We use 'AC_CHECK_HEADER' here (singular) since we don't
20641#  care whether 'HAVE_XXX' gets #defined or not since, because these are re-
20642#  quired headers, if any of them are not found, we abort and thus we don't
20643#  need to have any 'HAVE_XXX' pre-processor #defined entered into config.h
20644#  (because we can't build Herc at all if any of them don't happen to exist)
20645
20646ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
20647if test "x$ac_cv_header_ctype_h" = xyes; then :
20648
20649else
20650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'ctype.h' not found      " >&5
20651$as_echo "ERROR: Required header 'ctype.h' not found      " >&6; }; hc_error=yes
20652fi
20653
20654
20655ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
20656if test "x$ac_cv_header_errno_h" = xyes; then :
20657
20658else
20659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'errno.h' not found      " >&5
20660$as_echo "ERROR: Required header 'errno.h' not found      " >&6; }; hc_error=yes
20661fi
20662
20663
20664ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
20665if test "x$ac_cv_header_fcntl_h" = xyes; then :
20666
20667else
20668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'fcntl.h' not found      " >&5
20669$as_echo "ERROR: Required header 'fcntl.h' not found      " >&6; }; hc_error=yes
20670fi
20671
20672
20673ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
20674if test "x$ac_cv_header_limits_h" = xyes; then :
20675
20676else
20677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'limits.h' not found     " >&5
20678$as_echo "ERROR: Required header 'limits.h' not found     " >&6; }; hc_error=yes
20679fi
20680
20681
20682ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
20683if test "x$ac_cv_header_setjmp_h" = xyes; then :
20684
20685else
20686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'setjmp.h' not found     " >&5
20687$as_echo "ERROR: Required header 'setjmp.h' not found     " >&6; }; hc_error=yes
20688fi
20689
20690
20691ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20692if test "x$ac_cv_header_stdarg_h" = xyes; then :
20693
20694else
20695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'stdarg.h' not found     " >&5
20696$as_echo "ERROR: Required header 'stdarg.h' not found     " >&6; }; hc_error=yes
20697fi
20698
20699
20700ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
20701if test "x$ac_cv_header_stdio_h" = xyes; then :
20702
20703else
20704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'stdio.h' not found      " >&5
20705$as_echo "ERROR: Required header 'stdio.h' not found      " >&6; }; hc_error=yes
20706fi
20707
20708
20709ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20710if test "x$ac_cv_header_stdlib_h" = xyes; then :
20711
20712else
20713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'stdlib.h' not found     " >&5
20714$as_echo "ERROR: Required header 'stdlib.h' not found     " >&6; }; hc_error=yes
20715fi
20716
20717
20718ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
20719if test "x$ac_cv_header_string_h" = xyes; then :
20720
20721else
20722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'string.h' not found     " >&5
20723$as_echo "ERROR: Required header 'string.h' not found     " >&6; }; hc_error=yes
20724fi
20725
20726
20727ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
20728if test "x$ac_cv_header_time_h" = xyes; then :
20729
20730else
20731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'time.h' not found       " >&5
20732$as_echo "ERROR: Required header 'time.h' not found       " >&6; }; hc_error=yes
20733fi
20734
20735
20736ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20737if test "x$ac_cv_header_unistd_h" = xyes; then :
20738
20739else
20740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'unistd.h' not found     " >&5
20741$as_echo "ERROR: Required header 'unistd.h' not found     " >&6; }; hc_error=yes
20742fi
20743
20744
20745ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
20746if test "x$ac_cv_header_sys_stat_h" = xyes; then :
20747
20748else
20749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'sys/stat.h' not found   " >&5
20750$as_echo "ERROR: Required header 'sys/stat.h' not found   " >&6; }; hc_error=yes
20751fi
20752
20753
20754ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
20755if test "x$ac_cv_header_sys_time_h" = xyes; then :
20756
20757else
20758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'sys/time.h' not found   " >&5
20759$as_echo "ERROR: Required header 'sys/time.h' not found   " >&6; }; hc_error=yes
20760fi
20761
20762
20763ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
20764if test "x$ac_cv_header_sys_types_h" = xyes; then :
20765
20766else
20767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'sys/types.h' not found  " >&5
20768$as_echo "ERROR: Required header 'sys/types.h' not found  " >&6; }; hc_error=yes
20769fi
20770
20771
20772
20773#  PROGRAMMING NOTE: the pthread.h header only required if this is not
20774#  an fthreads build. Thus we delay aborting until later once we know
20775#  (if this is a windows build; otherwise we abort right away)
20776
20777ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20778if test "x$ac_cv_header_pthread_h" = xyes; then :
20779  hc_cv_have_pthread_h=yes
20780else
20781
20782        if test "$hc_cv_is_windows" = "yes"; then
20783
20784            hc_cv_alt_pthread_location=/usr/Pthreads
20785
20786            { $as_echo "$as_me:${as_lineno-$LINENO}: looking for pthread.h in ${hc_cv_alt_pthread_location} " >&5
20787$as_echo "$as_me: looking for pthread.h in ${hc_cv_alt_pthread_location} " >&6;}
20788
20789            hc_temp=$CFLAGS
20790            CFLAGS="$CFLAGS -I${hc_cv_alt_pthread_location}"
20791
20792            ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20793if test "x$ac_cv_header_pthread_h" = xyes; then :
20794  hc_cv_have_pthread_h=yes
20795else
20796  hc_cv_have_pthread_h=no
20797
20798fi
20799
20800
20801
20802            CFLAGS=$hc_temp
20803
20804        else
20805            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'pthread.h' not found " >&5
20806$as_echo "ERROR: Required header 'pthread.h' not found " >&6; }
20807            hc_error=yes
20808        fi
20809
20810
20811fi
20812
20813
20814
20815cat >confcache <<\_ACEOF
20816# This file is a shell script that caches the results of configure
20817# tests run on this system so they can be shared between configure
20818# scripts and configure runs, see configure's option --config-cache.
20819# It is not useful on other systems.  If it contains results you don't
20820# want to keep, you may remove or edit it.
20821#
20822# config.status only pays attention to the cache file if you give it
20823# the --recheck option to rerun configure.
20824#
20825# `ac_cv_env_foo' variables (set or unset) will be overridden when
20826# loading this file, other *unset* `ac_cv_foo' will be assigned the
20827# following values.
20828
20829_ACEOF
20830
20831# The following way of writing the cache mishandles newlines in values,
20832# but we know of no workaround that is simple, portable, and efficient.
20833# So, we kill variables containing newlines.
20834# Ultrix sh set writes to stderr and can't be redirected directly,
20835# and sets the high bit in the cache file unless we assign to the vars.
20836(
20837  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20838    eval ac_val=\$$ac_var
20839    case $ac_val in #(
20840    *${as_nl}*)
20841      case $ac_var in #(
20842      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20843$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20844      esac
20845      case $ac_var in #(
20846      _ | IFS | as_nl) ;; #(
20847      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20848      *) { eval $ac_var=; unset $ac_var;} ;;
20849      esac ;;
20850    esac
20851  done
20852
20853  (set) 2>&1 |
20854    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20855    *${as_nl}ac_space=\ *)
20856      # `set' does not quote correctly, so add quotes: double-quote
20857      # substitution turns \\\\ into \\, and sed turns \\ into \.
20858      sed -n \
20859	"s/'/'\\\\''/g;
20860	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20861      ;; #(
20862    *)
20863      # `set' quotes correctly as required by POSIX, so do not add quotes.
20864      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20865      ;;
20866    esac |
20867    sort
20868) |
20869  sed '
20870     /^ac_cv_env_/b end
20871     t clear
20872     :clear
20873     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20874     t end
20875     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20876     :end' >>confcache
20877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20878  if test -w "$cache_file"; then
20879    if test "x$cache_file" != "x/dev/null"; then
20880      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20881$as_echo "$as_me: updating cache $cache_file" >&6;}
20882      if test ! -f "$cache_file" || test -h "$cache_file"; then
20883	cat confcache >"$cache_file"
20884      else
20885        case $cache_file in #(
20886        */* | ?:*)
20887	  mv -f confcache "$cache_file"$$ &&
20888	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20889        *)
20890	  mv -f confcache "$cache_file" ;;
20891	esac
20892      fi
20893    fi
20894  else
20895    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20896$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20897  fi
20898fi
20899rm -f confcache
20900
20901###############################################################################
20902#   Checks for optional (non-required) header files...
20903###############################################################################
20904
20905#  PROGRAMMING NOTE: We use 'AC_CHECK_HEADERS' here (plural) to cause autoconf
20906#  to automatically add a #define/#undef 'HAVE_XXX' statement into config.h to
20907#  let us know whether the header exists on this system or not (since, because
20908#  these are optional headers, we are still able to successfully build Herc if
20909#  they don't happen to exist). The 'hc_cv_have_xxx' variables are only defined
20910#  in case other parts of configure.ac need to  know whether the header exists
20911#  or not without having to do their own AC_CHECK_HEADERS (since we've already
20912#  done it).
20913
20914#------------------------------------------------------------------------------
20915#  PROGRAMMING NOTE: on Darwin sys/socket.h must be included before
20916#  net/if.h, net/route.h, or netinet/in.h can be #included, and on OS X 10.3
20917#  (but not 10.4) sys/types.h must be #included before sys/socket.h. Thus
20918#  the below four header checks are treated specially. If we ever drop support
20919#  for OS X 10.3, a lot of this cruft can be removed, not just here but
20920#  anywhere we find ourselves manually including sys/types.h.
20921
20922#  PROGRAMMING NOTE: on *BSD sys/socket.h must be included before net/if.h,
20923#  net/route.h, or netinet/in.h can be #included.
20924
20925for ac_header in sys/socket.h
20926do :
20927  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
20928    #include <sys/types.h>
20929
20930"
20931if test "x$ac_cv_header_sys_socket_h" = xyes; then :
20932  cat >>confdefs.h <<_ACEOF
20933#define HAVE_SYS_SOCKET_H 1
20934_ACEOF
20935 hc_cv_have_sys_socket_h=yes
20936else
20937  hc_cv_have_sys_socket_h=no
20938fi
20939
20940done
20941
20942for ac_header in net/if.h
20943do :
20944  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
20945    #include <sys/types.h>
20946    #if HAVE_SYS_SOCKET_H
20947    #include <sys/socket.h>
20948    #endif
20949
20950"
20951if test "x$ac_cv_header_net_if_h" = xyes; then :
20952  cat >>confdefs.h <<_ACEOF
20953#define HAVE_NET_IF_H 1
20954_ACEOF
20955 hc_cv_have_net_if_h=yes
20956else
20957  hc_cv_have_net_if_h=no
20958fi
20959
20960done
20961
20962for ac_header in netinet/in.h
20963do :
20964  ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
20965    #include <sys/types.h>
20966    #if HAVE_SYS_SOCKET_H
20967    #include <sys/socket.h>
20968    #endif
20969
20970"
20971if test "x$ac_cv_header_netinet_in_h" = xyes; then :
20972  cat >>confdefs.h <<_ACEOF
20973#define HAVE_NETINET_IN_H 1
20974_ACEOF
20975 hc_cv_have_netinet_in_h=yes
20976else
20977  hc_cv_have_netinet_in_h=no
20978fi
20979
20980done
20981
20982for ac_header in netinet/tcp.h
20983do :
20984  ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
20985    #include <sys/types.h>
20986    #if HAVE_SYS_SOCKET_H
20987    #include <sys/socket.h>
20988    #endif
20989
20990"
20991if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
20992  cat >>confdefs.h <<_ACEOF
20993#define HAVE_NETINET_TCP_H 1
20994_ACEOF
20995 hc_cv_have_netinet_tcp_h=yes
20996else
20997  hc_cv_have_netinet_tcp_h=no
20998fi
20999
21000done
21001
21002for ac_header in net/route.h
21003do :
21004  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
21005    #include <sys/types.h>
21006    #if HAVE_SYS_SOCKET_H
21007    #include <sys/socket.h>
21008    #endif
21009
21010"
21011if test "x$ac_cv_header_net_route_h" = xyes; then :
21012  cat >>confdefs.h <<_ACEOF
21013#define HAVE_NET_ROUTE_H 1
21014_ACEOF
21015 hc_cv_have_net_route_h=yes
21016else
21017  hc_cv_have_net_route_h=no
21018fi
21019
21020done
21021
21022#------------------------------------------------------------------------------
21023
21024for ac_header in arpa/inet.h
21025do :
21026  ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
21027if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
21028  cat >>confdefs.h <<_ACEOF
21029#define HAVE_ARPA_INET_H 1
21030_ACEOF
21031 hc_cv_have_arpa_inet_h=yes
21032else
21033  hc_cv_have_arpa_inet_h=no
21034fi
21035
21036done
21037
21038for ac_header in linux/if_tun.h
21039do :
21040  ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
21041if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
21042  cat >>confdefs.h <<_ACEOF
21043#define HAVE_LINUX_IF_TUN_H 1
21044_ACEOF
21045 hc_cv_have_linux_if_tun_h=yes
21046else
21047  hc_cv_have_linux_if_tun_h=no
21048fi
21049
21050done
21051
21052for ac_header in sys/ioctl.h
21053do :
21054  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
21055if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
21056  cat >>confdefs.h <<_ACEOF
21057#define HAVE_SYS_IOCTL_H 1
21058_ACEOF
21059 hc_cv_have_sys_ioctl_h=yes
21060else
21061  hc_cv_have_sys_ioctl_h=no
21062fi
21063
21064done
21065
21066for ac_header in sys/mman.h
21067do :
21068  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
21069if test "x$ac_cv_header_sys_mman_h" = xyes; then :
21070  cat >>confdefs.h <<_ACEOF
21071#define HAVE_SYS_MMAN_H 1
21072_ACEOF
21073 hc_cv_have_sys_mman_h=yes
21074else
21075  hc_cv_have_sys_mman_h=no
21076fi
21077
21078done
21079
21080
21081#------------------------------------------------------------------------------
21082#  PROGRAMMING NOTE: on *BSD systems sys/param.h must be #included before
21083#  sys/mount.h as it contains the #define of NGROUPS.
21084
21085for ac_header in sys/param.h
21086do :
21087  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
21088if test "x$ac_cv_header_sys_param_h" = xyes; then :
21089  cat >>confdefs.h <<_ACEOF
21090#define HAVE_SYS_PARAM_H 1
21091_ACEOF
21092 hc_cv_have_sys_param_h=yes
21093else
21094  hc_cv_have_sys_param_h=no
21095fi
21096
21097done
21098
21099for ac_header in sys/mount.h
21100do :
21101  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
21102    #if HAVE_SYS_PARAM_H
21103    #include <sys/param.h>
21104    #endif
21105
21106"
21107if test "x$ac_cv_header_sys_mount_h" = xyes; then :
21108  cat >>confdefs.h <<_ACEOF
21109#define HAVE_SYS_MOUNT_H 1
21110_ACEOF
21111 hc_cv_have_sys_mount_h=yes
21112else
21113  hc_cv_have_sys_mount_h=no
21114fi
21115
21116done
21117
21118#------------------------------------------------------------------------------
21119
21120for ac_header in sys/mtio.h
21121do :
21122  ac_fn_c_check_header_mongrel "$LINENO" "sys/mtio.h" "ac_cv_header_sys_mtio_h" "$ac_includes_default"
21123if test "x$ac_cv_header_sys_mtio_h" = xyes; then :
21124  cat >>confdefs.h <<_ACEOF
21125#define HAVE_SYS_MTIO_H 1
21126_ACEOF
21127 hc_cv_have_sys_mtio_h=yes
21128else
21129  hc_cv_have_sys_mtio_h=no
21130fi
21131
21132done
21133
21134for ac_header in sys/resource.h
21135do :
21136  ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
21137if test "x$ac_cv_header_sys_resource_h" = xyes; then :
21138  cat >>confdefs.h <<_ACEOF
21139#define HAVE_SYS_RESOURCE_H 1
21140_ACEOF
21141 hc_cv_have_sys_resource_h=yes
21142else
21143  hc_cv_have_sys_resource_h=no
21144fi
21145
21146done
21147
21148for ac_header in sys/uio.h
21149do :
21150  ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
21151if test "x$ac_cv_header_sys_uio_h" = xyes; then :
21152  cat >>confdefs.h <<_ACEOF
21153#define HAVE_SYS_UIO_H 1
21154_ACEOF
21155 hc_cv_have_sys_uio_h=yes
21156else
21157  hc_cv_have_sys_uio_h=no
21158fi
21159
21160done
21161
21162for ac_header in sys/utsname.h
21163do :
21164  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
21165if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
21166  cat >>confdefs.h <<_ACEOF
21167#define HAVE_SYS_UTSNAME_H 1
21168_ACEOF
21169 hc_cv_have_sys_utsname_h=yes
21170else
21171  hc_cv_have_sys_utsname_h=no
21172fi
21173
21174done
21175
21176for ac_header in sys/wait.h
21177do :
21178  ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
21179if test "x$ac_cv_header_sys_wait_h" = xyes; then :
21180  cat >>confdefs.h <<_ACEOF
21181#define HAVE_SYS_WAIT_H 1
21182_ACEOF
21183 hc_cv_have_sys_wait_h=yes
21184else
21185  hc_cv_have_sys_wait_h=no
21186fi
21187
21188done
21189
21190for ac_header in sys/un.h
21191do :
21192  ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
21193if test "x$ac_cv_header_sys_un_h" = xyes; then :
21194  cat >>confdefs.h <<_ACEOF
21195#define HAVE_SYS_UN_H 1
21196_ACEOF
21197 hc_cv_have_sys_un_h=yes
21198else
21199  hc_cv_have_sys_un_h=no
21200fi
21201
21202done
21203
21204for ac_header in byteswap.h
21205do :
21206  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
21207if test "x$ac_cv_header_byteswap_h" = xyes; then :
21208  cat >>confdefs.h <<_ACEOF
21209#define HAVE_BYTESWAP_H 1
21210_ACEOF
21211 hc_cv_have_byteswap_h=yes
21212else
21213  hc_cv_have_byteswap_h=no
21214fi
21215
21216done
21217
21218for ac_header in bzlib.h
21219do :
21220  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
21221if test "x$ac_cv_header_bzlib_h" = xyes; then :
21222  cat >>confdefs.h <<_ACEOF
21223#define HAVE_BZLIB_H 1
21224_ACEOF
21225 hc_cv_have_bzlib_h=yes
21226else
21227  hc_cv_have_bzlib_h=no
21228fi
21229
21230done
21231
21232for ac_header in dlfcn.h
21233do :
21234  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21235if test "x$ac_cv_header_dlfcn_h" = xyes; then :
21236  cat >>confdefs.h <<_ACEOF
21237#define HAVE_DLFCN_H 1
21238_ACEOF
21239 hc_cv_have_dlfcn_h=yes
21240else
21241  hc_cv_have_dlfcn_h=no
21242fi
21243
21244done
21245
21246for ac_header in inttypes.h
21247do :
21248  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21249if test "x$ac_cv_header_inttypes_h" = xyes; then :
21250  cat >>confdefs.h <<_ACEOF
21251#define HAVE_INTTYPES_H 1
21252_ACEOF
21253 hc_cv_have_inttypes_h=yes
21254else
21255  hc_cv_have_inttypes_h=no
21256fi
21257
21258done
21259
21260for ac_header in iconv.h
21261do :
21262  ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
21263if test "x$ac_cv_header_iconv_h" = xyes; then :
21264  cat >>confdefs.h <<_ACEOF
21265#define HAVE_ICONV_H 1
21266_ACEOF
21267 hc_cv_have_iconv_h=yes
21268else
21269  hc_cv_have_iconv_h=no
21270fi
21271
21272done
21273
21274for ac_header in ltdl.h
21275do :
21276  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
21277if test "x$ac_cv_header_ltdl_h" = xyes; then :
21278  cat >>confdefs.h <<_ACEOF
21279#define HAVE_LTDL_H 1
21280_ACEOF
21281 hc_cv_have_ltdl_h=yes
21282else
21283  hc_cv_have_ltdl_h=no
21284fi
21285
21286done
21287
21288for ac_header in malloc.h
21289do :
21290  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
21291if test "x$ac_cv_header_malloc_h" = xyes; then :
21292  cat >>confdefs.h <<_ACEOF
21293#define HAVE_MALLOC_H 1
21294_ACEOF
21295 hc_cv_have_malloc_h=yes
21296else
21297  hc_cv_have_malloc_h=no
21298fi
21299
21300done
21301
21302for ac_header in math.h
21303do :
21304  ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
21305if test "x$ac_cv_header_math_h" = xyes; then :
21306  cat >>confdefs.h <<_ACEOF
21307#define HAVE_MATH_H 1
21308_ACEOF
21309 hc_cv_have_math_h=yes
21310else
21311  hc_cv_have_math_h=no
21312fi
21313
21314done
21315
21316for ac_header in netdb.h
21317do :
21318  ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
21319if test "x$ac_cv_header_netdb_h" = xyes; then :
21320  cat >>confdefs.h <<_ACEOF
21321#define HAVE_NETDB_H 1
21322_ACEOF
21323 hc_cv_have_netdb_h=yes
21324else
21325  hc_cv_have_netdb_h=no
21326fi
21327
21328done
21329
21330for ac_header in pwd.h
21331do :
21332  ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
21333if test "x$ac_cv_header_pwd_h" = xyes; then :
21334  cat >>confdefs.h <<_ACEOF
21335#define HAVE_PWD_H 1
21336_ACEOF
21337 hc_cv_have_pwd_h=yes
21338else
21339  hc_cv_have_pwd_h=no
21340fi
21341
21342done
21343
21344for ac_header in regex.h
21345do :
21346  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21347if test "x$ac_cv_header_regex_h" = xyes; then :
21348  cat >>confdefs.h <<_ACEOF
21349#define HAVE_REGEX_H 1
21350_ACEOF
21351 hc_cv_have_regex_h=yes
21352else
21353  hc_cv_have_regex_h=no
21354fi
21355
21356done
21357
21358for ac_header in sched.h
21359do :
21360  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21361if test "x$ac_cv_header_sched_h" = xyes; then :
21362  cat >>confdefs.h <<_ACEOF
21363#define HAVE_SCHED_H 1
21364_ACEOF
21365 hc_cv_have_sched_h=yes
21366else
21367  hc_cv_have_sched_h=no
21368fi
21369
21370done
21371
21372for ac_header in signal.h
21373do :
21374  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
21375if test "x$ac_cv_header_signal_h" = xyes; then :
21376  cat >>confdefs.h <<_ACEOF
21377#define HAVE_SIGNAL_H 1
21378_ACEOF
21379 hc_cv_have_signal_h=yes
21380else
21381  hc_cv_have_signal_h=no
21382fi
21383
21384done
21385
21386for ac_header in termios.h
21387do :
21388  ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21389if test "x$ac_cv_header_termios_h" = xyes; then :
21390  cat >>confdefs.h <<_ACEOF
21391#define HAVE_TERMIOS_H 1
21392_ACEOF
21393 hc_cv_have_termios_h=yes
21394else
21395  hc_cv_have_termios_h=no
21396fi
21397
21398done
21399
21400for ac_header in time.h
21401do :
21402  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
21403if test "x$ac_cv_header_time_h" = xyes; then :
21404  cat >>confdefs.h <<_ACEOF
21405#define HAVE_TIME_H 1
21406_ACEOF
21407 hc_cv_have_time_h=yes
21408else
21409  hc_cv_have_time_h=no
21410fi
21411
21412done
21413
21414for ac_header in zlib.h
21415do :
21416  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21417if test "x$ac_cv_header_zlib_h" = xyes; then :
21418  cat >>confdefs.h <<_ACEOF
21419#define HAVE_ZLIB_H 1
21420_ACEOF
21421 hc_cv_have_zlib_h=yes
21422else
21423  hc_cv_have_zlib_h=no
21424fi
21425
21426done
21427
21428for ac_header in sys/capability.h
21429do :
21430  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
21431if test "x$ac_cv_header_sys_capability_h" = xyes; then :
21432  cat >>confdefs.h <<_ACEOF
21433#define HAVE_SYS_CAPABILITY_H 1
21434_ACEOF
21435 hc_cv_have_sys_capa_h=yes
21436else
21437  hc_cv_have_sys_capa_h=no
21438fi
21439
21440done
21441
21442for ac_header in sys/prctl.h
21443do :
21444  ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
21445if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
21446  cat >>confdefs.h <<_ACEOF
21447#define HAVE_SYS_PRCTL_H 1
21448_ACEOF
21449 hc_cv_have_sys_prctl_h=yes
21450else
21451  hc_cv_have_sys_prctl_h=no
21452fi
21453
21454done
21455
21456
21457cat >confcache <<\_ACEOF
21458# This file is a shell script that caches the results of configure
21459# tests run on this system so they can be shared between configure
21460# scripts and configure runs, see configure's option --config-cache.
21461# It is not useful on other systems.  If it contains results you don't
21462# want to keep, you may remove or edit it.
21463#
21464# config.status only pays attention to the cache file if you give it
21465# the --recheck option to rerun configure.
21466#
21467# `ac_cv_env_foo' variables (set or unset) will be overridden when
21468# loading this file, other *unset* `ac_cv_foo' will be assigned the
21469# following values.
21470
21471_ACEOF
21472
21473# The following way of writing the cache mishandles newlines in values,
21474# but we know of no workaround that is simple, portable, and efficient.
21475# So, we kill variables containing newlines.
21476# Ultrix sh set writes to stderr and can't be redirected directly,
21477# and sets the high bit in the cache file unless we assign to the vars.
21478(
21479  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21480    eval ac_val=\$$ac_var
21481    case $ac_val in #(
21482    *${as_nl}*)
21483      case $ac_var in #(
21484      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21486      esac
21487      case $ac_var in #(
21488      _ | IFS | as_nl) ;; #(
21489      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21490      *) { eval $ac_var=; unset $ac_var;} ;;
21491      esac ;;
21492    esac
21493  done
21494
21495  (set) 2>&1 |
21496    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21497    *${as_nl}ac_space=\ *)
21498      # `set' does not quote correctly, so add quotes: double-quote
21499      # substitution turns \\\\ into \\, and sed turns \\ into \.
21500      sed -n \
21501	"s/'/'\\\\''/g;
21502	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21503      ;; #(
21504    *)
21505      # `set' quotes correctly as required by POSIX, so do not add quotes.
21506      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21507      ;;
21508    esac |
21509    sort
21510) |
21511  sed '
21512     /^ac_cv_env_/b end
21513     t clear
21514     :clear
21515     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21516     t end
21517     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21518     :end' >>confcache
21519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21520  if test -w "$cache_file"; then
21521    if test "x$cache_file" != "x/dev/null"; then
21522      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21523$as_echo "$as_me: updating cache $cache_file" >&6;}
21524      if test ! -f "$cache_file" || test -h "$cache_file"; then
21525	cat confcache >"$cache_file"
21526      else
21527        case $cache_file in #(
21528        */* | ?:*)
21529	  mv -f confcache "$cache_file"$$ &&
21530	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21531        *)
21532	  mv -f confcache "$cache_file" ;;
21533	esac
21534      fi
21535    fi
21536  else
21537    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21538$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21539  fi
21540fi
21541rm -f confcache
21542
21543###############################################################################
21544#   Checks for declarations...
21545###############################################################################
21546
21547#  PROGRAMMING NOTE: For declaration checks, you need to be careful to use the
21548#  following test in your program:
21549#
21550#      #if defined(HAVE_DECL_XXXX) && !HAVE_DECL_XXXXX
21551#      ...code to handle not declared case...
21552#      #endif
21553#
21554#  This is because UNLIKE other 'AC_CHECK' macros, when a SYMBOL isn't DECLared,
21555#  "HAVE_DECL_XXXX" is #defined to '0' instead of leaving "HAVE_DECL_XXXX" #undefined.
21556#  (e.g. #defined to 1 if you have the declaration and #defined to 0 if you don't)
21557
21558ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "#include <signal.h>
21559"
21560if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then :
21561  ac_have_decl=1
21562else
21563  ac_have_decl=0
21564fi
21565
21566cat >>confdefs.h <<_ACEOF
21567#define HAVE_DECL_SIGUSR1 $ac_have_decl
21568_ACEOF
21569if test $ac_have_decl = 1; then :
21570  hc_cv_have_sigusr1=yes
21571else
21572  hc_cv_have_sigusr1=no
21573fi
21574
21575ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "#include <signal.h>
21576"
21577if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then :
21578  ac_have_decl=1
21579else
21580  ac_have_decl=0
21581fi
21582
21583cat >>confdefs.h <<_ACEOF
21584#define HAVE_DECL_SIGUSR2 $ac_have_decl
21585_ACEOF
21586if test $ac_have_decl = 1; then :
21587  hc_cv_have_sigusr2=yes
21588else
21589  hc_cv_have_sigusr2=no
21590fi
21591
21592ac_fn_c_check_decl "$LINENO" "SIGPIPE" "ac_cv_have_decl_SIGPIPE" "#include <signal.h>
21593"
21594if test "x$ac_cv_have_decl_SIGPIPE" = xyes; then :
21595  ac_have_decl=1
21596else
21597  ac_have_decl=0
21598fi
21599
21600cat >>confdefs.h <<_ACEOF
21601#define HAVE_DECL_SIGPIPE $ac_have_decl
21602_ACEOF
21603if test $ac_have_decl = 1; then :
21604  hc_cv_have_sigpipe=yes
21605else
21606  hc_cv_have_sigpipe=no
21607fi
21608
21609ac_fn_c_check_decl "$LINENO" "SIGBUS" "ac_cv_have_decl_SIGBUS" "#include <signal.h>
21610"
21611if test "x$ac_cv_have_decl_SIGBUS" = xyes; then :
21612  ac_have_decl=1
21613else
21614  ac_have_decl=0
21615fi
21616
21617cat >>confdefs.h <<_ACEOF
21618#define HAVE_DECL_SIGBUS $ac_have_decl
21619_ACEOF
21620if test $ac_have_decl = 1; then :
21621  hc_cv_have_sigbus=yes
21622else
21623  hc_cv_have_sigbus=no
21624fi
21625
21626ac_fn_c_check_decl "$LINENO" "IFNAMSIZ" "ac_cv_have_decl_IFNAMSIZ" "
21627    #include <sys/types.h>
21628    #if HAVE_SYS_SOCKET_H
21629    #include <sys/socket.h>
21630    #endif
21631
21632"
21633if test "x$ac_cv_have_decl_IFNAMSIZ" = xyes; then :
21634  ac_have_decl=1
21635else
21636  ac_have_decl=0
21637fi
21638
21639cat >>confdefs.h <<_ACEOF
21640#define HAVE_DECL_IFNAMSIZ $ac_have_decl
21641_ACEOF
21642if test $ac_have_decl = 1; then :
21643  hc_cv_have_ifnamsiz=yes
21644else
21645  hc_cv_have_ifnamsiz=no
21646fi
21647
21648ac_fn_c_check_decl "$LINENO" "LOGIN_NAME_MAX" "ac_cv_have_decl_LOGIN_NAME_MAX" "#include <limits.h>
21649"
21650if test "x$ac_cv_have_decl_LOGIN_NAME_MAX" = xyes; then :
21651  ac_have_decl=1
21652else
21653  ac_have_decl=0
21654fi
21655
21656cat >>confdefs.h <<_ACEOF
21657#define HAVE_DECL_LOGIN_NAME_MAX $ac_have_decl
21658_ACEOF
21659if test $ac_have_decl = 1; then :
21660  hc_cv_have_login_name_max=yes
21661else
21662  hc_cv_have_login_name_max=no
21663fi
21664
21665ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include <unistd.h>
21666"
21667if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes; then :
21668  ac_have_decl=1
21669else
21670  ac_have_decl=0
21671fi
21672
21673cat >>confdefs.h <<_ACEOF
21674#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl
21675_ACEOF
21676if test $ac_have_decl = 1; then :
21677  hc_cv_have_sc_nprocessors_conf=yes
21678else
21679  hc_cv_have_sc_nprocessors_conf=no
21680fi
21681
21682ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h>
21683"
21684if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes; then :
21685  ac_have_decl=1
21686else
21687  ac_have_decl=0
21688fi
21689
21690cat >>confdefs.h <<_ACEOF
21691#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl
21692_ACEOF
21693if test $ac_have_decl = 1; then :
21694  hc_cv_have_sc_nprocessors_onln=yes
21695else
21696  hc_cv_have_sc_nprocessors_onln=no
21697fi
21698
21699
21700ac_fn_c_check_decl "$LINENO" "SIOCSIFNETMASK" "ac_cv_have_decl_SIOCSIFNETMASK" "#include <linux/sockios.h>
21701"
21702if test "x$ac_cv_have_decl_SIOCSIFNETMASK" = xyes; then :
21703  ac_have_decl=1
21704else
21705  ac_have_decl=0
21706fi
21707
21708cat >>confdefs.h <<_ACEOF
21709#define HAVE_DECL_SIOCSIFNETMASK $ac_have_decl
21710_ACEOF
21711if test $ac_have_decl = 1; then :
21712  hc_cv_have_siocsifnetmask=yes
21713else
21714  hc_cv_have_siocsifnetmask=no
21715fi
21716
21717ac_fn_c_check_decl "$LINENO" "SIOCSIFHWADDR" "ac_cv_have_decl_SIOCSIFHWADDR" "#include <linux/sockios.h>
21718"
21719if test "x$ac_cv_have_decl_SIOCSIFHWADDR" = xyes; then :
21720  ac_have_decl=1
21721else
21722  ac_have_decl=0
21723fi
21724
21725cat >>confdefs.h <<_ACEOF
21726#define HAVE_DECL_SIOCSIFHWADDR $ac_have_decl
21727_ACEOF
21728if test $ac_have_decl = 1; then :
21729  hc_cv_have_siocsifhwaddr=yes
21730else
21731  hc_cv_have_siocsifhwaddr=no
21732fi
21733
21734ac_fn_c_check_decl "$LINENO" "SIOCADDRT" "ac_cv_have_decl_SIOCADDRT" "#include <linux/sockios.h>
21735"
21736if test "x$ac_cv_have_decl_SIOCADDRT" = xyes; then :
21737  ac_have_decl=1
21738else
21739  ac_have_decl=0
21740fi
21741
21742cat >>confdefs.h <<_ACEOF
21743#define HAVE_DECL_SIOCADDRT $ac_have_decl
21744_ACEOF
21745if test $ac_have_decl = 1; then :
21746  hc_cv_have_siocaddrt=yes
21747else
21748  hc_cv_have_siocaddrt=no
21749fi
21750
21751ac_fn_c_check_decl "$LINENO" "SIOCDELRT" "ac_cv_have_decl_SIOCDELRT" "#include <linux/sockios.h>
21752"
21753if test "x$ac_cv_have_decl_SIOCDELRT" = xyes; then :
21754  ac_have_decl=1
21755else
21756  ac_have_decl=0
21757fi
21758
21759cat >>confdefs.h <<_ACEOF
21760#define HAVE_DECL_SIOCDELRT $ac_have_decl
21761_ACEOF
21762if test $ac_have_decl = 1; then :
21763  hc_cv_have_siocdelrt=yes
21764else
21765  hc_cv_have_siocdelrt=no
21766fi
21767
21768ac_fn_c_check_decl "$LINENO" "SIOCDIFADDR" "ac_cv_have_decl_SIOCDIFADDR" "#include <linux/sockios.h>
21769"
21770if test "x$ac_cv_have_decl_SIOCDIFADDR" = xyes; then :
21771  ac_have_decl=1
21772else
21773  ac_have_decl=0
21774fi
21775
21776cat >>confdefs.h <<_ACEOF
21777#define HAVE_DECL_SIOCDIFADDR $ac_have_decl
21778_ACEOF
21779if test $ac_have_decl = 1; then :
21780  hc_cv_have_siocdifaddr=yes
21781else
21782  hc_cv_have_siocdifaddr=no
21783fi
21784
21785
21786if test "$hc_cv_have_sys_mtio_h" == "yes"; then
21787    ac_fn_c_check_decl "$LINENO" "MTEWARN" "ac_cv_have_decl_MTEWARN" "#include <sys/mtio.h>
21788"
21789if test "x$ac_cv_have_decl_MTEWARN" = xyes; then :
21790  ac_have_decl=1
21791else
21792  ac_have_decl=0
21793fi
21794
21795cat >>confdefs.h <<_ACEOF
21796#define HAVE_DECL_MTEWARN $ac_have_decl
21797_ACEOF
21798if test $ac_have_decl = 1; then :
21799  hc_cv_have_mtewarn=yes
21800else
21801  hc_cv_have_mtewarn=no
21802fi
21803
21804else
21805    hc_cv_have_mtewarn=no
21806fi
21807
21808cat >confcache <<\_ACEOF
21809# This file is a shell script that caches the results of configure
21810# tests run on this system so they can be shared between configure
21811# scripts and configure runs, see configure's option --config-cache.
21812# It is not useful on other systems.  If it contains results you don't
21813# want to keep, you may remove or edit it.
21814#
21815# config.status only pays attention to the cache file if you give it
21816# the --recheck option to rerun configure.
21817#
21818# `ac_cv_env_foo' variables (set or unset) will be overridden when
21819# loading this file, other *unset* `ac_cv_foo' will be assigned the
21820# following values.
21821
21822_ACEOF
21823
21824# The following way of writing the cache mishandles newlines in values,
21825# but we know of no workaround that is simple, portable, and efficient.
21826# So, we kill variables containing newlines.
21827# Ultrix sh set writes to stderr and can't be redirected directly,
21828# and sets the high bit in the cache file unless we assign to the vars.
21829(
21830  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21831    eval ac_val=\$$ac_var
21832    case $ac_val in #(
21833    *${as_nl}*)
21834      case $ac_var in #(
21835      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21837      esac
21838      case $ac_var in #(
21839      _ | IFS | as_nl) ;; #(
21840      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21841      *) { eval $ac_var=; unset $ac_var;} ;;
21842      esac ;;
21843    esac
21844  done
21845
21846  (set) 2>&1 |
21847    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21848    *${as_nl}ac_space=\ *)
21849      # `set' does not quote correctly, so add quotes: double-quote
21850      # substitution turns \\\\ into \\, and sed turns \\ into \.
21851      sed -n \
21852	"s/'/'\\\\''/g;
21853	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21854      ;; #(
21855    *)
21856      # `set' quotes correctly as required by POSIX, so do not add quotes.
21857      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21858      ;;
21859    esac |
21860    sort
21861) |
21862  sed '
21863     /^ac_cv_env_/b end
21864     t clear
21865     :clear
21866     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21867     t end
21868     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21869     :end' >>confcache
21870if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21871  if test -w "$cache_file"; then
21872    if test "x$cache_file" != "x/dev/null"; then
21873      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21874$as_echo "$as_me: updating cache $cache_file" >&6;}
21875      if test ! -f "$cache_file" || test -h "$cache_file"; then
21876	cat confcache >"$cache_file"
21877      else
21878        case $cache_file in #(
21879        */* | ?:*)
21880	  mv -f confcache "$cache_file"$$ &&
21881	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21882        *)
21883	  mv -f confcache "$cache_file" ;;
21884	esac
21885      fi
21886    fi
21887  else
21888    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21889$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21890  fi
21891fi
21892rm -f confcache
21893
21894###############################################################################
21895#   Checks for types...
21896###############################################################################
21897
21898ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
21899if test "x$ac_cv_type_u_int8_t" = xyes; then :
21900
21901cat >>confdefs.h <<_ACEOF
21902#define HAVE_U_INT8_T 1
21903_ACEOF
21904
21905hc_cv_have_u_int8_t=yes
21906else
21907  hc_cv_have_u_int8_t=no
21908fi
21909
21910ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default"
21911if test "x$ac_cv_type_useconds_t" = xyes; then :
21912
21913cat >>confdefs.h <<_ACEOF
21914#define HAVE_USECONDS_T 1
21915_ACEOF
21916
21917hc_cv_have_useconds_t=yes
21918else
21919  hc_cv_have_useconds_t=no
21920fi
21921
21922ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
21923if test "x$ac_cv_type_id_t" = xyes; then :
21924
21925cat >>confdefs.h <<_ACEOF
21926#define HAVE_ID_T 1
21927_ACEOF
21928
21929hc_cv_have_id_t=yes
21930else
21931  hc_cv_have_id_t=no
21932fi
21933
21934ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
21935    #include <sys/types.h>
21936    #if HAVE_SYS_SOCKET_H
21937    #include <sys/socket.h>
21938    #endif
21939
21940"
21941if test "x$ac_cv_type_u_char" = xyes; then :
21942
21943cat >>confdefs.h <<_ACEOF
21944#define HAVE_U_CHAR 1
21945_ACEOF
21946
21947hc_cv_have_u_char=yes
21948else
21949  hc_cv_have_u_char=no
21950fi
21951
21952ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "
21953    #include <sys/types.h>
21954    #if HAVE_SYS_SOCKET_H
21955    #include <sys/socket.h>
21956    #endif
21957
21958"
21959if test "x$ac_cv_type_u_short" = xyes; then :
21960
21961cat >>confdefs.h <<_ACEOF
21962#define HAVE_U_SHORT 1
21963_ACEOF
21964
21965hc_cv_have_u_short=yes
21966else
21967  hc_cv_have_u_short=no
21968fi
21969
21970ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "
21971    #include <sys/types.h>
21972    #if HAVE_SYS_SOCKET_H
21973    #include <sys/socket.h>
21974    #endif
21975
21976"
21977if test "x$ac_cv_type_u_int" = xyes; then :
21978
21979cat >>confdefs.h <<_ACEOF
21980#define HAVE_U_INT 1
21981_ACEOF
21982
21983hc_cv_have_u_int=yes
21984else
21985  hc_cv_have_u_int=no
21986fi
21987
21988ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "
21989    #include <sys/types.h>
21990    #if HAVE_SYS_SOCKET_H
21991    #include <sys/socket.h>
21992    #endif
21993
21994"
21995if test "x$ac_cv_type_u_long" = xyes; then :
21996
21997cat >>confdefs.h <<_ACEOF
21998#define HAVE_U_LONG 1
21999_ACEOF
22000
22001hc_cv_have_u_long=yes
22002else
22003  hc_cv_have_u_long=no
22004fi
22005
22006ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
22007    #include <sys/types.h>
22008    #if HAVE_SYS_SOCKET_H
22009    #include <sys/socket.h>
22010    #endif
22011    #if HAVE_NETINET_IN_H
22012    #include <netinet/in.h>
22013    #endif
22014
22015"
22016if test "x$ac_cv_type_in_addr_t" = xyes; then :
22017
22018cat >>confdefs.h <<_ACEOF
22019#define HAVE_IN_ADDR_T 1
22020_ACEOF
22021
22022hc_cv_have_in_addr_t=yes
22023else
22024  hc_cv_have_in_addr_t=no
22025fi
22026
22027ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22028    #include <sys/types.h>
22029    #if HAVE_SYS_SOCKET_H
22030    #include <sys/socket.h>
22031    #endif
22032
22033"
22034if test "x$ac_cv_type_socklen_t" = xyes; then :
22035
22036cat >>confdefs.h <<_ACEOF
22037#define HAVE_SOCKLEN_T 1
22038_ACEOF
22039
22040hc_cv_have_socklen_t=yes
22041else
22042  hc_cv_have_socklen_t=no
22043fi
22044
22045
22046cat >confcache <<\_ACEOF
22047# This file is a shell script that caches the results of configure
22048# tests run on this system so they can be shared between configure
22049# scripts and configure runs, see configure's option --config-cache.
22050# It is not useful on other systems.  If it contains results you don't
22051# want to keep, you may remove or edit it.
22052#
22053# config.status only pays attention to the cache file if you give it
22054# the --recheck option to rerun configure.
22055#
22056# `ac_cv_env_foo' variables (set or unset) will be overridden when
22057# loading this file, other *unset* `ac_cv_foo' will be assigned the
22058# following values.
22059
22060_ACEOF
22061
22062# The following way of writing the cache mishandles newlines in values,
22063# but we know of no workaround that is simple, portable, and efficient.
22064# So, we kill variables containing newlines.
22065# Ultrix sh set writes to stderr and can't be redirected directly,
22066# and sets the high bit in the cache file unless we assign to the vars.
22067(
22068  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22069    eval ac_val=\$$ac_var
22070    case $ac_val in #(
22071    *${as_nl}*)
22072      case $ac_var in #(
22073      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22074$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22075      esac
22076      case $ac_var in #(
22077      _ | IFS | as_nl) ;; #(
22078      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22079      *) { eval $ac_var=; unset $ac_var;} ;;
22080      esac ;;
22081    esac
22082  done
22083
22084  (set) 2>&1 |
22085    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22086    *${as_nl}ac_space=\ *)
22087      # `set' does not quote correctly, so add quotes: double-quote
22088      # substitution turns \\\\ into \\, and sed turns \\ into \.
22089      sed -n \
22090	"s/'/'\\\\''/g;
22091	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22092      ;; #(
22093    *)
22094      # `set' quotes correctly as required by POSIX, so do not add quotes.
22095      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22096      ;;
22097    esac |
22098    sort
22099) |
22100  sed '
22101     /^ac_cv_env_/b end
22102     t clear
22103     :clear
22104     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22105     t end
22106     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22107     :end' >>confcache
22108if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22109  if test -w "$cache_file"; then
22110    if test "x$cache_file" != "x/dev/null"; then
22111      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22112$as_echo "$as_me: updating cache $cache_file" >&6;}
22113      if test ! -f "$cache_file" || test -h "$cache_file"; then
22114	cat confcache >"$cache_file"
22115      else
22116        case $cache_file in #(
22117        */* | ?:*)
22118	  mv -f confcache "$cache_file"$$ &&
22119	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22120        *)
22121	  mv -f confcache "$cache_file" ;;
22122	esac
22123      fi
22124    fi
22125  else
22126    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22127$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22128  fi
22129fi
22130rm -f confcache
22131
22132###############################################################################
22133#   Checks for libraries...
22134###############################################################################
22135
22136#  PROGRAMMING NOTE: we require libtool (or, optionally, dlltool (a less power-
22137#  ful (flexible) libtool-like tool for Windows platforms) in order to support
22138#  OPTION_DYNAMIC_LOAD. This is a relatively safe requirement since we provide
22139#  a version of libtool with Hercules (and build it as part of the preliminary
22140#  autoconf processing; see the 'Programs' section above). However, we need to
22141#  keep the below check for 'dlopen' anyway since we prefer that libtool use it
22142#  instead of its own equivalent (lt_dlopen) if it's available.
22143
22144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _pipe           in -lmsvcrt" >&5
22145$as_echo_n "checking for _pipe           in -lmsvcrt... " >&6; }
22146if ${ac_cv_lib_msvcrt__pipe__________+:} false; then :
22147  $as_echo_n "(cached) " >&6
22148else
22149  ac_check_lib_save_LIBS=$LIBS
22150LIBS="-lmsvcrt  $LIBS"
22151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152/* end confdefs.h.  */
22153
22154/* Override any GCC internal prototype to avoid an error.
22155   Use char because int might match the return type of a GCC
22156   builtin and then its argument prototype would still apply.  */
22157#ifdef __cplusplus
22158extern "C"
22159#endif
22160char _pipe           ();
22161int
22162main ()
22163{
22164return _pipe           ();
22165  ;
22166  return 0;
22167}
22168_ACEOF
22169if ac_fn_c_try_link "$LINENO"; then :
22170  ac_cv_lib_msvcrt__pipe__________=yes
22171else
22172  ac_cv_lib_msvcrt__pipe__________=no
22173fi
22174rm -f core conftest.err conftest.$ac_objext \
22175    conftest$ac_exeext conftest.$ac_ext
22176LIBS=$ac_check_lib_save_LIBS
22177fi
22178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt__pipe__________" >&5
22179$as_echo "$ac_cv_lib_msvcrt__pipe__________" >&6; }
22180if test "x$ac_cv_lib_msvcrt__pipe__________" = xyes; then :
22181  cat >>confdefs.h <<_ACEOF
22182#define HAVE_LIBMSVCRT 1
22183_ACEOF
22184
22185  LIBS="-lmsvcrt $LIBS"
22186
22187fi
22188
22189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen          in -ldl" >&5
22190$as_echo_n "checking for dlopen          in -ldl... " >&6; }
22191if ${ac_cv_lib_dl_dlopen_________+:} false; then :
22192  $as_echo_n "(cached) " >&6
22193else
22194  ac_check_lib_save_LIBS=$LIBS
22195LIBS="-ldl  $LIBS"
22196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197/* end confdefs.h.  */
22198
22199/* Override any GCC internal prototype to avoid an error.
22200   Use char because int might match the return type of a GCC
22201   builtin and then its argument prototype would still apply.  */
22202#ifdef __cplusplus
22203extern "C"
22204#endif
22205char dlopen          ();
22206int
22207main ()
22208{
22209return dlopen          ();
22210  ;
22211  return 0;
22212}
22213_ACEOF
22214if ac_fn_c_try_link "$LINENO"; then :
22215  ac_cv_lib_dl_dlopen_________=yes
22216else
22217  ac_cv_lib_dl_dlopen_________=no
22218fi
22219rm -f core conftest.err conftest.$ac_objext \
22220    conftest$ac_exeext conftest.$ac_ext
22221LIBS=$ac_check_lib_save_LIBS
22222fi
22223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen_________" >&5
22224$as_echo "$ac_cv_lib_dl_dlopen_________" >&6; }
22225if test "x$ac_cv_lib_dl_dlopen_________" = xyes; then :
22226  cat >>confdefs.h <<_ACEOF
22227#define HAVE_LIBDL 1
22228_ACEOF
22229
22230  LIBS="-ldl $LIBS"
22231
22232fi
22233
22234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt            in -lm" >&5
22235$as_echo_n "checking for sqrt            in -lm... " >&6; }
22236if ${ac_cv_lib_m_sqrt___________+:} false; then :
22237  $as_echo_n "(cached) " >&6
22238else
22239  ac_check_lib_save_LIBS=$LIBS
22240LIBS="-lm  $LIBS"
22241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242/* end confdefs.h.  */
22243
22244/* Override any GCC internal prototype to avoid an error.
22245   Use char because int might match the return type of a GCC
22246   builtin and then its argument prototype would still apply.  */
22247#ifdef __cplusplus
22248extern "C"
22249#endif
22250char sqrt            ();
22251int
22252main ()
22253{
22254return sqrt            ();
22255  ;
22256  return 0;
22257}
22258_ACEOF
22259if ac_fn_c_try_link "$LINENO"; then :
22260  ac_cv_lib_m_sqrt___________=yes
22261else
22262  ac_cv_lib_m_sqrt___________=no
22263fi
22264rm -f core conftest.err conftest.$ac_objext \
22265    conftest$ac_exeext conftest.$ac_ext
22266LIBS=$ac_check_lib_save_LIBS
22267fi
22268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt___________" >&5
22269$as_echo "$ac_cv_lib_m_sqrt___________" >&6; }
22270if test "x$ac_cv_lib_m_sqrt___________" = xyes; then :
22271  cat >>confdefs.h <<_ACEOF
22272#define HAVE_LIBM 1
22273_ACEOF
22274
22275  LIBS="-lm $LIBS"
22276
22277fi
22278
22279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect         in -lsocket" >&5
22280$as_echo_n "checking for connect         in -lsocket... " >&6; }
22281if ${ac_cv_lib_socket_connect________+:} false; then :
22282  $as_echo_n "(cached) " >&6
22283else
22284  ac_check_lib_save_LIBS=$LIBS
22285LIBS="-lsocket  $LIBS"
22286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287/* end confdefs.h.  */
22288
22289/* Override any GCC internal prototype to avoid an error.
22290   Use char because int might match the return type of a GCC
22291   builtin and then its argument prototype would still apply.  */
22292#ifdef __cplusplus
22293extern "C"
22294#endif
22295char connect         ();
22296int
22297main ()
22298{
22299return connect         ();
22300  ;
22301  return 0;
22302}
22303_ACEOF
22304if ac_fn_c_try_link "$LINENO"; then :
22305  ac_cv_lib_socket_connect________=yes
22306else
22307  ac_cv_lib_socket_connect________=no
22308fi
22309rm -f core conftest.err conftest.$ac_objext \
22310    conftest$ac_exeext conftest.$ac_ext
22311LIBS=$ac_check_lib_save_LIBS
22312fi
22313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect________" >&5
22314$as_echo "$ac_cv_lib_socket_connect________" >&6; }
22315if test "x$ac_cv_lib_socket_connect________" = xyes; then :
22316  cat >>confdefs.h <<_ACEOF
22317#define HAVE_LIBSOCKET 1
22318_ACEOF
22319
22320  LIBS="-lsocket $LIBS"
22321
22322fi
22323
22324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname   in -lnsl" >&5
22325$as_echo_n "checking for gethostbyname   in -lnsl... " >&6; }
22326if ${ac_cv_lib_nsl_gethostbyname__+:} false; then :
22327  $as_echo_n "(cached) " >&6
22328else
22329  ac_check_lib_save_LIBS=$LIBS
22330LIBS="-lnsl  $LIBS"
22331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332/* end confdefs.h.  */
22333
22334/* Override any GCC internal prototype to avoid an error.
22335   Use char because int might match the return type of a GCC
22336   builtin and then its argument prototype would still apply.  */
22337#ifdef __cplusplus
22338extern "C"
22339#endif
22340char gethostbyname   ();
22341int
22342main ()
22343{
22344return gethostbyname   ();
22345  ;
22346  return 0;
22347}
22348_ACEOF
22349if ac_fn_c_try_link "$LINENO"; then :
22350  ac_cv_lib_nsl_gethostbyname__=yes
22351else
22352  ac_cv_lib_nsl_gethostbyname__=no
22353fi
22354rm -f core conftest.err conftest.$ac_objext \
22355    conftest$ac_exeext conftest.$ac_ext
22356LIBS=$ac_check_lib_save_LIBS
22357fi
22358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname__" >&5
22359$as_echo "$ac_cv_lib_nsl_gethostbyname__" >&6; }
22360if test "x$ac_cv_lib_nsl_gethostbyname__" = xyes; then :
22361  cat >>confdefs.h <<_ACEOF
22362#define HAVE_LIBNSL 1
22363_ACEOF
22364
22365  LIBS="-lnsl $LIBS"
22366
22367fi
22368
22369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton       in -lresolv" >&5
22370$as_echo_n "checking for inet_aton       in -lresolv... " >&6; }
22371if ${ac_cv_lib_resolv_inet_aton______+:} false; then :
22372  $as_echo_n "(cached) " >&6
22373else
22374  ac_check_lib_save_LIBS=$LIBS
22375LIBS="-lresolv  $LIBS"
22376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377/* end confdefs.h.  */
22378
22379/* Override any GCC internal prototype to avoid an error.
22380   Use char because int might match the return type of a GCC
22381   builtin and then its argument prototype would still apply.  */
22382#ifdef __cplusplus
22383extern "C"
22384#endif
22385char inet_aton       ();
22386int
22387main ()
22388{
22389return inet_aton       ();
22390  ;
22391  return 0;
22392}
22393_ACEOF
22394if ac_fn_c_try_link "$LINENO"; then :
22395  ac_cv_lib_resolv_inet_aton______=yes
22396else
22397  ac_cv_lib_resolv_inet_aton______=no
22398fi
22399rm -f core conftest.err conftest.$ac_objext \
22400    conftest$ac_exeext conftest.$ac_ext
22401LIBS=$ac_check_lib_save_LIBS
22402fi
22403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton______" >&5
22404$as_echo "$ac_cv_lib_resolv_inet_aton______" >&6; }
22405if test "x$ac_cv_lib_resolv_inet_aton______" = xyes; then :
22406  cat >>confdefs.h <<_ACEOF
22407#define HAVE_LIBRESOLV 1
22408_ACEOF
22409
22410  LIBS="-lresolv $LIBS"
22411
22412fi
22413
22414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress      in -lz" >&5
22415$as_echo_n "checking for uncompress      in -lz... " >&6; }
22416if ${ac_cv_lib_z_uncompress_____+:} false; then :
22417  $as_echo_n "(cached) " >&6
22418else
22419  ac_check_lib_save_LIBS=$LIBS
22420LIBS="-lz  $LIBS"
22421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422/* end confdefs.h.  */
22423
22424/* Override any GCC internal prototype to avoid an error.
22425   Use char because int might match the return type of a GCC
22426   builtin and then its argument prototype would still apply.  */
22427#ifdef __cplusplus
22428extern "C"
22429#endif
22430char uncompress      ();
22431int
22432main ()
22433{
22434return uncompress      ();
22435  ;
22436  return 0;
22437}
22438_ACEOF
22439if ac_fn_c_try_link "$LINENO"; then :
22440  ac_cv_lib_z_uncompress_____=yes
22441else
22442  ac_cv_lib_z_uncompress_____=no
22443fi
22444rm -f core conftest.err conftest.$ac_objext \
22445    conftest$ac_exeext conftest.$ac_ext
22446LIBS=$ac_check_lib_save_LIBS
22447fi
22448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress_____" >&5
22449$as_echo "$ac_cv_lib_z_uncompress_____" >&6; }
22450if test "x$ac_cv_lib_z_uncompress_____" = xyes; then :
22451  cat >>confdefs.h <<_ACEOF
22452#define HAVE_LIBZ 1
22453_ACEOF
22454
22455  LIBS="-lz $LIBS"
22456
22457fi
22458
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffDecompress in -lbz2" >&5
22460$as_echo_n "checking for BZ2_bzBuffToBuffDecompress in -lbz2... " >&6; }
22461if ${ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress+:} false; then :
22462  $as_echo_n "(cached) " >&6
22463else
22464  ac_check_lib_save_LIBS=$LIBS
22465LIBS="-lbz2  $LIBS"
22466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467/* end confdefs.h.  */
22468
22469/* Override any GCC internal prototype to avoid an error.
22470   Use char because int might match the return type of a GCC
22471   builtin and then its argument prototype would still apply.  */
22472#ifdef __cplusplus
22473extern "C"
22474#endif
22475char BZ2_bzBuffToBuffDecompress ();
22476int
22477main ()
22478{
22479return BZ2_bzBuffToBuffDecompress ();
22480  ;
22481  return 0;
22482}
22483_ACEOF
22484if ac_fn_c_try_link "$LINENO"; then :
22485  ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress=yes
22486else
22487  ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress=no
22488fi
22489rm -f core conftest.err conftest.$ac_objext \
22490    conftest$ac_exeext conftest.$ac_ext
22491LIBS=$ac_check_lib_save_LIBS
22492fi
22493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress" >&5
22494$as_echo "$ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress" >&6; }
22495if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress" = xyes; then :
22496   hc_cv_have_libbz2=yes
22497else
22498   hc_cv_have_libbz2=no
22499fi
22500
22501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv           in -liconv" >&5
22502$as_echo_n "checking for iconv           in -liconv... " >&6; }
22503if ${ac_cv_lib_iconv_iconv__________+:} false; then :
22504  $as_echo_n "(cached) " >&6
22505else
22506  ac_check_lib_save_LIBS=$LIBS
22507LIBS="-liconv  $LIBS"
22508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509/* end confdefs.h.  */
22510
22511/* Override any GCC internal prototype to avoid an error.
22512   Use char because int might match the return type of a GCC
22513   builtin and then its argument prototype would still apply.  */
22514#ifdef __cplusplus
22515extern "C"
22516#endif
22517char iconv           ();
22518int
22519main ()
22520{
22521return iconv           ();
22522  ;
22523  return 0;
22524}
22525_ACEOF
22526if ac_fn_c_try_link "$LINENO"; then :
22527  ac_cv_lib_iconv_iconv__________=yes
22528else
22529  ac_cv_lib_iconv_iconv__________=no
22530fi
22531rm -f core conftest.err conftest.$ac_objext \
22532    conftest$ac_exeext conftest.$ac_ext
22533LIBS=$ac_check_lib_save_LIBS
22534fi
22535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv__________" >&5
22536$as_echo "$ac_cv_lib_iconv_iconv__________" >&6; }
22537if test "x$ac_cv_lib_iconv_iconv__________" = xyes; then :
22538  cat >>confdefs.h <<_ACEOF
22539#define HAVE_LIBICONV 1
22540_ACEOF
22541
22542  LIBS="-liconv $LIBS"
22543
22544fi
22545
22546# jbs 10/15/2003 Solaris requires -lrt for sched_yield() and fdatasync()
22547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield     in -lrt" >&5
22548$as_echo_n "checking for sched_yield     in -lrt... " >&6; }
22549if ${ac_cv_lib_rt_sched_yield____+:} false; then :
22550  $as_echo_n "(cached) " >&6
22551else
22552  ac_check_lib_save_LIBS=$LIBS
22553LIBS="-lrt  $LIBS"
22554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555/* end confdefs.h.  */
22556
22557/* Override any GCC internal prototype to avoid an error.
22558   Use char because int might match the return type of a GCC
22559   builtin and then its argument prototype would still apply.  */
22560#ifdef __cplusplus
22561extern "C"
22562#endif
22563char sched_yield     ();
22564int
22565main ()
22566{
22567return sched_yield     ();
22568  ;
22569  return 0;
22570}
22571_ACEOF
22572if ac_fn_c_try_link "$LINENO"; then :
22573  ac_cv_lib_rt_sched_yield____=yes
22574else
22575  ac_cv_lib_rt_sched_yield____=no
22576fi
22577rm -f core conftest.err conftest.$ac_objext \
22578    conftest$ac_exeext conftest.$ac_ext
22579LIBS=$ac_check_lib_save_LIBS
22580fi
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield____" >&5
22582$as_echo "$ac_cv_lib_rt_sched_yield____" >&6; }
22583if test "x$ac_cv_lib_rt_sched_yield____" = xyes; then :
22584  cat >>confdefs.h <<_ACEOF
22585#define HAVE_LIBRT 1
22586_ACEOF
22587
22588  LIBS="-lrt $LIBS"
22589
22590fi
22591
22592# rbowler 2008/03/10 rev 1.196 Solaris 2.9 requires -lpthread
22593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create  in -lpthread" >&5
22594$as_echo_n "checking for pthread_create  in -lpthread... " >&6; }
22595if ${ac_cv_lib_pthread_pthread_create_+:} false; then :
22596  $as_echo_n "(cached) " >&6
22597else
22598  ac_check_lib_save_LIBS=$LIBS
22599LIBS="-lpthread  $LIBS"
22600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22601/* end confdefs.h.  */
22602
22603/* Override any GCC internal prototype to avoid an error.
22604   Use char because int might match the return type of a GCC
22605   builtin and then its argument prototype would still apply.  */
22606#ifdef __cplusplus
22607extern "C"
22608#endif
22609char pthread_create  ();
22610int
22611main ()
22612{
22613return pthread_create  ();
22614  ;
22615  return 0;
22616}
22617_ACEOF
22618if ac_fn_c_try_link "$LINENO"; then :
22619  ac_cv_lib_pthread_pthread_create_=yes
22620else
22621  ac_cv_lib_pthread_pthread_create_=no
22622fi
22623rm -f core conftest.err conftest.$ac_objext \
22624    conftest$ac_exeext conftest.$ac_ext
22625LIBS=$ac_check_lib_save_LIBS
22626fi
22627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create_" >&5
22628$as_echo "$ac_cv_lib_pthread_pthread_create_" >&6; }
22629if test "x$ac_cv_lib_pthread_pthread_create_" = xyes; then :
22630  cat >>confdefs.h <<_ACEOF
22631#define HAVE_LIBPTHREAD 1
22632_ACEOF
22633
22634  LIBS="-lpthread $LIBS"
22635
22636fi
22637
22638
22639cat >confcache <<\_ACEOF
22640# This file is a shell script that caches the results of configure
22641# tests run on this system so they can be shared between configure
22642# scripts and configure runs, see configure's option --config-cache.
22643# It is not useful on other systems.  If it contains results you don't
22644# want to keep, you may remove or edit it.
22645#
22646# config.status only pays attention to the cache file if you give it
22647# the --recheck option to rerun configure.
22648#
22649# `ac_cv_env_foo' variables (set or unset) will be overridden when
22650# loading this file, other *unset* `ac_cv_foo' will be assigned the
22651# following values.
22652
22653_ACEOF
22654
22655# The following way of writing the cache mishandles newlines in values,
22656# but we know of no workaround that is simple, portable, and efficient.
22657# So, we kill variables containing newlines.
22658# Ultrix sh set writes to stderr and can't be redirected directly,
22659# and sets the high bit in the cache file unless we assign to the vars.
22660(
22661  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22662    eval ac_val=\$$ac_var
22663    case $ac_val in #(
22664    *${as_nl}*)
22665      case $ac_var in #(
22666      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22667$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22668      esac
22669      case $ac_var in #(
22670      _ | IFS | as_nl) ;; #(
22671      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22672      *) { eval $ac_var=; unset $ac_var;} ;;
22673      esac ;;
22674    esac
22675  done
22676
22677  (set) 2>&1 |
22678    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22679    *${as_nl}ac_space=\ *)
22680      # `set' does not quote correctly, so add quotes: double-quote
22681      # substitution turns \\\\ into \\, and sed turns \\ into \.
22682      sed -n \
22683	"s/'/'\\\\''/g;
22684	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22685      ;; #(
22686    *)
22687      # `set' quotes correctly as required by POSIX, so do not add quotes.
22688      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22689      ;;
22690    esac |
22691    sort
22692) |
22693  sed '
22694     /^ac_cv_env_/b end
22695     t clear
22696     :clear
22697     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22698     t end
22699     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22700     :end' >>confcache
22701if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22702  if test -w "$cache_file"; then
22703    if test "x$cache_file" != "x/dev/null"; then
22704      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22705$as_echo "$as_me: updating cache $cache_file" >&6;}
22706      if test ! -f "$cache_file" || test -h "$cache_file"; then
22707	cat confcache >"$cache_file"
22708      else
22709        case $cache_file in #(
22710        */* | ?:*)
22711	  mv -f confcache "$cache_file"$$ &&
22712	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22713        *)
22714	  mv -f confcache "$cache_file" ;;
22715	esac
22716      fi
22717    fi
22718  else
22719    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22720$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22721  fi
22722fi
22723rm -f confcache
22724
22725###############################################################################
22726#   Checks for library functions...
22727###############################################################################
22728#   PROGRAMMING NOTE: AC_CHECK_LIB should be called first for the below
22729#   library function checks to ensure the library where the function is
22730#   defined gets added to the LIBS library search variable...
22731###############################################################################
22732
22733for ac_func in iconv
22734do :
22735  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22738  cat >>confdefs.h <<_ACEOF
22739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22740_ACEOF
22741
22742fi
22743done
22744
22745for ac_func in memrchr
22746do :
22747  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22750  cat >>confdefs.h <<_ACEOF
22751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22752_ACEOF
22753
22754fi
22755done
22756
22757for ac_func in getopt_long
22758do :
22759  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22760ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22761if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22762  cat >>confdefs.h <<_ACEOF
22763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22764_ACEOF
22765
22766fi
22767done
22768
22769for ac_func in sqrtl ldexpl fabsl fmodl frexpl
22770do :
22771  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22772ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22773if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22774  cat >>confdefs.h <<_ACEOF
22775#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22776_ACEOF
22777
22778fi
22779done
22780
22781for ac_func in ldexpf frexpf fabsf rint
22782do :
22783  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22784ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22785if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22786  cat >>confdefs.h <<_ACEOF
22787#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22788_ACEOF
22789
22790fi
22791done
22792
22793for ac_func in strlcpy strlcat
22794do :
22795  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22796ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22797if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22798  cat >>confdefs.h <<_ACEOF
22799#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22800_ACEOF
22801
22802fi
22803done
22804
22805for ac_func in strerror_r
22806do :
22807  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22808ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22809if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22810  cat >>confdefs.h <<_ACEOF
22811#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22812_ACEOF
22813
22814fi
22815done
22816
22817for ac_func in strsignal
22818do :
22819  ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
22820if test "x$ac_cv_func_strsignal" = xyes; then :
22821  cat >>confdefs.h <<_ACEOF
22822#define HAVE_STRSIGNAL 1
22823_ACEOF
22824 hc_cv_have_strsignal=yes
22825else
22826  hc_cv_have_strsignal=no
22827fi
22828done
22829
22830for ac_func in sys_siglist
22831do :
22832  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22833ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22834if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22835  cat >>confdefs.h <<_ACEOF
22836#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22837_ACEOF
22838
22839fi
22840done
22841
22842for ac_func in InitializeCriticalSectionAndSpinCount
22843do :
22844  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22847  cat >>confdefs.h <<_ACEOF
22848#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22849_ACEOF
22850
22851fi
22852done
22853
22854for ac_func in sleep usleep nanosleep
22855do :
22856  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22857ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22858if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22859  cat >>confdefs.h <<_ACEOF
22860#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22861_ACEOF
22862
22863fi
22864done
22865
22866for ac_func in sched_yield
22867do :
22868  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22870if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22871  cat >>confdefs.h <<_ACEOF
22872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22873_ACEOF
22874
22875fi
22876done
22877
22878for ac_func in strtok_r
22879do :
22880  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22882if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22883  cat >>confdefs.h <<_ACEOF
22884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22885_ACEOF
22886
22887fi
22888done
22889
22890for ac_func in pipe
22891do :
22892  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22893ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22894if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22895  cat >>confdefs.h <<_ACEOF
22896#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22897_ACEOF
22898
22899fi
22900done
22901
22902for ac_func in gettimeofday
22903do :
22904  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22905ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22906if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22907  cat >>confdefs.h <<_ACEOF
22908#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22909_ACEOF
22910
22911fi
22912done
22913
22914for ac_func in getpgrp
22915do :
22916  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22918if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22919  cat >>confdefs.h <<_ACEOF
22920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22921_ACEOF
22922
22923fi
22924done
22925
22926for ac_func in scandir alphasort
22927do :
22928  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22929ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22930if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22931  cat >>confdefs.h <<_ACEOF
22932#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22933_ACEOF
22934
22935fi
22936done
22937
22938for ac_func in getlogin getlogin_r
22939do :
22940  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22941ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22942if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22943  cat >>confdefs.h <<_ACEOF
22944#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22945_ACEOF
22946
22947fi
22948done
22949
22950for ac_func in realpath
22951do :
22952  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22953ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22954if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22955  cat >>confdefs.h <<_ACEOF
22956#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22957_ACEOF
22958
22959fi
22960done
22961
22962for ac_func in fdatasync fsync ftruncate
22963do :
22964  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22965ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22966if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22967  cat >>confdefs.h <<_ACEOF
22968#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22969_ACEOF
22970
22971fi
22972done
22973
22974for ac_func in inet_aton
22975do :
22976  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22977ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22978if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22979  cat >>confdefs.h <<_ACEOF
22980#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22981_ACEOF
22982
22983fi
22984done
22985
22986for ac_func in fork socketpair
22987do :
22988  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22989ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22990if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22991  cat >>confdefs.h <<_ACEOF
22992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22993_ACEOF
22994
22995fi
22996done
22997
22998for ac_func in sysconf
22999do :
23000  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23001ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23002if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23003  cat >>confdefs.h <<_ACEOF
23004#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23005_ACEOF
23006
23007fi
23008done
23009
23010
23011for ac_func in vsscanf
23012do :
23013  ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
23014if test "x$ac_cv_func_vsscanf" = xyes; then :
23015  cat >>confdefs.h <<_ACEOF
23016#define HAVE_VSSCANF 1
23017_ACEOF
23018 hc_cv_have_vsscanf=yes
23019else
23020  hc_cv_have_vsscanf=no
23021
23022fi
23023done
23024
23025
23026for ac_func in setresuid getresuid
23027do :
23028  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23029ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23030if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23031  cat >>confdefs.h <<_ACEOF
23032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23033_ACEOF
23034 hc_cv_have_getset_uid=yes
23035else
23036  hc_cv_have_getset_uid=no; break
23037
23038fi
23039done
23040
23041
23042if test "$hc_cv_have_getset_uid" != "yes"; then
23043    for ac_func in setreuid geteuid getuid
23044do :
23045  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23047if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23048  cat >>confdefs.h <<_ACEOF
23049#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23050_ACEOF
23051 hc_cv_have_getset_uid=yes
23052else
23053  hc_cv_have_getset_uid=no; break
23054
23055fi
23056done
23057
23058fi
23059
23060
23061#  FIXME: Disabled because some builtin ffs seem to be causing a problem.
23062#         (gcc 3.4 barfs on certain 'march=' settings?)
23063#AC_CHECK_FUNCS( ffs )
23064
23065
23066# For OS X 10.6 autoconf defines HAVE_FDATASYNC even though there is
23067# no function prototype declared for fdatasync() and unistd.h contains
23068# define _POSIX_SYNCHRONIZED_IO (-1) which indicates that fdatasync is
23069# not supported. So to decide whether fdatasync really can be used, we
23070# create a new symbol HAVE_FDATASYNC_SUPPORTED which is defined only if
23071# HAVE_FDATASYNC is defined and _POSIX_SYNCHRONIZED_IO is not negative.
23072
23073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdatasync is supported" >&5
23074$as_echo_n "checking whether fdatasync is supported... " >&6; }
23075if ${ac_cv_func_fdatasync_supported+:} false; then :
23076  $as_echo_n "(cached) " >&6
23077else
23078
23079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080/* end confdefs.h.  */
23081
23082#include <unistd.h>
23083
23084int
23085main ()
23086{
23087
23088#if !defined(HAVE_FDATASYNC)
23089#error fdatasync is not defined on this platform
23090#endif
23091#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO+0 < 0)
23092#error fdatasync is not supported on this platform
23093#endif
23094
23095  ;
23096  return 0;
23097}
23098_ACEOF
23099if ac_fn_c_try_compile "$LINENO"; then :
23100  ac_cv_func_fdatasync_supported=yes
23101else
23102  ac_cv_func_fdatasync_supported=no
23103fi
23104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105
23106fi
23107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync_supported" >&5
23108$as_echo "$ac_cv_func_fdatasync_supported" >&6; }
23109if test "x${ac_cv_func_fdatasync_supported}" = "xyes"; then :
23110
23111$as_echo "#define HAVE_FDATASYNC_SUPPORTED 1" >>confdefs.h
23112
23113fi
23114
23115
23116cat >confcache <<\_ACEOF
23117# This file is a shell script that caches the results of configure
23118# tests run on this system so they can be shared between configure
23119# scripts and configure runs, see configure's option --config-cache.
23120# It is not useful on other systems.  If it contains results you don't
23121# want to keep, you may remove or edit it.
23122#
23123# config.status only pays attention to the cache file if you give it
23124# the --recheck option to rerun configure.
23125#
23126# `ac_cv_env_foo' variables (set or unset) will be overridden when
23127# loading this file, other *unset* `ac_cv_foo' will be assigned the
23128# following values.
23129
23130_ACEOF
23131
23132# The following way of writing the cache mishandles newlines in values,
23133# but we know of no workaround that is simple, portable, and efficient.
23134# So, we kill variables containing newlines.
23135# Ultrix sh set writes to stderr and can't be redirected directly,
23136# and sets the high bit in the cache file unless we assign to the vars.
23137(
23138  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23139    eval ac_val=\$$ac_var
23140    case $ac_val in #(
23141    *${as_nl}*)
23142      case $ac_var in #(
23143      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23145      esac
23146      case $ac_var in #(
23147      _ | IFS | as_nl) ;; #(
23148      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23149      *) { eval $ac_var=; unset $ac_var;} ;;
23150      esac ;;
23151    esac
23152  done
23153
23154  (set) 2>&1 |
23155    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23156    *${as_nl}ac_space=\ *)
23157      # `set' does not quote correctly, so add quotes: double-quote
23158      # substitution turns \\\\ into \\, and sed turns \\ into \.
23159      sed -n \
23160	"s/'/'\\\\''/g;
23161	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23162      ;; #(
23163    *)
23164      # `set' quotes correctly as required by POSIX, so do not add quotes.
23165      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23166      ;;
23167    esac |
23168    sort
23169) |
23170  sed '
23171     /^ac_cv_env_/b end
23172     t clear
23173     :clear
23174     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23175     t end
23176     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23177     :end' >>confcache
23178if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23179  if test -w "$cache_file"; then
23180    if test "x$cache_file" != "x/dev/null"; then
23181      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23182$as_echo "$as_me: updating cache $cache_file" >&6;}
23183      if test ! -f "$cache_file" || test -h "$cache_file"; then
23184	cat confcache >"$cache_file"
23185      else
23186        case $cache_file in #(
23187        */* | ?:*)
23188	  mv -f confcache "$cache_file"$$ &&
23189	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23190        *)
23191	  mv -f confcache "$cache_file" ;;
23192	esac
23193      fi
23194    fi
23195  else
23196    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23197$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23198  fi
23199fi
23200rm -f confcache
23201
23202###############################################################################
23203#   Checks for structures and structure members...
23204###############################################################################
23205
23206ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
23207#include <sys/types.h>
23208#if HAVE_SYS_SOCKET_H
23209#include <sys/socket.h>
23210#endif
23211#if HAVE_NETINET_IN_H
23212#include <netinet/in.h>
23213#endif
23214
23215"
23216if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
23217
23218cat >>confdefs.h <<_ACEOF
23219#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
23220_ACEOF
23221
23222hc_cv_have_sockaddr_in_sin_len=yes
23223else
23224  hc_cv_have_sockaddr_in_sin_len=no
23225fi
23226
23227
23228ac_fn_c_check_member "$LINENO" "struct in_addr" "s_addr" "ac_cv_member_struct_in_addr_s_addr" "
23229#include <sys/types.h>
23230#if HAVE_SYS_SOCKET_H
23231#include <sys/socket.h>
23232#endif
23233#if HAVE_NETINET_IN_H
23234#include <netinet/in.h>
23235#endif
23236
23237"
23238if test "x$ac_cv_member_struct_in_addr_s_addr" = xyes; then :
23239
23240cat >>confdefs.h <<_ACEOF
23241#define HAVE_STRUCT_IN_ADDR_S_ADDR 1
23242_ACEOF
23243
23244hc_cv_have_in_addr_s_addr=yes
23245else
23246  hc_cv_have_in_addr_s_addr=no
23247fi
23248
23249
23250ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
23251"
23252if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
23253
23254cat >>confdefs.h <<_ACEOF
23255#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
23256_ACEOF
23257
23258hc_cv_have_sa_sigaction=yes
23259else
23260  hc_cv_have_sa_sigaction=no
23261fi
23262
23263
23264ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "#include <sys/types.h>
23265
23266"
23267if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
23268
23269cat >>confdefs.h <<_ACEOF
23270#define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
23271_ACEOF
23272
23273
23274        hc_cv_timespec_in_sys_types_h=yes
23275        hc_cv_timespec_in_time_h=no
23276
23277else
23278
23279        ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "#include <time.h>
23280
23281"
23282if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
23283
23284cat >>confdefs.h <<_ACEOF
23285#define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
23286_ACEOF
23287
23288
23289                hc_cv_timespec_in_sys_types_h=no
23290                hc_cv_timespec_in_time_h=yes
23291
23292else
23293
23294                hc_cv_timespec_in_sys_types_h=no
23295                hc_cv_timespec_in_time_h=no
23296
23297fi
23298
23299
23300fi
23301
23302
23303cat >confcache <<\_ACEOF
23304# This file is a shell script that caches the results of configure
23305# tests run on this system so they can be shared between configure
23306# scripts and configure runs, see configure's option --config-cache.
23307# It is not useful on other systems.  If it contains results you don't
23308# want to keep, you may remove or edit it.
23309#
23310# config.status only pays attention to the cache file if you give it
23311# the --recheck option to rerun configure.
23312#
23313# `ac_cv_env_foo' variables (set or unset) will be overridden when
23314# loading this file, other *unset* `ac_cv_foo' will be assigned the
23315# following values.
23316
23317_ACEOF
23318
23319# The following way of writing the cache mishandles newlines in values,
23320# but we know of no workaround that is simple, portable, and efficient.
23321# So, we kill variables containing newlines.
23322# Ultrix sh set writes to stderr and can't be redirected directly,
23323# and sets the high bit in the cache file unless we assign to the vars.
23324(
23325  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23326    eval ac_val=\$$ac_var
23327    case $ac_val in #(
23328    *${as_nl}*)
23329      case $ac_var in #(
23330      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23332      esac
23333      case $ac_var in #(
23334      _ | IFS | as_nl) ;; #(
23335      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23336      *) { eval $ac_var=; unset $ac_var;} ;;
23337      esac ;;
23338    esac
23339  done
23340
23341  (set) 2>&1 |
23342    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23343    *${as_nl}ac_space=\ *)
23344      # `set' does not quote correctly, so add quotes: double-quote
23345      # substitution turns \\\\ into \\, and sed turns \\ into \.
23346      sed -n \
23347	"s/'/'\\\\''/g;
23348	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23349      ;; #(
23350    *)
23351      # `set' quotes correctly as required by POSIX, so do not add quotes.
23352      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23353      ;;
23354    esac |
23355    sort
23356) |
23357  sed '
23358     /^ac_cv_env_/b end
23359     t clear
23360     :clear
23361     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23362     t end
23363     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23364     :end' >>confcache
23365if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23366  if test -w "$cache_file"; then
23367    if test "x$cache_file" != "x/dev/null"; then
23368      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23369$as_echo "$as_me: updating cache $cache_file" >&6;}
23370      if test ! -f "$cache_file" || test -h "$cache_file"; then
23371	cat confcache >"$cache_file"
23372      else
23373        case $cache_file in #(
23374        */* | ?:*)
23375	  mv -f confcache "$cache_file"$$ &&
23376	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23377        *)
23378	  mv -f confcache "$cache_file" ;;
23379	esac
23380      fi
23381    fi
23382  else
23383    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23384$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23385  fi
23386fi
23387rm -f confcache
23388
23389###############################################################################
23390#   Checks for compiler characteristics...
23391###############################################################################
23392
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23394$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23395if ${ac_cv_c_bigendian+:} false; then :
23396  $as_echo_n "(cached) " >&6
23397else
23398  ac_cv_c_bigendian=unknown
23399    # See if we're dealing with a universal compiler.
23400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23401/* end confdefs.h.  */
23402#ifndef __APPLE_CC__
23403	       not a universal capable compiler
23404	     #endif
23405	     typedef int dummy;
23406
23407_ACEOF
23408if ac_fn_c_try_compile "$LINENO"; then :
23409
23410	# Check for potential -arch flags.  It is not universal unless
23411	# there are at least two -arch flags with different values.
23412	ac_arch=
23413	ac_prev=
23414	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23415	 if test -n "$ac_prev"; then
23416	   case $ac_word in
23417	     i?86 | x86_64 | ppc | ppc64)
23418	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23419		 ac_arch=$ac_word
23420	       else
23421		 ac_cv_c_bigendian=universal
23422		 break
23423	       fi
23424	       ;;
23425	   esac
23426	   ac_prev=
23427	 elif test "x$ac_word" = "x-arch"; then
23428	   ac_prev=arch
23429	 fi
23430       done
23431fi
23432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433    if test $ac_cv_c_bigendian = unknown; then
23434      # See if sys/param.h defines the BYTE_ORDER macro.
23435      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23436/* end confdefs.h.  */
23437#include <sys/types.h>
23438	     #include <sys/param.h>
23439
23440int
23441main ()
23442{
23443#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23444		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23445		     && LITTLE_ENDIAN)
23446	      bogus endian macros
23447	     #endif
23448
23449  ;
23450  return 0;
23451}
23452_ACEOF
23453if ac_fn_c_try_compile "$LINENO"; then :
23454  # It does; now see whether it defined to BIG_ENDIAN or not.
23455	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456/* end confdefs.h.  */
23457#include <sys/types.h>
23458		#include <sys/param.h>
23459
23460int
23461main ()
23462{
23463#if BYTE_ORDER != BIG_ENDIAN
23464		 not big endian
23465		#endif
23466
23467  ;
23468  return 0;
23469}
23470_ACEOF
23471if ac_fn_c_try_compile "$LINENO"; then :
23472  ac_cv_c_bigendian=yes
23473else
23474  ac_cv_c_bigendian=no
23475fi
23476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23477fi
23478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23479    fi
23480    if test $ac_cv_c_bigendian = unknown; then
23481      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23482      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23483/* end confdefs.h.  */
23484#include <limits.h>
23485
23486int
23487main ()
23488{
23489#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23490	      bogus endian macros
23491	     #endif
23492
23493  ;
23494  return 0;
23495}
23496_ACEOF
23497if ac_fn_c_try_compile "$LINENO"; then :
23498  # It does; now see whether it defined to _BIG_ENDIAN or not.
23499	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23500/* end confdefs.h.  */
23501#include <limits.h>
23502
23503int
23504main ()
23505{
23506#ifndef _BIG_ENDIAN
23507		 not big endian
23508		#endif
23509
23510  ;
23511  return 0;
23512}
23513_ACEOF
23514if ac_fn_c_try_compile "$LINENO"; then :
23515  ac_cv_c_bigendian=yes
23516else
23517  ac_cv_c_bigendian=no
23518fi
23519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520fi
23521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522    fi
23523    if test $ac_cv_c_bigendian = unknown; then
23524      # Compile a test program.
23525      if test "$cross_compiling" = yes; then :
23526  # Try to guess by grepping values from an object file.
23527	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528/* end confdefs.h.  */
23529short int ascii_mm[] =
23530		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23531		short int ascii_ii[] =
23532		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23533		int use_ascii (int i) {
23534		  return ascii_mm[i] + ascii_ii[i];
23535		}
23536		short int ebcdic_ii[] =
23537		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23538		short int ebcdic_mm[] =
23539		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23540		int use_ebcdic (int i) {
23541		  return ebcdic_mm[i] + ebcdic_ii[i];
23542		}
23543		extern int foo;
23544
23545int
23546main ()
23547{
23548return use_ascii (foo) == use_ebcdic (foo);
23549  ;
23550  return 0;
23551}
23552_ACEOF
23553if ac_fn_c_try_compile "$LINENO"; then :
23554  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23555	      ac_cv_c_bigendian=yes
23556	    fi
23557	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23558	      if test "$ac_cv_c_bigendian" = unknown; then
23559		ac_cv_c_bigendian=no
23560	      else
23561		# finding both strings is unlikely to happen, but who knows?
23562		ac_cv_c_bigendian=unknown
23563	      fi
23564	    fi
23565fi
23566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567else
23568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569/* end confdefs.h.  */
23570$ac_includes_default
23571int
23572main ()
23573{
23574
23575	     /* Are we little or big endian?  From Harbison&Steele.  */
23576	     union
23577	     {
23578	       long int l;
23579	       char c[sizeof (long int)];
23580	     } u;
23581	     u.l = 1;
23582	     return u.c[sizeof (long int) - 1] == 1;
23583
23584  ;
23585  return 0;
23586}
23587_ACEOF
23588if ac_fn_c_try_run "$LINENO"; then :
23589  ac_cv_c_bigendian=no
23590else
23591  ac_cv_c_bigendian=yes
23592fi
23593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23594  conftest.$ac_objext conftest.beam conftest.$ac_ext
23595fi
23596
23597    fi
23598fi
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23600$as_echo "$ac_cv_c_bigendian" >&6; }
23601 case $ac_cv_c_bigendian in #(
23602   yes)
23603     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23604;; #(
23605   no)
23606      ;; #(
23607   universal)
23608
23609$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23610
23611     ;; #(
23612   *)
23613     as_fn_error $? "unknown endianness
23614 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23615 esac
23616
23617
23618#  PROGRAMMING NOTE: Okay, this is stupid. If there are any trailing spaces
23619#  following the type we're checking the size of, then they're converted to
23620#  underscores in the 'SIZEOF_XXXX' that gets #defined! For example, doing a
23621#  AC_CHECK_SIZEOF( int    ) yields: #define SIZEOF_INT____ 4  !!!!!!!!!!!!!
23622#  So... the below AC_CHECK_SIZEOF macros must NOT have any spaces in them!!
23623
23624# The cast to long int works around a bug in the HP C Compiler
23625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23627# This bug is HP SR number 8606223364.
23628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23629$as_echo_n "checking size of int... " >&6; }
23630if ${ac_cv_sizeof_int+:} false; then :
23631  $as_echo_n "(cached) " >&6
23632else
23633  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23634
23635else
23636  if test "$ac_cv_type_int" = yes; then
23637     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23639as_fn_error 77 "cannot compute sizeof (int)
23640See \`config.log' for more details" "$LINENO" 5; }
23641   else
23642     ac_cv_sizeof_int=0
23643   fi
23644fi
23645
23646fi
23647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23648$as_echo "$ac_cv_sizeof_int" >&6; }
23649
23650
23651
23652cat >>confdefs.h <<_ACEOF
23653#define SIZEOF_INT $ac_cv_sizeof_int
23654_ACEOF
23655
23656
23657# The cast to long int works around a bug in the HP C Compiler
23658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23660# This bug is HP SR number 8606223364.
23661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23662$as_echo_n "checking size of long... " >&6; }
23663if ${ac_cv_sizeof_long+:} false; then :
23664  $as_echo_n "(cached) " >&6
23665else
23666  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23667
23668else
23669  if test "$ac_cv_type_long" = yes; then
23670     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23672as_fn_error 77 "cannot compute sizeof (long)
23673See \`config.log' for more details" "$LINENO" 5; }
23674   else
23675     ac_cv_sizeof_long=0
23676   fi
23677fi
23678
23679fi
23680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23681$as_echo "$ac_cv_sizeof_long" >&6; }
23682
23683
23684
23685cat >>confdefs.h <<_ACEOF
23686#define SIZEOF_LONG $ac_cv_sizeof_long
23687_ACEOF
23688
23689
23690# The cast to long int works around a bug in the HP C Compiler
23691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23693# This bug is HP SR number 8606223364.
23694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23695$as_echo_n "checking size of size_t... " >&6; }
23696if ${ac_cv_sizeof_size_t+:} false; then :
23697  $as_echo_n "(cached) " >&6
23698else
23699  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23700
23701else
23702  if test "$ac_cv_type_size_t" = yes; then
23703     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23705as_fn_error 77 "cannot compute sizeof (size_t)
23706See \`config.log' for more details" "$LINENO" 5; }
23707   else
23708     ac_cv_sizeof_size_t=0
23709   fi
23710fi
23711
23712fi
23713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23714$as_echo "$ac_cv_sizeof_size_t" >&6; }
23715
23716
23717
23718cat >>confdefs.h <<_ACEOF
23719#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23720_ACEOF
23721
23722
23723# The cast to long int works around a bug in the HP C Compiler
23724# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23725# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23726# This bug is HP SR number 8606223364.
23727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
23728$as_echo_n "checking size of int *... " >&6; }
23729if ${ac_cv_sizeof_int_p+:} false; then :
23730  $as_echo_n "(cached) " >&6
23731else
23732  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
23733
23734else
23735  if test "$ac_cv_type_int_p" = yes; then
23736     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23738as_fn_error 77 "cannot compute sizeof (int *)
23739See \`config.log' for more details" "$LINENO" 5; }
23740   else
23741     ac_cv_sizeof_int_p=0
23742   fi
23743fi
23744
23745fi
23746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
23747$as_echo "$ac_cv_sizeof_int_p" >&6; }
23748
23749
23750
23751cat >>confdefs.h <<_ACEOF
23752#define SIZEOF_INT_P $ac_cv_sizeof_int_p
23753_ACEOF
23754
23755
23756# The cast to long int works around a bug in the HP C Compiler
23757# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23758# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23759# This bug is HP SR number 8606223364.
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23761$as_echo_n "checking size of off_t... " >&6; }
23762if ${ac_cv_sizeof_off_t+:} false; then :
23763  $as_echo_n "(cached) " >&6
23764else
23765  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
23766
23767else
23768  if test "$ac_cv_type_off_t" = yes; then
23769     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23771as_fn_error 77 "cannot compute sizeof (off_t)
23772See \`config.log' for more details" "$LINENO" 5; }
23773   else
23774     ac_cv_sizeof_off_t=0
23775   fi
23776fi
23777
23778fi
23779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23780$as_echo "$ac_cv_sizeof_off_t" >&6; }
23781
23782
23783
23784cat >>confdefs.h <<_ACEOF
23785#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23786_ACEOF
23787
23788
23789
23790#----------------------------------#
23791#  Structure alignment/size test   #
23792#----------------------------------#
23793
23794{ $as_echo "$as_me:${as_lineno-$LINENO}: begin check: whether byte structs are aligned/rounded by default... " >&5
23795$as_echo "$as_me: begin check: whether byte structs are aligned/rounded by default... " >&6;}
23796
23797cat > conftest.h << __EOF
23798#include <stdio.h>
23799struct bytestruct
23800{
23801    unsigned char a;
23802};
23803__EOF
23804
23805# The cast to long int works around a bug in the HP C Compiler
23806# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23807# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23808# This bug is HP SR number 8606223364.
23809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct bytestruct" >&5
23810$as_echo_n "checking size of struct bytestruct... " >&6; }
23811if ${ac_cv_sizeof_struct_bytestruct+:} false; then :
23812  $as_echo_n "(cached) " >&6
23813else
23814  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct bytestruct))" "ac_cv_sizeof_struct_bytestruct"        "#include \"conftest.h\"
23815"; then :
23816
23817else
23818  if test "$ac_cv_type_struct_bytestruct" = yes; then
23819     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23821as_fn_error 77 "cannot compute sizeof (struct bytestruct)
23822See \`config.log' for more details" "$LINENO" 5; }
23823   else
23824     ac_cv_sizeof_struct_bytestruct=0
23825   fi
23826fi
23827
23828fi
23829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_bytestruct" >&5
23830$as_echo "$ac_cv_sizeof_struct_bytestruct" >&6; }
23831
23832
23833
23834cat >>confdefs.h <<_ACEOF
23835#define SIZEOF_STRUCT_BYTESTRUCT $ac_cv_sizeof_struct_bytestruct
23836_ACEOF
23837
23838
23839
23840if test "$ac_cv_sizeof_struct_bytestruct" = "1"; then
23841
23842    hc_cv_byte_structs_aligned_and_rounded_by_default=no
23843    hc_cv_byte_structs_always_aligned_and_rounded=no
23844
23845else
23846
23847    #  The sizeof our test structure is not '1'.
23848    #  The compiler is rounding the size of the
23849    #  structure upward to some predefined value.
23850
23851    hc_cv_byte_structs_aligned_and_rounded_by_default=yes
23852
23853    #  If there's no way to request the compiler
23854    #  to not do that, then we can't build Herc.
23855
23856    case "$host_cpu-$GCC" in
23857
23858        arm*-yes|xscale*-yes|sh*-yes|pxa*-yes)
23859
23860            hc_cv_byte_structs_always_aligned_and_rounded=no
23861            ;;
23862
23863        *)
23864            hc_cv_byte_structs_always_aligned_and_rounded=yes
23865            ;;
23866    esac
23867fi
23868
23869{ $as_echo "$as_me:${as_lineno-$LINENO}: results: byte structs are aligned/rounded by default... ${hc_cv_byte_structs_aligned_and_rounded_by_default} " >&5
23870$as_echo "$as_me: results: byte structs are aligned/rounded by default... ${hc_cv_byte_structs_aligned_and_rounded_by_default} " >&6;}
23871
23872if test "$hc_cv_byte_structs_always_aligned_and_rounded" = "yes"; then
23873
23874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Size of structures are aligned/rounded and we don't know how to tell the compiler otherwise " >&5
23875$as_echo "ERROR: Size of structures are aligned/rounded and we don't know how to tell the compiler otherwise " >&6; }
23876    hc_error=yes
23877fi
23878
23879#------------------------------#
23880#  Check if this is GCC 2.96   #
23881#------------------------------#
23882
23883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is the broken 2.96 version of GCC" >&5
23884$as_echo_n "checking if this is the broken 2.96 version of GCC... " >&6; }
23885if ${hc_cv_is_gcc_2_96+:} false; then :
23886  $as_echo_n "(cached) " >&6
23887else
23888
23889        if test "$GCC" = "yes"; then
23890
23891            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892/* end confdefs.h.  */
23893
23894                    #if __GNUC__ == 2 && __GNUC_MINOR__ == 96
23895                      yes;
23896                    #else
23897                      int no;
23898                    #endif
23899
23900_ACEOF
23901if ac_fn_c_try_compile "$LINENO"; then :
23902  hc_cv_is_gcc_2_96=no
23903else
23904  hc_cv_is_gcc_2_96=yes
23905
23906fi
23907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23908
23909        else
23910            hc_cv_is_gcc_2_96=no
23911        fi
23912
23913
23914fi
23915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_is_gcc_2_96" >&5
23916$as_echo "$hc_cv_is_gcc_2_96" >&6; }
23917
23918#----------------------------------------------#
23919#  Check C99 if flexible arrays are supported  #
23920#----------------------------------------------#
23921#  The logic to test whether C99 flexible      #
23922#  arrays are supported is defined in the      #
23923#  'HC_C99_FLEXIBLE_ARRAYS' macro in the       #
23924#  'hercules.m4' file in the 'autoconf' sub-   #
23925#   directory, and issues the AC_DEFINE for    #
23926#  'C99_FLEXIBLE_ARRAYS' if it's supported     #
23927#  and also sets '$hc_cv_c99_flexible_array'.  #
23928#----------------------------------------------#
23929
23930
23931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C99 struct flexible arrays support" >&5
23932$as_echo_n "checking C99 struct flexible arrays support... " >&6; }
23933if ${hc_cv_c99_flexible_array+:} false; then :
23934  $as_echo_n "(cached) " >&6
23935else
23936
23937            # Initialize to unknown
23938            hc_cv_c99_flexible_array=no
23939
23940            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23941/* end confdefs.h.  */
23942
23943                    #include <stdlib.h>
23944
23945                    typedef struct
23946                    {
23947                        int foo;
23948                        char bar[];
23949                    }
23950                    FOOBAR;
23951
23952int
23953main ()
23954{
23955
23956                    int main(int argc, char *argv[])
23957                    {
23958                        FOOBAR* p = calloc( 1, sizeof(FOOBAR) + 16 );
23959                        return 0;
23960                    }
23961
23962  ;
23963  return 0;
23964}
23965_ACEOF
23966if ac_fn_c_try_link "$LINENO"; then :
23967  hc_cv_c99_flexible_array=yes
23968else
23969  hc_cv_c99_flexible_array=no
23970
23971fi
23972rm -f core conftest.err conftest.$ac_objext \
23973    conftest$ac_exeext conftest.$ac_ext
23974
23975
23976fi
23977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_c99_flexible_array" >&5
23978$as_echo "$hc_cv_c99_flexible_array" >&6; }
23979
23980    if test "$hc_cv_c99_flexible_array" = "yes"; then
23981
23982        $as_echo "#define C99_FLEXIBLE_ARRAYS 1" >>confdefs.h
23983
23984    fi
23985
23986
23987#--------------------------------------------------------#
23988#  Check if GCC supports '__attribute__ ((regparm(n)))'  #
23989#--------------------------------------------------------#
23990
23991#  Note: even though at the moment GCC only supports regparm
23992#  on i386 or greater machines, that could change at any time
23993#  in the future so we don't bother checking for it.
23994
23995if test "$GCC" = "yes"; then
23996
23997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether '__attribute__ ((regparm(n)))' is supported" >&5
23998$as_echo_n "checking whether '__attribute__ ((regparm(n)))' is supported... " >&6; }
23999if ${hc_cv_regparm_attr_supported+:} false; then :
24000  $as_echo_n "(cached) " >&6
24001else
24002
24003            hc_temp="$CFLAGS"
24004            CFLAGS="-Wall -Werror"
24005
24006            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007/* end confdefs.h.  */
24008
24009                    void conftest() __attribute__ ((regparm(1)));
24010
24011_ACEOF
24012if ac_fn_c_try_compile "$LINENO"; then :
24013  hc_cv_regparm_attr_supported=yes
24014else
24015  hc_cv_regparm_attr_supported=no
24016
24017fi
24018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019
24020            CFLAGS="$hc_temp"
24021
24022
24023fi
24024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_regparm_attr_supported" >&5
24025$as_echo "$hc_cv_regparm_attr_supported" >&6; }
24026else
24027    hc_cv_regparm_attr_supported=no
24028fi
24029
24030#---------------------------------------------------#
24031#  Test for GCC '__attribute__ ((regparm(3)))' bug  #
24032#---------------------------------------------------#
24033
24034if test "$GCC"                          = "yes"  &&
24035   test "$hc_cv_regparm_attr_supported" = "yes"; then
24036
24037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether '__attribute__ ((regparm(3)))' is broken" >&5
24038$as_echo_n "checking whether '__attribute__ ((regparm(3)))' is broken... " >&6; }
24039if ${hc_cv_regparm_attr_broke+:} false; then :
24040  $as_echo_n "(cached) " >&6
24041else
24042
24043            hc_temp="$CFLAGS"
24044            CFLAGS="-O3 -fomit-frame-pointer"
24045
24046            if test "$cross_compiling" = yes; then :
24047  hc_cv_regparm_attr_broke=yes
24048
24049else
24050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24051/* end confdefs.h.  */
24052
24053                    /*
24054                        Fish: Test for reparms bug caused by alloca bug# 8750
24055                        Ref: <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8750>
24056                    */
24057                    struct REGS
24058                    {
24059                        int a, b, c, d;
24060                        char e[50000];
24061                    };
24062                    typedef struct REGS REGS;
24063
24064                    #define ATTR_REGPARM __attribute__ (( regparm(3) ))
24065
24066                    int func1 ( int a, int b, int c, REGS *regs ) ATTR_REGPARM;
24067                    int func2 ( int a, int b, int c, REGS *regs ) ATTR_REGPARM;
24068
24069                    REGS global_regs;
24070
24071                    int main()
24072                    {
24073                        return func1( 1, 2, 3, &global_regs );
24074                    }
24075
24076                    int ATTR_REGPARM func1 ( int a, int b, int c, REGS *regs )
24077                    {
24078                        REGS stack_regs;
24079                        regs=regs; /* (quiet compiler warning) */
24080                        if ( func2( a, b, c, &stack_regs ) == 0 ) return 0; /* pass */
24081                        return 1; /* fail */
24082                    }
24083
24084                    int ATTR_REGPARM func2 ( int a, int b, int c, REGS *regs )
24085                    {
24086                        regs=regs; /* (quiet compiler warning) */
24087                        if ( 1==a && 2==b && 3==c ) return 0; /* pass */
24088                        return 1; /* fail */
24089                    }
24090
24091_ACEOF
24092if ac_fn_c_try_run "$LINENO"; then :
24093  hc_cv_regparm_attr_broke=no
24094else
24095  hc_cv_regparm_attr_broke=yes
24096fi
24097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24098  conftest.$ac_objext conftest.beam conftest.$ac_ext
24099fi
24100
24101
24102            CFLAGS="$hc_temp"
24103
24104
24105fi
24106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_regparm_attr_broke" >&5
24107$as_echo "$hc_cv_regparm_attr_broke" >&6; }
24108else
24109    hc_cv_regparm_attr_broke=no
24110fi
24111
24112#------------------------------------------------------#
24113#  Test for GCC builtin alloca bug# 8750               #
24114#  <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8750>  #
24115#------------------------------------------------------#
24116
24117if test "$GCC" = "yes"; then
24118
24119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether '__builtin_alloca' is broken" >&5
24120$as_echo_n "checking whether '__builtin_alloca' is broken... " >&6; }
24121if ${hc_cv_builtin_alloca_broke+:} false; then :
24122  $as_echo_n "(cached) " >&6
24123else
24124
24125            hc_temp=$CFLAGS
24126            CFLAGS="-g -O2 -fomit-frame-pointer"
24127
24128            if test "$cross_compiling" = yes; then :
24129  hc_cv_builtin_alloca_broke=yes
24130
24131else
24132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133/* end confdefs.h.  */
24134
24135                    /*
24136                        Fish: Test for gcc builtin alloca bug# 8750
24137                        <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8750>
24138
24139                        Required(?!) (not sure) compiler options:
24140
24141                            -g -O2 -fomit-frame-pointer
24142                    */
24143
24144                    int foo ()
24145                    {
24146                        char a[50000+16];
24147                        memset(a,0xCD,50000);
24148                        a[50000]=0;
24149                        return strlen(a);
24150                    }
24151
24152                    int main()
24153                    {
24154                        return ( foo() != 50000 );
24155                    }
24156
24157_ACEOF
24158if ac_fn_c_try_run "$LINENO"; then :
24159  hc_cv_builtin_alloca_broke=no
24160else
24161  hc_cv_builtin_alloca_broke=yes
24162fi
24163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24164  conftest.$ac_objext conftest.beam conftest.$ac_ext
24165fi
24166
24167
24168            CFLAGS=$hc_temp
24169
24170
24171fi
24172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_builtin_alloca_broke" >&5
24173$as_echo "$hc_cv_builtin_alloca_broke" >&6; }
24174else
24175    hc_cv_builtin_alloca_broke=no
24176fi
24177
24178#------------------------------------------------------------#
24179#  Check for OS X gcc preprocessor macro argument count bug  #
24180#------------------------------------------------------------#
24181
24182if test "$GCC" = "yes"; then
24183
24184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether preprocessor macro argument counting broken" >&5
24185$as_echo_n "checking whether preprocessor macro argument counting broken... " >&6; }
24186if ${hc_cv_pp_macro_arg_counting_broke+:} false; then :
24187  $as_echo_n "(cached) " >&6
24188else
24189
24190            hc_temp="$CFLAGS"
24191            CFLAGS="-Wall -Werror"
24192
24193            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24194/* end confdefs.h.  */
24195
24196                    #include <stdio.h>
24197                    #define MACRO(_x,_args...) printf(_x, ## _args)
24198                    int  main( int argc, char **argv, char **arge )
24199                    {
24200                        MACRO( "bare printf\n" );
24201                        return 0;
24202                    }
24203
24204_ACEOF
24205if ac_fn_c_try_compile "$LINENO"; then :
24206  hc_cv_pp_macro_arg_counting_broke=no
24207else
24208  hc_cv_pp_macro_arg_counting_broke=yes
24209
24210fi
24211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212
24213            CFLAGS="$hc_temp"
24214
24215
24216fi
24217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_pp_macro_arg_counting_broke" >&5
24218$as_echo "$hc_cv_pp_macro_arg_counting_broke" >&6; }
24219else
24220    hc_cv_pp_macro_arg_counting_broke=no
24221fi
24222
24223#------------------------------------------------------------#
24224#  Check if traditional preprocessor is the K&R C type...    #
24225#------------------------------------------------------------#
24226#
24227# Apple's latest GCC documentation reveals:
24228#
24229#     ... the -traditional-cpp option has changed.
24230#    In Apple GCC 3.1 and earlier Apple GCC compilers,
24231#    -traditional-cpp was used to toggle between the
24232#    standard GNU GCC preprocessor and Apple's own
24233#    preprocessor, "cpp-precomp". The GNU GCC compiler
24234#    interpreted -traditional-cpp differently on all
24235#    other platforms. Since cpp-precomp has been removed
24236#    for Apple's GCC 3.3 compiler, the standard GNU
24237#    meaning of -traditional-cpp has been restored. By
24238#    default, the GCC 3.3 preprocessor conforms to the
24239#    ISO C standard. Using the -tradtional-cpp option
24240#    means the C preprocessor should instead try to
24241#    emulate the old "K&R C".
24242#
24243#------------------------------------------------------------#
24244
24245if test "$GCC" = "yes"; then
24246
24247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether '-traditional-cpp' is K&R C preprocessor" >&5
24248$as_echo_n "checking whether '-traditional-cpp' is K&R C preprocessor... " >&6; }
24249if ${hc_cv_traditional_cpp_is_K_AND_R_C_type+:} false; then :
24250  $as_echo_n "(cached) " >&6
24251else
24252
24253            hc_temp="$CFLAGS"
24254            CFLAGS="-Wall -Werror -traditional-cpp"
24255
24256# Note: The test program MUST start in column 1! Otherwise, the compilation
24257# will fail when it's not supposed to.
24258            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24259/* end confdefs.h.  */
24260
24261/* If the following gets an error, then the
24262   "traditional" preprocessor is K&R C type.
24263   Otherwise if it compiles WITHOUT error
24264   the the "traditional" preprocessor is NOT
24265   the K&R C type.
24266*/
24267#if 1
24268  #include <stdio.h>  // comment/etc...
24269#endif
24270int main( int, char**, char** )
24271{
24272  return 0;
24273}
24274
24275_ACEOF
24276if ac_fn_c_try_compile "$LINENO"; then :
24277  hc_cv_traditional_cpp_is_K_AND_R_C_type=no
24278else
24279  hc_cv_traditional_cpp_is_K_AND_R_C_type=yes
24280
24281fi
24282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283
24284            CFLAGS="$hc_temp"
24285
24286
24287fi
24288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_traditional_cpp_is_K_AND_R_C_type" >&5
24289$as_echo "$hc_cv_traditional_cpp_is_K_AND_R_C_type" >&6; }
24290else
24291    hc_cv_traditional_cpp_is_K_AND_R_C_type=no
24292fi
24293
24294#-----------------------------------------------------------#
24295#  Check whether byte-swapping can be done using assembler  #
24296#-----------------------------------------------------------#
24297
24298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte-swapping can be done using assembler " >&5
24299$as_echo_n "checking whether byte-swapping can be done using assembler ... " >&6; }
24300
24301# (use our own byteswap assembler routines are i486+ only)
24302# use system's byteswap routines if present...
24303
24304case "$host_cpu" in
24305
24306    i486|i586|i686|i786|x86_64)
24307
24308        hc_cv_asm_byteswap=yes
24309        ;;
24310    *)
24311        hc_cv_asm_byteswap=$hc_cv_have_byteswap_h
24312        ;;
24313esac
24314
24315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_asm_byteswap " >&5
24316$as_echo "$hc_cv_asm_byteswap " >&6; }
24317
24318#----------------------------------------------#
24319#  Check whether -pthread needed for pthreads  #
24320#----------------------------------------------#
24321
24322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread " >&5
24323$as_echo_n "checking whether ${CC-cc} accepts -pthread ... " >&6; }
24324
24325echo 'void f(){}' >conftest.c
24326if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
24327    hc_cv_dash_pthread_needed=yes
24328else
24329    hc_cv_dash_pthread_needed=no
24330fi
24331
24332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_dash_pthread_needed " >&5
24333$as_echo "$hc_cv_dash_pthread_needed " >&6; }
24334
24335#------------------------------------------------------------------
24336#  The logic to test whether optreset is needed for getopt use is
24337#  defined in the 'HC_CHECK_NEED_GETOPT_OPTRESET' macro in the
24338#  'hercules.m4' file in the autoconf directory, and issues the
24339#  AC_DEFINE for 'NEED_GETOPT_OPTRESET' if it's needed (and also
24340#  sets the '$hc_cv_need_getopt_optreset' variable appropriately).
24341#------------------------------------------------------------------
24342
24343
24344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'optreset' needed for 'getopt' use" >&5
24345$as_echo_n "checking whether 'optreset' needed for 'getopt' use... " >&6; }
24346if ${hc_cv_need_getopt_optreset+:} false; then :
24347  $as_echo_n "(cached) " >&6
24348else
24349
24350            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24351/* end confdefs.h.  */
24352
24353int
24354main ()
24355{
24356
24357                    extern int optreset;
24358                    optreset=1;
24359                    getopt(0,0,0);
24360
24361  ;
24362  return 0;
24363}
24364_ACEOF
24365if ac_fn_c_try_link "$LINENO"; then :
24366  hc_cv_need_getopt_optreset=yes
24367else
24368  hc_cv_need_getopt_optreset=no
24369
24370fi
24371rm -f core conftest.err conftest.$ac_objext \
24372    conftest$ac_exeext conftest.$ac_ext
24373
24374
24375fi
24376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_need_getopt_optreset" >&5
24377$as_echo "$hc_cv_need_getopt_optreset" >&6; }
24378
24379    if test "$hc_cv_need_getopt_optreset" = "yes"; then
24380
24381        $as_echo "#define NEED_GETOPT_OPTRESET 1" >>confdefs.h
24382
24383    fi
24384
24385
24386cat >confcache <<\_ACEOF
24387# This file is a shell script that caches the results of configure
24388# tests run on this system so they can be shared between configure
24389# scripts and configure runs, see configure's option --config-cache.
24390# It is not useful on other systems.  If it contains results you don't
24391# want to keep, you may remove or edit it.
24392#
24393# config.status only pays attention to the cache file if you give it
24394# the --recheck option to rerun configure.
24395#
24396# `ac_cv_env_foo' variables (set or unset) will be overridden when
24397# loading this file, other *unset* `ac_cv_foo' will be assigned the
24398# following values.
24399
24400_ACEOF
24401
24402# The following way of writing the cache mishandles newlines in values,
24403# but we know of no workaround that is simple, portable, and efficient.
24404# So, we kill variables containing newlines.
24405# Ultrix sh set writes to stderr and can't be redirected directly,
24406# and sets the high bit in the cache file unless we assign to the vars.
24407(
24408  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24409    eval ac_val=\$$ac_var
24410    case $ac_val in #(
24411    *${as_nl}*)
24412      case $ac_var in #(
24413      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24415      esac
24416      case $ac_var in #(
24417      _ | IFS | as_nl) ;; #(
24418      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24419      *) { eval $ac_var=; unset $ac_var;} ;;
24420      esac ;;
24421    esac
24422  done
24423
24424  (set) 2>&1 |
24425    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24426    *${as_nl}ac_space=\ *)
24427      # `set' does not quote correctly, so add quotes: double-quote
24428      # substitution turns \\\\ into \\, and sed turns \\ into \.
24429      sed -n \
24430	"s/'/'\\\\''/g;
24431	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24432      ;; #(
24433    *)
24434      # `set' quotes correctly as required by POSIX, so do not add quotes.
24435      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24436      ;;
24437    esac |
24438    sort
24439) |
24440  sed '
24441     /^ac_cv_env_/b end
24442     t clear
24443     :clear
24444     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24445     t end
24446     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24447     :end' >>confcache
24448if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24449  if test -w "$cache_file"; then
24450    if test "x$cache_file" != "x/dev/null"; then
24451      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24452$as_echo "$as_me: updating cache $cache_file" >&6;}
24453      if test ! -f "$cache_file" || test -h "$cache_file"; then
24454	cat confcache >"$cache_file"
24455      else
24456        case $cache_file in #(
24457        */* | ?:*)
24458	  mv -f confcache "$cache_file"$$ &&
24459	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24460        *)
24461	  mv -f confcache "$cache_file" ;;
24462	esac
24463      fi
24464    fi
24465  else
24466    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24467$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24468  fi
24469fi
24470rm -f confcache
24471
24472###############################################################################
24473#   Checks for system services...
24474###############################################################################
24475
24476# Check whether --enable-largefile was given.
24477if test "${enable_largefile+set}" = set; then :
24478  enableval=$enable_largefile;
24479fi
24480
24481if test "$enable_largefile" != no; then
24482
24483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24484$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24485if ${ac_cv_sys_largefile_CC+:} false; then :
24486  $as_echo_n "(cached) " >&6
24487else
24488  ac_cv_sys_largefile_CC=no
24489     if test "$GCC" != yes; then
24490       ac_save_CC=$CC
24491       while :; do
24492	 # IRIX 6.2 and later do not support large files by default,
24493	 # so use the C compiler's -n32 option if that helps.
24494	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495/* end confdefs.h.  */
24496#include <sys/types.h>
24497 /* Check that off_t can represent 2**63 - 1 correctly.
24498    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24499    since some C++ compilers masquerading as C compilers
24500    incorrectly reject 9223372036854775807.  */
24501#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24502  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24503		       && LARGE_OFF_T % 2147483647 == 1)
24504		      ? 1 : -1];
24505int
24506main ()
24507{
24508
24509  ;
24510  return 0;
24511}
24512_ACEOF
24513	 if ac_fn_c_try_compile "$LINENO"; then :
24514  break
24515fi
24516rm -f core conftest.err conftest.$ac_objext
24517	 CC="$CC -n32"
24518	 if ac_fn_c_try_compile "$LINENO"; then :
24519  ac_cv_sys_largefile_CC=' -n32'; break
24520fi
24521rm -f core conftest.err conftest.$ac_objext
24522	 break
24523       done
24524       CC=$ac_save_CC
24525       rm -f conftest.$ac_ext
24526    fi
24527fi
24528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24529$as_echo "$ac_cv_sys_largefile_CC" >&6; }
24530  if test "$ac_cv_sys_largefile_CC" != no; then
24531    CC=$CC$ac_cv_sys_largefile_CC
24532  fi
24533
24534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24535$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24536if ${ac_cv_sys_file_offset_bits+:} false; then :
24537  $as_echo_n "(cached) " >&6
24538else
24539  while :; do
24540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24541/* end confdefs.h.  */
24542#include <sys/types.h>
24543 /* Check that off_t can represent 2**63 - 1 correctly.
24544    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24545    since some C++ compilers masquerading as C compilers
24546    incorrectly reject 9223372036854775807.  */
24547#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24548  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24549		       && LARGE_OFF_T % 2147483647 == 1)
24550		      ? 1 : -1];
24551int
24552main ()
24553{
24554
24555  ;
24556  return 0;
24557}
24558_ACEOF
24559if ac_fn_c_try_compile "$LINENO"; then :
24560  ac_cv_sys_file_offset_bits=no; break
24561fi
24562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564/* end confdefs.h.  */
24565#define _FILE_OFFSET_BITS 64
24566#include <sys/types.h>
24567 /* Check that off_t can represent 2**63 - 1 correctly.
24568    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24569    since some C++ compilers masquerading as C compilers
24570    incorrectly reject 9223372036854775807.  */
24571#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24572  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24573		       && LARGE_OFF_T % 2147483647 == 1)
24574		      ? 1 : -1];
24575int
24576main ()
24577{
24578
24579  ;
24580  return 0;
24581}
24582_ACEOF
24583if ac_fn_c_try_compile "$LINENO"; then :
24584  ac_cv_sys_file_offset_bits=64; break
24585fi
24586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24587  ac_cv_sys_file_offset_bits=unknown
24588  break
24589done
24590fi
24591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24592$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24593case $ac_cv_sys_file_offset_bits in #(
24594  no | unknown) ;;
24595  *)
24596cat >>confdefs.h <<_ACEOF
24597#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24598_ACEOF
24599;;
24600esac
24601rm -rf conftest*
24602  if test $ac_cv_sys_file_offset_bits = unknown; then
24603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24604$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24605if ${ac_cv_sys_large_files+:} false; then :
24606  $as_echo_n "(cached) " >&6
24607else
24608  while :; do
24609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610/* end confdefs.h.  */
24611#include <sys/types.h>
24612 /* Check that off_t can represent 2**63 - 1 correctly.
24613    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24614    since some C++ compilers masquerading as C compilers
24615    incorrectly reject 9223372036854775807.  */
24616#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24617  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24618		       && LARGE_OFF_T % 2147483647 == 1)
24619		      ? 1 : -1];
24620int
24621main ()
24622{
24623
24624  ;
24625  return 0;
24626}
24627_ACEOF
24628if ac_fn_c_try_compile "$LINENO"; then :
24629  ac_cv_sys_large_files=no; break
24630fi
24631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633/* end confdefs.h.  */
24634#define _LARGE_FILES 1
24635#include <sys/types.h>
24636 /* Check that off_t can represent 2**63 - 1 correctly.
24637    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24638    since some C++ compilers masquerading as C compilers
24639    incorrectly reject 9223372036854775807.  */
24640#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24641  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24642		       && LARGE_OFF_T % 2147483647 == 1)
24643		      ? 1 : -1];
24644int
24645main ()
24646{
24647
24648  ;
24649  return 0;
24650}
24651_ACEOF
24652if ac_fn_c_try_compile "$LINENO"; then :
24653  ac_cv_sys_large_files=1; break
24654fi
24655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656  ac_cv_sys_large_files=unknown
24657  break
24658done
24659fi
24660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24661$as_echo "$ac_cv_sys_large_files" >&6; }
24662case $ac_cv_sys_large_files in #(
24663  no | unknown) ;;
24664  *)
24665cat >>confdefs.h <<_ACEOF
24666#define _LARGE_FILES $ac_cv_sys_large_files
24667_ACEOF
24668;;
24669esac
24670rm -rf conftest*
24671  fi
24672
24673
24674fi
24675
24676ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24677if test "x$ac_cv_type_off_t" = xyes; then :
24678
24679else
24680
24681cat >>confdefs.h <<_ACEOF
24682#define off_t long int
24683_ACEOF
24684
24685fi
24686
24687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24688$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
24689if ${ac_cv_sys_largefile_source+:} false; then :
24690  $as_echo_n "(cached) " >&6
24691else
24692  while :; do
24693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24694/* end confdefs.h.  */
24695#include <sys/types.h> /* for off_t */
24696     #include <stdio.h>
24697int
24698main ()
24699{
24700int (*fp) (FILE *, off_t, int) = fseeko;
24701     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24702  ;
24703  return 0;
24704}
24705_ACEOF
24706if ac_fn_c_try_link "$LINENO"; then :
24707  ac_cv_sys_largefile_source=no; break
24708fi
24709rm -f core conftest.err conftest.$ac_objext \
24710    conftest$ac_exeext conftest.$ac_ext
24711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712/* end confdefs.h.  */
24713#define _LARGEFILE_SOURCE 1
24714#include <sys/types.h> /* for off_t */
24715     #include <stdio.h>
24716int
24717main ()
24718{
24719int (*fp) (FILE *, off_t, int) = fseeko;
24720     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24721  ;
24722  return 0;
24723}
24724_ACEOF
24725if ac_fn_c_try_link "$LINENO"; then :
24726  ac_cv_sys_largefile_source=1; break
24727fi
24728rm -f core conftest.err conftest.$ac_objext \
24729    conftest$ac_exeext conftest.$ac_ext
24730  ac_cv_sys_largefile_source=unknown
24731  break
24732done
24733fi
24734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24735$as_echo "$ac_cv_sys_largefile_source" >&6; }
24736case $ac_cv_sys_largefile_source in #(
24737  no | unknown) ;;
24738  *)
24739cat >>confdefs.h <<_ACEOF
24740#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24741_ACEOF
24742;;
24743esac
24744rm -rf conftest*
24745
24746# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24747# in glibc 2.1.3, but that breaks too many other things.
24748# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24749if test $ac_cv_sys_largefile_source != unknown; then
24750
24751$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
24752
24753fi
24754
24755
24756cat >confcache <<\_ACEOF
24757# This file is a shell script that caches the results of configure
24758# tests run on this system so they can be shared between configure
24759# scripts and configure runs, see configure's option --config-cache.
24760# It is not useful on other systems.  If it contains results you don't
24761# want to keep, you may remove or edit it.
24762#
24763# config.status only pays attention to the cache file if you give it
24764# the --recheck option to rerun configure.
24765#
24766# `ac_cv_env_foo' variables (set or unset) will be overridden when
24767# loading this file, other *unset* `ac_cv_foo' will be assigned the
24768# following values.
24769
24770_ACEOF
24771
24772# The following way of writing the cache mishandles newlines in values,
24773# but we know of no workaround that is simple, portable, and efficient.
24774# So, we kill variables containing newlines.
24775# Ultrix sh set writes to stderr and can't be redirected directly,
24776# and sets the high bit in the cache file unless we assign to the vars.
24777(
24778  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24779    eval ac_val=\$$ac_var
24780    case $ac_val in #(
24781    *${as_nl}*)
24782      case $ac_var in #(
24783      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24785      esac
24786      case $ac_var in #(
24787      _ | IFS | as_nl) ;; #(
24788      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24789      *) { eval $ac_var=; unset $ac_var;} ;;
24790      esac ;;
24791    esac
24792  done
24793
24794  (set) 2>&1 |
24795    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24796    *${as_nl}ac_space=\ *)
24797      # `set' does not quote correctly, so add quotes: double-quote
24798      # substitution turns \\\\ into \\, and sed turns \\ into \.
24799      sed -n \
24800	"s/'/'\\\\''/g;
24801	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24802      ;; #(
24803    *)
24804      # `set' quotes correctly as required by POSIX, so do not add quotes.
24805      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24806      ;;
24807    esac |
24808    sort
24809) |
24810  sed '
24811     /^ac_cv_env_/b end
24812     t clear
24813     :clear
24814     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24815     t end
24816     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24817     :end' >>confcache
24818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24819  if test -w "$cache_file"; then
24820    if test "x$cache_file" != "x/dev/null"; then
24821      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24822$as_echo "$as_me: updating cache $cache_file" >&6;}
24823      if test ! -f "$cache_file" || test -h "$cache_file"; then
24824	cat confcache >"$cache_file"
24825      else
24826        case $cache_file in #(
24827        */* | ?:*)
24828	  mv -f confcache "$cache_file"$$ &&
24829	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24830        *)
24831	  mv -f confcache "$cache_file" ;;
24832	esac
24833      fi
24834    fi
24835  else
24836    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24837$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24838  fi
24839fi
24840rm -f confcache
24841
24842###############################################################################
24843#   AC_CONFIG_FILES( [file...] )...
24844###############################################################################
24845
24846cat >confcache <<\_ACEOF
24847# This file is a shell script that caches the results of configure
24848# tests run on this system so they can be shared between configure
24849# scripts and configure runs, see configure's option --config-cache.
24850# It is not useful on other systems.  If it contains results you don't
24851# want to keep, you may remove or edit it.
24852#
24853# config.status only pays attention to the cache file if you give it
24854# the --recheck option to rerun configure.
24855#
24856# `ac_cv_env_foo' variables (set or unset) will be overridden when
24857# loading this file, other *unset* `ac_cv_foo' will be assigned the
24858# following values.
24859
24860_ACEOF
24861
24862# The following way of writing the cache mishandles newlines in values,
24863# but we know of no workaround that is simple, portable, and efficient.
24864# So, we kill variables containing newlines.
24865# Ultrix sh set writes to stderr and can't be redirected directly,
24866# and sets the high bit in the cache file unless we assign to the vars.
24867(
24868  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24869    eval ac_val=\$$ac_var
24870    case $ac_val in #(
24871    *${as_nl}*)
24872      case $ac_var in #(
24873      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24874$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24875      esac
24876      case $ac_var in #(
24877      _ | IFS | as_nl) ;; #(
24878      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24879      *) { eval $ac_var=; unset $ac_var;} ;;
24880      esac ;;
24881    esac
24882  done
24883
24884  (set) 2>&1 |
24885    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24886    *${as_nl}ac_space=\ *)
24887      # `set' does not quote correctly, so add quotes: double-quote
24888      # substitution turns \\\\ into \\, and sed turns \\ into \.
24889      sed -n \
24890	"s/'/'\\\\''/g;
24891	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24892      ;; #(
24893    *)
24894      # `set' quotes correctly as required by POSIX, so do not add quotes.
24895      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24896      ;;
24897    esac |
24898    sort
24899) |
24900  sed '
24901     /^ac_cv_env_/b end
24902     t clear
24903     :clear
24904     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24905     t end
24906     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24907     :end' >>confcache
24908if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24909  if test -w "$cache_file"; then
24910    if test "x$cache_file" != "x/dev/null"; then
24911      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24912$as_echo "$as_me: updating cache $cache_file" >&6;}
24913      if test ! -f "$cache_file" || test -h "$cache_file"; then
24914	cat confcache >"$cache_file"
24915      else
24916        case $cache_file in #(
24917        */* | ?:*)
24918	  mv -f confcache "$cache_file"$$ &&
24919	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24920        *)
24921	  mv -f confcache "$cache_file" ;;
24922	esac
24923      fi
24924    fi
24925  else
24926    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24927$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24928  fi
24929fi
24930rm -f confcache
24931
24932###############################################################################
24933#   Set flags according to user-specified --enable-xxxxx build options
24934###############################################################################
24935
24936#  PROGRAMMING NOTE: some of these values default to previously determined
24937#  values (e.g. cckd-bzip2 for example defaults to whether libbz2 exists),
24938#  so this section MUST [unfortunately] come AFTER the above sections. This
24939#  does have the unfortunate side effect of not detecting invalid options
24940#  right away like one would normally expect/want. The only way around that
24941#  would be to perform two checks (one at the beginning and then one again
24942#  later on), but that approach was rejected since it would tend to make our
24943#  configure.ac script less clean (simple and straightforward).
24944
24945# Check whether --enable-dynamic-load was given.
24946if test "${enable_dynamic_load+set}" = set; then :
24947  enableval=$enable_dynamic_load;
24948        case "${enableval}" in
24949        yes) hc_cv_opt_dynamic_load=yes                      ;;
24950        no)  hc_cv_opt_dynamic_load=no                       ;;
24951        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'dynamic-load' option " >&5
24952$as_echo "ERROR: invalid 'dynamic-load' option " >&6; }
24953             hc_error=yes
24954             ;;
24955        esac
24956
24957else
24958  hc_cv_opt_dynamic_load=yes
24959
24960fi
24961
24962
24963# Check whether --enable-cckd-bzip2 was given.
24964if test "${enable_cckd_bzip2+set}" = set; then :
24965  enableval=$enable_cckd_bzip2;
24966        case "${enableval}" in
24967        yes) hc_cv_opt_cckd_bzip2=yes                      ;;
24968        no)  hc_cv_opt_cckd_bzip2=no                       ;;
24969        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'cckd-bzip2' option " >&5
24970$as_echo "ERROR: invalid 'cckd-bzip2' option " >&6; }
24971             hc_error=yes
24972             ;;
24973        esac
24974
24975else
24976  hc_cv_opt_cckd_bzip2=$hc_cv_have_libbz2
24977
24978fi
24979
24980
24981# Check whether --enable-het-bzip2 was given.
24982if test "${enable_het_bzip2+set}" = set; then :
24983  enableval=$enable_het_bzip2;
24984        case "${enableval}" in
24985        yes) hc_cv_opt_het_bzip2=yes                      ;;
24986        no)  hc_cv_opt_het_bzip2=no                       ;;
24987        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'het-bzip2' option " >&5
24988$as_echo "ERROR: invalid 'het-bzip2' option " >&6; }
24989             hc_error=yes
24990             ;;
24991        esac
24992
24993else
24994  hc_cv_opt_het_bzip2=$hc_cv_have_libbz2
24995
24996fi
24997
24998
24999# Check whether --enable-debug was given.
25000if test "${enable_debug+set}" = set; then :
25001  enableval=$enable_debug;
25002        case "${enableval}" in
25003        yes) hc_cv_opt_debug=yes                      ;;
25004        no)  hc_cv_opt_debug=no                       ;;
25005        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'debug' option " >&5
25006$as_echo "ERROR: invalid 'debug' option " >&6; }
25007             hc_error=yes
25008             ;;
25009        esac
25010
25011else
25012  hc_cv_opt_debug=no
25013
25014fi
25015
25016
25017# Check whether --enable-optimization was given.
25018if test "${enable_optimization+set}" = set; then :
25019  enableval=$enable_optimization;
25020        hc_cv_opt_optimization=${enableval}
25021
25022else
25023  hc_cv_opt_optimization=yes
25024
25025fi
25026
25027
25028# Check whether --enable-configsymbols was given.
25029if test "${enable_configsymbols+set}" = set; then :
25030  enableval=$enable_configsymbols;
25031        case "${enableval}" in
25032        yes) hc_cv_opt_configsymbols=yes                      ;;
25033        no)  hc_cv_opt_configsymbols=no                       ;;
25034        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'configsymbols' option " >&5
25035$as_echo "ERROR: invalid 'configsymbols' option " >&6; }
25036             hc_error=yes
25037             ;;
25038        esac
25039
25040else
25041  hc_cv_opt_configsymbols=yes
25042
25043fi
25044
25045
25046# Check whether --enable-enhanced-configsymbols was given.
25047if test "${enable_enhanced_configsymbols+set}" = set; then :
25048  enableval=$enable_enhanced_configsymbols;
25049        case "${enableval}" in
25050        yes) hc_cv_opt_enhanced_configsymbols=yes                      ;;
25051        no)  hc_cv_opt_enhanced_configsymbols=no                       ;;
25052        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'enhanced-configsymbols' option " >&5
25053$as_echo "ERROR: invalid 'enhanced-configsymbols' option " >&6; }
25054             hc_error=yes
25055             ;;
25056        esac
25057
25058else
25059  hc_cv_opt_enhanced_configsymbols=yes
25060
25061fi
25062
25063
25064# Check whether --enable-enhanced-configincludes was given.
25065if test "${enable_enhanced_configincludes+set}" = set; then :
25066  enableval=$enable_enhanced_configincludes;
25067        case "${enableval}" in
25068        yes) hc_cv_opt_enhanced_configincludes=yes                      ;;
25069        no)  hc_cv_opt_enhanced_configincludes=no                       ;;
25070        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'enhanced-configincludes' option " >&5
25071$as_echo "ERROR: invalid 'enhanced-configincludes' option " >&6; }
25072             hc_error=yes
25073             ;;
25074        esac
25075
25076else
25077  hc_cv_opt_enhanced_configincludes=yes
25078
25079fi
25080
25081
25082# Check whether --enable-automatic-operator was given.
25083if test "${enable_automatic_operator+set}" = set; then :
25084  enableval=$enable_automatic_operator;
25085        case "${enableval}" in
25086        yes) hc_cv_opt_auto_oper=yes                      ;;
25087        no)  hc_cv_opt_auto_oper=no                       ;;
25088        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'automatic-operator' option " >&5
25089$as_echo "ERROR: invalid 'automatic-operator' option " >&6; }
25090             hc_error=yes
25091             ;;
25092        esac
25093
25094else
25095  hc_cv_opt_auto_oper=$hc_cv_have_regex_h
25096
25097fi
25098
25099
25100# Check whether --enable-external-gui was given.
25101if test "${enable_external_gui+set}" = set; then :
25102  enableval=$enable_external_gui;
25103        case "${enableval}" in
25104        yes) hc_cv_opt_external_gui=yes                      ;;
25105        no)  hc_cv_opt_external_gui=no                       ;;
25106        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'external-gui' option " >&5
25107$as_echo "ERROR: invalid 'external-gui' option " >&6; }
25108             hc_error=yes
25109             ;;
25110        esac
25111
25112else
25113  hc_cv_opt_external_gui=yes
25114
25115fi
25116
25117
25118# Check whether --enable-fthreads was given.
25119if test "${enable_fthreads+set}" = set; then :
25120  enableval=$enable_fthreads;
25121        case "${enableval}" in
25122        yes) hc_cv_opt_fthreads=yes                      ;;
25123        no)  hc_cv_opt_fthreads=no                       ;;
25124        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'fthreads' option " >&5
25125$as_echo "ERROR: invalid 'fthreads' option " >&6; }
25126             hc_error=yes
25127             ;;
25128        esac
25129
25130else
25131  hc_cv_opt_fthreads=$hc_cv_is_windows
25132
25133fi
25134
25135
25136# Check whether --enable-multi-cpu was given.
25137if test "${enable_multi_cpu+set}" = set; then :
25138  enableval=$enable_multi_cpu;
25139        case "${enableval}" in
25140        yes)             hc_cv_opt_num_cpu_engines=8                  ;;
25141        no)              hc_cv_opt_num_cpu_engines=1                  ;;
25142        *)
25143            if test 0 -lt "${enableval}" -a 128 -ge "${enableval}"
25144            then
25145                hc_cv_opt_num_cpu_engines=${enableval}
25146            else
25147                { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'multi-cpu' option " >&5
25148$as_echo "ERROR: invalid 'multi-cpu' option " >&6; }
25149                hc_error=yes
25150            fi
25151            ;;
25152        esac
25153
25154else
25155  hc_cv_opt_num_cpu_engines=8
25156
25157fi
25158
25159
25160# Check whether --enable-capabilities was given.
25161if test "${enable_capabilities+set}" = set; then :
25162  enableval=$enable_capabilities;
25163        case "${enableval}" in
25164        yes) hc_cv_opt_capabilities=yes                      ;;
25165        no)  hc_cv_opt_capabilities=no                       ;;
25166        *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: invalid 'capabilities' option " >&5
25167$as_echo "ERROR: invalid 'capabilities' option " >&6; }
25168             hc_error=yes
25169             ;;
25170        esac
25171
25172else
25173  hc_cv_opt_capabilities=hc_cv_have_sys_capability
25174
25175fi
25176
25177
25178# only include libcap if needed
25179if test "$hc_cv_opt_capabilities" = "yes"; then
25180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
25181$as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
25182if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
25183  $as_echo_n "(cached) " >&6
25184else
25185  ac_check_lib_save_LIBS=$LIBS
25186LIBS="-lcap  $LIBS"
25187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25188/* end confdefs.h.  */
25189
25190/* Override any GCC internal prototype to avoid an error.
25191   Use char because int might match the return type of a GCC
25192   builtin and then its argument prototype would still apply.  */
25193#ifdef __cplusplus
25194extern "C"
25195#endif
25196char cap_set_proc ();
25197int
25198main ()
25199{
25200return cap_set_proc ();
25201  ;
25202  return 0;
25203}
25204_ACEOF
25205if ac_fn_c_try_link "$LINENO"; then :
25206  ac_cv_lib_cap_cap_set_proc=yes
25207else
25208  ac_cv_lib_cap_cap_set_proc=no
25209fi
25210rm -f core conftest.err conftest.$ac_objext \
25211    conftest$ac_exeext conftest.$ac_ext
25212LIBS=$ac_check_lib_save_LIBS
25213fi
25214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
25215$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
25216if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
25217  cat >>confdefs.h <<_ACEOF
25218#define HAVE_LIBCAP 1
25219_ACEOF
25220
25221  LIBS="-lcap $LIBS"
25222
25223fi
25224
25225fi
25226# Force disable capabilities support if library is missing
25227if test "$ac_cv_lib_cap_cap_set_proc" = "no"; then
25228  hc_cv_opt_capabilities="no"
25229fi
25230# Force disable capabilities support if sys/capability.h header is missing
25231if test "$hc_cv_have_sys_capa_h" = "no"; then
25232  hc_cv_opt_capabilities="no"
25233fi
25234# Force disable capabilities support if sys/prctl.h header is missing
25235if test "$hc_cv_have_sys_prctl_h" = "no"; then
25236  hc_cv_opt_capabilities="no"
25237fi
25238
25239# Check whether --enable-custom was given.
25240if test "${enable_custom+set}" = set; then :
25241  enableval=$enable_custom;
25242        hc_cv_opt_custom_build_str=${enableval}
25243
25244
25245fi
25246
25247
25248if test "$hc_cv_build_hercifc" = "yes"; then
25249
25250    # Check whether --enable-setuid-hercifc was given.
25251if test "${enable_setuid_hercifc+set}" = set; then :
25252  enableval=$enable_setuid_hercifc;
25253            case "${enableval}" in
25254            yes) hc_cv_opt_setuid_hercifc=yes                      ;;
25255            no)  hc_cv_opt_setuid_hercifc=no                       ;;
25256            *)   hc_cv_opt_setuid_hercifc=yes
25257                 hc_cv_hercifc_groupname=${enableval}
25258                 ;;
25259            esac
25260
25261else
25262  hc_cv_opt_setuid_hercifc=no
25263
25264fi
25265
25266
25267    hc_cv_setuid_hercifc=$hc_cv_opt_setuid_hercifc
25268
25269else
25270    hc_cv_setuid_hercifc=no
25271fi
25272
25273#-----------------------------------------------------------------
25274#  The handling of AC_ARG_ENABLE for "--enable-getoptwrapper"
25275#  is defined within the 'HC_ARG_ENABLE_GETOPTWRAPPER' macro
25276#  coded in the 'hercules.m4' file in the autoconf directory
25277#  and issues the AC_DEFINE for NEED_GETOPT_WRAPPER if needed
25278#  (and sets the '$hc_cv_need_getopt_wrapper' variable too).
25279#-----------------------------------------------------------------
25280
25281
25282    # Check whether --enable-getoptwrapper was given.
25283if test "${enable_getoptwrapper+set}" = set; then :
25284  enableval=$enable_getoptwrapper;
25285            case "${enableval}" in
25286            yes)   hc_cv_opt_getoptwrapper=yes   ;;
25287            no)    hc_cv_opt_getoptwrapper=no    ;;
25288            auto)  hc_cv_opt_getoptwrapper=auto  ;;
25289            *)     hc_cv_opt_getoptwrapper=auto  ;;
25290            esac
25291
25292else
25293  hc_cv_opt_getoptwrapper=auto
25294
25295fi
25296
25297
25298
25299
25300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt wrapper kludge is necessary" >&5
25301$as_echo_n "checking whether getopt wrapper kludge is necessary... " >&6; }
25302
25303    if test "$hc_cv_opt_getoptwrapper" != "auto"; then
25304
25305        hc_cv_need_getopt_wrapper="$hc_cv_opt_getoptwrapper"
25306        hc_cv_need_getopt_wrapper_result_msg="$hc_cv_opt_getoptwrapper (forced)"
25307
25308    else
25309
25310        if test $(./libtool --features | fgrep "enable shared libraries" | wc -l) -ne 1; then
25311
25312            #  Libtool doesn't support shared libraries,
25313            #  and thus our wrapper kludge is not needed.
25314
25315            hc_cv_need_getopt_wrapper=no
25316            hc_cv_need_getopt_wrapper_result_msg=no
25317
25318        else
25319
25320            rm -f libconftest*
25321            rm -f .libs/libconftest*
25322
25323            cat > conftest1.c << DUPGETOPT1
25324
25325                /*
25326                   Test program that needs getopt, called by
25327                   another program which itself needs getopt.
25328                   Will the linker complain about duplicate
25329                   symbols for getopt? We'll soon find out!
25330                */
25331                extern char *optarg;
25332                extern int optind;
25333
25334                int test1()
25335                {
25336                    int i;
25337                    char *c;
25338
25339                    i=optind;
25340                    c=optarg;
25341
25342                    getopt(0,0,0);
25343
25344                    return 0;
25345                }
25346DUPGETOPT1
25347            cat > conftest2.c << DUPGETOPT2
25348
25349                /*
25350                   Test program that not only needs getopt,
25351                   but also calls another program which also
25352                   needs getopt. Will linker complain about
25353                   duplicate symbols for getopt? Let's see.
25354                */
25355                extern char *optarg;
25356                extern int optind;
25357                extern int test2();
25358
25359                int test2()
25360                {
25361                    int i;
25362                    char *c;
25363
25364                    i=optind;
25365                    c=optarg;
25366
25367                    getopt(0,0,0);
25368                    test1();
25369
25370                    return 0;
25371                }
25372DUPGETOPT2
25373
25374            ./libtool --mode=compile ${CC-cc} conftest1.c -c -o conftest1.lo > /dev/null 2>&1
25375            ./libtool --mode=compile ${CC-cc} conftest2.c -c -o conftest2.lo > /dev/null 2>&1
25376
25377            ./libtool --mode=link ${CC-cc} -shared -rpath /lib -no-undefined conftest1.lo                 -o libconftest1.la > /dev/null 2>&1
25378            ./libtool --mode=link ${CC-cc} -shared -rpath /lib -no-undefined conftest2.lo libconftest1.la -o libconftest2.la > /dev/null 2>&1
25379
25380            if test $? = 0; then
25381
25382                hc_cv_need_getopt_wrapper=no
25383                hc_cv_need_getopt_wrapper_result_msg=no
25384            else
25385
25386                hc_cv_need_getopt_wrapper=yes
25387                hc_cv_need_getopt_wrapper_result_msg=yes
25388            fi
25389
25390            rm -f *conftest*
25391            rm -f .libs/*conftest*
25392        fi
25393    fi
25394
25395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_need_getopt_wrapper_result_msg" >&5
25396$as_echo "$hc_cv_need_getopt_wrapper_result_msg" >&6; }
25397
25398    if test "$hc_cv_need_getopt_wrapper" = "yes"; then
25399
25400        $as_echo "#define NEED_GETOPT_WRAPPER 1" >>confdefs.h
25401
25402    fi
25403
25404
25405
25406#----------------------------------------------------------------
25407#  Note: '$enable_shared' is automatically set by LIBTOOL,
25408#        unless the user overrides it via --disable-shared.
25409#----------------------------------------------------------------
25410hc_cv_hdl_build_shared=$enable_shared
25411
25412cat >confcache <<\_ACEOF
25413# This file is a shell script that caches the results of configure
25414# tests run on this system so they can be shared between configure
25415# scripts and configure runs, see configure's option --config-cache.
25416# It is not useful on other systems.  If it contains results you don't
25417# want to keep, you may remove or edit it.
25418#
25419# config.status only pays attention to the cache file if you give it
25420# the --recheck option to rerun configure.
25421#
25422# `ac_cv_env_foo' variables (set or unset) will be overridden when
25423# loading this file, other *unset* `ac_cv_foo' will be assigned the
25424# following values.
25425
25426_ACEOF
25427
25428# The following way of writing the cache mishandles newlines in values,
25429# but we know of no workaround that is simple, portable, and efficient.
25430# So, we kill variables containing newlines.
25431# Ultrix sh set writes to stderr and can't be redirected directly,
25432# and sets the high bit in the cache file unless we assign to the vars.
25433(
25434  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25435    eval ac_val=\$$ac_var
25436    case $ac_val in #(
25437    *${as_nl}*)
25438      case $ac_var in #(
25439      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25441      esac
25442      case $ac_var in #(
25443      _ | IFS | as_nl) ;; #(
25444      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25445      *) { eval $ac_var=; unset $ac_var;} ;;
25446      esac ;;
25447    esac
25448  done
25449
25450  (set) 2>&1 |
25451    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25452    *${as_nl}ac_space=\ *)
25453      # `set' does not quote correctly, so add quotes: double-quote
25454      # substitution turns \\\\ into \\, and sed turns \\ into \.
25455      sed -n \
25456	"s/'/'\\\\''/g;
25457	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25458      ;; #(
25459    *)
25460      # `set' quotes correctly as required by POSIX, so do not add quotes.
25461      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25462      ;;
25463    esac |
25464    sort
25465) |
25466  sed '
25467     /^ac_cv_env_/b end
25468     t clear
25469     :clear
25470     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25471     t end
25472     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25473     :end' >>confcache
25474if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25475  if test -w "$cache_file"; then
25476    if test "x$cache_file" != "x/dev/null"; then
25477      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25478$as_echo "$as_me: updating cache $cache_file" >&6;}
25479      if test ! -f "$cache_file" || test -h "$cache_file"; then
25480	cat confcache >"$cache_file"
25481      else
25482        case $cache_file in #(
25483        */* | ?:*)
25484	  mv -f confcache "$cache_file"$$ &&
25485	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25486        *)
25487	  mv -f confcache "$cache_file" ;;
25488	esac
25489      fi
25490    fi
25491  else
25492    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25493$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25494  fi
25495fi
25496rm -f confcache
25497
25498###############################################################################
25499#   Final default settings, final sanity / error checks...
25500###############################################################################
25501
25502if test "$hc_cv_build_hercifc" = "yes"; then
25503
25504   if test "$hc_cv_have_linux_if_tun_h" != "yes"; then
25505
25506      if test "$hc_cv_have_net_if_h" != "yes"; then
25507
25508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required headers 'linux/if_tun.h' or 'net/if.h' not found " >&5
25509$as_echo "ERROR: Required headers 'linux/if_tun.h' or 'net/if.h' not found " >&6; }
25510         hc_error=yes
25511      fi
25512   fi
25513
25514   if test "$hc_cv_have_net_route_h" != "yes"; then
25515
25516      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'net/route_h' not found " >&5
25517$as_echo "ERROR: Required header 'net/route_h' not found " >&6; }
25518      hc_error=yes
25519   fi
25520fi
25521
25522#------------------------------------------------------------------------------
25523#  signal.h is only required if strsignal function isn't available since if
25524#  the strsignal function isn't available, we use our builtin which needs it.
25525#  The presumption that if the strsignal function is found, then the signal.h
25526#  header will also be found seems to be a fairly safe assumption to make IMO.
25527
25528if test "$hc_cv_have_strsignal" != "yes"  &&
25529   test "$hc_cv_have_signal_h"  != "yes"; then
25530
25531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required header 'signal.h' not found " >&5
25532$as_echo "ERROR: Required header 'signal.h' not found " >&6; }
25533   hc_error=yes
25534fi
25535
25536#------------------------------------------------------------------------------
25537
25538if test "$hc_cv_have_vsscanf" != "yes"; then
25539
25540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: Required function 'vsscanf' not found " >&5
25541$as_echo "ERROR: Required function 'vsscanf' not found " >&6; }
25542    hc_error=yes
25543fi
25544
25545#------------------------------------------------------------------------------
25546
25547if test "$hc_cv_have_inttypes_h" != "yes"  &&
25548   test "$hc_cv_have_u_int8_t"   != "yes"; then
25549
25550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: unable to find fixed-size data types " >&5
25551$as_echo "ERROR: unable to find fixed-size data types " >&6; }
25552   hc_error=yes
25553fi
25554
25555#------------------------------------------------------------------------------
25556
25557if test "$hc_cv_opt_cckd_bzip2" = "yes"  ||
25558   test "$hc_cv_opt_het_bzip2"  = "yes"; then
25559
25560   if test "$hc_cv_have_libbz2" != "yes"; then
25561
25562      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: bzip2 compression requested but libbz2 library not found " >&5
25563$as_echo "ERROR: bzip2 compression requested but libbz2 library not found " >&6; }
25564      hc_error=yes
25565   fi
25566
25567   if test "$hc_cv_have_bzlib_h" != "yes"; then
25568
25569      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: bzip2 compression requested but 'bzlib.h' header not found " >&5
25570$as_echo "ERROR: bzip2 compression requested but 'bzlib.h' header not found " >&6; }
25571      hc_error=yes
25572   fi
25573fi
25574
25575#------------------------------------------------------------------------------
25576
25577if test "$hc_cv_opt_dynamic_load" = "yes"; then
25578
25579   if test "$hc_cv_have_lt_dlopen" != "yes"  &&
25580      test "$hc_cv_have_dlopen"    != "yes"; then
25581
25582      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: dynamic-load requires libtool or dlltool " >&5
25583$as_echo "ERROR: dynamic-load requires libtool or dlltool " >&6; }
25584      hc_error=yes
25585   fi
25586fi
25587
25588#------------------------------------------------------------------------------
25589
25590if test "$hc_cv_opt_auto_oper" = "yes"  &&
25591   test "$hc_cv_have_regex_h" != "yes"; then
25592
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: automatic-operator requested but 'regex.h' header not found " >&5
25594$as_echo "ERROR: automatic-operator requested but 'regex.h' header not found " >&6; }
25595   hc_error=yes
25596fi
25597
25598#------------------------------------------------------------------------------
25599
25600if test "$hc_cv_opt_external_gui"  = "yes"  &&
25601   test "$hc_cv_opt_dynamic_load" != "yes"; then
25602
25603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: external-gui requires dynamic-load " >&5
25604$as_echo "ERROR: external-gui requires dynamic-load " >&6; }
25605   hc_error=yes
25606fi
25607
25608#------------------------------------------------------------------------------
25609
25610if test "$hc_cv_opt_fthreads" = "yes"  &&
25611   test "$hc_cv_is_windows"  != "yes"; then
25612
25613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: fthreads is only for Windows platforms " >&5
25614$as_echo "ERROR: fthreads is only for Windows platforms " >&6; }
25615   hc_error=yes
25616fi
25617
25618if test "$hc_cv_have_pthread_h" != "yes"  &&
25619   test "$hc_cv_opt_fthreads"   != "yes"; then
25620
25621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: unable to find pthread.h " >&5
25622$as_echo "ERROR: unable to find pthread.h " >&6; }
25623   hc_error=yes
25624fi
25625
25626#------------------------------------------------------------------------------
25627
25628if test "$hc_cv_is_apple"                          = "yes"  &&
25629   test "$hc_cv_pp_macro_arg_counting_broke"       = "yes"  &&
25630   test "$hc_cv_traditional_cpp_is_K_AND_R_C_type" = "yes"; then
25631
25632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR: macro argument counting broken and cannot use -traditional-cpp option to work around it " >&5
25633$as_echo "ERROR: macro argument counting broken and cannot use -traditional-cpp option to work around it " >&6; }
25634    hc_error=yes
25635fi
25636
25637#------------------------------------------------------------------------------
25638# If any errors have been detected, then abort the configure at this time
25639#------------------------------------------------------------------------------
25640
25641if test "$hc_error" != "no"; then
25642    as_fn_error $? "Please correct the above error(s) and try again " "$LINENO" 5
25643fi
25644
25645cat >confcache <<\_ACEOF
25646# This file is a shell script that caches the results of configure
25647# tests run on this system so they can be shared between configure
25648# scripts and configure runs, see configure's option --config-cache.
25649# It is not useful on other systems.  If it contains results you don't
25650# want to keep, you may remove or edit it.
25651#
25652# config.status only pays attention to the cache file if you give it
25653# the --recheck option to rerun configure.
25654#
25655# `ac_cv_env_foo' variables (set or unset) will be overridden when
25656# loading this file, other *unset* `ac_cv_foo' will be assigned the
25657# following values.
25658
25659_ACEOF
25660
25661# The following way of writing the cache mishandles newlines in values,
25662# but we know of no workaround that is simple, portable, and efficient.
25663# So, we kill variables containing newlines.
25664# Ultrix sh set writes to stderr and can't be redirected directly,
25665# and sets the high bit in the cache file unless we assign to the vars.
25666(
25667  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25668    eval ac_val=\$$ac_var
25669    case $ac_val in #(
25670    *${as_nl}*)
25671      case $ac_var in #(
25672      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25673$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25674      esac
25675      case $ac_var in #(
25676      _ | IFS | as_nl) ;; #(
25677      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25678      *) { eval $ac_var=; unset $ac_var;} ;;
25679      esac ;;
25680    esac
25681  done
25682
25683  (set) 2>&1 |
25684    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25685    *${as_nl}ac_space=\ *)
25686      # `set' does not quote correctly, so add quotes: double-quote
25687      # substitution turns \\\\ into \\, and sed turns \\ into \.
25688      sed -n \
25689	"s/'/'\\\\''/g;
25690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25691      ;; #(
25692    *)
25693      # `set' quotes correctly as required by POSIX, so do not add quotes.
25694      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25695      ;;
25696    esac |
25697    sort
25698) |
25699  sed '
25700     /^ac_cv_env_/b end
25701     t clear
25702     :clear
25703     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25704     t end
25705     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25706     :end' >>confcache
25707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25708  if test -w "$cache_file"; then
25709    if test "x$cache_file" != "x/dev/null"; then
25710      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25711$as_echo "$as_me: updating cache $cache_file" >&6;}
25712      if test ! -f "$cache_file" || test -h "$cache_file"; then
25713	cat confcache >"$cache_file"
25714      else
25715        case $cache_file in #(
25716        */* | ?:*)
25717	  mv -f confcache "$cache_file"$$ &&
25718	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25719        *)
25720	  mv -f confcache "$cache_file" ;;
25721	esac
25722      fi
25723    fi
25724  else
25725    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25726$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25727  fi
25728fi
25729rm -f confcache
25730
25731###############################################################################
25732#   Act on the results of all of the above...
25733###############################################################################
25734
25735#        AUTOMATIC DETERMINATION OF OPTIMIZATION FLAGS
25736#
25737#  If they specified 'no' then don't optimize.
25738#  If they specified 'yes' then determine what flags we should use.
25739#  If they didn't specify, then optimize only if this is NOT a debug build.
25740#  Otherwise use whatever flags they specified as-is.
25741
25742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for what optimization flags to use " >&5
25743$as_echo_n "checking for what optimization flags to use ... " >&6; }
25744
25745case "$hc_cv_opt_optimization" in
25746
25747    no)
25748
25749        hc_cv_auto_optimize=no
25750        ;;
25751
25752    yes)
25753
25754        hc_cv_auto_optimize=yes
25755        ;;
25756
25757    *)
25758        if test "x$hc_cv_opt_optimization" = "x"; then
25759
25760            if test "$hc_cv_opt_debug" = "yes"; then
25761
25762                hc_cv_auto_optimize=no
25763            else
25764                hc_cv_auto_optimize=yes
25765            fi
25766
25767        else
25768
25769            hc_cv_auto_optimize=no
25770            hc_cv_optimization_flags="$hc_cv_opt_optimization"
25771        fi
25772        ;;
25773esac
25774
25775if test "$hc_cv_auto_optimize" = "yes"; then
25776
25777    if test "$hc_cv_builtin_alloca_broke" != "yes"  &&
25778       test "$hc_cv_opt_debug"            != "yes"; then
25779
25780        hc_cv_optimization_flags="-O3"
25781    fi
25782
25783    hc_cv_is_intel_x86_arch=no
25784
25785    case "$host_cpu-$GCC" in
25786
25787        x86_64-yes)
25788
25789            hc_cv_is_intel_x86_arch=yes
25790            hc_cv_intel_cpu_type=k8
25791            ;;
25792
25793        i386-yes|i486-yes|i586-yes|i686-yes|i786-yes)
25794
25795            hc_cv_is_intel_x86_arch=yes
25796
25797            if test $host_cpu = i786; then
25798
25799                hc_cv_intel_cpu_type=pentium4
25800            else
25801                if test $host_cpu           = i686   &&
25802                   test "hc_cv_is_gcc_2_96" = "yes"; then
25803
25804                    hc_cv_intel_cpu_type=i586
25805                else
25806                    hc_cv_intel_cpu_type=$host_cpu
25807                fi
25808            fi
25809            ;;
25810
25811        arm-yes)
25812
25813            hc_cv_is_intel_x86_arch=no
25814            hc_cv_optimization_flags="$hc_cv_optimization_flags -frename-registers"
25815            ;;
25816
25817        xscale-yes|arm*-yes)
25818
25819            hc_cv_is_intel_x86_arch=no
25820            hc_cv_optimization_flags="$hc_cv_optimization_flags -mcpu=$host_cpu -mtune=$host_cpu -frename-registers"
25821            ;;
25822    esac
25823    if test "$hc_cv_is_intel_x86_arch" = "yes"; then
25824
25825        hc_cv_optimization_flags="$hc_cv_optimization_flags -march=$hc_cv_intel_cpu_type"
25826
25827        if test "$hc_cv_builtin_alloca_broke" != "yes"  &&
25828           test "$hc_cv_opt_debug"            != "yes"; then
25829
25830            hc_cv_optimization_flags="$hc_cv_optimization_flags -fomit-frame-pointer"
25831        else
25832            hc_cv_optimization_flags="$hc_cv_optimization_flags -fno-omit-frame-pointer"
25833        fi
25834    fi
25835    hc_cv_optimization_flags="$hc_cv_optimization_flags -fno-strict-aliasing"
25836fi
25837
25838if test "x$hc_cv_optimization_flags" = "x"; then
25839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none) " >&5
25840$as_echo "(none) " >&6; }
25841else
25842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_cv_optimization_flags " >&5
25843$as_echo "$hc_cv_optimization_flags " >&6; }
25844fi
25845
25846
25847cat >confcache <<\_ACEOF
25848# This file is a shell script that caches the results of configure
25849# tests run on this system so they can be shared between configure
25850# scripts and configure runs, see configure's option --config-cache.
25851# It is not useful on other systems.  If it contains results you don't
25852# want to keep, you may remove or edit it.
25853#
25854# config.status only pays attention to the cache file if you give it
25855# the --recheck option to rerun configure.
25856#
25857# `ac_cv_env_foo' variables (set or unset) will be overridden when
25858# loading this file, other *unset* `ac_cv_foo' will be assigned the
25859# following values.
25860
25861_ACEOF
25862
25863# The following way of writing the cache mishandles newlines in values,
25864# but we know of no workaround that is simple, portable, and efficient.
25865# So, we kill variables containing newlines.
25866# Ultrix sh set writes to stderr and can't be redirected directly,
25867# and sets the high bit in the cache file unless we assign to the vars.
25868(
25869  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25870    eval ac_val=\$$ac_var
25871    case $ac_val in #(
25872    *${as_nl}*)
25873      case $ac_var in #(
25874      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25875$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25876      esac
25877      case $ac_var in #(
25878      _ | IFS | as_nl) ;; #(
25879      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25880      *) { eval $ac_var=; unset $ac_var;} ;;
25881      esac ;;
25882    esac
25883  done
25884
25885  (set) 2>&1 |
25886    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25887    *${as_nl}ac_space=\ *)
25888      # `set' does not quote correctly, so add quotes: double-quote
25889      # substitution turns \\\\ into \\, and sed turns \\ into \.
25890      sed -n \
25891	"s/'/'\\\\''/g;
25892	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25893      ;; #(
25894    *)
25895      # `set' quotes correctly as required by POSIX, so do not add quotes.
25896      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25897      ;;
25898    esac |
25899    sort
25900) |
25901  sed '
25902     /^ac_cv_env_/b end
25903     t clear
25904     :clear
25905     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25906     t end
25907     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25908     :end' >>confcache
25909if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25910  if test -w "$cache_file"; then
25911    if test "x$cache_file" != "x/dev/null"; then
25912      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25913$as_echo "$as_me: updating cache $cache_file" >&6;}
25914      if test ! -f "$cache_file" || test -h "$cache_file"; then
25915	cat confcache >"$cache_file"
25916      else
25917        case $cache_file in #(
25918        */* | ?:*)
25919	  mv -f confcache "$cache_file"$$ &&
25920	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25921        *)
25922	  mv -f confcache "$cache_file" ;;
25923	esac
25924      fi
25925    fi
25926  else
25927    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25928$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25929  fi
25930fi
25931rm -f confcache
25932
25933###############################################################################
25934#   Set additional Warning options for the compiler
25935###############################################################################
25936
25937# Avoid warnings when the instruction decoders load unused register numbers
25938# from the instruction, and also to avoid modifying decNumber and softfloat
25939
25940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-but-set-variable" >&5
25941$as_echo_n "checking whether compiler supports -Wno-unused-but-set-variable... " >&6; }
25942if ${hc_have_unused_set_variable+:} false; then :
25943  $as_echo_n "(cached) " >&6
25944else
25945
25946            hc_temp="$CFLAGS"
25947            CFLAGS="$CFLAGS -Werror -Wno-unused-but-set-variable"
25948            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949/* end confdefs.h.  */
25950
25951int
25952main ()
25953{
25954return(0);
25955  ;
25956  return 0;
25957}
25958_ACEOF
25959if ac_fn_c_try_compile "$LINENO"; then :
25960  hc_have_unused_set_variable="yes"
25961else
25962  hc_have_unused_set_variable="no"
25963fi
25964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965            CFLAGS="$hc_temp"
25966
25967fi
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_have_unused_set_variable" >&5
25969$as_echo "$hc_have_unused_set_variable" >&6; }
25970    if test "${hc_have_unused_set_variable}" = "yes"; then
25971        CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
25972    fi
25973
25974
25975# MSVC requires all declarations to be at the start of a block, whereas gcc
25976# only issues a warning. This makes gcc flag mixed declarations as an error
25977
25978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=declaration-after-statement" >&5
25979$as_echo_n "checking whether compiler supports -Werror=declaration-after-statement... " >&6; }
25980if ${hc_have_decl_after_stmt+:} false; then :
25981  $as_echo_n "(cached) " >&6
25982else
25983
25984            hc_temp="$CFLAGS"
25985            CFLAGS="$CFLAGS -Werror -Werror=declaration-after-statement"
25986            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987/* end confdefs.h.  */
25988
25989int
25990main ()
25991{
25992return(0);
25993  ;
25994  return 0;
25995}
25996_ACEOF
25997if ac_fn_c_try_compile "$LINENO"; then :
25998  hc_have_decl_after_stmt="yes"
25999else
26000  hc_have_decl_after_stmt="no"
26001fi
26002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003            CFLAGS="$hc_temp"
26004
26005fi
26006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hc_have_decl_after_stmt" >&5
26007$as_echo "$hc_have_decl_after_stmt" >&6; }
26008    if test "${hc_have_decl_after_stmt}" = "yes"; then
26009        CFLAGS="$CFLAGS -Werror=declaration-after-statement"
26010    fi
26011
26012
26013cat >confcache <<\_ACEOF
26014# This file is a shell script that caches the results of configure
26015# tests run on this system so they can be shared between configure
26016# scripts and configure runs, see configure's option --config-cache.
26017# It is not useful on other systems.  If it contains results you don't
26018# want to keep, you may remove or edit it.
26019#
26020# config.status only pays attention to the cache file if you give it
26021# the --recheck option to rerun configure.
26022#
26023# `ac_cv_env_foo' variables (set or unset) will be overridden when
26024# loading this file, other *unset* `ac_cv_foo' will be assigned the
26025# following values.
26026
26027_ACEOF
26028
26029# The following way of writing the cache mishandles newlines in values,
26030# but we know of no workaround that is simple, portable, and efficient.
26031# So, we kill variables containing newlines.
26032# Ultrix sh set writes to stderr and can't be redirected directly,
26033# and sets the high bit in the cache file unless we assign to the vars.
26034(
26035  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26036    eval ac_val=\$$ac_var
26037    case $ac_val in #(
26038    *${as_nl}*)
26039      case $ac_var in #(
26040      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26042      esac
26043      case $ac_var in #(
26044      _ | IFS | as_nl) ;; #(
26045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26046      *) { eval $ac_var=; unset $ac_var;} ;;
26047      esac ;;
26048    esac
26049  done
26050
26051  (set) 2>&1 |
26052    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26053    *${as_nl}ac_space=\ *)
26054      # `set' does not quote correctly, so add quotes: double-quote
26055      # substitution turns \\\\ into \\, and sed turns \\ into \.
26056      sed -n \
26057	"s/'/'\\\\''/g;
26058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26059      ;; #(
26060    *)
26061      # `set' quotes correctly as required by POSIX, so do not add quotes.
26062      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26063      ;;
26064    esac |
26065    sort
26066) |
26067  sed '
26068     /^ac_cv_env_/b end
26069     t clear
26070     :clear
26071     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26072     t end
26073     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26074     :end' >>confcache
26075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26076  if test -w "$cache_file"; then
26077    if test "x$cache_file" != "x/dev/null"; then
26078      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26079$as_echo "$as_me: updating cache $cache_file" >&6;}
26080      if test ! -f "$cache_file" || test -h "$cache_file"; then
26081	cat confcache >"$cache_file"
26082      else
26083        case $cache_file in #(
26084        */* | ?:*)
26085	  mv -f confcache "$cache_file"$$ &&
26086	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26087        *)
26088	  mv -f confcache "$cache_file" ;;
26089	esac
26090      fi
26091    fi
26092  else
26093    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26094$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26095  fi
26096fi
26097rm -f confcache
26098
26099###############################################################################
26100#   DONE! -- Define our OUTPUT values and then exit...
26101###############################################################################
26102
26103#--------------------------------------------------------------#
26104# (place only AC_DEFINE_UNQUOTED here; place AC_DEFINE below)  #
26105#--------------------------------------------------------------#
26106
26107if test "x$hc_cv_opt_custom_build_str" != "x"; then
26108    cat >>confdefs.h <<_ACEOF
26109#define CUSTOM_BUILD_STRING "${hc_cv_opt_custom_build_str}"
26110_ACEOF
26111
26112fi
26113
26114cat >>confdefs.h <<_ACEOF
26115#define MAX_CPU_ENGINES ${hc_cv_opt_num_cpu_engines}
26116_ACEOF
26117
26118
26119cat >confcache <<\_ACEOF
26120# This file is a shell script that caches the results of configure
26121# tests run on this system so they can be shared between configure
26122# scripts and configure runs, see configure's option --config-cache.
26123# It is not useful on other systems.  If it contains results you don't
26124# want to keep, you may remove or edit it.
26125#
26126# config.status only pays attention to the cache file if you give it
26127# the --recheck option to rerun configure.
26128#
26129# `ac_cv_env_foo' variables (set or unset) will be overridden when
26130# loading this file, other *unset* `ac_cv_foo' will be assigned the
26131# following values.
26132
26133_ACEOF
26134
26135# The following way of writing the cache mishandles newlines in values,
26136# but we know of no workaround that is simple, portable, and efficient.
26137# So, we kill variables containing newlines.
26138# Ultrix sh set writes to stderr and can't be redirected directly,
26139# and sets the high bit in the cache file unless we assign to the vars.
26140(
26141  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26142    eval ac_val=\$$ac_var
26143    case $ac_val in #(
26144    *${as_nl}*)
26145      case $ac_var in #(
26146      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26148      esac
26149      case $ac_var in #(
26150      _ | IFS | as_nl) ;; #(
26151      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26152      *) { eval $ac_var=; unset $ac_var;} ;;
26153      esac ;;
26154    esac
26155  done
26156
26157  (set) 2>&1 |
26158    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26159    *${as_nl}ac_space=\ *)
26160      # `set' does not quote correctly, so add quotes: double-quote
26161      # substitution turns \\\\ into \\, and sed turns \\ into \.
26162      sed -n \
26163	"s/'/'\\\\''/g;
26164	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26165      ;; #(
26166    *)
26167      # `set' quotes correctly as required by POSIX, so do not add quotes.
26168      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26169      ;;
26170    esac |
26171    sort
26172) |
26173  sed '
26174     /^ac_cv_env_/b end
26175     t clear
26176     :clear
26177     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26178     t end
26179     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26180     :end' >>confcache
26181if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26182  if test -w "$cache_file"; then
26183    if test "x$cache_file" != "x/dev/null"; then
26184      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26185$as_echo "$as_me: updating cache $cache_file" >&6;}
26186      if test ! -f "$cache_file" || test -h "$cache_file"; then
26187	cat confcache >"$cache_file"
26188      else
26189        case $cache_file in #(
26190        */* | ?:*)
26191	  mv -f confcache "$cache_file"$$ &&
26192	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26193        *)
26194	  mv -f confcache "$cache_file" ;;
26195	esac
26196      fi
26197    fi
26198  else
26199    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26200$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26201  fi
26202fi
26203rm -f confcache
26204
26205{ $as_echo "$as_me:${as_lineno-$LINENO}:                                           " >&5
26206$as_echo "$as_me:                                           " >&6;}
26207{ $as_echo "$as_me:${as_lineno-$LINENO}:  Package destination directory prefixes:  " >&5
26208$as_echo "$as_me:  Package destination directory prefixes:  " >&6;}
26209{ $as_echo "$as_me:${as_lineno-$LINENO}:                                           " >&5
26210$as_echo "$as_me:                                           " >&6;}
26211{ $as_echo "$as_me:${as_lineno-$LINENO}:     Libraries:  ${modexecdir}             " >&5
26212$as_echo "$as_me:     Libraries:  ${modexecdir}             " >&6;}
26213{ $as_echo "$as_me:${as_lineno-$LINENO}:     Data:       \$(datadir)/hercules      " >&5
26214$as_echo "$as_me:     Data:       \$(datadir)/hercules      " >&6;}
26215{ $as_echo "$as_me:${as_lineno-$LINENO}:                                           " >&5
26216$as_echo "$as_me:                                           " >&6;}
26217
26218CPPFLAGS="$CPPFLAGS"' -DPKGDATADIR=\"$(pkgdatadir)\" -DMODULESDIR=\"$(modexecdir)\"'
26219
26220#---------------------------------------------------------------#
26221#  (place only AC_DEFINE here; place AC_DEFINE_UNQUOTED above)  #
26222#---------------------------------------------------------------#
26223
26224test "$hc_cv_opt_debug"                   = "yes"  &&  $as_echo "#define DEBUG 1" >>confdefs.h
26225
26226test "$hc_cv_have_inttypes_h"             = "yes"  &&  $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
26227
26228test "$hc_cv_have_u_int8_t"               = "yes"  &&  $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26229
26230test "$hc_cv_opt_configsymbols"           = "yes"  &&  $as_echo "#define OPTION_CONFIG_SYMBOLS 1" >>confdefs.h
26231
26232test "$hc_cv_opt_enhanced_configsymbols"  = "yes"  &&  $as_echo "#define OPTION_ENHANCED_CONFIG_SYMBOLS 1" >>confdefs.h
26233
26234test "$hc_cv_opt_enhanced_configincludes" = "yes"  &&  $as_echo "#define OPTION_ENHANCED_CONFIG_INCLUDE 1" >>confdefs.h
26235
26236test "$hc_cv_opt_auto_oper"               = "yes"  &&  $as_echo "#define OPTION_HAO 1" >>confdefs.h
26237
26238test "$hc_cv_opt_dynamic_load"            = "yes"  &&  $as_echo "#define OPTION_DYNAMIC_LOAD 1" >>confdefs.h
26239
26240test "$hc_cv_opt_fthreads"                = "yes"  &&  $as_echo "#define OPTION_FTHREADS 1" >>confdefs.h
26241
26242test "$hc_cv_hdl_build_shared"            = "yes"  &&  $as_echo "#define HDL_BUILD_SHARED 1" >>confdefs.h
26243
26244test "$hc_cv_have_lt_dlopen"              = "yes"  &&  $as_echo "#define HDL_USE_LIBTOOL 1" >>confdefs.h
26245
26246test "$hc_cv_is_windows"                  = "yes"  &&  $as_echo "#define WIN32 1" >>confdefs.h
26247
26248test "$hc_cv_opt_external_gui"            = "yes"  &&  $as_echo "#define EXTERNALGUI 1" >>confdefs.h
26249
26250test "$hc_cv_opt_cckd_bzip2"              = "yes"  &&  $as_echo "#define CCKD_BZIP2 1" >>confdefs.h
26251
26252test "$hc_cv_opt_het_bzip2"               = "yes"  &&  $as_echo "#define HET_BZIP2 1" >>confdefs.h
26253
26254test "$hc_cv_timespec_in_sys_types_h"     = "yes"  &&  $as_echo "#define TIMESPEC_IN_SYS_TYPES_H 1" >>confdefs.h
26255
26256test "$hc_cv_timespec_in_time_h"          = "yes"  &&  $as_echo "#define TIMESPEC_IN_TIME_H 1" >>confdefs.h
26257
26258test "$hc_cv_have_getset_uid"            != "yes"  &&  $as_echo "#define NO_SETUID 1" >>confdefs.h
26259
26260test "$hc_cv_asm_byteswap"               != "yes"  &&  $as_echo "#define NO_ASM_BYTESWAP 1" >>confdefs.h
26261
26262test "$hc_cv_non_unique_gettimeofday"     = "yes"  &&  $as_echo "#define NON_UNIQUE_GETTIMEOFDAY 1" >>confdefs.h
26263
26264test "$hc_cv_build_hercifc"               = "yes"  &&  $as_echo "#define BUILD_HERCIFC 1" >>confdefs.h
26265
26266test "$hc_cv_opt_capabilities"            = "yes"  &&  $as_echo "#define OPTION_CAPABILITIES 1" >>confdefs.h
26267
26268
26269if test $hc_cv_have_sa_sigaction != yes ||
26270   test $hc_cv_have_sigusr1      != yes ||
26271   test $hc_cv_have_sigusr2      != yes ||
26272   test $hc_cv_have_sigpipe      != yes ||
26273   test $hc_cv_have_sigbus       != yes; then
26274
26275    $as_echo "#define NO_SIGABEND_HANDLER 1" >>confdefs.h
26276
26277
26278fi
26279
26280if test "$hc_cv_regparm_attr_supported" = "yes"  &&
26281   test "$hc_cv_regparm_attr_broke"    != "yes"; then
26282
26283    $as_echo "#define HAVE_ATTR_REGPARM 1" >>confdefs.h
26284
26285fi
26286
26287if test "$hc_cv_is_apple" = "yes"; then
26288
26289    :
26290
26291    #
26292    #  TODO??
26293    #
26294    #  Do whatever is necessary to get the following symbol defined
26295    #  so the included libltdl will be built and used...
26296    #
26297
26298##  AC_PROVIDE_AC_LIBTOOL_DLOPEN()
26299
26300fi
26301
26302#--------------------------------------------------#
26303#  CPPFLAGS  (pre-processor flags)                 #
26304#--------------------------------------------------#
26305
26306if test "$hc_cv_is_apple"                    = "yes"  &&
26307   test "$hc_cv_pp_macro_arg_counting_broke" = "yes"; then
26308
26309    CPPFLAGS="${CPPFLAGS} -traditional-cpp -Wno-endif-labels"
26310fi
26311
26312#--------------------------------------------------#
26313#  CFLAGS  (compiler flags)                        #
26314#--------------------------------------------------#
26315
26316
26317if test "$hc_cv_is_windows"             = "yes"; then
26318
26319    if test "$hc_cv_have_pthread_h"         = "yes" &&
26320       test "x$hc_cv_alt_pthread_location" != "x";  then
26321
26322        CFLAGS="$CFLAGS -I${hc_cv_alt_pthread_location}"
26323    fi
26324
26325    CFLAGS="$CFLAGS -Wno-format"
26326fi
26327
26328if test "$hc_cv_byte_structs_aligned_and_rounded_by_default" = "yes"; then
26329
26330    #===============================================================
26331    # the following requests 8-bit (byte) struct boundary alignment
26332    #===============================================================
26333
26334    CFLAGS="$CFLAGS -mstructure-size-boundary=8"
26335fi
26336
26337test "x$hc_cv_optimization_flags" !=  "x" &&  CFLAGS="$CFLAGS $hc_cv_optimization_flags"
26338
26339#--------------------------------------------------#
26340#  LIBS  (linker flags)                            #
26341#--------------------------------------------------#
26342
26343test  "$hc_cv_dash_pthread_needed" =  "yes"  &&  LIBS="$LIBS -pthread"
26344test  "$hc_cv_have_libbz2"         =  "yes"  &&  LIBS="$LIBS -lbz2"
26345
26346#      ---------------------- MINGW32 ----------------------
26347
26348test  "$hc_cv_is_mingw32" =  "yes"  &&  LIBS="$LIBS -lmsvcrt"
26349test  "$hc_cv_is_mingw32" =  "yes"  &&  LIBS="$LIBS -lws2_32"
26350
26351cat >confcache <<\_ACEOF
26352# This file is a shell script that caches the results of configure
26353# tests run on this system so they can be shared between configure
26354# scripts and configure runs, see configure's option --config-cache.
26355# It is not useful on other systems.  If it contains results you don't
26356# want to keep, you may remove or edit it.
26357#
26358# config.status only pays attention to the cache file if you give it
26359# the --recheck option to rerun configure.
26360#
26361# `ac_cv_env_foo' variables (set or unset) will be overridden when
26362# loading this file, other *unset* `ac_cv_foo' will be assigned the
26363# following values.
26364
26365_ACEOF
26366
26367# The following way of writing the cache mishandles newlines in values,
26368# but we know of no workaround that is simple, portable, and efficient.
26369# So, we kill variables containing newlines.
26370# Ultrix sh set writes to stderr and can't be redirected directly,
26371# and sets the high bit in the cache file unless we assign to the vars.
26372(
26373  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26374    eval ac_val=\$$ac_var
26375    case $ac_val in #(
26376    *${as_nl}*)
26377      case $ac_var in #(
26378      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26379$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26380      esac
26381      case $ac_var in #(
26382      _ | IFS | as_nl) ;; #(
26383      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26384      *) { eval $ac_var=; unset $ac_var;} ;;
26385      esac ;;
26386    esac
26387  done
26388
26389  (set) 2>&1 |
26390    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26391    *${as_nl}ac_space=\ *)
26392      # `set' does not quote correctly, so add quotes: double-quote
26393      # substitution turns \\\\ into \\, and sed turns \\ into \.
26394      sed -n \
26395	"s/'/'\\\\''/g;
26396	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26397      ;; #(
26398    *)
26399      # `set' quotes correctly as required by POSIX, so do not add quotes.
26400      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26401      ;;
26402    esac |
26403    sort
26404) |
26405  sed '
26406     /^ac_cv_env_/b end
26407     t clear
26408     :clear
26409     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26410     t end
26411     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26412     :end' >>confcache
26413if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26414  if test -w "$cache_file"; then
26415    if test "x$cache_file" != "x/dev/null"; then
26416      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26417$as_echo "$as_me: updating cache $cache_file" >&6;}
26418      if test ! -f "$cache_file" || test -h "$cache_file"; then
26419	cat confcache >"$cache_file"
26420      else
26421        case $cache_file in #(
26422        */* | ?:*)
26423	  mv -f confcache "$cache_file"$$ &&
26424	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26425        *)
26426	  mv -f confcache "$cache_file" ;;
26427	esac
26428      fi
26429    fi
26430  else
26431    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26432$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26433  fi
26434fi
26435rm -f confcache
26436
26437#--------------------------------------------------------------------------------#
26438#  Pass certain values/settings as makefile variables to automake (makefile.am)  #
26439#--------------------------------------------------------------------------------#
26440
26441 if  test "$hc_cv_opt_dynamic_load" = "yes"  ; then
26442  OPTION_DYNAMIC_LOAD_TRUE=
26443  OPTION_DYNAMIC_LOAD_FALSE='#'
26444else
26445  OPTION_DYNAMIC_LOAD_TRUE='#'
26446  OPTION_DYNAMIC_LOAD_FALSE=
26447fi
26448
26449 if  test "$hc_cv_opt_fthreads"     = "yes"  ; then
26450  BUILD_FTHREADS_TRUE=
26451  BUILD_FTHREADS_FALSE='#'
26452else
26453  BUILD_FTHREADS_TRUE='#'
26454  BUILD_FTHREADS_FALSE=
26455fi
26456
26457 if  test "$hc_cv_build_hercifc"    = "yes"  ; then
26458  BUILD_HERCIFC_TRUE=
26459  BUILD_HERCIFC_FALSE='#'
26460else
26461  BUILD_HERCIFC_TRUE='#'
26462  BUILD_HERCIFC_FALSE=
26463fi
26464
26465 if  test "$hc_cv_setuid_hercifc"   = "yes"  ; then
26466  SETUID_HERCIFC_TRUE=
26467  SETUID_HERCIFC_FALSE='#'
26468else
26469  SETUID_HERCIFC_TRUE='#'
26470  SETUID_HERCIFC_FALSE=
26471fi
26472
26473 if  test "x$hc_cv_hercifc_groupname" != "x" ; then
26474  HERCIFC_GROUPSET_TRUE=
26475  HERCIFC_GROUPSET_FALSE='#'
26476else
26477  HERCIFC_GROUPSET_TRUE='#'
26478  HERCIFC_GROUPSET_FALSE=
26479fi
26480
26481
26482if test "x$hc_cv_hercifc_groupname" != "x"; then
26483    HERCIFC_GROUPNAME=${hc_cv_hercifc_groupname}
26484
26485fi
26486
26487#  Building of shared libraries is forced, and we force use of libtool too.
26488
26489 if  test "$hc_cv_hdl_build_shared" = "yes"  ; then
26490  BUILD_SHARED_TRUE=
26491  BUILD_SHARED_FALSE='#'
26492else
26493  BUILD_SHARED_TRUE='#'
26494  BUILD_SHARED_FALSE=
26495fi
26496
26497 if  test "$hc_cv_is_windows"       = "yes"  ; then
26498  USE_DLLTOOL_TRUE=
26499  USE_DLLTOOL_FALSE='#'
26500else
26501  USE_DLLTOOL_TRUE='#'
26502  USE_DLLTOOL_FALSE=
26503fi
26504
26505
26506cat >confcache <<\_ACEOF
26507# This file is a shell script that caches the results of configure
26508# tests run on this system so they can be shared between configure
26509# scripts and configure runs, see configure's option --config-cache.
26510# It is not useful on other systems.  If it contains results you don't
26511# want to keep, you may remove or edit it.
26512#
26513# config.status only pays attention to the cache file if you give it
26514# the --recheck option to rerun configure.
26515#
26516# `ac_cv_env_foo' variables (set or unset) will be overridden when
26517# loading this file, other *unset* `ac_cv_foo' will be assigned the
26518# following values.
26519
26520_ACEOF
26521
26522# The following way of writing the cache mishandles newlines in values,
26523# but we know of no workaround that is simple, portable, and efficient.
26524# So, we kill variables containing newlines.
26525# Ultrix sh set writes to stderr and can't be redirected directly,
26526# and sets the high bit in the cache file unless we assign to the vars.
26527(
26528  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26529    eval ac_val=\$$ac_var
26530    case $ac_val in #(
26531    *${as_nl}*)
26532      case $ac_var in #(
26533      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26534$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26535      esac
26536      case $ac_var in #(
26537      _ | IFS | as_nl) ;; #(
26538      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26539      *) { eval $ac_var=; unset $ac_var;} ;;
26540      esac ;;
26541    esac
26542  done
26543
26544  (set) 2>&1 |
26545    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26546    *${as_nl}ac_space=\ *)
26547      # `set' does not quote correctly, so add quotes: double-quote
26548      # substitution turns \\\\ into \\, and sed turns \\ into \.
26549      sed -n \
26550	"s/'/'\\\\''/g;
26551	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26552      ;; #(
26553    *)
26554      # `set' quotes correctly as required by POSIX, so do not add quotes.
26555      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26556      ;;
26557    esac |
26558    sort
26559) |
26560  sed '
26561     /^ac_cv_env_/b end
26562     t clear
26563     :clear
26564     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26565     t end
26566     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26567     :end' >>confcache
26568if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26569  if test -w "$cache_file"; then
26570    if test "x$cache_file" != "x/dev/null"; then
26571      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26572$as_echo "$as_me: updating cache $cache_file" >&6;}
26573      if test ! -f "$cache_file" || test -h "$cache_file"; then
26574	cat confcache >"$cache_file"
26575      else
26576        case $cache_file in #(
26577        */* | ?:*)
26578	  mv -f confcache "$cache_file"$$ &&
26579	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26580        *)
26581	  mv -f confcache "$cache_file" ;;
26582	esac
26583      fi
26584    fi
26585  else
26586    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26587$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26588  fi
26589fi
26590rm -f confcache
26591
26592ac_config_files="$ac_config_files Makefile util/Makefile html/Makefile crypto/Makefile man/Makefile m4/Makefile decNumber/Makefile softfloat/Makefile"
26593
26594cat >confcache <<\_ACEOF
26595# This file is a shell script that caches the results of configure
26596# tests run on this system so they can be shared between configure
26597# scripts and configure runs, see configure's option --config-cache.
26598# It is not useful on other systems.  If it contains results you don't
26599# want to keep, you may remove or edit it.
26600#
26601# config.status only pays attention to the cache file if you give it
26602# the --recheck option to rerun configure.
26603#
26604# `ac_cv_env_foo' variables (set or unset) will be overridden when
26605# loading this file, other *unset* `ac_cv_foo' will be assigned the
26606# following values.
26607
26608_ACEOF
26609
26610# The following way of writing the cache mishandles newlines in values,
26611# but we know of no workaround that is simple, portable, and efficient.
26612# So, we kill variables containing newlines.
26613# Ultrix sh set writes to stderr and can't be redirected directly,
26614# and sets the high bit in the cache file unless we assign to the vars.
26615(
26616  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26617    eval ac_val=\$$ac_var
26618    case $ac_val in #(
26619    *${as_nl}*)
26620      case $ac_var in #(
26621      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26623      esac
26624      case $ac_var in #(
26625      _ | IFS | as_nl) ;; #(
26626      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26627      *) { eval $ac_var=; unset $ac_var;} ;;
26628      esac ;;
26629    esac
26630  done
26631
26632  (set) 2>&1 |
26633    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26634    *${as_nl}ac_space=\ *)
26635      # `set' does not quote correctly, so add quotes: double-quote
26636      # substitution turns \\\\ into \\, and sed turns \\ into \.
26637      sed -n \
26638	"s/'/'\\\\''/g;
26639	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26640      ;; #(
26641    *)
26642      # `set' quotes correctly as required by POSIX, so do not add quotes.
26643      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26644      ;;
26645    esac |
26646    sort
26647) |
26648  sed '
26649     /^ac_cv_env_/b end
26650     t clear
26651     :clear
26652     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26653     t end
26654     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26655     :end' >>confcache
26656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26657  if test -w "$cache_file"; then
26658    if test "x$cache_file" != "x/dev/null"; then
26659      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26660$as_echo "$as_me: updating cache $cache_file" >&6;}
26661      if test ! -f "$cache_file" || test -h "$cache_file"; then
26662	cat confcache >"$cache_file"
26663      else
26664        case $cache_file in #(
26665        */* | ?:*)
26666	  mv -f confcache "$cache_file"$$ &&
26667	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26668        *)
26669	  mv -f confcache "$cache_file" ;;
26670	esac
26671      fi
26672    fi
26673  else
26674    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26675$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26676  fi
26677fi
26678rm -f confcache
26679
26680test "x$prefix" = xNONE && prefix=$ac_default_prefix
26681# Let make expand exec_prefix.
26682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26683
26684DEFS=-DHAVE_CONFIG_H
26685
26686ac_libobjs=
26687ac_ltlibobjs=
26688U=
26689for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26690  # 1. Remove the extension, and $U if already installed.
26691  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26692  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26693  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26694  #    will be set to the directory where LIBOBJS objects are built.
26695  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26696  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26697done
26698LIBOBJS=$ac_libobjs
26699
26700LTLIBOBJS=$ac_ltlibobjs
26701
26702
26703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26704$as_echo_n "checking that generated files are newer than configure... " >&6; }
26705   if test -n "$am_sleep_pid"; then
26706     # Hide warnings about reused PIDs.
26707     wait $am_sleep_pid 2>/dev/null
26708   fi
26709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26710$as_echo "done" >&6; }
26711 if test -n "$EXEEXT"; then
26712  am__EXEEXT_TRUE=
26713  am__EXEEXT_FALSE='#'
26714else
26715  am__EXEEXT_TRUE='#'
26716  am__EXEEXT_FALSE=
26717fi
26718
26719if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26720  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26721Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722fi
26723if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26724  as_fn_error $? "conditional \"AMDEP\" was never defined.
26725Usually this means the macro was only invoked conditionally." "$LINENO" 5
26726fi
26727if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26728  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26729Usually this means the macro was only invoked conditionally." "$LINENO" 5
26730fi
26731if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26732  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26733Usually this means the macro was only invoked conditionally." "$LINENO" 5
26734fi
26735if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
26736  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
26737Usually this means the macro was only invoked conditionally." "$LINENO" 5
26738fi
26739if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
26740  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
26741Usually this means the macro was only invoked conditionally." "$LINENO" 5
26742fi
26743
26744if test -z "${OPTION_DYNAMIC_LOAD_TRUE}" && test -z "${OPTION_DYNAMIC_LOAD_FALSE}"; then
26745  as_fn_error $? "conditional \"OPTION_DYNAMIC_LOAD\" was never defined.
26746Usually this means the macro was only invoked conditionally." "$LINENO" 5
26747fi
26748if test -z "${BUILD_FTHREADS_TRUE}" && test -z "${BUILD_FTHREADS_FALSE}"; then
26749  as_fn_error $? "conditional \"BUILD_FTHREADS\" was never defined.
26750Usually this means the macro was only invoked conditionally." "$LINENO" 5
26751fi
26752if test -z "${BUILD_HERCIFC_TRUE}" && test -z "${BUILD_HERCIFC_FALSE}"; then
26753  as_fn_error $? "conditional \"BUILD_HERCIFC\" was never defined.
26754Usually this means the macro was only invoked conditionally." "$LINENO" 5
26755fi
26756if test -z "${SETUID_HERCIFC_TRUE}" && test -z "${SETUID_HERCIFC_FALSE}"; then
26757  as_fn_error $? "conditional \"SETUID_HERCIFC\" was never defined.
26758Usually this means the macro was only invoked conditionally." "$LINENO" 5
26759fi
26760if test -z "${HERCIFC_GROUPSET_TRUE}" && test -z "${HERCIFC_GROUPSET_FALSE}"; then
26761  as_fn_error $? "conditional \"HERCIFC_GROUPSET\" was never defined.
26762Usually this means the macro was only invoked conditionally." "$LINENO" 5
26763fi
26764if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
26765  as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
26766Usually this means the macro was only invoked conditionally." "$LINENO" 5
26767fi
26768if test -z "${USE_DLLTOOL_TRUE}" && test -z "${USE_DLLTOOL_FALSE}"; then
26769  as_fn_error $? "conditional \"USE_DLLTOOL\" was never defined.
26770Usually this means the macro was only invoked conditionally." "$LINENO" 5
26771fi
26772
26773: "${CONFIG_STATUS=./config.status}"
26774ac_write_fail=0
26775ac_clean_files_save=$ac_clean_files
26776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26777{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26779as_write_fail=0
26780cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26781#! $SHELL
26782# Generated by $as_me.
26783# Run this file to recreate the current configuration.
26784# Compiler output produced by configure, useful for debugging
26785# configure, is in config.log if it exists.
26786
26787debug=false
26788ac_cs_recheck=false
26789ac_cs_silent=false
26790
26791SHELL=\${CONFIG_SHELL-$SHELL}
26792export SHELL
26793_ASEOF
26794cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26795## -------------------- ##
26796## M4sh Initialization. ##
26797## -------------------- ##
26798
26799# Be more Bourne compatible
26800DUALCASE=1; export DUALCASE # for MKS sh
26801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26802  emulate sh
26803  NULLCMD=:
26804  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26805  # is contrary to our usage.  Disable this feature.
26806  alias -g '${1+"$@"}'='"$@"'
26807  setopt NO_GLOB_SUBST
26808else
26809  case `(set -o) 2>/dev/null` in #(
26810  *posix*) :
26811    set -o posix ;; #(
26812  *) :
26813     ;;
26814esac
26815fi
26816
26817
26818as_nl='
26819'
26820export as_nl
26821# Printing a long string crashes Solaris 7 /usr/bin/printf.
26822as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26823as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26825# Prefer a ksh shell builtin over an external printf program on Solaris,
26826# but without wasting forks for bash or zsh.
26827if test -z "$BASH_VERSION$ZSH_VERSION" \
26828    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26829  as_echo='print -r --'
26830  as_echo_n='print -rn --'
26831elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26832  as_echo='printf %s\n'
26833  as_echo_n='printf %s'
26834else
26835  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26836    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26837    as_echo_n='/usr/ucb/echo -n'
26838  else
26839    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26840    as_echo_n_body='eval
26841      arg=$1;
26842      case $arg in #(
26843      *"$as_nl"*)
26844	expr "X$arg" : "X\\(.*\\)$as_nl";
26845	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26846      esac;
26847      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26848    '
26849    export as_echo_n_body
26850    as_echo_n='sh -c $as_echo_n_body as_echo'
26851  fi
26852  export as_echo_body
26853  as_echo='sh -c $as_echo_body as_echo'
26854fi
26855
26856# The user is always right.
26857if test "${PATH_SEPARATOR+set}" != set; then
26858  PATH_SEPARATOR=:
26859  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26860    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26861      PATH_SEPARATOR=';'
26862  }
26863fi
26864
26865
26866# IFS
26867# We need space, tab and new line, in precisely that order.  Quoting is
26868# there to prevent editors from complaining about space-tab.
26869# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26870# splitting by setting IFS to empty value.)
26871IFS=" ""	$as_nl"
26872
26873# Find who we are.  Look in the path if we contain no directory separator.
26874as_myself=
26875case $0 in #((
26876  *[\\/]* ) as_myself=$0 ;;
26877  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26878for as_dir in $PATH
26879do
26880  IFS=$as_save_IFS
26881  test -z "$as_dir" && as_dir=.
26882    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26883  done
26884IFS=$as_save_IFS
26885
26886     ;;
26887esac
26888# We did not find ourselves, most probably we were run as `sh COMMAND'
26889# in which case we are not to be found in the path.
26890if test "x$as_myself" = x; then
26891  as_myself=$0
26892fi
26893if test ! -f "$as_myself"; then
26894  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26895  exit 1
26896fi
26897
26898# Unset variables that we do not need and which cause bugs (e.g. in
26899# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26900# suppresses any "Segmentation fault" message there.  '((' could
26901# trigger a bug in pdksh 5.2.14.
26902for as_var in BASH_ENV ENV MAIL MAILPATH
26903do eval test x\${$as_var+set} = xset \
26904  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26905done
26906PS1='$ '
26907PS2='> '
26908PS4='+ '
26909
26910# NLS nuisances.
26911LC_ALL=C
26912export LC_ALL
26913LANGUAGE=C
26914export LANGUAGE
26915
26916# CDPATH.
26917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26918
26919
26920# as_fn_error STATUS ERROR [LINENO LOG_FD]
26921# ----------------------------------------
26922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26924# script with STATUS, using 1 if that was 0.
26925as_fn_error ()
26926{
26927  as_status=$1; test $as_status -eq 0 && as_status=1
26928  if test "$4"; then
26929    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26930    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26931  fi
26932  $as_echo "$as_me: error: $2" >&2
26933  as_fn_exit $as_status
26934} # as_fn_error
26935
26936
26937# as_fn_set_status STATUS
26938# -----------------------
26939# Set $? to STATUS, without forking.
26940as_fn_set_status ()
26941{
26942  return $1
26943} # as_fn_set_status
26944
26945# as_fn_exit STATUS
26946# -----------------
26947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26948as_fn_exit ()
26949{
26950  set +e
26951  as_fn_set_status $1
26952  exit $1
26953} # as_fn_exit
26954
26955# as_fn_unset VAR
26956# ---------------
26957# Portably unset VAR.
26958as_fn_unset ()
26959{
26960  { eval $1=; unset $1;}
26961}
26962as_unset=as_fn_unset
26963# as_fn_append VAR VALUE
26964# ----------------------
26965# Append the text in VALUE to the end of the definition contained in VAR. Take
26966# advantage of any shell optimizations that allow amortized linear growth over
26967# repeated appends, instead of the typical quadratic growth present in naive
26968# implementations.
26969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26970  eval 'as_fn_append ()
26971  {
26972    eval $1+=\$2
26973  }'
26974else
26975  as_fn_append ()
26976  {
26977    eval $1=\$$1\$2
26978  }
26979fi # as_fn_append
26980
26981# as_fn_arith ARG...
26982# ------------------
26983# Perform arithmetic evaluation on the ARGs, and store the result in the
26984# global $as_val. Take advantage of shells that can avoid forks. The arguments
26985# must be portable across $(()) and expr.
26986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26987  eval 'as_fn_arith ()
26988  {
26989    as_val=$(( $* ))
26990  }'
26991else
26992  as_fn_arith ()
26993  {
26994    as_val=`expr "$@" || test $? -eq 1`
26995  }
26996fi # as_fn_arith
26997
26998
26999if expr a : '\(a\)' >/dev/null 2>&1 &&
27000   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27001  as_expr=expr
27002else
27003  as_expr=false
27004fi
27005
27006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27007  as_basename=basename
27008else
27009  as_basename=false
27010fi
27011
27012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27013  as_dirname=dirname
27014else
27015  as_dirname=false
27016fi
27017
27018as_me=`$as_basename -- "$0" ||
27019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27020	 X"$0" : 'X\(//\)$' \| \
27021	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27022$as_echo X/"$0" |
27023    sed '/^.*\/\([^/][^/]*\)\/*$/{
27024	    s//\1/
27025	    q
27026	  }
27027	  /^X\/\(\/\/\)$/{
27028	    s//\1/
27029	    q
27030	  }
27031	  /^X\/\(\/\).*/{
27032	    s//\1/
27033	    q
27034	  }
27035	  s/.*/./; q'`
27036
27037# Avoid depending upon Character Ranges.
27038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27041as_cr_digits='0123456789'
27042as_cr_alnum=$as_cr_Letters$as_cr_digits
27043
27044ECHO_C= ECHO_N= ECHO_T=
27045case `echo -n x` in #(((((
27046-n*)
27047  case `echo 'xy\c'` in
27048  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27049  xy)  ECHO_C='\c';;
27050  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27051       ECHO_T='	';;
27052  esac;;
27053*)
27054  ECHO_N='-n';;
27055esac
27056
27057rm -f conf$$ conf$$.exe conf$$.file
27058if test -d conf$$.dir; then
27059  rm -f conf$$.dir/conf$$.file
27060else
27061  rm -f conf$$.dir
27062  mkdir conf$$.dir 2>/dev/null
27063fi
27064if (echo >conf$$.file) 2>/dev/null; then
27065  if ln -s conf$$.file conf$$ 2>/dev/null; then
27066    as_ln_s='ln -s'
27067    # ... but there are two gotchas:
27068    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27069    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27070    # In both cases, we have to default to `cp -pR'.
27071    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27072      as_ln_s='cp -pR'
27073  elif ln conf$$.file conf$$ 2>/dev/null; then
27074    as_ln_s=ln
27075  else
27076    as_ln_s='cp -pR'
27077  fi
27078else
27079  as_ln_s='cp -pR'
27080fi
27081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27082rmdir conf$$.dir 2>/dev/null
27083
27084
27085# as_fn_mkdir_p
27086# -------------
27087# Create "$as_dir" as a directory, including parents if necessary.
27088as_fn_mkdir_p ()
27089{
27090
27091  case $as_dir in #(
27092  -*) as_dir=./$as_dir;;
27093  esac
27094  test -d "$as_dir" || eval $as_mkdir_p || {
27095    as_dirs=
27096    while :; do
27097      case $as_dir in #(
27098      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27099      *) as_qdir=$as_dir;;
27100      esac
27101      as_dirs="'$as_qdir' $as_dirs"
27102      as_dir=`$as_dirname -- "$as_dir" ||
27103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27104	 X"$as_dir" : 'X\(//\)[^/]' \| \
27105	 X"$as_dir" : 'X\(//\)$' \| \
27106	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27107$as_echo X"$as_dir" |
27108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27109	    s//\1/
27110	    q
27111	  }
27112	  /^X\(\/\/\)[^/].*/{
27113	    s//\1/
27114	    q
27115	  }
27116	  /^X\(\/\/\)$/{
27117	    s//\1/
27118	    q
27119	  }
27120	  /^X\(\/\).*/{
27121	    s//\1/
27122	    q
27123	  }
27124	  s/.*/./; q'`
27125      test -d "$as_dir" && break
27126    done
27127    test -z "$as_dirs" || eval "mkdir $as_dirs"
27128  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27129
27130
27131} # as_fn_mkdir_p
27132if mkdir -p . 2>/dev/null; then
27133  as_mkdir_p='mkdir -p "$as_dir"'
27134else
27135  test -d ./-p && rmdir ./-p
27136  as_mkdir_p=false
27137fi
27138
27139
27140# as_fn_executable_p FILE
27141# -----------------------
27142# Test if FILE is an executable regular file.
27143as_fn_executable_p ()
27144{
27145  test -f "$1" && test -x "$1"
27146} # as_fn_executable_p
27147as_test_x='test -x'
27148as_executable_p=as_fn_executable_p
27149
27150# Sed expression to map a string onto a valid CPP name.
27151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27152
27153# Sed expression to map a string onto a valid variable name.
27154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27155
27156
27157exec 6>&1
27158## ----------------------------------- ##
27159## Main body of $CONFIG_STATUS script. ##
27160## ----------------------------------- ##
27161_ASEOF
27162test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27163
27164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27165# Save the log message, to keep $0 and so on meaningful, and to
27166# report actual input values of CONFIG_FILES etc. instead of their
27167# values after options handling.
27168ac_log="
27169This file was extended by $as_me, which was
27170generated by GNU Autoconf 2.69.  Invocation command line was
27171
27172  CONFIG_FILES    = $CONFIG_FILES
27173  CONFIG_HEADERS  = $CONFIG_HEADERS
27174  CONFIG_LINKS    = $CONFIG_LINKS
27175  CONFIG_COMMANDS = $CONFIG_COMMANDS
27176  $ $0 $@
27177
27178on `(hostname || uname -n) 2>/dev/null | sed 1q`
27179"
27180
27181_ACEOF
27182
27183case $ac_config_files in *"
27184"*) set x $ac_config_files; shift; ac_config_files=$*;;
27185esac
27186
27187case $ac_config_headers in *"
27188"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27189esac
27190
27191
27192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27193# Files that config.status was made for.
27194config_files="$ac_config_files"
27195config_headers="$ac_config_headers"
27196config_commands="$ac_config_commands"
27197
27198_ACEOF
27199
27200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27201ac_cs_usage="\
27202\`$as_me' instantiates files and other configuration actions
27203from templates according to the current configuration.  Unless the files
27204and actions are specified as TAGs, all are instantiated by default.
27205
27206Usage: $0 [OPTION]... [TAG]...
27207
27208  -h, --help       print this help, then exit
27209  -V, --version    print version number and configuration settings, then exit
27210      --config     print configuration, then exit
27211  -q, --quiet, --silent
27212                   do not print progress messages
27213  -d, --debug      don't remove temporary files
27214      --recheck    update $as_me by reconfiguring in the same conditions
27215      --file=FILE[:TEMPLATE]
27216                   instantiate the configuration file FILE
27217      --header=FILE[:TEMPLATE]
27218                   instantiate the configuration header FILE
27219
27220Configuration files:
27221$config_files
27222
27223Configuration headers:
27224$config_headers
27225
27226Configuration commands:
27227$config_commands
27228
27229Report bugs to the package provider."
27230
27231_ACEOF
27232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27233ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27234ac_cs_version="\\
27235config.status
27236configured by $0, generated by GNU Autoconf 2.69,
27237  with options \\"\$ac_cs_config\\"
27238
27239Copyright (C) 2012 Free Software Foundation, Inc.
27240This config.status script is free software; the Free Software Foundation
27241gives unlimited permission to copy, distribute and modify it."
27242
27243ac_pwd='$ac_pwd'
27244srcdir='$srcdir'
27245INSTALL='$INSTALL'
27246MKDIR_P='$MKDIR_P'
27247AWK='$AWK'
27248test -n "\$AWK" || AWK=awk
27249_ACEOF
27250
27251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27252# The default lists apply if the user does not specify any file.
27253ac_need_defaults=:
27254while test $# != 0
27255do
27256  case $1 in
27257  --*=?*)
27258    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27259    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27260    ac_shift=:
27261    ;;
27262  --*=)
27263    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27264    ac_optarg=
27265    ac_shift=:
27266    ;;
27267  *)
27268    ac_option=$1
27269    ac_optarg=$2
27270    ac_shift=shift
27271    ;;
27272  esac
27273
27274  case $ac_option in
27275  # Handling of the options.
27276  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27277    ac_cs_recheck=: ;;
27278  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27279    $as_echo "$ac_cs_version"; exit ;;
27280  --config | --confi | --conf | --con | --co | --c )
27281    $as_echo "$ac_cs_config"; exit ;;
27282  --debug | --debu | --deb | --de | --d | -d )
27283    debug=: ;;
27284  --file | --fil | --fi | --f )
27285    $ac_shift
27286    case $ac_optarg in
27287    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27288    '') as_fn_error $? "missing file argument" ;;
27289    esac
27290    as_fn_append CONFIG_FILES " '$ac_optarg'"
27291    ac_need_defaults=false;;
27292  --header | --heade | --head | --hea )
27293    $ac_shift
27294    case $ac_optarg in
27295    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27296    esac
27297    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27298    ac_need_defaults=false;;
27299  --he | --h)
27300    # Conflict between --help and --header
27301    as_fn_error $? "ambiguous option: \`$1'
27302Try \`$0 --help' for more information.";;
27303  --help | --hel | -h )
27304    $as_echo "$ac_cs_usage"; exit ;;
27305  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27306  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27307    ac_cs_silent=: ;;
27308
27309  # This is an error.
27310  -*) as_fn_error $? "unrecognized option: \`$1'
27311Try \`$0 --help' for more information." ;;
27312
27313  *) as_fn_append ac_config_targets " $1"
27314     ac_need_defaults=false ;;
27315
27316  esac
27317  shift
27318done
27319
27320ac_configure_extra_args=
27321
27322if $ac_cs_silent; then
27323  exec 6>/dev/null
27324  ac_configure_extra_args="$ac_configure_extra_args --silent"
27325fi
27326
27327_ACEOF
27328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27329if \$ac_cs_recheck; then
27330  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27331  shift
27332  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27333  CONFIG_SHELL='$SHELL'
27334  export CONFIG_SHELL
27335  exec "\$@"
27336fi
27337
27338_ACEOF
27339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27340exec 5>>config.log
27341{
27342  echo
27343  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27344## Running $as_me. ##
27345_ASBOX
27346  $as_echo "$ac_log"
27347} >&5
27348
27349_ACEOF
27350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27351#
27352# INIT-COMMANDS
27353#
27354AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27355
27356_ACEOF
27357
27358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27359
27360# Handling of arguments.
27361for ac_config_target in $ac_config_targets
27362do
27363  case $ac_config_target in
27364    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27365    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27366    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27367    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
27368    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
27369    "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
27370    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27371    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
27372    "decNumber/Makefile") CONFIG_FILES="$CONFIG_FILES decNumber/Makefile" ;;
27373    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
27374
27375  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27376  esac
27377done
27378
27379
27380# If the user did not use the arguments to specify the items to instantiate,
27381# then the envvar interface is used.  Set only those that are not.
27382# We use the long form for the default assignment because of an extremely
27383# bizarre bug on SunOS 4.1.3.
27384if $ac_need_defaults; then
27385  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27386  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27387  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27388fi
27389
27390# Have a temporary directory for convenience.  Make it in the build tree
27391# simply because there is no reason against having it here, and in addition,
27392# creating and moving files from /tmp can sometimes cause problems.
27393# Hook for its removal unless debugging.
27394# Note that there is a small window in which the directory will not be cleaned:
27395# after its creation but before its name has been assigned to `$tmp'.
27396$debug ||
27397{
27398  tmp= ac_tmp=
27399  trap 'exit_status=$?
27400  : "${ac_tmp:=$tmp}"
27401  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27402' 0
27403  trap 'as_fn_exit 1' 1 2 13 15
27404}
27405# Create a (secure) tmp directory for tmp files.
27406
27407{
27408  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27409  test -d "$tmp"
27410}  ||
27411{
27412  tmp=./conf$$-$RANDOM
27413  (umask 077 && mkdir "$tmp")
27414} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27415ac_tmp=$tmp
27416
27417# Set up the scripts for CONFIG_FILES section.
27418# No need to generate them if there are no CONFIG_FILES.
27419# This happens for instance with `./config.status config.h'.
27420if test -n "$CONFIG_FILES"; then
27421
27422
27423ac_cr=`echo X | tr X '\015'`
27424# On cygwin, bash can eat \r inside `` if the user requested igncr.
27425# But we know of no other shell where ac_cr would be empty at this
27426# point, so we can use a bashism as a fallback.
27427if test "x$ac_cr" = x; then
27428  eval ac_cr=\$\'\\r\'
27429fi
27430ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27431if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27432  ac_cs_awk_cr='\\r'
27433else
27434  ac_cs_awk_cr=$ac_cr
27435fi
27436
27437echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27438_ACEOF
27439
27440
27441{
27442  echo "cat >conf$$subs.awk <<_ACEOF" &&
27443  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27444  echo "_ACEOF"
27445} >conf$$subs.sh ||
27446  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27447ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27448ac_delim='%!_!# '
27449for ac_last_try in false false false false false :; do
27450  . ./conf$$subs.sh ||
27451    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27452
27453  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27454  if test $ac_delim_n = $ac_delim_num; then
27455    break
27456  elif $ac_last_try; then
27457    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27458  else
27459    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27460  fi
27461done
27462rm -f conf$$subs.sh
27463
27464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27465cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27466_ACEOF
27467sed -n '
27468h
27469s/^/S["/; s/!.*/"]=/
27470p
27471g
27472s/^[^!]*!//
27473:repl
27474t repl
27475s/'"$ac_delim"'$//
27476t delim
27477:nl
27478h
27479s/\(.\{148\}\)..*/\1/
27480t more1
27481s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27482p
27483n
27484b repl
27485:more1
27486s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27487p
27488g
27489s/.\{148\}//
27490t nl
27491:delim
27492h
27493s/\(.\{148\}\)..*/\1/
27494t more2
27495s/["\\]/\\&/g; s/^/"/; s/$/"/
27496p
27497b
27498:more2
27499s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27500p
27501g
27502s/.\{148\}//
27503t delim
27504' <conf$$subs.awk | sed '
27505/^[^""]/{
27506  N
27507  s/\n//
27508}
27509' >>$CONFIG_STATUS || ac_write_fail=1
27510rm -f conf$$subs.awk
27511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27512_ACAWK
27513cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27514  for (key in S) S_is_set[key] = 1
27515  FS = ""
27516
27517}
27518{
27519  line = $ 0
27520  nfields = split(line, field, "@")
27521  substed = 0
27522  len = length(field[1])
27523  for (i = 2; i < nfields; i++) {
27524    key = field[i]
27525    keylen = length(key)
27526    if (S_is_set[key]) {
27527      value = S[key]
27528      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27529      len += length(value) + length(field[++i])
27530      substed = 1
27531    } else
27532      len += 1 + keylen
27533  }
27534
27535  print line
27536}
27537
27538_ACAWK
27539_ACEOF
27540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27541if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27542  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27543else
27544  cat
27545fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27546  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27547_ACEOF
27548
27549# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27550# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27551# trailing colons and then remove the whole line if VPATH becomes empty
27552# (actually we leave an empty line to preserve line numbers).
27553if test "x$srcdir" = x.; then
27554  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27555h
27556s///
27557s/^/:/
27558s/[	 ]*$/:/
27559s/:\$(srcdir):/:/g
27560s/:\${srcdir}:/:/g
27561s/:@srcdir@:/:/g
27562s/^:*//
27563s/:*$//
27564x
27565s/\(=[	 ]*\).*/\1/
27566G
27567s/\n//
27568s/^[^=]*=[	 ]*$//
27569}'
27570fi
27571
27572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27573fi # test -n "$CONFIG_FILES"
27574
27575# Set up the scripts for CONFIG_HEADERS section.
27576# No need to generate them if there are no CONFIG_HEADERS.
27577# This happens for instance with `./config.status Makefile'.
27578if test -n "$CONFIG_HEADERS"; then
27579cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27580BEGIN {
27581_ACEOF
27582
27583# Transform confdefs.h into an awk script `defines.awk', embedded as
27584# here-document in config.status, that substitutes the proper values into
27585# config.h.in to produce config.h.
27586
27587# Create a delimiter string that does not exist in confdefs.h, to ease
27588# handling of long lines.
27589ac_delim='%!_!# '
27590for ac_last_try in false false :; do
27591  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27592  if test -z "$ac_tt"; then
27593    break
27594  elif $ac_last_try; then
27595    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27596  else
27597    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27598  fi
27599done
27600
27601# For the awk script, D is an array of macro values keyed by name,
27602# likewise P contains macro parameters if any.  Preserve backslash
27603# newline sequences.
27604
27605ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27606sed -n '
27607s/.\{148\}/&'"$ac_delim"'/g
27608t rset
27609:rset
27610s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27611t def
27612d
27613:def
27614s/\\$//
27615t bsnl
27616s/["\\]/\\&/g
27617s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27618D["\1"]=" \3"/p
27619s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27620d
27621:bsnl
27622s/["\\]/\\&/g
27623s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27624D["\1"]=" \3\\\\\\n"\\/p
27625t cont
27626s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27627t cont
27628d
27629:cont
27630n
27631s/.\{148\}/&'"$ac_delim"'/g
27632t clear
27633:clear
27634s/\\$//
27635t bsnlc
27636s/["\\]/\\&/g; s/^/"/; s/$/"/p
27637d
27638:bsnlc
27639s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27640b cont
27641' <confdefs.h | sed '
27642s/'"$ac_delim"'/"\\\
27643"/g' >>$CONFIG_STATUS || ac_write_fail=1
27644
27645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27646  for (key in D) D_is_set[key] = 1
27647  FS = ""
27648}
27649/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27650  line = \$ 0
27651  split(line, arg, " ")
27652  if (arg[1] == "#") {
27653    defundef = arg[2]
27654    mac1 = arg[3]
27655  } else {
27656    defundef = substr(arg[1], 2)
27657    mac1 = arg[2]
27658  }
27659  split(mac1, mac2, "(") #)
27660  macro = mac2[1]
27661  prefix = substr(line, 1, index(line, defundef) - 1)
27662  if (D_is_set[macro]) {
27663    # Preserve the white space surrounding the "#".
27664    print prefix "define", macro P[macro] D[macro]
27665    next
27666  } else {
27667    # Replace #undef with comments.  This is necessary, for example,
27668    # in the case of _POSIX_SOURCE, which is predefined and required
27669    # on some systems where configure will not decide to define it.
27670    if (defundef == "undef") {
27671      print "/*", prefix defundef, macro, "*/"
27672      next
27673    }
27674  }
27675}
27676{ print }
27677_ACAWK
27678_ACEOF
27679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27680  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27681fi # test -n "$CONFIG_HEADERS"
27682
27683
27684eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27685shift
27686for ac_tag
27687do
27688  case $ac_tag in
27689  :[FHLC]) ac_mode=$ac_tag; continue;;
27690  esac
27691  case $ac_mode$ac_tag in
27692  :[FHL]*:*);;
27693  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27694  :[FH]-) ac_tag=-:-;;
27695  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27696  esac
27697  ac_save_IFS=$IFS
27698  IFS=:
27699  set x $ac_tag
27700  IFS=$ac_save_IFS
27701  shift
27702  ac_file=$1
27703  shift
27704
27705  case $ac_mode in
27706  :L) ac_source=$1;;
27707  :[FH])
27708    ac_file_inputs=
27709    for ac_f
27710    do
27711      case $ac_f in
27712      -) ac_f="$ac_tmp/stdin";;
27713      *) # Look for the file first in the build tree, then in the source tree
27714	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27715	 # because $ac_f cannot contain `:'.
27716	 test -f "$ac_f" ||
27717	   case $ac_f in
27718	   [\\/$]*) false;;
27719	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27720	   esac ||
27721	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27722      esac
27723      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27724      as_fn_append ac_file_inputs " '$ac_f'"
27725    done
27726
27727    # Let's still pretend it is `configure' which instantiates (i.e., don't
27728    # use $as_me), people would be surprised to read:
27729    #    /* config.h.  Generated by config.status.  */
27730    configure_input='Generated from '`
27731	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27732	`' by configure.'
27733    if test x"$ac_file" != x-; then
27734      configure_input="$ac_file.  $configure_input"
27735      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27736$as_echo "$as_me: creating $ac_file" >&6;}
27737    fi
27738    # Neutralize special characters interpreted by sed in replacement strings.
27739    case $configure_input in #(
27740    *\&* | *\|* | *\\* )
27741       ac_sed_conf_input=`$as_echo "$configure_input" |
27742       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27743    *) ac_sed_conf_input=$configure_input;;
27744    esac
27745
27746    case $ac_tag in
27747    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27748      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27749    esac
27750    ;;
27751  esac
27752
27753  ac_dir=`$as_dirname -- "$ac_file" ||
27754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27755	 X"$ac_file" : 'X\(//\)[^/]' \| \
27756	 X"$ac_file" : 'X\(//\)$' \| \
27757	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27758$as_echo X"$ac_file" |
27759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27760	    s//\1/
27761	    q
27762	  }
27763	  /^X\(\/\/\)[^/].*/{
27764	    s//\1/
27765	    q
27766	  }
27767	  /^X\(\/\/\)$/{
27768	    s//\1/
27769	    q
27770	  }
27771	  /^X\(\/\).*/{
27772	    s//\1/
27773	    q
27774	  }
27775	  s/.*/./; q'`
27776  as_dir="$ac_dir"; as_fn_mkdir_p
27777  ac_builddir=.
27778
27779case "$ac_dir" in
27780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27781*)
27782  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27783  # A ".." for each directory in $ac_dir_suffix.
27784  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27785  case $ac_top_builddir_sub in
27786  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27787  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27788  esac ;;
27789esac
27790ac_abs_top_builddir=$ac_pwd
27791ac_abs_builddir=$ac_pwd$ac_dir_suffix
27792# for backward compatibility:
27793ac_top_builddir=$ac_top_build_prefix
27794
27795case $srcdir in
27796  .)  # We are building in place.
27797    ac_srcdir=.
27798    ac_top_srcdir=$ac_top_builddir_sub
27799    ac_abs_top_srcdir=$ac_pwd ;;
27800  [\\/]* | ?:[\\/]* )  # Absolute name.
27801    ac_srcdir=$srcdir$ac_dir_suffix;
27802    ac_top_srcdir=$srcdir
27803    ac_abs_top_srcdir=$srcdir ;;
27804  *) # Relative name.
27805    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27806    ac_top_srcdir=$ac_top_build_prefix$srcdir
27807    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27808esac
27809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27810
27811
27812  case $ac_mode in
27813  :F)
27814  #
27815  # CONFIG_FILE
27816  #
27817
27818  case $INSTALL in
27819  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27820  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27821  esac
27822  ac_MKDIR_P=$MKDIR_P
27823  case $MKDIR_P in
27824  [\\/$]* | ?:[\\/]* ) ;;
27825  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27826  esac
27827_ACEOF
27828
27829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27830# If the template does not know about datarootdir, expand it.
27831# FIXME: This hack should be removed a few years after 2.60.
27832ac_datarootdir_hack=; ac_datarootdir_seen=
27833ac_sed_dataroot='
27834/datarootdir/ {
27835  p
27836  q
27837}
27838/@datadir@/p
27839/@docdir@/p
27840/@infodir@/p
27841/@localedir@/p
27842/@mandir@/p'
27843case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27844*datarootdir*) ac_datarootdir_seen=yes;;
27845*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27846  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27847$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27848_ACEOF
27849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27850  ac_datarootdir_hack='
27851  s&@datadir@&$datadir&g
27852  s&@docdir@&$docdir&g
27853  s&@infodir@&$infodir&g
27854  s&@localedir@&$localedir&g
27855  s&@mandir@&$mandir&g
27856  s&\\\${datarootdir}&$datarootdir&g' ;;
27857esac
27858_ACEOF
27859
27860# Neutralize VPATH when `$srcdir' = `.'.
27861# Shell code in configure.ac might set extrasub.
27862# FIXME: do we really want to maintain this feature?
27863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27864ac_sed_extra="$ac_vpsub
27865$extrasub
27866_ACEOF
27867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27868:t
27869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27870s|@configure_input@|$ac_sed_conf_input|;t t
27871s&@top_builddir@&$ac_top_builddir_sub&;t t
27872s&@top_build_prefix@&$ac_top_build_prefix&;t t
27873s&@srcdir@&$ac_srcdir&;t t
27874s&@abs_srcdir@&$ac_abs_srcdir&;t t
27875s&@top_srcdir@&$ac_top_srcdir&;t t
27876s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27877s&@builddir@&$ac_builddir&;t t
27878s&@abs_builddir@&$ac_abs_builddir&;t t
27879s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27880s&@INSTALL@&$ac_INSTALL&;t t
27881s&@MKDIR_P@&$ac_MKDIR_P&;t t
27882$ac_datarootdir_hack
27883"
27884eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27885  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27886
27887test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27888  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27889  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27890      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27891  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27892which seems to be undefined.  Please make sure it is defined" >&5
27893$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27894which seems to be undefined.  Please make sure it is defined" >&2;}
27895
27896  rm -f "$ac_tmp/stdin"
27897  case $ac_file in
27898  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27899  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27900  esac \
27901  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27902 ;;
27903  :H)
27904  #
27905  # CONFIG_HEADER
27906  #
27907  if test x"$ac_file" != x-; then
27908    {
27909      $as_echo "/* $configure_input  */" \
27910      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27911    } >"$ac_tmp/config.h" \
27912      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27913    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27914      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27915$as_echo "$as_me: $ac_file is unchanged" >&6;}
27916    else
27917      rm -f "$ac_file"
27918      mv "$ac_tmp/config.h" "$ac_file" \
27919	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27920    fi
27921  else
27922    $as_echo "/* $configure_input  */" \
27923      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27924      || as_fn_error $? "could not create -" "$LINENO" 5
27925  fi
27926# Compute "$ac_file"'s index in $config_headers.
27927_am_arg="$ac_file"
27928_am_stamp_count=1
27929for _am_header in $config_headers :; do
27930  case $_am_header in
27931    $_am_arg | $_am_arg:* )
27932      break ;;
27933    * )
27934      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27935  esac
27936done
27937echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27938$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27939	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27940	 X"$_am_arg" : 'X\(//\)$' \| \
27941	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27942$as_echo X"$_am_arg" |
27943    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27944	    s//\1/
27945	    q
27946	  }
27947	  /^X\(\/\/\)[^/].*/{
27948	    s//\1/
27949	    q
27950	  }
27951	  /^X\(\/\/\)$/{
27952	    s//\1/
27953	    q
27954	  }
27955	  /^X\(\/\).*/{
27956	    s//\1/
27957	    q
27958	  }
27959	  s/.*/./; q'`/stamp-h$_am_stamp_count
27960 ;;
27961
27962  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27963$as_echo "$as_me: executing $ac_file commands" >&6;}
27964 ;;
27965  esac
27966
27967
27968  case $ac_file$ac_mode in
27969    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27970  # Autoconf 2.62 quotes --file arguments for eval, but not when files
27971  # are listed without --file.  Let's play safe and only enable the eval
27972  # if we detect the quoting.
27973  case $CONFIG_FILES in
27974  *\'*) eval set x "$CONFIG_FILES" ;;
27975  *)   set x $CONFIG_FILES ;;
27976  esac
27977  shift
27978  for mf
27979  do
27980    # Strip MF so we end up with the name of the file.
27981    mf=`echo "$mf" | sed -e 's/:.*$//'`
27982    # Check whether this is an Automake generated Makefile or not.
27983    # We used to match only the files named 'Makefile.in', but
27984    # some people rename them; so instead we look at the file content.
27985    # Grep'ing the first line is not enough: some people post-process
27986    # each Makefile.in and add a new line on top of each file to say so.
27987    # Grep'ing the whole file is not good either: AIX grep has a line
27988    # limit of 2048, but all sed's we know have understand at least 4000.
27989    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27990      dirpart=`$as_dirname -- "$mf" ||
27991$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27992	 X"$mf" : 'X\(//\)[^/]' \| \
27993	 X"$mf" : 'X\(//\)$' \| \
27994	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27995$as_echo X"$mf" |
27996    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27997	    s//\1/
27998	    q
27999	  }
28000	  /^X\(\/\/\)[^/].*/{
28001	    s//\1/
28002	    q
28003	  }
28004	  /^X\(\/\/\)$/{
28005	    s//\1/
28006	    q
28007	  }
28008	  /^X\(\/\).*/{
28009	    s//\1/
28010	    q
28011	  }
28012	  s/.*/./; q'`
28013    else
28014      continue
28015    fi
28016    # Extract the definition of DEPDIR, am__include, and am__quote
28017    # from the Makefile without running 'make'.
28018    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28019    test -z "$DEPDIR" && continue
28020    am__include=`sed -n 's/^am__include = //p' < "$mf"`
28021    test -z "am__include" && continue
28022    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28023    # Find all dependency output files, they are included files with
28024    # $(DEPDIR) in their names.  We invoke sed twice because it is the
28025    # simplest approach to changing $(DEPDIR) to its actual value in the
28026    # expansion.
28027    for file in `sed -n "
28028      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28029	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28030      # Make sure the directory exists.
28031      test -f "$dirpart/$file" && continue
28032      fdir=`$as_dirname -- "$file" ||
28033$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28034	 X"$file" : 'X\(//\)[^/]' \| \
28035	 X"$file" : 'X\(//\)$' \| \
28036	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28037$as_echo X"$file" |
28038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28039	    s//\1/
28040	    q
28041	  }
28042	  /^X\(\/\/\)[^/].*/{
28043	    s//\1/
28044	    q
28045	  }
28046	  /^X\(\/\/\)$/{
28047	    s//\1/
28048	    q
28049	  }
28050	  /^X\(\/\).*/{
28051	    s//\1/
28052	    q
28053	  }
28054	  s/.*/./; q'`
28055      as_dir=$dirpart/$fdir; as_fn_mkdir_p
28056      # echo "creating $dirpart/$file"
28057      echo '# dummy' > "$dirpart/$file"
28058    done
28059  done
28060}
28061 ;;
28062
28063  esac
28064done # for ac_tag
28065
28066
28067as_fn_exit 0
28068_ACEOF
28069ac_clean_files=$ac_clean_files_save
28070
28071test $ac_write_fail = 0 ||
28072  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28073
28074
28075# configure is writing to config.log, and then calls config.status.
28076# config.status does its own redirection, appending to config.log.
28077# Unfortunately, on DOS this fails, as config.log is still kept open
28078# by configure, so config.status won't be able to write to it; its
28079# output is simply discarded.  So we exec the FD to /dev/null,
28080# effectively closing config.log, so it can be properly (re)opened and
28081# appended to by config.status.  When coming back to configure, we
28082# need to make the FD available again.
28083if test "$no_create" != yes; then
28084  ac_cs_success=:
28085  ac_config_status_args=
28086  test "$silent" = yes &&
28087    ac_config_status_args="$ac_config_status_args --quiet"
28088  exec 5>/dev/null
28089  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28090  exec 5>>config.log
28091  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28092  # would make configure fail if this is the last instruction.
28093  $ac_cs_success || as_fn_exit 1
28094fi
28095if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28096  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28097$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28098fi
28099
28100
28101###############################################################################
28102#   (end-of-file)
28103###############################################################################
28104