1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.64 for libgcrypt 1.5.0.
5#
6# Report bugs to <bug-libgcrypt@gnupg.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10# Foundation, Inc.
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176  if (eval "$as_required") 2>/dev/null; then :
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188  IFS=$as_save_IFS
189  test -z "$as_dir" && as_dir=.
190  as_found=:
191  case $as_dir in #(
192	 /*)
193	   for as_base in sh bash ksh sh5; do
194	     # Try only shells that exist, to save several forks.
195	     as_shell=$as_dir/$as_base
196	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198  CONFIG_SHELL=$as_shell as_have_required=yes
199		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  break 2
201fi
202fi
203	   done;;
204       esac
205  as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209  CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214      if test "x$CONFIG_SHELL" != x; then :
215  # We cannot yet assume a decent shell, so we have to provide a
216	# neutralization value for shells without unset; and this also
217	# works around shells that cannot unset nonexistent variables.
218	BASH_ENV=/dev/null
219	ENV=/dev/null
220	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221	export CONFIG_SHELL
222	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223fi
224
225    if test x$as_have_required = xno; then :
226  $as_echo "$0: This script requires a shell more modern than all"
227  $as_echo "$0: the shells that I found on your system."
228  if test x${ZSH_VERSION+set} = xset ; then
229    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231  else
232    $as_echo "$0: Please tell bug-autoconf@gnu.org and
233$0: bug-libgcrypt@gnupg.org about your system, including
234$0: any error possibly output before this message. Then
235$0: install a modern shell, or manually run the script
236$0: under such a shell if you do have one."
237  fi
238  exit 1
239fi
240fi
241fi
242SHELL=${CONFIG_SHELL-/bin/sh}
243export SHELL
244# Unset more variables known to interfere with behavior of common tools.
245CLICOLOR_FORCE= GREP_OPTIONS=
246unset CLICOLOR_FORCE GREP_OPTIONS
247
248## --------------------- ##
249## M4sh Shell Functions. ##
250## --------------------- ##
251# as_fn_unset VAR
252# ---------------
253# Portably unset VAR.
254as_fn_unset ()
255{
256  { eval $1=; unset $1;}
257}
258as_unset=as_fn_unset
259
260# as_fn_set_status STATUS
261# -----------------------
262# Set $? to STATUS, without forking.
263as_fn_set_status ()
264{
265  return $1
266} # as_fn_set_status
267
268# as_fn_exit STATUS
269# -----------------
270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271as_fn_exit ()
272{
273  set +e
274  as_fn_set_status $1
275  exit $1
276} # as_fn_exit
277
278# as_fn_mkdir_p
279# -------------
280# Create "$as_dir" as a directory, including parents if necessary.
281as_fn_mkdir_p ()
282{
283
284  case $as_dir in #(
285  -*) as_dir=./$as_dir;;
286  esac
287  test -d "$as_dir" || eval $as_mkdir_p || {
288    as_dirs=
289    while :; do
290      case $as_dir in #(
291      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292      *) as_qdir=$as_dir;;
293      esac
294      as_dirs="'$as_qdir' $as_dirs"
295      as_dir=`$as_dirname -- "$as_dir" ||
296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297	 X"$as_dir" : 'X\(//\)[^/]' \| \
298	 X"$as_dir" : 'X\(//\)$' \| \
299	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300$as_echo X"$as_dir" |
301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)[^/].*/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)$/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\).*/{
314	    s//\1/
315	    q
316	  }
317	  s/.*/./; q'`
318      test -d "$as_dir" && break
319    done
320    test -z "$as_dirs" || eval "mkdir $as_dirs"
321  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324} # as_fn_mkdir_p
325# as_fn_append VAR VALUE
326# ----------------------
327# Append the text in VALUE to the end of the definition contained in VAR. Take
328# advantage of any shell optimizations that allow amortized linear growth over
329# repeated appends, instead of the typical quadratic growth present in naive
330# implementations.
331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332  eval 'as_fn_append ()
333  {
334    eval $1+=\$2
335  }'
336else
337  as_fn_append ()
338  {
339    eval $1=\$$1\$2
340  }
341fi # as_fn_append
342
343# as_fn_arith ARG...
344# ------------------
345# Perform arithmetic evaluation on the ARGs, and store the result in the
346# global $as_val. Take advantage of shells that can avoid forks. The arguments
347# must be portable across $(()) and expr.
348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349  eval 'as_fn_arith ()
350  {
351    as_val=$(( $* ))
352  }'
353else
354  as_fn_arith ()
355  {
356    as_val=`expr "$@" || test $? -eq 1`
357  }
358fi # as_fn_arith
359
360
361# as_fn_error ERROR [LINENO LOG_FD]
362# ---------------------------------
363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365# script with status $?, using 1 if that was 0.
366as_fn_error ()
367{
368  as_status=$?; test $as_status -eq 0 && as_status=1
369  if test "$3"; then
370    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372  fi
373  $as_echo "$as_me: error: $1" >&2
374  as_fn_exit $as_status
375} # as_fn_error
376
377if expr a : '\(a\)' >/dev/null 2>&1 &&
378   test "X`expr 00001 : '.*\(...\)'`" = X001; then
379  as_expr=expr
380else
381  as_expr=false
382fi
383
384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385  as_basename=basename
386else
387  as_basename=false
388fi
389
390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391  as_dirname=dirname
392else
393  as_dirname=false
394fi
395
396as_me=`$as_basename -- "$0" ||
397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398	 X"$0" : 'X\(//\)$' \| \
399	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400$as_echo X/"$0" |
401    sed '/^.*\/\([^/][^/]*\)\/*$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\/\)$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\).*/{
410	    s//\1/
411	    q
412	  }
413	  s/.*/./; q'`
414
415# Avoid depending upon Character Ranges.
416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419as_cr_digits='0123456789'
420as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423  as_lineno_1=$LINENO as_lineno_1a=$LINENO
424  as_lineno_2=$LINENO as_lineno_2a=$LINENO
425  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
428  sed -n '
429    p
430    /[$]LINENO/=
431  ' <$as_myself |
432    sed '
433      s/[$]LINENO.*/&-/
434      t lineno
435      b
436      :lineno
437      N
438      :loop
439      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440      t loop
441      s/-\n.*//
442    ' >$as_me.lineno &&
443  chmod +x "$as_me.lineno" ||
444    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446  # Don't try to exec as it changes $[0], causing all sort of problems
447  # (the dirname of $[0] is not the place where we might find the
448  # original and so on.  Autoconf is especially sensitive to this).
449  . "./$as_me.lineno"
450  # Exit status is that of the last command.
451  exit
452}
453
454ECHO_C= ECHO_N= ECHO_T=
455case `echo -n x` in #(((((
456-n*)
457  case `echo 'xy\c'` in
458  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
459  xy)  ECHO_C='\c';;
460  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
461       ECHO_T='	';;
462  esac;;
463*)
464  ECHO_N='-n';;
465esac
466
467rm -f conf$$ conf$$.exe conf$$.file
468if test -d conf$$.dir; then
469  rm -f conf$$.dir/conf$$.file
470else
471  rm -f conf$$.dir
472  mkdir conf$$.dir 2>/dev/null
473fi
474if (echo >conf$$.file) 2>/dev/null; then
475  if ln -s conf$$.file conf$$ 2>/dev/null; then
476    as_ln_s='ln -s'
477    # ... but there are two gotchas:
478    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480    # In both cases, we have to default to `cp -p'.
481    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482      as_ln_s='cp -p'
483  elif ln conf$$.file conf$$ 2>/dev/null; then
484    as_ln_s=ln
485  else
486    as_ln_s='cp -p'
487  fi
488else
489  as_ln_s='cp -p'
490fi
491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492rmdir conf$$.dir 2>/dev/null
493
494if mkdir -p . 2>/dev/null; then
495  as_mkdir_p='mkdir -p "$as_dir"'
496else
497  test -d ./-p && rmdir ./-p
498  as_mkdir_p=false
499fi
500
501if test -x / >/dev/null 2>&1; then
502  as_test_x='test -x'
503else
504  if ls -dL / >/dev/null 2>&1; then
505    as_ls_L_option=L
506  else
507    as_ls_L_option=
508  fi
509  as_test_x='
510    eval sh -c '\''
511      if test -d "$1"; then
512	test -d "$1/.";
513      else
514	case $1 in #(
515	-*)set "./$1";;
516	esac;
517	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518	???[sx]*):;;*)false;;esac;fi
519    '\'' sh
520  '
521fi
522as_executable_p=$as_test_x
523
524# Sed expression to map a string onto a valid CPP name.
525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527# Sed expression to map a string onto a valid variable name.
528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531
532# Check that we are running under the correct shell.
533SHELL=${CONFIG_SHELL-/bin/sh}
534
535case X$lt_ECHO in
536X*--fallback-echo)
537  # Remove one level of quotation (which was required for Make).
538  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539  ;;
540esac
541
542ECHO=${lt_ECHO-echo}
543if test "X$1" = X--no-reexec; then
544  # Discard the --no-reexec flag, and continue.
545  shift
546elif test "X$1" = X--fallback-echo; then
547  # Avoid inline document here, it may be left over
548  :
549elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550  # Yippee, $ECHO works!
551  :
552else
553  # Restart under the correct shell.
554  exec $SHELL "$0" --no-reexec ${1+"$@"}
555fi
556
557if test "X$1" = X--fallback-echo; then
558  # used as fallback echo
559  shift
560  cat <<_LT_EOF
561$*
562_LT_EOF
563  exit 0
564fi
565
566# The HP-UX ksh and POSIX shell print the target directory to stdout
567# if CDPATH is set.
568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570if test -z "$lt_ECHO"; then
571  if test "X${echo_test_string+set}" != Xset; then
572    # find a string as large as possible, as long as the shell can cope with it
573    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577      then
578        break
579      fi
580    done
581  fi
582
583  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585     test "X$echo_testing_string" = "X$echo_test_string"; then
586    :
587  else
588    # The Solaris, AIX, and Digital Unix default echo programs unquote
589    # backslashes.  This makes it impossible to quote backslashes using
590    #   echo "$something" | sed 's/\\/\\\\/g'
591    #
592    # So, first we look for a working echo in the user's PATH.
593
594    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595    for dir in $PATH /usr/ucb; do
596      IFS="$lt_save_ifs"
597      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600         test "X$echo_testing_string" = "X$echo_test_string"; then
601        ECHO="$dir/echo"
602        break
603      fi
604    done
605    IFS="$lt_save_ifs"
606
607    if test "X$ECHO" = Xecho; then
608      # We didn't find a better echo, so look for alternatives.
609      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611         test "X$echo_testing_string" = "X$echo_test_string"; then
612        # This shell has a builtin print -r that does the trick.
613        ECHO='print -r'
614      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615	   test "X$CONFIG_SHELL" != X/bin/ksh; then
616        # If we have ksh, try running configure again with it.
617        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618        export ORIGINAL_CONFIG_SHELL
619        CONFIG_SHELL=/bin/ksh
620        export CONFIG_SHELL
621        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622      else
623        # Try using printf.
624        ECHO='printf %s\n'
625        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627	   test "X$echo_testing_string" = "X$echo_test_string"; then
628	  # Cool, printf works
629	  :
630        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631	     test "X$echo_testing_string" = 'X\t' &&
632	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633	     test "X$echo_testing_string" = "X$echo_test_string"; then
634	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635	  export CONFIG_SHELL
636	  SHELL="$CONFIG_SHELL"
637	  export SHELL
638	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
639        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
644        else
645	  # maybe with a smaller string...
646	  prev=:
647
648	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650	    then
651	      break
652	    fi
653	    prev="$cmd"
654	  done
655
656	  if test "$prev" != 'sed 50q "$0"'; then
657	    echo_test_string=`eval $prev`
658	    export echo_test_string
659	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660	  else
661	    # Oops.  We lost completely, so just stick with echo.
662	    ECHO=echo
663	  fi
664        fi
665      fi
666    fi
667  fi
668fi
669
670# Copy echo and quote the copy suitably for passing to libtool from
671# the Makefile, instead of quoting the original, which is used later.
672lt_ECHO=$ECHO
673if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675fi
676
677
678
679
680exec 7<&0 </dev/null 6>&1
681
682# Name of the host.
683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684# so uname gets run too.
685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687#
688# Initializations.
689#
690ac_default_prefix=/usr/local
691ac_clean_files=
692ac_config_libobj_dir=.
693LIBOBJS=
694cross_compiling=no
695subdirs=
696MFLAGS=
697MAKEFLAGS=
698
699# Identity of this package.
700PACKAGE_NAME='libgcrypt'
701PACKAGE_TARNAME='libgcrypt'
702PACKAGE_VERSION='1.5.0'
703PACKAGE_STRING='libgcrypt 1.5.0'
704PACKAGE_BUGREPORT='bug-libgcrypt@gnupg.org'
705PACKAGE_URL=''
706
707ac_unique_file="src/libgcrypt.vers"
708ac_config_libobj_dir=compat
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723#  include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728#  include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745ac_subst_vars='am__EXEEXT_FALSE
746am__EXEEXT_TRUE
747LTLIBOBJS
748BUILD_FILEVERSION
749BUILD_TIMESTAMP
750BUILD_REVISION
751LIBGCRYPT_DIGESTS
752LIBGCRYPT_PUBKEY_CIPHERS
753LIBGCRYPT_CIPHERS
754GCRYPT_RANDOM
755GCRYPT_DIGESTS
756GCRYPT_PUBKEY_CIPHERS
757GCRYPT_CIPHERS
758LIBGCRYPT_THREAD_MODULES
759LIBGCRYPT_CONFIG_HOST
760LIBGCRYPT_CONFIG_CFLAGS
761LIBGCRYPT_CONFIG_LIBS
762LIBGCRYPT_CONFIG_API_VERSION
763NOEXECSTACK_FLAGS
764CROSS_COMPILING_FALSE
765CROSS_COMPILING_TRUE
766MPI_MOD_C_UDIV_QRNND_FALSE
767MPI_MOD_C_UDIV_QRNND_TRUE
768MPI_MOD_C_UDIV_FALSE
769MPI_MOD_C_UDIV_TRUE
770MPI_MOD_C_MPIH_RSHIFT_FALSE
771MPI_MOD_C_MPIH_RSHIFT_TRUE
772MPI_MOD_C_MPIH_LSHIFT_FALSE
773MPI_MOD_C_MPIH_LSHIFT_TRUE
774MPI_MOD_C_MPIH_MUL3_FALSE
775MPI_MOD_C_MPIH_MUL3_TRUE
776MPI_MOD_C_MPIH_MUL2_FALSE
777MPI_MOD_C_MPIH_MUL2_TRUE
778MPI_MOD_C_MPIH_MUL1_FALSE
779MPI_MOD_C_MPIH_MUL1_TRUE
780MPI_MOD_C_MPIH_SUB1_FALSE
781MPI_MOD_C_MPIH_SUB1_TRUE
782MPI_MOD_C_MPIH_ADD1_FALSE
783MPI_MOD_C_MPIH_ADD1_TRUE
784MPI_MOD_ASM_UDIV_QRNND_FALSE
785MPI_MOD_ASM_UDIV_QRNND_TRUE
786MPI_MOD_ASM_UDIV_FALSE
787MPI_MOD_ASM_UDIV_TRUE
788MPI_MOD_ASM_MPIH_RSHIFT_FALSE
789MPI_MOD_ASM_MPIH_RSHIFT_TRUE
790MPI_MOD_ASM_MPIH_LSHIFT_FALSE
791MPI_MOD_ASM_MPIH_LSHIFT_TRUE
792MPI_MOD_ASM_MPIH_MUL3_FALSE
793MPI_MOD_ASM_MPIH_MUL3_TRUE
794MPI_MOD_ASM_MPIH_MUL2_FALSE
795MPI_MOD_ASM_MPIH_MUL2_TRUE
796MPI_MOD_ASM_MPIH_MUL1_FALSE
797MPI_MOD_ASM_MPIH_MUL1_TRUE
798MPI_MOD_ASM_MPIH_SUB1_FALSE
799MPI_MOD_ASM_MPIH_SUB1_TRUE
800MPI_MOD_ASM_MPIH_ADD1_FALSE
801MPI_MOD_ASM_MPIH_ADD1_TRUE
802MPI_SFLAGS
803DL_LIBS
804LIBOBJS
805FALLBACK_SOCKLEN_T
806SYS_SOCKET_H
807INSERT_SYS_SELECT_H
808PTH_LIBS
809PTH_CFLAGS
810PTH_CONFIG
811GPG_ERROR_LIBS
812GPG_ERROR_CFLAGS
813GPG_ERROR_CONFIG
814HAVE_LD_VERSION_SCRIPT_FALSE
815HAVE_LD_VERSION_SCRIPT_TRUE
816ENABLE_O_FLAG_MUNGING_FALSE
817ENABLE_O_FLAG_MUNGING_TRUE
818USE_RANDOM_DAEMON_FALSE
819USE_RANDOM_DAEMON_TRUE
820emacs_local_vars_end
821emacs_local_vars_read_only
822emacs_local_vars_begin
823HAVE_W32CE_SYSTEM_FALSE
824HAVE_W32CE_SYSTEM_TRUE
825HAVE_W32_SYSTEM_FALSE
826HAVE_W32_SYSTEM_TRUE
827RC
828OTOOL64
829OTOOL
830LIPO
831NMEDIT
832DSYMUTIL
833lt_ECHO
834RANLIB
835AR
836LN_S
837NM
838ac_ct_DUMPBIN
839DUMPBIN
840LD
841FGREP
842SED
843LIBTOOL
844OBJDUMP
845DLLTOOL
846AS
847EGREP
848GREP
849am__fastdepCCAS_FALSE
850am__fastdepCCAS_TRUE
851CCASDEPMODE
852CCASFLAGS
853CCAS
854CPP
855am__fastdepCC_FALSE
856am__fastdepCC_TRUE
857CCDEPMODE
858AMDEPBACKSLASH
859AMDEP_FALSE
860AMDEP_TRUE
861am__quote
862am__include
863DEPDIR
864OBJEXT
865EXEEXT
866ac_ct_CC
867CPPFLAGS
868LDFLAGS
869CFLAGS
870CC
871LIBGCRYPT_LT_REVISION
872LIBGCRYPT_LT_AGE
873LIBGCRYPT_LT_CURRENT
874MAINT
875MAINTAINER_MODE_FALSE
876MAINTAINER_MODE_TRUE
877host_os
878host_vendor
879host_cpu
880host
881build_os
882build_vendor
883build_cpu
884build
885am__untar
886am__tar
887AMTAR
888am__leading_dot
889SET_MAKE
890AWK
891mkdir_p
892MKDIR_P
893INSTALL_STRIP_PROGRAM
894STRIP
895install_sh
896MAKEINFO
897AUTOHEADER
898AUTOMAKE
899AUTOCONF
900ACLOCAL
901VERSION
902PACKAGE
903CYGPATH_W
904am__isrc
905INSTALL_DATA
906INSTALL_SCRIPT
907INSTALL_PROGRAM
908target_alias
909host_alias
910build_alias
911LIBS
912ECHO_T
913ECHO_N
914ECHO_C
915DEFS
916mandir
917localedir
918libdir
919psdir
920pdfdir
921dvidir
922htmldir
923infodir
924docdir
925oldincludedir
926includedir
927localstatedir
928sharedstatedir
929sysconfdir
930datadir
931datarootdir
932libexecdir
933sbindir
934bindir
935program_transform_name
936prefix
937exec_prefix
938PACKAGE_URL
939PACKAGE_BUGREPORT
940PACKAGE_STRING
941PACKAGE_VERSION
942PACKAGE_TARNAME
943PACKAGE_NAME
944PATH_SEPARATOR
945SHELL'
946ac_subst_files=''
947ac_user_opts='
948enable_option_checking
949enable_maintainer_mode
950enable_dependency_tracking
951enable_static
952enable_shared
953with_pic
954enable_fast_install
955with_gnu_ld
956enable_libtool_lock
957enable_endian_check
958enable_ciphers
959enable_pubkey_ciphers
960enable_digests
961enable_random
962enable_dev_random
963with_egd_socket
964enable_random_daemon
965enable_asm
966enable_m_guard
967with_capabilities
968enable_hmac_binary_check
969enable_padlock_support
970enable_aesni_support
971enable_O_flag_munging
972enable_ld_version_script
973with_gpg_error_prefix
974with_pth_prefix
975enable_mpi_path
976enable_optimization
977enable_noexecstack
978'
979      ac_precious_vars='build_alias
980host_alias
981target_alias
982CC
983CFLAGS
984LDFLAGS
985LIBS
986CPPFLAGS
987CPP
988CCAS
989CCASFLAGS'
990
991
992# Initialize some variables set by options.
993ac_init_help=
994ac_init_version=false
995ac_unrecognized_opts=
996ac_unrecognized_sep=
997# The variables have the same names as the options, with
998# dashes changed to underlines.
999cache_file=/dev/null
1000exec_prefix=NONE
1001no_create=
1002no_recursion=
1003prefix=NONE
1004program_prefix=NONE
1005program_suffix=NONE
1006program_transform_name=s,x,x,
1007silent=
1008site=
1009srcdir=
1010verbose=
1011x_includes=NONE
1012x_libraries=NONE
1013
1014# Installation directory options.
1015# These are left unexpanded so users can "make install exec_prefix=/foo"
1016# and all the variables that are supposed to be based on exec_prefix
1017# by default will actually change.
1018# Use braces instead of parens because sh, perl, etc. also accept them.
1019# (The list follows the same order as the GNU Coding Standards.)
1020bindir='${exec_prefix}/bin'
1021sbindir='${exec_prefix}/sbin'
1022libexecdir='${exec_prefix}/libexec'
1023datarootdir='${prefix}/share'
1024datadir='${datarootdir}'
1025sysconfdir='${prefix}/etc'
1026sharedstatedir='${prefix}/com'
1027localstatedir='${prefix}/var'
1028includedir='${prefix}/include'
1029oldincludedir='/usr/include'
1030docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1031infodir='${datarootdir}/info'
1032htmldir='${docdir}'
1033dvidir='${docdir}'
1034pdfdir='${docdir}'
1035psdir='${docdir}'
1036libdir='${exec_prefix}/lib'
1037localedir='${datarootdir}/locale'
1038mandir='${datarootdir}/man'
1039
1040ac_prev=
1041ac_dashdash=
1042for ac_option
1043do
1044  # If the previous option needs an argument, assign it.
1045  if test -n "$ac_prev"; then
1046    eval $ac_prev=\$ac_option
1047    ac_prev=
1048    continue
1049  fi
1050
1051  case $ac_option in
1052  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053  *)	ac_optarg=yes ;;
1054  esac
1055
1056  # Accept the important Cygnus configure options, so we can diagnose typos.
1057
1058  case $ac_dashdash$ac_option in
1059  --)
1060    ac_dashdash=yes ;;
1061
1062  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063    ac_prev=bindir ;;
1064  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065    bindir=$ac_optarg ;;
1066
1067  -build | --build | --buil | --bui | --bu)
1068    ac_prev=build_alias ;;
1069  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070    build_alias=$ac_optarg ;;
1071
1072  -cache-file | --cache-file | --cache-fil | --cache-fi \
1073  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074    ac_prev=cache_file ;;
1075  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077    cache_file=$ac_optarg ;;
1078
1079  --config-cache | -C)
1080    cache_file=config.cache ;;
1081
1082  -datadir | --datadir | --datadi | --datad)
1083    ac_prev=datadir ;;
1084  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085    datadir=$ac_optarg ;;
1086
1087  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088  | --dataroo | --dataro | --datar)
1089    ac_prev=datarootdir ;;
1090  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092    datarootdir=$ac_optarg ;;
1093
1094  -disable-* | --disable-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error "invalid feature name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"enable_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval enable_$ac_useropt=no ;;
1109
1110  -docdir | --docdir | --docdi | --doc | --do)
1111    ac_prev=docdir ;;
1112  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113    docdir=$ac_optarg ;;
1114
1115  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116    ac_prev=dvidir ;;
1117  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118    dvidir=$ac_optarg ;;
1119
1120  -enable-* | --enable-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error "invalid feature name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"enable_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval enable_$ac_useropt=\$ac_optarg ;;
1135
1136  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138  | --exec | --exe | --ex)
1139    ac_prev=exec_prefix ;;
1140  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142  | --exec=* | --exe=* | --ex=*)
1143    exec_prefix=$ac_optarg ;;
1144
1145  -gas | --gas | --ga | --g)
1146    # Obsolete; use --with-gas.
1147    with_gas=yes ;;
1148
1149  -help | --help | --hel | --he | -h)
1150    ac_init_help=long ;;
1151  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152    ac_init_help=recursive ;;
1153  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154    ac_init_help=short ;;
1155
1156  -host | --host | --hos | --ho)
1157    ac_prev=host_alias ;;
1158  -host=* | --host=* | --hos=* | --ho=*)
1159    host_alias=$ac_optarg ;;
1160
1161  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162    ac_prev=htmldir ;;
1163  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164  | --ht=*)
1165    htmldir=$ac_optarg ;;
1166
1167  -includedir | --includedir | --includedi | --included | --include \
1168  | --includ | --inclu | --incl | --inc)
1169    ac_prev=includedir ;;
1170  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171  | --includ=* | --inclu=* | --incl=* | --inc=*)
1172    includedir=$ac_optarg ;;
1173
1174  -infodir | --infodir | --infodi | --infod | --info | --inf)
1175    ac_prev=infodir ;;
1176  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177    infodir=$ac_optarg ;;
1178
1179  -libdir | --libdir | --libdi | --libd)
1180    ac_prev=libdir ;;
1181  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182    libdir=$ac_optarg ;;
1183
1184  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185  | --libexe | --libex | --libe)
1186    ac_prev=libexecdir ;;
1187  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188  | --libexe=* | --libex=* | --libe=*)
1189    libexecdir=$ac_optarg ;;
1190
1191  -localedir | --localedir | --localedi | --localed | --locale)
1192    ac_prev=localedir ;;
1193  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194    localedir=$ac_optarg ;;
1195
1196  -localstatedir | --localstatedir | --localstatedi | --localstated \
1197  | --localstate | --localstat | --localsta | --localst | --locals)
1198    ac_prev=localstatedir ;;
1199  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201    localstatedir=$ac_optarg ;;
1202
1203  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204    ac_prev=mandir ;;
1205  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206    mandir=$ac_optarg ;;
1207
1208  -nfp | --nfp | --nf)
1209    # Obsolete; use --without-fp.
1210    with_fp=no ;;
1211
1212  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213  | --no-cr | --no-c | -n)
1214    no_create=yes ;;
1215
1216  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218    no_recursion=yes ;;
1219
1220  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222  | --oldin | --oldi | --old | --ol | --o)
1223    ac_prev=oldincludedir ;;
1224  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227    oldincludedir=$ac_optarg ;;
1228
1229  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230    ac_prev=prefix ;;
1231  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232    prefix=$ac_optarg ;;
1233
1234  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235  | --program-pre | --program-pr | --program-p)
1236    ac_prev=program_prefix ;;
1237  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239    program_prefix=$ac_optarg ;;
1240
1241  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242  | --program-suf | --program-su | --program-s)
1243    ac_prev=program_suffix ;;
1244  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246    program_suffix=$ac_optarg ;;
1247
1248  -program-transform-name | --program-transform-name \
1249  | --program-transform-nam | --program-transform-na \
1250  | --program-transform-n | --program-transform- \
1251  | --program-transform | --program-transfor \
1252  | --program-transfo | --program-transf \
1253  | --program-trans | --program-tran \
1254  | --progr-tra | --program-tr | --program-t)
1255    ac_prev=program_transform_name ;;
1256  -program-transform-name=* | --program-transform-name=* \
1257  | --program-transform-nam=* | --program-transform-na=* \
1258  | --program-transform-n=* | --program-transform-=* \
1259  | --program-transform=* | --program-transfor=* \
1260  | --program-transfo=* | --program-transf=* \
1261  | --program-trans=* | --program-tran=* \
1262  | --progr-tra=* | --program-tr=* | --program-t=*)
1263    program_transform_name=$ac_optarg ;;
1264
1265  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266    ac_prev=pdfdir ;;
1267  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268    pdfdir=$ac_optarg ;;
1269
1270  -psdir | --psdir | --psdi | --psd | --ps)
1271    ac_prev=psdir ;;
1272  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273    psdir=$ac_optarg ;;
1274
1275  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276  | -silent | --silent | --silen | --sile | --sil)
1277    silent=yes ;;
1278
1279  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280    ac_prev=sbindir ;;
1281  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282  | --sbi=* | --sb=*)
1283    sbindir=$ac_optarg ;;
1284
1285  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287  | --sharedst | --shareds | --shared | --share | --shar \
1288  | --sha | --sh)
1289    ac_prev=sharedstatedir ;;
1290  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293  | --sha=* | --sh=*)
1294    sharedstatedir=$ac_optarg ;;
1295
1296  -site | --site | --sit)
1297    ac_prev=site ;;
1298  -site=* | --site=* | --sit=*)
1299    site=$ac_optarg ;;
1300
1301  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302    ac_prev=srcdir ;;
1303  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304    srcdir=$ac_optarg ;;
1305
1306  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307  | --syscon | --sysco | --sysc | --sys | --sy)
1308    ac_prev=sysconfdir ;;
1309  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311    sysconfdir=$ac_optarg ;;
1312
1313  -target | --target | --targe | --targ | --tar | --ta | --t)
1314    ac_prev=target_alias ;;
1315  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316    target_alias=$ac_optarg ;;
1317
1318  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319    verbose=yes ;;
1320
1321  -version | --version | --versio | --versi | --vers | -V)
1322    ac_init_version=: ;;
1323
1324  -with-* | --with-*)
1325    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326    # Reject names that are not valid shell variable names.
1327    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328      as_fn_error "invalid package name: $ac_useropt"
1329    ac_useropt_orig=$ac_useropt
1330    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331    case $ac_user_opts in
1332      *"
1333"with_$ac_useropt"
1334"*) ;;
1335      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1336	 ac_unrecognized_sep=', ';;
1337    esac
1338    eval with_$ac_useropt=\$ac_optarg ;;
1339
1340  -without-* | --without-*)
1341    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1342    # Reject names that are not valid shell variable names.
1343    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344      as_fn_error "invalid package name: $ac_useropt"
1345    ac_useropt_orig=$ac_useropt
1346    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347    case $ac_user_opts in
1348      *"
1349"with_$ac_useropt"
1350"*) ;;
1351      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352	 ac_unrecognized_sep=', ';;
1353    esac
1354    eval with_$ac_useropt=no ;;
1355
1356  --x)
1357    # Obsolete; use --with-x.
1358    with_x=yes ;;
1359
1360  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361  | --x-incl | --x-inc | --x-in | --x-i)
1362    ac_prev=x_includes ;;
1363  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365    x_includes=$ac_optarg ;;
1366
1367  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369    ac_prev=x_libraries ;;
1370  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372    x_libraries=$ac_optarg ;;
1373
1374  -*) as_fn_error "unrecognized option: \`$ac_option'
1375Try \`$0 --help' for more information."
1376    ;;
1377
1378  *=*)
1379    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1380    # Reject names that are not valid shell variable names.
1381    case $ac_envvar in #(
1382      '' | [0-9]* | *[!_$as_cr_alnum]* )
1383      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1384    esac
1385    eval $ac_envvar=\$ac_optarg
1386    export $ac_envvar ;;
1387
1388  *)
1389    # FIXME: should be removed in autoconf 3.0.
1390    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1393    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394    ;;
1395
1396  esac
1397done
1398
1399if test -n "$ac_prev"; then
1400  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1401  as_fn_error "missing argument to $ac_option"
1402fi
1403
1404if test -n "$ac_unrecognized_opts"; then
1405  case $enable_option_checking in
1406    no) ;;
1407    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1408    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1409  esac
1410fi
1411
1412# Check all directory arguments for consistency.
1413for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414		datadir sysconfdir sharedstatedir localstatedir includedir \
1415		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416		libdir localedir mandir
1417do
1418  eval ac_val=\$$ac_var
1419  # Remove trailing slashes.
1420  case $ac_val in
1421    */ )
1422      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423      eval $ac_var=\$ac_val;;
1424  esac
1425  # Be sure to have absolute directory names.
1426  case $ac_val in
1427    [\\/$]* | ?:[\\/]* )  continue;;
1428    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429  esac
1430  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1431done
1432
1433# There might be people who depend on the old broken behavior: `$host'
1434# used to hold the argument of --host etc.
1435# FIXME: To remove some day.
1436build=$build_alias
1437host=$host_alias
1438target=$target_alias
1439
1440# FIXME: To remove some day.
1441if test "x$host_alias" != x; then
1442  if test "x$build_alias" = x; then
1443    cross_compiling=maybe
1444    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1445    If a cross compiler is detected then cross compile mode will be used." >&2
1446  elif test "x$build_alias" != "x$host_alias"; then
1447    cross_compiling=yes
1448  fi
1449fi
1450
1451ac_tool_prefix=
1452test -n "$host_alias" && ac_tool_prefix=$host_alias-
1453
1454test "$silent" = yes && exec 6>/dev/null
1455
1456
1457ac_pwd=`pwd` && test -n "$ac_pwd" &&
1458ac_ls_di=`ls -di .` &&
1459ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1460  as_fn_error "working directory cannot be determined"
1461test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462  as_fn_error "pwd does not report name of working directory"
1463
1464
1465# Find the source files, if location was not specified.
1466if test -z "$srcdir"; then
1467  ac_srcdir_defaulted=yes
1468  # Try the directory containing this script, then the parent directory.
1469  ac_confdir=`$as_dirname -- "$as_myself" ||
1470$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471	 X"$as_myself" : 'X\(//\)[^/]' \| \
1472	 X"$as_myself" : 'X\(//\)$' \| \
1473	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474$as_echo X"$as_myself" |
1475    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476	    s//\1/
1477	    q
1478	  }
1479	  /^X\(\/\/\)[^/].*/{
1480	    s//\1/
1481	    q
1482	  }
1483	  /^X\(\/\/\)$/{
1484	    s//\1/
1485	    q
1486	  }
1487	  /^X\(\/\).*/{
1488	    s//\1/
1489	    q
1490	  }
1491	  s/.*/./; q'`
1492  srcdir=$ac_confdir
1493  if test ! -r "$srcdir/$ac_unique_file"; then
1494    srcdir=..
1495  fi
1496else
1497  ac_srcdir_defaulted=no
1498fi
1499if test ! -r "$srcdir/$ac_unique_file"; then
1500  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1501  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1502fi
1503ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504ac_abs_confdir=`(
1505	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1506	pwd)`
1507# When building in place, set srcdir=.
1508if test "$ac_abs_confdir" = "$ac_pwd"; then
1509  srcdir=.
1510fi
1511# Remove unnecessary trailing slashes from srcdir.
1512# Double slashes in file names in object file debugging info
1513# mess up M-x gdb in Emacs.
1514case $srcdir in
1515*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516esac
1517for ac_var in $ac_precious_vars; do
1518  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519  eval ac_env_${ac_var}_value=\$${ac_var}
1520  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522done
1523
1524#
1525# Report the --help message.
1526#
1527if test "$ac_init_help" = "long"; then
1528  # Omit some internal or obsolete options to make the list less imposing.
1529  # This message is too long to be a string in the A/UX 3.1 sh.
1530  cat <<_ACEOF
1531\`configure' configures libgcrypt 1.5.0 to adapt to many kinds of systems.
1532
1533Usage: $0 [OPTION]... [VAR=VALUE]...
1534
1535To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536VAR=VALUE.  See below for descriptions of some of the useful variables.
1537
1538Defaults for the options are specified in brackets.
1539
1540Configuration:
1541  -h, --help              display this help and exit
1542      --help=short        display options specific to this package
1543      --help=recursive    display the short help of all the included packages
1544  -V, --version           display version information and exit
1545  -q, --quiet, --silent   do not print \`checking...' messages
1546      --cache-file=FILE   cache test results in FILE [disabled]
1547  -C, --config-cache      alias for \`--cache-file=config.cache'
1548  -n, --no-create         do not create output files
1549      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1550
1551Installation directories:
1552  --prefix=PREFIX         install architecture-independent files in PREFIX
1553                          [$ac_default_prefix]
1554  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1555                          [PREFIX]
1556
1557By default, \`make install' will install all the files in
1558\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1559an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560for instance \`--prefix=\$HOME'.
1561
1562For better control, use the options below.
1563
1564Fine tuning of the installation directories:
1565  --bindir=DIR            user executables [EPREFIX/bin]
1566  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1567  --libexecdir=DIR        program executables [EPREFIX/libexec]
1568  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1569  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1570  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1571  --libdir=DIR            object code libraries [EPREFIX/lib]
1572  --includedir=DIR        C header files [PREFIX/include]
1573  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1574  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1575  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1576  --infodir=DIR           info documentation [DATAROOTDIR/info]
1577  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1578  --mandir=DIR            man documentation [DATAROOTDIR/man]
1579  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgcrypt]
1580  --htmldir=DIR           html documentation [DOCDIR]
1581  --dvidir=DIR            dvi documentation [DOCDIR]
1582  --pdfdir=DIR            pdf documentation [DOCDIR]
1583  --psdir=DIR             ps documentation [DOCDIR]
1584_ACEOF
1585
1586  cat <<\_ACEOF
1587
1588Program names:
1589  --program-prefix=PREFIX            prepend PREFIX to installed program names
1590  --program-suffix=SUFFIX            append SUFFIX to installed program names
1591  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1592
1593System types:
1594  --build=BUILD     configure for building on BUILD [guessed]
1595  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1596_ACEOF
1597fi
1598
1599if test -n "$ac_init_help"; then
1600  case $ac_init_help in
1601     short | recursive ) echo "Configuration of libgcrypt 1.5.0:";;
1602   esac
1603  cat <<\_ACEOF
1604
1605Optional Features:
1606  --disable-option-checking  ignore unrecognized --enable/--with options
1607  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1608  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1609  --enable-maintainer-mode  enable make rules and dependencies not useful
1610			  (and sometimes confusing) to the casual installer
1611  --disable-dependency-tracking  speeds up one-time build
1612  --enable-dependency-tracking   do not reject slow dependency extractors
1613  --enable-static[=PKGS]  build static libraries [default=no]
1614  --enable-shared[=PKGS]  build shared libraries [default=yes]
1615  --enable-fast-install[=PKGS]
1616                          optimize for fast installation [default=yes]
1617  --disable-libtool-lock  avoid locking (might break parallel builds)
1618  --disable-endian-check  disable the endian check and trust the OS provided
1619                          macros
1620  --enable-ciphers=ciphers
1621                          select the symmetric ciphers to include
1622  --enable-pubkey-ciphers=ciphers
1623                          select the public-key ciphers to include
1624  --enable-digests=digests
1625                          select the message digests to include
1626  --enable-random=name    select which random number generator to use
1627  --disable-dev-random    disable the use of dev random
1628  --enable-random-daemon  Build and support the experimental gcryptrnd
1629  --disable-asm           Disable MPI assembler modules
1630  --enable-m-guard        Enable memory guard facility
1631  --enable-hmac-binary-check
1632                          Enable library integrity check
1633  --disable-padlock-support
1634                          Disable support for the PadLock Engine of VIA
1635                          processors
1636  --disable-aesni-support Disable support for the Intel AES-NI instructions
1637  --disable-O-flag-munging
1638                          Disable modification of the cc -O flag
1639  --enable-ld-version-script
1640                          enable/disable use of linker version script.
1641                          (default is system dependent)
1642  --enable-mpi-path=EXTRA_PATH
1643                          prepend EXTRA_PATH to list of CPU specific
1644                          optimizations
1645  --disable-optimization  disable compiler optimization
1646  --disable-noexecstack   disable non executable stack support
1647
1648Optional Packages:
1649  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1650  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1651  --with-pic              try to use only PIC/non-PIC objects [default=use
1652                          both]
1653  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1654  --with-egd-socket=NAME  Use NAME for the EGD socket)
1655  --with-capabilities     Use linux capabilities default=no
1656  --with-gpg-error-prefix=PFX
1657                          prefix where GPG Error is installed (optional)
1658  --with-pth-prefix=PFX   prefix where GNU Pth is installed (optional)
1659
1660Some influential environment variables:
1661  CC          C compiler command
1662  CFLAGS      C compiler flags
1663  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1664              nonstandard directory <lib dir>
1665  LIBS        libraries to pass to the linker, e.g. -l<library>
1666  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1667              you have headers in a nonstandard directory <include dir>
1668  CPP         C preprocessor
1669  CCAS        assembler compiler command (defaults to CC)
1670  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1671
1672Use these variables to override the choices made by `configure' or to help
1673it to find libraries and programs with nonstandard names/locations.
1674
1675Report bugs to <bug-libgcrypt@gnupg.org>.
1676_ACEOF
1677ac_status=$?
1678fi
1679
1680if test "$ac_init_help" = "recursive"; then
1681  # If there are subdirs, report their specific --help.
1682  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1683    test -d "$ac_dir" ||
1684      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1685      continue
1686    ac_builddir=.
1687
1688case "$ac_dir" in
1689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690*)
1691  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1692  # A ".." for each directory in $ac_dir_suffix.
1693  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1694  case $ac_top_builddir_sub in
1695  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1697  esac ;;
1698esac
1699ac_abs_top_builddir=$ac_pwd
1700ac_abs_builddir=$ac_pwd$ac_dir_suffix
1701# for backward compatibility:
1702ac_top_builddir=$ac_top_build_prefix
1703
1704case $srcdir in
1705  .)  # We are building in place.
1706    ac_srcdir=.
1707    ac_top_srcdir=$ac_top_builddir_sub
1708    ac_abs_top_srcdir=$ac_pwd ;;
1709  [\\/]* | ?:[\\/]* )  # Absolute name.
1710    ac_srcdir=$srcdir$ac_dir_suffix;
1711    ac_top_srcdir=$srcdir
1712    ac_abs_top_srcdir=$srcdir ;;
1713  *) # Relative name.
1714    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1715    ac_top_srcdir=$ac_top_build_prefix$srcdir
1716    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717esac
1718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719
1720    cd "$ac_dir" || { ac_status=$?; continue; }
1721    # Check for guested configure.
1722    if test -f "$ac_srcdir/configure.gnu"; then
1723      echo &&
1724      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725    elif test -f "$ac_srcdir/configure"; then
1726      echo &&
1727      $SHELL "$ac_srcdir/configure" --help=recursive
1728    else
1729      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730    fi || ac_status=$?
1731    cd "$ac_pwd" || { ac_status=$?; break; }
1732  done
1733fi
1734
1735test -n "$ac_init_help" && exit $ac_status
1736if $ac_init_version; then
1737  cat <<\_ACEOF
1738libgcrypt configure 1.5.0
1739generated by GNU Autoconf 2.64
1740
1741Copyright (C) 2009 Free Software Foundation, Inc.
1742This configure script is free software; the Free Software Foundation
1743gives unlimited permission to copy, distribute and modify it.
1744_ACEOF
1745  exit
1746fi
1747
1748## ------------------------ ##
1749## Autoconf initialization. ##
1750## ------------------------ ##
1751
1752# ac_fn_c_try_compile LINENO
1753# --------------------------
1754# Try to compile conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  rm -f conftest.$ac_objext
1759  if { { ac_try="$ac_compile"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_compile") 2>conftest.err
1767  ac_status=$?
1768  if test -s conftest.err; then
1769    grep -v '^ *+' conftest.err >conftest.er1
1770    cat conftest.er1 >&5
1771    mv -f conftest.er1 conftest.err
1772  fi
1773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774  test $ac_status = 0; } && {
1775	 test -z "$ac_c_werror_flag" ||
1776	 test ! -s conftest.err
1777       } && test -s conftest.$ac_objext; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783	ac_retval=1
1784fi
1785  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786  return $ac_retval
1787
1788} # ac_fn_c_try_compile
1789
1790# ac_fn_c_try_cpp LINENO
1791# ----------------------
1792# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_c_try_cpp ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  if { { ac_try="$ac_cpp conftest.$ac_ext"
1797case "(($ac_try" in
1798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799  *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804  ac_status=$?
1805  if test -s conftest.err; then
1806    grep -v '^ *+' conftest.err >conftest.er1
1807    cat conftest.er1 >&5
1808    mv -f conftest.er1 conftest.err
1809  fi
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; } >/dev/null && {
1812	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1813	 test ! -s conftest.err
1814       }; then :
1815  ac_retval=0
1816else
1817  $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820    ac_retval=1
1821fi
1822  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823  return $ac_retval
1824
1825} # ac_fn_c_try_cpp
1826
1827# ac_fn_c_try_link LINENO
1828# -----------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_link ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  rm -f conftest.$ac_objext conftest$ac_exeext
1834  if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_link") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && {
1850	 test -z "$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       } && test -s conftest$ac_exeext && {
1853	 test "$cross_compiling" = yes ||
1854	 $as_test_x conftest$ac_exeext
1855       }; then :
1856  ac_retval=0
1857else
1858  $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861	ac_retval=1
1862fi
1863  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865  # interfere with the next link command; also delete a directory that is
1866  # left behind by Apple's compiler.  We do this before executing the actions.
1867  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869  return $ac_retval
1870
1871} # ac_fn_c_try_link
1872
1873# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874# -------------------------------------------------------
1875# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876# the include files in INCLUDES and setting the cache variable VAR
1877# accordingly.
1878ac_fn_c_check_header_mongrel ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885  $as_echo_n "(cached) " >&6
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890else
1891  # Is the header compilable?
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893$as_echo_n "checking $2 usability... " >&6; }
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897#include <$2>
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900  ac_header_compiler=yes
1901else
1902  ac_header_compiler=no
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906$as_echo "$ac_header_compiler" >&6; }
1907
1908# Is the header present?
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910$as_echo_n "checking $2 presence... " >&6; }
1911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_cpp "$LINENO"; then :
1916  ac_header_preproc=yes
1917else
1918  ac_header_preproc=no
1919fi
1920rm -f conftest.err conftest.$ac_ext
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922$as_echo "$ac_header_preproc" >&6; }
1923
1924# So?  What about this header?
1925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926  yes:no: )
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931    ;;
1932  no:yes:* )
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1936$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1940$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943( cat <<\_ASBOX
1944## -------------------------------------- ##
1945## Report this to bug-libgcrypt@gnupg.org ##
1946## -------------------------------------- ##
1947_ASBOX
1948     ) | sed "s/^/$as_me: WARNING:     /" >&2
1949    ;;
1950esac
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  eval "$3=\$ac_header_compiler"
1957fi
1958eval ac_res=\$$3
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961fi
1962  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964} # ac_fn_c_check_header_mongrel
1965
1966# ac_fn_c_try_run LINENO
1967# ----------------------
1968# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969# that executables *can* be run.
1970ac_fn_c_try_run ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  if { { ac_try="$ac_link"
1974case "(($ac_try" in
1975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976  *) ac_try_echo=$ac_try;;
1977esac
1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979$as_echo "$ac_try_echo"; } >&5
1980  (eval "$ac_link") 2>&5
1981  ac_status=$?
1982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984  { { case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_try") 2>&5
1991  ac_status=$?
1992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993  test $ac_status = 0; }; }; then :
1994  ac_retval=0
1995else
1996  $as_echo "$as_me: program exited with status $ac_status" >&5
1997       $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000       ac_retval=$ac_status
2001fi
2002  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004  return $ac_retval
2005
2006} # ac_fn_c_try_run
2007
2008# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009# -------------------------------------------------------
2010# Tests whether HEADER exists and can be compiled using the include files in
2011# INCLUDES, setting the cache variable VAR accordingly.
2012ac_fn_c_check_header_compile ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023#include <$2>
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  eval "$3=yes"
2027else
2028  eval "$3=no"
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037} # ac_fn_c_check_header_compile
2038
2039# ac_fn_c_check_func LINENO FUNC VAR
2040# ----------------------------------
2041# Tests whether FUNC exists, setting the cache variable VAR accordingly
2042ac_fn_c_check_func ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046$as_echo_n "checking for $2... " >&6; }
2047if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048  $as_echo_n "(cached) " >&6
2049else
2050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2054#define $2 innocuous_$2
2055
2056/* System header to define __stub macros and hopefully few prototypes,
2057    which can conflict with char $2 (); below.
2058    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059    <limits.h> exists even on freestanding compilers.  */
2060
2061#ifdef __STDC__
2062# include <limits.h>
2063#else
2064# include <assert.h>
2065#endif
2066
2067#undef $2
2068
2069/* Override any GCC internal prototype to avoid an error.
2070   Use char because int might match the return type of a GCC
2071   builtin and then its argument prototype would still apply.  */
2072#ifdef __cplusplus
2073extern "C"
2074#endif
2075char $2 ();
2076/* The GNU C library defines this for functions which it implements
2077    to always fail with ENOSYS.  Some functions are actually named
2078    something starting with __ and the normal name is an alias.  */
2079#if defined __stub_$2 || defined __stub___$2
2080choke me
2081#endif
2082
2083int
2084main ()
2085{
2086return $2 ();
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_link "$LINENO"; then :
2092  eval "$3=yes"
2093else
2094  eval "$3=no"
2095fi
2096rm -f core conftest.err conftest.$ac_objext \
2097    conftest$ac_exeext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
2102  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104} # ac_fn_c_check_func
2105
2106# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2107# --------------------------------------------
2108# Tries to find the compile-time value of EXPR in a program that includes
2109# INCLUDES, setting VAR accordingly. Returns whether the value could be
2110# computed
2111ac_fn_c_compute_int ()
2112{
2113  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114  if test "$cross_compiling" = yes; then
2115    # Depending upon the size, compute the lo and hi bounds.
2116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h.  */
2118$4
2119int
2120main ()
2121{
2122static int test_array [1 - 2 * !(($2) >= 0)];
2123test_array [0] = 0
2124
2125  ;
2126  return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130  ac_lo=0 ac_mid=0
2131  while :; do
2132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139test_array [0] = 0
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  ac_hi=$ac_mid; break
2147else
2148  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2149			if test $ac_lo -le $ac_mid; then
2150			  ac_lo= ac_hi=
2151			  break
2152			fi
2153			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156  done
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) < 0)];
2165test_array [0] = 0
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  ac_hi=-1 ac_mid=-1
2173  while :; do
2174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2181test_array [0] = 0
2182
2183  ;
2184  return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188  ac_lo=$ac_mid; break
2189else
2190  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2191			if test $ac_mid -le $ac_hi; then
2192			  ac_lo= ac_hi=
2193			  break
2194			fi
2195			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198  done
2199else
2200  ac_lo= ac_hi=
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205# Binary search between lo and hi bounds.
2206while test "x$ac_lo" != "x$ac_hi"; do
2207  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h.  */
2210$4
2211int
2212main ()
2213{
2214static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2215test_array [0] = 0
2216
2217  ;
2218  return 0;
2219}
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222  ac_hi=$ac_mid
2223else
2224  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227done
2228case $ac_lo in #((
2229?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2230'') ac_retval=1 ;;
2231esac
2232  else
2233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h.  */
2235$4
2236static long int longval () { return $2; }
2237static unsigned long int ulongval () { return $2; }
2238#include <stdio.h>
2239#include <stdlib.h>
2240int
2241main ()
2242{
2243
2244  FILE *f = fopen ("conftest.val", "w");
2245  if (! f)
2246    return 1;
2247  if (($2) < 0)
2248    {
2249      long int i = longval ();
2250      if (i != ($2))
2251	return 1;
2252      fprintf (f, "%ld", i);
2253    }
2254  else
2255    {
2256      unsigned long int i = ulongval ();
2257      if (i != ($2))
2258	return 1;
2259      fprintf (f, "%lu", i);
2260    }
2261  /* Do not output a trailing newline, as this causes \r\n confusion
2262     on some platforms.  */
2263  return ferror (f) || fclose (f) != 0;
2264
2265  ;
2266  return 0;
2267}
2268_ACEOF
2269if ac_fn_c_try_run "$LINENO"; then :
2270  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2271else
2272  ac_retval=1
2273fi
2274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2275  conftest.$ac_objext conftest.beam conftest.$ac_ext
2276rm -f conftest.val
2277
2278  fi
2279  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280  return $ac_retval
2281
2282} # ac_fn_c_compute_int
2283
2284# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2285# -------------------------------------------
2286# Tests whether TYPE exists after having included INCLUDES, setting cache
2287# variable VAR accordingly.
2288ac_fn_c_check_type ()
2289{
2290  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292$as_echo_n "checking for $2... " >&6; }
2293if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294  $as_echo_n "(cached) " >&6
2295else
2296  eval "$3=no"
2297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h.  */
2299$4
2300int
2301main ()
2302{
2303if (sizeof ($2))
2304	 return 0;
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309if ac_fn_c_try_compile "$LINENO"; then :
2310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h.  */
2312$4
2313int
2314main ()
2315{
2316if (sizeof (($2)))
2317	    return 0;
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323
2324else
2325  eval "$3=yes"
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331eval ac_res=\$$3
2332	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333$as_echo "$ac_res" >&6; }
2334  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335
2336} # ac_fn_c_check_type
2337
2338# ac_fn_c_check_decl LINENO SYMBOL VAR
2339# ------------------------------------
2340# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2341ac_fn_c_check_decl ()
2342{
2343  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2345$as_echo_n "checking whether $2 is declared... " >&6; }
2346if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347  $as_echo_n "(cached) " >&6
2348else
2349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350/* end confdefs.h.  */
2351$4
2352int
2353main ()
2354{
2355#ifndef $2
2356  (void) $2;
2357#endif
2358
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363if ac_fn_c_try_compile "$LINENO"; then :
2364  eval "$3=yes"
2365else
2366  eval "$3=no"
2367fi
2368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_decl
2376cat >config.log <<_ACEOF
2377This file contains any messages produced by compilers while
2378running configure, to aid debugging if configure makes a mistake.
2379
2380It was created by libgcrypt $as_me 1.5.0, which was
2381generated by GNU Autoconf 2.64.  Invocation command line was
2382
2383  $ $0 $@
2384
2385_ACEOF
2386exec 5>>config.log
2387{
2388cat <<_ASUNAME
2389## --------- ##
2390## Platform. ##
2391## --------- ##
2392
2393hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398
2399/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2400/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2401
2402/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2403/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2405/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2406/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2407/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2408/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2409
2410_ASUNAME
2411
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417    $as_echo "PATH: $as_dir"
2418  done
2419IFS=$as_save_IFS
2420
2421} >&5
2422
2423cat >&5 <<_ACEOF
2424
2425
2426## ----------- ##
2427## Core tests. ##
2428## ----------- ##
2429
2430_ACEOF
2431
2432
2433# Keep a trace of the command line.
2434# Strip out --no-create and --no-recursion so they do not pile up.
2435# Strip out --silent because we don't want to record it for future runs.
2436# Also quote any args containing shell meta-characters.
2437# Make two passes to allow for proper duplicate-argument suppression.
2438ac_configure_args=
2439ac_configure_args0=
2440ac_configure_args1=
2441ac_must_keep_next=false
2442for ac_pass in 1 2
2443do
2444  for ac_arg
2445  do
2446    case $ac_arg in
2447    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449    | -silent | --silent | --silen | --sile | --sil)
2450      continue ;;
2451    *\'*)
2452      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453    esac
2454    case $ac_pass in
2455    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456    2)
2457      as_fn_append ac_configure_args1 " '$ac_arg'"
2458      if test $ac_must_keep_next = true; then
2459	ac_must_keep_next=false # Got value, back to normal.
2460      else
2461	case $ac_arg in
2462	  *=* | --config-cache | -C | -disable-* | --disable-* \
2463	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2464	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2465	  | -with-* | --with-* | -without-* | --without-* | --x)
2466	    case "$ac_configure_args0 " in
2467	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2468	    esac
2469	    ;;
2470	  -* ) ac_must_keep_next=true ;;
2471	esac
2472      fi
2473      as_fn_append ac_configure_args " '$ac_arg'"
2474      ;;
2475    esac
2476  done
2477done
2478{ ac_configure_args0=; unset ac_configure_args0;}
2479{ ac_configure_args1=; unset ac_configure_args1;}
2480
2481# When interrupted or exit'd, cleanup temporary files, and complete
2482# config.log.  We remove comments because anyway the quotes in there
2483# would cause problems or look ugly.
2484# WARNING: Use '\'' to represent an apostrophe within the trap.
2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486trap 'exit_status=$?
2487  # Save into config.log some information that might help in debugging.
2488  {
2489    echo
2490
2491    cat <<\_ASBOX
2492## ---------------- ##
2493## Cache variables. ##
2494## ---------------- ##
2495_ASBOX
2496    echo
2497    # The following way of writing the cache mishandles newlines in values,
2498(
2499  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2500    eval ac_val=\$$ac_var
2501    case $ac_val in #(
2502    *${as_nl}*)
2503      case $ac_var in #(
2504      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2505$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2506      esac
2507      case $ac_var in #(
2508      _ | IFS | as_nl) ;; #(
2509      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2510      *) { eval $ac_var=; unset $ac_var;} ;;
2511      esac ;;
2512    esac
2513  done
2514  (set) 2>&1 |
2515    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2516    *${as_nl}ac_space=\ *)
2517      sed -n \
2518	"s/'\''/'\''\\\\'\'''\''/g;
2519	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2520      ;; #(
2521    *)
2522      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2523      ;;
2524    esac |
2525    sort
2526)
2527    echo
2528
2529    cat <<\_ASBOX
2530## ----------------- ##
2531## Output variables. ##
2532## ----------------- ##
2533_ASBOX
2534    echo
2535    for ac_var in $ac_subst_vars
2536    do
2537      eval ac_val=\$$ac_var
2538      case $ac_val in
2539      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540      esac
2541      $as_echo "$ac_var='\''$ac_val'\''"
2542    done | sort
2543    echo
2544
2545    if test -n "$ac_subst_files"; then
2546      cat <<\_ASBOX
2547## ------------------- ##
2548## File substitutions. ##
2549## ------------------- ##
2550_ASBOX
2551      echo
2552      for ac_var in $ac_subst_files
2553      do
2554	eval ac_val=\$$ac_var
2555	case $ac_val in
2556	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557	esac
2558	$as_echo "$ac_var='\''$ac_val'\''"
2559      done | sort
2560      echo
2561    fi
2562
2563    if test -s confdefs.h; then
2564      cat <<\_ASBOX
2565## ----------- ##
2566## confdefs.h. ##
2567## ----------- ##
2568_ASBOX
2569      echo
2570      cat confdefs.h
2571      echo
2572    fi
2573    test "$ac_signal" != 0 &&
2574      $as_echo "$as_me: caught signal $ac_signal"
2575    $as_echo "$as_me: exit $exit_status"
2576  } >&5
2577  rm -f core *.core core.conftest.* &&
2578    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2579    exit $exit_status
2580' 0
2581for ac_signal in 1 2 13 15; do
2582  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2583done
2584ac_signal=0
2585
2586# confdefs.h avoids OS command line length limits that DEFS can exceed.
2587rm -f -r conftest* confdefs.h
2588
2589$as_echo "/* confdefs.h */" > confdefs.h
2590
2591# Predefined preprocessor variables.
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_NAME "$PACKAGE_NAME"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_VERSION "$PACKAGE_VERSION"
2603_ACEOF
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_STRING "$PACKAGE_STRING"
2607_ACEOF
2608
2609cat >>confdefs.h <<_ACEOF
2610#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2611_ACEOF
2612
2613cat >>confdefs.h <<_ACEOF
2614#define PACKAGE_URL "$PACKAGE_URL"
2615_ACEOF
2616
2617
2618# Let the site file select an alternate cache file if it wants to.
2619# Prefer an explicitly selected file to automatically selected ones.
2620ac_site_file1=NONE
2621ac_site_file2=NONE
2622if test -n "$CONFIG_SITE"; then
2623  ac_site_file1=$CONFIG_SITE
2624elif test "x$prefix" != xNONE; then
2625  ac_site_file1=$prefix/share/config.site
2626  ac_site_file2=$prefix/etc/config.site
2627else
2628  ac_site_file1=$ac_default_prefix/share/config.site
2629  ac_site_file2=$ac_default_prefix/etc/config.site
2630fi
2631for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2632do
2633  test "x$ac_site_file" = xNONE && continue
2634  if test -r "$ac_site_file"; then
2635    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2636$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2637    sed 's/^/| /' "$ac_site_file" >&5
2638    . "$ac_site_file"
2639  fi
2640done
2641
2642if test -r "$cache_file"; then
2643  # Some versions of bash will fail to source /dev/null (special
2644  # files actually), so we avoid doing that.
2645  if test -f "$cache_file"; then
2646    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647$as_echo "$as_me: loading cache $cache_file" >&6;}
2648    case $cache_file in
2649      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650      *)                      . "./$cache_file";;
2651    esac
2652  fi
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655$as_echo "$as_me: creating cache $cache_file" >&6;}
2656  >$cache_file
2657fi
2658
2659# Check that the precious variables saved in the cache have kept the same
2660# value.
2661ac_cache_corrupted=false
2662for ac_var in $ac_precious_vars; do
2663  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2664  eval ac_new_set=\$ac_env_${ac_var}_set
2665  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2666  eval ac_new_val=\$ac_env_${ac_var}_value
2667  case $ac_old_set,$ac_new_set in
2668    set,)
2669      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2670$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2671      ac_cache_corrupted=: ;;
2672    ,set)
2673      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2674$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2675      ac_cache_corrupted=: ;;
2676    ,);;
2677    *)
2678      if test "x$ac_old_val" != "x$ac_new_val"; then
2679	# differences in whitespace do not lead to failure.
2680	ac_old_val_w=`echo x $ac_old_val`
2681	ac_new_val_w=`echo x $ac_new_val`
2682	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2683	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2684$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2685	  ac_cache_corrupted=:
2686	else
2687	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2688$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2689	  eval $ac_var=\$ac_old_val
2690	fi
2691	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2692$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2693	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2694$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2695      fi;;
2696  esac
2697  # Pass precious variables to config.status.
2698  if test "$ac_new_set" = set; then
2699    case $ac_new_val in
2700    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2701    *) ac_arg=$ac_var=$ac_new_val ;;
2702    esac
2703    case " $ac_configure_args " in
2704      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2705      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706    esac
2707  fi
2708done
2709if $ac_cache_corrupted; then
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2713$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2714  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2715fi
2716## -------------------- ##
2717## Main body of script. ##
2718## -------------------- ##
2719
2720ac_ext=c
2721ac_cpp='$CPP $CPPFLAGS'
2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
2726
2727# LT Version numbers, remember to change them just *before* a release.
2728#   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
2729#   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
2730#   (No interfaces changed:                   REVISION++)
2731LIBGCRYPT_LT_CURRENT=18
2732LIBGCRYPT_LT_AGE=7
2733LIBGCRYPT_LT_REVISION=0
2734
2735
2736# If the API is changed in an incompatible way: increment the next counter.
2737LIBGCRYPT_CONFIG_API_VERSION=1
2738
2739NEED_GPG_ERROR_VERSION=1.8
2740
2741is_development_version=no
2742
2743BUILD_REVISION=41756
2744PACKAGE=$PACKAGE_NAME
2745VERSION=$PACKAGE_VERSION
2746
2747
2748am__api_version='1.11'
2749
2750ac_aux_dir=
2751for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2752  for ac_t in install-sh install.sh shtool; do
2753    if test -f "$ac_dir/$ac_t"; then
2754      ac_aux_dir=$ac_dir
2755      ac_install_sh="$ac_aux_dir/$ac_t -c"
2756      break 2
2757    fi
2758  done
2759done
2760if test -z "$ac_aux_dir"; then
2761  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2762fi
2763
2764# These three variables are undocumented and unsupported,
2765# and are intended to be withdrawn in a future Autoconf release.
2766# They can cause serious problems if a builder's source tree is in a directory
2767# whose full name contains unusual characters.
2768ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2769ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2770ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2771
2772
2773# Find a good install program.  We prefer a C program (faster),
2774# so one script is as good as another.  But avoid the broken or
2775# incompatible versions:
2776# SysV /etc/install, /usr/sbin/install
2777# SunOS /usr/etc/install
2778# IRIX /sbin/install
2779# AIX /bin/install
2780# AmigaOS /C/install, which installs bootblocks on floppy discs
2781# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784# OS/2's system install, which has a completely different semantic
2785# ./install, which can be erroneously created by make from ./install.sh.
2786# Reject install programs that cannot install multiple files.
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788$as_echo_n "checking for a BSD-compatible install... " >&6; }
2789if test -z "$INSTALL"; then
2790if test "${ac_cv_path_install+set}" = set; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    # Account for people who put trailing slashes in PATH elements.
2799case $as_dir/ in #((
2800  ./ | .// | /[cC]/* | \
2801  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2802  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2803  /usr/ucb/* ) ;;
2804  *)
2805    # OSF1 and SCO ODT 3.0 have their own names for install.
2806    # Don't use installbsd from OSF since it installs stuff as root
2807    # by default.
2808    for ac_prog in ginstall scoinst install; do
2809      for ac_exec_ext in '' $ac_executable_extensions; do
2810	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2811	  if test $ac_prog = install &&
2812	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813	    # AIX install.  It has an incompatible calling convention.
2814	    :
2815	  elif test $ac_prog = install &&
2816	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817	    # program-specific install script used by HP pwplus--don't use.
2818	    :
2819	  else
2820	    rm -rf conftest.one conftest.two conftest.dir
2821	    echo one > conftest.one
2822	    echo two > conftest.two
2823	    mkdir conftest.dir
2824	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2825	      test -s conftest.one && test -s conftest.two &&
2826	      test -s conftest.dir/conftest.one &&
2827	      test -s conftest.dir/conftest.two
2828	    then
2829	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2830	      break 3
2831	    fi
2832	  fi
2833	fi
2834      done
2835    done
2836    ;;
2837esac
2838
2839  done
2840IFS=$as_save_IFS
2841
2842rm -rf conftest.one conftest.two conftest.dir
2843
2844fi
2845  if test "${ac_cv_path_install+set}" = set; then
2846    INSTALL=$ac_cv_path_install
2847  else
2848    # As a last resort, use the slow shell script.  Don't cache a
2849    # value for INSTALL within a source directory, because that will
2850    # break other packages using the cache if that directory is
2851    # removed, or if the value is a relative name.
2852    INSTALL=$ac_install_sh
2853  fi
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2856$as_echo "$INSTALL" >&6; }
2857
2858# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2859# It thinks the first close brace ends the variable substitution.
2860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861
2862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863
2864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2867$as_echo_n "checking whether build environment is sane... " >&6; }
2868# Just in case
2869sleep 1
2870echo timestamp > conftest.file
2871# Reject unsafe characters in $srcdir or the absolute working directory
2872# name.  Accept space and tab only in the latter.
2873am_lf='
2874'
2875case `pwd` in
2876  *[\\\"\#\$\&\'\`$am_lf]*)
2877    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2878esac
2879case $srcdir in
2880  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2881    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2882esac
2883
2884# Do `set' in a subshell so we don't clobber the current shell's
2885# arguments.  Must try -L first in case configure is actually a
2886# symlink; some systems play weird games with the mod time of symlinks
2887# (eg FreeBSD returns the mod time of the symlink's containing
2888# directory).
2889if (
2890   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2891   if test "$*" = "X"; then
2892      # -L didn't work.
2893      set X `ls -t "$srcdir/configure" conftest.file`
2894   fi
2895   rm -f conftest.file
2896   if test "$*" != "X $srcdir/configure conftest.file" \
2897      && test "$*" != "X conftest.file $srcdir/configure"; then
2898
2899      # If neither matched, then we have a broken ls.  This can happen
2900      # if, for instance, CONFIG_SHELL is bash and it inherits a
2901      # broken ls alias from the environment.  This has actually
2902      # happened.  Such a system could not be considered "sane".
2903      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2904alias in your environment" "$LINENO" 5
2905   fi
2906
2907   test "$2" = conftest.file
2908   )
2909then
2910   # Ok.
2911   :
2912else
2913   as_fn_error "newly created file is older than distributed files!
2914Check your system clock" "$LINENO" 5
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917$as_echo "yes" >&6; }
2918test "$program_prefix" != NONE &&
2919  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2920# Use a double $ so make ignores it.
2921test "$program_suffix" != NONE &&
2922  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2923# Double any \ or $.
2924# By default was `s,x,x', remove it if useless.
2925ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2926program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2927
2928# expand $ac_aux_dir to an absolute path
2929am_aux_dir=`cd $ac_aux_dir && pwd`
2930
2931if test x"${MISSING+set}" != xset; then
2932  case $am_aux_dir in
2933  *\ * | *\	*)
2934    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2935  *)
2936    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2937  esac
2938fi
2939# Use eval to expand $SHELL
2940if eval "$MISSING --run true"; then
2941  am_missing_run="$MISSING --run "
2942else
2943  am_missing_run=
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2945$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2946fi
2947
2948if test x"${install_sh}" != xset; then
2949  case $am_aux_dir in
2950  *\ * | *\	*)
2951    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2952  *)
2953    install_sh="\${SHELL} $am_aux_dir/install-sh"
2954  esac
2955fi
2956
2957# Installed binaries are usually stripped using `strip' when the user
2958# run `make install-strip'.  However `strip' might not be the right
2959# tool to use in cross-compilation environments, therefore Automake
2960# will honor the `STRIP' environment variable to overrule this program.
2961if test "$cross_compiling" != no; then
2962  if test -n "$ac_tool_prefix"; then
2963  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}strip; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if test "${ac_cv_prog_STRIP+set}" = set; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$STRIP"; then
2971  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990STRIP=$ac_cv_prog_STRIP
2991if test -n "$STRIP"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993$as_echo "$STRIP" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_STRIP"; then
3002  ac_ct_STRIP=$STRIP
3003  # Extract the first word of "strip", so it can be a program name with args.
3004set dummy strip; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$ac_ct_STRIP"; then
3011  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020    ac_cv_prog_ac_ct_STRIP="strip"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031if test -n "$ac_ct_STRIP"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033$as_echo "$ac_ct_STRIP" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039  if test "x$ac_ct_STRIP" = x; then
3040    STRIP=":"
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    STRIP=$ac_ct_STRIP
3049  fi
3050else
3051  STRIP="$ac_cv_prog_STRIP"
3052fi
3053
3054fi
3055INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3058$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3059if test -z "$MKDIR_P"; then
3060  if test "${ac_cv_path_mkdir+set}" = set; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    for ac_prog in mkdir gmkdir; do
3069	 for ac_exec_ext in '' $ac_executable_extensions; do
3070	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3071	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3072	     'mkdir (GNU coreutils) '* | \
3073	     'mkdir (coreutils) '* | \
3074	     'mkdir (fileutils) '4.1*)
3075	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3076	       break 3;;
3077	   esac
3078	 done
3079       done
3080  done
3081IFS=$as_save_IFS
3082
3083fi
3084
3085  if test "${ac_cv_path_mkdir+set}" = set; then
3086    MKDIR_P="$ac_cv_path_mkdir -p"
3087  else
3088    # As a last resort, use the slow shell script.  Don't cache a
3089    # value for MKDIR_P within a source directory, because that will
3090    # break other packages using the cache if that directory is
3091    # removed, or if the value is a relative name.
3092    test -d ./--version && rmdir ./--version
3093    MKDIR_P="$ac_install_sh -d"
3094  fi
3095fi
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3097$as_echo "$MKDIR_P" >&6; }
3098
3099mkdir_p="$MKDIR_P"
3100case $mkdir_p in
3101  [\\/$]* | ?:[\\/]*) ;;
3102  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3103esac
3104
3105for ac_prog in gawk mawk nawk awk
3106do
3107  # Extract the first word of "$ac_prog", so it can be a program name with args.
3108set dummy $ac_prog; ac_word=$2
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if test "${ac_cv_prog_AWK+set}" = set; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$AWK"; then
3115  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_exec_ext in '' $ac_executable_extensions; do
3123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124    ac_cv_prog_AWK="$ac_prog"
3125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129  done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134AWK=$ac_cv_prog_AWK
3135if test -n "$AWK"; then
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3137$as_echo "$AWK" >&6; }
3138else
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144  test -n "$AWK" && break
3145done
3146
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3148$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3149set x ${MAKE-make}
3150ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3151if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  cat >conftest.make <<\_ACEOF
3155SHELL = /bin/sh
3156all:
3157	@echo '@@@%%%=$(MAKE)=@@@%%%'
3158_ACEOF
3159# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3160case `${MAKE-make} -f conftest.make 2>/dev/null` in
3161  *@@@%%%=?*=@@@%%%*)
3162    eval ac_cv_prog_make_${ac_make}_set=yes;;
3163  *)
3164    eval ac_cv_prog_make_${ac_make}_set=no;;
3165esac
3166rm -f conftest.make
3167fi
3168if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170$as_echo "yes" >&6; }
3171  SET_MAKE=
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175  SET_MAKE="MAKE=${MAKE-make}"
3176fi
3177
3178rm -rf .tst 2>/dev/null
3179mkdir .tst 2>/dev/null
3180if test -d .tst; then
3181  am__leading_dot=.
3182else
3183  am__leading_dot=_
3184fi
3185rmdir .tst 2>/dev/null
3186
3187if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189  # is not polluted with repeated "-I."
3190  am__isrc=' -I$(srcdir)'
3191  # test to see if srcdir already configured
3192  if test -f $srcdir/config.status; then
3193    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194  fi
3195fi
3196
3197# test whether we have cygpath
3198if test -z "$CYGPATH_W"; then
3199  if (cygpath --version) >/dev/null 2>/dev/null; then
3200    CYGPATH_W='cygpath -w'
3201  else
3202    CYGPATH_W=echo
3203  fi
3204fi
3205
3206
3207# Define the identity of the package.
3208 PACKAGE='libgcrypt'
3209 VERSION='1.5.0'
3210
3211
3212cat >>confdefs.h <<_ACEOF
3213#define PACKAGE "$PACKAGE"
3214_ACEOF
3215
3216
3217cat >>confdefs.h <<_ACEOF
3218#define VERSION "$VERSION"
3219_ACEOF
3220
3221# Some tools Automake needs.
3222
3223ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224
3225
3226AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227
3228
3229AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230
3231
3232AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233
3234
3235MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3236
3237# We need awk for the "check" target.  The system "awk" is bad on
3238# some platforms.
3239# Always define AMTAR for backward compatibility.
3240
3241AMTAR=${AMTAR-"${am_missing_run}tar"}
3242
3243am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3244
3245
3246
3247
3248
3249ac_config_headers="$ac_config_headers config.h"
3250
3251
3252
3253# Make sure we can run config.sub.
3254$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3255  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3256
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3258$as_echo_n "checking build system type... " >&6; }
3259if test "${ac_cv_build+set}" = set; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  ac_build_alias=$build_alias
3263test "x$ac_build_alias" = x &&
3264  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3265test "x$ac_build_alias" = x &&
3266  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3267ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3268  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3269
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3272$as_echo "$ac_cv_build" >&6; }
3273case $ac_cv_build in
3274*-*-*) ;;
3275*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3276esac
3277build=$ac_cv_build
3278ac_save_IFS=$IFS; IFS='-'
3279set x $ac_cv_build
3280shift
3281build_cpu=$1
3282build_vendor=$2
3283shift; shift
3284# Remember, the first character of IFS is used to create $*,
3285# except with old shells:
3286build_os=$*
3287IFS=$ac_save_IFS
3288case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3289
3290
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3292$as_echo_n "checking host system type... " >&6; }
3293if test "${ac_cv_host+set}" = set; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test "x$host_alias" = x; then
3297  ac_cv_host=$ac_cv_build
3298else
3299  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3300    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3301fi
3302
3303fi
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3305$as_echo "$ac_cv_host" >&6; }
3306case $ac_cv_host in
3307*-*-*) ;;
3308*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3309esac
3310host=$ac_cv_host
3311ac_save_IFS=$IFS; IFS='-'
3312set x $ac_cv_host
3313shift
3314host_cpu=$1
3315host_vendor=$2
3316shift; shift
3317# Remember, the first character of IFS is used to create $*,
3318# except with old shells:
3319host_os=$*
3320IFS=$ac_save_IFS
3321case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3322
3323
3324
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3326$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3327    # Check whether --enable-maintainer-mode was given.
3328if test "${enable_maintainer_mode+set}" = set; then :
3329  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3330else
3331  USE_MAINTAINER_MODE=no
3332fi
3333
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3335$as_echo "$USE_MAINTAINER_MODE" >&6; }
3336   if test $USE_MAINTAINER_MODE = yes; then
3337  MAINTAINER_MODE_TRUE=
3338  MAINTAINER_MODE_FALSE='#'
3339else
3340  MAINTAINER_MODE_TRUE='#'
3341  MAINTAINER_MODE_FALSE=
3342fi
3343
3344  MAINT=$MAINTAINER_MODE_TRUE
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361cat >>confdefs.h <<_ACEOF
3362#define PACKAGE "$PACKAGE"
3363_ACEOF
3364
3365
3366cat >>confdefs.h <<_ACEOF
3367#define VERSION "$VERSION"
3368_ACEOF
3369
3370
3371
3372######################
3373##  Basic checks.  ### (we need some results later on (e.g. $GCC)
3374######################
3375
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3377$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3378set x ${MAKE-make}
3379ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3380if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  cat >conftest.make <<\_ACEOF
3384SHELL = /bin/sh
3385all:
3386	@echo '@@@%%%=$(MAKE)=@@@%%%'
3387_ACEOF
3388# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3389case `${MAKE-make} -f conftest.make 2>/dev/null` in
3390  *@@@%%%=?*=@@@%%%*)
3391    eval ac_cv_prog_make_${ac_make}_set=yes;;
3392  *)
3393    eval ac_cv_prog_make_${ac_make}_set=no;;
3394esac
3395rm -f conftest.make
3396fi
3397if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399$as_echo "yes" >&6; }
3400  SET_MAKE=
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404  SET_MAKE="MAKE=${MAKE-make}"
3405fi
3406
3407missing_dir=`cd $ac_aux_dir && pwd`
3408
3409ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
3410
3411
3412AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3413
3414
3415AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
3416
3417
3418AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3419
3420# AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
3421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426if test -n "$ac_tool_prefix"; then
3427  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3428set dummy ${ac_tool_prefix}gcc; ac_word=$2
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430$as_echo_n "checking for $ac_word... " >&6; }
3431if test "${ac_cv_prog_CC+set}" = set; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  if test -n "$CC"; then
3435  ac_cv_prog_CC="$CC" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  test -z "$as_dir" && as_dir=.
3442    for ac_exec_ext in '' $ac_executable_extensions; do
3443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446    break 2
3447  fi
3448done
3449  done
3450IFS=$as_save_IFS
3451
3452fi
3453fi
3454CC=$ac_cv_prog_CC
3455if test -n "$CC"; then
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457$as_echo "$CC" >&6; }
3458else
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460$as_echo "no" >&6; }
3461fi
3462
3463
3464fi
3465if test -z "$ac_cv_prog_CC"; then
3466  ac_ct_CC=$CC
3467  # Extract the first word of "gcc", so it can be a program name with args.
3468set dummy gcc; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  if test -n "$ac_ct_CC"; then
3475  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480  IFS=$as_save_IFS
3481  test -z "$as_dir" && as_dir=.
3482    for ac_exec_ext in '' $ac_executable_extensions; do
3483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484    ac_cv_prog_ac_ct_CC="gcc"
3485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486    break 2
3487  fi
3488done
3489  done
3490IFS=$as_save_IFS
3491
3492fi
3493fi
3494ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495if test -n "$ac_ct_CC"; then
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497$as_echo "$ac_ct_CC" >&6; }
3498else
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500$as_echo "no" >&6; }
3501fi
3502
3503  if test "x$ac_ct_CC" = x; then
3504    CC=""
3505  else
3506    case $cross_compiling:$ac_tool_warned in
3507yes:)
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510ac_tool_warned=yes ;;
3511esac
3512    CC=$ac_ct_CC
3513  fi
3514else
3515  CC="$ac_cv_prog_CC"
3516fi
3517
3518if test -z "$CC"; then
3519          if test -n "$ac_tool_prefix"; then
3520    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3521set dummy ${ac_tool_prefix}cc; ac_word=$2
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if test "${ac_cv_prog_CC+set}" = set; then :
3525  $as_echo_n "(cached) " >&6
3526else
3527  if test -n "$CC"; then
3528  ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535    for ac_exec_ext in '' $ac_executable_extensions; do
3536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537    ac_cv_prog_CC="${ac_tool_prefix}cc"
3538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539    break 2
3540  fi
3541done
3542  done
3543IFS=$as_save_IFS
3544
3545fi
3546fi
3547CC=$ac_cv_prog_CC
3548if test -n "$CC"; then
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550$as_echo "$CC" >&6; }
3551else
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
3554fi
3555
3556
3557  fi
3558fi
3559if test -z "$CC"; then
3560  # Extract the first word of "cc", so it can be a program name with args.
3561set dummy cc; ac_word=$2
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563$as_echo_n "checking for $ac_word... " >&6; }
3564if test "${ac_cv_prog_CC+set}" = set; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  if test -n "$CC"; then
3568  ac_cv_prog_CC="$CC" # Let the user override the test.
3569else
3570  ac_prog_rejected=no
3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH
3573do
3574  IFS=$as_save_IFS
3575  test -z "$as_dir" && as_dir=.
3576    for ac_exec_ext in '' $ac_executable_extensions; do
3577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3579       ac_prog_rejected=yes
3580       continue
3581     fi
3582    ac_cv_prog_CC="cc"
3583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584    break 2
3585  fi
3586done
3587  done
3588IFS=$as_save_IFS
3589
3590if test $ac_prog_rejected = yes; then
3591  # We found a bogon in the path, so make sure we never use it.
3592  set dummy $ac_cv_prog_CC
3593  shift
3594  if test $# != 0; then
3595    # We chose a different compiler from the bogus one.
3596    # However, it has the same basename, so the bogon will be chosen
3597    # first if we set CC to just the basename; use the full file name.
3598    shift
3599    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3600  fi
3601fi
3602fi
3603fi
3604CC=$ac_cv_prog_CC
3605if test -n "$CC"; then
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607$as_echo "$CC" >&6; }
3608else
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611fi
3612
3613
3614fi
3615if test -z "$CC"; then
3616  if test -n "$ac_tool_prefix"; then
3617  for ac_prog in cl.exe
3618  do
3619    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622$as_echo_n "checking for $ac_word... " >&6; }
3623if test "${ac_cv_prog_CC+set}" = set; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  if test -n "$CC"; then
3627  ac_cv_prog_CC="$CC" # Let the user override the test.
3628else
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH
3631do
3632  IFS=$as_save_IFS
3633  test -z "$as_dir" && as_dir=.
3634    for ac_exec_ext in '' $ac_executable_extensions; do
3635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3636    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638    break 2
3639  fi
3640done
3641  done
3642IFS=$as_save_IFS
3643
3644fi
3645fi
3646CC=$ac_cv_prog_CC
3647if test -n "$CC"; then
3648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649$as_echo "$CC" >&6; }
3650else
3651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652$as_echo "no" >&6; }
3653fi
3654
3655
3656    test -n "$CC" && break
3657  done
3658fi
3659if test -z "$CC"; then
3660  ac_ct_CC=$CC
3661  for ac_prog in cl.exe
3662do
3663  # Extract the first word of "$ac_prog", so it can be a program name with args.
3664set dummy $ac_prog; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  if test -n "$ac_ct_CC"; then
3671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  test -z "$as_dir" && as_dir=.
3678    for ac_exec_ext in '' $ac_executable_extensions; do
3679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680    ac_cv_prog_ac_ct_CC="$ac_prog"
3681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685  done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693$as_echo "$ac_ct_CC" >&6; }
3694else
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697fi
3698
3699
3700  test -n "$ac_ct_CC" && break
3701done
3702
3703  if test "x$ac_ct_CC" = x; then
3704    CC=""
3705  else
3706    case $cross_compiling:$ac_tool_warned in
3707yes:)
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710ac_tool_warned=yes ;;
3711esac
3712    CC=$ac_ct_CC
3713  fi
3714fi
3715
3716fi
3717
3718
3719test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721as_fn_error "no acceptable C compiler found in \$PATH
3722See \`config.log' for more details." "$LINENO" 5; }
3723
3724# Provide some information about the compiler.
3725$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3726set X $ac_compile
3727ac_compiler=$2
3728for ac_option in --version -v -V -qversion; do
3729  { { ac_try="$ac_compiler $ac_option >&5"
3730case "(($ac_try" in
3731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732  *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3737  ac_status=$?
3738  if test -s conftest.err; then
3739    sed '10a\
3740... rest of stderr output deleted ...
3741         10q' conftest.err >conftest.er1
3742    cat conftest.er1 >&5
3743    rm -f conftest.er1 conftest.err
3744  fi
3745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746  test $ac_status = 0; }
3747done
3748
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <stdio.h>
3752int
3753main ()
3754{
3755FILE *f = fopen ("conftest.out", "w");
3756 return ferror (f) || fclose (f) != 0;
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762ac_clean_files_save=$ac_clean_files
3763ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3764# Try to create an executable without -o first, disregard a.out.
3765# It will help us diagnose broken compilers, and finding out an intuition
3766# of exeext.
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3768$as_echo_n "checking for C compiler default output file name... " >&6; }
3769ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3770
3771# The possible output files:
3772ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3773
3774ac_rmfiles=
3775for ac_file in $ac_files
3776do
3777  case $ac_file in
3778    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3780  esac
3781done
3782rm -f $ac_rmfiles
3783
3784if { { ac_try="$ac_link_default"
3785case "(($ac_try" in
3786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787  *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790$as_echo "$ac_try_echo"; } >&5
3791  (eval "$ac_link_default") 2>&5
3792  ac_status=$?
3793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794  test $ac_status = 0; }; then :
3795  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3796# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3797# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3798# so that the user can short-circuit this test for compilers unknown to
3799# Autoconf.
3800for ac_file in $ac_files ''
3801do
3802  test -f "$ac_file" || continue
3803  case $ac_file in
3804    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3805	;;
3806    [ab].out )
3807	# We found the default executable, but exeext='' is most
3808	# certainly right.
3809	break;;
3810    *.* )
3811	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3812	then :; else
3813	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814	fi
3815	# We set ac_cv_exeext here because the later test for it is not
3816	# safe: cross compilers may not add the suffix if given an `-o'
3817	# argument, so we may need to know it at that point already.
3818	# Even if this section looks crufty: it has the advantage of
3819	# actually working.
3820	break;;
3821    * )
3822	break;;
3823  esac
3824done
3825test "$ac_cv_exeext" = no && ac_cv_exeext=
3826
3827else
3828  ac_file=''
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3831$as_echo "$ac_file" >&6; }
3832if test -z "$ac_file"; then :
3833  $as_echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838{ as_fn_set_status 77
3839as_fn_error "C compiler cannot create executables
3840See \`config.log' for more details." "$LINENO" 5; }; }
3841fi
3842ac_exeext=$ac_cv_exeext
3843
3844# Check that the compiler produces executables we can run.  If not, either
3845# the compiler is broken, or we cross compile.
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3847$as_echo_n "checking whether the C compiler works... " >&6; }
3848# If not cross compiling, check that we can run a simple program.
3849if test "$cross_compiling" != yes; then
3850  if { ac_try='./$ac_file'
3851  { { case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856$as_echo "$ac_try_echo"; } >&5
3857  (eval "$ac_try") 2>&5
3858  ac_status=$?
3859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860  test $ac_status = 0; }; }; then
3861    cross_compiling=no
3862  else
3863    if test "$cross_compiling" = maybe; then
3864	cross_compiling=yes
3865    else
3866	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868as_fn_error "cannot run C compiled programs.
3869If you meant to cross compile, use \`--host'.
3870See \`config.log' for more details." "$LINENO" 5; }
3871    fi
3872  fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875$as_echo "yes" >&6; }
3876
3877rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3878ac_clean_files=$ac_clean_files_save
3879# Check that the compiler produces executables we can run.  If not, either
3880# the compiler is broken, or we cross compile.
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3882$as_echo_n "checking whether we are cross compiling... " >&6; }
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3884$as_echo "$cross_compiling" >&6; }
3885
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3887$as_echo_n "checking for suffix of executables... " >&6; }
3888if { { ac_try="$ac_link"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895  (eval "$ac_link") 2>&5
3896  ac_status=$?
3897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898  test $ac_status = 0; }; then :
3899  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3900# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3901# work properly (i.e., refer to `conftest.exe'), while it won't with
3902# `rm'.
3903for ac_file in conftest.exe conftest conftest.*; do
3904  test -f "$ac_file" || continue
3905  case $ac_file in
3906    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3907    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3908	  break;;
3909    * ) break;;
3910  esac
3911done
3912else
3913  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915as_fn_error "cannot compute suffix of executables: cannot compile and link
3916See \`config.log' for more details." "$LINENO" 5; }
3917fi
3918rm -f conftest$ac_cv_exeext
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3920$as_echo "$ac_cv_exeext" >&6; }
3921
3922rm -f conftest.$ac_ext
3923EXEEXT=$ac_cv_exeext
3924ac_exeext=$EXEEXT
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3926$as_echo_n "checking for suffix of object files... " >&6; }
3927if test "${ac_cv_objext+set}" = set; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933int
3934main ()
3935{
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941rm -f conftest.o conftest.obj
3942if { { ac_try="$ac_compile"
3943case "(($ac_try" in
3944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945  *) ac_try_echo=$ac_try;;
3946esac
3947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948$as_echo "$ac_try_echo"; } >&5
3949  (eval "$ac_compile") 2>&5
3950  ac_status=$?
3951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952  test $ac_status = 0; }; then :
3953  for ac_file in conftest.o conftest.obj conftest.*; do
3954  test -f "$ac_file" || continue;
3955  case $ac_file in
3956    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3957    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3958       break;;
3959  esac
3960done
3961else
3962  $as_echo "$as_me: failed program was:" >&5
3963sed 's/^/| /' conftest.$ac_ext >&5
3964
3965{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967as_fn_error "cannot compute suffix of object files: cannot compile
3968See \`config.log' for more details." "$LINENO" 5; }
3969fi
3970rm -f conftest.$ac_cv_objext conftest.$ac_ext
3971fi
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3973$as_echo "$ac_cv_objext" >&6; }
3974OBJEXT=$ac_cv_objext
3975ac_objext=$OBJEXT
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3977$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3978if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983
3984int
3985main ()
3986{
3987#ifndef __GNUC__
3988       choke me
3989#endif
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then :
3996  ac_compiler_gnu=yes
3997else
3998  ac_compiler_gnu=no
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001ac_cv_c_compiler_gnu=$ac_compiler_gnu
4002
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4005$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4006if test $ac_compiler_gnu = yes; then
4007  GCC=yes
4008else
4009  GCC=
4010fi
4011ac_test_CFLAGS=${CFLAGS+set}
4012ac_save_CFLAGS=$CFLAGS
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4014$as_echo_n "checking whether $CC accepts -g... " >&6; }
4015if test "${ac_cv_prog_cc_g+set}" = set; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018  ac_save_c_werror_flag=$ac_c_werror_flag
4019   ac_c_werror_flag=yes
4020   ac_cv_prog_cc_g=no
4021   CFLAGS="-g"
4022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024
4025int
4026main ()
4027{
4028
4029  ;
4030  return 0;
4031}
4032_ACEOF
4033if ac_fn_c_try_compile "$LINENO"; then :
4034  ac_cv_prog_cc_g=yes
4035else
4036  CFLAGS=""
4037      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039
4040int
4041main ()
4042{
4043
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"; then :
4049
4050else
4051  ac_c_werror_flag=$ac_save_c_werror_flag
4052	 CFLAGS="-g"
4053	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055
4056int
4057main ()
4058{
4059
4060  ;
4061  return 0;
4062}
4063_ACEOF
4064if ac_fn_c_try_compile "$LINENO"; then :
4065  ac_cv_prog_cc_g=yes
4066fi
4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068fi
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072   ac_c_werror_flag=$ac_save_c_werror_flag
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4075$as_echo "$ac_cv_prog_cc_g" >&6; }
4076if test "$ac_test_CFLAGS" = set; then
4077  CFLAGS=$ac_save_CFLAGS
4078elif test $ac_cv_prog_cc_g = yes; then
4079  if test "$GCC" = yes; then
4080    CFLAGS="-g -O2"
4081  else
4082    CFLAGS="-g"
4083  fi
4084else
4085  if test "$GCC" = yes; then
4086    CFLAGS="-O2"
4087  else
4088    CFLAGS=
4089  fi
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4092$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4093if test "${ac_cv_prog_cc_c89+set}" = set; then :
4094  $as_echo_n "(cached) " >&6
4095else
4096  ac_cv_prog_cc_c89=no
4097ac_save_CC=$CC
4098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100#include <stdarg.h>
4101#include <stdio.h>
4102#include <sys/types.h>
4103#include <sys/stat.h>
4104/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4105struct buf { int x; };
4106FILE * (*rcsopen) (struct buf *, struct stat *, int);
4107static char *e (p, i)
4108     char **p;
4109     int i;
4110{
4111  return p[i];
4112}
4113static char *f (char * (*g) (char **, int), char **p, ...)
4114{
4115  char *s;
4116  va_list v;
4117  va_start (v,p);
4118  s = g (p, va_arg (v,int));
4119  va_end (v);
4120  return s;
4121}
4122
4123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4124   function prototypes and stuff, but not '\xHH' hex character constants.
4125   These don't provoke an error unfortunately, instead are silently treated
4126   as 'x'.  The following induces an error, until -std is added to get
4127   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4128   array size at least.  It's necessary to write '\x00'==0 to get something
4129   that's true only with -std.  */
4130int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4131
4132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4133   inside strings and character constants.  */
4134#define FOO(x) 'x'
4135int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4136
4137int test (int i, double x);
4138struct s1 {int (*f) (int a);};
4139struct s2 {int (*f) (double a);};
4140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141int argc;
4142char **argv;
4143int
4144main ()
4145{
4146return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4147  ;
4148  return 0;
4149}
4150_ACEOF
4151for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4152	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4153do
4154  CC="$ac_save_CC $ac_arg"
4155  if ac_fn_c_try_compile "$LINENO"; then :
4156  ac_cv_prog_cc_c89=$ac_arg
4157fi
4158rm -f core conftest.err conftest.$ac_objext
4159  test "x$ac_cv_prog_cc_c89" != "xno" && break
4160done
4161rm -f conftest.$ac_ext
4162CC=$ac_save_CC
4163
4164fi
4165# AC_CACHE_VAL
4166case "x$ac_cv_prog_cc_c89" in
4167  x)
4168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169$as_echo "none needed" >&6; } ;;
4170  xno)
4171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172$as_echo "unsupported" >&6; } ;;
4173  *)
4174    CC="$CC $ac_cv_prog_cc_c89"
4175    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4177esac
4178if test "x$ac_cv_prog_cc_c89" != xno; then :
4179
4180fi
4181
4182ac_ext=c
4183ac_cpp='$CPP $CPPFLAGS'
4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187DEPDIR="${am__leading_dot}deps"
4188
4189ac_config_commands="$ac_config_commands depfiles"
4190
4191
4192am_make=${MAKE-make}
4193cat > confinc << 'END'
4194am__doit:
4195	@echo this is the am__doit target
4196.PHONY: am__doit
4197END
4198# If we don't find an include directive, just comment out the code.
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4200$as_echo_n "checking for style of include used by $am_make... " >&6; }
4201am__include="#"
4202am__quote=
4203_am_result=none
4204# First try GNU make style include.
4205echo "include confinc" > confmf
4206# Ignore all kinds of additional output from `make'.
4207case `$am_make -s -f confmf 2> /dev/null` in #(
4208*the\ am__doit\ target*)
4209  am__include=include
4210  am__quote=
4211  _am_result=GNU
4212  ;;
4213esac
4214# Now try BSD make style include.
4215if test "$am__include" = "#"; then
4216   echo '.include "confinc"' > confmf
4217   case `$am_make -s -f confmf 2> /dev/null` in #(
4218   *the\ am__doit\ target*)
4219     am__include=.include
4220     am__quote="\""
4221     _am_result=BSD
4222     ;;
4223   esac
4224fi
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4228$as_echo "$_am_result" >&6; }
4229rm -f confinc confmf
4230
4231# Check whether --enable-dependency-tracking was given.
4232if test "${enable_dependency_tracking+set}" = set; then :
4233  enableval=$enable_dependency_tracking;
4234fi
4235
4236if test "x$enable_dependency_tracking" != xno; then
4237  am_depcomp="$ac_aux_dir/depcomp"
4238  AMDEPBACKSLASH='\'
4239fi
4240 if test "x$enable_dependency_tracking" != xno; then
4241  AMDEP_TRUE=
4242  AMDEP_FALSE='#'
4243else
4244  AMDEP_TRUE='#'
4245  AMDEP_FALSE=
4246fi
4247
4248
4249
4250depcc="$CC"   am_compiler_list=
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4253$as_echo_n "checking dependency style of $depcc... " >&6; }
4254if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4255  $as_echo_n "(cached) " >&6
4256else
4257  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4258  # We make a subdir and do the tests there.  Otherwise we can end up
4259  # making bogus files that we don't know about and never remove.  For
4260  # instance it was reported that on HP-UX the gcc test will end up
4261  # making a dummy file named `D' -- because `-MD' means `put the output
4262  # in D'.
4263  mkdir conftest.dir
4264  # Copy depcomp to subdir because otherwise we won't find it if we're
4265  # using a relative directory.
4266  cp "$am_depcomp" conftest.dir
4267  cd conftest.dir
4268  # We will build objects and dependencies in a subdirectory because
4269  # it helps to detect inapplicable dependency modes.  For instance
4270  # both Tru64's cc and ICC support -MD to output dependencies as a
4271  # side effect of compilation, but ICC will put the dependencies in
4272  # the current directory while Tru64 will put them in the object
4273  # directory.
4274  mkdir sub
4275
4276  am_cv_CC_dependencies_compiler_type=none
4277  if test "$am_compiler_list" = ""; then
4278     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4279  fi
4280  am__universal=false
4281  case " $depcc " in #(
4282     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4283     esac
4284
4285  for depmode in $am_compiler_list; do
4286    # Setup a source with many dependencies, because some compilers
4287    # like to wrap large dependency lists on column 80 (with \), and
4288    # we should not choose a depcomp mode which is confused by this.
4289    #
4290    # We need to recreate these files for each test, as the compiler may
4291    # overwrite some of them when testing with obscure command lines.
4292    # This happens at least with the AIX C compiler.
4293    : > sub/conftest.c
4294    for i in 1 2 3 4 5 6; do
4295      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4296      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4297      # Solaris 8's {/usr,}/bin/sh.
4298      touch sub/conftst$i.h
4299    done
4300    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4301
4302    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4303    # mode.  It turns out that the SunPro C++ compiler does not properly
4304    # handle `-M -o', and we need to detect this.  Also, some Intel
4305    # versions had trouble with output in subdirs
4306    am__obj=sub/conftest.${OBJEXT-o}
4307    am__minus_obj="-o $am__obj"
4308    case $depmode in
4309    gcc)
4310      # This depmode causes a compiler race in universal mode.
4311      test "$am__universal" = false || continue
4312      ;;
4313    nosideeffect)
4314      # after this tag, mechanisms are not by side-effect, so they'll
4315      # only be used when explicitly requested
4316      if test "x$enable_dependency_tracking" = xyes; then
4317	continue
4318      else
4319	break
4320      fi
4321      ;;
4322    msvisualcpp | msvcmsys)
4323      # This compiler won't grok `-c -o', but also, the minuso test has
4324      # not run yet.  These depmodes are late enough in the game, and
4325      # so weak that their functioning should not be impacted.
4326      am__obj=conftest.${OBJEXT-o}
4327      am__minus_obj=
4328      ;;
4329    none) break ;;
4330    esac
4331    if depmode=$depmode \
4332       source=sub/conftest.c object=$am__obj \
4333       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4334       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4335         >/dev/null 2>conftest.err &&
4336       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4337       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4338       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4339       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4340      # icc doesn't choke on unknown options, it will just issue warnings
4341      # or remarks (even with -Werror).  So we grep stderr for any message
4342      # that says an option was ignored or not supported.
4343      # When given -MP, icc 7.0 and 7.1 complain thusly:
4344      #   icc: Command line warning: ignoring option '-M'; no argument required
4345      # The diagnosis changed in icc 8.0:
4346      #   icc: Command line remark: option '-MP' not supported
4347      if (grep 'ignoring option' conftest.err ||
4348          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4349        am_cv_CC_dependencies_compiler_type=$depmode
4350        break
4351      fi
4352    fi
4353  done
4354
4355  cd ..
4356  rm -rf conftest.dir
4357else
4358  am_cv_CC_dependencies_compiler_type=none
4359fi
4360
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4363$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4364CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4365
4366 if
4367  test "x$enable_dependency_tracking" != xno \
4368  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4369  am__fastdepCC_TRUE=
4370  am__fastdepCC_FALSE='#'
4371else
4372  am__fastdepCC_TRUE='#'
4373  am__fastdepCC_FALSE=
4374fi
4375
4376
4377ac_ext=c
4378ac_cpp='$CPP $CPPFLAGS'
4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4383$as_echo_n "checking how to run the C preprocessor... " >&6; }
4384# On Suns, sometimes $CPP names a directory.
4385if test -n "$CPP" && test -d "$CPP"; then
4386  CPP=
4387fi
4388if test -z "$CPP"; then
4389  if test "${ac_cv_prog_CPP+set}" = set; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392      # Double quotes because CPP needs to be expanded
4393    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4394    do
4395      ac_preproc_ok=false
4396for ac_c_preproc_warn_flag in '' yes
4397do
4398  # Use a header file that comes with gcc, so configuring glibc
4399  # with a fresh cross-compiler works.
4400  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401  # <limits.h> exists even on freestanding compilers.
4402  # On the NeXT, cc -E runs the code through the compiler's parser,
4403  # not just through cpp. "Syntax error" is here to catch this case.
4404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h.  */
4406#ifdef __STDC__
4407# include <limits.h>
4408#else
4409# include <assert.h>
4410#endif
4411		     Syntax error
4412_ACEOF
4413if ac_fn_c_try_cpp "$LINENO"; then :
4414
4415else
4416  # Broken: fails on valid input.
4417continue
4418fi
4419rm -f conftest.err conftest.$ac_ext
4420
4421  # OK, works on sane cases.  Now check whether nonexistent headers
4422  # can be detected and how.
4423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#include <ac_nonexistent.h>
4426_ACEOF
4427if ac_fn_c_try_cpp "$LINENO"; then :
4428  # Broken: success on invalid input.
4429continue
4430else
4431  # Passes both tests.
4432ac_preproc_ok=:
4433break
4434fi
4435rm -f conftest.err conftest.$ac_ext
4436
4437done
4438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439rm -f conftest.err conftest.$ac_ext
4440if $ac_preproc_ok; then :
4441  break
4442fi
4443
4444    done
4445    ac_cv_prog_CPP=$CPP
4446
4447fi
4448  CPP=$ac_cv_prog_CPP
4449else
4450  ac_cv_prog_CPP=$CPP
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4453$as_echo "$CPP" >&6; }
4454ac_preproc_ok=false
4455for ac_c_preproc_warn_flag in '' yes
4456do
4457  # Use a header file that comes with gcc, so configuring glibc
4458  # with a fresh cross-compiler works.
4459  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460  # <limits.h> exists even on freestanding compilers.
4461  # On the NeXT, cc -E runs the code through the compiler's parser,
4462  # not just through cpp. "Syntax error" is here to catch this case.
4463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h.  */
4465#ifdef __STDC__
4466# include <limits.h>
4467#else
4468# include <assert.h>
4469#endif
4470		     Syntax error
4471_ACEOF
4472if ac_fn_c_try_cpp "$LINENO"; then :
4473
4474else
4475  # Broken: fails on valid input.
4476continue
4477fi
4478rm -f conftest.err conftest.$ac_ext
4479
4480  # OK, works on sane cases.  Now check whether nonexistent headers
4481  # can be detected and how.
4482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h.  */
4484#include <ac_nonexistent.h>
4485_ACEOF
4486if ac_fn_c_try_cpp "$LINENO"; then :
4487  # Broken: success on invalid input.
4488continue
4489else
4490  # Passes both tests.
4491ac_preproc_ok=:
4492break
4493fi
4494rm -f conftest.err conftest.$ac_ext
4495
4496done
4497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498rm -f conftest.err conftest.$ac_ext
4499if $ac_preproc_ok; then :
4500
4501else
4502  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504as_fn_error "C preprocessor \"$CPP\" fails sanity check
4505See \`config.log' for more details." "$LINENO" 5; }
4506fi
4507
4508ac_ext=c
4509ac_cpp='$CPP $CPPFLAGS'
4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514if test "x$CC" != xcc; then
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4516$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4519$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4520fi
4521set dummy $CC; ac_cc=`$as_echo "$2" |
4522		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4523if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528
4529int
4530main ()
4531{
4532
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537# Make sure it works both with $CC and with simple cc.
4538# We do the test twice because some compilers refuse to overwrite an
4539# existing .o file with -o, though they will create one.
4540ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4541rm -f conftest2.*
4542if { { case "(($ac_try" in
4543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544  *) ac_try_echo=$ac_try;;
4545esac
4546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547$as_echo "$ac_try_echo"; } >&5
4548  (eval "$ac_try") 2>&5
4549  ac_status=$?
4550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551  test $ac_status = 0; } &&
4552   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554  *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557$as_echo "$ac_try_echo"; } >&5
4558  (eval "$ac_try") 2>&5
4559  ac_status=$?
4560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561  test $ac_status = 0; };
4562then
4563  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4564  if test "x$CC" != xcc; then
4565    # Test first that cc exists at all.
4566    if { ac_try='cc -c conftest.$ac_ext >&5'
4567  { { case "(($ac_try" in
4568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569  *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572$as_echo "$ac_try_echo"; } >&5
4573  (eval "$ac_try") 2>&5
4574  ac_status=$?
4575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576  test $ac_status = 0; }; }; then
4577      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4578      rm -f conftest2.*
4579      if { { case "(($ac_try" in
4580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581  *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585  (eval "$ac_try") 2>&5
4586  ac_status=$?
4587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588  test $ac_status = 0; } &&
4589	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591  *) ac_try_echo=$ac_try;;
4592esac
4593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594$as_echo "$ac_try_echo"; } >&5
4595  (eval "$ac_try") 2>&5
4596  ac_status=$?
4597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598  test $ac_status = 0; };
4599      then
4600	# cc works too.
4601	:
4602      else
4603	# cc exists but doesn't like -o.
4604	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4605      fi
4606    fi
4607  fi
4608else
4609  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4610fi
4611rm -f core conftest*
4612
4613fi
4614if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616$as_echo "yes" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620
4621$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4622
4623fi
4624
4625# FIXME: we rely on the cache variable name because
4626# there is no other way.
4627set dummy $CC
4628am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4629eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4630if test "$am_t" != yes; then
4631   # Losing compiler, so override with the script.
4632   # FIXME: It is wrong to rewrite CC.
4633   # But if we don't then we get into trouble of one sort or another.
4634   # A longer-term fix would be to have automake use am__CC in this case,
4635   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4636   CC="$am_aux_dir/compile $CC"
4637fi
4638
4639
4640# By default we simply use the C compiler to build assembly code.
4641
4642test "${CCAS+set}" = set || CCAS=$CC
4643test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4644
4645
4646
4647depcc="$CCAS"   am_compiler_list=
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4650$as_echo_n "checking dependency style of $depcc... " >&6; }
4651if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4655  # We make a subdir and do the tests there.  Otherwise we can end up
4656  # making bogus files that we don't know about and never remove.  For
4657  # instance it was reported that on HP-UX the gcc test will end up
4658  # making a dummy file named `D' -- because `-MD' means `put the output
4659  # in D'.
4660  mkdir conftest.dir
4661  # Copy depcomp to subdir because otherwise we won't find it if we're
4662  # using a relative directory.
4663  cp "$am_depcomp" conftest.dir
4664  cd conftest.dir
4665  # We will build objects and dependencies in a subdirectory because
4666  # it helps to detect inapplicable dependency modes.  For instance
4667  # both Tru64's cc and ICC support -MD to output dependencies as a
4668  # side effect of compilation, but ICC will put the dependencies in
4669  # the current directory while Tru64 will put them in the object
4670  # directory.
4671  mkdir sub
4672
4673  am_cv_CCAS_dependencies_compiler_type=none
4674  if test "$am_compiler_list" = ""; then
4675     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4676  fi
4677  am__universal=false
4678
4679
4680  for depmode in $am_compiler_list; do
4681    # Setup a source with many dependencies, because some compilers
4682    # like to wrap large dependency lists on column 80 (with \), and
4683    # we should not choose a depcomp mode which is confused by this.
4684    #
4685    # We need to recreate these files for each test, as the compiler may
4686    # overwrite some of them when testing with obscure command lines.
4687    # This happens at least with the AIX C compiler.
4688    : > sub/conftest.c
4689    for i in 1 2 3 4 5 6; do
4690      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4691      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4692      # Solaris 8's {/usr,}/bin/sh.
4693      touch sub/conftst$i.h
4694    done
4695    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4696
4697    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4698    # mode.  It turns out that the SunPro C++ compiler does not properly
4699    # handle `-M -o', and we need to detect this.  Also, some Intel
4700    # versions had trouble with output in subdirs
4701    am__obj=sub/conftest.${OBJEXT-o}
4702    am__minus_obj="-o $am__obj"
4703    case $depmode in
4704    gcc)
4705      # This depmode causes a compiler race in universal mode.
4706      test "$am__universal" = false || continue
4707      ;;
4708    nosideeffect)
4709      # after this tag, mechanisms are not by side-effect, so they'll
4710      # only be used when explicitly requested
4711      if test "x$enable_dependency_tracking" = xyes; then
4712	continue
4713      else
4714	break
4715      fi
4716      ;;
4717    msvisualcpp | msvcmsys)
4718      # This compiler won't grok `-c -o', but also, the minuso test has
4719      # not run yet.  These depmodes are late enough in the game, and
4720      # so weak that their functioning should not be impacted.
4721      am__obj=conftest.${OBJEXT-o}
4722      am__minus_obj=
4723      ;;
4724    none) break ;;
4725    esac
4726    if depmode=$depmode \
4727       source=sub/conftest.c object=$am__obj \
4728       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4729       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4730         >/dev/null 2>conftest.err &&
4731       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4732       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4733       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4734       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4735      # icc doesn't choke on unknown options, it will just issue warnings
4736      # or remarks (even with -Werror).  So we grep stderr for any message
4737      # that says an option was ignored or not supported.
4738      # When given -MP, icc 7.0 and 7.1 complain thusly:
4739      #   icc: Command line warning: ignoring option '-M'; no argument required
4740      # The diagnosis changed in icc 8.0:
4741      #   icc: Command line remark: option '-MP' not supported
4742      if (grep 'ignoring option' conftest.err ||
4743          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4744        am_cv_CCAS_dependencies_compiler_type=$depmode
4745        break
4746      fi
4747    fi
4748  done
4749
4750  cd ..
4751  rm -rf conftest.dir
4752else
4753  am_cv_CCAS_dependencies_compiler_type=none
4754fi
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4758$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4759CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4760
4761 if
4762  test "x$enable_dependency_tracking" != xno \
4763  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4764  am__fastdepCCAS_TRUE=
4765  am__fastdepCCAS_FALSE='#'
4766else
4767  am__fastdepCCAS_TRUE='#'
4768  am__fastdepCCAS_FALSE=
4769fi
4770
4771
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4774$as_echo_n "checking for library containing strerror... " >&6; }
4775if test "${ac_cv_search_strerror+set}" = set; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  ac_func_search_save_LIBS=$LIBS
4779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781
4782/* Override any GCC internal prototype to avoid an error.
4783   Use char because int might match the return type of a GCC
4784   builtin and then its argument prototype would still apply.  */
4785#ifdef __cplusplus
4786extern "C"
4787#endif
4788char strerror ();
4789int
4790main ()
4791{
4792return strerror ();
4793  ;
4794  return 0;
4795}
4796_ACEOF
4797for ac_lib in '' cposix; do
4798  if test -z "$ac_lib"; then
4799    ac_res="none required"
4800  else
4801    ac_res=-l$ac_lib
4802    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4803  fi
4804  if ac_fn_c_try_link "$LINENO"; then :
4805  ac_cv_search_strerror=$ac_res
4806fi
4807rm -f core conftest.err conftest.$ac_objext \
4808    conftest$ac_exeext
4809  if test "${ac_cv_search_strerror+set}" = set; then :
4810  break
4811fi
4812done
4813if test "${ac_cv_search_strerror+set}" = set; then :
4814
4815else
4816  ac_cv_search_strerror=no
4817fi
4818rm conftest.$ac_ext
4819LIBS=$ac_func_search_save_LIBS
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4822$as_echo "$ac_cv_search_strerror" >&6; }
4823ac_res=$ac_cv_search_strerror
4824if test "$ac_res" != no; then :
4825  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4826
4827fi
4828
4829
4830for ac_prog in gawk mawk nawk awk
4831do
4832  # Extract the first word of "$ac_prog", so it can be a program name with args.
4833set dummy $ac_prog; ac_word=$2
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_AWK+set}" = set; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839  if test -n "$AWK"; then
4840  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845  IFS=$as_save_IFS
4846  test -z "$as_dir" && as_dir=.
4847    for ac_exec_ext in '' $ac_executable_extensions; do
4848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849    ac_cv_prog_AWK="$ac_prog"
4850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851    break 2
4852  fi
4853done
4854  done
4855IFS=$as_save_IFS
4856
4857fi
4858fi
4859AWK=$ac_cv_prog_AWK
4860if test -n "$AWK"; then
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4862$as_echo "$AWK" >&6; }
4863else
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
4867
4868
4869  test -n "$AWK" && break
4870done
4871
4872
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4875$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4876if test "${ac_cv_path_GREP+set}" = set; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  if test -z "$GREP"; then
4880  ac_path_GREP_found=false
4881  # Loop through the user's path and test for each of PROGNAME-LIST
4882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884do
4885  IFS=$as_save_IFS
4886  test -z "$as_dir" && as_dir=.
4887    for ac_prog in grep ggrep; do
4888    for ac_exec_ext in '' $ac_executable_extensions; do
4889      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4890      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4891# Check for GNU ac_path_GREP and select it if it is found.
4892  # Check for GNU $ac_path_GREP
4893case `"$ac_path_GREP" --version 2>&1` in
4894*GNU*)
4895  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4896*)
4897  ac_count=0
4898  $as_echo_n 0123456789 >"conftest.in"
4899  while :
4900  do
4901    cat "conftest.in" "conftest.in" >"conftest.tmp"
4902    mv "conftest.tmp" "conftest.in"
4903    cp "conftest.in" "conftest.nl"
4904    $as_echo 'GREP' >> "conftest.nl"
4905    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4906    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4907    as_fn_arith $ac_count + 1 && ac_count=$as_val
4908    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4909      # Best one so far, save it but keep looking for a better one
4910      ac_cv_path_GREP="$ac_path_GREP"
4911      ac_path_GREP_max=$ac_count
4912    fi
4913    # 10*(2^10) chars as input seems more than enough
4914    test $ac_count -gt 10 && break
4915  done
4916  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4917esac
4918
4919      $ac_path_GREP_found && break 3
4920    done
4921  done
4922  done
4923IFS=$as_save_IFS
4924  if test -z "$ac_cv_path_GREP"; then
4925    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4926  fi
4927else
4928  ac_cv_path_GREP=$GREP
4929fi
4930
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4933$as_echo "$ac_cv_path_GREP" >&6; }
4934 GREP="$ac_cv_path_GREP"
4935
4936
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4938$as_echo_n "checking for egrep... " >&6; }
4939if test "${ac_cv_path_EGREP+set}" = set; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4943   then ac_cv_path_EGREP="$GREP -E"
4944   else
4945     if test -z "$EGREP"; then
4946  ac_path_EGREP_found=false
4947  # Loop through the user's path and test for each of PROGNAME-LIST
4948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953    for ac_prog in egrep; do
4954    for ac_exec_ext in '' $ac_executable_extensions; do
4955      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4956      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4957# Check for GNU ac_path_EGREP and select it if it is found.
4958  # Check for GNU $ac_path_EGREP
4959case `"$ac_path_EGREP" --version 2>&1` in
4960*GNU*)
4961  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4962*)
4963  ac_count=0
4964  $as_echo_n 0123456789 >"conftest.in"
4965  while :
4966  do
4967    cat "conftest.in" "conftest.in" >"conftest.tmp"
4968    mv "conftest.tmp" "conftest.in"
4969    cp "conftest.in" "conftest.nl"
4970    $as_echo 'EGREP' >> "conftest.nl"
4971    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973    as_fn_arith $ac_count + 1 && ac_count=$as_val
4974    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4975      # Best one so far, save it but keep looking for a better one
4976      ac_cv_path_EGREP="$ac_path_EGREP"
4977      ac_path_EGREP_max=$ac_count
4978    fi
4979    # 10*(2^10) chars as input seems more than enough
4980    test $ac_count -gt 10 && break
4981  done
4982  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983esac
4984
4985      $ac_path_EGREP_found && break 3
4986    done
4987  done
4988  done
4989IFS=$as_save_IFS
4990  if test -z "$ac_cv_path_EGREP"; then
4991    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4992  fi
4993else
4994  ac_cv_path_EGREP=$EGREP
4995fi
4996
4997   fi
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5000$as_echo "$ac_cv_path_EGREP" >&6; }
5001 EGREP="$ac_cv_path_EGREP"
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5005$as_echo_n "checking for ANSI C header files... " >&6; }
5006if test "${ac_cv_header_stdc+set}" = set; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011#include <stdlib.h>
5012#include <stdarg.h>
5013#include <string.h>
5014#include <float.h>
5015
5016int
5017main ()
5018{
5019
5020  ;
5021  return 0;
5022}
5023_ACEOF
5024if ac_fn_c_try_compile "$LINENO"; then :
5025  ac_cv_header_stdc=yes
5026else
5027  ac_cv_header_stdc=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031if test $ac_cv_header_stdc = yes; then
5032  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035#include <string.h>
5036
5037_ACEOF
5038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039  $EGREP "memchr" >/dev/null 2>&1; then :
5040
5041else
5042  ac_cv_header_stdc=no
5043fi
5044rm -f conftest*
5045
5046fi
5047
5048if test $ac_cv_header_stdc = yes; then
5049  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052#include <stdlib.h>
5053
5054_ACEOF
5055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056  $EGREP "free" >/dev/null 2>&1; then :
5057
5058else
5059  ac_cv_header_stdc=no
5060fi
5061rm -f conftest*
5062
5063fi
5064
5065if test $ac_cv_header_stdc = yes; then
5066  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5067  if test "$cross_compiling" = yes; then :
5068  :
5069else
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072#include <ctype.h>
5073#include <stdlib.h>
5074#if ((' ' & 0x0FF) == 0x020)
5075# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5076# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5077#else
5078# define ISLOWER(c) \
5079		   (('a' <= (c) && (c) <= 'i') \
5080		     || ('j' <= (c) && (c) <= 'r') \
5081		     || ('s' <= (c) && (c) <= 'z'))
5082# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5083#endif
5084
5085#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5086int
5087main ()
5088{
5089  int i;
5090  for (i = 0; i < 256; i++)
5091    if (XOR (islower (i), ISLOWER (i))
5092	|| toupper (i) != TOUPPER (i))
5093      return 2;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_run "$LINENO"; then :
5098
5099else
5100  ac_cv_header_stdc=no
5101fi
5102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5103  conftest.$ac_objext conftest.beam conftest.$ac_ext
5104fi
5105
5106fi
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5109$as_echo "$ac_cv_header_stdc" >&6; }
5110if test $ac_cv_header_stdc = yes; then
5111
5112$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5113
5114fi
5115
5116# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5118		  inttypes.h stdint.h unistd.h
5119do :
5120  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5122"
5123eval as_val=\$$as_ac_Header
5124   if test "x$as_val" = x""yes; then :
5125  cat >>confdefs.h <<_ACEOF
5126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127_ACEOF
5128
5129fi
5130
5131done
5132
5133
5134
5135  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5136if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5137  MINIX=yes
5138else
5139  MINIX=
5140fi
5141
5142
5143  if test "$MINIX" = yes; then
5144
5145$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5146
5147
5148$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5149
5150
5151$as_echo "#define _MINIX 1" >>confdefs.h
5152
5153  fi
5154
5155
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5157$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5158if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163
5164#	  define __EXTENSIONS__ 1
5165	  $ac_includes_default
5166int
5167main ()
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  ac_cv_safe_to_define___extensions__=yes
5176else
5177  ac_cv_safe_to_define___extensions__=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5182$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5183  test $ac_cv_safe_to_define___extensions__ = yes &&
5184    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5185
5186  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5187
5188  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5189
5190  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5191
5192  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5193
5194
5195
5196
5197
5198
5199case `pwd` in
5200  *\ * | *\	*)
5201    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5202$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5203esac
5204
5205
5206
5207macro_version='2.2.6b'
5208macro_revision='1.3017'
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222ltmain="$ac_aux_dir/ltmain.sh"
5223
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5225$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5226if test "${ac_cv_path_SED+set}" = set; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5230     for ac_i in 1 2 3 4 5 6 7; do
5231       ac_script="$ac_script$as_nl$ac_script"
5232     done
5233     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5234     { ac_script=; unset ac_script;}
5235     if test -z "$SED"; then
5236  ac_path_SED_found=false
5237  # Loop through the user's path and test for each of PROGNAME-LIST
5238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241  IFS=$as_save_IFS
5242  test -z "$as_dir" && as_dir=.
5243    for ac_prog in sed gsed; do
5244    for ac_exec_ext in '' $ac_executable_extensions; do
5245      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5246      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5247# Check for GNU ac_path_SED and select it if it is found.
5248  # Check for GNU $ac_path_SED
5249case `"$ac_path_SED" --version 2>&1` in
5250*GNU*)
5251  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5252*)
5253  ac_count=0
5254  $as_echo_n 0123456789 >"conftest.in"
5255  while :
5256  do
5257    cat "conftest.in" "conftest.in" >"conftest.tmp"
5258    mv "conftest.tmp" "conftest.in"
5259    cp "conftest.in" "conftest.nl"
5260    $as_echo '' >> "conftest.nl"
5261    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5262    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5263    as_fn_arith $ac_count + 1 && ac_count=$as_val
5264    if test $ac_count -gt ${ac_path_SED_max-0}; then
5265      # Best one so far, save it but keep looking for a better one
5266      ac_cv_path_SED="$ac_path_SED"
5267      ac_path_SED_max=$ac_count
5268    fi
5269    # 10*(2^10) chars as input seems more than enough
5270    test $ac_count -gt 10 && break
5271  done
5272  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5273esac
5274
5275      $ac_path_SED_found && break 3
5276    done
5277  done
5278  done
5279IFS=$as_save_IFS
5280  if test -z "$ac_cv_path_SED"; then
5281    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5282  fi
5283else
5284  ac_cv_path_SED=$SED
5285fi
5286
5287fi
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5289$as_echo "$ac_cv_path_SED" >&6; }
5290 SED="$ac_cv_path_SED"
5291  rm -f conftest.sed
5292
5293test -z "$SED" && SED=sed
5294Xsed="$SED -e 1s/^X//"
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5307$as_echo_n "checking for fgrep... " >&6; }
5308if test "${ac_cv_path_FGREP+set}" = set; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5312   then ac_cv_path_FGREP="$GREP -F"
5313   else
5314     if test -z "$FGREP"; then
5315  ac_path_FGREP_found=false
5316  # Loop through the user's path and test for each of PROGNAME-LIST
5317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319do
5320  IFS=$as_save_IFS
5321  test -z "$as_dir" && as_dir=.
5322    for ac_prog in fgrep; do
5323    for ac_exec_ext in '' $ac_executable_extensions; do
5324      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5325      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5326# Check for GNU ac_path_FGREP and select it if it is found.
5327  # Check for GNU $ac_path_FGREP
5328case `"$ac_path_FGREP" --version 2>&1` in
5329*GNU*)
5330  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5331*)
5332  ac_count=0
5333  $as_echo_n 0123456789 >"conftest.in"
5334  while :
5335  do
5336    cat "conftest.in" "conftest.in" >"conftest.tmp"
5337    mv "conftest.tmp" "conftest.in"
5338    cp "conftest.in" "conftest.nl"
5339    $as_echo 'FGREP' >> "conftest.nl"
5340    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342    as_fn_arith $ac_count + 1 && ac_count=$as_val
5343    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5344      # Best one so far, save it but keep looking for a better one
5345      ac_cv_path_FGREP="$ac_path_FGREP"
5346      ac_path_FGREP_max=$ac_count
5347    fi
5348    # 10*(2^10) chars as input seems more than enough
5349    test $ac_count -gt 10 && break
5350  done
5351  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352esac
5353
5354      $ac_path_FGREP_found && break 3
5355    done
5356  done
5357  done
5358IFS=$as_save_IFS
5359  if test -z "$ac_cv_path_FGREP"; then
5360    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5361  fi
5362else
5363  ac_cv_path_FGREP=$FGREP
5364fi
5365
5366   fi
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5369$as_echo "$ac_cv_path_FGREP" >&6; }
5370 FGREP="$ac_cv_path_FGREP"
5371
5372
5373test -z "$GREP" && GREP=grep
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393# Check whether --with-gnu-ld was given.
5394if test "${with_gnu_ld+set}" = set; then :
5395  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5396else
5397  with_gnu_ld=no
5398fi
5399
5400ac_prog=ld
5401if test "$GCC" = yes; then
5402  # Check if gcc -print-prog-name=ld gives a path.
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5404$as_echo_n "checking for ld used by $CC... " >&6; }
5405  case $host in
5406  *-*-mingw*)
5407    # gcc leaves a trailing carriage return which upsets mingw
5408    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5409  *)
5410    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5411  esac
5412  case $ac_prog in
5413    # Accept absolute paths.
5414    [\\/]* | ?:[\\/]*)
5415      re_direlt='/[^/][^/]*/\.\./'
5416      # Canonicalize the pathname of ld
5417      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5418      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5419	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5420      done
5421      test -z "$LD" && LD="$ac_prog"
5422      ;;
5423  "")
5424    # If it fails, then pretend we aren't using GCC.
5425    ac_prog=ld
5426    ;;
5427  *)
5428    # If it is relative, then search for the first ld in PATH.
5429    with_gnu_ld=unknown
5430    ;;
5431  esac
5432elif test "$with_gnu_ld" = yes; then
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5434$as_echo_n "checking for GNU ld... " >&6; }
5435else
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5437$as_echo_n "checking for non-GNU ld... " >&6; }
5438fi
5439if test "${lt_cv_path_LD+set}" = set; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  if test -z "$LD"; then
5443  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5444  for ac_dir in $PATH; do
5445    IFS="$lt_save_ifs"
5446    test -z "$ac_dir" && ac_dir=.
5447    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5448      lt_cv_path_LD="$ac_dir/$ac_prog"
5449      # Check to see if the program is GNU ld.  I'd rather use --version,
5450      # but apparently some variants of GNU ld only accept -v.
5451      # Break only if it was the GNU/non-GNU ld that we prefer.
5452      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5453      *GNU* | *'with BFD'*)
5454	test "$with_gnu_ld" != no && break
5455	;;
5456      *)
5457	test "$with_gnu_ld" != yes && break
5458	;;
5459      esac
5460    fi
5461  done
5462  IFS="$lt_save_ifs"
5463else
5464  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5465fi
5466fi
5467
5468LD="$lt_cv_path_LD"
5469if test -n "$LD"; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5471$as_echo "$LD" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5478$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5479if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5483case `$LD -v 2>&1 </dev/null` in
5484*GNU* | *'with BFD'*)
5485  lt_cv_prog_gnu_ld=yes
5486  ;;
5487*)
5488  lt_cv_prog_gnu_ld=no
5489  ;;
5490esac
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5493$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5494with_gnu_ld=$lt_cv_prog_gnu_ld
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5505$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5506if test "${lt_cv_path_NM+set}" = set; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  if test -n "$NM"; then
5510  # Let the user override the test.
5511  lt_cv_path_NM="$NM"
5512else
5513  lt_nm_to_check="${ac_tool_prefix}nm"
5514  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5515    lt_nm_to_check="$lt_nm_to_check nm"
5516  fi
5517  for lt_tmp_nm in $lt_nm_to_check; do
5518    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5519    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5520      IFS="$lt_save_ifs"
5521      test -z "$ac_dir" && ac_dir=.
5522      tmp_nm="$ac_dir/$lt_tmp_nm"
5523      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5524	# Check to see if the nm accepts a BSD-compat flag.
5525	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5526	#   nm: unknown option "B" ignored
5527	# Tru64's nm complains that /dev/null is an invalid object file
5528	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5529	*/dev/null* | *'Invalid file or object type'*)
5530	  lt_cv_path_NM="$tmp_nm -B"
5531	  break
5532	  ;;
5533	*)
5534	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5535	  */dev/null*)
5536	    lt_cv_path_NM="$tmp_nm -p"
5537	    break
5538	    ;;
5539	  *)
5540	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5541	    continue # so that we can try to find one that supports BSD flags
5542	    ;;
5543	  esac
5544	  ;;
5545	esac
5546      fi
5547    done
5548    IFS="$lt_save_ifs"
5549  done
5550  : ${lt_cv_path_NM=no}
5551fi
5552fi
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5554$as_echo "$lt_cv_path_NM" >&6; }
5555if test "$lt_cv_path_NM" != "no"; then
5556  NM="$lt_cv_path_NM"
5557else
5558  # Didn't find any BSD compatible name lister, look for dumpbin.
5559  if test -n "$ac_tool_prefix"; then
5560  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5561  do
5562    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565$as_echo_n "checking for $ac_word... " >&6; }
5566if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  if test -n "$DUMPBIN"; then
5570  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5571else
5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575  IFS=$as_save_IFS
5576  test -z "$as_dir" && as_dir=.
5577    for ac_exec_ext in '' $ac_executable_extensions; do
5578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581    break 2
5582  fi
5583done
5584  done
5585IFS=$as_save_IFS
5586
5587fi
5588fi
5589DUMPBIN=$ac_cv_prog_DUMPBIN
5590if test -n "$DUMPBIN"; then
5591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5592$as_echo "$DUMPBIN" >&6; }
5593else
5594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595$as_echo "no" >&6; }
5596fi
5597
5598
5599    test -n "$DUMPBIN" && break
5600  done
5601fi
5602if test -z "$DUMPBIN"; then
5603  ac_ct_DUMPBIN=$DUMPBIN
5604  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5605do
5606  # Extract the first word of "$ac_prog", so it can be a program name with args.
5607set dummy $ac_prog; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  if test -n "$ac_ct_DUMPBIN"; then
5614  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621    for ac_exec_ext in '' $ac_executable_extensions; do
5622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628  done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5634if test -n "$ac_ct_DUMPBIN"; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5636$as_echo "$ac_ct_DUMPBIN" >&6; }
5637else
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642
5643  test -n "$ac_ct_DUMPBIN" && break
5644done
5645
5646  if test "x$ac_ct_DUMPBIN" = x; then
5647    DUMPBIN=":"
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    DUMPBIN=$ac_ct_DUMPBIN
5656  fi
5657fi
5658
5659
5660  if test "$DUMPBIN" != ":"; then
5661    NM="$DUMPBIN"
5662  fi
5663fi
5664test -z "$NM" && NM=nm
5665
5666
5667
5668
5669
5670
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5672$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5673if test "${lt_cv_nm_interface+set}" = set; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  lt_cv_nm_interface="BSD nm"
5677  echo "int some_variable = 0;" > conftest.$ac_ext
5678  (eval echo "\"\$as_me:5678: $ac_compile\"" >&5)
5679  (eval "$ac_compile" 2>conftest.err)
5680  cat conftest.err >&5
5681  (eval echo "\"\$as_me:5681: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5682  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5683  cat conftest.err >&5
5684  (eval echo "\"\$as_me:5684: output\"" >&5)
5685  cat conftest.out >&5
5686  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5687    lt_cv_nm_interface="MS dumpbin"
5688  fi
5689  rm -f conftest*
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5692$as_echo "$lt_cv_nm_interface" >&6; }
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5695$as_echo_n "checking whether ln -s works... " >&6; }
5696LN_S=$as_ln_s
5697if test "$LN_S" = "ln -s"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5699$as_echo "yes" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5702$as_echo "no, using $LN_S" >&6; }
5703fi
5704
5705# find the maximum length of command line arguments
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5707$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5708if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711    i=0
5712  teststring="ABCD"
5713
5714  case $build_os in
5715  msdosdjgpp*)
5716    # On DJGPP, this test can blow up pretty badly due to problems in libc
5717    # (any single argument exceeding 2000 bytes causes a buffer overrun
5718    # during glob expansion).  Even if it were fixed, the result of this
5719    # check would be larger than it should be.
5720    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5721    ;;
5722
5723  gnu*)
5724    # Under GNU Hurd, this test is not required because there is
5725    # no limit to the length of command line arguments.
5726    # Libtool will interpret -1 as no limit whatsoever
5727    lt_cv_sys_max_cmd_len=-1;
5728    ;;
5729
5730  cygwin* | mingw* | cegcc*)
5731    # On Win9x/ME, this test blows up -- it succeeds, but takes
5732    # about 5 minutes as the teststring grows exponentially.
5733    # Worse, since 9x/ME are not pre-emptively multitasking,
5734    # you end up with a "frozen" computer, even though with patience
5735    # the test eventually succeeds (with a max line length of 256k).
5736    # Instead, let's just punt: use the minimum linelength reported by
5737    # all of the supported platforms: 8192 (on NT/2K/XP).
5738    lt_cv_sys_max_cmd_len=8192;
5739    ;;
5740
5741  amigaos*)
5742    # On AmigaOS with pdksh, this test takes hours, literally.
5743    # So we just punt and use a minimum line length of 8192.
5744    lt_cv_sys_max_cmd_len=8192;
5745    ;;
5746
5747  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5748    # This has been around since 386BSD, at least.  Likely further.
5749    if test -x /sbin/sysctl; then
5750      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5751    elif test -x /usr/sbin/sysctl; then
5752      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5753    else
5754      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5755    fi
5756    # And add a safety zone
5757    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5758    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5759    ;;
5760
5761  interix*)
5762    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5763    lt_cv_sys_max_cmd_len=196608
5764    ;;
5765
5766  osf*)
5767    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5768    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5769    # nice to cause kernel panics so lets avoid the loop below.
5770    # First set a reasonable default.
5771    lt_cv_sys_max_cmd_len=16384
5772    #
5773    if test -x /sbin/sysconfig; then
5774      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5775        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5776      esac
5777    fi
5778    ;;
5779  sco3.2v5*)
5780    lt_cv_sys_max_cmd_len=102400
5781    ;;
5782  sysv5* | sco5v6* | sysv4.2uw2*)
5783    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5784    if test -n "$kargmax"; then
5785      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5786    else
5787      lt_cv_sys_max_cmd_len=32768
5788    fi
5789    ;;
5790  *)
5791    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5792    if test -n "$lt_cv_sys_max_cmd_len"; then
5793      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5794      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5795    else
5796      # Make teststring a little bigger before we do anything with it.
5797      # a 1K string should be a reasonable start.
5798      for i in 1 2 3 4 5 6 7 8 ; do
5799        teststring=$teststring$teststring
5800      done
5801      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5802      # If test is not a shell built-in, we'll probably end up computing a
5803      # maximum length that is only half of the actual maximum length, but
5804      # we can't tell.
5805      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5806	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5807	      test $i != 17 # 1/2 MB should be enough
5808      do
5809        i=`expr $i + 1`
5810        teststring=$teststring$teststring
5811      done
5812      # Only check the string length outside the loop.
5813      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5814      teststring=
5815      # Add a significant safety factor because C++ compilers can tack on
5816      # massive amounts of additional arguments before passing them to the
5817      # linker.  It appears as though 1/2 is a usable value.
5818      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5819    fi
5820    ;;
5821  esac
5822
5823fi
5824
5825if test -n $lt_cv_sys_max_cmd_len ; then
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5827$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5828else
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5830$as_echo "none" >&6; }
5831fi
5832max_cmd_len=$lt_cv_sys_max_cmd_len
5833
5834
5835
5836
5837
5838
5839: ${CP="cp -f"}
5840: ${MV="mv -f"}
5841: ${RM="rm -f"}
5842
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5844$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5845# Try some XSI features
5846xsi_shell=no
5847( _lt_dummy="a/b/c"
5848  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5849      = c,a/b,, \
5850    && eval 'test $(( 1 + 1 )) -eq 2 \
5851    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5852  && xsi_shell=yes
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5854$as_echo "$xsi_shell" >&6; }
5855
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5858$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5859lt_shell_append=no
5860( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5861    >/dev/null 2>&1 \
5862  && lt_shell_append=yes
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5864$as_echo "$lt_shell_append" >&6; }
5865
5866
5867if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5868  lt_unset=unset
5869else
5870  lt_unset=false
5871fi
5872
5873
5874
5875
5876
5877# test EBCDIC or ASCII
5878case `echo X|tr X '\101'` in
5879 A) # ASCII based system
5880    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5881  lt_SP2NL='tr \040 \012'
5882  lt_NL2SP='tr \015\012 \040\040'
5883  ;;
5884 *) # EBCDIC based system
5885  lt_SP2NL='tr \100 \n'
5886  lt_NL2SP='tr \r\n \100\100'
5887  ;;
5888esac
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5899$as_echo_n "checking for $LD option to reload object files... " >&6; }
5900if test "${lt_cv_ld_reload_flag+set}" = set; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  lt_cv_ld_reload_flag='-r'
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5906$as_echo "$lt_cv_ld_reload_flag" >&6; }
5907reload_flag=$lt_cv_ld_reload_flag
5908case $reload_flag in
5909"" | " "*) ;;
5910*) reload_flag=" $reload_flag" ;;
5911esac
5912reload_cmds='$LD$reload_flag -o $output$reload_objs'
5913case $host_os in
5914  darwin*)
5915    if test "$GCC" = yes; then
5916      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5917    else
5918      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5919    fi
5920    ;;
5921esac
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931if test -n "$ac_tool_prefix"; then
5932  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}objdump; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$OBJDUMP"; then
5940  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959OBJDUMP=$ac_cv_prog_OBJDUMP
5960if test -n "$OBJDUMP"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5962$as_echo "$OBJDUMP" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968
5969fi
5970if test -z "$ac_cv_prog_OBJDUMP"; then
5971  ac_ct_OBJDUMP=$OBJDUMP
5972  # Extract the first word of "objdump", so it can be a program name with args.
5973set dummy objdump; ac_word=$2
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
5976if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5977  $as_echo_n "(cached) " >&6
5978else
5979  if test -n "$ac_ct_OBJDUMP"; then
5980  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987    for ac_exec_ext in '' $ac_executable_extensions; do
5988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991    break 2
5992  fi
5993done
5994  done
5995IFS=$as_save_IFS
5996
5997fi
5998fi
5999ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6000if test -n "$ac_ct_OBJDUMP"; then
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6002$as_echo "$ac_ct_OBJDUMP" >&6; }
6003else
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
6007
6008  if test "x$ac_ct_OBJDUMP" = x; then
6009    OBJDUMP="false"
6010  else
6011    case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015ac_tool_warned=yes ;;
6016esac
6017    OBJDUMP=$ac_ct_OBJDUMP
6018  fi
6019else
6020  OBJDUMP="$ac_cv_prog_OBJDUMP"
6021fi
6022
6023test -z "$OBJDUMP" && OBJDUMP=objdump
6024
6025
6026
6027
6028
6029
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6031$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6032if test "${lt_cv_deplibs_check_method+set}" = set; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  lt_cv_file_magic_cmd='$MAGIC_CMD'
6036lt_cv_file_magic_test_file=
6037lt_cv_deplibs_check_method='unknown'
6038# Need to set the preceding variable on all platforms that support
6039# interlibrary dependencies.
6040# 'none' -- dependencies not supported.
6041# `unknown' -- same as none, but documents that we really don't know.
6042# 'pass_all' -- all dependencies passed with no checks.
6043# 'test_compile' -- check by making test program.
6044# 'file_magic [[regex]]' -- check by looking for files in library path
6045# which responds to the $file_magic_cmd with a given extended regex.
6046# If you have `file' or equivalent on your system and you're not sure
6047# whether `pass_all' will *always* work, you probably want this one.
6048
6049case $host_os in
6050aix[4-9]*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054beos*)
6055  lt_cv_deplibs_check_method=pass_all
6056  ;;
6057
6058bsdi[45]*)
6059  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6060  lt_cv_file_magic_cmd='/usr/bin/file -L'
6061  lt_cv_file_magic_test_file=/shlib/libc.so
6062  ;;
6063
6064cygwin*)
6065  # func_win32_libid is a shell function defined in ltmain.sh
6066  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6067  lt_cv_file_magic_cmd='func_win32_libid'
6068  ;;
6069
6070mingw* | pw32*)
6071  # Base MSYS/MinGW do not provide the 'file' command needed by
6072  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6073  # unless we find 'file', for example because we are cross-compiling.
6074  if ( file / ) >/dev/null 2>&1; then
6075    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076    lt_cv_file_magic_cmd='func_win32_libid'
6077  else
6078    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6079    lt_cv_file_magic_cmd='$OBJDUMP -f'
6080  fi
6081  ;;
6082
6083cegcc)
6084  # use the weaker test based on 'objdump'. See mingw*.
6085  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6086  lt_cv_file_magic_cmd='$OBJDUMP -f'
6087  ;;
6088
6089darwin* | rhapsody*)
6090  lt_cv_deplibs_check_method=pass_all
6091  ;;
6092
6093freebsd* | dragonfly*)
6094  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6095    case $host_cpu in
6096    i*86 )
6097      # Not sure whether the presence of OpenBSD here was a mistake.
6098      # Let's accept both of them until this is cleared up.
6099      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6100      lt_cv_file_magic_cmd=/usr/bin/file
6101      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6102      ;;
6103    esac
6104  else
6105    lt_cv_deplibs_check_method=pass_all
6106  fi
6107  ;;
6108
6109gnu*)
6110  lt_cv_deplibs_check_method=pass_all
6111  ;;
6112
6113hpux10.20* | hpux11*)
6114  lt_cv_file_magic_cmd=/usr/bin/file
6115  case $host_cpu in
6116  ia64*)
6117    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6118    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6119    ;;
6120  hppa*64*)
6121    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]'
6122    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6123    ;;
6124  *)
6125    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6126    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6127    ;;
6128  esac
6129  ;;
6130
6131interix[3-9]*)
6132  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6133  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6134  ;;
6135
6136irix5* | irix6* | nonstopux*)
6137  case $LD in
6138  *-32|*"-32 ") libmagic=32-bit;;
6139  *-n32|*"-n32 ") libmagic=N32;;
6140  *-64|*"-64 ") libmagic=64-bit;;
6141  *) libmagic=never-match;;
6142  esac
6143  lt_cv_deplibs_check_method=pass_all
6144  ;;
6145
6146# This must be Linux ELF.
6147linux* | k*bsd*-gnu)
6148  lt_cv_deplibs_check_method=pass_all
6149  ;;
6150
6151netbsd* | netbsdelf*-gnu)
6152  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6153    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6154  else
6155    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6156  fi
6157  ;;
6158
6159newos6*)
6160  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6161  lt_cv_file_magic_cmd=/usr/bin/file
6162  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6163  ;;
6164
6165*nto* | *qnx*)
6166  lt_cv_deplibs_check_method=pass_all
6167  ;;
6168
6169openbsd*)
6170  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6171    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6172  else
6173    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6174  fi
6175  ;;
6176
6177osf3* | osf4* | osf5*)
6178  lt_cv_deplibs_check_method=pass_all
6179  ;;
6180
6181rdos*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185solaris*)
6186  lt_cv_deplibs_check_method=pass_all
6187  ;;
6188
6189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6190  lt_cv_deplibs_check_method=pass_all
6191  ;;
6192
6193sysv4 | sysv4.3*)
6194  case $host_vendor in
6195  motorola)
6196    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]'
6197    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6198    ;;
6199  ncr)
6200    lt_cv_deplibs_check_method=pass_all
6201    ;;
6202  sequent)
6203    lt_cv_file_magic_cmd='/bin/file'
6204    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6205    ;;
6206  sni)
6207    lt_cv_file_magic_cmd='/bin/file'
6208    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6209    lt_cv_file_magic_test_file=/lib/libc.so
6210    ;;
6211  siemens)
6212    lt_cv_deplibs_check_method=pass_all
6213    ;;
6214  pc)
6215    lt_cv_deplibs_check_method=pass_all
6216    ;;
6217  esac
6218  ;;
6219
6220tpf*)
6221  lt_cv_deplibs_check_method=pass_all
6222  ;;
6223esac
6224
6225fi
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6227$as_echo "$lt_cv_deplibs_check_method" >&6; }
6228file_magic_cmd=$lt_cv_file_magic_cmd
6229deplibs_check_method=$lt_cv_deplibs_check_method
6230test -z "$deplibs_check_method" && deplibs_check_method=unknown
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243if test -n "$ac_tool_prefix"; then
6244  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}ar; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if test "${ac_cv_prog_AR+set}" = set; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  if test -n "$AR"; then
6252  ac_cv_prog_AR="$AR" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261    ac_cv_prog_AR="${ac_tool_prefix}ar"
6262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271AR=$ac_cv_prog_AR
6272if test -n "$AR"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6274$as_echo "$AR" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_AR"; then
6283  ac_ct_AR=$AR
6284  # Extract the first word of "ar", so it can be a program name with args.
6285set dummy ar; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$ac_ct_AR"; then
6292  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301    ac_cv_prog_ac_ct_AR="ar"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_AR=$ac_cv_prog_ac_ct_AR
6312if test -n "$ac_ct_AR"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6314$as_echo "$ac_ct_AR" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320  if test "x$ac_ct_AR" = x; then
6321    AR="false"
6322  else
6323    case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327ac_tool_warned=yes ;;
6328esac
6329    AR=$ac_ct_AR
6330  fi
6331else
6332  AR="$ac_cv_prog_AR"
6333fi
6334
6335test -z "$AR" && AR=ar
6336test -z "$AR_FLAGS" && AR_FLAGS=cru
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348if test -n "$ac_tool_prefix"; then
6349  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6350set dummy ${ac_tool_prefix}strip; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
6353if test "${ac_cv_prog_STRIP+set}" = set; then :
6354  $as_echo_n "(cached) " >&6
6355else
6356  if test -n "$STRIP"; then
6357  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376STRIP=$ac_cv_prog_STRIP
6377if test -n "$STRIP"; then
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6379$as_echo "$STRIP" >&6; }
6380else
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386fi
6387if test -z "$ac_cv_prog_STRIP"; then
6388  ac_ct_STRIP=$STRIP
6389  # Extract the first word of "strip", so it can be a program name with args.
6390set dummy strip; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
6393if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  if test -n "$ac_ct_STRIP"; then
6397  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402  IFS=$as_save_IFS
6403  test -z "$as_dir" && as_dir=.
6404    for ac_exec_ext in '' $ac_executable_extensions; do
6405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406    ac_cv_prog_ac_ct_STRIP="strip"
6407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408    break 2
6409  fi
6410done
6411  done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6417if test -n "$ac_ct_STRIP"; then
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6419$as_echo "$ac_ct_STRIP" >&6; }
6420else
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425  if test "x$ac_ct_STRIP" = x; then
6426    STRIP=":"
6427  else
6428    case $cross_compiling:$ac_tool_warned in
6429yes:)
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6432ac_tool_warned=yes ;;
6433esac
6434    STRIP=$ac_ct_STRIP
6435  fi
6436else
6437  STRIP="$ac_cv_prog_STRIP"
6438fi
6439
6440test -z "$STRIP" && STRIP=:
6441
6442
6443
6444
6445
6446
6447if test -n "$ac_tool_prefix"; then
6448  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6449set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451$as_echo_n "checking for $ac_word... " >&6; }
6452if test "${ac_cv_prog_RANLIB+set}" = set; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  if test -n "$RANLIB"; then
6456  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461  IFS=$as_save_IFS
6462  test -z "$as_dir" && as_dir=.
6463    for ac_exec_ext in '' $ac_executable_extensions; do
6464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467    break 2
6468  fi
6469done
6470  done
6471IFS=$as_save_IFS
6472
6473fi
6474fi
6475RANLIB=$ac_cv_prog_RANLIB
6476if test -n "$RANLIB"; then
6477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6478$as_echo "$RANLIB" >&6; }
6479else
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481$as_echo "no" >&6; }
6482fi
6483
6484
6485fi
6486if test -z "$ac_cv_prog_RANLIB"; then
6487  ac_ct_RANLIB=$RANLIB
6488  # Extract the first word of "ranlib", so it can be a program name with args.
6489set dummy ranlib; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
6492if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  if test -n "$ac_ct_RANLIB"; then
6496  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  test -z "$as_dir" && as_dir=.
6503    for ac_exec_ext in '' $ac_executable_extensions; do
6504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505    ac_cv_prog_ac_ct_RANLIB="ranlib"
6506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    break 2
6508  fi
6509done
6510  done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6516if test -n "$ac_ct_RANLIB"; then
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6518$as_echo "$ac_ct_RANLIB" >&6; }
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524  if test "x$ac_ct_RANLIB" = x; then
6525    RANLIB=":"
6526  else
6527    case $cross_compiling:$ac_tool_warned in
6528yes:)
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531ac_tool_warned=yes ;;
6532esac
6533    RANLIB=$ac_ct_RANLIB
6534  fi
6535else
6536  RANLIB="$ac_cv_prog_RANLIB"
6537fi
6538
6539test -z "$RANLIB" && RANLIB=:
6540
6541
6542
6543
6544
6545
6546# Determine commands to create old-style static archives.
6547old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6548old_postinstall_cmds='chmod 644 $oldlib'
6549old_postuninstall_cmds=
6550
6551if test -n "$RANLIB"; then
6552  case $host_os in
6553  openbsd*)
6554    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6555    ;;
6556  *)
6557    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6558    ;;
6559  esac
6560  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6561fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596# If no C compiler was specified, use CC.
6597LTCC=${LTCC-"$CC"}
6598
6599# If no C compiler flags were specified, use CFLAGS.
6600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6601
6602# Allow CC to be a program name with arguments.
6603compiler=$CC
6604
6605
6606# Check for command to grab the raw symbol name followed by C symbol from nm.
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6608$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6609if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612
6613# These are sane defaults that work on at least a few old systems.
6614# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6615
6616# Character class describing NM global symbol codes.
6617symcode='[BCDEGRST]'
6618
6619# Regexp to match symbols that can be accessed directly from C.
6620sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6621
6622# Define system-specific variables.
6623case $host_os in
6624aix*)
6625  symcode='[BCDT]'
6626  ;;
6627cygwin* | mingw* | pw32* | cegcc*)
6628  symcode='[ABCDGISTW]'
6629  ;;
6630hpux*)
6631  if test "$host_cpu" = ia64; then
6632    symcode='[ABCDEGRST]'
6633  fi
6634  ;;
6635irix* | nonstopux*)
6636  symcode='[BCDEGRST]'
6637  ;;
6638osf*)
6639  symcode='[BCDEGQRST]'
6640  ;;
6641solaris*)
6642  symcode='[BDRT]'
6643  ;;
6644sco3.2v5*)
6645  symcode='[DT]'
6646  ;;
6647sysv4.2uw2*)
6648  symcode='[DT]'
6649  ;;
6650sysv5* | sco5v6* | unixware* | OpenUNIX*)
6651  symcode='[ABDT]'
6652  ;;
6653sysv4)
6654  symcode='[DFNSTU]'
6655  ;;
6656esac
6657
6658# If we're using GNU nm, then use its standard symbol codes.
6659case `$NM -V 2>&1` in
6660*GNU* | *'with BFD'*)
6661  symcode='[ABCDGIRSTW]' ;;
6662esac
6663
6664# Transform an extracted symbol line into a proper C declaration.
6665# Some systems (esp. on ia64) link data and code symbols differently,
6666# so use this general approach.
6667lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6668
6669# Transform an extracted symbol line into symbol name and symbol address
6670lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6671lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6672
6673# Handle CRLF in mingw tool chain
6674opt_cr=
6675case $build_os in
6676mingw*)
6677  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6678  ;;
6679esac
6680
6681# Try without a prefix underscore, then with it.
6682for ac_symprfx in "" "_"; do
6683
6684  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6685  symxfrm="\\1 $ac_symprfx\\2 \\2"
6686
6687  # Write the raw and C identifiers.
6688  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6689    # Fake it for dumpbin and say T for any non-static function
6690    # and D for any global variable.
6691    # Also find C++ and __fastcall symbols from MSVC++,
6692    # which start with @ or ?.
6693    lt_cv_sys_global_symbol_pipe="$AWK '"\
6694"     {last_section=section; section=\$ 3};"\
6695"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696"     \$ 0!~/External *\|/{next};"\
6697"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698"     {if(hide[section]) next};"\
6699"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6700"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6701"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6702"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6703"     ' prfx=^$ac_symprfx"
6704  else
6705    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6706  fi
6707
6708  # Check to see that the pipe works correctly.
6709  pipe_works=no
6710
6711  rm -f conftest*
6712  cat > conftest.$ac_ext <<_LT_EOF
6713#ifdef __cplusplus
6714extern "C" {
6715#endif
6716char nm_test_var;
6717void nm_test_func(void);
6718void nm_test_func(void){}
6719#ifdef __cplusplus
6720}
6721#endif
6722int main(){nm_test_var='a';nm_test_func();return(0);}
6723_LT_EOF
6724
6725  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6726  (eval $ac_compile) 2>&5
6727  ac_status=$?
6728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729  test $ac_status = 0; }; then
6730    # Now try to grab the symbols.
6731    nlist=conftest.nm
6732    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6733  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6734  ac_status=$?
6735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736  test $ac_status = 0; } && test -s "$nlist"; then
6737      # Try sorting and uniquifying the output.
6738      if sort "$nlist" | uniq > "$nlist"T; then
6739	mv -f "$nlist"T "$nlist"
6740      else
6741	rm -f "$nlist"T
6742      fi
6743
6744      # Make sure that we snagged all the symbols we need.
6745      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6746	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6747	  cat <<_LT_EOF > conftest.$ac_ext
6748#ifdef __cplusplus
6749extern "C" {
6750#endif
6751
6752_LT_EOF
6753	  # Now generate the symbol file.
6754	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6755
6756	  cat <<_LT_EOF >> conftest.$ac_ext
6757
6758/* The mapping between symbol names and symbols.  */
6759const struct {
6760  const char *name;
6761  void       *address;
6762}
6763lt__PROGRAM__LTX_preloaded_symbols[] =
6764{
6765  { "@PROGRAM@", (void *) 0 },
6766_LT_EOF
6767	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6768	  cat <<\_LT_EOF >> conftest.$ac_ext
6769  {0, (void *) 0}
6770};
6771
6772/* This works around a problem in FreeBSD linker */
6773#ifdef FREEBSD_WORKAROUND
6774static const void *lt_preloaded_setup() {
6775  return lt__PROGRAM__LTX_preloaded_symbols;
6776}
6777#endif
6778
6779#ifdef __cplusplus
6780}
6781#endif
6782_LT_EOF
6783	  # Now try linking the two files.
6784	  mv conftest.$ac_objext conftstm.$ac_objext
6785	  lt_save_LIBS="$LIBS"
6786	  lt_save_CFLAGS="$CFLAGS"
6787	  LIBS="conftstm.$ac_objext"
6788	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6789	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6790  (eval $ac_link) 2>&5
6791  ac_status=$?
6792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6794	    pipe_works=yes
6795	  fi
6796	  LIBS="$lt_save_LIBS"
6797	  CFLAGS="$lt_save_CFLAGS"
6798	else
6799	  echo "cannot find nm_test_func in $nlist" >&5
6800	fi
6801      else
6802	echo "cannot find nm_test_var in $nlist" >&5
6803      fi
6804    else
6805      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6806    fi
6807  else
6808    echo "$progname: failed program was:" >&5
6809    cat conftest.$ac_ext >&5
6810  fi
6811  rm -rf conftest* conftst*
6812
6813  # Do not use the global_symbol_pipe unless it works.
6814  if test "$pipe_works" = yes; then
6815    break
6816  else
6817    lt_cv_sys_global_symbol_pipe=
6818  fi
6819done
6820
6821fi
6822
6823if test -z "$lt_cv_sys_global_symbol_pipe"; then
6824  lt_cv_sys_global_symbol_to_cdecl=
6825fi
6826if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6828$as_echo "failed" >&6; }
6829else
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6831$as_echo "ok" >&6; }
6832fi
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855# Check whether --enable-libtool-lock was given.
6856if test "${enable_libtool_lock+set}" = set; then :
6857  enableval=$enable_libtool_lock;
6858fi
6859
6860test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6861
6862# Some flags need to be propagated to the compiler or linker for good
6863# libtool support.
6864case $host in
6865ia64-*-hpux*)
6866  # Find out which ABI we are using.
6867  echo 'int i;' > conftest.$ac_ext
6868  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869  (eval $ac_compile) 2>&5
6870  ac_status=$?
6871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872  test $ac_status = 0; }; then
6873    case `/usr/bin/file conftest.$ac_objext` in
6874      *ELF-32*)
6875	HPUX_IA64_MODE="32"
6876	;;
6877      *ELF-64*)
6878	HPUX_IA64_MODE="64"
6879	;;
6880    esac
6881  fi
6882  rm -rf conftest*
6883  ;;
6884*-*-irix6*)
6885  # Find out which ABI we are using.
6886  echo '#line 6886 "configure"' > conftest.$ac_ext
6887  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888  (eval $ac_compile) 2>&5
6889  ac_status=$?
6890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891  test $ac_status = 0; }; then
6892    if test "$lt_cv_prog_gnu_ld" = yes; then
6893      case `/usr/bin/file conftest.$ac_objext` in
6894	*32-bit*)
6895	  LD="${LD-ld} -melf32bsmip"
6896	  ;;
6897	*N32*)
6898	  LD="${LD-ld} -melf32bmipn32"
6899	  ;;
6900	*64-bit*)
6901	  LD="${LD-ld} -melf64bmip"
6902	;;
6903      esac
6904    else
6905      case `/usr/bin/file conftest.$ac_objext` in
6906	*32-bit*)
6907	  LD="${LD-ld} -32"
6908	  ;;
6909	*N32*)
6910	  LD="${LD-ld} -n32"
6911	  ;;
6912	*64-bit*)
6913	  LD="${LD-ld} -64"
6914	  ;;
6915      esac
6916    fi
6917  fi
6918  rm -rf conftest*
6919  ;;
6920
6921x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923  # Find out which ABI we are using.
6924  echo 'int i;' > conftest.$ac_ext
6925  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6926  (eval $ac_compile) 2>&5
6927  ac_status=$?
6928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929  test $ac_status = 0; }; then
6930    case `/usr/bin/file conftest.o` in
6931      *32-bit*)
6932	case $host in
6933	  x86_64-*kfreebsd*-gnu)
6934	    LD="${LD-ld} -m elf_i386_fbsd"
6935	    ;;
6936	  x86_64-*linux*)
6937	    LD="${LD-ld} -m elf_i386"
6938	    ;;
6939	  ppc64-*linux*|powerpc64-*linux*)
6940	    LD="${LD-ld} -m elf32ppclinux"
6941	    ;;
6942	  s390x-*linux*)
6943	    LD="${LD-ld} -m elf_s390"
6944	    ;;
6945	  sparc64-*linux*)
6946	    LD="${LD-ld} -m elf32_sparc"
6947	    ;;
6948	esac
6949	;;
6950      *64-bit*)
6951	case $host in
6952	  x86_64-*kfreebsd*-gnu)
6953	    LD="${LD-ld} -m elf_x86_64_fbsd"
6954	    ;;
6955	  x86_64-*linux*)
6956	    LD="${LD-ld} -m elf_x86_64"
6957	    ;;
6958	  ppc*-*linux*|powerpc*-*linux*)
6959	    LD="${LD-ld} -m elf64ppc"
6960	    ;;
6961	  s390*-*linux*|s390*-*tpf*)
6962	    LD="${LD-ld} -m elf64_s390"
6963	    ;;
6964	  sparc*-*linux*)
6965	    LD="${LD-ld} -m elf64_sparc"
6966	    ;;
6967	esac
6968	;;
6969    esac
6970  fi
6971  rm -rf conftest*
6972  ;;
6973
6974*-*-sco3.2v5*)
6975  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976  SAVE_CFLAGS="$CFLAGS"
6977  CFLAGS="$CFLAGS -belf"
6978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6979$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6980if test "${lt_cv_cc_needs_belf+set}" = set; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  ac_ext=c
6984ac_cpp='$CPP $CPPFLAGS'
6985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991
6992int
6993main ()
6994{
6995
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001  lt_cv_cc_needs_belf=yes
7002else
7003  lt_cv_cc_needs_belf=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006    conftest$ac_exeext conftest.$ac_ext
7007     ac_ext=c
7008ac_cpp='$CPP $CPPFLAGS'
7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7015$as_echo "$lt_cv_cc_needs_belf" >&6; }
7016  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7017    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7018    CFLAGS="$SAVE_CFLAGS"
7019  fi
7020  ;;
7021sparc*-*solaris*)
7022  # Find out which ABI we are using.
7023  echo 'int i;' > conftest.$ac_ext
7024  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025  (eval $ac_compile) 2>&5
7026  ac_status=$?
7027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028  test $ac_status = 0; }; then
7029    case `/usr/bin/file conftest.o` in
7030    *64-bit*)
7031      case $lt_cv_prog_gnu_ld in
7032      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7033      *)
7034	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7035	  LD="${LD-ld} -64"
7036	fi
7037	;;
7038      esac
7039      ;;
7040    esac
7041  fi
7042  rm -rf conftest*
7043  ;;
7044esac
7045
7046need_locks="$enable_libtool_lock"
7047
7048
7049  case $host_os in
7050    rhapsody* | darwin*)
7051    if test -n "$ac_tool_prefix"; then
7052  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7053set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
7056if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7057  $as_echo_n "(cached) " >&6
7058else
7059  if test -n "$DSYMUTIL"; then
7060  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065  IFS=$as_save_IFS
7066  test -z "$as_dir" && as_dir=.
7067    for ac_exec_ext in '' $ac_executable_extensions; do
7068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071    break 2
7072  fi
7073done
7074  done
7075IFS=$as_save_IFS
7076
7077fi
7078fi
7079DSYMUTIL=$ac_cv_prog_DSYMUTIL
7080if test -n "$DSYMUTIL"; then
7081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7082$as_echo "$DSYMUTIL" >&6; }
7083else
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085$as_echo "no" >&6; }
7086fi
7087
7088
7089fi
7090if test -z "$ac_cv_prog_DSYMUTIL"; then
7091  ac_ct_DSYMUTIL=$DSYMUTIL
7092  # Extract the first word of "dsymutil", so it can be a program name with args.
7093set dummy dsymutil; ac_word=$2
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test -n "$ac_ct_DSYMUTIL"; then
7100  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107    for ac_exec_ext in '' $ac_executable_extensions; do
7108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114  done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7120if test -n "$ac_ct_DSYMUTIL"; then
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7122$as_echo "$ac_ct_DSYMUTIL" >&6; }
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128  if test "x$ac_ct_DSYMUTIL" = x; then
7129    DSYMUTIL=":"
7130  else
7131    case $cross_compiling:$ac_tool_warned in
7132yes:)
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135ac_tool_warned=yes ;;
7136esac
7137    DSYMUTIL=$ac_ct_DSYMUTIL
7138  fi
7139else
7140  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7141fi
7142
7143    if test -n "$ac_tool_prefix"; then
7144  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7145set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147$as_echo_n "checking for $ac_word... " >&6; }
7148if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  if test -n "$NMEDIT"; then
7152  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159    for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166  done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171NMEDIT=$ac_cv_prog_NMEDIT
7172if test -n "$NMEDIT"; then
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7174$as_echo "$NMEDIT" >&6; }
7175else
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177$as_echo "no" >&6; }
7178fi
7179
7180
7181fi
7182if test -z "$ac_cv_prog_NMEDIT"; then
7183  ac_ct_NMEDIT=$NMEDIT
7184  # Extract the first word of "nmedit", so it can be a program name with args.
7185set dummy nmedit; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$ac_ct_NMEDIT"; then
7192  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206  done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7212if test -n "$ac_ct_NMEDIT"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7214$as_echo "$ac_ct_NMEDIT" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220  if test "x$ac_ct_NMEDIT" = x; then
7221    NMEDIT=":"
7222  else
7223    case $cross_compiling:$ac_tool_warned in
7224yes:)
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227ac_tool_warned=yes ;;
7228esac
7229    NMEDIT=$ac_ct_NMEDIT
7230  fi
7231else
7232  NMEDIT="$ac_cv_prog_NMEDIT"
7233fi
7234
7235    if test -n "$ac_tool_prefix"; then
7236  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7237set dummy ${ac_tool_prefix}lipo; ac_word=$2
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if test "${ac_cv_prog_LIPO+set}" = set; then :
7241  $as_echo_n "(cached) " >&6
7242else
7243  if test -n "$LIPO"; then
7244  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249  IFS=$as_save_IFS
7250  test -z "$as_dir" && as_dir=.
7251    for ac_exec_ext in '' $ac_executable_extensions; do
7252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255    break 2
7256  fi
7257done
7258  done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263LIPO=$ac_cv_prog_LIPO
7264if test -n "$LIPO"; then
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7266$as_echo "$LIPO" >&6; }
7267else
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272
7273fi
7274if test -z "$ac_cv_prog_LIPO"; then
7275  ac_ct_LIPO=$LIPO
7276  # Extract the first word of "lipo", so it can be a program name with args.
7277set dummy lipo; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  if test -n "$ac_ct_LIPO"; then
7284  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291    for ac_exec_ext in '' $ac_executable_extensions; do
7292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293    ac_cv_prog_ac_ct_LIPO="lipo"
7294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295    break 2
7296  fi
7297done
7298  done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7304if test -n "$ac_ct_LIPO"; then
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7306$as_echo "$ac_ct_LIPO" >&6; }
7307else
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312  if test "x$ac_ct_LIPO" = x; then
7313    LIPO=":"
7314  else
7315    case $cross_compiling:$ac_tool_warned in
7316yes:)
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319ac_tool_warned=yes ;;
7320esac
7321    LIPO=$ac_ct_LIPO
7322  fi
7323else
7324  LIPO="$ac_cv_prog_LIPO"
7325fi
7326
7327    if test -n "$ac_tool_prefix"; then
7328  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7329set dummy ${ac_tool_prefix}otool; ac_word=$2
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331$as_echo_n "checking for $ac_word... " >&6; }
7332if test "${ac_cv_prog_OTOOL+set}" = set; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335  if test -n "$OTOOL"; then
7336  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341  IFS=$as_save_IFS
7342  test -z "$as_dir" && as_dir=.
7343    for ac_exec_ext in '' $ac_executable_extensions; do
7344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347    break 2
7348  fi
7349done
7350  done
7351IFS=$as_save_IFS
7352
7353fi
7354fi
7355OTOOL=$ac_cv_prog_OTOOL
7356if test -n "$OTOOL"; then
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7358$as_echo "$OTOOL" >&6; }
7359else
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365fi
7366if test -z "$ac_cv_prog_OTOOL"; then
7367  ac_ct_OTOOL=$OTOOL
7368  # Extract the first word of "otool", so it can be a program name with args.
7369set dummy otool; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  if test -n "$ac_ct_OTOOL"; then
7376  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381  IFS=$as_save_IFS
7382  test -z "$as_dir" && as_dir=.
7383    for ac_exec_ext in '' $ac_executable_extensions; do
7384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385    ac_cv_prog_ac_ct_OTOOL="otool"
7386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387    break 2
7388  fi
7389done
7390  done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7396if test -n "$ac_ct_OTOOL"; then
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7398$as_echo "$ac_ct_OTOOL" >&6; }
7399else
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404  if test "x$ac_ct_OTOOL" = x; then
7405    OTOOL=":"
7406  else
7407    case $cross_compiling:$ac_tool_warned in
7408yes:)
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411ac_tool_warned=yes ;;
7412esac
7413    OTOOL=$ac_ct_OTOOL
7414  fi
7415else
7416  OTOOL="$ac_cv_prog_OTOOL"
7417fi
7418
7419    if test -n "$ac_tool_prefix"; then
7420  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}otool64; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  if test -n "$OTOOL64"; then
7428  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433  IFS=$as_save_IFS
7434  test -z "$as_dir" && as_dir=.
7435    for ac_exec_ext in '' $ac_executable_extensions; do
7436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439    break 2
7440  fi
7441done
7442  done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447OTOOL64=$ac_cv_prog_OTOOL64
7448if test -n "$OTOOL64"; then
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7450$as_echo "$OTOOL64" >&6; }
7451else
7452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457fi
7458if test -z "$ac_cv_prog_OTOOL64"; then
7459  ac_ct_OTOOL64=$OTOOL64
7460  # Extract the first word of "otool64", so it can be a program name with args.
7461set dummy otool64; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  if test -n "$ac_ct_OTOOL64"; then
7468  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473  IFS=$as_save_IFS
7474  test -z "$as_dir" && as_dir=.
7475    for ac_exec_ext in '' $ac_executable_extensions; do
7476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477    ac_cv_prog_ac_ct_OTOOL64="otool64"
7478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479    break 2
7480  fi
7481done
7482  done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7488if test -n "$ac_ct_OTOOL64"; then
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7490$as_echo "$ac_ct_OTOOL64" >&6; }
7491else
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496  if test "x$ac_ct_OTOOL64" = x; then
7497    OTOOL64=":"
7498  else
7499    case $cross_compiling:$ac_tool_warned in
7500yes:)
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503ac_tool_warned=yes ;;
7504esac
7505    OTOOL64=$ac_ct_OTOOL64
7506  fi
7507else
7508  OTOOL64="$ac_cv_prog_OTOOL64"
7509fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7538$as_echo_n "checking for -single_module linker flag... " >&6; }
7539if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  lt_cv_apple_cc_single_mod=no
7543      if test -z "${LT_MULTI_MODULE}"; then
7544	# By default we will add the -single_module flag. You can override
7545	# by either setting the environment variable LT_MULTI_MODULE
7546	# non-empty at configure time, or by adding -multi_module to the
7547	# link flags.
7548	rm -rf libconftest.dylib*
7549	echo "int foo(void){return 1;}" > conftest.c
7550	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7551-dynamiclib -Wl,-single_module conftest.c" >&5
7552	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7553	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7554        _lt_result=$?
7555	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7556	  lt_cv_apple_cc_single_mod=yes
7557	else
7558	  cat conftest.err >&5
7559	fi
7560	rm -rf libconftest.dylib*
7561	rm -f conftest.*
7562      fi
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7565$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7566    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7567$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7568if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571  lt_cv_ld_exported_symbols_list=no
7572      save_LDFLAGS=$LDFLAGS
7573      echo "_main" > conftest.sym
7574      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7575      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h.  */
7577
7578int
7579main ()
7580{
7581
7582  ;
7583  return 0;
7584}
7585_ACEOF
7586if ac_fn_c_try_link "$LINENO"; then :
7587  lt_cv_ld_exported_symbols_list=yes
7588else
7589  lt_cv_ld_exported_symbols_list=no
7590fi
7591rm -f core conftest.err conftest.$ac_objext \
7592    conftest$ac_exeext conftest.$ac_ext
7593	LDFLAGS="$save_LDFLAGS"
7594
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7597$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7598    case $host_os in
7599    rhapsody* | darwin1.[012])
7600      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7601    darwin1.*)
7602      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7603    darwin*) # darwin 5.x on
7604      # if running on 10.5 or later, the deployment target defaults
7605      # to the OS version, if on x86, and 10.4, the deployment
7606      # target defaults to 10.4. Don't you love it?
7607      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7608	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7609	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610	10.[012]*)
7611	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7612	10.*)
7613	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7614      esac
7615    ;;
7616  esac
7617    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7618      _lt_dar_single_mod='$single_module'
7619    fi
7620    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7621      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7622    else
7623      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7624    fi
7625    if test "$DSYMUTIL" != ":"; then
7626      _lt_dsymutil='~$DSYMUTIL $lib || :'
7627    else
7628      _lt_dsymutil=
7629    fi
7630    ;;
7631  esac
7632
7633for ac_header in dlfcn.h
7634do :
7635  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7636"
7637if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7638  cat >>confdefs.h <<_ACEOF
7639#define HAVE_DLFCN_H 1
7640_ACEOF
7641
7642fi
7643
7644done
7645
7646
7647
7648# Set options
7649enable_win32_dll=yes
7650
7651case $host in
7652*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7653  if test -n "$ac_tool_prefix"; then
7654  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7655set dummy ${ac_tool_prefix}as; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; }
7658if test "${ac_cv_prog_AS+set}" = set; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  if test -n "$AS"; then
7662  ac_cv_prog_AS="$AS" # Let the user override the test.
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667  IFS=$as_save_IFS
7668  test -z "$as_dir" && as_dir=.
7669    for ac_exec_ext in '' $ac_executable_extensions; do
7670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671    ac_cv_prog_AS="${ac_tool_prefix}as"
7672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673    break 2
7674  fi
7675done
7676  done
7677IFS=$as_save_IFS
7678
7679fi
7680fi
7681AS=$ac_cv_prog_AS
7682if test -n "$AS"; then
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7684$as_echo "$AS" >&6; }
7685else
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689
7690
7691fi
7692if test -z "$ac_cv_prog_AS"; then
7693  ac_ct_AS=$AS
7694  # Extract the first word of "as", so it can be a program name with args.
7695set dummy as; ac_word=$2
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697$as_echo_n "checking for $ac_word... " >&6; }
7698if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  if test -n "$ac_ct_AS"; then
7702  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7703else
7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707  IFS=$as_save_IFS
7708  test -z "$as_dir" && as_dir=.
7709    for ac_exec_ext in '' $ac_executable_extensions; do
7710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711    ac_cv_prog_ac_ct_AS="as"
7712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713    break 2
7714  fi
7715done
7716  done
7717IFS=$as_save_IFS
7718
7719fi
7720fi
7721ac_ct_AS=$ac_cv_prog_ac_ct_AS
7722if test -n "$ac_ct_AS"; then
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7724$as_echo "$ac_ct_AS" >&6; }
7725else
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728fi
7729
7730  if test "x$ac_ct_AS" = x; then
7731    AS="false"
7732  else
7733    case $cross_compiling:$ac_tool_warned in
7734yes:)
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737ac_tool_warned=yes ;;
7738esac
7739    AS=$ac_ct_AS
7740  fi
7741else
7742  AS="$ac_cv_prog_AS"
7743fi
7744
7745  if test -n "$ac_tool_prefix"; then
7746  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7747set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749$as_echo_n "checking for $ac_word... " >&6; }
7750if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  if test -n "$DLLTOOL"; then
7754  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7755else
7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759  IFS=$as_save_IFS
7760  test -z "$as_dir" && as_dir=.
7761    for ac_exec_ext in '' $ac_executable_extensions; do
7762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765    break 2
7766  fi
7767done
7768  done
7769IFS=$as_save_IFS
7770
7771fi
7772fi
7773DLLTOOL=$ac_cv_prog_DLLTOOL
7774if test -n "$DLLTOOL"; then
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7776$as_echo "$DLLTOOL" >&6; }
7777else
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779$as_echo "no" >&6; }
7780fi
7781
7782
7783fi
7784if test -z "$ac_cv_prog_DLLTOOL"; then
7785  ac_ct_DLLTOOL=$DLLTOOL
7786  # Extract the first word of "dlltool", so it can be a program name with args.
7787set dummy dlltool; ac_word=$2
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789$as_echo_n "checking for $ac_word... " >&6; }
7790if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  if test -n "$ac_ct_DLLTOOL"; then
7794  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7795else
7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797for as_dir in $PATH
7798do
7799  IFS=$as_save_IFS
7800  test -z "$as_dir" && as_dir=.
7801    for ac_exec_ext in '' $ac_executable_extensions; do
7802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805    break 2
7806  fi
7807done
7808  done
7809IFS=$as_save_IFS
7810
7811fi
7812fi
7813ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7814if test -n "$ac_ct_DLLTOOL"; then
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7816$as_echo "$ac_ct_DLLTOOL" >&6; }
7817else
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819$as_echo "no" >&6; }
7820fi
7821
7822  if test "x$ac_ct_DLLTOOL" = x; then
7823    DLLTOOL="false"
7824  else
7825    case $cross_compiling:$ac_tool_warned in
7826yes:)
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829ac_tool_warned=yes ;;
7830esac
7831    DLLTOOL=$ac_ct_DLLTOOL
7832  fi
7833else
7834  DLLTOOL="$ac_cv_prog_DLLTOOL"
7835fi
7836
7837  if test -n "$ac_tool_prefix"; then
7838  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7839set dummy ${ac_tool_prefix}objdump; ac_word=$2
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  if test -n "$OBJDUMP"; then
7846  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853    for ac_exec_ext in '' $ac_executable_extensions; do
7854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860  done
7861IFS=$as_save_IFS
7862
7863fi
7864fi
7865OBJDUMP=$ac_cv_prog_OBJDUMP
7866if test -n "$OBJDUMP"; then
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7868$as_echo "$OBJDUMP" >&6; }
7869else
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
7872fi
7873
7874
7875fi
7876if test -z "$ac_cv_prog_OBJDUMP"; then
7877  ac_ct_OBJDUMP=$OBJDUMP
7878  # Extract the first word of "objdump", so it can be a program name with args.
7879set dummy objdump; ac_word=$2
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881$as_echo_n "checking for $ac_word... " >&6; }
7882if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7883  $as_echo_n "(cached) " >&6
7884else
7885  if test -n "$ac_ct_OBJDUMP"; then
7886  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893    for ac_exec_ext in '' $ac_executable_extensions; do
7894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897    break 2
7898  fi
7899done
7900  done
7901IFS=$as_save_IFS
7902
7903fi
7904fi
7905ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7906if test -n "$ac_ct_OBJDUMP"; then
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7908$as_echo "$ac_ct_OBJDUMP" >&6; }
7909else
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912fi
7913
7914  if test "x$ac_ct_OBJDUMP" = x; then
7915    OBJDUMP="false"
7916  else
7917    case $cross_compiling:$ac_tool_warned in
7918yes:)
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921ac_tool_warned=yes ;;
7922esac
7923    OBJDUMP=$ac_ct_OBJDUMP
7924  fi
7925else
7926  OBJDUMP="$ac_cv_prog_OBJDUMP"
7927fi
7928
7929  ;;
7930esac
7931
7932test -z "$AS" && AS=as
7933
7934
7935
7936
7937
7938test -z "$DLLTOOL" && DLLTOOL=dlltool
7939
7940
7941
7942
7943
7944test -z "$OBJDUMP" && OBJDUMP=objdump
7945
7946
7947
7948
7949# Check whether --enable-static was given.
7950if test "${enable_static+set}" = set; then :
7951  enableval=$enable_static; p=${PACKAGE-default}
7952    case $enableval in
7953    yes) enable_static=yes ;;
7954    no) enable_static=no ;;
7955    *)
7956     enable_static=no
7957      # Look at the argument we got.  We use all the common list separators.
7958      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7959      for pkg in $enableval; do
7960	IFS="$lt_save_ifs"
7961	if test "X$pkg" = "X$p"; then
7962	  enable_static=yes
7963	fi
7964      done
7965      IFS="$lt_save_ifs"
7966      ;;
7967    esac
7968else
7969  enable_static=no
7970fi
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981        enable_dlopen=no
7982
7983
7984
7985            # Check whether --enable-shared was given.
7986if test "${enable_shared+set}" = set; then :
7987  enableval=$enable_shared; p=${PACKAGE-default}
7988    case $enableval in
7989    yes) enable_shared=yes ;;
7990    no) enable_shared=no ;;
7991    *)
7992      enable_shared=no
7993      # Look at the argument we got.  We use all the common list separators.
7994      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7995      for pkg in $enableval; do
7996	IFS="$lt_save_ifs"
7997	if test "X$pkg" = "X$p"; then
7998	  enable_shared=yes
7999	fi
8000      done
8001      IFS="$lt_save_ifs"
8002      ;;
8003    esac
8004else
8005  enable_shared=yes
8006fi
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018# Check whether --with-pic was given.
8019if test "${with_pic+set}" = set; then :
8020  withval=$with_pic; pic_mode="$withval"
8021else
8022  pic_mode=default
8023fi
8024
8025
8026test -z "$pic_mode" && pic_mode=default
8027
8028
8029
8030
8031
8032
8033
8034  # Check whether --enable-fast-install was given.
8035if test "${enable_fast_install+set}" = set; then :
8036  enableval=$enable_fast_install; p=${PACKAGE-default}
8037    case $enableval in
8038    yes) enable_fast_install=yes ;;
8039    no) enable_fast_install=no ;;
8040    *)
8041      enable_fast_install=no
8042      # Look at the argument we got.  We use all the common list separators.
8043      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8044      for pkg in $enableval; do
8045	IFS="$lt_save_ifs"
8046	if test "X$pkg" = "X$p"; then
8047	  enable_fast_install=yes
8048	fi
8049      done
8050      IFS="$lt_save_ifs"
8051      ;;
8052    esac
8053else
8054  enable_fast_install=yes
8055fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067# This can be used to rebuild libtool when needed
8068LIBTOOL_DEPS="$ltmain"
8069
8070# Always use our own libtool.
8071LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097test -z "$LN_S" && LN_S="ln -s"
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112if test -n "${ZSH_VERSION+set}" ; then
8113   setopt NO_GLOB_SUBST
8114fi
8115
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8117$as_echo_n "checking for objdir... " >&6; }
8118if test "${lt_cv_objdir+set}" = set; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  rm -f .libs 2>/dev/null
8122mkdir .libs 2>/dev/null
8123if test -d .libs; then
8124  lt_cv_objdir=.libs
8125else
8126  # MS-DOS does not allow filenames that begin with a dot.
8127  lt_cv_objdir=_libs
8128fi
8129rmdir .libs 2>/dev/null
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8132$as_echo "$lt_cv_objdir" >&6; }
8133objdir=$lt_cv_objdir
8134
8135
8136
8137
8138
8139cat >>confdefs.h <<_ACEOF
8140#define LT_OBJDIR "$lt_cv_objdir/"
8141_ACEOF
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159case $host_os in
8160aix3*)
8161  # AIX sometimes has problems with the GCC collect2 program.  For some
8162  # reason, if we set the COLLECT_NAMES environment variable, the problems
8163  # vanish in a puff of smoke.
8164  if test "X${COLLECT_NAMES+set}" != Xset; then
8165    COLLECT_NAMES=
8166    export COLLECT_NAMES
8167  fi
8168  ;;
8169esac
8170
8171# Sed substitution that helps us do robust quoting.  It backslashifies
8172# metacharacters that are still active within double-quoted strings.
8173sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8174
8175# Same as above, but do not quote variable references.
8176double_quote_subst='s/\(["`\\]\)/\\\1/g'
8177
8178# Sed substitution to delay expansion of an escaped shell variable in a
8179# double_quote_subst'ed string.
8180delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8181
8182# Sed substitution to delay expansion of an escaped single quote.
8183delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8184
8185# Sed substitution to avoid accidental globbing in evaled expressions
8186no_glob_subst='s/\*/\\\*/g'
8187
8188# Global variables:
8189ofile=libtool
8190can_build_shared=yes
8191
8192# All known linkers require a `.a' archive for static linking (except MSVC,
8193# which needs '.lib').
8194libext=a
8195
8196with_gnu_ld="$lt_cv_prog_gnu_ld"
8197
8198old_CC="$CC"
8199old_CFLAGS="$CFLAGS"
8200
8201# Set sane defaults for various variables
8202test -z "$CC" && CC=cc
8203test -z "$LTCC" && LTCC=$CC
8204test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8205test -z "$LD" && LD=ld
8206test -z "$ac_objext" && ac_objext=o
8207
8208for cc_temp in $compiler""; do
8209  case $cc_temp in
8210    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8211    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8212    \-*) ;;
8213    *) break;;
8214  esac
8215done
8216cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8217
8218
8219# Only perform the check for file, if the check method requires it
8220test -z "$MAGIC_CMD" && MAGIC_CMD=file
8221case $deplibs_check_method in
8222file_magic*)
8223  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8225$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8226if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  case $MAGIC_CMD in
8230[\\/*] |  ?:[\\/]*)
8231  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8232  ;;
8233*)
8234  lt_save_MAGIC_CMD="$MAGIC_CMD"
8235  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8236  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8237  for ac_dir in $ac_dummy; do
8238    IFS="$lt_save_ifs"
8239    test -z "$ac_dir" && ac_dir=.
8240    if test -f $ac_dir/${ac_tool_prefix}file; then
8241      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8242      if test -n "$file_magic_test_file"; then
8243	case $deplibs_check_method in
8244	"file_magic "*)
8245	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8246	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8247	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8248	    $EGREP "$file_magic_regex" > /dev/null; then
8249	    :
8250	  else
8251	    cat <<_LT_EOF 1>&2
8252
8253*** Warning: the command libtool uses to detect shared libraries,
8254*** $file_magic_cmd, produces output that libtool cannot recognize.
8255*** The result is that libtool may fail to recognize shared libraries
8256*** as such.  This will affect the creation of libtool libraries that
8257*** depend on shared libraries, but programs linked with such libtool
8258*** libraries will work regardless of this problem.  Nevertheless, you
8259*** may want to report the problem to your system manager and/or to
8260*** bug-libtool@gnu.org
8261
8262_LT_EOF
8263	  fi ;;
8264	esac
8265      fi
8266      break
8267    fi
8268  done
8269  IFS="$lt_save_ifs"
8270  MAGIC_CMD="$lt_save_MAGIC_CMD"
8271  ;;
8272esac
8273fi
8274
8275MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8276if test -n "$MAGIC_CMD"; then
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8278$as_echo "$MAGIC_CMD" >&6; }
8279else
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283
8284
8285
8286
8287
8288if test -z "$lt_cv_path_MAGIC_CMD"; then
8289  if test -n "$ac_tool_prefix"; then
8290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8291$as_echo_n "checking for file... " >&6; }
8292if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  case $MAGIC_CMD in
8296[\\/*] |  ?:[\\/]*)
8297  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8298  ;;
8299*)
8300  lt_save_MAGIC_CMD="$MAGIC_CMD"
8301  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8302  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8303  for ac_dir in $ac_dummy; do
8304    IFS="$lt_save_ifs"
8305    test -z "$ac_dir" && ac_dir=.
8306    if test -f $ac_dir/file; then
8307      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8308      if test -n "$file_magic_test_file"; then
8309	case $deplibs_check_method in
8310	"file_magic "*)
8311	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8312	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8314	    $EGREP "$file_magic_regex" > /dev/null; then
8315	    :
8316	  else
8317	    cat <<_LT_EOF 1>&2
8318
8319*** Warning: the command libtool uses to detect shared libraries,
8320*** $file_magic_cmd, produces output that libtool cannot recognize.
8321*** The result is that libtool may fail to recognize shared libraries
8322*** as such.  This will affect the creation of libtool libraries that
8323*** depend on shared libraries, but programs linked with such libtool
8324*** libraries will work regardless of this problem.  Nevertheless, you
8325*** may want to report the problem to your system manager and/or to
8326*** bug-libtool@gnu.org
8327
8328_LT_EOF
8329	  fi ;;
8330	esac
8331      fi
8332      break
8333    fi
8334  done
8335  IFS="$lt_save_ifs"
8336  MAGIC_CMD="$lt_save_MAGIC_CMD"
8337  ;;
8338esac
8339fi
8340
8341MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8342if test -n "$MAGIC_CMD"; then
8343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8344$as_echo "$MAGIC_CMD" >&6; }
8345else
8346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
8348fi
8349
8350
8351  else
8352    MAGIC_CMD=:
8353  fi
8354fi
8355
8356  fi
8357  ;;
8358esac
8359
8360# Use C for the default configuration in the libtool script
8361
8362lt_save_CC="$CC"
8363ac_ext=c
8364ac_cpp='$CPP $CPPFLAGS'
8365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368
8369
8370# Source file extension for C test sources.
8371ac_ext=c
8372
8373# Object file extension for compiled C test sources.
8374objext=o
8375objext=$objext
8376
8377# Code to be used in simple compile tests
8378lt_simple_compile_test_code="int some_variable = 0;"
8379
8380# Code to be used in simple link tests
8381lt_simple_link_test_code='int main(){return(0);}'
8382
8383
8384
8385
8386
8387
8388
8389# If no C compiler was specified, use CC.
8390LTCC=${LTCC-"$CC"}
8391
8392# If no C compiler flags were specified, use CFLAGS.
8393LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8394
8395# Allow CC to be a program name with arguments.
8396compiler=$CC
8397
8398# Save the default compiler, since it gets overwritten when the other
8399# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8400compiler_DEFAULT=$CC
8401
8402# save warnings/boilerplate of simple test code
8403ac_outfile=conftest.$ac_objext
8404echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8405eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8406_lt_compiler_boilerplate=`cat conftest.err`
8407$RM conftest*
8408
8409ac_outfile=conftest.$ac_objext
8410echo "$lt_simple_link_test_code" >conftest.$ac_ext
8411eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8412_lt_linker_boilerplate=`cat conftest.err`
8413$RM -r conftest*
8414
8415
8416## CAVEAT EMPTOR:
8417## There is no encapsulation within the following macros, do not change
8418## the running order or otherwise move them around unless you know exactly
8419## what you are doing...
8420if test -n "$compiler"; then
8421
8422lt_prog_compiler_no_builtin_flag=
8423
8424if test "$GCC" = yes; then
8425  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8426
8427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8428$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8429if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  lt_cv_prog_compiler_rtti_exceptions=no
8433   ac_outfile=conftest.$ac_objext
8434   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435   lt_compiler_flag="-fno-rtti -fno-exceptions"
8436   # Insert the option either (1) after the last *FLAGS variable, or
8437   # (2) before a word containing "conftest.", or (3) at the end.
8438   # Note that $ac_compile itself does not contain backslashes and begins
8439   # with a dollar sign (not a hyphen), so the echo should work correctly.
8440   # The option is referenced via a variable to avoid confusing sed.
8441   lt_compile=`echo "$ac_compile" | $SED \
8442   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444   -e 's:$: $lt_compiler_flag:'`
8445   (eval echo "\"\$as_me:8445: $lt_compile\"" >&5)
8446   (eval "$lt_compile" 2>conftest.err)
8447   ac_status=$?
8448   cat conftest.err >&5
8449   echo "$as_me:8449: \$? = $ac_status" >&5
8450   if (exit $ac_status) && test -s "$ac_outfile"; then
8451     # The compiler can only warn and ignore the option if not recognized
8452     # So say no if there are warnings other than the usual output.
8453     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8454     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8456       lt_cv_prog_compiler_rtti_exceptions=yes
8457     fi
8458   fi
8459   $RM conftest*
8460
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8463$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8464
8465if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8466    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8467else
8468    :
8469fi
8470
8471fi
8472
8473
8474
8475
8476
8477
8478  lt_prog_compiler_wl=
8479lt_prog_compiler_pic=
8480lt_prog_compiler_static=
8481
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8483$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8484
8485  if test "$GCC" = yes; then
8486    lt_prog_compiler_wl='-Wl,'
8487    lt_prog_compiler_static='-static'
8488
8489    case $host_os in
8490      aix*)
8491      # All AIX code is PIC.
8492      if test "$host_cpu" = ia64; then
8493	# AIX 5 now supports IA64 processor
8494	lt_prog_compiler_static='-Bstatic'
8495      fi
8496      ;;
8497
8498    amigaos*)
8499      case $host_cpu in
8500      powerpc)
8501            # see comment about AmigaOS4 .so support
8502            lt_prog_compiler_pic='-fPIC'
8503        ;;
8504      m68k)
8505            # FIXME: we need at least 68020 code to build shared libraries, but
8506            # adding the `-m68020' flag to GCC prevents building anything better,
8507            # like `-m68040'.
8508            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8509        ;;
8510      esac
8511      ;;
8512
8513    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8514      # PIC is the default for these OSes.
8515      ;;
8516
8517    mingw* | cygwin* | pw32* | os2* | cegcc*)
8518      # This hack is so that the source file can tell whether it is being
8519      # built for inclusion in a dll (and should export symbols for example).
8520      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8521      # (--disable-auto-import) libraries
8522      lt_prog_compiler_pic='-DDLL_EXPORT'
8523      ;;
8524
8525    darwin* | rhapsody*)
8526      # PIC is the default on this platform
8527      # Common symbols not allowed in MH_DYLIB files
8528      lt_prog_compiler_pic='-fno-common'
8529      ;;
8530
8531    hpux*)
8532      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8533      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8534      # sets the default TLS model and affects inlining.
8535      case $host_cpu in
8536      hppa*64*)
8537	# +Z the default
8538	;;
8539      *)
8540	lt_prog_compiler_pic='-fPIC'
8541	;;
8542      esac
8543      ;;
8544
8545    interix[3-9]*)
8546      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8547      # Instead, we relocate shared libraries at runtime.
8548      ;;
8549
8550    msdosdjgpp*)
8551      # Just because we use GCC doesn't mean we suddenly get shared libraries
8552      # on systems that don't support them.
8553      lt_prog_compiler_can_build_shared=no
8554      enable_shared=no
8555      ;;
8556
8557    *nto* | *qnx*)
8558      # QNX uses GNU C++, but need to define -shared option too, otherwise
8559      # it will coredump.
8560      lt_prog_compiler_pic='-fPIC -shared'
8561      ;;
8562
8563    sysv4*MP*)
8564      if test -d /usr/nec; then
8565	lt_prog_compiler_pic=-Kconform_pic
8566      fi
8567      ;;
8568
8569    *)
8570      lt_prog_compiler_pic='-fPIC'
8571      ;;
8572    esac
8573  else
8574    # PORTME Check for flag to pass linker flags through the system compiler.
8575    case $host_os in
8576    aix*)
8577      lt_prog_compiler_wl='-Wl,'
8578      if test "$host_cpu" = ia64; then
8579	# AIX 5 now supports IA64 processor
8580	lt_prog_compiler_static='-Bstatic'
8581      else
8582	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8583      fi
8584      ;;
8585
8586    mingw* | cygwin* | pw32* | os2* | cegcc*)
8587      # This hack is so that the source file can tell whether it is being
8588      # built for inclusion in a dll (and should export symbols for example).
8589      lt_prog_compiler_pic='-DDLL_EXPORT'
8590      ;;
8591
8592    hpux9* | hpux10* | hpux11*)
8593      lt_prog_compiler_wl='-Wl,'
8594      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8595      # not for PA HP-UX.
8596      case $host_cpu in
8597      hppa*64*|ia64*)
8598	# +Z the default
8599	;;
8600      *)
8601	lt_prog_compiler_pic='+Z'
8602	;;
8603      esac
8604      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8605      lt_prog_compiler_static='${wl}-a ${wl}archive'
8606      ;;
8607
8608    irix5* | irix6* | nonstopux*)
8609      lt_prog_compiler_wl='-Wl,'
8610      # PIC (with -KPIC) is the default.
8611      lt_prog_compiler_static='-non_shared'
8612      ;;
8613
8614    linux* | k*bsd*-gnu)
8615      case $cc_basename in
8616      # old Intel for x86_64 which still supported -KPIC.
8617      ecc*)
8618	lt_prog_compiler_wl='-Wl,'
8619	lt_prog_compiler_pic='-KPIC'
8620	lt_prog_compiler_static='-static'
8621        ;;
8622      # icc used to be incompatible with GCC.
8623      # ICC 10 doesn't accept -KPIC any more.
8624      icc* | ifort*)
8625	lt_prog_compiler_wl='-Wl,'
8626	lt_prog_compiler_pic='-fPIC'
8627	lt_prog_compiler_static='-static'
8628        ;;
8629      # Lahey Fortran 8.1.
8630      lf95*)
8631	lt_prog_compiler_wl='-Wl,'
8632	lt_prog_compiler_pic='--shared'
8633	lt_prog_compiler_static='--static'
8634	;;
8635      pgcc* | pgf77* | pgf90* | pgf95*)
8636        # Portland Group compilers (*not* the Pentium gcc compiler,
8637	# which looks to be a dead project)
8638	lt_prog_compiler_wl='-Wl,'
8639	lt_prog_compiler_pic='-fpic'
8640	lt_prog_compiler_static='-Bstatic'
8641        ;;
8642      ccc*)
8643        lt_prog_compiler_wl='-Wl,'
8644        # All Alpha code is PIC.
8645        lt_prog_compiler_static='-non_shared'
8646        ;;
8647      xl*)
8648	# IBM XL C 8.0/Fortran 10.1 on PPC
8649	lt_prog_compiler_wl='-Wl,'
8650	lt_prog_compiler_pic='-qpic'
8651	lt_prog_compiler_static='-qstaticlink'
8652	;;
8653      *)
8654	case `$CC -V 2>&1 | sed 5q` in
8655	*Sun\ C*)
8656	  # Sun C 5.9
8657	  lt_prog_compiler_pic='-KPIC'
8658	  lt_prog_compiler_static='-Bstatic'
8659	  lt_prog_compiler_wl='-Wl,'
8660	  ;;
8661	*Sun\ F*)
8662	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8663	  lt_prog_compiler_pic='-KPIC'
8664	  lt_prog_compiler_static='-Bstatic'
8665	  lt_prog_compiler_wl=''
8666	  ;;
8667	esac
8668	;;
8669      esac
8670      ;;
8671
8672    newsos6)
8673      lt_prog_compiler_pic='-KPIC'
8674      lt_prog_compiler_static='-Bstatic'
8675      ;;
8676
8677    *nto* | *qnx*)
8678      # QNX uses GNU C++, but need to define -shared option too, otherwise
8679      # it will coredump.
8680      lt_prog_compiler_pic='-fPIC -shared'
8681      ;;
8682
8683    osf3* | osf4* | osf5*)
8684      lt_prog_compiler_wl='-Wl,'
8685      # All OSF/1 code is PIC.
8686      lt_prog_compiler_static='-non_shared'
8687      ;;
8688
8689    rdos*)
8690      lt_prog_compiler_static='-non_shared'
8691      ;;
8692
8693    solaris*)
8694      lt_prog_compiler_pic='-KPIC'
8695      lt_prog_compiler_static='-Bstatic'
8696      case $cc_basename in
8697      f77* | f90* | f95*)
8698	lt_prog_compiler_wl='-Qoption ld ';;
8699      *)
8700	lt_prog_compiler_wl='-Wl,';;
8701      esac
8702      ;;
8703
8704    sunos4*)
8705      lt_prog_compiler_wl='-Qoption ld '
8706      lt_prog_compiler_pic='-PIC'
8707      lt_prog_compiler_static='-Bstatic'
8708      ;;
8709
8710    sysv4 | sysv4.2uw2* | sysv4.3*)
8711      lt_prog_compiler_wl='-Wl,'
8712      lt_prog_compiler_pic='-KPIC'
8713      lt_prog_compiler_static='-Bstatic'
8714      ;;
8715
8716    sysv4*MP*)
8717      if test -d /usr/nec ;then
8718	lt_prog_compiler_pic='-Kconform_pic'
8719	lt_prog_compiler_static='-Bstatic'
8720      fi
8721      ;;
8722
8723    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8724      lt_prog_compiler_wl='-Wl,'
8725      lt_prog_compiler_pic='-KPIC'
8726      lt_prog_compiler_static='-Bstatic'
8727      ;;
8728
8729    unicos*)
8730      lt_prog_compiler_wl='-Wl,'
8731      lt_prog_compiler_can_build_shared=no
8732      ;;
8733
8734    uts4*)
8735      lt_prog_compiler_pic='-pic'
8736      lt_prog_compiler_static='-Bstatic'
8737      ;;
8738
8739    *)
8740      lt_prog_compiler_can_build_shared=no
8741      ;;
8742    esac
8743  fi
8744
8745case $host_os in
8746  # For platforms which do not support PIC, -DPIC is meaningless:
8747  *djgpp*)
8748    lt_prog_compiler_pic=
8749    ;;
8750  *)
8751    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8752    ;;
8753esac
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8755$as_echo "$lt_prog_compiler_pic" >&6; }
8756
8757
8758
8759
8760
8761
8762#
8763# Check to make sure the PIC flag actually works.
8764#
8765if test -n "$lt_prog_compiler_pic"; then
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8767$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8768if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8769  $as_echo_n "(cached) " >&6
8770else
8771  lt_cv_prog_compiler_pic_works=no
8772   ac_outfile=conftest.$ac_objext
8773   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8775   # Insert the option either (1) after the last *FLAGS variable, or
8776   # (2) before a word containing "conftest.", or (3) at the end.
8777   # Note that $ac_compile itself does not contain backslashes and begins
8778   # with a dollar sign (not a hyphen), so the echo should work correctly.
8779   # The option is referenced via a variable to avoid confusing sed.
8780   lt_compile=`echo "$ac_compile" | $SED \
8781   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783   -e 's:$: $lt_compiler_flag:'`
8784   (eval echo "\"\$as_me:8784: $lt_compile\"" >&5)
8785   (eval "$lt_compile" 2>conftest.err)
8786   ac_status=$?
8787   cat conftest.err >&5
8788   echo "$as_me:8788: \$? = $ac_status" >&5
8789   if (exit $ac_status) && test -s "$ac_outfile"; then
8790     # The compiler can only warn and ignore the option if not recognized
8791     # So say no if there are warnings other than the usual output.
8792     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8793     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8794     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8795       lt_cv_prog_compiler_pic_works=yes
8796     fi
8797   fi
8798   $RM conftest*
8799
8800fi
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8802$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8803
8804if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8805    case $lt_prog_compiler_pic in
8806     "" | " "*) ;;
8807     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8808     esac
8809else
8810    lt_prog_compiler_pic=
8811     lt_prog_compiler_can_build_shared=no
8812fi
8813
8814fi
8815
8816
8817
8818
8819
8820
8821#
8822# Check to make sure the static flag actually works.
8823#
8824wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8826$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8827if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  lt_cv_prog_compiler_static_works=no
8831   save_LDFLAGS="$LDFLAGS"
8832   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8833   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8834   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8835     # The linker can only warn and ignore the option if not recognized
8836     # So say no if there are warnings
8837     if test -s conftest.err; then
8838       # Append any errors to the config.log.
8839       cat conftest.err 1>&5
8840       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8841       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8842       if diff conftest.exp conftest.er2 >/dev/null; then
8843         lt_cv_prog_compiler_static_works=yes
8844       fi
8845     else
8846       lt_cv_prog_compiler_static_works=yes
8847     fi
8848   fi
8849   $RM -r conftest*
8850   LDFLAGS="$save_LDFLAGS"
8851
8852fi
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8854$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8855
8856if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8857    :
8858else
8859    lt_prog_compiler_static=
8860fi
8861
8862
8863
8864
8865
8866
8867
8868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8869$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8870if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  lt_cv_prog_compiler_c_o=no
8874   $RM -r conftest 2>/dev/null
8875   mkdir conftest
8876   cd conftest
8877   mkdir out
8878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879
8880   lt_compiler_flag="-o out/conftest2.$ac_objext"
8881   # Insert the option either (1) after the last *FLAGS variable, or
8882   # (2) before a word containing "conftest.", or (3) at the end.
8883   # Note that $ac_compile itself does not contain backslashes and begins
8884   # with a dollar sign (not a hyphen), so the echo should work correctly.
8885   lt_compile=`echo "$ac_compile" | $SED \
8886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888   -e 's:$: $lt_compiler_flag:'`
8889   (eval echo "\"\$as_me:8889: $lt_compile\"" >&5)
8890   (eval "$lt_compile" 2>out/conftest.err)
8891   ac_status=$?
8892   cat out/conftest.err >&5
8893   echo "$as_me:8893: \$? = $ac_status" >&5
8894   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8895   then
8896     # The compiler can only warn and ignore the option if not recognized
8897     # So say no if there are warnings
8898     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8899     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8900     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8901       lt_cv_prog_compiler_c_o=yes
8902     fi
8903   fi
8904   chmod u+w . 2>&5
8905   $RM conftest*
8906   # SGI C++ compiler will create directory out/ii_files/ for
8907   # template instantiation
8908   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8909   $RM out/* && rmdir out
8910   cd ..
8911   $RM -r conftest
8912   $RM conftest*
8913
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8916$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8917
8918
8919
8920
8921
8922
8923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8924$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8925if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  lt_cv_prog_compiler_c_o=no
8929   $RM -r conftest 2>/dev/null
8930   mkdir conftest
8931   cd conftest
8932   mkdir out
8933   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8934
8935   lt_compiler_flag="-o out/conftest2.$ac_objext"
8936   # Insert the option either (1) after the last *FLAGS variable, or
8937   # (2) before a word containing "conftest.", or (3) at the end.
8938   # Note that $ac_compile itself does not contain backslashes and begins
8939   # with a dollar sign (not a hyphen), so the echo should work correctly.
8940   lt_compile=`echo "$ac_compile" | $SED \
8941   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8942   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8943   -e 's:$: $lt_compiler_flag:'`
8944   (eval echo "\"\$as_me:8944: $lt_compile\"" >&5)
8945   (eval "$lt_compile" 2>out/conftest.err)
8946   ac_status=$?
8947   cat out/conftest.err >&5
8948   echo "$as_me:8948: \$? = $ac_status" >&5
8949   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8950   then
8951     # The compiler can only warn and ignore the option if not recognized
8952     # So say no if there are warnings
8953     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8954     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8955     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8956       lt_cv_prog_compiler_c_o=yes
8957     fi
8958   fi
8959   chmod u+w . 2>&5
8960   $RM conftest*
8961   # SGI C++ compiler will create directory out/ii_files/ for
8962   # template instantiation
8963   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8964   $RM out/* && rmdir out
8965   cd ..
8966   $RM -r conftest
8967   $RM conftest*
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8971$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8972
8973
8974
8975
8976hard_links="nottested"
8977if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8978  # do not overwrite the value of need_locks provided by the user
8979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8980$as_echo_n "checking if we can lock with hard links... " >&6; }
8981  hard_links=yes
8982  $RM conftest*
8983  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8984  touch conftest.a
8985  ln conftest.a conftest.b 2>&5 || hard_links=no
8986  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8988$as_echo "$hard_links" >&6; }
8989  if test "$hard_links" = no; then
8990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8991$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8992    need_locks=warn
8993  fi
8994else
8995  need_locks=no
8996fi
8997
8998
8999
9000
9001
9002
9003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9004$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9005
9006  runpath_var=
9007  allow_undefined_flag=
9008  always_export_symbols=no
9009  archive_cmds=
9010  archive_expsym_cmds=
9011  compiler_needs_object=no
9012  enable_shared_with_static_runtimes=no
9013  export_dynamic_flag_spec=
9014  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9015  hardcode_automatic=no
9016  hardcode_direct=no
9017  hardcode_direct_absolute=no
9018  hardcode_libdir_flag_spec=
9019  hardcode_libdir_flag_spec_ld=
9020  hardcode_libdir_separator=
9021  hardcode_minus_L=no
9022  hardcode_shlibpath_var=unsupported
9023  inherit_rpath=no
9024  link_all_deplibs=unknown
9025  module_cmds=
9026  module_expsym_cmds=
9027  old_archive_from_new_cmds=
9028  old_archive_from_expsyms_cmds=
9029  thread_safe_flag_spec=
9030  whole_archive_flag_spec=
9031  # include_expsyms should be a list of space-separated symbols to be *always*
9032  # included in the symbol list
9033  include_expsyms=
9034  # exclude_expsyms can be an extended regexp of symbols to exclude
9035  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9036  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9037  # as well as any symbol that contains `d'.
9038  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9039  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9040  # platforms (ab)use it in PIC code, but their linkers get confused if
9041  # the symbol is explicitly referenced.  Since portable code cannot
9042  # rely on this symbol name, it's probably fine to never include it in
9043  # preloaded symbol tables.
9044  # Exclude shared library initialization/finalization symbols.
9045  extract_expsyms_cmds=
9046
9047  case $host_os in
9048  cygwin* | mingw* | pw32* | cegcc*)
9049    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9050    # When not using gcc, we currently assume that we are using
9051    # Microsoft Visual C++.
9052    if test "$GCC" != yes; then
9053      with_gnu_ld=no
9054    fi
9055    ;;
9056  interix*)
9057    # we just hope/assume this is gcc and not c89 (= MSVC++)
9058    with_gnu_ld=yes
9059    ;;
9060  openbsd*)
9061    with_gnu_ld=no
9062    ;;
9063  linux* | k*bsd*-gnu)
9064    link_all_deplibs=no
9065    ;;
9066  esac
9067
9068  ld_shlibs=yes
9069  if test "$with_gnu_ld" = yes; then
9070    # If archive_cmds runs LD, not CC, wlarc should be empty
9071    wlarc='${wl}'
9072
9073    # Set some defaults for GNU ld with shared library support. These
9074    # are reset later if shared libraries are not supported. Putting them
9075    # here allows them to be overridden if necessary.
9076    runpath_var=LD_RUN_PATH
9077    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078    export_dynamic_flag_spec='${wl}--export-dynamic'
9079    # ancient GNU ld didn't support --whole-archive et. al.
9080    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9081      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9082    else
9083      whole_archive_flag_spec=
9084    fi
9085    supports_anon_versioning=no
9086    case `$LD -v 2>&1` in
9087      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9088      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9089      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9090      *\ 2.11.*) ;; # other 2.11 versions
9091      *) supports_anon_versioning=yes ;;
9092    esac
9093
9094    # See if GNU ld supports shared libraries.
9095    case $host_os in
9096    aix[3-9]*)
9097      # On AIX/PPC, the GNU linker is very broken
9098      if test "$host_cpu" != ia64; then
9099	ld_shlibs=no
9100	cat <<_LT_EOF 1>&2
9101
9102*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9103*** to be unable to reliably create shared libraries on AIX.
9104*** Therefore, libtool is disabling shared libraries support.  If you
9105*** really care for shared libraries, you may want to modify your PATH
9106*** so that a non-GNU linker is found, and then restart.
9107
9108_LT_EOF
9109      fi
9110      ;;
9111
9112    amigaos*)
9113      case $host_cpu in
9114      powerpc)
9115            # see comment about AmigaOS4 .so support
9116            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117            archive_expsym_cmds=''
9118        ;;
9119      m68k)
9120            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)'
9121            hardcode_libdir_flag_spec='-L$libdir'
9122            hardcode_minus_L=yes
9123        ;;
9124      esac
9125      ;;
9126
9127    beos*)
9128      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9129	allow_undefined_flag=unsupported
9130	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9131	# support --undefined.  This deserves some investigation.  FIXME
9132	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133      else
9134	ld_shlibs=no
9135      fi
9136      ;;
9137
9138    cygwin* | mingw* | pw32* | cegcc*)
9139      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9140      # as there is no search path for DLLs.
9141      hardcode_libdir_flag_spec='-L$libdir'
9142      allow_undefined_flag=unsupported
9143      always_export_symbols=no
9144      enable_shared_with_static_runtimes=yes
9145      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9146
9147      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9148        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9149	# If the export-symbols file already is a .def file (1st line
9150	# is EXPORTS), use it as is; otherwise, prepend...
9151	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9152	  cp $export_symbols $output_objdir/$soname.def;
9153	else
9154	  echo EXPORTS > $output_objdir/$soname.def;
9155	  cat $export_symbols >> $output_objdir/$soname.def;
9156	fi~
9157	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9158      else
9159	ld_shlibs=no
9160      fi
9161      ;;
9162
9163    interix[3-9]*)
9164      hardcode_direct=no
9165      hardcode_shlibpath_var=no
9166      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9167      export_dynamic_flag_spec='${wl}-E'
9168      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9169      # Instead, shared libraries are loaded at an image base (0x10000000 by
9170      # default) and relocated if they conflict, which is a slow very memory
9171      # consuming and fragmenting process.  To avoid this, we pick a random,
9172      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9173      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9174      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9175      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9176      ;;
9177
9178    gnu* | linux* | tpf* | k*bsd*-gnu)
9179      tmp_diet=no
9180      if test "$host_os" = linux-dietlibc; then
9181	case $cc_basename in
9182	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9183	esac
9184      fi
9185      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9186	 && test "$tmp_diet" = no
9187      then
9188	tmp_addflag=
9189	tmp_sharedflag='-shared'
9190	case $cc_basename,$host_cpu in
9191        pgcc*)				# Portland Group C compiler
9192	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9193	  tmp_addflag=' $pic_flag'
9194	  ;;
9195	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9196	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9197	  tmp_addflag=' $pic_flag -Mnomain' ;;
9198	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9199	  tmp_addflag=' -i_dynamic' ;;
9200	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9201	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9202	ifc* | ifort*)			# Intel Fortran compiler
9203	  tmp_addflag=' -nofor_main' ;;
9204	lf95*)				# Lahey Fortran 8.1
9205	  whole_archive_flag_spec=
9206	  tmp_sharedflag='--shared' ;;
9207	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9208	  tmp_sharedflag='-qmkshrobj'
9209	  tmp_addflag= ;;
9210	esac
9211	case `$CC -V 2>&1 | sed 5q` in
9212	*Sun\ C*)			# Sun C 5.9
9213	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9214	  compiler_needs_object=yes
9215	  tmp_sharedflag='-G' ;;
9216	*Sun\ F*)			# Sun Fortran 8.3
9217	  tmp_sharedflag='-G' ;;
9218	esac
9219	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220
9221        if test "x$supports_anon_versioning" = xyes; then
9222          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9223	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9224	    echo "local: *; };" >> $output_objdir/$libname.ver~
9225	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9226        fi
9227
9228	case $cc_basename in
9229	xlf*)
9230	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9231	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9232	  hardcode_libdir_flag_spec=
9233	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9234	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9235	  if test "x$supports_anon_versioning" = xyes; then
9236	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238	      echo "local: *; };" >> $output_objdir/$libname.ver~
9239	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9240	  fi
9241	  ;;
9242	esac
9243      else
9244        ld_shlibs=no
9245      fi
9246      ;;
9247
9248    netbsd* | netbsdelf*-gnu)
9249      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9251	wlarc=
9252      else
9253	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255      fi
9256      ;;
9257
9258    solaris*)
9259      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9260	ld_shlibs=no
9261	cat <<_LT_EOF 1>&2
9262
9263*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9264*** create shared libraries on Solaris systems.  Therefore, libtool
9265*** is disabling shared libraries support.  We urge you to upgrade GNU
9266*** binutils to release 2.9.1 or newer.  Another option is to modify
9267*** your PATH or compiler configuration so that the native linker is
9268*** used, and then restart.
9269
9270_LT_EOF
9271      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274      else
9275	ld_shlibs=no
9276      fi
9277      ;;
9278
9279    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9280      case `$LD -v 2>&1` in
9281        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9282	ld_shlibs=no
9283	cat <<_LT_EOF 1>&2
9284
9285*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9286*** reliably create shared libraries on SCO systems.  Therefore, libtool
9287*** is disabling shared libraries support.  We urge you to upgrade GNU
9288*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9289*** your PATH or compiler configuration so that the native linker is
9290*** used, and then restart.
9291
9292_LT_EOF
9293	;;
9294	*)
9295	  # For security reasons, it is highly recommended that you always
9296	  # use absolute paths for naming shared libraries, and exclude the
9297	  # DT_RUNPATH tag from executables and libraries.  But doing so
9298	  # requires that you compile everything twice, which is a pain.
9299	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303	  else
9304	    ld_shlibs=no
9305	  fi
9306	;;
9307      esac
9308      ;;
9309
9310    sunos4*)
9311      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9312      wlarc=
9313      hardcode_direct=yes
9314      hardcode_shlibpath_var=no
9315      ;;
9316
9317    *)
9318      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321      else
9322	ld_shlibs=no
9323      fi
9324      ;;
9325    esac
9326
9327    if test "$ld_shlibs" = no; then
9328      runpath_var=
9329      hardcode_libdir_flag_spec=
9330      export_dynamic_flag_spec=
9331      whole_archive_flag_spec=
9332    fi
9333  else
9334    # PORTME fill in a description of your system's linker (not GNU ld)
9335    case $host_os in
9336    aix3*)
9337      allow_undefined_flag=unsupported
9338      always_export_symbols=yes
9339      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'
9340      # Note: this linker hardcodes the directories in LIBPATH if there
9341      # are no directories specified by -L.
9342      hardcode_minus_L=yes
9343      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9344	# Neither direct hardcoding nor static linking is supported with a
9345	# broken collect2.
9346	hardcode_direct=unsupported
9347      fi
9348      ;;
9349
9350    aix[4-9]*)
9351      if test "$host_cpu" = ia64; then
9352	# On IA64, the linker does run time linking by default, so we don't
9353	# have to do anything special.
9354	aix_use_runtimelinking=no
9355	exp_sym_flag='-Bexport'
9356	no_entry_flag=""
9357      else
9358	# If we're using GNU nm, then we don't want the "-C" option.
9359	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9360	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9361	  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'
9362	else
9363	  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'
9364	fi
9365	aix_use_runtimelinking=no
9366
9367	# Test if we are trying to use run time linking or normal
9368	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9369	# need to do runtime linking.
9370	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9371	  for ld_flag in $LDFLAGS; do
9372	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9373	    aix_use_runtimelinking=yes
9374	    break
9375	  fi
9376	  done
9377	  ;;
9378	esac
9379
9380	exp_sym_flag='-bexport'
9381	no_entry_flag='-bnoentry'
9382      fi
9383
9384      # When large executables or shared objects are built, AIX ld can
9385      # have problems creating the table of contents.  If linking a library
9386      # or program results in "error TOC overflow" add -mminimal-toc to
9387      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9388      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9389
9390      archive_cmds=''
9391      hardcode_direct=yes
9392      hardcode_direct_absolute=yes
9393      hardcode_libdir_separator=':'
9394      link_all_deplibs=yes
9395      file_list_spec='${wl}-f,'
9396
9397      if test "$GCC" = yes; then
9398	case $host_os in aix4.[012]|aix4.[012].*)
9399	# We only want to do this on AIX 4.2 and lower, the check
9400	# below for broken collect2 doesn't work under 4.3+
9401	  collect2name=`${CC} -print-prog-name=collect2`
9402	  if test -f "$collect2name" &&
9403	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9404	  then
9405	  # We have reworked collect2
9406	  :
9407	  else
9408	  # We have old collect2
9409	  hardcode_direct=unsupported
9410	  # It fails to find uninstalled libraries when the uninstalled
9411	  # path is not listed in the libpath.  Setting hardcode_minus_L
9412	  # to unsupported forces relinking
9413	  hardcode_minus_L=yes
9414	  hardcode_libdir_flag_spec='-L$libdir'
9415	  hardcode_libdir_separator=
9416	  fi
9417	  ;;
9418	esac
9419	shared_flag='-shared'
9420	if test "$aix_use_runtimelinking" = yes; then
9421	  shared_flag="$shared_flag "'${wl}-G'
9422	fi
9423	link_all_deplibs=no
9424      else
9425	# not using gcc
9426	if test "$host_cpu" = ia64; then
9427	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9428	# chokes on -Wl,-G. The following line is correct:
9429	  shared_flag='-G'
9430	else
9431	  if test "$aix_use_runtimelinking" = yes; then
9432	    shared_flag='${wl}-G'
9433	  else
9434	    shared_flag='${wl}-bM:SRE'
9435	  fi
9436	fi
9437      fi
9438
9439      export_dynamic_flag_spec='${wl}-bexpall'
9440      # It seems that -bexpall does not export symbols beginning with
9441      # underscore (_), so it is better to generate a list of symbols to export.
9442      always_export_symbols=yes
9443      if test "$aix_use_runtimelinking" = yes; then
9444	# Warning - without using the other runtime loading flags (-brtl),
9445	# -berok will link without error, but may produce a broken library.
9446	allow_undefined_flag='-berok'
9447        # Determine the default libpath from the value encoded in an
9448        # empty executable.
9449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450/* end confdefs.h.  */
9451
9452int
9453main ()
9454{
9455
9456  ;
9457  return 0;
9458}
9459_ACEOF
9460if ac_fn_c_try_link "$LINENO"; then :
9461
9462lt_aix_libpath_sed='
9463    /Import File Strings/,/^$/ {
9464	/^0/ {
9465	    s/^0  *\(.*\)$/\1/
9466	    p
9467	}
9468    }'
9469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9470# Check for a 64-bit object if we didn't find anything.
9471if test -z "$aix_libpath"; then
9472  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9473fi
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476    conftest$ac_exeext conftest.$ac_ext
9477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9478
9479        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9480        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9481      else
9482	if test "$host_cpu" = ia64; then
9483	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9484	  allow_undefined_flag="-z nodefs"
9485	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9486	else
9487	 # Determine the default libpath from the value encoded in an
9488	 # empty executable.
9489	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490/* end confdefs.h.  */
9491
9492int
9493main ()
9494{
9495
9496  ;
9497  return 0;
9498}
9499_ACEOF
9500if ac_fn_c_try_link "$LINENO"; then :
9501
9502lt_aix_libpath_sed='
9503    /Import File Strings/,/^$/ {
9504	/^0/ {
9505	    s/^0  *\(.*\)$/\1/
9506	    p
9507	}
9508    }'
9509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9510# Check for a 64-bit object if we didn't find anything.
9511if test -z "$aix_libpath"; then
9512  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513fi
9514fi
9515rm -f core conftest.err conftest.$ac_objext \
9516    conftest$ac_exeext conftest.$ac_ext
9517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9518
9519	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9520	  # Warning - without using the other run time loading flags,
9521	  # -berok will link without error, but may produce a broken library.
9522	  no_undefined_flag=' ${wl}-bernotok'
9523	  allow_undefined_flag=' ${wl}-berok'
9524	  # Exported symbols can be pulled into shared objects from archives
9525	  whole_archive_flag_spec='$convenience'
9526	  archive_cmds_need_lc=yes
9527	  # This is similar to how AIX traditionally builds its shared libraries.
9528	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9529	fi
9530      fi
9531      ;;
9532
9533    amigaos*)
9534      case $host_cpu in
9535      powerpc)
9536            # see comment about AmigaOS4 .so support
9537            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538            archive_expsym_cmds=''
9539        ;;
9540      m68k)
9541            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)'
9542            hardcode_libdir_flag_spec='-L$libdir'
9543            hardcode_minus_L=yes
9544        ;;
9545      esac
9546      ;;
9547
9548    bsdi[45]*)
9549      export_dynamic_flag_spec=-rdynamic
9550      ;;
9551
9552    cygwin* | mingw* | pw32* | cegcc*)
9553      # When not using gcc, we currently assume that we are using
9554      # Microsoft Visual C++.
9555      # hardcode_libdir_flag_spec is actually meaningless, as there is
9556      # no search path for DLLs.
9557      hardcode_libdir_flag_spec=' '
9558      allow_undefined_flag=unsupported
9559      # Tell ltmain to make .lib files, not .a files.
9560      libext=lib
9561      # Tell ltmain to make .dll files, not .so files.
9562      shrext_cmds=".dll"
9563      # FIXME: Setting linknames here is a bad hack.
9564      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9565      # The linker will automatically build a .lib file if we build a DLL.
9566      old_archive_from_new_cmds='true'
9567      # FIXME: Should let the user specify the lib program.
9568      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9569      fix_srcfile_path='`cygpath -w "$srcfile"`'
9570      enable_shared_with_static_runtimes=yes
9571      ;;
9572
9573    darwin* | rhapsody*)
9574
9575
9576  archive_cmds_need_lc=no
9577  hardcode_direct=no
9578  hardcode_automatic=yes
9579  hardcode_shlibpath_var=unsupported
9580  whole_archive_flag_spec=''
9581  link_all_deplibs=yes
9582  allow_undefined_flag="$_lt_dar_allow_undefined"
9583  case $cc_basename in
9584     ifort*) _lt_dar_can_shared=yes ;;
9585     *) _lt_dar_can_shared=$GCC ;;
9586  esac
9587  if test "$_lt_dar_can_shared" = "yes"; then
9588    output_verbose_link_cmd=echo
9589    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9590    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9591    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9592    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9593
9594  else
9595  ld_shlibs=no
9596  fi
9597
9598      ;;
9599
9600    dgux*)
9601      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602      hardcode_libdir_flag_spec='-L$libdir'
9603      hardcode_shlibpath_var=no
9604      ;;
9605
9606    freebsd1*)
9607      ld_shlibs=no
9608      ;;
9609
9610    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9611    # support.  Future versions do this automatically, but an explicit c++rt0.o
9612    # does not break anything, and helps significantly (at the cost of a little
9613    # extra space).
9614    freebsd2.2*)
9615      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9616      hardcode_libdir_flag_spec='-R$libdir'
9617      hardcode_direct=yes
9618      hardcode_shlibpath_var=no
9619      ;;
9620
9621    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9622    freebsd2*)
9623      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624      hardcode_direct=yes
9625      hardcode_minus_L=yes
9626      hardcode_shlibpath_var=no
9627      ;;
9628
9629    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9630    freebsd* | dragonfly*)
9631      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9632      hardcode_libdir_flag_spec='-R$libdir'
9633      hardcode_direct=yes
9634      hardcode_shlibpath_var=no
9635      ;;
9636
9637    hpux9*)
9638      if test "$GCC" = yes; then
9639	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'
9640      else
9641	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'
9642      fi
9643      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9644      hardcode_libdir_separator=:
9645      hardcode_direct=yes
9646
9647      # hardcode_minus_L: Not really in the search PATH,
9648      # but as the default location of the library.
9649      hardcode_minus_L=yes
9650      export_dynamic_flag_spec='${wl}-E'
9651      ;;
9652
9653    hpux10*)
9654      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9655	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656      else
9657	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658      fi
9659      if test "$with_gnu_ld" = no; then
9660	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661	hardcode_libdir_flag_spec_ld='+b $libdir'
9662	hardcode_libdir_separator=:
9663	hardcode_direct=yes
9664	hardcode_direct_absolute=yes
9665	export_dynamic_flag_spec='${wl}-E'
9666	# hardcode_minus_L: Not really in the search PATH,
9667	# but as the default location of the library.
9668	hardcode_minus_L=yes
9669      fi
9670      ;;
9671
9672    hpux11*)
9673      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9674	case $host_cpu in
9675	hppa*64*)
9676	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9677	  ;;
9678	ia64*)
9679	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9680	  ;;
9681	*)
9682	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683	  ;;
9684	esac
9685      else
9686	case $host_cpu in
9687	hppa*64*)
9688	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689	  ;;
9690	ia64*)
9691	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692	  ;;
9693	*)
9694	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9695	  ;;
9696	esac
9697      fi
9698      if test "$with_gnu_ld" = no; then
9699	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9700	hardcode_libdir_separator=:
9701
9702	case $host_cpu in
9703	hppa*64*|ia64*)
9704	  hardcode_direct=no
9705	  hardcode_shlibpath_var=no
9706	  ;;
9707	*)
9708	  hardcode_direct=yes
9709	  hardcode_direct_absolute=yes
9710	  export_dynamic_flag_spec='${wl}-E'
9711
9712	  # hardcode_minus_L: Not really in the search PATH,
9713	  # but as the default location of the library.
9714	  hardcode_minus_L=yes
9715	  ;;
9716	esac
9717      fi
9718      ;;
9719
9720    irix5* | irix6* | nonstopux*)
9721      if test "$GCC" = yes; then
9722	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9723	# Try to use the -exported_symbol ld option, if it does not
9724	# work, assume that -exports_file does not work either and
9725	# implicitly export all symbols.
9726        save_LDFLAGS="$LDFLAGS"
9727        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9728        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729/* end confdefs.h.  */
9730int foo(void) {}
9731_ACEOF
9732if ac_fn_c_try_link "$LINENO"; then :
9733  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9734
9735fi
9736rm -f core conftest.err conftest.$ac_objext \
9737    conftest$ac_exeext conftest.$ac_ext
9738        LDFLAGS="$save_LDFLAGS"
9739      else
9740	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9741	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9742      fi
9743      archive_cmds_need_lc='no'
9744      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745      hardcode_libdir_separator=:
9746      inherit_rpath=yes
9747      link_all_deplibs=yes
9748      ;;
9749
9750    netbsd* | netbsdelf*-gnu)
9751      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9752	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9753      else
9754	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9755      fi
9756      hardcode_libdir_flag_spec='-R$libdir'
9757      hardcode_direct=yes
9758      hardcode_shlibpath_var=no
9759      ;;
9760
9761    newsos6)
9762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763      hardcode_direct=yes
9764      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9765      hardcode_libdir_separator=:
9766      hardcode_shlibpath_var=no
9767      ;;
9768
9769    *nto* | *qnx*)
9770      ;;
9771
9772    openbsd*)
9773      if test -f /usr/libexec/ld.so; then
9774	hardcode_direct=yes
9775	hardcode_shlibpath_var=no
9776	hardcode_direct_absolute=yes
9777	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9778	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9779	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9780	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9781	  export_dynamic_flag_spec='${wl}-E'
9782	else
9783	  case $host_os in
9784	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9785	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9786	     hardcode_libdir_flag_spec='-R$libdir'
9787	     ;;
9788	   *)
9789	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9790	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9791	     ;;
9792	  esac
9793	fi
9794      else
9795	ld_shlibs=no
9796      fi
9797      ;;
9798
9799    os2*)
9800      hardcode_libdir_flag_spec='-L$libdir'
9801      hardcode_minus_L=yes
9802      allow_undefined_flag=unsupported
9803      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'
9804      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9805      ;;
9806
9807    osf3*)
9808      if test "$GCC" = yes; then
9809	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9810	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9811      else
9812	allow_undefined_flag=' -expect_unresolved \*'
9813	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9814      fi
9815      archive_cmds_need_lc='no'
9816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817      hardcode_libdir_separator=:
9818      ;;
9819
9820    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9821      if test "$GCC" = yes; then
9822	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9823	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9824	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9825      else
9826	allow_undefined_flag=' -expect_unresolved \*'
9827	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9828	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9829	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9830
9831	# Both c and cxx compiler support -rpath directly
9832	hardcode_libdir_flag_spec='-rpath $libdir'
9833      fi
9834      archive_cmds_need_lc='no'
9835      hardcode_libdir_separator=:
9836      ;;
9837
9838    solaris*)
9839      no_undefined_flag=' -z defs'
9840      if test "$GCC" = yes; then
9841	wlarc='${wl}'
9842	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9844	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9845      else
9846	case `$CC -V 2>&1` in
9847	*"Compilers 5.0"*)
9848	  wlarc=''
9849	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9851	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9852	  ;;
9853	*)
9854	  wlarc='${wl}'
9855	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9856	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9857	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9858	  ;;
9859	esac
9860      fi
9861      hardcode_libdir_flag_spec='-R$libdir'
9862      hardcode_shlibpath_var=no
9863      case $host_os in
9864      solaris2.[0-5] | solaris2.[0-5].*) ;;
9865      *)
9866	# The compiler driver will combine and reorder linker options,
9867	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9868	# but is careful enough not to reorder.
9869	# Supported since Solaris 2.6 (maybe 2.5.1?)
9870	if test "$GCC" = yes; then
9871	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9872	else
9873	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9874	fi
9875	;;
9876      esac
9877      link_all_deplibs=yes
9878      ;;
9879
9880    sunos4*)
9881      if test "x$host_vendor" = xsequent; then
9882	# Use $CC to link under sequent, because it throws in some extra .o
9883	# files that make .init and .fini sections work.
9884	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9885      else
9886	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9887      fi
9888      hardcode_libdir_flag_spec='-L$libdir'
9889      hardcode_direct=yes
9890      hardcode_minus_L=yes
9891      hardcode_shlibpath_var=no
9892      ;;
9893
9894    sysv4)
9895      case $host_vendor in
9896	sni)
9897	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898	  hardcode_direct=yes # is this really true???
9899	;;
9900	siemens)
9901	  ## LD is ld it makes a PLAMLIB
9902	  ## CC just makes a GrossModule.
9903	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9904	  reload_cmds='$CC -r -o $output$reload_objs'
9905	  hardcode_direct=no
9906        ;;
9907	motorola)
9908	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9910	;;
9911      esac
9912      runpath_var='LD_RUN_PATH'
9913      hardcode_shlibpath_var=no
9914      ;;
9915
9916    sysv4.3*)
9917      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918      hardcode_shlibpath_var=no
9919      export_dynamic_flag_spec='-Bexport'
9920      ;;
9921
9922    sysv4*MP*)
9923      if test -d /usr/nec; then
9924	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925	hardcode_shlibpath_var=no
9926	runpath_var=LD_RUN_PATH
9927	hardcode_runpath_var=yes
9928	ld_shlibs=yes
9929      fi
9930      ;;
9931
9932    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9933      no_undefined_flag='${wl}-z,text'
9934      archive_cmds_need_lc=no
9935      hardcode_shlibpath_var=no
9936      runpath_var='LD_RUN_PATH'
9937
9938      if test "$GCC" = yes; then
9939	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941      else
9942	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944      fi
9945      ;;
9946
9947    sysv5* | sco3.2v5* | sco5v6*)
9948      # Note: We can NOT use -z defs as we might desire, because we do not
9949      # link with -lc, and that would cause any symbols used from libc to
9950      # always be unresolved, which means just about no library would
9951      # ever link correctly.  If we're not using GNU ld we use -z text
9952      # though, which does catch some bad symbols but isn't as heavy-handed
9953      # as -z defs.
9954      no_undefined_flag='${wl}-z,text'
9955      allow_undefined_flag='${wl}-z,nodefs'
9956      archive_cmds_need_lc=no
9957      hardcode_shlibpath_var=no
9958      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9959      hardcode_libdir_separator=':'
9960      link_all_deplibs=yes
9961      export_dynamic_flag_spec='${wl}-Bexport'
9962      runpath_var='LD_RUN_PATH'
9963
9964      if test "$GCC" = yes; then
9965	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967      else
9968	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9969	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970      fi
9971      ;;
9972
9973    uts4*)
9974      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9975      hardcode_libdir_flag_spec='-L$libdir'
9976      hardcode_shlibpath_var=no
9977      ;;
9978
9979    *)
9980      ld_shlibs=no
9981      ;;
9982    esac
9983
9984    if test x$host_vendor = xsni; then
9985      case $host in
9986      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9987	export_dynamic_flag_spec='${wl}-Blargedynsym'
9988	;;
9989      esac
9990    fi
9991  fi
9992
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9994$as_echo "$ld_shlibs" >&6; }
9995test "$ld_shlibs" = no && can_build_shared=no
9996
9997with_gnu_ld=$with_gnu_ld
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013#
10014# Do we need to explicitly link libc?
10015#
10016case "x$archive_cmds_need_lc" in
10017x|xyes)
10018  # Assume -lc should be added
10019  archive_cmds_need_lc=yes
10020
10021  if test "$enable_shared" = yes && test "$GCC" = yes; then
10022    case $archive_cmds in
10023    *'~'*)
10024      # FIXME: we may have to deal with multi-command sequences.
10025      ;;
10026    '$CC '*)
10027      # Test whether the compiler implicitly links with -lc since on some
10028      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10029      # to ld, don't add -lc before -lgcc.
10030      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10031$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10032      $RM conftest*
10033      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10034
10035      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10036  (eval $ac_compile) 2>&5
10037  ac_status=$?
10038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10039  test $ac_status = 0; } 2>conftest.err; then
10040        soname=conftest
10041        lib=conftest
10042        libobjs=conftest.$ac_objext
10043        deplibs=
10044        wl=$lt_prog_compiler_wl
10045	pic_flag=$lt_prog_compiler_pic
10046        compiler_flags=-v
10047        linker_flags=-v
10048        verstring=
10049        output_objdir=.
10050        libname=conftest
10051        lt_save_allow_undefined_flag=$allow_undefined_flag
10052        allow_undefined_flag=
10053        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10054  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10055  ac_status=$?
10056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10057  test $ac_status = 0; }
10058        then
10059	  archive_cmds_need_lc=no
10060        else
10061	  archive_cmds_need_lc=yes
10062        fi
10063        allow_undefined_flag=$lt_save_allow_undefined_flag
10064      else
10065        cat conftest.err 1>&5
10066      fi
10067      $RM conftest*
10068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10069$as_echo "$archive_cmds_need_lc" >&6; }
10070      ;;
10071    esac
10072  fi
10073  ;;
10074esac
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10233$as_echo_n "checking dynamic linker characteristics... " >&6; }
10234
10235if test "$GCC" = yes; then
10236  case $host_os in
10237    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10238    *) lt_awk_arg="/^libraries:/" ;;
10239  esac
10240  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10241  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10242    # if the path contains ";" then we assume it to be the separator
10243    # otherwise default to the standard path separator (i.e. ":") - it is
10244    # assumed that no part of a normal pathname contains ";" but that should
10245    # okay in the real world where ";" in dirpaths is itself problematic.
10246    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10247  else
10248    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10249  fi
10250  # Ok, now we have the path, separated by spaces, we can step through it
10251  # and add multilib dir if necessary.
10252  lt_tmp_lt_search_path_spec=
10253  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10254  for lt_sys_path in $lt_search_path_spec; do
10255    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10256      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10257    else
10258      test -d "$lt_sys_path" && \
10259	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10260    fi
10261  done
10262  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10263BEGIN {RS=" "; FS="/|\n";} {
10264  lt_foo="";
10265  lt_count=0;
10266  for (lt_i = NF; lt_i > 0; lt_i--) {
10267    if ($lt_i != "" && $lt_i != ".") {
10268      if ($lt_i == "..") {
10269        lt_count++;
10270      } else {
10271        if (lt_count == 0) {
10272          lt_foo="/" $lt_i lt_foo;
10273        } else {
10274          lt_count--;
10275        }
10276      }
10277    }
10278  }
10279  if (lt_foo != "") { lt_freq[lt_foo]++; }
10280  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10281}'`
10282  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10283else
10284  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10285fi
10286library_names_spec=
10287libname_spec='lib$name'
10288soname_spec=
10289shrext_cmds=".so"
10290postinstall_cmds=
10291postuninstall_cmds=
10292finish_cmds=
10293finish_eval=
10294shlibpath_var=
10295shlibpath_overrides_runpath=unknown
10296version_type=none
10297dynamic_linker="$host_os ld.so"
10298sys_lib_dlsearch_path_spec="/lib /usr/lib"
10299need_lib_prefix=unknown
10300hardcode_into_libs=no
10301
10302# when you set need_version to no, make sure it does not cause -set_version
10303# flags to be left without arguments
10304need_version=unknown
10305
10306case $host_os in
10307aix3*)
10308  version_type=linux
10309  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10310  shlibpath_var=LIBPATH
10311
10312  # AIX 3 has no versioning support, so we append a major version to the name.
10313  soname_spec='${libname}${release}${shared_ext}$major'
10314  ;;
10315
10316aix[4-9]*)
10317  version_type=linux
10318  need_lib_prefix=no
10319  need_version=no
10320  hardcode_into_libs=yes
10321  if test "$host_cpu" = ia64; then
10322    # AIX 5 supports IA64
10323    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10324    shlibpath_var=LD_LIBRARY_PATH
10325  else
10326    # With GCC up to 2.95.x, collect2 would create an import file
10327    # for dependence libraries.  The import file would start with
10328    # the line `#! .'.  This would cause the generated library to
10329    # depend on `.', always an invalid library.  This was fixed in
10330    # development snapshots of GCC prior to 3.0.
10331    case $host_os in
10332      aix4 | aix4.[01] | aix4.[01].*)
10333      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10334	   echo ' yes '
10335	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10336	:
10337      else
10338	can_build_shared=no
10339      fi
10340      ;;
10341    esac
10342    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10343    # soname into executable. Probably we can add versioning support to
10344    # collect2, so additional links can be useful in future.
10345    if test "$aix_use_runtimelinking" = yes; then
10346      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10347      # instead of lib<name>.a to let people know that these are not
10348      # typical AIX shared libraries.
10349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350    else
10351      # We preserve .a as extension for shared libraries through AIX4.2
10352      # and later when we are not doing run time linking.
10353      library_names_spec='${libname}${release}.a $libname.a'
10354      soname_spec='${libname}${release}${shared_ext}$major'
10355    fi
10356    shlibpath_var=LIBPATH
10357  fi
10358  ;;
10359
10360amigaos*)
10361  case $host_cpu in
10362  powerpc)
10363    # Since July 2007 AmigaOS4 officially supports .so libraries.
10364    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366    ;;
10367  m68k)
10368    library_names_spec='$libname.ixlibrary $libname.a'
10369    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10370    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'
10371    ;;
10372  esac
10373  ;;
10374
10375beos*)
10376  library_names_spec='${libname}${shared_ext}'
10377  dynamic_linker="$host_os ld.so"
10378  shlibpath_var=LIBRARY_PATH
10379  ;;
10380
10381bsdi[45]*)
10382  version_type=linux
10383  need_version=no
10384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385  soname_spec='${libname}${release}${shared_ext}$major'
10386  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10387  shlibpath_var=LD_LIBRARY_PATH
10388  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10389  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10390  # the default ld.so.conf also contains /usr/contrib/lib and
10391  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10392  # libtool to hard-code these into programs
10393  ;;
10394
10395cygwin* | mingw* | pw32* | cegcc*)
10396  version_type=windows
10397  shrext_cmds=".dll"
10398  need_version=no
10399  need_lib_prefix=no
10400
10401  case $GCC,$host_os in
10402  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10403    library_names_spec='$libname.dll.a'
10404    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10405    postinstall_cmds='base_file=`basename \${file}`~
10406      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10407      dldir=$destdir/`dirname \$dlpath`~
10408      test -d \$dldir || mkdir -p \$dldir~
10409      $install_prog $dir/$dlname \$dldir/$dlname~
10410      chmod a+x \$dldir/$dlname~
10411      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10412        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10413      fi'
10414    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10415      dlpath=$dir/\$dldll~
10416       $RM \$dlpath'
10417    shlibpath_overrides_runpath=yes
10418
10419    case $host_os in
10420    cygwin*)
10421      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10422      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10423      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10424      ;;
10425    mingw* | cegcc*)
10426      # MinGW DLLs use traditional 'lib' prefix
10427      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10428      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10429      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10430        # It is most probably a Windows format PATH printed by
10431        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10432        # path with ; separators, and with drive letters. We can handle the
10433        # drive letters (cygwin fileutils understands them), so leave them,
10434        # especially as we might pass files found there to a mingw objdump,
10435        # which wouldn't understand a cygwinified path. Ahh.
10436        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10437      else
10438        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10439      fi
10440      ;;
10441    pw32*)
10442      # pw32 DLLs use 'pw' prefix rather than 'lib'
10443      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10444      ;;
10445    esac
10446    ;;
10447
10448  *)
10449    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10450    ;;
10451  esac
10452  dynamic_linker='Win32 ld.exe'
10453  # FIXME: first we should search . and the directory the executable is in
10454  shlibpath_var=PATH
10455  ;;
10456
10457darwin* | rhapsody*)
10458  dynamic_linker="$host_os dyld"
10459  version_type=darwin
10460  need_lib_prefix=no
10461  need_version=no
10462  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10463  soname_spec='${libname}${release}${major}$shared_ext'
10464  shlibpath_overrides_runpath=yes
10465  shlibpath_var=DYLD_LIBRARY_PATH
10466  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10467
10468  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10469  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10470  ;;
10471
10472dgux*)
10473  version_type=linux
10474  need_lib_prefix=no
10475  need_version=no
10476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10477  soname_spec='${libname}${release}${shared_ext}$major'
10478  shlibpath_var=LD_LIBRARY_PATH
10479  ;;
10480
10481freebsd1*)
10482  dynamic_linker=no
10483  ;;
10484
10485freebsd* | dragonfly*)
10486  # DragonFly does not have aout.  When/if they implement a new
10487  # versioning mechanism, adjust this.
10488  if test -x /usr/bin/objformat; then
10489    objformat=`/usr/bin/objformat`
10490  else
10491    case $host_os in
10492    freebsd[123]*) objformat=aout ;;
10493    *) objformat=elf ;;
10494    esac
10495  fi
10496  version_type=freebsd-$objformat
10497  case $version_type in
10498    freebsd-elf*)
10499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500      need_version=no
10501      need_lib_prefix=no
10502      ;;
10503    freebsd-*)
10504      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10505      need_version=yes
10506      ;;
10507  esac
10508  shlibpath_var=LD_LIBRARY_PATH
10509  case $host_os in
10510  freebsd2*)
10511    shlibpath_overrides_runpath=yes
10512    ;;
10513  freebsd3.[01]* | freebsdelf3.[01]*)
10514    shlibpath_overrides_runpath=yes
10515    hardcode_into_libs=yes
10516    ;;
10517  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10518  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10519    shlibpath_overrides_runpath=no
10520    hardcode_into_libs=yes
10521    ;;
10522  *) # from 4.6 on, and DragonFly
10523    shlibpath_overrides_runpath=yes
10524    hardcode_into_libs=yes
10525    ;;
10526  esac
10527  ;;
10528
10529gnu*)
10530  version_type=linux
10531  need_lib_prefix=no
10532  need_version=no
10533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10534  soname_spec='${libname}${release}${shared_ext}$major'
10535  shlibpath_var=LD_LIBRARY_PATH
10536  hardcode_into_libs=yes
10537  ;;
10538
10539hpux9* | hpux10* | hpux11*)
10540  # Give a soname corresponding to the major version so that dld.sl refuses to
10541  # link against other versions.
10542  version_type=sunos
10543  need_lib_prefix=no
10544  need_version=no
10545  case $host_cpu in
10546  ia64*)
10547    shrext_cmds='.so'
10548    hardcode_into_libs=yes
10549    dynamic_linker="$host_os dld.so"
10550    shlibpath_var=LD_LIBRARY_PATH
10551    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553    soname_spec='${libname}${release}${shared_ext}$major'
10554    if test "X$HPUX_IA64_MODE" = X32; then
10555      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10556    else
10557      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10558    fi
10559    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10560    ;;
10561  hppa*64*)
10562    shrext_cmds='.sl'
10563    hardcode_into_libs=yes
10564    dynamic_linker="$host_os dld.sl"
10565    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10566    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568    soname_spec='${libname}${release}${shared_ext}$major'
10569    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10570    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10571    ;;
10572  *)
10573    shrext_cmds='.sl'
10574    dynamic_linker="$host_os dld.sl"
10575    shlibpath_var=SHLIB_PATH
10576    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578    soname_spec='${libname}${release}${shared_ext}$major'
10579    ;;
10580  esac
10581  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10582  postinstall_cmds='chmod 555 $lib'
10583  ;;
10584
10585interix[3-9]*)
10586  version_type=linux
10587  need_lib_prefix=no
10588  need_version=no
10589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10590  soname_spec='${libname}${release}${shared_ext}$major'
10591  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  shlibpath_overrides_runpath=no
10594  hardcode_into_libs=yes
10595  ;;
10596
10597irix5* | irix6* | nonstopux*)
10598  case $host_os in
10599    nonstopux*) version_type=nonstopux ;;
10600    *)
10601	if test "$lt_cv_prog_gnu_ld" = yes; then
10602		version_type=linux
10603	else
10604		version_type=irix
10605	fi ;;
10606  esac
10607  need_lib_prefix=no
10608  need_version=no
10609  soname_spec='${libname}${release}${shared_ext}$major'
10610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10611  case $host_os in
10612  irix5* | nonstopux*)
10613    libsuff= shlibsuff=
10614    ;;
10615  *)
10616    case $LD in # libtool.m4 will add one of these switches to LD
10617    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10618      libsuff= shlibsuff= libmagic=32-bit;;
10619    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10620      libsuff=32 shlibsuff=N32 libmagic=N32;;
10621    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10622      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10623    *) libsuff= shlibsuff= libmagic=never-match;;
10624    esac
10625    ;;
10626  esac
10627  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10628  shlibpath_overrides_runpath=no
10629  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10630  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10631  hardcode_into_libs=yes
10632  ;;
10633
10634# No shared lib support for Linux oldld, aout, or coff.
10635linux*oldld* | linux*aout* | linux*coff*)
10636  dynamic_linker=no
10637  ;;
10638
10639# This must be Linux ELF.
10640linux* | k*bsd*-gnu)
10641  version_type=linux
10642  need_lib_prefix=no
10643  need_version=no
10644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645  soname_spec='${libname}${release}${shared_ext}$major'
10646  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10647  shlibpath_var=LD_LIBRARY_PATH
10648  shlibpath_overrides_runpath=no
10649  # Some binutils ld are patched to set DT_RUNPATH
10650  save_LDFLAGS=$LDFLAGS
10651  save_libdir=$libdir
10652  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10653       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656
10657int
10658main ()
10659{
10660
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665if ac_fn_c_try_link "$LINENO"; then :
10666  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10667  shlibpath_overrides_runpath=yes
10668fi
10669fi
10670rm -f core conftest.err conftest.$ac_objext \
10671    conftest$ac_exeext conftest.$ac_ext
10672  LDFLAGS=$save_LDFLAGS
10673  libdir=$save_libdir
10674
10675  # This implies no fast_install, which is unacceptable.
10676  # Some rework will be needed to allow for fast_install
10677  # before this can be enabled.
10678  hardcode_into_libs=yes
10679
10680  # Append ld.so.conf contents to the search path
10681  if test -f /etc/ld.so.conf; then
10682    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10683    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10684  fi
10685
10686  # We used to test for /lib/ld.so.1 and disable shared libraries on
10687  # powerpc, because MkLinux only supported shared libraries with the
10688  # GNU dynamic linker.  Since this was broken with cross compilers,
10689  # most powerpc-linux boxes support dynamic linking these days and
10690  # people can always --disable-shared, the test was removed, and we
10691  # assume the GNU/Linux dynamic linker is in use.
10692  dynamic_linker='GNU/Linux ld.so'
10693  ;;
10694
10695netbsdelf*-gnu)
10696  version_type=linux
10697  need_lib_prefix=no
10698  need_version=no
10699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10700  soname_spec='${libname}${release}${shared_ext}$major'
10701  shlibpath_var=LD_LIBRARY_PATH
10702  shlibpath_overrides_runpath=no
10703  hardcode_into_libs=yes
10704  dynamic_linker='NetBSD ld.elf_so'
10705  ;;
10706
10707netbsd*)
10708  version_type=sunos
10709  need_lib_prefix=no
10710  need_version=no
10711  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10713    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10714    dynamic_linker='NetBSD (a.out) ld.so'
10715  else
10716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10717    soname_spec='${libname}${release}${shared_ext}$major'
10718    dynamic_linker='NetBSD ld.elf_so'
10719  fi
10720  shlibpath_var=LD_LIBRARY_PATH
10721  shlibpath_overrides_runpath=yes
10722  hardcode_into_libs=yes
10723  ;;
10724
10725newsos6)
10726  version_type=linux
10727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728  shlibpath_var=LD_LIBRARY_PATH
10729  shlibpath_overrides_runpath=yes
10730  ;;
10731
10732*nto* | *qnx*)
10733  version_type=qnx
10734  need_lib_prefix=no
10735  need_version=no
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737  soname_spec='${libname}${release}${shared_ext}$major'
10738  shlibpath_var=LD_LIBRARY_PATH
10739  shlibpath_overrides_runpath=no
10740  hardcode_into_libs=yes
10741  dynamic_linker='ldqnx.so'
10742  ;;
10743
10744openbsd*)
10745  version_type=sunos
10746  sys_lib_dlsearch_path_spec="/usr/lib"
10747  need_lib_prefix=no
10748  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10749  case $host_os in
10750    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10751    *)				need_version=no  ;;
10752  esac
10753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10757    case $host_os in
10758      openbsd2.[89] | openbsd2.[89].*)
10759	shlibpath_overrides_runpath=no
10760	;;
10761      *)
10762	shlibpath_overrides_runpath=yes
10763	;;
10764      esac
10765  else
10766    shlibpath_overrides_runpath=yes
10767  fi
10768  ;;
10769
10770os2*)
10771  libname_spec='$name'
10772  shrext_cmds=".dll"
10773  need_lib_prefix=no
10774  library_names_spec='$libname${shared_ext} $libname.a'
10775  dynamic_linker='OS/2 ld.exe'
10776  shlibpath_var=LIBPATH
10777  ;;
10778
10779osf3* | osf4* | osf5*)
10780  version_type=osf
10781  need_lib_prefix=no
10782  need_version=no
10783  soname_spec='${libname}${release}${shared_ext}$major'
10784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785  shlibpath_var=LD_LIBRARY_PATH
10786  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10787  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10788  ;;
10789
10790rdos*)
10791  dynamic_linker=no
10792  ;;
10793
10794solaris*)
10795  version_type=linux
10796  need_lib_prefix=no
10797  need_version=no
10798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799  soname_spec='${libname}${release}${shared_ext}$major'
10800  shlibpath_var=LD_LIBRARY_PATH
10801  shlibpath_overrides_runpath=yes
10802  hardcode_into_libs=yes
10803  # ldd complains unless libraries are executable
10804  postinstall_cmds='chmod +x $lib'
10805  ;;
10806
10807sunos4*)
10808  version_type=sunos
10809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10810  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10811  shlibpath_var=LD_LIBRARY_PATH
10812  shlibpath_overrides_runpath=yes
10813  if test "$with_gnu_ld" = yes; then
10814    need_lib_prefix=no
10815  fi
10816  need_version=yes
10817  ;;
10818
10819sysv4 | sysv4.3*)
10820  version_type=linux
10821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822  soname_spec='${libname}${release}${shared_ext}$major'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  case $host_vendor in
10825    sni)
10826      shlibpath_overrides_runpath=no
10827      need_lib_prefix=no
10828      runpath_var=LD_RUN_PATH
10829      ;;
10830    siemens)
10831      need_lib_prefix=no
10832      ;;
10833    motorola)
10834      need_lib_prefix=no
10835      need_version=no
10836      shlibpath_overrides_runpath=no
10837      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10838      ;;
10839  esac
10840  ;;
10841
10842sysv4*MP*)
10843  if test -d /usr/nec ;then
10844    version_type=linux
10845    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10846    soname_spec='$libname${shared_ext}.$major'
10847    shlibpath_var=LD_LIBRARY_PATH
10848  fi
10849  ;;
10850
10851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10852  version_type=freebsd-elf
10853  need_lib_prefix=no
10854  need_version=no
10855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10856  soname_spec='${libname}${release}${shared_ext}$major'
10857  shlibpath_var=LD_LIBRARY_PATH
10858  shlibpath_overrides_runpath=yes
10859  hardcode_into_libs=yes
10860  if test "$with_gnu_ld" = yes; then
10861    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10862  else
10863    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10864    case $host_os in
10865      sco3.2v5*)
10866        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10867	;;
10868    esac
10869  fi
10870  sys_lib_dlsearch_path_spec='/usr/lib'
10871  ;;
10872
10873tpf*)
10874  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10875  version_type=linux
10876  need_lib_prefix=no
10877  need_version=no
10878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879  shlibpath_var=LD_LIBRARY_PATH
10880  shlibpath_overrides_runpath=no
10881  hardcode_into_libs=yes
10882  ;;
10883
10884uts4*)
10885  version_type=linux
10886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887  soname_spec='${libname}${release}${shared_ext}$major'
10888  shlibpath_var=LD_LIBRARY_PATH
10889  ;;
10890
10891*)
10892  dynamic_linker=no
10893  ;;
10894esac
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10896$as_echo "$dynamic_linker" >&6; }
10897test "$dynamic_linker" = no && can_build_shared=no
10898
10899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10900if test "$GCC" = yes; then
10901  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10902fi
10903
10904if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10905  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10906fi
10907if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10908  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10909fi
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10998$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10999hardcode_action=
11000if test -n "$hardcode_libdir_flag_spec" ||
11001   test -n "$runpath_var" ||
11002   test "X$hardcode_automatic" = "Xyes" ; then
11003
11004  # We can hardcode non-existent directories.
11005  if test "$hardcode_direct" != no &&
11006     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11007     # have to relink, otherwise we might link with an installed library
11008     # when we should be linking with a yet-to-be-installed one
11009     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11010     test "$hardcode_minus_L" != no; then
11011    # Linking always hardcodes the temporary library directory.
11012    hardcode_action=relink
11013  else
11014    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11015    hardcode_action=immediate
11016  fi
11017else
11018  # We cannot hardcode anything, or else we can only hardcode existing
11019  # directories.
11020  hardcode_action=unsupported
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11023$as_echo "$hardcode_action" >&6; }
11024
11025if test "$hardcode_action" = relink ||
11026   test "$inherit_rpath" = yes; then
11027  # Fast installation is not supported
11028  enable_fast_install=no
11029elif test "$shlibpath_overrides_runpath" = yes ||
11030     test "$enable_shared" = no; then
11031  # Fast installation is not necessary
11032  enable_fast_install=needless
11033fi
11034
11035
11036
11037
11038
11039
11040  if test "x$enable_dlopen" != xyes; then
11041  enable_dlopen=unknown
11042  enable_dlopen_self=unknown
11043  enable_dlopen_self_static=unknown
11044else
11045  lt_cv_dlopen=no
11046  lt_cv_dlopen_libs=
11047
11048  case $host_os in
11049  beos*)
11050    lt_cv_dlopen="load_add_on"
11051    lt_cv_dlopen_libs=
11052    lt_cv_dlopen_self=yes
11053    ;;
11054
11055  mingw* | pw32* | cegcc*)
11056    lt_cv_dlopen="LoadLibrary"
11057    lt_cv_dlopen_libs=
11058    ;;
11059
11060  cygwin*)
11061    lt_cv_dlopen="dlopen"
11062    lt_cv_dlopen_libs=
11063    ;;
11064
11065  darwin*)
11066  # if libdl is installed we need to link against it
11067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11068$as_echo_n "checking for dlopen in -ldl... " >&6; }
11069if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11070  $as_echo_n "(cached) " >&6
11071else
11072  ac_check_lib_save_LIBS=$LIBS
11073LIBS="-ldl  $LIBS"
11074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075/* end confdefs.h.  */
11076
11077/* Override any GCC internal prototype to avoid an error.
11078   Use char because int might match the return type of a GCC
11079   builtin and then its argument prototype would still apply.  */
11080#ifdef __cplusplus
11081extern "C"
11082#endif
11083char dlopen ();
11084int
11085main ()
11086{
11087return dlopen ();
11088  ;
11089  return 0;
11090}
11091_ACEOF
11092if ac_fn_c_try_link "$LINENO"; then :
11093  ac_cv_lib_dl_dlopen=yes
11094else
11095  ac_cv_lib_dl_dlopen=no
11096fi
11097rm -f core conftest.err conftest.$ac_objext \
11098    conftest$ac_exeext conftest.$ac_ext
11099LIBS=$ac_check_lib_save_LIBS
11100fi
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11102$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11103if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11104  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11105else
11106
11107    lt_cv_dlopen="dyld"
11108    lt_cv_dlopen_libs=
11109    lt_cv_dlopen_self=yes
11110
11111fi
11112
11113    ;;
11114
11115  *)
11116    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11117if test "x$ac_cv_func_shl_load" = x""yes; then :
11118  lt_cv_dlopen="shl_load"
11119else
11120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11121$as_echo_n "checking for shl_load in -ldld... " >&6; }
11122if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11123  $as_echo_n "(cached) " >&6
11124else
11125  ac_check_lib_save_LIBS=$LIBS
11126LIBS="-ldld  $LIBS"
11127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128/* end confdefs.h.  */
11129
11130/* Override any GCC internal prototype to avoid an error.
11131   Use char because int might match the return type of a GCC
11132   builtin and then its argument prototype would still apply.  */
11133#ifdef __cplusplus
11134extern "C"
11135#endif
11136char shl_load ();
11137int
11138main ()
11139{
11140return shl_load ();
11141  ;
11142  return 0;
11143}
11144_ACEOF
11145if ac_fn_c_try_link "$LINENO"; then :
11146  ac_cv_lib_dld_shl_load=yes
11147else
11148  ac_cv_lib_dld_shl_load=no
11149fi
11150rm -f core conftest.err conftest.$ac_objext \
11151    conftest$ac_exeext conftest.$ac_ext
11152LIBS=$ac_check_lib_save_LIBS
11153fi
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11155$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11156if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11157  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11158else
11159  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11160if test "x$ac_cv_func_dlopen" = x""yes; then :
11161  lt_cv_dlopen="dlopen"
11162else
11163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11164$as_echo_n "checking for dlopen in -ldl... " >&6; }
11165if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11166  $as_echo_n "(cached) " >&6
11167else
11168  ac_check_lib_save_LIBS=$LIBS
11169LIBS="-ldl  $LIBS"
11170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171/* end confdefs.h.  */
11172
11173/* Override any GCC internal prototype to avoid an error.
11174   Use char because int might match the return type of a GCC
11175   builtin and then its argument prototype would still apply.  */
11176#ifdef __cplusplus
11177extern "C"
11178#endif
11179char dlopen ();
11180int
11181main ()
11182{
11183return dlopen ();
11184  ;
11185  return 0;
11186}
11187_ACEOF
11188if ac_fn_c_try_link "$LINENO"; then :
11189  ac_cv_lib_dl_dlopen=yes
11190else
11191  ac_cv_lib_dl_dlopen=no
11192fi
11193rm -f core conftest.err conftest.$ac_objext \
11194    conftest$ac_exeext conftest.$ac_ext
11195LIBS=$ac_check_lib_save_LIBS
11196fi
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11198$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11199if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11200  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11201else
11202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11203$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11204if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11205  $as_echo_n "(cached) " >&6
11206else
11207  ac_check_lib_save_LIBS=$LIBS
11208LIBS="-lsvld  $LIBS"
11209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210/* end confdefs.h.  */
11211
11212/* Override any GCC internal prototype to avoid an error.
11213   Use char because int might match the return type of a GCC
11214   builtin and then its argument prototype would still apply.  */
11215#ifdef __cplusplus
11216extern "C"
11217#endif
11218char dlopen ();
11219int
11220main ()
11221{
11222return dlopen ();
11223  ;
11224  return 0;
11225}
11226_ACEOF
11227if ac_fn_c_try_link "$LINENO"; then :
11228  ac_cv_lib_svld_dlopen=yes
11229else
11230  ac_cv_lib_svld_dlopen=no
11231fi
11232rm -f core conftest.err conftest.$ac_objext \
11233    conftest$ac_exeext conftest.$ac_ext
11234LIBS=$ac_check_lib_save_LIBS
11235fi
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11237$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11238if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11239  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11240else
11241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11242$as_echo_n "checking for dld_link in -ldld... " >&6; }
11243if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11244  $as_echo_n "(cached) " >&6
11245else
11246  ac_check_lib_save_LIBS=$LIBS
11247LIBS="-ldld  $LIBS"
11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h.  */
11250
11251/* Override any GCC internal prototype to avoid an error.
11252   Use char because int might match the return type of a GCC
11253   builtin and then its argument prototype would still apply.  */
11254#ifdef __cplusplus
11255extern "C"
11256#endif
11257char dld_link ();
11258int
11259main ()
11260{
11261return dld_link ();
11262  ;
11263  return 0;
11264}
11265_ACEOF
11266if ac_fn_c_try_link "$LINENO"; then :
11267  ac_cv_lib_dld_dld_link=yes
11268else
11269  ac_cv_lib_dld_dld_link=no
11270fi
11271rm -f core conftest.err conftest.$ac_objext \
11272    conftest$ac_exeext conftest.$ac_ext
11273LIBS=$ac_check_lib_save_LIBS
11274fi
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11276$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11277if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11278  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11279fi
11280
11281
11282fi
11283
11284
11285fi
11286
11287
11288fi
11289
11290
11291fi
11292
11293
11294fi
11295
11296    ;;
11297  esac
11298
11299  if test "x$lt_cv_dlopen" != xno; then
11300    enable_dlopen=yes
11301  else
11302    enable_dlopen=no
11303  fi
11304
11305  case $lt_cv_dlopen in
11306  dlopen)
11307    save_CPPFLAGS="$CPPFLAGS"
11308    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11309
11310    save_LDFLAGS="$LDFLAGS"
11311    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11312
11313    save_LIBS="$LIBS"
11314    LIBS="$lt_cv_dlopen_libs $LIBS"
11315
11316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11317$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11318if test "${lt_cv_dlopen_self+set}" = set; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  	  if test "$cross_compiling" = yes; then :
11322  lt_cv_dlopen_self=cross
11323else
11324  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11325  lt_status=$lt_dlunknown
11326  cat > conftest.$ac_ext <<_LT_EOF
11327#line 11327 "configure"
11328#include "confdefs.h"
11329
11330#if HAVE_DLFCN_H
11331#include <dlfcn.h>
11332#endif
11333
11334#include <stdio.h>
11335
11336#ifdef RTLD_GLOBAL
11337#  define LT_DLGLOBAL		RTLD_GLOBAL
11338#else
11339#  ifdef DL_GLOBAL
11340#    define LT_DLGLOBAL		DL_GLOBAL
11341#  else
11342#    define LT_DLGLOBAL		0
11343#  endif
11344#endif
11345
11346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11347   find out it does not work in some platform. */
11348#ifndef LT_DLLAZY_OR_NOW
11349#  ifdef RTLD_LAZY
11350#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11351#  else
11352#    ifdef DL_LAZY
11353#      define LT_DLLAZY_OR_NOW		DL_LAZY
11354#    else
11355#      ifdef RTLD_NOW
11356#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11357#      else
11358#        ifdef DL_NOW
11359#          define LT_DLLAZY_OR_NOW	DL_NOW
11360#        else
11361#          define LT_DLLAZY_OR_NOW	0
11362#        endif
11363#      endif
11364#    endif
11365#  endif
11366#endif
11367
11368void fnord() { int i=42;}
11369int main ()
11370{
11371  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11372  int status = $lt_dlunknown;
11373
11374  if (self)
11375    {
11376      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11377      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11378      /* dlclose (self); */
11379    }
11380  else
11381    puts (dlerror ());
11382
11383  return status;
11384}
11385_LT_EOF
11386  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11387  (eval $ac_link) 2>&5
11388  ac_status=$?
11389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11390  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11391    (./conftest; exit; ) >&5 2>/dev/null
11392    lt_status=$?
11393    case x$lt_status in
11394      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11395      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11396      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11397    esac
11398  else :
11399    # compilation failed
11400    lt_cv_dlopen_self=no
11401  fi
11402fi
11403rm -fr conftest*
11404
11405
11406fi
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11408$as_echo "$lt_cv_dlopen_self" >&6; }
11409
11410    if test "x$lt_cv_dlopen_self" = xyes; then
11411      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11412      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11413$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11414if test "${lt_cv_dlopen_self_static+set}" = set; then :
11415  $as_echo_n "(cached) " >&6
11416else
11417  	  if test "$cross_compiling" = yes; then :
11418  lt_cv_dlopen_self_static=cross
11419else
11420  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11421  lt_status=$lt_dlunknown
11422  cat > conftest.$ac_ext <<_LT_EOF
11423#line 11423 "configure"
11424#include "confdefs.h"
11425
11426#if HAVE_DLFCN_H
11427#include <dlfcn.h>
11428#endif
11429
11430#include <stdio.h>
11431
11432#ifdef RTLD_GLOBAL
11433#  define LT_DLGLOBAL		RTLD_GLOBAL
11434#else
11435#  ifdef DL_GLOBAL
11436#    define LT_DLGLOBAL		DL_GLOBAL
11437#  else
11438#    define LT_DLGLOBAL		0
11439#  endif
11440#endif
11441
11442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11443   find out it does not work in some platform. */
11444#ifndef LT_DLLAZY_OR_NOW
11445#  ifdef RTLD_LAZY
11446#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11447#  else
11448#    ifdef DL_LAZY
11449#      define LT_DLLAZY_OR_NOW		DL_LAZY
11450#    else
11451#      ifdef RTLD_NOW
11452#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11453#      else
11454#        ifdef DL_NOW
11455#          define LT_DLLAZY_OR_NOW	DL_NOW
11456#        else
11457#          define LT_DLLAZY_OR_NOW	0
11458#        endif
11459#      endif
11460#    endif
11461#  endif
11462#endif
11463
11464void fnord() { int i=42;}
11465int main ()
11466{
11467  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11468  int status = $lt_dlunknown;
11469
11470  if (self)
11471    {
11472      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11473      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11474      /* dlclose (self); */
11475    }
11476  else
11477    puts (dlerror ());
11478
11479  return status;
11480}
11481_LT_EOF
11482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11483  (eval $ac_link) 2>&5
11484  ac_status=$?
11485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11487    (./conftest; exit; ) >&5 2>/dev/null
11488    lt_status=$?
11489    case x$lt_status in
11490      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11491      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11492      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11493    esac
11494  else :
11495    # compilation failed
11496    lt_cv_dlopen_self_static=no
11497  fi
11498fi
11499rm -fr conftest*
11500
11501
11502fi
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11504$as_echo "$lt_cv_dlopen_self_static" >&6; }
11505    fi
11506
11507    CPPFLAGS="$save_CPPFLAGS"
11508    LDFLAGS="$save_LDFLAGS"
11509    LIBS="$save_LIBS"
11510    ;;
11511  esac
11512
11513  case $lt_cv_dlopen_self in
11514  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11515  *) enable_dlopen_self=unknown ;;
11516  esac
11517
11518  case $lt_cv_dlopen_self_static in
11519  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11520  *) enable_dlopen_self_static=unknown ;;
11521  esac
11522fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540striplib=
11541old_striplib=
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11543$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11544if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11545  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11546  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11548$as_echo "yes" >&6; }
11549else
11550# FIXME - insert some real tests, host_os isn't really good enough
11551  case $host_os in
11552  darwin*)
11553    if test -n "$STRIP" ; then
11554      striplib="$STRIP -x"
11555      old_striplib="$STRIP -S"
11556      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11557$as_echo "yes" >&6; }
11558    else
11559      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
11561    fi
11562    ;;
11563  *)
11564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565$as_echo "no" >&6; }
11566    ;;
11567  esac
11568fi
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581  # Report which library types will actually be built
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11583$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11585$as_echo "$can_build_shared" >&6; }
11586
11587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11588$as_echo_n "checking whether to build shared libraries... " >&6; }
11589  test "$can_build_shared" = "no" && enable_shared=no
11590
11591  # On AIX, shared libraries and static libraries use the same namespace, and
11592  # are all built from PIC.
11593  case $host_os in
11594  aix3*)
11595    test "$enable_shared" = yes && enable_static=no
11596    if test -n "$RANLIB"; then
11597      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11598      postinstall_cmds='$RANLIB $lib'
11599    fi
11600    ;;
11601
11602  aix[4-9]*)
11603    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11604      test "$enable_shared" = yes && enable_static=no
11605    fi
11606    ;;
11607  esac
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11609$as_echo "$enable_shared" >&6; }
11610
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11612$as_echo_n "checking whether to build static libraries... " >&6; }
11613  # Make sure either enable_shared or enable_static is yes.
11614  test "$enable_shared" = yes || enable_static=yes
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11616$as_echo "$enable_static" >&6; }
11617
11618
11619
11620
11621fi
11622ac_ext=c
11623ac_cpp='$CPP $CPPFLAGS'
11624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_c_compiler_gnu
11627
11628CC="$lt_save_CC"
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642        ac_config_commands="$ac_config_commands libtool"
11643
11644
11645
11646
11647# Only expand once:
11648
11649
11650if test -n "$ac_tool_prefix"; then
11651  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11652set dummy ${ac_tool_prefix}windres; ac_word=$2
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
11655if test "${ac_cv_prog_RC+set}" = set; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  if test -n "$RC"; then
11659  ac_cv_prog_RC="$RC" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664  IFS=$as_save_IFS
11665  test -z "$as_dir" && as_dir=.
11666    for ac_exec_ext in '' $ac_executable_extensions; do
11667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11668    ac_cv_prog_RC="${ac_tool_prefix}windres"
11669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670    break 2
11671  fi
11672done
11673  done
11674IFS=$as_save_IFS
11675
11676fi
11677fi
11678RC=$ac_cv_prog_RC
11679if test -n "$RC"; then
11680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11681$as_echo "$RC" >&6; }
11682else
11683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
11685fi
11686
11687
11688fi
11689if test -z "$ac_cv_prog_RC"; then
11690  ac_ct_RC=$RC
11691  # Extract the first word of "windres", so it can be a program name with args.
11692set dummy windres; ac_word=$2
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694$as_echo_n "checking for $ac_word... " >&6; }
11695if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  if test -n "$ac_ct_RC"; then
11699  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11700else
11701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704  IFS=$as_save_IFS
11705  test -z "$as_dir" && as_dir=.
11706    for ac_exec_ext in '' $ac_executable_extensions; do
11707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708    ac_cv_prog_ac_ct_RC="windres"
11709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710    break 2
11711  fi
11712done
11713  done
11714IFS=$as_save_IFS
11715
11716fi
11717fi
11718ac_ct_RC=$ac_cv_prog_ac_ct_RC
11719if test -n "$ac_ct_RC"; then
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11721$as_echo "$ac_ct_RC" >&6; }
11722else
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725fi
11726
11727  if test "x$ac_ct_RC" = x; then
11728    RC=""
11729  else
11730    case $cross_compiling:$ac_tool_warned in
11731yes:)
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11734ac_tool_warned=yes ;;
11735esac
11736    RC=$ac_ct_RC
11737  fi
11738else
11739  RC="$ac_cv_prog_RC"
11740fi
11741
11742
11743
11744
11745# Source file extension for RC test sources.
11746ac_ext=rc
11747
11748# Object file extension for compiled RC test sources.
11749objext=o
11750objext_RC=$objext
11751
11752# Code to be used in simple compile tests
11753lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11754
11755# Code to be used in simple link tests
11756lt_simple_link_test_code="$lt_simple_compile_test_code"
11757
11758# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11759
11760
11761
11762
11763
11764
11765# If no C compiler was specified, use CC.
11766LTCC=${LTCC-"$CC"}
11767
11768# If no C compiler flags were specified, use CFLAGS.
11769LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11770
11771# Allow CC to be a program name with arguments.
11772compiler=$CC
11773
11774
11775# save warnings/boilerplate of simple test code
11776ac_outfile=conftest.$ac_objext
11777echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11778eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11779_lt_compiler_boilerplate=`cat conftest.err`
11780$RM conftest*
11781
11782ac_outfile=conftest.$ac_objext
11783echo "$lt_simple_link_test_code" >conftest.$ac_ext
11784eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11785_lt_linker_boilerplate=`cat conftest.err`
11786$RM -r conftest*
11787
11788
11789# Allow CC to be a program name with arguments.
11790lt_save_CC="$CC"
11791lt_save_GCC=$GCC
11792GCC=
11793CC=${RC-"windres"}
11794compiler=$CC
11795compiler_RC=$CC
11796for cc_temp in $compiler""; do
11797  case $cc_temp in
11798    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11799    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11800    \-*) ;;
11801    *) break;;
11802  esac
11803done
11804cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11805
11806lt_cv_prog_compiler_c_o_RC=yes
11807
11808if test -n "$compiler"; then
11809  :
11810
11811
11812
11813fi
11814
11815GCC=$lt_save_GCC
11816ac_ext=c
11817ac_cpp='$CPP $CPPFLAGS'
11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822CC="$lt_save_CC"
11823
11824
11825
11826##########################
11827## General definitions. ##
11828##########################
11829
11830# Used by libgcrypt-config
11831LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
11832LIBGCRYPT_CONFIG_CFLAGS=""
11833LIBGCRYPT_CONFIG_HOST="$host"
11834
11835# Definitions for symmetric ciphers.
11836available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
11837available_ciphers="$available_ciphers camellia"
11838enabled_ciphers=""
11839
11840# Definitions for public-key ciphers.
11841available_pubkey_ciphers="dsa elgamal rsa ecc"
11842enabled_pubkey_ciphers=""
11843
11844# Definitions for message digests.
11845available_digests="crc md4 md5 rmd160 sha1 sha256"
11846available_digests_64="sha512 tiger whirlpool"
11847enabled_digests=""
11848
11849# Definitions for random modules.
11850available_random_modules="linux egd unix"
11851auto_random_modules="$available_random_modules"
11852
11853# Supported thread backends.
11854LIBGCRYPT_THREAD_MODULES=""
11855
11856# Other definitions.
11857print_egd_notice=no
11858have_w32_system=no
11859have_w32ce_system=no
11860
11861# Setup some stuff depending on host.
11862case "${host}" in
11863    *-*-mingw32*)
11864      ac_cv_have_dev_random=no
11865      have_w32_system=yes
11866      case "${host}" in
11867        *-mingw32ce*)
11868            have_w32ce_system=yes
11869            available_random_modules="w32ce"
11870            ;;
11871        *)
11872            available_random_modules="w32"
11873            ;;
11874      esac
11875
11876$as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
11877
11878
11879$as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
11880
11881
11882$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
11883
11884      ;;
11885
11886    i?86-emx-os2 | i?86-*-os2*emx)
11887        # OS/2 with the EMX environment
11888        ac_cv_have_dev_random=no
11889        $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
11890
11891        $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
11892
11893        ;;
11894
11895    i?86-*-msdosdjgpp*)
11896        # DOS with the DJGPP environment
11897        ac_cv_have_dev_random=no
11898        $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
11899
11900        $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
11901
11902        ;;
11903
11904    *-*-freebsd*)
11905       # FreeBSD
11906       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
11907       LDFLAGS="$LDFLAGS -L/usr/local/lib"
11908       ;;
11909
11910    *-*-hpux*)
11911        if test -z "$GCC" ; then
11912            CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
11913        fi
11914        ;;
11915    *-dec-osf4*)
11916        if test -z "$GCC" ; then
11917            # Suppress all warnings
11918            # to get rid of the unsigned/signed char mismatch warnings.
11919            CFLAGS="$CFLAGS -w"
11920        fi
11921        ;;
11922    m68k-atari-mint)
11923        ;;
11924    *)
11925      ;;
11926esac
11927
11928if test "$have_w32_system" = yes; then
11929
11930$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
11931
11932   if test "$have_w32ce_system" = yes; then
11933
11934$as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
11935
11936   fi
11937fi
11938 if test "$have_w32_system" = yes; then
11939  HAVE_W32_SYSTEM_TRUE=
11940  HAVE_W32_SYSTEM_FALSE='#'
11941else
11942  HAVE_W32_SYSTEM_TRUE='#'
11943  HAVE_W32_SYSTEM_FALSE=
11944fi
11945
11946 if test "$have_w32ce_system" = yes; then
11947  HAVE_W32CE_SYSTEM_TRUE=
11948  HAVE_W32CE_SYSTEM_FALSE='#'
11949else
11950  HAVE_W32CE_SYSTEM_TRUE='#'
11951  HAVE_W32CE_SYSTEM_FALSE=
11952fi
11953
11954
11955
11956
11957# A printable OS Name is sometimes useful.
11958case "${host}" in
11959    *-*-mingw32ce*)
11960        PRINTABLE_OS_NAME="W32CE"
11961        ;;
11962
11963    *-*-mingw32*)
11964        PRINTABLE_OS_NAME="W32"
11965        ;;
11966
11967    i?86-emx-os2 | i?86-*-os2*emx )
11968        PRINTABLE_OS_NAME="OS/2"
11969        ;;
11970
11971    i?86-*-msdosdjgpp*)
11972        PRINTABLE_OS_NAME="MSDOS/DJGPP"
11973        ;;
11974
11975    *-linux*)
11976        PRINTABLE_OS_NAME="GNU/Linux"
11977        ;;
11978
11979    *)
11980        PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11981        ;;
11982esac
11983
11984#
11985# Figure out the name of the random device
11986#
11987case "${host}" in
11988    *-openbsd*)
11989        NAME_OF_DEV_RANDOM="/dev/srandom"
11990        NAME_OF_DEV_URANDOM="/dev/urandom"
11991        ;;
11992
11993    *)
11994        NAME_OF_DEV_RANDOM="/dev/random"
11995        NAME_OF_DEV_URANDOM="/dev/urandom"
11996        ;;
11997esac
11998
11999
12000# Check whether --enable-endian-check was given.
12001if test "${enable_endian_check+set}" = set; then :
12002  enableval=$enable_endian_check; endiancheck=$enableval
12003else
12004  endiancheck=yes
12005fi
12006
12007if test x"$endiancheck" = xyes ; then
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12009$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12010if test "${ac_cv_c_bigendian+set}" = set; then :
12011  $as_echo_n "(cached) " >&6
12012else
12013  ac_cv_c_bigendian=unknown
12014    # See if we're dealing with a universal compiler.
12015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016/* end confdefs.h.  */
12017#ifndef __APPLE_CC__
12018	       not a universal capable compiler
12019	     #endif
12020	     typedef int dummy;
12021
12022_ACEOF
12023if ac_fn_c_try_compile "$LINENO"; then :
12024
12025	# Check for potential -arch flags.  It is not universal unless
12026	# there are at least two -arch flags with different values.
12027	ac_arch=
12028	ac_prev=
12029	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12030	 if test -n "$ac_prev"; then
12031	   case $ac_word in
12032	     i?86 | x86_64 | ppc | ppc64)
12033	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12034		 ac_arch=$ac_word
12035	       else
12036		 ac_cv_c_bigendian=universal
12037		 break
12038	       fi
12039	       ;;
12040	   esac
12041	   ac_prev=
12042	 elif test "x$ac_word" = "x-arch"; then
12043	   ac_prev=arch
12044	 fi
12045       done
12046fi
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048    if test $ac_cv_c_bigendian = unknown; then
12049      # See if sys/param.h defines the BYTE_ORDER macro.
12050      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h.  */
12052#include <sys/types.h>
12053	     #include <sys/param.h>
12054
12055int
12056main ()
12057{
12058#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12059		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12060		     && LITTLE_ENDIAN)
12061	      bogus endian macros
12062	     #endif
12063
12064  ;
12065  return 0;
12066}
12067_ACEOF
12068if ac_fn_c_try_compile "$LINENO"; then :
12069  # It does; now see whether it defined to BIG_ENDIAN or not.
12070	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071/* end confdefs.h.  */
12072#include <sys/types.h>
12073		#include <sys/param.h>
12074
12075int
12076main ()
12077{
12078#if BYTE_ORDER != BIG_ENDIAN
12079		 not big endian
12080		#endif
12081
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087  ac_cv_c_bigendian=yes
12088else
12089  ac_cv_c_bigendian=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092fi
12093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094    fi
12095    if test $ac_cv_c_bigendian = unknown; then
12096      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12097      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099#include <limits.h>
12100
12101int
12102main ()
12103{
12104#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12105	      bogus endian macros
12106	     #endif
12107
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112if ac_fn_c_try_compile "$LINENO"; then :
12113  # It does; now see whether it defined to _BIG_ENDIAN or not.
12114	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h.  */
12116#include <limits.h>
12117
12118int
12119main ()
12120{
12121#ifndef _BIG_ENDIAN
12122		 not big endian
12123		#endif
12124
12125  ;
12126  return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_compile "$LINENO"; then :
12130  ac_cv_c_bigendian=yes
12131else
12132  ac_cv_c_bigendian=no
12133fi
12134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135fi
12136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137    fi
12138    if test $ac_cv_c_bigendian = unknown; then
12139      # Compile a test program.
12140      if test "$cross_compiling" = yes; then :
12141  # Try to guess by grepping values from an object file.
12142	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143/* end confdefs.h.  */
12144short int ascii_mm[] =
12145		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12146		short int ascii_ii[] =
12147		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12148		int use_ascii (int i) {
12149		  return ascii_mm[i] + ascii_ii[i];
12150		}
12151		short int ebcdic_ii[] =
12152		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12153		short int ebcdic_mm[] =
12154		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12155		int use_ebcdic (int i) {
12156		  return ebcdic_mm[i] + ebcdic_ii[i];
12157		}
12158		extern int foo;
12159
12160int
12161main ()
12162{
12163return use_ascii (foo) == use_ebcdic (foo);
12164  ;
12165  return 0;
12166}
12167_ACEOF
12168if ac_fn_c_try_compile "$LINENO"; then :
12169  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12170	      ac_cv_c_bigendian=yes
12171	    fi
12172	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12173	      if test "$ac_cv_c_bigendian" = unknown; then
12174		ac_cv_c_bigendian=no
12175	      else
12176		# finding both strings is unlikely to happen, but who knows?
12177		ac_cv_c_bigendian=unknown
12178	      fi
12179	    fi
12180fi
12181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182else
12183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h.  */
12185$ac_includes_default
12186int
12187main ()
12188{
12189
12190	     /* Are we little or big endian?  From Harbison&Steele.  */
12191	     union
12192	     {
12193	       long int l;
12194	       char c[sizeof (long int)];
12195	     } u;
12196	     u.l = 1;
12197	     return u.c[sizeof (long int) - 1] == 1;
12198
12199  ;
12200  return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_run "$LINENO"; then :
12204  ac_cv_c_bigendian=no
12205else
12206  ac_cv_c_bigendian=yes
12207fi
12208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12209  conftest.$ac_objext conftest.beam conftest.$ac_ext
12210fi
12211
12212    fi
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12215$as_echo "$ac_cv_c_bigendian" >&6; }
12216 case $ac_cv_c_bigendian in #(
12217   yes)
12218     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12219;; #(
12220   no)
12221      ;; #(
12222   universal)
12223
12224$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12225
12226     ;; #(
12227   *)
12228     as_fn_error "unknown endianness
12229 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12230 esac
12231
12232else
12233
12234$as_echo "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
12235
12236fi
12237
12238# The cast to long int works around a bug in the HP C Compiler
12239# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12240# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12241# This bug is HP SR number 8606223364.
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
12243$as_echo_n "checking size of unsigned short... " >&6; }
12244if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
12245  $as_echo_n "(cached) " >&6
12246else
12247  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
12248
12249else
12250  if test "$ac_cv_type_unsigned_short" = yes; then
12251     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12253{ as_fn_set_status 77
12254as_fn_error "cannot compute sizeof (unsigned short)
12255See \`config.log' for more details." "$LINENO" 5; }; }
12256   else
12257     ac_cv_sizeof_unsigned_short=0
12258   fi
12259fi
12260
12261fi
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
12263$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12264
12265
12266
12267cat >>confdefs.h <<_ACEOF
12268#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12269_ACEOF
12270
12271
12272# The cast to long int works around a bug in the HP C Compiler
12273# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12274# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12275# This bug is HP SR number 8606223364.
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
12277$as_echo_n "checking size of unsigned int... " >&6; }
12278if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
12279  $as_echo_n "(cached) " >&6
12280else
12281  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
12282
12283else
12284  if test "$ac_cv_type_unsigned_int" = yes; then
12285     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12287{ as_fn_set_status 77
12288as_fn_error "cannot compute sizeof (unsigned int)
12289See \`config.log' for more details." "$LINENO" 5; }; }
12290   else
12291     ac_cv_sizeof_unsigned_int=0
12292   fi
12293fi
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
12297$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
12298
12299
12300
12301cat >>confdefs.h <<_ACEOF
12302#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
12303_ACEOF
12304
12305
12306# The cast to long int works around a bug in the HP C Compiler
12307# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12308# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12309# This bug is HP SR number 8606223364.
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
12311$as_echo_n "checking size of unsigned long... " >&6; }
12312if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
12313  $as_echo_n "(cached) " >&6
12314else
12315  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
12316
12317else
12318  if test "$ac_cv_type_unsigned_long" = yes; then
12319     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12321{ as_fn_set_status 77
12322as_fn_error "cannot compute sizeof (unsigned long)
12323See \`config.log' for more details." "$LINENO" 5; }; }
12324   else
12325     ac_cv_sizeof_unsigned_long=0
12326   fi
12327fi
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
12331$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12332
12333
12334
12335cat >>confdefs.h <<_ACEOF
12336#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12337_ACEOF
12338
12339
12340# The cast to long int works around a bug in the HP C Compiler
12341# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12342# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12343# This bug is HP SR number 8606223364.
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
12345$as_echo_n "checking size of unsigned long long... " >&6; }
12346if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
12350
12351else
12352  if test "$ac_cv_type_unsigned_long_long" = yes; then
12353     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12355{ as_fn_set_status 77
12356as_fn_error "cannot compute sizeof (unsigned long long)
12357See \`config.log' for more details." "$LINENO" 5; }; }
12358   else
12359     ac_cv_sizeof_unsigned_long_long=0
12360   fi
12361fi
12362
12363fi
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
12365$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
12366
12367
12368
12369cat >>confdefs.h <<_ACEOF
12370#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
12371_ACEOF
12372
12373
12374
12375
12376  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12377if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12378
12379$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
12380
12381else
12382  for ac_type in 'unsigned int' 'unsigned long int' \
12383	'unsigned long long int'; do
12384       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h.  */
12386$ac_includes_default
12387int
12388main ()
12389{
12390static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12391test_array [0] = 0
12392
12393  ;
12394  return 0;
12395}
12396_ACEOF
12397if ac_fn_c_try_compile "$LINENO"; then :
12398
12399cat >>confdefs.h <<_ACEOF
12400#define uintptr_t $ac_type
12401_ACEOF
12402
12403	  ac_type=
12404fi
12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406       test -z "$ac_type" && break
12407     done
12408fi
12409
12410
12411
12412if test "$ac_cv_sizeof_unsigned_short" = "0" \
12413   || test "$ac_cv_sizeof_unsigned_int" = "0" \
12414   || test "$ac_cv_sizeof_unsigned_long" = "0"; then
12415    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
12416$as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
12417fi
12418
12419# Do we have any 64-bit data types?
12420if test "$ac_cv_sizeof_unsigned_int" != "8" \
12421   && test "$ac_cv_sizeof_unsigned_long" != "8" \
12422   && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
12423   && test "$ac_cv_sizeof_uint64_t" != "8"; then
12424    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64-bit types.  Disabling TIGER/192, SHA-384, and SHA-512" >&5
12425$as_echo "$as_me: WARNING: No 64-bit types.  Disabling TIGER/192, SHA-384, and SHA-512" >&2;}
12426else
12427  available_digests="$available_digests $available_digests_64"
12428fi
12429
12430# If not specified otherwise, all available algorithms will be
12431# included.
12432default_ciphers="$available_ciphers"
12433default_pubkey_ciphers="$available_pubkey_ciphers"
12434default_digests="$available_digests"
12435
12436# Substitutions to set generated files in a Emacs buffer to read-only.
12437emacs_local_vars_begin='Local Variables:'
12438
12439emacs_local_vars_read_only='buffer-read-only: t'
12440
12441emacs_local_vars_end='End:'
12442
12443
12444############################
12445## Command line switches. ##
12446############################
12447
12448# Implementation of the --enable-ciphers switch.
12449# Check whether --enable-ciphers was given.
12450if test "${enable_ciphers+set}" = set; then :
12451  enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
12452else
12453  enabled_ciphers=""
12454fi
12455
12456if test "x$enabled_ciphers" = "x" \
12457   -o "$enabled_ciphers" = "yes"  \
12458   -o "$enabled_ciphers" = "no"; then
12459   enabled_ciphers=$default_ciphers
12460fi
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
12462$as_echo_n "checking which symmetric ciphers to include... " >&6; }
12463for cipher in $enabled_ciphers; do
12464
12465name=$cipher
12466list=$available_ciphers
12467found=0
12468
12469for n in $list; do
12470  if test "x$name" = "x$n"; then
12471    found=1
12472  fi
12473done
12474
12475    if test "$found" = "0"; then
12476       as_fn_error "unsupported cipher \"$cipher\" specified" "$LINENO" 5
12477    fi
12478done
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
12480$as_echo "$enabled_ciphers" >&6; }
12481
12482# Implementation of the --enable-pubkey-ciphers switch.
12483# Check whether --enable-pubkey-ciphers was given.
12484if test "${enable_pubkey_ciphers+set}" = set; then :
12485  enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
12486else
12487  enabled_pubkey_ciphers=""
12488fi
12489
12490if test "x$enabled_pubkey_ciphers" = "x" \
12491   -o "$enabled_pubkey_ciphers" = "yes"  \
12492   -o "$enabled_pubkey_ciphers" = "no"; then
12493   enabled_pubkey_ciphers=$default_pubkey_ciphers
12494fi
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
12496$as_echo_n "checking which public-key ciphers to include... " >&6; }
12497for cipher in $enabled_pubkey_ciphers; do
12498
12499name=$cipher
12500list=$available_pubkey_ciphers
12501found=0
12502
12503for n in $list; do
12504  if test "x$name" = "x$n"; then
12505    found=1
12506  fi
12507done
12508
12509    if test "$found" = "0"; then
12510       as_fn_error "unsupported public-key cipher specified" "$LINENO" 5
12511    fi
12512done
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
12514$as_echo "$enabled_pubkey_ciphers" >&6; }
12515
12516# Implementation of the --enable-digests switch.
12517# Check whether --enable-digests was given.
12518if test "${enable_digests+set}" = set; then :
12519  enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
12520else
12521  enabled_digests=""
12522fi
12523
12524if test "x$enabled_digests" = "x" \
12525   -o "$enabled_digests" = "yes"  \
12526   -o "$enabled_digests" = "no"; then
12527   enabled_digests=$default_digests
12528fi
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
12530$as_echo_n "checking which message digests to include... " >&6; }
12531for digest in $enabled_digests; do
12532
12533name=$digest
12534list=$available_digests
12535found=0
12536
12537for n in $list; do
12538  if test "x$name" = "x$n"; then
12539    found=1
12540  fi
12541done
12542
12543    if test "$found" = "0"; then
12544       as_fn_error "unsupported message digest specified" "$LINENO" 5
12545    fi
12546done
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
12548$as_echo "$enabled_digests" >&6; }
12549
12550# Implementation of the --enable-random switch.
12551# Check whether --enable-random was given.
12552if test "${enable_random+set}" = set; then :
12553  enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
12554fi
12555
12556if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
12557    random=default
12558fi
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
12560$as_echo_n "checking which random module to use... " >&6; }
12561if test "$random" != "default" -a "$random" != "auto"; then
12562
12563name=$random
12564list=$available_random_modules
12565found=0
12566
12567for n in $list; do
12568  if test "x$name" = "x$n"; then
12569    found=1
12570  fi
12571done
12572
12573    if test "$found" = "0"; then
12574       as_fn_error "unsupported random module specified" "$LINENO" 5
12575    fi
12576fi
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random" >&5
12578$as_echo "$random" >&6; }
12579
12580# Implementation of the --disable-dev-random switch.
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
12582$as_echo_n "checking whether use of /dev/random is requested... " >&6; }
12583# Check whether --enable-dev-random was given.
12584if test "${enable_dev_random+set}" = set; then :
12585  enableval=$enable_dev_random; try_dev_random=$enableval
12586else
12587  try_dev_random=yes
12588fi
12589
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
12591$as_echo "$try_dev_random" >&6; }
12592
12593# Implementation of the --with-egd-socket switch.
12594
12595# Check whether --with-egd-socket was given.
12596if test "${with_egd_socket+set}" = set; then :
12597  withval=$with_egd_socket; egd_socket_name="$withval"
12598else
12599  egd_socket_name=""
12600fi
12601
12602
12603cat >>confdefs.h <<_ACEOF
12604#define EGD_SOCKET_NAME "$egd_socket_name"
12605_ACEOF
12606
12607
12608# Implementation of the --enable-random-daemon
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the experimental random daemon is requested" >&5
12610$as_echo_n "checking whether the experimental random daemon is requested... " >&6; }
12611# Check whether --enable-random-daemon was given.
12612if test "${enable_random_daemon+set}" = set; then :
12613  enableval=$enable_random_daemon; use_random_daemon=$enableval
12614else
12615  use_random_daemon=no
12616fi
12617
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_random_daemon" >&5
12619$as_echo "$use_random_daemon" >&6; }
12620if test x$use_random_daemon = xyes ; then
12621
12622$as_echo "#define USE_RANDOM_DAEMON 1" >>confdefs.h
12623
12624fi
12625 if test x$use_random_daemon = xyes; then
12626  USE_RANDOM_DAEMON_TRUE=
12627  USE_RANDOM_DAEMON_FALSE='#'
12628else
12629  USE_RANDOM_DAEMON_TRUE='#'
12630  USE_RANDOM_DAEMON_FALSE=
12631fi
12632
12633
12634
12635# Implementation of --disable-asm.
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI assembler modules are requested" >&5
12637$as_echo_n "checking whether MPI assembler modules are requested... " >&6; }
12638# Check whether --enable-asm was given.
12639if test "${enable_asm+set}" = set; then :
12640  enableval=$enable_asm; try_asm_modules=$enableval
12641else
12642  try_asm_modules=yes
12643fi
12644
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
12646$as_echo "$try_asm_modules" >&6; }
12647
12648# Implementation of the --enable-m-guard switch.
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory guard is requested" >&5
12650$as_echo_n "checking whether memory guard is requested... " >&6; }
12651# Check whether --enable-m-guard was given.
12652if test "${enable_m_guard+set}" = set; then :
12653  enableval=$enable_m_guard; use_m_guard=$enableval
12654else
12655  use_m_guard=no
12656fi
12657
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_m_guard" >&5
12659$as_echo "$use_m_guard" >&6; }
12660if test "$use_m_guard" = yes ; then
12661
12662$as_echo "#define M_GUARD 1" >>confdefs.h
12663
12664fi
12665
12666# Implementation of the --with-capabilities switch.
12667# Check whether we want to use Linux capabilities
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
12669$as_echo_n "checking whether use of capabilities is requested... " >&6; }
12670
12671# Check whether --with-capabilities was given.
12672if test "${with_capabilities+set}" = set; then :
12673  withval=$with_capabilities; use_capabilities="$withval"
12674else
12675  use_capabilities=no
12676fi
12677
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
12679$as_echo "$use_capabilities" >&6; }
12680
12681# Implementation of the --enable-hmac-binary-check.
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
12683$as_echo_n "checking whether a HMAC binary check is requested... " >&6; }
12684# Check whether --enable-hmac-binary-check was given.
12685if test "${enable_hmac_binary_check+set}" = set; then :
12686  enableval=$enable_hmac_binary_check; use_hmac_binary_check=$enableval
12687else
12688  use_hmac_binary_check=no
12689fi
12690
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
12692$as_echo "$use_hmac_binary_check" >&6; }
12693if test "$use_hmac_binary_check" = yes ; then
12694
12695$as_echo "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
12696
12697fi
12698
12699
12700# Implementation of the --disable-padlock-support switch.
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
12702$as_echo_n "checking whether padlock support is requested... " >&6; }
12703# Check whether --enable-padlock-support was given.
12704if test "${enable_padlock_support+set}" = set; then :
12705  enableval=$enable_padlock_support; padlocksupport=$enableval
12706else
12707  padlocksupport=yes
12708fi
12709
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
12711$as_echo "$padlocksupport" >&6; }
12712if test x"$padlocksupport" = xyes ; then
12713
12714$as_echo "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
12715
12716fi
12717
12718# Implementation of the --disable-aesni-support switch.
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AESNI support is requested" >&5
12720$as_echo_n "checking whether AESNI support is requested... " >&6; }
12721# Check whether --enable-aesni-support was given.
12722if test "${enable_aesni_support+set}" = set; then :
12723  enableval=$enable_aesni_support; aesnisupport=$enableval
12724else
12725  aesnisupport=yes
12726fi
12727
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aesnisupport" >&5
12729$as_echo "$aesnisupport" >&6; }
12730if test x"$aesnisupport" = xyes ; then
12731
12732$as_echo "#define ENABLE_AESNI_SUPPORT 1" >>confdefs.h
12733
12734fi
12735
12736# Implementation of the --disable-O-flag-munging switch.
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
12738$as_echo_n "checking whether a -O flag munging is requested... " >&6; }
12739# Check whether --enable-O-flag-munging was given.
12740if test "${enable_O_flag_munging+set}" = set; then :
12741  enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
12742else
12743  enable_o_flag_munging=yes
12744fi
12745
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
12747$as_echo "$enable_o_flag_munging" >&6; }
12748 if test "$enable_o_flag_munging" = "yes"; then
12749  ENABLE_O_FLAG_MUNGING_TRUE=
12750  ENABLE_O_FLAG_MUNGING_FALSE='#'
12751else
12752  ENABLE_O_FLAG_MUNGING_TRUE='#'
12753  ENABLE_O_FLAG_MUNGING_FALSE=
12754fi
12755
12756
12757
12758
12759
12760cat >>confdefs.h <<_ACEOF
12761#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
12762_ACEOF
12763
12764
12765# For some systems we know that we have ld_version scripts.
12766# Use it then as default.
12767have_ld_version_script=no
12768case "${host}" in
12769    *-*-linux*)
12770	have_ld_version_script=yes
12771        ;;
12772    *-*-gnu*)
12773	have_ld_version_script=yes
12774        ;;
12775esac
12776# Check whether --enable-ld-version-script was given.
12777if test "${enable_ld_version_script+set}" = set; then :
12778  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
12779else
12780   :
12781fi
12782
12783 if test "$have_ld_version_script" = "yes"; then
12784  HAVE_LD_VERSION_SCRIPT_TRUE=
12785  HAVE_LD_VERSION_SCRIPT_FALSE='#'
12786else
12787  HAVE_LD_VERSION_SCRIPT_TRUE='#'
12788  HAVE_LD_VERSION_SCRIPT_FALSE=
12789fi
12790
12791
12792
12793cat >>confdefs.h <<_ACEOF
12794#define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
12795_ACEOF
12796
12797
12798cat >>confdefs.h <<_ACEOF
12799#define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
12800_ACEOF
12801
12802
12803
12804###############################
12805#### Checks for libraries. ####
12806###############################
12807
12808#
12809# gpg-error is required.
12810#
12811
12812# Check whether --with-gpg-error-prefix was given.
12813if test "${with_gpg_error_prefix+set}" = set; then :
12814  withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
12815else
12816  gpg_error_config_prefix=""
12817fi
12818
12819  if test x$gpg_error_config_prefix != x ; then
12820     if test x${GPG_ERROR_CONFIG+set} != xset ; then
12821        GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
12822     fi
12823  fi
12824
12825  if test -n "$ac_tool_prefix"; then
12826  # Extract the first word of "${ac_tool_prefix}gpg-error-config", so it can be a program name with args.
12827set dummy ${ac_tool_prefix}gpg-error-config; ac_word=$2
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
12830if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then :
12831  $as_echo_n "(cached) " >&6
12832else
12833  case $GPG_ERROR_CONFIG in
12834  [\\/]* | ?:[\\/]*)
12835  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
12836  ;;
12837  *)
12838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841  IFS=$as_save_IFS
12842  test -z "$as_dir" && as_dir=.
12843    for ac_exec_ext in '' $ac_executable_extensions; do
12844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12845    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847    break 2
12848  fi
12849done
12850  done
12851IFS=$as_save_IFS
12852
12853  ;;
12854esac
12855fi
12856GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
12857if test -n "$GPG_ERROR_CONFIG"; then
12858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
12859$as_echo "$GPG_ERROR_CONFIG" >&6; }
12860else
12861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
12863fi
12864
12865
12866fi
12867if test -z "$ac_cv_path_GPG_ERROR_CONFIG"; then
12868  ac_pt_GPG_ERROR_CONFIG=$GPG_ERROR_CONFIG
12869  # Extract the first word of "gpg-error-config", so it can be a program name with args.
12870set dummy gpg-error-config; ac_word=$2
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872$as_echo_n "checking for $ac_word... " >&6; }
12873if test "${ac_cv_path_ac_pt_GPG_ERROR_CONFIG+set}" = set; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  case $ac_pt_GPG_ERROR_CONFIG in
12877  [\\/]* | ?:[\\/]*)
12878  ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$ac_pt_GPG_ERROR_CONFIG" # Let the user override the test with a path.
12879  ;;
12880  *)
12881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882for as_dir in $PATH
12883do
12884  IFS=$as_save_IFS
12885  test -z "$as_dir" && as_dir=.
12886    for ac_exec_ext in '' $ac_executable_extensions; do
12887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888    ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12890    break 2
12891  fi
12892done
12893  done
12894IFS=$as_save_IFS
12895
12896  ;;
12897esac
12898fi
12899ac_pt_GPG_ERROR_CONFIG=$ac_cv_path_ac_pt_GPG_ERROR_CONFIG
12900if test -n "$ac_pt_GPG_ERROR_CONFIG"; then
12901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPG_ERROR_CONFIG" >&5
12902$as_echo "$ac_pt_GPG_ERROR_CONFIG" >&6; }
12903else
12904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
12906fi
12907
12908  if test "x$ac_pt_GPG_ERROR_CONFIG" = x; then
12909    GPG_ERROR_CONFIG="no"
12910  else
12911    case $cross_compiling:$ac_tool_warned in
12912yes:)
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12915ac_tool_warned=yes ;;
12916esac
12917    GPG_ERROR_CONFIG=$ac_pt_GPG_ERROR_CONFIG
12918  fi
12919else
12920  GPG_ERROR_CONFIG="$ac_cv_path_GPG_ERROR_CONFIG"
12921fi
12922
12923  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
12924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
12925$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
12926  ok=no
12927  if test "$GPG_ERROR_CONFIG" != "no" ; then
12928    req_major=`echo $min_gpg_error_version | \
12929               sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
12930    req_minor=`echo $min_gpg_error_version | \
12931               sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
12932    gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
12933    major=`echo $gpg_error_config_version | \
12934               sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
12935    minor=`echo $gpg_error_config_version | \
12936               sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
12937    if test "$major" -gt "$req_major"; then
12938        ok=yes
12939    else
12940        if test "$major" -eq "$req_major"; then
12941            if test "$minor" -ge "$req_minor"; then
12942               ok=yes
12943            fi
12944        fi
12945    fi
12946  fi
12947  if test $ok = yes; then
12948    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
12949    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
12950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
12951$as_echo "yes ($gpg_error_config_version)" >&6; }
12952    :
12953    if test x"$host" != x ; then
12954      gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
12955      if test x"$gpg_error_config_host" != xnone ; then
12956        if test x"$gpg_error_config_host" != x"$host" ; then
12957  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12958***
12959*** The config script $GPG_ERROR_CONFIG was
12960*** built for $gpg_error_config_host and thus may not match the
12961*** used host $host.
12962*** You may want to use the configure option --with-gpg-error-prefix
12963*** to specify a matching config script.
12964***" >&5
12965$as_echo "$as_me: WARNING:
12966***
12967*** The config script $GPG_ERROR_CONFIG was
12968*** built for $gpg_error_config_host and thus may not match the
12969*** used host $host.
12970*** You may want to use the configure option --with-gpg-error-prefix
12971*** to specify a matching config script.
12972***" >&2;}
12973        fi
12974      fi
12975    fi
12976  else
12977    GPG_ERROR_CFLAGS=""
12978    GPG_ERROR_LIBS=""
12979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
12981    :
12982  fi
12983
12984
12985
12986if test "x$GPG_ERROR_LIBS" = "x"; then
12987  as_fn_error "libgpg-error is needed.
12988                See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
12989fi
12990
12991
12992$as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
12993
12994
12995#
12996# Check whether the GNU Pth library is available.  We require this
12997# to build the optional gcryptrnd program.
12998#
12999
13000# Check whether --with-pth-prefix was given.
13001if test "${with_pth_prefix+set}" = set; then :
13002  withval=$with_pth_prefix; pth_config_prefix="$withval"
13003else
13004  pth_config_prefix=""
13005fi
13006
13007if test x$pth_config_prefix != x ; then
13008   PTH_CONFIG="$pth_config_prefix/bin/pth-config"
13009fi
13010if test "$use_random_daemon" = "yes"; then
13011  # Extract the first word of "pth-config", so it can be a program name with args.
13012set dummy pth-config; ac_word=$2
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014$as_echo_n "checking for $ac_word... " >&6; }
13015if test "${ac_cv_path_PTH_CONFIG+set}" = set; then :
13016  $as_echo_n "(cached) " >&6
13017else
13018  case $PTH_CONFIG in
13019  [\\/]* | ?:[\\/]*)
13020  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
13021  ;;
13022  *)
13023  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024for as_dir in $PATH
13025do
13026  IFS=$as_save_IFS
13027  test -z "$as_dir" && as_dir=.
13028    for ac_exec_ext in '' $ac_executable_extensions; do
13029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032    break 2
13033  fi
13034done
13035  done
13036IFS=$as_save_IFS
13037
13038  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
13039  ;;
13040esac
13041fi
13042PTH_CONFIG=$ac_cv_path_PTH_CONFIG
13043if test -n "$PTH_CONFIG"; then
13044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
13045$as_echo "$PTH_CONFIG" >&6; }
13046else
13047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
13049fi
13050
13051
13052  if test "$PTH_CONFIG" = "no"; then
13053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13054***
13055*** To build the Libgcrypt's random number daemon
13056*** we need the support of the GNU Portable Threads Library.
13057*** Download it from ftp://ftp.gnu.org/gnu/pth/
13058*** On a Debian GNU/Linux system you might want to try
13059***   apt-get install libpth-dev
13060***" >&5
13061$as_echo "$as_me: WARNING:
13062***
13063*** To build the Libgcrypt's random number daemon
13064*** we need the support of the GNU Portable Threads Library.
13065*** Download it from ftp://ftp.gnu.org/gnu/pth/
13066*** On a Debian GNU/Linux system you might want to try
13067***   apt-get install libpth-dev
13068***" >&2;}
13069  else
13070
13071    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
13072    _req_version="1.3.7"
13073
13074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
13075$as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
13076    for _var in _pth_version _req_version; do
13077        eval "_val=\"\$${_var}\""
13078        _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
13079        _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
13080        _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
13081        _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
13082        case $_rtype in
13083            "a" ) _rtype=0 ;;
13084            "b" ) _rtype=1 ;;
13085            "." ) _rtype=2 ;;
13086        esac
13087        _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
13088              "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
13089        eval "${_var}_hex=\"\$_hex\""
13090    done
13091    have_pth=no
13092    if test ".$_pth_version_hex" != .; then
13093        if test ".$_req_version_hex" != .; then
13094            if test $_pth_version_hex -ge $_req_version_hex; then
13095                have_pth=yes
13096            fi
13097        fi
13098    fi
13099    if test $have_pth = yes; then
13100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13101$as_echo "yes" >&6; }
13102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
13103$as_echo_n "checking whether PTH installation is sane... " >&6; }
13104       if test "${gnupg_cv_pth_is_sane+set}" = set; then :
13105  $as_echo_n "(cached) " >&6
13106else
13107
13108         _gnupg_pth_save_cflags=$CFLAGS
13109         _gnupg_pth_save_ldflags=$LDFLAGS
13110         _gnupg_pth_save_libs=$LIBS
13111         CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
13112         LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
13113         LIBS="$LIBS `$PTH_CONFIG --libs`"
13114         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115/* end confdefs.h.  */
13116#include <pth.h>
13117
13118int
13119main ()
13120{
13121 pth_init ();
13122  ;
13123  return 0;
13124}
13125_ACEOF
13126if ac_fn_c_try_link "$LINENO"; then :
13127  gnupg_cv_pth_is_sane=yes
13128else
13129  gnupg_cv_pth_is_sane=no
13130fi
13131rm -f core conftest.err conftest.$ac_objext \
13132    conftest$ac_exeext conftest.$ac_ext
13133         CFLAGS=$_gnupg_pth_save_cflags
13134         LDFLAGS=$_gnupg_pth_save_ldflags
13135         LIBS=$_gnupg_pth_save_libs
13136
13137fi
13138
13139       if test $gnupg_cv_pth_is_sane != yes; then
13140          have_pth=no
13141       fi
13142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
13143$as_echo "$gnupg_cv_pth_is_sane" >&6; }
13144    else
13145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
13147    fi
13148
13149    if test $have_pth = yes; then
13150       PTH_CFLAGS=`$PTH_CONFIG --cflags`
13151       PTH_LIBS=`$PTH_CONFIG --ldflags`
13152       PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
13153
13154$as_echo "#define USE_GNU_PTH 1" >>confdefs.h
13155
13156
13157$as_echo "#define HAVE_PTH 1" >>confdefs.h
13158
13159    fi
13160  fi
13161fi
13162
13163
13164
13165
13166# Solaris needs -lsocket and -lnsl. Unisys system includes
13167# gethostbyname in libsocket but needs libnsl for socket.
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13169$as_echo_n "checking for library containing setsockopt... " >&6; }
13170if test "${ac_cv_search_setsockopt+set}" = set; then :
13171  $as_echo_n "(cached) " >&6
13172else
13173  ac_func_search_save_LIBS=$LIBS
13174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175/* end confdefs.h.  */
13176
13177/* Override any GCC internal prototype to avoid an error.
13178   Use char because int might match the return type of a GCC
13179   builtin and then its argument prototype would still apply.  */
13180#ifdef __cplusplus
13181extern "C"
13182#endif
13183char setsockopt ();
13184int
13185main ()
13186{
13187return setsockopt ();
13188  ;
13189  return 0;
13190}
13191_ACEOF
13192for ac_lib in '' socket; do
13193  if test -z "$ac_lib"; then
13194    ac_res="none required"
13195  else
13196    ac_res=-l$ac_lib
13197    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13198  fi
13199  if ac_fn_c_try_link "$LINENO"; then :
13200  ac_cv_search_setsockopt=$ac_res
13201fi
13202rm -f core conftest.err conftest.$ac_objext \
13203    conftest$ac_exeext
13204  if test "${ac_cv_search_setsockopt+set}" = set; then :
13205  break
13206fi
13207done
13208if test "${ac_cv_search_setsockopt+set}" = set; then :
13209
13210else
13211  ac_cv_search_setsockopt=no
13212fi
13213rm conftest.$ac_ext
13214LIBS=$ac_func_search_save_LIBS
13215fi
13216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13217$as_echo "$ac_cv_search_setsockopt" >&6; }
13218ac_res=$ac_cv_search_setsockopt
13219if test "$ac_res" != no; then :
13220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13221
13222else
13223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13224$as_echo_n "checking for library containing setsockopt... " >&6; }
13225if test "${ac_cv_search_setsockopt+set}" = set; then :
13226  $as_echo_n "(cached) " >&6
13227else
13228  ac_func_search_save_LIBS=$LIBS
13229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230/* end confdefs.h.  */
13231
13232/* Override any GCC internal prototype to avoid an error.
13233   Use char because int might match the return type of a GCC
13234   builtin and then its argument prototype would still apply.  */
13235#ifdef __cplusplus
13236extern "C"
13237#endif
13238char setsockopt ();
13239int
13240main ()
13241{
13242return setsockopt ();
13243  ;
13244  return 0;
13245}
13246_ACEOF
13247for ac_lib in '' socket; do
13248  if test -z "$ac_lib"; then
13249    ac_res="none required"
13250  else
13251    ac_res=-l$ac_lib
13252    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
13253  fi
13254  if ac_fn_c_try_link "$LINENO"; then :
13255  ac_cv_search_setsockopt=$ac_res
13256fi
13257rm -f core conftest.err conftest.$ac_objext \
13258    conftest$ac_exeext
13259  if test "${ac_cv_search_setsockopt+set}" = set; then :
13260  break
13261fi
13262done
13263if test "${ac_cv_search_setsockopt+set}" = set; then :
13264
13265else
13266  ac_cv_search_setsockopt=no
13267fi
13268rm conftest.$ac_ext
13269LIBS=$ac_func_search_save_LIBS
13270fi
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13272$as_echo "$ac_cv_search_setsockopt" >&6; }
13273ac_res=$ac_cv_search_setsockopt
13274if test "$ac_res" != no; then :
13275  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13276
13277fi
13278
13279fi
13280
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13282$as_echo_n "checking for library containing setsockopt... " >&6; }
13283if test "${ac_cv_search_setsockopt+set}" = set; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  ac_func_search_save_LIBS=$LIBS
13287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288/* end confdefs.h.  */
13289
13290/* Override any GCC internal prototype to avoid an error.
13291   Use char because int might match the return type of a GCC
13292   builtin and then its argument prototype would still apply.  */
13293#ifdef __cplusplus
13294extern "C"
13295#endif
13296char setsockopt ();
13297int
13298main ()
13299{
13300return setsockopt ();
13301  ;
13302  return 0;
13303}
13304_ACEOF
13305for ac_lib in '' nsl; do
13306  if test -z "$ac_lib"; then
13307    ac_res="none required"
13308  else
13309    ac_res=-l$ac_lib
13310    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13311  fi
13312  if ac_fn_c_try_link "$LINENO"; then :
13313  ac_cv_search_setsockopt=$ac_res
13314fi
13315rm -f core conftest.err conftest.$ac_objext \
13316    conftest$ac_exeext
13317  if test "${ac_cv_search_setsockopt+set}" = set; then :
13318  break
13319fi
13320done
13321if test "${ac_cv_search_setsockopt+set}" = set; then :
13322
13323else
13324  ac_cv_search_setsockopt=no
13325fi
13326rm conftest.$ac_ext
13327LIBS=$ac_func_search_save_LIBS
13328fi
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13330$as_echo "$ac_cv_search_setsockopt" >&6; }
13331ac_res=$ac_cv_search_setsockopt
13332if test "$ac_res" != no; then :
13333  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13334
13335fi
13336
13337
13338##################################
13339#### Checks for header files. ####
13340##################################
13341
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13343$as_echo_n "checking for ANSI C header files... " >&6; }
13344if test "${ac_cv_header_stdc+set}" = set; then :
13345  $as_echo_n "(cached) " >&6
13346else
13347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348/* end confdefs.h.  */
13349#include <stdlib.h>
13350#include <stdarg.h>
13351#include <string.h>
13352#include <float.h>
13353
13354int
13355main ()
13356{
13357
13358  ;
13359  return 0;
13360}
13361_ACEOF
13362if ac_fn_c_try_compile "$LINENO"; then :
13363  ac_cv_header_stdc=yes
13364else
13365  ac_cv_header_stdc=no
13366fi
13367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368
13369if test $ac_cv_header_stdc = yes; then
13370  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373#include <string.h>
13374
13375_ACEOF
13376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13377  $EGREP "memchr" >/dev/null 2>&1; then :
13378
13379else
13380  ac_cv_header_stdc=no
13381fi
13382rm -f conftest*
13383
13384fi
13385
13386if test $ac_cv_header_stdc = yes; then
13387  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h.  */
13390#include <stdlib.h>
13391
13392_ACEOF
13393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13394  $EGREP "free" >/dev/null 2>&1; then :
13395
13396else
13397  ac_cv_header_stdc=no
13398fi
13399rm -f conftest*
13400
13401fi
13402
13403if test $ac_cv_header_stdc = yes; then
13404  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13405  if test "$cross_compiling" = yes; then :
13406  :
13407else
13408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409/* end confdefs.h.  */
13410#include <ctype.h>
13411#include <stdlib.h>
13412#if ((' ' & 0x0FF) == 0x020)
13413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13415#else
13416# define ISLOWER(c) \
13417		   (('a' <= (c) && (c) <= 'i') \
13418		     || ('j' <= (c) && (c) <= 'r') \
13419		     || ('s' <= (c) && (c) <= 'z'))
13420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13421#endif
13422
13423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13424int
13425main ()
13426{
13427  int i;
13428  for (i = 0; i < 256; i++)
13429    if (XOR (islower (i), ISLOWER (i))
13430	|| toupper (i) != TOUPPER (i))
13431      return 2;
13432  return 0;
13433}
13434_ACEOF
13435if ac_fn_c_try_run "$LINENO"; then :
13436
13437else
13438  ac_cv_header_stdc=no
13439fi
13440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441  conftest.$ac_objext conftest.beam conftest.$ac_ext
13442fi
13443
13444fi
13445fi
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13447$as_echo "$ac_cv_header_stdc" >&6; }
13448if test $ac_cv_header_stdc = yes; then
13449
13450$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13451
13452fi
13453
13454for ac_header in unistd.h sys/select.h sys/msg.h
13455do :
13456  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13457ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13458eval as_val=\$$as_ac_Header
13459   if test "x$as_val" = x""yes; then :
13460  cat >>confdefs.h <<_ACEOF
13461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13462_ACEOF
13463
13464fi
13465
13466done
13467
13468INSERT_SYS_SELECT_H=
13469if test x"$ac_cv_header_sys_select_h" = xyes; then
13470  INSERT_SYS_SELECT_H=" include <sys/select.h>"
13471fi
13472
13473
13474
13475##########################################
13476#### Checks for typedefs, structures, ####
13477####  and compiler characteristics.   ####
13478##########################################
13479
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13481$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13482if test "${ac_cv_c_const+set}" = set; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486/* end confdefs.h.  */
13487
13488int
13489main ()
13490{
13491/* FIXME: Include the comments suggested by Paul. */
13492#ifndef __cplusplus
13493  /* Ultrix mips cc rejects this.  */
13494  typedef int charset[2];
13495  const charset cs;
13496  /* SunOS 4.1.1 cc rejects this.  */
13497  char const *const *pcpcc;
13498  char **ppc;
13499  /* NEC SVR4.0.2 mips cc rejects this.  */
13500  struct point {int x, y;};
13501  static struct point const zero = {0,0};
13502  /* AIX XL C 1.02.0.0 rejects this.
13503     It does not let you subtract one const X* pointer from another in
13504     an arm of an if-expression whose if-part is not a constant
13505     expression */
13506  const char *g = "string";
13507  pcpcc = &g + (g ? g-g : 0);
13508  /* HPUX 7.0 cc rejects these. */
13509  ++pcpcc;
13510  ppc = (char**) pcpcc;
13511  pcpcc = (char const *const *) ppc;
13512  { /* SCO 3.2v4 cc rejects this.  */
13513    char *t;
13514    char const *s = 0 ? (char *) 0 : (char const *) 0;
13515
13516    *t++ = 0;
13517    if (s) return 0;
13518  }
13519  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13520    int x[] = {25, 17};
13521    const int *foo = &x[0];
13522    ++foo;
13523  }
13524  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13525    typedef const int *iptr;
13526    iptr p = 0;
13527    ++p;
13528  }
13529  { /* AIX XL C 1.02.0.0 rejects this saying
13530       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13531    struct s { int j; const int *ap[3]; };
13532    struct s *b; b->j = 5;
13533  }
13534  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13535    const int foo = 10;
13536    if (!foo) return 0;
13537  }
13538  return !cs[0] && !zero.x;
13539#endif
13540
13541  ;
13542  return 0;
13543}
13544_ACEOF
13545if ac_fn_c_try_compile "$LINENO"; then :
13546  ac_cv_c_const=yes
13547else
13548  ac_cv_c_const=no
13549fi
13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551fi
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13553$as_echo "$ac_cv_c_const" >&6; }
13554if test $ac_cv_c_const = no; then
13555
13556$as_echo "#define const /**/" >>confdefs.h
13557
13558fi
13559
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13561$as_echo_n "checking for inline... " >&6; }
13562if test "${ac_cv_c_inline+set}" = set; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  ac_cv_c_inline=no
13566for ac_kw in inline __inline__ __inline; do
13567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568/* end confdefs.h.  */
13569#ifndef __cplusplus
13570typedef int foo_t;
13571static $ac_kw foo_t static_foo () {return 0; }
13572$ac_kw foo_t foo () {return 0; }
13573#endif
13574
13575_ACEOF
13576if ac_fn_c_try_compile "$LINENO"; then :
13577  ac_cv_c_inline=$ac_kw
13578fi
13579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580  test "$ac_cv_c_inline" != no && break
13581done
13582
13583fi
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13585$as_echo "$ac_cv_c_inline" >&6; }
13586
13587case $ac_cv_c_inline in
13588  inline | yes) ;;
13589  *)
13590    case $ac_cv_c_inline in
13591      no) ac_val=;;
13592      *) ac_val=$ac_cv_c_inline;;
13593    esac
13594    cat >>confdefs.h <<_ACEOF
13595#ifndef __cplusplus
13596#define inline $ac_val
13597#endif
13598_ACEOF
13599    ;;
13600esac
13601
13602ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13603if test "x$ac_cv_type_size_t" = x""yes; then :
13604
13605else
13606
13607cat >>confdefs.h <<_ACEOF
13608#define size_t unsigned int
13609_ACEOF
13610
13611fi
13612
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13614$as_echo_n "checking return type of signal handlers... " >&6; }
13615if test "${ac_cv_type_signal+set}" = set; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h.  */
13620#include <sys/types.h>
13621#include <signal.h>
13622
13623int
13624main ()
13625{
13626return *(signal (0, 0)) (0) == 1;
13627  ;
13628  return 0;
13629}
13630_ACEOF
13631if ac_fn_c_try_compile "$LINENO"; then :
13632  ac_cv_type_signal=int
13633else
13634  ac_cv_type_signal=void
13635fi
13636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637fi
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13639$as_echo "$ac_cv_type_signal" >&6; }
13640
13641cat >>confdefs.h <<_ACEOF
13642#define RETSIGTYPE $ac_cv_type_signal
13643_ACEOF
13644
13645
13646ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13647/* NetBSD declares sys_siglist in unistd.h.  */
13648#ifdef HAVE_UNISTD_H
13649# include <unistd.h>
13650#endif
13651
13652"
13653if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
13654  ac_have_decl=1
13655else
13656  ac_have_decl=0
13657fi
13658
13659cat >>confdefs.h <<_ACEOF
13660#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13661_ACEOF
13662
13663
13664ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13665if test "x$ac_cv_type_pid_t" = x""yes; then :
13666
13667else
13668
13669cat >>confdefs.h <<_ACEOF
13670#define pid_t int
13671_ACEOF
13672
13673fi
13674
13675
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
13677$as_echo_n "checking for byte typedef... " >&6; }
13678    if test "${gnupg_cv_typedef_byte+set}" = set; then :
13679  $as_echo_n "(cached) " >&6
13680else
13681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682/* end confdefs.h.  */
13683#define _GNU_SOURCE 1
13684    #include <stdlib.h>
13685    #include <sys/types.h>
13686int
13687main ()
13688{
13689
13690    #undef byte
13691    int a = sizeof(byte);
13692
13693  ;
13694  return 0;
13695}
13696_ACEOF
13697if ac_fn_c_try_compile "$LINENO"; then :
13698  gnupg_cv_typedef_byte=yes
13699else
13700  gnupg_cv_typedef_byte=no
13701fi
13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13703fi
13704
13705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
13706$as_echo "$gnupg_cv_typedef_byte" >&6; }
13707    if test "$gnupg_cv_typedef_byte" = yes; then
13708
13709$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
13710
13711    fi
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
13714$as_echo_n "checking for ushort typedef... " >&6; }
13715    if test "${gnupg_cv_typedef_ushort+set}" = set; then :
13716  $as_echo_n "(cached) " >&6
13717else
13718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719/* end confdefs.h.  */
13720#define _GNU_SOURCE 1
13721    #include <stdlib.h>
13722    #include <sys/types.h>
13723int
13724main ()
13725{
13726
13727    #undef ushort
13728    int a = sizeof(ushort);
13729
13730  ;
13731  return 0;
13732}
13733_ACEOF
13734if ac_fn_c_try_compile "$LINENO"; then :
13735  gnupg_cv_typedef_ushort=yes
13736else
13737  gnupg_cv_typedef_ushort=no
13738fi
13739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740fi
13741
13742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
13743$as_echo "$gnupg_cv_typedef_ushort" >&6; }
13744    if test "$gnupg_cv_typedef_ushort" = yes; then
13745
13746$as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
13747
13748    fi
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
13751$as_echo_n "checking for ulong typedef... " >&6; }
13752    if test "${gnupg_cv_typedef_ulong+set}" = set; then :
13753  $as_echo_n "(cached) " >&6
13754else
13755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h.  */
13757#define _GNU_SOURCE 1
13758    #include <stdlib.h>
13759    #include <sys/types.h>
13760int
13761main ()
13762{
13763
13764    #undef ulong
13765    int a = sizeof(ulong);
13766
13767  ;
13768  return 0;
13769}
13770_ACEOF
13771if ac_fn_c_try_compile "$LINENO"; then :
13772  gnupg_cv_typedef_ulong=yes
13773else
13774  gnupg_cv_typedef_ulong=no
13775fi
13776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777fi
13778
13779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
13780$as_echo "$gnupg_cv_typedef_ulong" >&6; }
13781    if test "$gnupg_cv_typedef_ulong" = yes; then
13782
13783$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
13784
13785    fi
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
13788$as_echo_n "checking for u16 typedef... " >&6; }
13789    if test "${gnupg_cv_typedef_u16+set}" = set; then :
13790  $as_echo_n "(cached) " >&6
13791else
13792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793/* end confdefs.h.  */
13794#define _GNU_SOURCE 1
13795    #include <stdlib.h>
13796    #include <sys/types.h>
13797int
13798main ()
13799{
13800
13801    #undef u16
13802    int a = sizeof(u16);
13803
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808if ac_fn_c_try_compile "$LINENO"; then :
13809  gnupg_cv_typedef_u16=yes
13810else
13811  gnupg_cv_typedef_u16=no
13812fi
13813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814fi
13815
13816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
13817$as_echo "$gnupg_cv_typedef_u16" >&6; }
13818    if test "$gnupg_cv_typedef_u16" = yes; then
13819
13820$as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
13821
13822    fi
13823
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
13825$as_echo_n "checking for u32 typedef... " >&6; }
13826    if test "${gnupg_cv_typedef_u32+set}" = set; then :
13827  $as_echo_n "(cached) " >&6
13828else
13829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830/* end confdefs.h.  */
13831#define _GNU_SOURCE 1
13832    #include <stdlib.h>
13833    #include <sys/types.h>
13834int
13835main ()
13836{
13837
13838    #undef u32
13839    int a = sizeof(u32);
13840
13841  ;
13842  return 0;
13843}
13844_ACEOF
13845if ac_fn_c_try_compile "$LINENO"; then :
13846  gnupg_cv_typedef_u32=yes
13847else
13848  gnupg_cv_typedef_u32=no
13849fi
13850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851fi
13852
13853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
13854$as_echo "$gnupg_cv_typedef_u32" >&6; }
13855    if test "$gnupg_cv_typedef_u32" = yes; then
13856
13857$as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
13858
13859    fi
13860
13861
13862
13863      for ac_header in sys/socket.h
13864do :
13865  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13866if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
13867  cat >>confdefs.h <<_ACEOF
13868#define HAVE_SYS_SOCKET_H 1
13869_ACEOF
13870
13871fi
13872
13873done
13874
13875
13876
13877
13878  :
13879
13880
13881
13882
13883
13884  if test $ac_cv_header_sys_socket_h = yes; then
13885    SYS_SOCKET_H=''
13886  else
13887                    for ac_header in winsock2.h ws2tcpip.h
13888do :
13889  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13890ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13891eval as_val=\$$as_ac_Header
13892   if test "x$as_val" = x""yes; then :
13893  cat >>confdefs.h <<_ACEOF
13894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895_ACEOF
13896
13897fi
13898
13899done
13900
13901    SYS_SOCKET_H='sys/socket.h'
13902  fi
13903
13904
13905   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13906      #if HAVE_SYS_SOCKET_H
13907      # include <sys/socket.h>
13908      #elif HAVE_WS2TCPIP_H
13909      # include <ws2tcpip.h>
13910      #endif
13911"
13912if test "x$ac_cv_type_socklen_t" = x""yes; then :
13913
13914else
13915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13916$as_echo_n "checking for socklen_t equivalent... " >&6; }
13917      if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then :
13918  $as_echo_n "(cached) " >&6
13919else
13920  # Systems have either "struct sockaddr *" or
13921	 # "void *" as the second argument to getpeername
13922	 gl_cv_socklen_t_equiv=
13923	 for arg2 in "struct sockaddr" void; do
13924	   for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13925	     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926/* end confdefs.h.  */
13927#include <sys/types.h>
13928		#include <sys/socket.h>
13929
13930		int getpeername (int, $arg2 *, $t *);
13931int
13932main ()
13933{
13934$t len;
13935		getpeername (0, 0, &len);
13936  ;
13937  return 0;
13938}
13939_ACEOF
13940if ac_fn_c_try_compile "$LINENO"; then :
13941  gl_cv_socklen_t_equiv="$t"
13942fi
13943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944	     test "$gl_cv_socklen_t_equiv" != "" && break
13945	   done
13946	   test "$gl_cv_socklen_t_equiv" != "" && break
13947	 done
13948
13949fi
13950
13951      if test "$gl_cv_socklen_t_equiv" = ""; then
13952	as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13953      fi
13954      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13955$as_echo "$gl_cv_socklen_t_equiv" >&6; }
13956
13957cat >>confdefs.h <<_ACEOF
13958#define socklen_t $gl_cv_socklen_t_equiv
13959_ACEOF
13960
13961fi
13962
13963case "${host}" in
13964  *-*-mingw32*)
13965    # socklen_t may or may not be defined depending on what headers
13966    # are included.  To be safe we use int as this is the actual type.
13967    FALLBACK_SOCKLEN_T="typedef int gcry_socklen_t;"
13968    ;;
13969  *)
13970    if test ".$gl_cv_socklen_t_equiv" = "."; then
13971      FALLBACK_SOCKLEN_T="typedef socklen_t gcry_socklen_t;"
13972    else
13973      FALLBACK_SOCKLEN_T="typedef ${gl_cv_socklen_t_equiv} gcry_socklen_t;"
13974    fi
13975esac
13976
13977
13978#
13979# Check for ELF visibility support.
13980#
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
13982$as_echo_n "checking whether the visibility attribute is supported... " >&6; }
13983if test "${gcry_cv_visibility_attribute+set}" = set; then :
13984  $as_echo_n "(cached) " >&6
13985else
13986  gcry_cv_visibility_attribute=no
13987        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int foo __attribute__ ((visibility ("hidden"))) = 1;
13990            int bar __attribute__ ((visibility ("protected"))) = 1;
13991
13992_ACEOF
13993
13994        if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13995                  1>&5 2>&5 ; then
13996            if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
13997                if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
13998                    gcry_cv_visibility_attribute=yes
13999                fi
14000            fi
14001        fi
14002
14003fi
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
14005$as_echo "$gcry_cv_visibility_attribute" >&6; }
14006if test "$gcry_cv_visibility_attribute" = "yes"; then
14007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
14008$as_echo_n "checking for broken visibility attribute... " >&6; }
14009if test "${gcry_cv_broken_visibility_attribute+set}" = set; then :
14010  $as_echo_n "(cached) " >&6
14011else
14012  gcry_cv_broken_visibility_attribute=yes
14013        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014/* end confdefs.h.  */
14015int foo (int x);
14016            int bar (int x) __asm__ ("foo")
14017                            __attribute__ ((visibility ("hidden")));
14018            int bar (int x) { return x; }
14019
14020_ACEOF
14021
14022        if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14023                  1>&5 2>&5 ; then
14024           if grep '\.hidden[ 	_]foo' conftest.s >/dev/null 2>&1;
14025            then
14026               gcry_cv_broken_visibility_attribute=no
14027           fi
14028        fi
14029
14030fi
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
14032$as_echo "$gcry_cv_broken_visibility_attribute" >&6; }
14033fi
14034if test "$gcry_cv_visibility_attribute" = "yes"; then
14035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
14036$as_echo_n "checking for broken alias attribute... " >&6; }
14037if test "${gcry_cv_broken_alias_attribute+set}" = set; then :
14038  $as_echo_n "(cached) " >&6
14039else
14040  gcry_cv_broken_alias_attribute=yes
14041        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042/* end confdefs.h.  */
14043extern int foo (int x) __asm ("xyzzy");
14044            int bar (int x) { return x; }
14045            extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
14046            extern int dfoo;
14047            extern __typeof (dfoo) dfoo __asm ("abccb");
14048            int dfoo = 1;
14049
14050_ACEOF
14051
14052        if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14053                  1>&5 2>&5 ; then
14054           if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
14055              grep 'abccb' conftest.s >/dev/null 2>&1; then
14056              gcry_cv_broken_alias_attribute=no
14057           fi
14058        fi
14059
14060fi
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
14062$as_echo "$gcry_cv_broken_alias_attribute" >&6; }
14063fi
14064if test "$gcry_cv_visibility_attribute" = "yes"; then
14065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
14066$as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
14067if test "${gcry_cv_gcc_has_f_visibility+set}" = set; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  gcry_cv_gcc_has_f_visibility=no
14071        _gcc_cflags_save=$CFLAGS
14072        CFLAGS="-fvisibility=hidden"
14073        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074/* end confdefs.h.  */
14075
14076int
14077main ()
14078{
14079
14080  ;
14081  return 0;
14082}
14083_ACEOF
14084if ac_fn_c_try_compile "$LINENO"; then :
14085  gcry_cv_gcc_has_f_visibility=yes
14086fi
14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088        CFLAGS=$_gcc_cflags_save;
14089
14090fi
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
14092$as_echo "$gcry_cv_gcc_has_f_visibility" >&6; }
14093fi
14094if test "$gcry_cv_visibility_attribute" = "yes" \
14095   && test "$gcry_cv_broken_visibility_attribute" != "yes" \
14096   && test "$gcry_cv_broken_alias_attribute" != "yes" \
14097   && test "$gcry_cv_gcc_has_f_visibility" = "yes"
14098 then
14099
14100$as_echo "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
14101
14102   CFLAGS="$CFLAGS -fvisibility=hidden"
14103fi
14104
14105
14106#######################################
14107#### Checks for library functions. ####
14108#######################################
14109
14110for ac_func in vprintf
14111do :
14112  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14113if test "x$ac_cv_func_vprintf" = x""yes; then :
14114  cat >>confdefs.h <<_ACEOF
14115#define HAVE_VPRINTF 1
14116_ACEOF
14117
14118ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14119if test "x$ac_cv_func__doprnt" = x""yes; then :
14120
14121$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14122
14123fi
14124
14125fi
14126done
14127
14128
14129# We have replacements for these in src/missing-string.c
14130for ac_func in stpcpy strcasecmp
14131do :
14132  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14134eval as_val=\$$as_ac_var
14135   if test "x$as_val" = x""yes; then :
14136  cat >>confdefs.h <<_ACEOF
14137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14138_ACEOF
14139
14140fi
14141done
14142
14143# We have replacements for these in src/g10lib.h
14144for ac_func in strtoul memmove stricmp atexit raise
14145do :
14146  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14147ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14148eval as_val=\$$as_ac_var
14149   if test "x$as_val" = x""yes; then :
14150  cat >>confdefs.h <<_ACEOF
14151#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14152_ACEOF
14153
14154fi
14155done
14156
14157# Other checks
14158for ac_func in strerror rand mmap getpagesize sysconf waitpid wait4
14159do :
14160  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14161ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14162eval as_val=\$$as_ac_var
14163   if test "x$as_val" = x""yes; then :
14164  cat >>confdefs.h <<_ACEOF
14165#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14166_ACEOF
14167
14168fi
14169done
14170
14171for ac_func in gettimeofday getrusage gethrtime clock_gettime syslog
14172do :
14173  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14175eval as_val=\$$as_ac_var
14176   if test "x$as_val" = x""yes; then :
14177  cat >>confdefs.h <<_ACEOF
14178#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14179_ACEOF
14180
14181fi
14182done
14183
14184for ac_func in fcntl ftruncate
14185do :
14186  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14188eval as_val=\$$as_ac_var
14189   if test "x$as_val" = x""yes; then :
14190  cat >>confdefs.h <<_ACEOF
14191#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14192_ACEOF
14193
14194fi
14195done
14196
14197
14198 for ac_func in mlock
14199do :
14200  ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
14201if test "x$ac_cv_func_mlock" = x""yes; then :
14202  cat >>confdefs.h <<_ACEOF
14203#define HAVE_MLOCK 1
14204_ACEOF
14205
14206fi
14207done
14208
14209    if test "$ac_cv_func_mlock" = "no"; then
14210        for ac_header in sys/mman.h
14211do :
14212  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14213if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14214  cat >>confdefs.h <<_ACEOF
14215#define HAVE_SYS_MMAN_H 1
14216_ACEOF
14217
14218fi
14219
14220done
14221
14222        if test "$ac_cv_header_sys_mman_h" = "yes"; then
14223            # Add librt to LIBS:
14224            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
14225$as_echo_n "checking for memlk in -lrt... " >&6; }
14226if test "${ac_cv_lib_rt_memlk+set}" = set; then :
14227  $as_echo_n "(cached) " >&6
14228else
14229  ac_check_lib_save_LIBS=$LIBS
14230LIBS="-lrt  $LIBS"
14231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232/* end confdefs.h.  */
14233
14234/* Override any GCC internal prototype to avoid an error.
14235   Use char because int might match the return type of a GCC
14236   builtin and then its argument prototype would still apply.  */
14237#ifdef __cplusplus
14238extern "C"
14239#endif
14240char memlk ();
14241int
14242main ()
14243{
14244return memlk ();
14245  ;
14246  return 0;
14247}
14248_ACEOF
14249if ac_fn_c_try_link "$LINENO"; then :
14250  ac_cv_lib_rt_memlk=yes
14251else
14252  ac_cv_lib_rt_memlk=no
14253fi
14254rm -f core conftest.err conftest.$ac_objext \
14255    conftest$ac_exeext conftest.$ac_ext
14256LIBS=$ac_check_lib_save_LIBS
14257fi
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
14259$as_echo "$ac_cv_lib_rt_memlk" >&6; }
14260if test "x$ac_cv_lib_rt_memlk" = x""yes; then :
14261  cat >>confdefs.h <<_ACEOF
14262#define HAVE_LIBRT 1
14263_ACEOF
14264
14265  LIBS="-lrt $LIBS"
14266
14267fi
14268
14269            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
14270$as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
14271if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275/* end confdefs.h.  */
14276
14277                    #include <assert.h>
14278                    #ifdef HAVE_SYS_MMAN_H
14279                    #include <sys/mman.h>
14280                    #endif
14281
14282int
14283main ()
14284{
14285
14286int i;
14287
14288/* glibc defines this for functions which it implements
14289 * to always fail with ENOSYS.  Some functions are actually
14290 * named something starting with __ and the normal name
14291 * is an alias.  */
14292#if defined (__stub_mlock) || defined (__stub___mlock)
14293choke me
14294#else
14295mlock(&i, 4);
14296#endif
14297; return 0;
14298
14299  ;
14300  return 0;
14301}
14302_ACEOF
14303if ac_fn_c_try_link "$LINENO"; then :
14304  gnupg_cv_mlock_is_in_sys_mman=yes
14305else
14306  gnupg_cv_mlock_is_in_sys_mman=no
14307fi
14308rm -f core conftest.err conftest.$ac_objext \
14309    conftest$ac_exeext conftest.$ac_ext
14310fi
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
14312$as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
14313            if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
14314
14315$as_echo "#define HAVE_MLOCK 1" >>confdefs.h
14316
14317            fi
14318        fi
14319    fi
14320    if test "$ac_cv_func_mlock" = "yes"; then
14321        for ac_func in sysconf getpagesize
14322do :
14323  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14324ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14325eval as_val=\$$as_ac_var
14326   if test "x$as_val" = x""yes; then :
14327  cat >>confdefs.h <<_ACEOF
14328#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14329_ACEOF
14330
14331fi
14332done
14333
14334        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
14335$as_echo_n "checking whether mlock is broken... " >&6; }
14336          if test "${gnupg_cv_have_broken_mlock+set}" = set; then :
14337  $as_echo_n "(cached) " >&6
14338else
14339  if test "$cross_compiling" = yes; then :
14340  gnupg_cv_have_broken_mlock="assume-no"
14341
14342else
14343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h.  */
14345
14346#include <stdlib.h>
14347#include <unistd.h>
14348#include <errno.h>
14349#include <sys/mman.h>
14350#include <sys/types.h>
14351#include <fcntl.h>
14352
14353int main()
14354{
14355    char *pool;
14356    int err;
14357    long int pgsize;
14358
14359#if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
14360    pgsize = sysconf (_SC_PAGESIZE);
14361#elif defined (HAVE_GETPAGESIZE)
14362    pgsize = getpagesize();
14363#else
14364    pgsize = -1;
14365#endif
14366
14367    if (pgsize == -1)
14368      pgsize = 4096;
14369
14370    pool = malloc( 4096 + pgsize );
14371    if( !pool )
14372        return 2;
14373    pool += (pgsize - ((long int)pool % pgsize));
14374
14375    err = mlock( pool, 4096 );
14376    if( !err || errno == EPERM )
14377        return 0; /* okay */
14378
14379    return 1;  /* hmmm */
14380}
14381
14382
14383_ACEOF
14384if ac_fn_c_try_run "$LINENO"; then :
14385  gnupg_cv_have_broken_mlock="no"
14386else
14387  gnupg_cv_have_broken_mlock="yes"
14388fi
14389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14390  conftest.$ac_objext conftest.beam conftest.$ac_ext
14391fi
14392
14393
14394fi
14395
14396         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
14397
14398$as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
14399
14400             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14401$as_echo "yes" >&6; }
14402         else
14403            if test "$gnupg_cv_have_broken_mlock" = "no"; then
14404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405$as_echo "no" >&6; }
14406            else
14407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
14408$as_echo "assuming no" >&6; }
14409            fi
14410         fi
14411    fi
14412
14413
14414#
14415# Replacement functions.
14416#
14417for ac_func in getpid clock
14418do :
14419  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14420ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14421eval as_val=\$$as_ac_var
14422   if test "x$as_val" = x""yes; then :
14423  cat >>confdefs.h <<_ACEOF
14424#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14425_ACEOF
14426
14427else
14428  case " $LIBOBJS " in
14429  *" $ac_func.$ac_objext "* ) ;;
14430  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14431 ;;
14432esac
14433
14434fi
14435done
14436
14437
14438
14439
14440#
14441# Check wether it is necessary to link against libdl.
14442#
14443DL_LIBS=""
14444if test "$use_hmac_binary_check" = yes ; then
14445  _gcry_save_libs="$LIBS"
14446  LIBS=""
14447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14448$as_echo_n "checking for library containing dlopen... " >&6; }
14449if test "${ac_cv_search_dlopen+set}" = set; then :
14450  $as_echo_n "(cached) " >&6
14451else
14452  ac_func_search_save_LIBS=$LIBS
14453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454/* end confdefs.h.  */
14455
14456/* Override any GCC internal prototype to avoid an error.
14457   Use char because int might match the return type of a GCC
14458   builtin and then its argument prototype would still apply.  */
14459#ifdef __cplusplus
14460extern "C"
14461#endif
14462char dlopen ();
14463int
14464main ()
14465{
14466return dlopen ();
14467  ;
14468  return 0;
14469}
14470_ACEOF
14471for ac_lib in '' c dl; do
14472  if test -z "$ac_lib"; then
14473    ac_res="none required"
14474  else
14475    ac_res=-l$ac_lib
14476    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14477  fi
14478  if ac_fn_c_try_link "$LINENO"; then :
14479  ac_cv_search_dlopen=$ac_res
14480fi
14481rm -f core conftest.err conftest.$ac_objext \
14482    conftest$ac_exeext
14483  if test "${ac_cv_search_dlopen+set}" = set; then :
14484  break
14485fi
14486done
14487if test "${ac_cv_search_dlopen+set}" = set; then :
14488
14489else
14490  ac_cv_search_dlopen=no
14491fi
14492rm conftest.$ac_ext
14493LIBS=$ac_func_search_save_LIBS
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14496$as_echo "$ac_cv_search_dlopen" >&6; }
14497ac_res=$ac_cv_search_dlopen
14498if test "$ac_res" != no; then :
14499  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14500
14501fi
14502
14503  DL_LIBS=$LIBS
14504  LIBS="$_gcry_save_libs"
14505  LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}"
14506fi
14507
14508
14509
14510#
14511# Check whether we can use Linux capabilities as requested.
14512#
14513if test "$use_capabilities" = "yes" ; then
14514use_capabilities=no
14515for ac_header in sys/capability.h
14516do :
14517  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
14518if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
14519  cat >>confdefs.h <<_ACEOF
14520#define HAVE_SYS_CAPABILITY_H 1
14521_ACEOF
14522
14523fi
14524
14525done
14526
14527if test "$ac_cv_header_sys_capability_h" = "yes" ; then
14528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
14529$as_echo_n "checking for cap_init in -lcap... " >&6; }
14530if test "${ac_cv_lib_cap_cap_init+set}" = set; then :
14531  $as_echo_n "(cached) " >&6
14532else
14533  ac_check_lib_save_LIBS=$LIBS
14534LIBS="-lcap  $LIBS"
14535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536/* end confdefs.h.  */
14537
14538/* Override any GCC internal prototype to avoid an error.
14539   Use char because int might match the return type of a GCC
14540   builtin and then its argument prototype would still apply.  */
14541#ifdef __cplusplus
14542extern "C"
14543#endif
14544char cap_init ();
14545int
14546main ()
14547{
14548return cap_init ();
14549  ;
14550  return 0;
14551}
14552_ACEOF
14553if ac_fn_c_try_link "$LINENO"; then :
14554  ac_cv_lib_cap_cap_init=yes
14555else
14556  ac_cv_lib_cap_cap_init=no
14557fi
14558rm -f core conftest.err conftest.$ac_objext \
14559    conftest$ac_exeext conftest.$ac_ext
14560LIBS=$ac_check_lib_save_LIBS
14561fi
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
14563$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
14564if test "x$ac_cv_lib_cap_cap_init" = x""yes; then :
14565  ac_need_libcap=1
14566fi
14567
14568  if test "$ac_cv_lib_cap_cap_init" = "yes"; then
14569
14570$as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
14571
14572     LIBS="$LIBS -lcap"
14573     use_capabilities=yes
14574  fi
14575fi
14576if test "$use_capabilities" = "no" ; then
14577    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14578***
14579*** The use of capabilities on this system is not possible.
14580*** You need a recent Linux kernel and some patches:
14581***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
14582***   fcap-module-990613.tar.gz     (kernel module)
14583***   libcap-1.92.tar.gz            (user mode library and utilities)
14584*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
14585*** set (filesystems menu). Be warned: This code is *really* ALPHA.
14586***" >&5
14587$as_echo "$as_me: WARNING:
14588***
14589*** The use of capabilities on this system is not possible.
14590*** You need a recent Linux kernel and some patches:
14591***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
14592***   fcap-module-990613.tar.gz     (kernel module)
14593***   libcap-1.92.tar.gz            (user mode library and utilities)
14594*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
14595*** set (filesystems menu). Be warned: This code is *really* ALPHA.
14596***" >&2;}
14597fi
14598fi
14599
14600# Check whether a random device is available.
14601if test "$try_dev_random" = yes ; then
14602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
14603$as_echo_n "checking for random device... " >&6; }
14604if test "${ac_cv_have_dev_random+set}" = set; then :
14605  $as_echo_n "(cached) " >&6
14606else
14607  if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
14608      ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
14609fi
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
14611$as_echo "$ac_cv_have_dev_random" >&6; }
14612    if test "$ac_cv_have_dev_random" = yes; then
14613
14614$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
14615
14616    fi
14617else
14618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
14619$as_echo_n "checking for random device... " >&6; }
14620    ac_cv_have_dev_random=no
14621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
14622$as_echo "has been disabled" >&6; }
14623fi
14624
14625# Figure out the random modules for this configuration.
14626if test "$random" = "default"; then
14627
14628    # Select default value.
14629    if test "$ac_cv_have_dev_random" = yes; then
14630        # Try Linuxish random device.
14631        random_modules="linux"
14632    else
14633        case "${host}" in
14634        *-*-mingw32ce*)
14635          # WindowsCE random device.
14636          random_modules="w32ce"
14637          ;;
14638        *-*-mingw32*|*-*-cygwin*)
14639          # Windows random device.
14640          random_modules="w32"
14641          ;;
14642        *)
14643          # Build everything, allow to select at runtime.
14644          random_modules="$auto_random_modules"
14645          ;;
14646        esac
14647    fi
14648else
14649    if test "$random" = "auto"; then
14650        # Build everything, allow to select at runtime.
14651        random_modules="$auto_random_modules"
14652    else
14653        random_modules="$random"
14654    fi
14655fi
14656
14657
14658#
14659# Setup assembler stuff.
14660#
14661
14662tmp_do_check="no"
14663case "${host}" in
14664    *-mingw32msvc*)
14665        ac_cv_sys_symbol_underscore=yes
14666        ;;
14667    i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
14668        ac_cv_sys_symbol_underscore=yes
14669        ;;
14670    *)
14671      if test "$cross_compiling" = yes; then
14672        if test "x$ac_cv_sys_symbol_underscore" = x ; then
14673           ac_cv_sys_symbol_underscore=yes
14674        fi
14675      else
14676         tmp_do_check="yes"
14677      fi
14678       ;;
14679esac
14680if test "$tmp_do_check" = "yes"; then
14681
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14683$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14684  if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
14685  $as_echo_n "(cached) " >&6
14686else
14687  ac_cv_sys_symbol_underscore=no
14688   cat > conftest.$ac_ext <<EOF
14689      void nm_test_func(){}
14690      int main(){nm_test_func;return 0;}
14691EOF
14692  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14693  (eval $ac_compile) 2>&5
14694  ac_status=$?
14695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14696  test $ac_status = 0; }; then
14697    # Now try to grab the symbols.
14698    ac_nlist=conftest.nm
14699    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist\""; } >&5
14700  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) 2>&5
14701  ac_status=$?
14702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14703  test $ac_status = 0; } && test -s "$ac_nlist"; then
14704      # See whether the symbols have a leading underscore.
14705      if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
14706        ac_cv_sys_symbol_underscore=yes
14707      else
14708        if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
14709          :
14710        else
14711          echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14712        fi
14713      fi
14714    else
14715      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14716    fi
14717  else
14718    echo "configure: failed program was:" >&5
14719    cat conftest.c >&5
14720  fi
14721  rm -rf conftest*
14722
14723fi
14724
14725  else
14726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14727$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14728  fi
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
14730$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
14731if test x$ac_cv_sys_symbol_underscore = xyes; then
14732
14733$as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
14734
14735fi
14736
14737# Check whether --enable-mpi-path was given.
14738if test "${enable_mpi_path+set}" = set; then :
14739  enableval=$enable_mpi_path; mpi_extra_path="$enableval"
14740else
14741  mpi_extra_path=""
14742fi
14743
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi assembler functions" >&5
14745$as_echo_n "checking for mpi assembler functions... " >&6; }
14746if test -f $srcdir/mpi/config.links ; then
14747    . $srcdir/mpi/config.links
14748    ac_config_links="$ac_config_links "$mpi_ln_list""
14749
14750    ac_cv_mpi_sflags="$mpi_sflags"
14751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14752$as_echo "done" >&6; }
14753else
14754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14755$as_echo "failed" >&6; }
14756    as_fn_error "mpi/config.links missing!" "$LINENO" 5
14757fi
14758MPI_SFLAGS="$ac_cv_mpi_sflags"
14759
14760
14761 if test "$mpi_mod_asm_mpih_add1" = yes; then
14762  MPI_MOD_ASM_MPIH_ADD1_TRUE=
14763  MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
14764else
14765  MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
14766  MPI_MOD_ASM_MPIH_ADD1_FALSE=
14767fi
14768
14769 if test "$mpi_mod_asm_mpih_sub1" = yes; then
14770  MPI_MOD_ASM_MPIH_SUB1_TRUE=
14771  MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
14772else
14773  MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
14774  MPI_MOD_ASM_MPIH_SUB1_FALSE=
14775fi
14776
14777 if test "$mpi_mod_asm_mpih_mul1" = yes; then
14778  MPI_MOD_ASM_MPIH_MUL1_TRUE=
14779  MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
14780else
14781  MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
14782  MPI_MOD_ASM_MPIH_MUL1_FALSE=
14783fi
14784
14785 if test "$mpi_mod_asm_mpih_mul2" = yes; then
14786  MPI_MOD_ASM_MPIH_MUL2_TRUE=
14787  MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
14788else
14789  MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
14790  MPI_MOD_ASM_MPIH_MUL2_FALSE=
14791fi
14792
14793 if test "$mpi_mod_asm_mpih_mul3" = yes; then
14794  MPI_MOD_ASM_MPIH_MUL3_TRUE=
14795  MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
14796else
14797  MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
14798  MPI_MOD_ASM_MPIH_MUL3_FALSE=
14799fi
14800
14801 if test "$mpi_mod_asm_mpih_lshift" = yes; then
14802  MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
14803  MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
14804else
14805  MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
14806  MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
14807fi
14808
14809 if test "$mpi_mod_asm_mpih_rshift" = yes; then
14810  MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
14811  MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
14812else
14813  MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
14814  MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
14815fi
14816
14817 if test "$mpi_mod_asm_udiv" = yes; then
14818  MPI_MOD_ASM_UDIV_TRUE=
14819  MPI_MOD_ASM_UDIV_FALSE='#'
14820else
14821  MPI_MOD_ASM_UDIV_TRUE='#'
14822  MPI_MOD_ASM_UDIV_FALSE=
14823fi
14824
14825 if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
14826  MPI_MOD_ASM_UDIV_QRNND_TRUE=
14827  MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
14828else
14829  MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
14830  MPI_MOD_ASM_UDIV_QRNND_FALSE=
14831fi
14832
14833 if test "$mpi_mod_c_mpih_add1" = yes; then
14834  MPI_MOD_C_MPIH_ADD1_TRUE=
14835  MPI_MOD_C_MPIH_ADD1_FALSE='#'
14836else
14837  MPI_MOD_C_MPIH_ADD1_TRUE='#'
14838  MPI_MOD_C_MPIH_ADD1_FALSE=
14839fi
14840
14841 if test "$mpi_mod_c_mpih_sub1" = yes; then
14842  MPI_MOD_C_MPIH_SUB1_TRUE=
14843  MPI_MOD_C_MPIH_SUB1_FALSE='#'
14844else
14845  MPI_MOD_C_MPIH_SUB1_TRUE='#'
14846  MPI_MOD_C_MPIH_SUB1_FALSE=
14847fi
14848
14849 if test "$mpi_mod_c_mpih_mul1" = yes; then
14850  MPI_MOD_C_MPIH_MUL1_TRUE=
14851  MPI_MOD_C_MPIH_MUL1_FALSE='#'
14852else
14853  MPI_MOD_C_MPIH_MUL1_TRUE='#'
14854  MPI_MOD_C_MPIH_MUL1_FALSE=
14855fi
14856
14857 if test "$mpi_mod_c_mpih_mul2" = yes; then
14858  MPI_MOD_C_MPIH_MUL2_TRUE=
14859  MPI_MOD_C_MPIH_MUL2_FALSE='#'
14860else
14861  MPI_MOD_C_MPIH_MUL2_TRUE='#'
14862  MPI_MOD_C_MPIH_MUL2_FALSE=
14863fi
14864
14865 if test "$mpi_mod_c_mpih_mul3" = yes; then
14866  MPI_MOD_C_MPIH_MUL3_TRUE=
14867  MPI_MOD_C_MPIH_MUL3_FALSE='#'
14868else
14869  MPI_MOD_C_MPIH_MUL3_TRUE='#'
14870  MPI_MOD_C_MPIH_MUL3_FALSE=
14871fi
14872
14873 if test "$mpi_mod_c_mpih_lshift" = yes; then
14874  MPI_MOD_C_MPIH_LSHIFT_TRUE=
14875  MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
14876else
14877  MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
14878  MPI_MOD_C_MPIH_LSHIFT_FALSE=
14879fi
14880
14881 if test "$mpi_mod_c_mpih_rshift" = yes; then
14882  MPI_MOD_C_MPIH_RSHIFT_TRUE=
14883  MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
14884else
14885  MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
14886  MPI_MOD_C_MPIH_RSHIFT_FALSE=
14887fi
14888
14889 if test "$mpi_mod_c_udiv" = yes; then
14890  MPI_MOD_C_UDIV_TRUE=
14891  MPI_MOD_C_UDIV_FALSE='#'
14892else
14893  MPI_MOD_C_UDIV_TRUE='#'
14894  MPI_MOD_C_UDIV_FALSE=
14895fi
14896
14897 if test "$mpi_mod_c_udiv_qrnnd" = yes; then
14898  MPI_MOD_C_UDIV_QRNND_TRUE=
14899  MPI_MOD_C_UDIV_QRNND_FALSE='#'
14900else
14901  MPI_MOD_C_UDIV_QRNND_TRUE='#'
14902  MPI_MOD_C_UDIV_QRNND_FALSE=
14903fi
14904
14905
14906if test "$is_development_version" = "yes"; then
14907
14908$as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
14909
14910fi
14911
14912
14913 if test x$cross_compiling = xyes; then
14914  CROSS_COMPILING_TRUE=
14915  CROSS_COMPILING_FALSE='#'
14916else
14917  CROSS_COMPILING_TRUE='#'
14918  CROSS_COMPILING_FALSE=
14919fi
14920
14921
14922
14923# This is handy for debugging so the compiler doesn't rearrange
14924# things and eliminate variables.
14925# Check whether --enable-optimization was given.
14926if test "${enable_optimization+set}" = set; then :
14927  enableval=$enable_optimization; if test $enableval = no ; then
14928                         CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
14929                       fi
14930fi
14931
14932
14933# CFLAGS mangling when using gcc.
14934if test "$GCC" = yes; then
14935    CFLAGS="$CFLAGS -Wall"
14936    if test "$USE_MAINTAINER_MODE" = "yes"; then
14937        CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
14938        CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
14939
14940        # If -Wno-missing-field-initializers is supported we can enable a
14941        # a bunch of really useful warnings.
14942        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
14943$as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
14944        _gcc_cflags_save=$CFLAGS
14945        CFLAGS="-Wno-missing-field-initializers"
14946        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947/* end confdefs.h.  */
14948
14949int
14950main ()
14951{
14952
14953  ;
14954  return 0;
14955}
14956_ACEOF
14957if ac_fn_c_try_compile "$LINENO"; then :
14958  _gcc_wopt=yes
14959else
14960  _gcc_wopt=no
14961fi
14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14964$as_echo "$_gcc_wopt" >&6; }
14965        CFLAGS=$_gcc_cflags_save;
14966        if test x"$_gcc_wopt" = xyes ; then
14967          CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
14968          CFLAGS="$CFLAGS -Wwrite-strings"
14969          CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14970          CFLAGS="$CFLAGS -Wno-missing-field-initializers"
14971          CFLAGS="$CFLAGS -Wno-sign-compare"
14972        fi
14973
14974        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
14975$as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
14976        _gcc_cflags_save=$CFLAGS
14977        CFLAGS="-Wpointer-arith"
14978        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979/* end confdefs.h.  */
14980
14981int
14982main ()
14983{
14984
14985  ;
14986  return 0;
14987}
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"; then :
14990  _gcc_wopt=yes
14991else
14992  _gcc_wopt=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14996$as_echo "$_gcc_wopt" >&6; }
14997        CFLAGS=$_gcc_cflags_save;
14998        if test x"$_gcc_wopt" = xyes ; then
14999          CFLAGS="$CFLAGS -Wpointer-arith"
15000        fi
15001    fi
15002
15003fi
15004
15005# Check whether as(1) supports a noeexecstack feature.  This test
15006# includes an override option.
15007
15008
15009
15010
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
15012$as_echo_n "checking whether non excutable stack support is requested... " >&6; }
15013# Check whether --enable-noexecstack was given.
15014if test "${enable_noexecstack+set}" = set; then :
15015  enableval=$enable_noexecstack; noexecstack_support=$enableval
15016else
15017  noexecstack_support=yes
15018fi
15019
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
15021$as_echo "$noexecstack_support" >&6; }
15022
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
15024$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
15025if test "${cl_cv_as_noexecstack+set}" = set; then :
15026  $as_echo_n "(cached) " >&6
15027else
15028    cat > conftest.c <<EOF
15029void foo() {}
15030EOF
15031  if { ac_try='${CC} $CFLAGS $CPPFLAGS
15032                     -S -o conftest.s conftest.c >/dev/null'
15033  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15034  (eval $ac_try) 2>&5
15035  ac_status=$?
15036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037  test $ac_status = 0; }; } \
15038     && grep .note.GNU-stack conftest.s >/dev/null \
15039     && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
15040                       -c -o conftest.o conftest.s >/dev/null'
15041  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15042  (eval $ac_try) 2>&5
15043  ac_status=$?
15044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045  test $ac_status = 0; }; }
15046  then
15047    cl_cv_as_noexecstack=yes
15048  else
15049    cl_cv_as_noexecstack=no
15050  fi
15051  rm -f conftest*
15052fi
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
15054$as_echo "$cl_cv_as_noexecstack" >&6; }
15055  if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
15056	NOEXECSTACK_FLAGS="-Wa,--noexecstack"
15057  else
15058        NOEXECSTACK_FLAGS=
15059  fi
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070ac_config_commands="$ac_config_commands gcrypt-conf"
15071
15072
15073#####################
15074#### Conclusion. ####
15075#####################
15076
15077# Define conditional sources and config.h symbols depending on the
15078# selected ciphers, pubkey-ciphers, digests and random modules.
15079
15080
15081name=arcfour
15082list=$enabled_ciphers
15083found=0
15084
15085for n in $list; do
15086  if test "x$name" = "x$n"; then
15087    found=1
15088  fi
15089done
15090
15091if test "$found" = "1"; then
15092   GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
15093
15094$as_echo "#define USE_ARCFOUR 1" >>confdefs.h
15095
15096fi
15097
15098
15099name=blowfish
15100list=$enabled_ciphers
15101found=0
15102
15103for n in $list; do
15104  if test "x$name" = "x$n"; then
15105    found=1
15106  fi
15107done
15108
15109if test "$found" = "1" ; then
15110   GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
15111
15112$as_echo "#define USE_BLOWFISH 1" >>confdefs.h
15113
15114fi
15115
15116
15117name=cast5
15118list=$enabled_ciphers
15119found=0
15120
15121for n in $list; do
15122  if test "x$name" = "x$n"; then
15123    found=1
15124  fi
15125done
15126
15127if test "$found" = "1" ; then
15128   GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
15129
15130$as_echo "#define USE_CAST5 1" >>confdefs.h
15131
15132fi
15133
15134
15135name=des
15136list=$enabled_ciphers
15137found=0
15138
15139for n in $list; do
15140  if test "x$name" = "x$n"; then
15141    found=1
15142  fi
15143done
15144
15145if test "$found" = "1" ; then
15146   GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
15147
15148$as_echo "#define USE_DES 1" >>confdefs.h
15149
15150fi
15151
15152
15153name=aes
15154list=$enabled_ciphers
15155found=0
15156
15157for n in $list; do
15158  if test "x$name" = "x$n"; then
15159    found=1
15160  fi
15161done
15162
15163if test "$found" = "1" ; then
15164   GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
15165
15166$as_echo "#define USE_AES 1" >>confdefs.h
15167
15168fi
15169
15170
15171name=twofish
15172list=$enabled_ciphers
15173found=0
15174
15175for n in $list; do
15176  if test "x$name" = "x$n"; then
15177    found=1
15178  fi
15179done
15180
15181if test "$found" = "1" ; then
15182   GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
15183
15184$as_echo "#define USE_TWOFISH 1" >>confdefs.h
15185
15186fi
15187
15188
15189name=serpent
15190list=$enabled_ciphers
15191found=0
15192
15193for n in $list; do
15194  if test "x$name" = "x$n"; then
15195    found=1
15196  fi
15197done
15198
15199if test "$found" = "1" ; then
15200   GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
15201
15202$as_echo "#define USE_SERPENT 1" >>confdefs.h
15203
15204fi
15205
15206
15207name=rfc2268
15208list=$enabled_ciphers
15209found=0
15210
15211for n in $list; do
15212  if test "x$name" = "x$n"; then
15213    found=1
15214  fi
15215done
15216
15217if test "$found" = "1" ; then
15218   GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
15219
15220$as_echo "#define USE_RFC2268 1" >>confdefs.h
15221
15222fi
15223
15224
15225name=seed
15226list=$enabled_ciphers
15227found=0
15228
15229for n in $list; do
15230  if test "x$name" = "x$n"; then
15231    found=1
15232  fi
15233done
15234
15235if test "$found" = "1" ; then
15236   GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
15237
15238$as_echo "#define USE_SEED 1" >>confdefs.h
15239
15240fi
15241
15242
15243name=camellia
15244list=$enabled_ciphers
15245found=0
15246
15247for n in $list; do
15248  if test "x$name" = "x$n"; then
15249    found=1
15250  fi
15251done
15252
15253if test "$found" = "1" ; then
15254   GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
15255
15256$as_echo "#define USE_CAMELLIA 1" >>confdefs.h
15257
15258fi
15259
15260
15261name=dsa
15262list=$enabled_pubkey_ciphers
15263found=0
15264
15265for n in $list; do
15266  if test "x$name" = "x$n"; then
15267    found=1
15268  fi
15269done
15270
15271if test "$found" = "1" ; then
15272   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
15273
15274$as_echo "#define USE_DSA 1" >>confdefs.h
15275
15276fi
15277
15278
15279name=rsa
15280list=$enabled_pubkey_ciphers
15281found=0
15282
15283for n in $list; do
15284  if test "x$name" = "x$n"; then
15285    found=1
15286  fi
15287done
15288
15289if test "$found" = "1" ; then
15290   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
15291
15292$as_echo "#define USE_RSA 1" >>confdefs.h
15293
15294fi
15295
15296
15297name=elgamal
15298list=$enabled_pubkey_ciphers
15299found=0
15300
15301for n in $list; do
15302  if test "x$name" = "x$n"; then
15303    found=1
15304  fi
15305done
15306
15307if test "$found" = "1" ; then
15308   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
15309
15310$as_echo "#define USE_ELGAMAL 1" >>confdefs.h
15311
15312fi
15313
15314
15315name=ecc
15316list=$enabled_pubkey_ciphers
15317found=0
15318
15319for n in $list; do
15320  if test "x$name" = "x$n"; then
15321    found=1
15322  fi
15323done
15324
15325if test "$found" = "1" ; then
15326   GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS ecc.lo"
15327
15328$as_echo "#define USE_ECC 1" >>confdefs.h
15329
15330fi
15331
15332
15333name=crc
15334list=$enabled_digests
15335found=0
15336
15337for n in $list; do
15338  if test "x$name" = "x$n"; then
15339    found=1
15340  fi
15341done
15342
15343if test "$found" = "1" ; then
15344   GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
15345
15346$as_echo "#define USE_CRC 1" >>confdefs.h
15347
15348fi
15349
15350
15351name=md4
15352list=$enabled_digests
15353found=0
15354
15355for n in $list; do
15356  if test "x$name" = "x$n"; then
15357    found=1
15358  fi
15359done
15360
15361if test "$found" = "1" ; then
15362   GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
15363
15364$as_echo "#define USE_MD4 1" >>confdefs.h
15365
15366fi
15367
15368
15369name=md5
15370list=$enabled_digests
15371found=0
15372
15373for n in $list; do
15374  if test "x$name" = "x$n"; then
15375    found=1
15376  fi
15377done
15378
15379if test "$found" = "1" ; then
15380   GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
15381
15382$as_echo "#define USE_MD5 1" >>confdefs.h
15383
15384fi
15385
15386
15387name=sha256
15388list=$enabled_digests
15389found=0
15390
15391for n in $list; do
15392  if test "x$name" = "x$n"; then
15393    found=1
15394  fi
15395done
15396
15397if test "$found" = "1" ; then
15398   GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
15399
15400$as_echo "#define USE_SHA256 1" >>confdefs.h
15401
15402fi
15403
15404
15405name=sha512
15406list=$enabled_digests
15407found=0
15408
15409for n in $list; do
15410  if test "x$name" = "x$n"; then
15411    found=1
15412  fi
15413done
15414
15415if test "$found" = "1" ; then
15416   GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
15417
15418$as_echo "#define USE_SHA512 1" >>confdefs.h
15419
15420fi
15421
15422
15423name=tiger
15424list=$enabled_digests
15425found=0
15426
15427for n in $list; do
15428  if test "x$name" = "x$n"; then
15429    found=1
15430  fi
15431done
15432
15433if test "$found" = "1" ; then
15434   GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
15435
15436$as_echo "#define USE_TIGER 1" >>confdefs.h
15437
15438fi
15439
15440
15441name=whirlpool
15442list=$enabled_digests
15443found=0
15444
15445for n in $list; do
15446  if test "x$name" = "x$n"; then
15447    found=1
15448  fi
15449done
15450
15451if test "$found" = "1" ; then
15452   GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
15453
15454$as_echo "#define USE_WHIRLPOOL 1" >>confdefs.h
15455
15456fi
15457
15458# rmd160 and sha1 should be included always.
15459GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo sha1.lo"
15460
15461$as_echo "#define USE_RMD160 1" >>confdefs.h
15462
15463
15464$as_echo "#define USE_SHA1 1" >>confdefs.h
15465
15466
15467
15468name=linux
15469list=$random_modules
15470found=0
15471
15472for n in $list; do
15473  if test "x$name" = "x$n"; then
15474    found=1
15475  fi
15476done
15477
15478if test "$found" = "1" ; then
15479   GCRYPT_RANDOM="$GCRYPT_RANDOM rndlinux.lo"
15480
15481$as_echo "#define USE_RNDLINUX 1" >>confdefs.h
15482
15483fi
15484
15485
15486name=unix
15487list=$random_modules
15488found=0
15489
15490for n in $list; do
15491  if test "x$name" = "x$n"; then
15492    found=1
15493  fi
15494done
15495
15496if test "$found" = "1" ; then
15497   GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
15498
15499$as_echo "#define USE_RNDUNIX 1" >>confdefs.h
15500
15501   print_egd_notice=yes
15502fi
15503
15504
15505name=egd
15506list=$random_modules
15507found=0
15508
15509for n in $list; do
15510  if test "x$name" = "x$n"; then
15511    found=1
15512  fi
15513done
15514
15515if test "$found" = "1" ; then
15516   GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
15517
15518$as_echo "#define USE_RNDEGD 1" >>confdefs.h
15519
15520fi
15521
15522
15523name=w32
15524list=$random_modules
15525found=0
15526
15527for n in $list; do
15528  if test "x$name" = "x$n"; then
15529    found=1
15530  fi
15531done
15532
15533if test "$found" = "1" ; then
15534   GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
15535
15536$as_echo "#define USE_RNDW32 1" >>confdefs.h
15537
15538fi
15539
15540
15541name=w32ce
15542list=$random_modules
15543found=0
15544
15545for n in $list; do
15546  if test "x$name" = "x$n"; then
15547    found=1
15548  fi
15549done
15550
15551if test "$found" = "1" ; then
15552   GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32ce.lo"
15553
15554$as_echo "#define USE_RNDW32CE 1" >>confdefs.h
15555
15556fi
15557
15558
15559
15560
15561
15562
15563LIBGCRYPT_CIPHERS=$enabled_ciphers
15564
15565LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
15566
15567LIBGCRYPT_DIGESTS=$enabled_digests
15568
15569
15570# For printing the configuration we need a colon separated list of
15571# algorithm names.
15572tmp=`echo "$enabled_ciphers" | tr ' ' : `
15573
15574cat >>confdefs.h <<_ACEOF
15575#define LIBGCRYPT_CIPHERS "$tmp"
15576_ACEOF
15577
15578tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
15579
15580cat >>confdefs.h <<_ACEOF
15581#define LIBGCRYPT_PUBKEY_CIPHERS "$tmp"
15582_ACEOF
15583
15584tmp=`echo "$enabled_digests" | tr ' ' : `
15585
15586cat >>confdefs.h <<_ACEOF
15587#define LIBGCRYPT_DIGESTS "$tmp"
15588_ACEOF
15589
15590
15591
15592
15593# Generate extended version information for W32.
15594if test "$have_w32_system" = yes; then
15595   BUILD_TIMESTAMP=`date --iso-8601=minutes`
15596      BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
15597      BUILD_FILEVERSION="${BUILD_FILEVERSION}${BUILD_REVISION}"
15598fi
15599
15600
15601
15602
15603cat >>confdefs.h <<_ACEOF
15604#define BUILD_REVISION "$BUILD_REVISION"
15605_ACEOF
15606
15607
15608
15609
15610# And create the files.
15611ac_config_files="$ac_config_files Makefile m4/Makefile compat/Makefile mpi/Makefile cipher/Makefile random/Makefile doc/Makefile src/Makefile src/gcrypt.h src/libgcrypt-config src/versioninfo.rc tests/Makefile"
15612
15613cat >confcache <<\_ACEOF
15614# This file is a shell script that caches the results of configure
15615# tests run on this system so they can be shared between configure
15616# scripts and configure runs, see configure's option --config-cache.
15617# It is not useful on other systems.  If it contains results you don't
15618# want to keep, you may remove or edit it.
15619#
15620# config.status only pays attention to the cache file if you give it
15621# the --recheck option to rerun configure.
15622#
15623# `ac_cv_env_foo' variables (set or unset) will be overridden when
15624# loading this file, other *unset* `ac_cv_foo' will be assigned the
15625# following values.
15626
15627_ACEOF
15628
15629# The following way of writing the cache mishandles newlines in values,
15630# but we know of no workaround that is simple, portable, and efficient.
15631# So, we kill variables containing newlines.
15632# Ultrix sh set writes to stderr and can't be redirected directly,
15633# and sets the high bit in the cache file unless we assign to the vars.
15634(
15635  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15636    eval ac_val=\$$ac_var
15637    case $ac_val in #(
15638    *${as_nl}*)
15639      case $ac_var in #(
15640      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15641$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15642      esac
15643      case $ac_var in #(
15644      _ | IFS | as_nl) ;; #(
15645      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15646      *) { eval $ac_var=; unset $ac_var;} ;;
15647      esac ;;
15648    esac
15649  done
15650
15651  (set) 2>&1 |
15652    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15653    *${as_nl}ac_space=\ *)
15654      # `set' does not quote correctly, so add quotes: double-quote
15655      # substitution turns \\\\ into \\, and sed turns \\ into \.
15656      sed -n \
15657	"s/'/'\\\\''/g;
15658	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15659      ;; #(
15660    *)
15661      # `set' quotes correctly as required by POSIX, so do not add quotes.
15662      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15663      ;;
15664    esac |
15665    sort
15666) |
15667  sed '
15668     /^ac_cv_env_/b end
15669     t clear
15670     :clear
15671     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15672     t end
15673     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15674     :end' >>confcache
15675if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15676  if test -w "$cache_file"; then
15677    test "x$cache_file" != "x/dev/null" &&
15678      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15679$as_echo "$as_me: updating cache $cache_file" >&6;}
15680    cat confcache >$cache_file
15681  else
15682    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15683$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15684  fi
15685fi
15686rm -f confcache
15687
15688test "x$prefix" = xNONE && prefix=$ac_default_prefix
15689# Let make expand exec_prefix.
15690test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15691
15692DEFS=-DHAVE_CONFIG_H
15693
15694ac_libobjs=
15695ac_ltlibobjs=
15696for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15697  # 1. Remove the extension, and $U if already installed.
15698  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15699  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15700  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15701  #    will be set to the directory where LIBOBJS objects are built.
15702  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15703  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15704done
15705LIBOBJS=$ac_libobjs
15706
15707LTLIBOBJS=$ac_ltlibobjs
15708
15709
15710 if test -n "$EXEEXT"; then
15711  am__EXEEXT_TRUE=
15712  am__EXEEXT_FALSE='#'
15713else
15714  am__EXEEXT_TRUE='#'
15715  am__EXEEXT_FALSE=
15716fi
15717
15718if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15719  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15720Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721fi
15722if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15723  as_fn_error "conditional \"AMDEP\" was never defined.
15724Usually this means the macro was only invoked conditionally." "$LINENO" 5
15725fi
15726if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15727  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15728Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729fi
15730if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15731  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15732Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733fi
15734if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15735  as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
15736Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737fi
15738if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15739  as_fn_error "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15740Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741fi
15742
15743if test -z "${USE_RANDOM_DAEMON_TRUE}" && test -z "${USE_RANDOM_DAEMON_FALSE}"; then
15744  as_fn_error "conditional \"USE_RANDOM_DAEMON\" was never defined.
15745Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746fi
15747if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
15748  as_fn_error "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
15749Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750fi
15751if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15752  as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15753Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754fi
15755if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
15756  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
15757Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758fi
15759if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
15760  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
15761Usually this means the macro was only invoked conditionally." "$LINENO" 5
15762fi
15763if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
15764  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
15765Usually this means the macro was only invoked conditionally." "$LINENO" 5
15766fi
15767if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
15768  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
15769Usually this means the macro was only invoked conditionally." "$LINENO" 5
15770fi
15771if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
15772  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
15773Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774fi
15775if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
15776  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
15777Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778fi
15779if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
15780  as_fn_error "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
15781Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782fi
15783if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
15784  as_fn_error "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
15785Usually this means the macro was only invoked conditionally." "$LINENO" 5
15786fi
15787if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
15788  as_fn_error "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
15789Usually this means the macro was only invoked conditionally." "$LINENO" 5
15790fi
15791if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
15792  as_fn_error "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
15793Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794fi
15795if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
15796  as_fn_error "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
15797Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798fi
15799if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
15800  as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
15801Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802fi
15803if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
15804  as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
15805Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806fi
15807if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
15808  as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
15809Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810fi
15811if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
15812  as_fn_error "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
15813Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814fi
15815if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
15816  as_fn_error "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818fi
15819if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
15820  as_fn_error "conditional \"MPI_MOD_C_UDIV\" was never defined.
15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822fi
15823if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
15824  as_fn_error "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
15825Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826fi
15827if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15828  as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
15829Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830fi
15831
15832: ${CONFIG_STATUS=./config.status}
15833ac_write_fail=0
15834ac_clean_files_save=$ac_clean_files
15835ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15838as_write_fail=0
15839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15840#! $SHELL
15841# Generated by $as_me.
15842# Run this file to recreate the current configuration.
15843# Compiler output produced by configure, useful for debugging
15844# configure, is in config.log if it exists.
15845
15846debug=false
15847ac_cs_recheck=false
15848ac_cs_silent=false
15849
15850SHELL=\${CONFIG_SHELL-$SHELL}
15851export SHELL
15852_ASEOF
15853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15854## -------------------- ##
15855## M4sh Initialization. ##
15856## -------------------- ##
15857
15858# Be more Bourne compatible
15859DUALCASE=1; export DUALCASE # for MKS sh
15860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15861  emulate sh
15862  NULLCMD=:
15863  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15864  # is contrary to our usage.  Disable this feature.
15865  alias -g '${1+"$@"}'='"$@"'
15866  setopt NO_GLOB_SUBST
15867else
15868  case `(set -o) 2>/dev/null` in #(
15869  *posix*) :
15870    set -o posix ;; #(
15871  *) :
15872     ;;
15873esac
15874fi
15875
15876
15877as_nl='
15878'
15879export as_nl
15880# Printing a long string crashes Solaris 7 /usr/bin/printf.
15881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15884# Prefer a ksh shell builtin over an external printf program on Solaris,
15885# but without wasting forks for bash or zsh.
15886if test -z "$BASH_VERSION$ZSH_VERSION" \
15887    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15888  as_echo='print -r --'
15889  as_echo_n='print -rn --'
15890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15891  as_echo='printf %s\n'
15892  as_echo_n='printf %s'
15893else
15894  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15895    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15896    as_echo_n='/usr/ucb/echo -n'
15897  else
15898    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15899    as_echo_n_body='eval
15900      arg=$1;
15901      case $arg in #(
15902      *"$as_nl"*)
15903	expr "X$arg" : "X\\(.*\\)$as_nl";
15904	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15905      esac;
15906      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15907    '
15908    export as_echo_n_body
15909    as_echo_n='sh -c $as_echo_n_body as_echo'
15910  fi
15911  export as_echo_body
15912  as_echo='sh -c $as_echo_body as_echo'
15913fi
15914
15915# The user is always right.
15916if test "${PATH_SEPARATOR+set}" != set; then
15917  PATH_SEPARATOR=:
15918  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15919    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15920      PATH_SEPARATOR=';'
15921  }
15922fi
15923
15924
15925# IFS
15926# We need space, tab and new line, in precisely that order.  Quoting is
15927# there to prevent editors from complaining about space-tab.
15928# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15929# splitting by setting IFS to empty value.)
15930IFS=" ""	$as_nl"
15931
15932# Find who we are.  Look in the path if we contain no directory separator.
15933case $0 in #((
15934  *[\\/]* ) as_myself=$0 ;;
15935  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15936for as_dir in $PATH
15937do
15938  IFS=$as_save_IFS
15939  test -z "$as_dir" && as_dir=.
15940    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15941  done
15942IFS=$as_save_IFS
15943
15944     ;;
15945esac
15946# We did not find ourselves, most probably we were run as `sh COMMAND'
15947# in which case we are not to be found in the path.
15948if test "x$as_myself" = x; then
15949  as_myself=$0
15950fi
15951if test ! -f "$as_myself"; then
15952  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15953  exit 1
15954fi
15955
15956# Unset variables that we do not need and which cause bugs (e.g. in
15957# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15958# suppresses any "Segmentation fault" message there.  '((' could
15959# trigger a bug in pdksh 5.2.14.
15960for as_var in BASH_ENV ENV MAIL MAILPATH
15961do eval test x\${$as_var+set} = xset \
15962  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15963done
15964PS1='$ '
15965PS2='> '
15966PS4='+ '
15967
15968# NLS nuisances.
15969LC_ALL=C
15970export LC_ALL
15971LANGUAGE=C
15972export LANGUAGE
15973
15974# CDPATH.
15975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15976
15977
15978# as_fn_error ERROR [LINENO LOG_FD]
15979# ---------------------------------
15980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15981# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15982# script with status $?, using 1 if that was 0.
15983as_fn_error ()
15984{
15985  as_status=$?; test $as_status -eq 0 && as_status=1
15986  if test "$3"; then
15987    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15988    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15989  fi
15990  $as_echo "$as_me: error: $1" >&2
15991  as_fn_exit $as_status
15992} # as_fn_error
15993
15994
15995# as_fn_set_status STATUS
15996# -----------------------
15997# Set $? to STATUS, without forking.
15998as_fn_set_status ()
15999{
16000  return $1
16001} # as_fn_set_status
16002
16003# as_fn_exit STATUS
16004# -----------------
16005# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16006as_fn_exit ()
16007{
16008  set +e
16009  as_fn_set_status $1
16010  exit $1
16011} # as_fn_exit
16012
16013# as_fn_unset VAR
16014# ---------------
16015# Portably unset VAR.
16016as_fn_unset ()
16017{
16018  { eval $1=; unset $1;}
16019}
16020as_unset=as_fn_unset
16021# as_fn_append VAR VALUE
16022# ----------------------
16023# Append the text in VALUE to the end of the definition contained in VAR. Take
16024# advantage of any shell optimizations that allow amortized linear growth over
16025# repeated appends, instead of the typical quadratic growth present in naive
16026# implementations.
16027if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16028  eval 'as_fn_append ()
16029  {
16030    eval $1+=\$2
16031  }'
16032else
16033  as_fn_append ()
16034  {
16035    eval $1=\$$1\$2
16036  }
16037fi # as_fn_append
16038
16039# as_fn_arith ARG...
16040# ------------------
16041# Perform arithmetic evaluation on the ARGs, and store the result in the
16042# global $as_val. Take advantage of shells that can avoid forks. The arguments
16043# must be portable across $(()) and expr.
16044if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16045  eval 'as_fn_arith ()
16046  {
16047    as_val=$(( $* ))
16048  }'
16049else
16050  as_fn_arith ()
16051  {
16052    as_val=`expr "$@" || test $? -eq 1`
16053  }
16054fi # as_fn_arith
16055
16056
16057if expr a : '\(a\)' >/dev/null 2>&1 &&
16058   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16059  as_expr=expr
16060else
16061  as_expr=false
16062fi
16063
16064if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16065  as_basename=basename
16066else
16067  as_basename=false
16068fi
16069
16070if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16071  as_dirname=dirname
16072else
16073  as_dirname=false
16074fi
16075
16076as_me=`$as_basename -- "$0" ||
16077$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16078	 X"$0" : 'X\(//\)$' \| \
16079	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16080$as_echo X/"$0" |
16081    sed '/^.*\/\([^/][^/]*\)\/*$/{
16082	    s//\1/
16083	    q
16084	  }
16085	  /^X\/\(\/\/\)$/{
16086	    s//\1/
16087	    q
16088	  }
16089	  /^X\/\(\/\).*/{
16090	    s//\1/
16091	    q
16092	  }
16093	  s/.*/./; q'`
16094
16095# Avoid depending upon Character Ranges.
16096as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16097as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16098as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16099as_cr_digits='0123456789'
16100as_cr_alnum=$as_cr_Letters$as_cr_digits
16101
16102ECHO_C= ECHO_N= ECHO_T=
16103case `echo -n x` in #(((((
16104-n*)
16105  case `echo 'xy\c'` in
16106  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16107  xy)  ECHO_C='\c';;
16108  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16109       ECHO_T='	';;
16110  esac;;
16111*)
16112  ECHO_N='-n';;
16113esac
16114
16115rm -f conf$$ conf$$.exe conf$$.file
16116if test -d conf$$.dir; then
16117  rm -f conf$$.dir/conf$$.file
16118else
16119  rm -f conf$$.dir
16120  mkdir conf$$.dir 2>/dev/null
16121fi
16122if (echo >conf$$.file) 2>/dev/null; then
16123  if ln -s conf$$.file conf$$ 2>/dev/null; then
16124    as_ln_s='ln -s'
16125    # ... but there are two gotchas:
16126    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16127    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16128    # In both cases, we have to default to `cp -p'.
16129    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16130      as_ln_s='cp -p'
16131  elif ln conf$$.file conf$$ 2>/dev/null; then
16132    as_ln_s=ln
16133  else
16134    as_ln_s='cp -p'
16135  fi
16136else
16137  as_ln_s='cp -p'
16138fi
16139rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16140rmdir conf$$.dir 2>/dev/null
16141
16142
16143# as_fn_mkdir_p
16144# -------------
16145# Create "$as_dir" as a directory, including parents if necessary.
16146as_fn_mkdir_p ()
16147{
16148
16149  case $as_dir in #(
16150  -*) as_dir=./$as_dir;;
16151  esac
16152  test -d "$as_dir" || eval $as_mkdir_p || {
16153    as_dirs=
16154    while :; do
16155      case $as_dir in #(
16156      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16157      *) as_qdir=$as_dir;;
16158      esac
16159      as_dirs="'$as_qdir' $as_dirs"
16160      as_dir=`$as_dirname -- "$as_dir" ||
16161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16162	 X"$as_dir" : 'X\(//\)[^/]' \| \
16163	 X"$as_dir" : 'X\(//\)$' \| \
16164	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16165$as_echo X"$as_dir" |
16166    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16167	    s//\1/
16168	    q
16169	  }
16170	  /^X\(\/\/\)[^/].*/{
16171	    s//\1/
16172	    q
16173	  }
16174	  /^X\(\/\/\)$/{
16175	    s//\1/
16176	    q
16177	  }
16178	  /^X\(\/\).*/{
16179	    s//\1/
16180	    q
16181	  }
16182	  s/.*/./; q'`
16183      test -d "$as_dir" && break
16184    done
16185    test -z "$as_dirs" || eval "mkdir $as_dirs"
16186  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16187
16188
16189} # as_fn_mkdir_p
16190if mkdir -p . 2>/dev/null; then
16191  as_mkdir_p='mkdir -p "$as_dir"'
16192else
16193  test -d ./-p && rmdir ./-p
16194  as_mkdir_p=false
16195fi
16196
16197if test -x / >/dev/null 2>&1; then
16198  as_test_x='test -x'
16199else
16200  if ls -dL / >/dev/null 2>&1; then
16201    as_ls_L_option=L
16202  else
16203    as_ls_L_option=
16204  fi
16205  as_test_x='
16206    eval sh -c '\''
16207      if test -d "$1"; then
16208	test -d "$1/.";
16209      else
16210	case $1 in #(
16211	-*)set "./$1";;
16212	esac;
16213	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16214	???[sx]*):;;*)false;;esac;fi
16215    '\'' sh
16216  '
16217fi
16218as_executable_p=$as_test_x
16219
16220# Sed expression to map a string onto a valid CPP name.
16221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16222
16223# Sed expression to map a string onto a valid variable name.
16224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16225
16226
16227exec 6>&1
16228## ----------------------------------- ##
16229## Main body of $CONFIG_STATUS script. ##
16230## ----------------------------------- ##
16231_ASEOF
16232test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16233
16234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235# Save the log message, to keep $0 and so on meaningful, and to
16236# report actual input values of CONFIG_FILES etc. instead of their
16237# values after options handling.
16238ac_log="
16239This file was extended by libgcrypt $as_me 1.5.0, which was
16240generated by GNU Autoconf 2.64.  Invocation command line was
16241
16242  CONFIG_FILES    = $CONFIG_FILES
16243  CONFIG_HEADERS  = $CONFIG_HEADERS
16244  CONFIG_LINKS    = $CONFIG_LINKS
16245  CONFIG_COMMANDS = $CONFIG_COMMANDS
16246  $ $0 $@
16247
16248on `(hostname || uname -n) 2>/dev/null | sed 1q`
16249"
16250
16251_ACEOF
16252
16253case $ac_config_files in *"
16254"*) set x $ac_config_files; shift; ac_config_files=$*;;
16255esac
16256
16257case $ac_config_headers in *"
16258"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16259esac
16260
16261
16262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16263# Files that config.status was made for.
16264config_files="$ac_config_files"
16265config_headers="$ac_config_headers"
16266config_links="$ac_config_links"
16267config_commands="$ac_config_commands"
16268
16269_ACEOF
16270
16271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272ac_cs_usage="\
16273\`$as_me' instantiates files and other configuration actions
16274from templates according to the current configuration.  Unless the files
16275and actions are specified as TAGs, all are instantiated by default.
16276
16277Usage: $0 [OPTION]... [TAG]...
16278
16279  -h, --help       print this help, then exit
16280  -V, --version    print version number and configuration settings, then exit
16281  -q, --quiet, --silent
16282                   do not print progress messages
16283  -d, --debug      don't remove temporary files
16284      --recheck    update $as_me by reconfiguring in the same conditions
16285      --file=FILE[:TEMPLATE]
16286                   instantiate the configuration file FILE
16287      --header=FILE[:TEMPLATE]
16288                   instantiate the configuration header FILE
16289
16290Configuration files:
16291$config_files
16292
16293Configuration headers:
16294$config_headers
16295
16296Configuration links:
16297$config_links
16298
16299Configuration commands:
16300$config_commands
16301
16302Report bugs to <bug-libgcrypt@gnupg.org>."
16303
16304_ACEOF
16305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16306ac_cs_version="\\
16307libgcrypt config.status 1.5.0
16308configured by $0, generated by GNU Autoconf 2.64,
16309  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16310
16311Copyright (C) 2009 Free Software Foundation, Inc.
16312This config.status script is free software; the Free Software Foundation
16313gives unlimited permission to copy, distribute and modify it."
16314
16315ac_pwd='$ac_pwd'
16316srcdir='$srcdir'
16317INSTALL='$INSTALL'
16318MKDIR_P='$MKDIR_P'
16319AWK='$AWK'
16320test -n "\$AWK" || AWK=awk
16321_ACEOF
16322
16323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324# The default lists apply if the user does not specify any file.
16325ac_need_defaults=:
16326while test $# != 0
16327do
16328  case $1 in
16329  --*=*)
16330    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16331    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16332    ac_shift=:
16333    ;;
16334  *)
16335    ac_option=$1
16336    ac_optarg=$2
16337    ac_shift=shift
16338    ;;
16339  esac
16340
16341  case $ac_option in
16342  # Handling of the options.
16343  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16344    ac_cs_recheck=: ;;
16345  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16346    $as_echo "$ac_cs_version"; exit ;;
16347  --debug | --debu | --deb | --de | --d | -d )
16348    debug=: ;;
16349  --file | --fil | --fi | --f )
16350    $ac_shift
16351    case $ac_optarg in
16352    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16353    esac
16354    as_fn_append CONFIG_FILES " '$ac_optarg'"
16355    ac_need_defaults=false;;
16356  --header | --heade | --head | --hea )
16357    $ac_shift
16358    case $ac_optarg in
16359    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16360    esac
16361    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16362    ac_need_defaults=false;;
16363  --he | --h)
16364    # Conflict between --help and --header
16365    as_fn_error "ambiguous option: \`$1'
16366Try \`$0 --help' for more information.";;
16367  --help | --hel | -h )
16368    $as_echo "$ac_cs_usage"; exit ;;
16369  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16370  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16371    ac_cs_silent=: ;;
16372
16373  # This is an error.
16374  -*) as_fn_error "unrecognized option: \`$1'
16375Try \`$0 --help' for more information." ;;
16376
16377  *) as_fn_append ac_config_targets " $1"
16378     ac_need_defaults=false ;;
16379
16380  esac
16381  shift
16382done
16383
16384ac_configure_extra_args=
16385
16386if $ac_cs_silent; then
16387  exec 6>/dev/null
16388  ac_configure_extra_args="$ac_configure_extra_args --silent"
16389fi
16390
16391_ACEOF
16392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393if \$ac_cs_recheck; then
16394  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16395  shift
16396  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16397  CONFIG_SHELL='$SHELL'
16398  export CONFIG_SHELL
16399  exec "\$@"
16400fi
16401
16402_ACEOF
16403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16404exec 5>>config.log
16405{
16406  echo
16407  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16408## Running $as_me. ##
16409_ASBOX
16410  $as_echo "$ac_log"
16411} >&5
16412
16413_ACEOF
16414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16415#
16416# INIT-COMMANDS
16417#
16418AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16419
16420
16421# The HP-UX ksh and POSIX shell print the target directory to stdout
16422# if CDPATH is set.
16423(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16424
16425sed_quote_subst='$sed_quote_subst'
16426double_quote_subst='$double_quote_subst'
16427delay_variable_subst='$delay_variable_subst'
16428macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16429macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16430AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16431DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16432OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16433enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16434enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16435pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16436enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16437host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16438host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16439host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16440build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16441build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16442build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16443SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16444Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16445GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16446EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16447FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16448LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16449NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16450LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16451max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16452ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16453exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16454lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16455lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16456lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16457reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16458reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16459deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16460file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16461AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16462AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16463STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16464RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16465old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16466old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16467old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16468CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16469CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16470compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16471GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16472lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16473lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16474lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16475lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16476objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16477SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16478ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16479MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16480lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16481lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16482lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16483lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16484lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16485need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16486DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16487NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16488LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16489OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16490OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16491libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16492shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16493extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16494archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16495enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16496export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16497whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16498compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16499old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16500old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16501archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16502archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16503module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16504module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16505with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16506allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16507no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16508hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16509hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16510hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16511hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16512hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16513hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16514hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16515hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16516inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16517link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16518fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16519always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16520export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16521exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16522include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16523prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16524file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16525variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16526need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16527need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16528version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16529runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16530shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16531shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16532libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16533library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16534soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16535postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16536postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16537finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16538finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16539hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16540sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16541sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16542hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16543enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16544enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16545enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16546old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16547striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16548LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
16549old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16550compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
16551GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
16552lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
16553lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
16554lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
16555lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
16556lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
16557archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
16558enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
16559export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
16560whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
16561compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
16562old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16563old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16564archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16565archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16566module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16567module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16568with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
16569allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
16570no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
16571hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
16572hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
16573hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
16574hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
16575hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
16576hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
16577hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
16578hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
16579inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
16580link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
16581fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
16582always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
16583export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16584exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
16585include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
16586prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
16587file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
16588hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
16589
16590LTCC='$LTCC'
16591LTCFLAGS='$LTCFLAGS'
16592compiler='$compiler_DEFAULT'
16593
16594# Quote evaled strings.
16595for var in SED \
16596GREP \
16597EGREP \
16598FGREP \
16599LD \
16600NM \
16601LN_S \
16602lt_SP2NL \
16603lt_NL2SP \
16604reload_flag \
16605deplibs_check_method \
16606file_magic_cmd \
16607AR \
16608AR_FLAGS \
16609STRIP \
16610RANLIB \
16611CC \
16612CFLAGS \
16613compiler \
16614lt_cv_sys_global_symbol_pipe \
16615lt_cv_sys_global_symbol_to_cdecl \
16616lt_cv_sys_global_symbol_to_c_name_address \
16617lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16618SHELL \
16619ECHO \
16620lt_prog_compiler_no_builtin_flag \
16621lt_prog_compiler_wl \
16622lt_prog_compiler_pic \
16623lt_prog_compiler_static \
16624lt_cv_prog_compiler_c_o \
16625need_locks \
16626DSYMUTIL \
16627NMEDIT \
16628LIPO \
16629OTOOL \
16630OTOOL64 \
16631shrext_cmds \
16632export_dynamic_flag_spec \
16633whole_archive_flag_spec \
16634compiler_needs_object \
16635with_gnu_ld \
16636allow_undefined_flag \
16637no_undefined_flag \
16638hardcode_libdir_flag_spec \
16639hardcode_libdir_flag_spec_ld \
16640hardcode_libdir_separator \
16641fix_srcfile_path \
16642exclude_expsyms \
16643include_expsyms \
16644file_list_spec \
16645variables_saved_for_relink \
16646libname_spec \
16647library_names_spec \
16648soname_spec \
16649finish_eval \
16650old_striplib \
16651striplib \
16652LD_RC \
16653compiler_RC \
16654lt_prog_compiler_no_builtin_flag_RC \
16655lt_prog_compiler_wl_RC \
16656lt_prog_compiler_pic_RC \
16657lt_prog_compiler_static_RC \
16658lt_cv_prog_compiler_c_o_RC \
16659export_dynamic_flag_spec_RC \
16660whole_archive_flag_spec_RC \
16661compiler_needs_object_RC \
16662with_gnu_ld_RC \
16663allow_undefined_flag_RC \
16664no_undefined_flag_RC \
16665hardcode_libdir_flag_spec_RC \
16666hardcode_libdir_flag_spec_ld_RC \
16667hardcode_libdir_separator_RC \
16668fix_srcfile_path_RC \
16669exclude_expsyms_RC \
16670include_expsyms_RC \
16671file_list_spec_RC; do
16672    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16673    *[\\\\\\\`\\"\\\$]*)
16674      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16675      ;;
16676    *)
16677      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16678      ;;
16679    esac
16680done
16681
16682# Double-quote double-evaled strings.
16683for var in reload_cmds \
16684old_postinstall_cmds \
16685old_postuninstall_cmds \
16686old_archive_cmds \
16687extract_expsyms_cmds \
16688old_archive_from_new_cmds \
16689old_archive_from_expsyms_cmds \
16690archive_cmds \
16691archive_expsym_cmds \
16692module_cmds \
16693module_expsym_cmds \
16694export_symbols_cmds \
16695prelink_cmds \
16696postinstall_cmds \
16697postuninstall_cmds \
16698finish_cmds \
16699sys_lib_search_path_spec \
16700sys_lib_dlsearch_path_spec \
16701old_archive_cmds_RC \
16702old_archive_from_new_cmds_RC \
16703old_archive_from_expsyms_cmds_RC \
16704archive_cmds_RC \
16705archive_expsym_cmds_RC \
16706module_cmds_RC \
16707module_expsym_cmds_RC \
16708export_symbols_cmds_RC \
16709prelink_cmds_RC; do
16710    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16711    *[\\\\\\\`\\"\\\$]*)
16712      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16713      ;;
16714    *)
16715      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16716      ;;
16717    esac
16718done
16719
16720# Fix-up fallback echo if it was mangled by the above quoting rules.
16721case \$lt_ECHO in
16722*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16723  ;;
16724esac
16725
16726ac_aux_dir='$ac_aux_dir'
16727xsi_shell='$xsi_shell'
16728lt_shell_append='$lt_shell_append'
16729
16730# See if we are running on zsh, and set the options which allow our
16731# commands through without removal of \ escapes INIT.
16732if test -n "\${ZSH_VERSION+set}" ; then
16733   setopt NO_GLOB_SUBST
16734fi
16735
16736
16737    PACKAGE='$PACKAGE'
16738    VERSION='$VERSION'
16739    TIMESTAMP='$TIMESTAMP'
16740    RM='$RM'
16741    ofile='$ofile'
16742
16743
16744
16745
16746
16747
16748prefix=$prefix
16749exec_prefix=$exec_prefix
16750libdir=$libdir
16751datadir=$datadir
16752DATADIRNAME=$DATADIRNAME
16753
16754
16755_ACEOF
16756
16757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16758
16759# Handling of arguments.
16760for ac_config_target in $ac_config_targets
16761do
16762  case $ac_config_target in
16763    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16764    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16765    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16766    ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
16767    "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
16768    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16769    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16770    "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
16771    "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
16772    "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
16773    "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
16774    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16775    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16776    "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
16777    "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
16778    "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16779    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16780
16781  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16782  esac
16783done
16784
16785
16786# If the user did not use the arguments to specify the items to instantiate,
16787# then the envvar interface is used.  Set only those that are not.
16788# We use the long form for the default assignment because of an extremely
16789# bizarre bug on SunOS 4.1.3.
16790if $ac_need_defaults; then
16791  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16792  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16793  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16794  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16795fi
16796
16797# Have a temporary directory for convenience.  Make it in the build tree
16798# simply because there is no reason against having it here, and in addition,
16799# creating and moving files from /tmp can sometimes cause problems.
16800# Hook for its removal unless debugging.
16801# Note that there is a small window in which the directory will not be cleaned:
16802# after its creation but before its name has been assigned to `$tmp'.
16803$debug ||
16804{
16805  tmp=
16806  trap 'exit_status=$?
16807  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16808' 0
16809  trap 'as_fn_exit 1' 1 2 13 15
16810}
16811# Create a (secure) tmp directory for tmp files.
16812
16813{
16814  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16815  test -n "$tmp" && test -d "$tmp"
16816}  ||
16817{
16818  tmp=./conf$$-$RANDOM
16819  (umask 077 && mkdir "$tmp")
16820} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16821
16822# Set up the scripts for CONFIG_FILES section.
16823# No need to generate them if there are no CONFIG_FILES.
16824# This happens for instance with `./config.status config.h'.
16825if test -n "$CONFIG_FILES"; then
16826
16827
16828ac_cr=`echo X | tr X '\015'`
16829# On cygwin, bash can eat \r inside `` if the user requested igncr.
16830# But we know of no other shell where ac_cr would be empty at this
16831# point, so we can use a bashism as a fallback.
16832if test "x$ac_cr" = x; then
16833  eval ac_cr=\$\'\\r\'
16834fi
16835ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16836if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16837  ac_cs_awk_cr='\r'
16838else
16839  ac_cs_awk_cr=$ac_cr
16840fi
16841
16842echo 'BEGIN {' >"$tmp/subs1.awk" &&
16843_ACEOF
16844
16845
16846{
16847  echo "cat >conf$$subs.awk <<_ACEOF" &&
16848  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16849  echo "_ACEOF"
16850} >conf$$subs.sh ||
16851  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16852ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16853ac_delim='%!_!# '
16854for ac_last_try in false false false false false :; do
16855  . ./conf$$subs.sh ||
16856    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16857
16858  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16859  if test $ac_delim_n = $ac_delim_num; then
16860    break
16861  elif $ac_last_try; then
16862    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16863  else
16864    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16865  fi
16866done
16867rm -f conf$$subs.sh
16868
16869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16871_ACEOF
16872sed -n '
16873h
16874s/^/S["/; s/!.*/"]=/
16875p
16876g
16877s/^[^!]*!//
16878:repl
16879t repl
16880s/'"$ac_delim"'$//
16881t delim
16882:nl
16883h
16884s/\(.\{148\}\).*/\1/
16885t more1
16886s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16887p
16888n
16889b repl
16890:more1
16891s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16892p
16893g
16894s/.\{148\}//
16895t nl
16896:delim
16897h
16898s/\(.\{148\}\).*/\1/
16899t more2
16900s/["\\]/\\&/g; s/^/"/; s/$/"/
16901p
16902b
16903:more2
16904s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16905p
16906g
16907s/.\{148\}//
16908t delim
16909' <conf$$subs.awk | sed '
16910/^[^""]/{
16911  N
16912  s/\n//
16913}
16914' >>$CONFIG_STATUS || ac_write_fail=1
16915rm -f conf$$subs.awk
16916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16917_ACAWK
16918cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16919  for (key in S) S_is_set[key] = 1
16920  FS = ""
16921
16922}
16923{
16924  line = $ 0
16925  nfields = split(line, field, "@")
16926  substed = 0
16927  len = length(field[1])
16928  for (i = 2; i < nfields; i++) {
16929    key = field[i]
16930    keylen = length(key)
16931    if (S_is_set[key]) {
16932      value = S[key]
16933      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16934      len += length(value) + length(field[++i])
16935      substed = 1
16936    } else
16937      len += 1 + keylen
16938  }
16939
16940  print line
16941}
16942
16943_ACAWK
16944_ACEOF
16945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16946if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16947  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16948else
16949  cat
16950fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16951  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16952_ACEOF
16953
16954# VPATH may cause trouble with some makes, so we remove $(srcdir),
16955# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16956# trailing colons and then remove the whole line if VPATH becomes empty
16957# (actually we leave an empty line to preserve line numbers).
16958if test "x$srcdir" = x.; then
16959  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16960s/:*\$(srcdir):*/:/
16961s/:*\${srcdir}:*/:/
16962s/:*@srcdir@:*/:/
16963s/^\([^=]*=[	 ]*\):*/\1/
16964s/:*$//
16965s/^[^=]*=[	 ]*$//
16966}'
16967fi
16968
16969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16970fi # test -n "$CONFIG_FILES"
16971
16972# Set up the scripts for CONFIG_HEADERS section.
16973# No need to generate them if there are no CONFIG_HEADERS.
16974# This happens for instance with `./config.status Makefile'.
16975if test -n "$CONFIG_HEADERS"; then
16976cat >"$tmp/defines.awk" <<\_ACAWK ||
16977BEGIN {
16978_ACEOF
16979
16980# Transform confdefs.h into an awk script `defines.awk', embedded as
16981# here-document in config.status, that substitutes the proper values into
16982# config.h.in to produce config.h.
16983
16984# Create a delimiter string that does not exist in confdefs.h, to ease
16985# handling of long lines.
16986ac_delim='%!_!# '
16987for ac_last_try in false false :; do
16988  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16989  if test -z "$ac_t"; then
16990    break
16991  elif $ac_last_try; then
16992    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16993  else
16994    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16995  fi
16996done
16997
16998# For the awk script, D is an array of macro values keyed by name,
16999# likewise P contains macro parameters if any.  Preserve backslash
17000# newline sequences.
17001
17002ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17003sed -n '
17004s/.\{148\}/&'"$ac_delim"'/g
17005t rset
17006:rset
17007s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17008t def
17009d
17010:def
17011s/\\$//
17012t bsnl
17013s/["\\]/\\&/g
17014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17015D["\1"]=" \3"/p
17016s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17017d
17018:bsnl
17019s/["\\]/\\&/g
17020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17021D["\1"]=" \3\\\\\\n"\\/p
17022t cont
17023s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17024t cont
17025d
17026:cont
17027n
17028s/.\{148\}/&'"$ac_delim"'/g
17029t clear
17030:clear
17031s/\\$//
17032t bsnlc
17033s/["\\]/\\&/g; s/^/"/; s/$/"/p
17034d
17035:bsnlc
17036s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17037b cont
17038' <confdefs.h | sed '
17039s/'"$ac_delim"'/"\\\
17040"/g' >>$CONFIG_STATUS || ac_write_fail=1
17041
17042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17043  for (key in D) D_is_set[key] = 1
17044  FS = ""
17045}
17046/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17047  line = \$ 0
17048  split(line, arg, " ")
17049  if (arg[1] == "#") {
17050    defundef = arg[2]
17051    mac1 = arg[3]
17052  } else {
17053    defundef = substr(arg[1], 2)
17054    mac1 = arg[2]
17055  }
17056  split(mac1, mac2, "(") #)
17057  macro = mac2[1]
17058  prefix = substr(line, 1, index(line, defundef) - 1)
17059  if (D_is_set[macro]) {
17060    # Preserve the white space surrounding the "#".
17061    print prefix "define", macro P[macro] D[macro]
17062    next
17063  } else {
17064    # Replace #undef with comments.  This is necessary, for example,
17065    # in the case of _POSIX_SOURCE, which is predefined and required
17066    # on some systems where configure will not decide to define it.
17067    if (defundef == "undef") {
17068      print "/*", prefix defundef, macro, "*/"
17069      next
17070    }
17071  }
17072}
17073{ print }
17074_ACAWK
17075_ACEOF
17076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17077  as_fn_error "could not setup config headers machinery" "$LINENO" 5
17078fi # test -n "$CONFIG_HEADERS"
17079
17080
17081eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17082shift
17083for ac_tag
17084do
17085  case $ac_tag in
17086  :[FHLC]) ac_mode=$ac_tag; continue;;
17087  esac
17088  case $ac_mode$ac_tag in
17089  :[FHL]*:*);;
17090  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17091  :[FH]-) ac_tag=-:-;;
17092  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17093  esac
17094  ac_save_IFS=$IFS
17095  IFS=:
17096  set x $ac_tag
17097  IFS=$ac_save_IFS
17098  shift
17099  ac_file=$1
17100  shift
17101
17102  case $ac_mode in
17103  :L) ac_source=$1;;
17104  :[FH])
17105    ac_file_inputs=
17106    for ac_f
17107    do
17108      case $ac_f in
17109      -) ac_f="$tmp/stdin";;
17110      *) # Look for the file first in the build tree, then in the source tree
17111	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17112	 # because $ac_f cannot contain `:'.
17113	 test -f "$ac_f" ||
17114	   case $ac_f in
17115	   [\\/$]*) false;;
17116	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17117	   esac ||
17118	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17119      esac
17120      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17121      as_fn_append ac_file_inputs " '$ac_f'"
17122    done
17123
17124    # Let's still pretend it is `configure' which instantiates (i.e., don't
17125    # use $as_me), people would be surprised to read:
17126    #    /* config.h.  Generated by config.status.  */
17127    configure_input='Generated from '`
17128	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17129	`' by configure.'
17130    if test x"$ac_file" != x-; then
17131      configure_input="$ac_file.  $configure_input"
17132      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17133$as_echo "$as_me: creating $ac_file" >&6;}
17134    fi
17135    # Neutralize special characters interpreted by sed in replacement strings.
17136    case $configure_input in #(
17137    *\&* | *\|* | *\\* )
17138       ac_sed_conf_input=`$as_echo "$configure_input" |
17139       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17140    *) ac_sed_conf_input=$configure_input;;
17141    esac
17142
17143    case $ac_tag in
17144    *:-:* | *:-) cat >"$tmp/stdin" \
17145      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17146    esac
17147    ;;
17148  esac
17149
17150  ac_dir=`$as_dirname -- "$ac_file" ||
17151$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17152	 X"$ac_file" : 'X\(//\)[^/]' \| \
17153	 X"$ac_file" : 'X\(//\)$' \| \
17154	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17155$as_echo X"$ac_file" |
17156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17157	    s//\1/
17158	    q
17159	  }
17160	  /^X\(\/\/\)[^/].*/{
17161	    s//\1/
17162	    q
17163	  }
17164	  /^X\(\/\/\)$/{
17165	    s//\1/
17166	    q
17167	  }
17168	  /^X\(\/\).*/{
17169	    s//\1/
17170	    q
17171	  }
17172	  s/.*/./; q'`
17173  as_dir="$ac_dir"; as_fn_mkdir_p
17174  ac_builddir=.
17175
17176case "$ac_dir" in
17177.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17178*)
17179  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17180  # A ".." for each directory in $ac_dir_suffix.
17181  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17182  case $ac_top_builddir_sub in
17183  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17184  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17185  esac ;;
17186esac
17187ac_abs_top_builddir=$ac_pwd
17188ac_abs_builddir=$ac_pwd$ac_dir_suffix
17189# for backward compatibility:
17190ac_top_builddir=$ac_top_build_prefix
17191
17192case $srcdir in
17193  .)  # We are building in place.
17194    ac_srcdir=.
17195    ac_top_srcdir=$ac_top_builddir_sub
17196    ac_abs_top_srcdir=$ac_pwd ;;
17197  [\\/]* | ?:[\\/]* )  # Absolute name.
17198    ac_srcdir=$srcdir$ac_dir_suffix;
17199    ac_top_srcdir=$srcdir
17200    ac_abs_top_srcdir=$srcdir ;;
17201  *) # Relative name.
17202    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17203    ac_top_srcdir=$ac_top_build_prefix$srcdir
17204    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17205esac
17206ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17207
17208
17209  case $ac_mode in
17210  :F)
17211  #
17212  # CONFIG_FILE
17213  #
17214
17215  case $INSTALL in
17216  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17217  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17218  esac
17219  ac_MKDIR_P=$MKDIR_P
17220  case $MKDIR_P in
17221  [\\/$]* | ?:[\\/]* ) ;;
17222  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17223  esac
17224_ACEOF
17225
17226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17227# If the template does not know about datarootdir, expand it.
17228# FIXME: This hack should be removed a few years after 2.60.
17229ac_datarootdir_hack=; ac_datarootdir_seen=
17230ac_sed_dataroot='
17231/datarootdir/ {
17232  p
17233  q
17234}
17235/@datadir@/p
17236/@docdir@/p
17237/@infodir@/p
17238/@localedir@/p
17239/@mandir@/p'
17240case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17241*datarootdir*) ac_datarootdir_seen=yes;;
17242*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17243  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17244$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17245_ACEOF
17246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17247  ac_datarootdir_hack='
17248  s&@datadir@&$datadir&g
17249  s&@docdir@&$docdir&g
17250  s&@infodir@&$infodir&g
17251  s&@localedir@&$localedir&g
17252  s&@mandir@&$mandir&g
17253  s&\\\${datarootdir}&$datarootdir&g' ;;
17254esac
17255_ACEOF
17256
17257# Neutralize VPATH when `$srcdir' = `.'.
17258# Shell code in configure.ac might set extrasub.
17259# FIXME: do we really want to maintain this feature?
17260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17261ac_sed_extra="$ac_vpsub
17262$extrasub
17263_ACEOF
17264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265:t
17266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17267s|@configure_input@|$ac_sed_conf_input|;t t
17268s&@top_builddir@&$ac_top_builddir_sub&;t t
17269s&@top_build_prefix@&$ac_top_build_prefix&;t t
17270s&@srcdir@&$ac_srcdir&;t t
17271s&@abs_srcdir@&$ac_abs_srcdir&;t t
17272s&@top_srcdir@&$ac_top_srcdir&;t t
17273s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17274s&@builddir@&$ac_builddir&;t t
17275s&@abs_builddir@&$ac_abs_builddir&;t t
17276s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17277s&@INSTALL@&$ac_INSTALL&;t t
17278s&@MKDIR_P@&$ac_MKDIR_P&;t t
17279$ac_datarootdir_hack
17280"
17281eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17282  || as_fn_error "could not create $ac_file" "$LINENO" 5
17283
17284test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17285  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17286  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17287  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17288which seems to be undefined.  Please make sure it is defined." >&5
17289$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17290which seems to be undefined.  Please make sure it is defined." >&2;}
17291
17292  rm -f "$tmp/stdin"
17293  case $ac_file in
17294  -) cat "$tmp/out" && rm -f "$tmp/out";;
17295  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17296  esac \
17297  || as_fn_error "could not create $ac_file" "$LINENO" 5
17298 ;;
17299  :H)
17300  #
17301  # CONFIG_HEADER
17302  #
17303  if test x"$ac_file" != x-; then
17304    {
17305      $as_echo "/* $configure_input  */" \
17306      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17307    } >"$tmp/config.h" \
17308      || as_fn_error "could not create $ac_file" "$LINENO" 5
17309    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17310      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17311$as_echo "$as_me: $ac_file is unchanged" >&6;}
17312    else
17313      rm -f "$ac_file"
17314      mv "$tmp/config.h" "$ac_file" \
17315	|| as_fn_error "could not create $ac_file" "$LINENO" 5
17316    fi
17317  else
17318    $as_echo "/* $configure_input  */" \
17319      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17320      || as_fn_error "could not create -" "$LINENO" 5
17321  fi
17322# Compute "$ac_file"'s index in $config_headers.
17323_am_arg="$ac_file"
17324_am_stamp_count=1
17325for _am_header in $config_headers :; do
17326  case $_am_header in
17327    $_am_arg | $_am_arg:* )
17328      break ;;
17329    * )
17330      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17331  esac
17332done
17333echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17334$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17335	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17336	 X"$_am_arg" : 'X\(//\)$' \| \
17337	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17338$as_echo X"$_am_arg" |
17339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17340	    s//\1/
17341	    q
17342	  }
17343	  /^X\(\/\/\)[^/].*/{
17344	    s//\1/
17345	    q
17346	  }
17347	  /^X\(\/\/\)$/{
17348	    s//\1/
17349	    q
17350	  }
17351	  /^X\(\/\).*/{
17352	    s//\1/
17353	    q
17354	  }
17355	  s/.*/./; q'`/stamp-h$_am_stamp_count
17356 ;;
17357  :L)
17358  #
17359  # CONFIG_LINK
17360  #
17361
17362  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17363    :
17364  else
17365    # Prefer the file from the source tree if names are identical.
17366    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17367      ac_source=$srcdir/$ac_source
17368    fi
17369
17370    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17371$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17372
17373    if test ! -r "$ac_source"; then
17374      as_fn_error "$ac_source: file not found" "$LINENO" 5
17375    fi
17376    rm -f "$ac_file"
17377
17378    # Try a relative symlink, then a hard link, then a copy.
17379    case $srcdir in
17380    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17381	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17382    esac
17383    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17384      ln "$ac_source" "$ac_file" 2>/dev/null ||
17385      cp -p "$ac_source" "$ac_file" ||
17386      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17387  fi
17388 ;;
17389  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17390$as_echo "$as_me: executing $ac_file commands" >&6;}
17391 ;;
17392  esac
17393
17394
17395  case $ac_file$ac_mode in
17396    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17397  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17398  # are listed without --file.  Let's play safe and only enable the eval
17399  # if we detect the quoting.
17400  case $CONFIG_FILES in
17401  *\'*) eval set x "$CONFIG_FILES" ;;
17402  *)   set x $CONFIG_FILES ;;
17403  esac
17404  shift
17405  for mf
17406  do
17407    # Strip MF so we end up with the name of the file.
17408    mf=`echo "$mf" | sed -e 's/:.*$//'`
17409    # Check whether this is an Automake generated Makefile or not.
17410    # We used to match only the files named `Makefile.in', but
17411    # some people rename them; so instead we look at the file content.
17412    # Grep'ing the first line is not enough: some people post-process
17413    # each Makefile.in and add a new line on top of each file to say so.
17414    # Grep'ing the whole file is not good either: AIX grep has a line
17415    # limit of 2048, but all sed's we know have understand at least 4000.
17416    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17417      dirpart=`$as_dirname -- "$mf" ||
17418$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17419	 X"$mf" : 'X\(//\)[^/]' \| \
17420	 X"$mf" : 'X\(//\)$' \| \
17421	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17422$as_echo X"$mf" |
17423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17424	    s//\1/
17425	    q
17426	  }
17427	  /^X\(\/\/\)[^/].*/{
17428	    s//\1/
17429	    q
17430	  }
17431	  /^X\(\/\/\)$/{
17432	    s//\1/
17433	    q
17434	  }
17435	  /^X\(\/\).*/{
17436	    s//\1/
17437	    q
17438	  }
17439	  s/.*/./; q'`
17440    else
17441      continue
17442    fi
17443    # Extract the definition of DEPDIR, am__include, and am__quote
17444    # from the Makefile without running `make'.
17445    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17446    test -z "$DEPDIR" && continue
17447    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17448    test -z "am__include" && continue
17449    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17450    # When using ansi2knr, U may be empty or an underscore; expand it
17451    U=`sed -n 's/^U = //p' < "$mf"`
17452    # Find all dependency output files, they are included files with
17453    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17454    # simplest approach to changing $(DEPDIR) to its actual value in the
17455    # expansion.
17456    for file in `sed -n "
17457      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17458	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17459      # Make sure the directory exists.
17460      test -f "$dirpart/$file" && continue
17461      fdir=`$as_dirname -- "$file" ||
17462$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17463	 X"$file" : 'X\(//\)[^/]' \| \
17464	 X"$file" : 'X\(//\)$' \| \
17465	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17466$as_echo X"$file" |
17467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17468	    s//\1/
17469	    q
17470	  }
17471	  /^X\(\/\/\)[^/].*/{
17472	    s//\1/
17473	    q
17474	  }
17475	  /^X\(\/\/\)$/{
17476	    s//\1/
17477	    q
17478	  }
17479	  /^X\(\/\).*/{
17480	    s//\1/
17481	    q
17482	  }
17483	  s/.*/./; q'`
17484      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17485      # echo "creating $dirpart/$file"
17486      echo '# dummy' > "$dirpart/$file"
17487    done
17488  done
17489}
17490 ;;
17491    "libtool":C)
17492
17493    # See if we are running on zsh, and set the options which allow our
17494    # commands through without removal of \ escapes.
17495    if test -n "${ZSH_VERSION+set}" ; then
17496      setopt NO_GLOB_SUBST
17497    fi
17498
17499    cfgfile="${ofile}T"
17500    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17501    $RM "$cfgfile"
17502
17503    cat <<_LT_EOF >> "$cfgfile"
17504#! $SHELL
17505
17506# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17507# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17510#
17511#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17512#                 2006, 2007, 2008 Free Software Foundation, Inc.
17513#   Written by Gordon Matzigkeit, 1996
17514#
17515#   This file is part of GNU Libtool.
17516#
17517# GNU Libtool is free software; you can redistribute it and/or
17518# modify it under the terms of the GNU General Public License as
17519# published by the Free Software Foundation; either version 2 of
17520# the License, or (at your option) any later version.
17521#
17522# As a special exception to the GNU General Public License,
17523# if you distribute this file as part of a program or library that
17524# is built using GNU Libtool, you may include this file under the
17525# same distribution terms that you use for the rest of that program.
17526#
17527# GNU Libtool is distributed in the hope that it will be useful,
17528# but WITHOUT ANY WARRANTY; without even the implied warranty of
17529# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17530# GNU General Public License for more details.
17531#
17532# You should have received a copy of the GNU General Public License
17533# along with GNU Libtool; see the file COPYING.  If not, a copy
17534# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17535# obtained by writing to the Free Software Foundation, Inc.,
17536# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17537
17538
17539# The names of the tagged configurations supported by this script.
17540available_tags="RC "
17541
17542# ### BEGIN LIBTOOL CONFIG
17543
17544# Which release of libtool.m4 was used?
17545macro_version=$macro_version
17546macro_revision=$macro_revision
17547
17548# Assembler program.
17549AS=$AS
17550
17551# DLL creation program.
17552DLLTOOL=$DLLTOOL
17553
17554# Object dumper program.
17555OBJDUMP=$OBJDUMP
17556
17557# Whether or not to build static libraries.
17558build_old_libs=$enable_static
17559
17560# Whether or not to build shared libraries.
17561build_libtool_libs=$enable_shared
17562
17563# What type of objects to build.
17564pic_mode=$pic_mode
17565
17566# Whether or not to optimize for fast installation.
17567fast_install=$enable_fast_install
17568
17569# The host system.
17570host_alias=$host_alias
17571host=$host
17572host_os=$host_os
17573
17574# The build system.
17575build_alias=$build_alias
17576build=$build
17577build_os=$build_os
17578
17579# A sed program that does not truncate output.
17580SED=$lt_SED
17581
17582# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17583Xsed="\$SED -e 1s/^X//"
17584
17585# A grep program that handles long lines.
17586GREP=$lt_GREP
17587
17588# An ERE matcher.
17589EGREP=$lt_EGREP
17590
17591# A literal string matcher.
17592FGREP=$lt_FGREP
17593
17594# A BSD- or MS-compatible name lister.
17595NM=$lt_NM
17596
17597# Whether we need soft or hard links.
17598LN_S=$lt_LN_S
17599
17600# What is the maximum length of a command?
17601max_cmd_len=$max_cmd_len
17602
17603# Object file suffix (normally "o").
17604objext=$ac_objext
17605
17606# Executable file suffix (normally "").
17607exeext=$exeext
17608
17609# whether the shell understands "unset".
17610lt_unset=$lt_unset
17611
17612# turn spaces into newlines.
17613SP2NL=$lt_lt_SP2NL
17614
17615# turn newlines into spaces.
17616NL2SP=$lt_lt_NL2SP
17617
17618# How to create reloadable object files.
17619reload_flag=$lt_reload_flag
17620reload_cmds=$lt_reload_cmds
17621
17622# Method to check whether dependent libraries are shared objects.
17623deplibs_check_method=$lt_deplibs_check_method
17624
17625# Command to use when deplibs_check_method == "file_magic".
17626file_magic_cmd=$lt_file_magic_cmd
17627
17628# The archiver.
17629AR=$lt_AR
17630AR_FLAGS=$lt_AR_FLAGS
17631
17632# A symbol stripping program.
17633STRIP=$lt_STRIP
17634
17635# Commands used to install an old-style archive.
17636RANLIB=$lt_RANLIB
17637old_postinstall_cmds=$lt_old_postinstall_cmds
17638old_postuninstall_cmds=$lt_old_postuninstall_cmds
17639
17640# A C compiler.
17641LTCC=$lt_CC
17642
17643# LTCC compiler flags.
17644LTCFLAGS=$lt_CFLAGS
17645
17646# Take the output of nm and produce a listing of raw symbols and C names.
17647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17648
17649# Transform the output of nm in a proper C declaration.
17650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17651
17652# Transform the output of nm in a C name address pair.
17653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17654
17655# Transform the output of nm in a C name address pair when lib prefix is needed.
17656global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17657
17658# The name of the directory that contains temporary libtool files.
17659objdir=$objdir
17660
17661# Shell to use when invoking shell scripts.
17662SHELL=$lt_SHELL
17663
17664# An echo program that does not interpret backslashes.
17665ECHO=$lt_ECHO
17666
17667# Used to examine libraries when file_magic_cmd begins with "file".
17668MAGIC_CMD=$MAGIC_CMD
17669
17670# Must we lock files when doing compilation?
17671need_locks=$lt_need_locks
17672
17673# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17674DSYMUTIL=$lt_DSYMUTIL
17675
17676# Tool to change global to local symbols on Mac OS X.
17677NMEDIT=$lt_NMEDIT
17678
17679# Tool to manipulate fat objects and archives on Mac OS X.
17680LIPO=$lt_LIPO
17681
17682# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17683OTOOL=$lt_OTOOL
17684
17685# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17686OTOOL64=$lt_OTOOL64
17687
17688# Old archive suffix (normally "a").
17689libext=$libext
17690
17691# Shared library suffix (normally ".so").
17692shrext_cmds=$lt_shrext_cmds
17693
17694# The commands to extract the exported symbol list from a shared archive.
17695extract_expsyms_cmds=$lt_extract_expsyms_cmds
17696
17697# Variables whose values should be saved in libtool wrapper scripts and
17698# restored at link time.
17699variables_saved_for_relink=$lt_variables_saved_for_relink
17700
17701# Do we need the "lib" prefix for modules?
17702need_lib_prefix=$need_lib_prefix
17703
17704# Do we need a version for libraries?
17705need_version=$need_version
17706
17707# Library versioning type.
17708version_type=$version_type
17709
17710# Shared library runtime path variable.
17711runpath_var=$runpath_var
17712
17713# Shared library path variable.
17714shlibpath_var=$shlibpath_var
17715
17716# Is shlibpath searched before the hard-coded library search path?
17717shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17718
17719# Format of library name prefix.
17720libname_spec=$lt_libname_spec
17721
17722# List of archive names.  First name is the real one, the rest are links.
17723# The last name is the one that the linker finds with -lNAME
17724library_names_spec=$lt_library_names_spec
17725
17726# The coded name of the library, if different from the real name.
17727soname_spec=$lt_soname_spec
17728
17729# Command to use after installation of a shared archive.
17730postinstall_cmds=$lt_postinstall_cmds
17731
17732# Command to use after uninstallation of a shared archive.
17733postuninstall_cmds=$lt_postuninstall_cmds
17734
17735# Commands used to finish a libtool library installation in a directory.
17736finish_cmds=$lt_finish_cmds
17737
17738# As "finish_cmds", except a single script fragment to be evaled but
17739# not shown.
17740finish_eval=$lt_finish_eval
17741
17742# Whether we should hardcode library paths into libraries.
17743hardcode_into_libs=$hardcode_into_libs
17744
17745# Compile-time system search path for libraries.
17746sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17747
17748# Run-time system search path for libraries.
17749sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17750
17751# Whether dlopen is supported.
17752dlopen_support=$enable_dlopen
17753
17754# Whether dlopen of programs is supported.
17755dlopen_self=$enable_dlopen_self
17756
17757# Whether dlopen of statically linked programs is supported.
17758dlopen_self_static=$enable_dlopen_self_static
17759
17760# Commands to strip libraries.
17761old_striplib=$lt_old_striplib
17762striplib=$lt_striplib
17763
17764
17765# The linker used to build libraries.
17766LD=$lt_LD
17767
17768# Commands used to build an old-style archive.
17769old_archive_cmds=$lt_old_archive_cmds
17770
17771# A language specific compiler.
17772CC=$lt_compiler
17773
17774# Is the compiler the GNU compiler?
17775with_gcc=$GCC
17776
17777# Compiler flag to turn off builtin functions.
17778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17779
17780# How to pass a linker flag through the compiler.
17781wl=$lt_lt_prog_compiler_wl
17782
17783# Additional compiler flags for building library objects.
17784pic_flag=$lt_lt_prog_compiler_pic
17785
17786# Compiler flag to prevent dynamic linking.
17787link_static_flag=$lt_lt_prog_compiler_static
17788
17789# Does compiler simultaneously support -c and -o options?
17790compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17791
17792# Whether or not to add -lc for building shared libraries.
17793build_libtool_need_lc=$archive_cmds_need_lc
17794
17795# Whether or not to disallow shared libs when runtime libs are static.
17796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17797
17798# Compiler flag to allow reflexive dlopens.
17799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17800
17801# Compiler flag to generate shared objects directly from archives.
17802whole_archive_flag_spec=$lt_whole_archive_flag_spec
17803
17804# Whether the compiler copes with passing no objects directly.
17805compiler_needs_object=$lt_compiler_needs_object
17806
17807# Create an old-style archive from a shared archive.
17808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17809
17810# Create a temporary old-style archive to link instead of a shared archive.
17811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17812
17813# Commands used to build a shared archive.
17814archive_cmds=$lt_archive_cmds
17815archive_expsym_cmds=$lt_archive_expsym_cmds
17816
17817# Commands used to build a loadable module if different from building
17818# a shared archive.
17819module_cmds=$lt_module_cmds
17820module_expsym_cmds=$lt_module_expsym_cmds
17821
17822# Whether we are building with GNU ld or not.
17823with_gnu_ld=$lt_with_gnu_ld
17824
17825# Flag that allows shared libraries with undefined symbols to be built.
17826allow_undefined_flag=$lt_allow_undefined_flag
17827
17828# Flag that enforces no undefined symbols.
17829no_undefined_flag=$lt_no_undefined_flag
17830
17831# Flag to hardcode \$libdir into a binary during linking.
17832# This must work even if \$libdir does not exist
17833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17834
17835# If ld is used when linking, flag to hardcode \$libdir into a binary
17836# during linking.  This must work even if \$libdir does not exist.
17837hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17838
17839# Whether we need a single "-rpath" flag with a separated argument.
17840hardcode_libdir_separator=$lt_hardcode_libdir_separator
17841
17842# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17843# DIR into the resulting binary.
17844hardcode_direct=$hardcode_direct
17845
17846# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17847# DIR into the resulting binary and the resulting library dependency is
17848# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17849# library is relocated.
17850hardcode_direct_absolute=$hardcode_direct_absolute
17851
17852# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17853# into the resulting binary.
17854hardcode_minus_L=$hardcode_minus_L
17855
17856# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17857# into the resulting binary.
17858hardcode_shlibpath_var=$hardcode_shlibpath_var
17859
17860# Set to "yes" if building a shared library automatically hardcodes DIR
17861# into the library and all subsequent libraries and executables linked
17862# against it.
17863hardcode_automatic=$hardcode_automatic
17864
17865# Set to yes if linker adds runtime paths of dependent libraries
17866# to runtime path list.
17867inherit_rpath=$inherit_rpath
17868
17869# Whether libtool must link a program against all its dependency libraries.
17870link_all_deplibs=$link_all_deplibs
17871
17872# Fix the shell variable \$srcfile for the compiler.
17873fix_srcfile_path=$lt_fix_srcfile_path
17874
17875# Set to "yes" if exported symbols are required.
17876always_export_symbols=$always_export_symbols
17877
17878# The commands to list exported symbols.
17879export_symbols_cmds=$lt_export_symbols_cmds
17880
17881# Symbols that should not be listed in the preloaded symbols.
17882exclude_expsyms=$lt_exclude_expsyms
17883
17884# Symbols that must always be exported.
17885include_expsyms=$lt_include_expsyms
17886
17887# Commands necessary for linking programs (against libraries) with templates.
17888prelink_cmds=$lt_prelink_cmds
17889
17890# Specify filename containing input files.
17891file_list_spec=$lt_file_list_spec
17892
17893# How to hardcode a shared library path into an executable.
17894hardcode_action=$hardcode_action
17895
17896# ### END LIBTOOL CONFIG
17897
17898_LT_EOF
17899
17900  case $host_os in
17901  aix3*)
17902    cat <<\_LT_EOF >> "$cfgfile"
17903# AIX sometimes has problems with the GCC collect2 program.  For some
17904# reason, if we set the COLLECT_NAMES environment variable, the problems
17905# vanish in a puff of smoke.
17906if test "X${COLLECT_NAMES+set}" != Xset; then
17907  COLLECT_NAMES=
17908  export COLLECT_NAMES
17909fi
17910_LT_EOF
17911    ;;
17912  esac
17913
17914
17915ltmain="$ac_aux_dir/ltmain.sh"
17916
17917
17918  # We use sed instead of cat because bash on DJGPP gets confused if
17919  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17920  # text mode, it properly converts lines to CR/LF.  This bash problem
17921  # is reportedly fixed, but why not run on old versions too?
17922  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17923    || (rm -f "$cfgfile"; exit 1)
17924
17925  case $xsi_shell in
17926  yes)
17927    cat << \_LT_EOF >> "$cfgfile"
17928
17929# func_dirname file append nondir_replacement
17930# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17931# otherwise set result to NONDIR_REPLACEMENT.
17932func_dirname ()
17933{
17934  case ${1} in
17935    */*) func_dirname_result="${1%/*}${2}" ;;
17936    *  ) func_dirname_result="${3}" ;;
17937  esac
17938}
17939
17940# func_basename file
17941func_basename ()
17942{
17943  func_basename_result="${1##*/}"
17944}
17945
17946# func_dirname_and_basename file append nondir_replacement
17947# perform func_basename and func_dirname in a single function
17948# call:
17949#   dirname:  Compute the dirname of FILE.  If nonempty,
17950#             add APPEND to the result, otherwise set result
17951#             to NONDIR_REPLACEMENT.
17952#             value returned in "$func_dirname_result"
17953#   basename: Compute filename of FILE.
17954#             value retuned in "$func_basename_result"
17955# Implementation must be kept synchronized with func_dirname
17956# and func_basename. For efficiency, we do not delegate to
17957# those functions but instead duplicate the functionality here.
17958func_dirname_and_basename ()
17959{
17960  case ${1} in
17961    */*) func_dirname_result="${1%/*}${2}" ;;
17962    *  ) func_dirname_result="${3}" ;;
17963  esac
17964  func_basename_result="${1##*/}"
17965}
17966
17967# func_stripname prefix suffix name
17968# strip PREFIX and SUFFIX off of NAME.
17969# PREFIX and SUFFIX must not contain globbing or regex special
17970# characters, hashes, percent signs, but SUFFIX may contain a leading
17971# dot (in which case that matches only a dot).
17972func_stripname ()
17973{
17974  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17975  # positional parameters, so assign one to ordinary parameter first.
17976  func_stripname_result=${3}
17977  func_stripname_result=${func_stripname_result#"${1}"}
17978  func_stripname_result=${func_stripname_result%"${2}"}
17979}
17980
17981# func_opt_split
17982func_opt_split ()
17983{
17984  func_opt_split_opt=${1%%=*}
17985  func_opt_split_arg=${1#*=}
17986}
17987
17988# func_lo2o object
17989func_lo2o ()
17990{
17991  case ${1} in
17992    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17993    *)    func_lo2o_result=${1} ;;
17994  esac
17995}
17996
17997# func_xform libobj-or-source
17998func_xform ()
17999{
18000  func_xform_result=${1%.*}.lo
18001}
18002
18003# func_arith arithmetic-term...
18004func_arith ()
18005{
18006  func_arith_result=$(( $* ))
18007}
18008
18009# func_len string
18010# STRING may not start with a hyphen.
18011func_len ()
18012{
18013  func_len_result=${#1}
18014}
18015
18016_LT_EOF
18017    ;;
18018  *) # Bourne compatible functions.
18019    cat << \_LT_EOF >> "$cfgfile"
18020
18021# func_dirname file append nondir_replacement
18022# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18023# otherwise set result to NONDIR_REPLACEMENT.
18024func_dirname ()
18025{
18026  # Extract subdirectory from the argument.
18027  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18028  if test "X$func_dirname_result" = "X${1}"; then
18029    func_dirname_result="${3}"
18030  else
18031    func_dirname_result="$func_dirname_result${2}"
18032  fi
18033}
18034
18035# func_basename file
18036func_basename ()
18037{
18038  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18039}
18040
18041
18042# func_stripname prefix suffix name
18043# strip PREFIX and SUFFIX off of NAME.
18044# PREFIX and SUFFIX must not contain globbing or regex special
18045# characters, hashes, percent signs, but SUFFIX may contain a leading
18046# dot (in which case that matches only a dot).
18047# func_strip_suffix prefix name
18048func_stripname ()
18049{
18050  case ${2} in
18051    .*) func_stripname_result=`$ECHO "X${3}" \
18052           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18053    *)  func_stripname_result=`$ECHO "X${3}" \
18054           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18055  esac
18056}
18057
18058# sed scripts:
18059my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18060my_sed_long_arg='1s/^-[^=]*=//'
18061
18062# func_opt_split
18063func_opt_split ()
18064{
18065  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18066  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18067}
18068
18069# func_lo2o object
18070func_lo2o ()
18071{
18072  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18073}
18074
18075# func_xform libobj-or-source
18076func_xform ()
18077{
18078  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18079}
18080
18081# func_arith arithmetic-term...
18082func_arith ()
18083{
18084  func_arith_result=`expr "$@"`
18085}
18086
18087# func_len string
18088# STRING may not start with a hyphen.
18089func_len ()
18090{
18091  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18092}
18093
18094_LT_EOF
18095esac
18096
18097case $lt_shell_append in
18098  yes)
18099    cat << \_LT_EOF >> "$cfgfile"
18100
18101# func_append var value
18102# Append VALUE to the end of shell variable VAR.
18103func_append ()
18104{
18105  eval "$1+=\$2"
18106}
18107_LT_EOF
18108    ;;
18109  *)
18110    cat << \_LT_EOF >> "$cfgfile"
18111
18112# func_append var value
18113# Append VALUE to the end of shell variable VAR.
18114func_append ()
18115{
18116  eval "$1=\$$1\$2"
18117}
18118
18119_LT_EOF
18120    ;;
18121  esac
18122
18123
18124  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18125    || (rm -f "$cfgfile"; exit 1)
18126
18127  mv -f "$cfgfile" "$ofile" ||
18128    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18129  chmod +x "$ofile"
18130
18131
18132    cat <<_LT_EOF >> "$ofile"
18133
18134# ### BEGIN LIBTOOL TAG CONFIG: RC
18135
18136# The linker used to build libraries.
18137LD=$lt_LD_RC
18138
18139# Commands used to build an old-style archive.
18140old_archive_cmds=$lt_old_archive_cmds_RC
18141
18142# A language specific compiler.
18143CC=$lt_compiler_RC
18144
18145# Is the compiler the GNU compiler?
18146with_gcc=$GCC_RC
18147
18148# Compiler flag to turn off builtin functions.
18149no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18150
18151# How to pass a linker flag through the compiler.
18152wl=$lt_lt_prog_compiler_wl_RC
18153
18154# Additional compiler flags for building library objects.
18155pic_flag=$lt_lt_prog_compiler_pic_RC
18156
18157# Compiler flag to prevent dynamic linking.
18158link_static_flag=$lt_lt_prog_compiler_static_RC
18159
18160# Does compiler simultaneously support -c and -o options?
18161compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18162
18163# Whether or not to add -lc for building shared libraries.
18164build_libtool_need_lc=$archive_cmds_need_lc_RC
18165
18166# Whether or not to disallow shared libs when runtime libs are static.
18167allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18168
18169# Compiler flag to allow reflexive dlopens.
18170export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18171
18172# Compiler flag to generate shared objects directly from archives.
18173whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18174
18175# Whether the compiler copes with passing no objects directly.
18176compiler_needs_object=$lt_compiler_needs_object_RC
18177
18178# Create an old-style archive from a shared archive.
18179old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18180
18181# Create a temporary old-style archive to link instead of a shared archive.
18182old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18183
18184# Commands used to build a shared archive.
18185archive_cmds=$lt_archive_cmds_RC
18186archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18187
18188# Commands used to build a loadable module if different from building
18189# a shared archive.
18190module_cmds=$lt_module_cmds_RC
18191module_expsym_cmds=$lt_module_expsym_cmds_RC
18192
18193# Whether we are building with GNU ld or not.
18194with_gnu_ld=$lt_with_gnu_ld_RC
18195
18196# Flag that allows shared libraries with undefined symbols to be built.
18197allow_undefined_flag=$lt_allow_undefined_flag_RC
18198
18199# Flag that enforces no undefined symbols.
18200no_undefined_flag=$lt_no_undefined_flag_RC
18201
18202# Flag to hardcode \$libdir into a binary during linking.
18203# This must work even if \$libdir does not exist
18204hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18205
18206# If ld is used when linking, flag to hardcode \$libdir into a binary
18207# during linking.  This must work even if \$libdir does not exist.
18208hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18209
18210# Whether we need a single "-rpath" flag with a separated argument.
18211hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18212
18213# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18214# DIR into the resulting binary.
18215hardcode_direct=$hardcode_direct_RC
18216
18217# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18218# DIR into the resulting binary and the resulting library dependency is
18219# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18220# library is relocated.
18221hardcode_direct_absolute=$hardcode_direct_absolute_RC
18222
18223# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18224# into the resulting binary.
18225hardcode_minus_L=$hardcode_minus_L_RC
18226
18227# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18228# into the resulting binary.
18229hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18230
18231# Set to "yes" if building a shared library automatically hardcodes DIR
18232# into the library and all subsequent libraries and executables linked
18233# against it.
18234hardcode_automatic=$hardcode_automatic_RC
18235
18236# Set to yes if linker adds runtime paths of dependent libraries
18237# to runtime path list.
18238inherit_rpath=$inherit_rpath_RC
18239
18240# Whether libtool must link a program against all its dependency libraries.
18241link_all_deplibs=$link_all_deplibs_RC
18242
18243# Fix the shell variable \$srcfile for the compiler.
18244fix_srcfile_path=$lt_fix_srcfile_path_RC
18245
18246# Set to "yes" if exported symbols are required.
18247always_export_symbols=$always_export_symbols_RC
18248
18249# The commands to list exported symbols.
18250export_symbols_cmds=$lt_export_symbols_cmds_RC
18251
18252# Symbols that should not be listed in the preloaded symbols.
18253exclude_expsyms=$lt_exclude_expsyms_RC
18254
18255# Symbols that must always be exported.
18256include_expsyms=$lt_include_expsyms_RC
18257
18258# Commands necessary for linking programs (against libraries) with templates.
18259prelink_cmds=$lt_prelink_cmds_RC
18260
18261# Specify filename containing input files.
18262file_list_spec=$lt_file_list_spec_RC
18263
18264# How to hardcode a shared library path into an executable.
18265hardcode_action=$hardcode_action_RC
18266
18267# ### END LIBTOOL TAG CONFIG: RC
18268_LT_EOF
18269
18270 ;;
18271    "gcrypt-conf":C)
18272chmod +x src/libgcrypt-config
18273 ;;
18274
18275  esac
18276done # for ac_tag
18277
18278
18279as_fn_exit 0
18280_ACEOF
18281ac_clean_files=$ac_clean_files_save
18282
18283test $ac_write_fail = 0 ||
18284  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18285
18286
18287# configure is writing to config.log, and then calls config.status.
18288# config.status does its own redirection, appending to config.log.
18289# Unfortunately, on DOS this fails, as config.log is still kept open
18290# by configure, so config.status won't be able to write to it; its
18291# output is simply discarded.  So we exec the FD to /dev/null,
18292# effectively closing config.log, so it can be properly (re)opened and
18293# appended to by config.status.  When coming back to configure, we
18294# need to make the FD available again.
18295if test "$no_create" != yes; then
18296  ac_cs_success=:
18297  ac_config_status_args=
18298  test "$silent" = yes &&
18299    ac_config_status_args="$ac_config_status_args --quiet"
18300  exec 5>/dev/null
18301  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18302  exec 5>>config.log
18303  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18304  # would make configure fail if this is the last instruction.
18305  $ac_cs_success || as_fn_exit $?
18306fi
18307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18310fi
18311
18312
18313# Give some feedback
18314echo "
18315        Libgcrypt v${VERSION} has been configured as follows:
18316
18317        Platform:                  $PRINTABLE_OS_NAME ($host)
18318        Enabled cipher algorithms: $enabled_ciphers
18319        Enabled digest algorithms: $enabled_digests
18320        Enabled pubkey algorithms: $enabled_pubkey_ciphers
18321        Random number generator:   $random
18322        Using linux capabilities:  $use_capabilities
18323        Try using Padlock crypto:  $padlocksupport
18324        Try using AES-NI crypto:   $aesnisupport
18325"
18326
18327if test "$print_egd_notice" = "yes"; then
18328cat <<G10EOF
18329
18330   The performance of the Unix random gatherer module (rndunix) is not
18331   very good and it does not keep the entropy pool over multiple
18332   invocations of Libgcrypt base applications.  The suggested way to
18333   overcome this problem is to use the
18334
18335                 Entropy Gathering Daemon (EGD)
18336
18337   which provides a entropy source for the whole system.  It is written
18338   in Perl and available at the GnuPG FTP servers.  To enable EGD you
18339   should rerun configure with the option "--enable-static-rnd=egd".
18340   For more information consult the GnuPG webpages:
18341
18342             http://www.gnupg.org/download.html#egd
18343
18344G10EOF
18345fi
18346
18347if test -n "$gpl"; then
18348  echo "Please note that you are building a version of Libgcrypt with"
18349  echo "  $gpl"
18350  echo "included.  These parts are licensed under the GPL and thus the"
18351  echo "use of this library has to comply with the conditions of the GPL."
18352fi
18353