1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for libgpg-error 1.10.
4#
5# Report bugs to <bug-gnupg@gnupg.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: bug-gnupg@gnupg.org about your system, including any
233$0: error possibly output before this message. Then install
234$0: a modern shell, or manually run the script under such a
235$0: shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296	 X"$as_dir" : 'X\(//\)[^/]' \| \
297	 X"$as_dir" : 'X\(//\)$' \| \
298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301	    s//\1/
302	    q
303	  }
304	  /^X\(\/\/\)[^/].*/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\).*/{
313	    s//\1/
314	    q
315	  }
316	  s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397	 X"$0" : 'X\(//\)$' \| \
398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\/\)$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\).*/{
409	    s//\1/
410	    q
411	  }
412	  s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439      t loop
440      s/-\n.*//
441    ' >$as_me.lineno &&
442  chmod +x "$as_me.lineno" ||
443    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T='	';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      if test -d "$1"; then
511	test -d "$1/.";
512      else
513	case $1 in #(
514	-*)set "./$1";;
515	esac;
516	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517	???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$lt_ECHO in
535X*--fallback-echo)
536  # Remove one level of quotation (which was required for Make).
537  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538  ;;
539esac
540
541ECHO=${lt_ECHO-echo}
542if test "X$1" = X--no-reexec; then
543  # Discard the --no-reexec flag, and continue.
544  shift
545elif test "X$1" = X--fallback-echo; then
546  # Avoid inline document here, it may be left over
547  :
548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549  # Yippee, $ECHO works!
550  :
551else
552  # Restart under the correct shell.
553  exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557  # used as fallback echo
558  shift
559  cat <<_LT_EOF
560$*
561_LT_EOF
562  exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$lt_ECHO"; then
570  if test "X${echo_test_string+set}" != Xset; then
571    # find a string as large as possible, as long as the shell can cope with it
572    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576      then
577        break
578      fi
579    done
580  fi
581
582  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584     test "X$echo_testing_string" = "X$echo_test_string"; then
585    :
586  else
587    # The Solaris, AIX, and Digital Unix default echo programs unquote
588    # backslashes.  This makes it impossible to quote backslashes using
589    #   echo "$something" | sed 's/\\/\\\\/g'
590    #
591    # So, first we look for a working echo in the user's PATH.
592
593    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594    for dir in $PATH /usr/ucb; do
595      IFS="$lt_save_ifs"
596      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599         test "X$echo_testing_string" = "X$echo_test_string"; then
600        ECHO="$dir/echo"
601        break
602      fi
603    done
604    IFS="$lt_save_ifs"
605
606    if test "X$ECHO" = Xecho; then
607      # We didn't find a better echo, so look for alternatives.
608      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610         test "X$echo_testing_string" = "X$echo_test_string"; then
611        # This shell has a builtin print -r that does the trick.
612        ECHO='print -r'
613      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614	   test "X$CONFIG_SHELL" != X/bin/ksh; then
615        # If we have ksh, try running configure again with it.
616        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617        export ORIGINAL_CONFIG_SHELL
618        CONFIG_SHELL=/bin/ksh
619        export CONFIG_SHELL
620        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621      else
622        # Try using printf.
623        ECHO='printf %s\n'
624        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626	   test "X$echo_testing_string" = "X$echo_test_string"; then
627	  # Cool, printf works
628	  :
629        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630	     test "X$echo_testing_string" = 'X\t' &&
631	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632	     test "X$echo_testing_string" = "X$echo_test_string"; then
633	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634	  export CONFIG_SHELL
635	  SHELL="$CONFIG_SHELL"
636	  export SHELL
637	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
638        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639	     test "X$echo_testing_string" = 'X\t' &&
640	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641	     test "X$echo_testing_string" = "X$echo_test_string"; then
642	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
643        else
644	  # maybe with a smaller string...
645	  prev=:
646
647	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649	    then
650	      break
651	    fi
652	    prev="$cmd"
653	  done
654
655	  if test "$prev" != 'sed 50q "$0"'; then
656	    echo_test_string=`eval $prev`
657	    export echo_test_string
658	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659	  else
660	    # Oops.  We lost completely, so just stick with echo.
661	    ECHO=echo
662	  fi
663        fi
664      fi
665    fi
666  fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
679exec 7<&0 </dev/null 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME='libgpg-error'
700PACKAGE_TARNAME='libgpg-error'
701PACKAGE_VERSION='1.10'
702PACKAGE_STRING='libgpg-error 1.10'
703PACKAGE_BUGREPORT='bug-gnupg@gnupg.org'
704PACKAGE_URL=''
705
706ac_unique_file="src/err-sources.h.in"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743gt_needs=
744ac_subst_vars='LTLIBOBJS
745LIBOBJS
746LANGUAGES_SOME_FALSE
747LANGUAGES_SOME_TRUE
748HAVE_W32CE_SYSTEM_FALSE
749HAVE_W32CE_SYSTEM_TRUE
750HAVE_W32_SYSTEM_FALSE
751HAVE_W32_SYSTEM_TRUE
752BUILD_FILEVERSION
753BUILD_TIMESTAMP
754GPG_ERROR_CONFIG_ISUBDIRAFTER
755GPG_ERROR_CONFIG_CFLAGS
756GPG_ERROR_CONFIG_LIBS
757POSUB
758LTLIBINTL
759LIBINTL
760INTLLIBS
761LTLIBICONV
762LIBICONV
763INTL_MACOSX_LIBS
764XGETTEXT_EXTRA_OPTIONS
765MSGMERGE
766XGETTEXT_015
767XGETTEXT
768GMSGFMT_015
769MSGFMT_015
770GMSGFMT
771MSGFMT
772GETTEXT_MACRO_VERSION
773USE_NLS
774CC_FOR_BUILD
775RC
776OTOOL64
777OTOOL
778LIPO
779NMEDIT
780DSYMUTIL
781lt_ECHO
782RANLIB
783LN_S
784NM
785ac_ct_DUMPBIN
786DUMPBIN
787LD
788FGREP
789SED
790LIBTOOL
791OBJDUMP
792DLLTOOL
793AS
794EGREP
795GREP
796AR
797CPP
798am__fastdepCC_FALSE
799am__fastdepCC_TRUE
800CCDEPMODE
801AMDEPBACKSLASH
802AMDEP_FALSE
803AMDEP_TRUE
804am__quote
805am__include
806DEPDIR
807OBJEXT
808EXEEXT
809ac_ct_CC
810CPPFLAGS
811LDFLAGS
812CFLAGS
813CC
814host_os
815host_vendor
816host_cpu
817host
818build_os
819build_vendor
820build_cpu
821build
822MAINT
823MAINTAINER_MODE_FALSE
824MAINTAINER_MODE_TRUE
825am__untar
826am__tar
827AMTAR
828am__leading_dot
829SET_MAKE
830AWK
831mkdir_p
832MKDIR_P
833INSTALL_STRIP_PROGRAM
834STRIP
835install_sh
836MAKEINFO
837AUTOHEADER
838AUTOMAKE
839AUTOCONF
840ACLOCAL
841VERSION
842PACKAGE
843CYGPATH_W
844am__isrc
845INSTALL_DATA
846INSTALL_SCRIPT
847INSTALL_PROGRAM
848LIBGPG_ERROR_LT_REVISION
849LIBGPG_ERROR_LT_AGE
850LIBGPG_ERROR_LT_CURRENT
851target_alias
852host_alias
853build_alias
854LIBS
855ECHO_T
856ECHO_N
857ECHO_C
858DEFS
859mandir
860localedir
861libdir
862psdir
863pdfdir
864dvidir
865htmldir
866infodir
867docdir
868oldincludedir
869includedir
870localstatedir
871sharedstatedir
872sysconfdir
873datadir
874datarootdir
875libexecdir
876sbindir
877bindir
878program_transform_name
879prefix
880exec_prefix
881PACKAGE_URL
882PACKAGE_BUGREPORT
883PACKAGE_STRING
884PACKAGE_VERSION
885PACKAGE_TARNAME
886PACKAGE_NAME
887PATH_SEPARATOR
888SHELL'
889ac_subst_files=''
890ac_user_opts='
891enable_option_checking
892enable_maintainer_mode
893enable_dependency_tracking
894enable_static
895enable_shared
896with_pic
897enable_fast_install
898with_gnu_ld
899enable_libtool_lock
900enable_nls
901enable_rpath
902with_libiconv_prefix
903with_libintl_prefix
904enable_languages
905'
906      ac_precious_vars='build_alias
907host_alias
908target_alias
909CC
910CFLAGS
911LDFLAGS
912LIBS
913CPPFLAGS
914CPP
915CC_FOR_BUILD'
916
917
918# Initialize some variables set by options.
919ac_init_help=
920ac_init_version=false
921ac_unrecognized_opts=
922ac_unrecognized_sep=
923# The variables have the same names as the options, with
924# dashes changed to underlines.
925cache_file=/dev/null
926exec_prefix=NONE
927no_create=
928no_recursion=
929prefix=NONE
930program_prefix=NONE
931program_suffix=NONE
932program_transform_name=s,x,x,
933silent=
934site=
935srcdir=
936verbose=
937x_includes=NONE
938x_libraries=NONE
939
940# Installation directory options.
941# These are left unexpanded so users can "make install exec_prefix=/foo"
942# and all the variables that are supposed to be based on exec_prefix
943# by default will actually change.
944# Use braces instead of parens because sh, perl, etc. also accept them.
945# (The list follows the same order as the GNU Coding Standards.)
946bindir='${exec_prefix}/bin'
947sbindir='${exec_prefix}/sbin'
948libexecdir='${exec_prefix}/libexec'
949datarootdir='${prefix}/share'
950datadir='${datarootdir}'
951sysconfdir='${prefix}/etc'
952sharedstatedir='${prefix}/com'
953localstatedir='${prefix}/var'
954includedir='${prefix}/include'
955oldincludedir='/usr/include'
956docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957infodir='${datarootdir}/info'
958htmldir='${docdir}'
959dvidir='${docdir}'
960pdfdir='${docdir}'
961psdir='${docdir}'
962libdir='${exec_prefix}/lib'
963localedir='${datarootdir}/locale'
964mandir='${datarootdir}/man'
965
966ac_prev=
967ac_dashdash=
968for ac_option
969do
970  # If the previous option needs an argument, assign it.
971  if test -n "$ac_prev"; then
972    eval $ac_prev=\$ac_option
973    ac_prev=
974    continue
975  fi
976
977  case $ac_option in
978  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979  *)	ac_optarg=yes ;;
980  esac
981
982  # Accept the important Cygnus configure options, so we can diagnose typos.
983
984  case $ac_dashdash$ac_option in
985  --)
986    ac_dashdash=yes ;;
987
988  -bindir | --bindir | --bindi | --bind | --bin | --bi)
989    ac_prev=bindir ;;
990  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991    bindir=$ac_optarg ;;
992
993  -build | --build | --buil | --bui | --bu)
994    ac_prev=build_alias ;;
995  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996    build_alias=$ac_optarg ;;
997
998  -cache-file | --cache-file | --cache-fil | --cache-fi \
999  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000    ac_prev=cache_file ;;
1001  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003    cache_file=$ac_optarg ;;
1004
1005  --config-cache | -C)
1006    cache_file=config.cache ;;
1007
1008  -datadir | --datadir | --datadi | --datad)
1009    ac_prev=datadir ;;
1010  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011    datadir=$ac_optarg ;;
1012
1013  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014  | --dataroo | --dataro | --datar)
1015    ac_prev=datarootdir ;;
1016  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018    datarootdir=$ac_optarg ;;
1019
1020  -disable-* | --disable-*)
1021    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024      as_fn_error "invalid feature name: $ac_useropt"
1025    ac_useropt_orig=$ac_useropt
1026    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027    case $ac_user_opts in
1028      *"
1029"enable_$ac_useropt"
1030"*) ;;
1031      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032	 ac_unrecognized_sep=', ';;
1033    esac
1034    eval enable_$ac_useropt=no ;;
1035
1036  -docdir | --docdir | --docdi | --doc | --do)
1037    ac_prev=docdir ;;
1038  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039    docdir=$ac_optarg ;;
1040
1041  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042    ac_prev=dvidir ;;
1043  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044    dvidir=$ac_optarg ;;
1045
1046  -enable-* | --enable-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error "invalid feature name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"enable_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058	 ac_unrecognized_sep=', ';;
1059    esac
1060    eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064  | --exec | --exe | --ex)
1065    ac_prev=exec_prefix ;;
1066  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068  | --exec=* | --exe=* | --ex=*)
1069    exec_prefix=$ac_optarg ;;
1070
1071  -gas | --gas | --ga | --g)
1072    # Obsolete; use --with-gas.
1073    with_gas=yes ;;
1074
1075  -help | --help | --hel | --he | -h)
1076    ac_init_help=long ;;
1077  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078    ac_init_help=recursive ;;
1079  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080    ac_init_help=short ;;
1081
1082  -host | --host | --hos | --ho)
1083    ac_prev=host_alias ;;
1084  -host=* | --host=* | --hos=* | --ho=*)
1085    host_alias=$ac_optarg ;;
1086
1087  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088    ac_prev=htmldir ;;
1089  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090  | --ht=*)
1091    htmldir=$ac_optarg ;;
1092
1093  -includedir | --includedir | --includedi | --included | --include \
1094  | --includ | --inclu | --incl | --inc)
1095    ac_prev=includedir ;;
1096  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097  | --includ=* | --inclu=* | --incl=* | --inc=*)
1098    includedir=$ac_optarg ;;
1099
1100  -infodir | --infodir | --infodi | --infod | --info | --inf)
1101    ac_prev=infodir ;;
1102  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103    infodir=$ac_optarg ;;
1104
1105  -libdir | --libdir | --libdi | --libd)
1106    ac_prev=libdir ;;
1107  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108    libdir=$ac_optarg ;;
1109
1110  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111  | --libexe | --libex | --libe)
1112    ac_prev=libexecdir ;;
1113  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114  | --libexe=* | --libex=* | --libe=*)
1115    libexecdir=$ac_optarg ;;
1116
1117  -localedir | --localedir | --localedi | --localed | --locale)
1118    ac_prev=localedir ;;
1119  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120    localedir=$ac_optarg ;;
1121
1122  -localstatedir | --localstatedir | --localstatedi | --localstated \
1123  | --localstate | --localstat | --localsta | --localst | --locals)
1124    ac_prev=localstatedir ;;
1125  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127    localstatedir=$ac_optarg ;;
1128
1129  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130    ac_prev=mandir ;;
1131  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132    mandir=$ac_optarg ;;
1133
1134  -nfp | --nfp | --nf)
1135    # Obsolete; use --without-fp.
1136    with_fp=no ;;
1137
1138  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139  | --no-cr | --no-c | -n)
1140    no_create=yes ;;
1141
1142  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144    no_recursion=yes ;;
1145
1146  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148  | --oldin | --oldi | --old | --ol | --o)
1149    ac_prev=oldincludedir ;;
1150  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153    oldincludedir=$ac_optarg ;;
1154
1155  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156    ac_prev=prefix ;;
1157  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158    prefix=$ac_optarg ;;
1159
1160  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161  | --program-pre | --program-pr | --program-p)
1162    ac_prev=program_prefix ;;
1163  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165    program_prefix=$ac_optarg ;;
1166
1167  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168  | --program-suf | --program-su | --program-s)
1169    ac_prev=program_suffix ;;
1170  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172    program_suffix=$ac_optarg ;;
1173
1174  -program-transform-name | --program-transform-name \
1175  | --program-transform-nam | --program-transform-na \
1176  | --program-transform-n | --program-transform- \
1177  | --program-transform | --program-transfor \
1178  | --program-transfo | --program-transf \
1179  | --program-trans | --program-tran \
1180  | --progr-tra | --program-tr | --program-t)
1181    ac_prev=program_transform_name ;;
1182  -program-transform-name=* | --program-transform-name=* \
1183  | --program-transform-nam=* | --program-transform-na=* \
1184  | --program-transform-n=* | --program-transform-=* \
1185  | --program-transform=* | --program-transfor=* \
1186  | --program-transfo=* | --program-transf=* \
1187  | --program-trans=* | --program-tran=* \
1188  | --progr-tra=* | --program-tr=* | --program-t=*)
1189    program_transform_name=$ac_optarg ;;
1190
1191  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192    ac_prev=pdfdir ;;
1193  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194    pdfdir=$ac_optarg ;;
1195
1196  -psdir | --psdir | --psdi | --psd | --ps)
1197    ac_prev=psdir ;;
1198  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199    psdir=$ac_optarg ;;
1200
1201  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202  | -silent | --silent | --silen | --sile | --sil)
1203    silent=yes ;;
1204
1205  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206    ac_prev=sbindir ;;
1207  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208  | --sbi=* | --sb=*)
1209    sbindir=$ac_optarg ;;
1210
1211  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213  | --sharedst | --shareds | --shared | --share | --shar \
1214  | --sha | --sh)
1215    ac_prev=sharedstatedir ;;
1216  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219  | --sha=* | --sh=*)
1220    sharedstatedir=$ac_optarg ;;
1221
1222  -site | --site | --sit)
1223    ac_prev=site ;;
1224  -site=* | --site=* | --sit=*)
1225    site=$ac_optarg ;;
1226
1227  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228    ac_prev=srcdir ;;
1229  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230    srcdir=$ac_optarg ;;
1231
1232  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233  | --syscon | --sysco | --sysc | --sys | --sy)
1234    ac_prev=sysconfdir ;;
1235  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237    sysconfdir=$ac_optarg ;;
1238
1239  -target | --target | --targe | --targ | --tar | --ta | --t)
1240    ac_prev=target_alias ;;
1241  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242    target_alias=$ac_optarg ;;
1243
1244  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245    verbose=yes ;;
1246
1247  -version | --version | --versio | --versi | --vers | -V)
1248    ac_init_version=: ;;
1249
1250  -with-* | --with-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error "invalid package name: $ac_useropt"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=\$ac_optarg ;;
1265
1266  -without-* | --without-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=no ;;
1281
1282  --x)
1283    # Obsolete; use --with-x.
1284    with_x=yes ;;
1285
1286  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287  | --x-incl | --x-inc | --x-in | --x-i)
1288    ac_prev=x_includes ;;
1289  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291    x_includes=$ac_optarg ;;
1292
1293  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295    ac_prev=x_libraries ;;
1296  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298    x_libraries=$ac_optarg ;;
1299
1300  -*) as_fn_error "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information."
1302    ;;
1303
1304  *=*)
1305    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306    # Reject names that are not valid shell variable names.
1307    case $ac_envvar in #(
1308      '' | [0-9]* | *[!_$as_cr_alnum]* )
1309      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1310    esac
1311    eval $ac_envvar=\$ac_optarg
1312    export $ac_envvar ;;
1313
1314  *)
1315    # FIXME: should be removed in autoconf 3.0.
1316    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320    ;;
1321
1322  esac
1323done
1324
1325if test -n "$ac_prev"; then
1326  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327  as_fn_error "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331  case $enable_option_checking in
1332    no) ;;
1333    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1334    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335  esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340		datadir sysconfdir sharedstatedir localstatedir includedir \
1341		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342		libdir localedir mandir
1343do
1344  eval ac_val=\$$ac_var
1345  # Remove trailing slashes.
1346  case $ac_val in
1347    */ )
1348      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349      eval $ac_var=\$ac_val;;
1350  esac
1351  # Be sure to have absolute directory names.
1352  case $ac_val in
1353    [\\/$]* | ?:[\\/]* )  continue;;
1354    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355  esac
1356  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368  if test "x$build_alias" = x; then
1369    cross_compiling=maybe
1370    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371    If a cross compiler is detected then cross compile mode will be used." >&2
1372  elif test "x$build_alias" != "x$host_alias"; then
1373    cross_compiling=yes
1374  fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386  as_fn_error "working directory cannot be determined"
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388  as_fn_error "pwd does not report name of working directory"
1389
1390
1391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393  ac_srcdir_defaulted=yes
1394  # Try the directory containing this script, then the parent directory.
1395  ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397	 X"$as_myself" : 'X\(//\)[^/]' \| \
1398	 X"$as_myself" : 'X\(//\)$' \| \
1399	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
1401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)[^/].*/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\).*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  s/.*/./; q'`
1418  srcdir=$ac_confdir
1419  if test ! -r "$srcdir/$ac_unique_file"; then
1420    srcdir=..
1421  fi
1422else
1423  ac_srcdir_defaulted=no
1424fi
1425if test ! -r "$srcdir/$ac_unique_file"; then
1426  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1428fi
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
1431	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1432	pwd)`
1433# When building in place, set srcdir=.
1434if test "$ac_abs_confdir" = "$ac_pwd"; then
1435  srcdir=.
1436fi
1437# Remove unnecessary trailing slashes from srcdir.
1438# Double slashes in file names in object file debugging info
1439# mess up M-x gdb in Emacs.
1440case $srcdir in
1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442esac
1443for ac_var in $ac_precious_vars; do
1444  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_env_${ac_var}_value=\$${ac_var}
1446  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
1449
1450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454  # Omit some internal or obsolete options to make the list less imposing.
1455  # This message is too long to be a string in the A/UX 3.1 sh.
1456  cat <<_ACEOF
1457\`configure' configures libgpg-error 1.10 to adapt to many kinds of systems.
1458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467  -h, --help              display this help and exit
1468      --help=short        display options specific to this package
1469      --help=recursive    display the short help of all the included packages
1470  -V, --version           display version information and exit
1471  -q, --quiet, --silent   do not print \`checking...' messages
1472      --cache-file=FILE   cache test results in FILE [disabled]
1473  -C, --config-cache      alias for \`--cache-file=config.cache'
1474  -n, --no-create         do not create output files
1475      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477Installation directories:
1478  --prefix=PREFIX         install architecture-independent files in PREFIX
1479                          [$ac_default_prefix]
1480  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                          [PREFIX]
1482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
1491  --bindir=DIR            user executables [EPREFIX/bin]
1492  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493  --libexecdir=DIR        program executables [EPREFIX/libexec]
1494  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497  --libdir=DIR            object code libraries [EPREFIX/lib]
1498  --includedir=DIR        C header files [PREFIX/include]
1499  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502  --infodir=DIR           info documentation [DATAROOTDIR/info]
1503  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504  --mandir=DIR            man documentation [DATAROOTDIR/man]
1505  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgpg-error]
1506  --htmldir=DIR           html documentation [DOCDIR]
1507  --dvidir=DIR            dvi documentation [DOCDIR]
1508  --pdfdir=DIR            pdf documentation [DOCDIR]
1509  --psdir=DIR             ps documentation [DOCDIR]
1510_ACEOF
1511
1512  cat <<\_ACEOF
1513
1514Program names:
1515  --program-prefix=PREFIX            prepend PREFIX to installed program names
1516  --program-suffix=SUFFIX            append SUFFIX to installed program names
1517  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1518
1519System types:
1520  --build=BUILD     configure for building on BUILD [guessed]
1521  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526  case $ac_init_help in
1527     short | recursive ) echo "Configuration of libgpg-error 1.10:";;
1528   esac
1529  cat <<\_ACEOF
1530
1531Optional Features:
1532  --disable-option-checking  ignore unrecognized --enable/--with options
1533  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1534  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1535  --enable-maintainer-mode  enable make rules and dependencies not useful
1536			  (and sometimes confusing) to the casual installer
1537  --disable-dependency-tracking  speeds up one-time build
1538  --enable-dependency-tracking   do not reject slow dependency extractors
1539  --enable-static[=PKGS]  build static libraries [default=no]
1540  --enable-shared[=PKGS]  build shared libraries [default=yes]
1541  --enable-fast-install[=PKGS]
1542                          optimize for fast installation [default=yes]
1543  --disable-libtool-lock  avoid locking (might break parallel builds)
1544  --disable-nls           do not use Native Language Support
1545  --disable-rpath         do not hardcode runtime library paths
1546  --disable-languages     do not build support for other languages than C
1547
1548Optional Packages:
1549  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551  --with-pic              try to use only PIC/non-PIC objects [default=use
1552                          both]
1553  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1554  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1555  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1556  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1557  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1558  --without-libintl-prefix     don't search for libintl in includedir and libdir
1559
1560Some influential environment variables:
1561  CC          C compiler command
1562  CFLAGS      C compiler flags
1563  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564              nonstandard directory <lib dir>
1565  LIBS        libraries to pass to the linker, e.g. -l<library>
1566  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567              you have headers in a nonstandard directory <include dir>
1568  CPP         C preprocessor
1569  CC_FOR_BUILD
1570              build system C compiler
1571
1572Use these variables to override the choices made by `configure' or to help
1573it to find libraries and programs with nonstandard names/locations.
1574
1575Report bugs to <bug-gnupg@gnupg.org>.
1576_ACEOF
1577ac_status=$?
1578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581  # If there are subdirs, report their specific --help.
1582  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583    test -d "$ac_dir" ||
1584      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585      continue
1586    ac_builddir=.
1587
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592  # A ".." for each directory in $ac_dir_suffix.
1593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594  case $ac_top_builddir_sub in
1595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597  esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
1603
1604case $srcdir in
1605  .)  # We are building in place.
1606    ac_srcdir=.
1607    ac_top_srcdir=$ac_top_builddir_sub
1608    ac_abs_top_srcdir=$ac_pwd ;;
1609  [\\/]* | ?:[\\/]* )  # Absolute name.
1610    ac_srcdir=$srcdir$ac_dir_suffix;
1611    ac_top_srcdir=$srcdir
1612    ac_abs_top_srcdir=$srcdir ;;
1613  *) # Relative name.
1614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615    ac_top_srcdir=$ac_top_build_prefix$srcdir
1616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617esac
1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620    cd "$ac_dir" || { ac_status=$?; continue; }
1621    # Check for guested configure.
1622    if test -f "$ac_srcdir/configure.gnu"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625    elif test -f "$ac_srcdir/configure"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure" --help=recursive
1628    else
1629      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630    fi || ac_status=$?
1631    cd "$ac_pwd" || { ac_status=$?; break; }
1632  done
1633fi
1634
1635test -n "$ac_init_help" && exit $ac_status
1636if $ac_init_version; then
1637  cat <<\_ACEOF
1638libgpg-error configure 1.10
1639generated by GNU Autoconf 2.64
1640
1641Copyright (C) 2009 Free Software Foundation, Inc.
1642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
1645  exit
1646fi
1647
1648## ------------------------ ##
1649## Autoconf initialization. ##
1650## ------------------------ ##
1651
1652# ac_fn_c_try_compile LINENO
1653# --------------------------
1654# Try to compile conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686  return $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } >/dev/null && {
1712	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720    ac_retval=1
1721fi
1722  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723  return $ac_retval
1724
1725} # ac_fn_c_try_cpp
1726
1727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730# the include files in INCLUDES and setting the cache variable VAR
1731# accordingly.
1732ac_fn_c_check_header_mongrel ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739  $as_echo_n "(cached) " >&6
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744else
1745  # Is the header compilable?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747$as_echo_n "checking $2 usability... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  ac_header_compiler=yes
1755else
1756  ac_header_compiler=no
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760$as_echo "$ac_header_compiler" >&6; }
1761
1762# Is the header present?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764$as_echo_n "checking $2 presence... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_cpp "$LINENO"; then :
1770  ac_header_preproc=yes
1771else
1772  ac_header_preproc=no
1773fi
1774rm -f conftest.err conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776$as_echo "$ac_header_preproc" >&6; }
1777
1778# So?  What about this header?
1779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780  yes:no: )
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785    ;;
1786  no:yes:* )
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1790$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1794$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797( cat <<\_ASBOX
1798## ---------------------------------- ##
1799## Report this to bug-gnupg@gnupg.org ##
1800## ---------------------------------- ##
1801_ASBOX
1802     ) | sed "s/^/$as_me: WARNING:     /" >&2
1803    ;;
1804esac
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808  $as_echo_n "(cached) " >&6
1809else
1810  eval "$3=\$ac_header_compiler"
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815fi
1816  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817
1818} # ac_fn_c_check_header_mongrel
1819
1820# ac_fn_c_try_run LINENO
1821# ----------------------
1822# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823# that executables *can* be run.
1824ac_fn_c_try_run ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if { { ac_try="$ac_link"
1828case "(($ac_try" in
1829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830  *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834  (eval "$ac_link") 2>&5
1835  ac_status=$?
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838  { { case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_try") 2>&5
1845  ac_status=$?
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; }; }; then :
1848  ac_retval=0
1849else
1850  $as_echo "$as_me: program exited with status $ac_status" >&5
1851       $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854       ac_retval=$ac_status
1855fi
1856  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858  return $ac_retval
1859
1860} # ac_fn_c_try_run
1861
1862# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863# -------------------------------------------------------
1864# Tests whether HEADER exists and can be compiled using the include files in
1865# INCLUDES, setting the cache variable VAR accordingly.
1866ac_fn_c_check_header_compile ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1872  $as_echo_n "(cached) " >&6
1873else
1874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  eval "$3=yes"
1881else
1882  eval "$3=no"
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890
1891} # ac_fn_c_check_header_compile
1892
1893# ac_fn_c_try_link LINENO
1894# -----------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_c_try_link ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  rm -f conftest.$ac_objext conftest$ac_exeext
1900  if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_link") 2>conftest.err
1908  ac_status=$?
1909  if test -s conftest.err; then
1910    grep -v '^ *+' conftest.err >conftest.er1
1911    cat conftest.er1 >&5
1912    mv -f conftest.er1 conftest.err
1913  fi
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; } && {
1916	 test -z "$ac_c_werror_flag" ||
1917	 test ! -s conftest.err
1918       } && test -s conftest$ac_exeext && {
1919	 test "$cross_compiling" = yes ||
1920	 $as_test_x conftest$ac_exeext
1921       }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927	ac_retval=1
1928fi
1929  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931  # interfere with the next link command; also delete a directory that is
1932  # left behind by Apple's compiler.  We do this before executing the actions.
1933  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935  return $ac_retval
1936
1937} # ac_fn_c_try_link
1938
1939# ac_fn_c_check_func LINENO FUNC VAR
1940# ----------------------------------
1941# Tests whether FUNC exists, setting the cache variable VAR accordingly
1942ac_fn_c_check_func ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948  $as_echo_n "(cached) " >&6
1949else
1950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1954#define $2 innocuous_$2
1955
1956/* System header to define __stub macros and hopefully few prototypes,
1957    which can conflict with char $2 (); below.
1958    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959    <limits.h> exists even on freestanding compilers.  */
1960
1961#ifdef __STDC__
1962# include <limits.h>
1963#else
1964# include <assert.h>
1965#endif
1966
1967#undef $2
1968
1969/* Override any GCC internal prototype to avoid an error.
1970   Use char because int might match the return type of a GCC
1971   builtin and then its argument prototype would still apply.  */
1972#ifdef __cplusplus
1973extern "C"
1974#endif
1975char $2 ();
1976/* The GNU C library defines this for functions which it implements
1977    to always fail with ENOSYS.  Some functions are actually named
1978    something starting with __ and the normal name is an alias.  */
1979#if defined __stub_$2 || defined __stub___$2
1980choke me
1981#endif
1982
1983int
1984main ()
1985{
1986return $2 ();
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_link "$LINENO"; then :
1992  eval "$3=yes"
1993else
1994  eval "$3=no"
1995fi
1996rm -f core conftest.err conftest.$ac_objext \
1997    conftest$ac_exeext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004} # ac_fn_c_check_func
2005
2006# ac_fn_c_check_decl LINENO SYMBOL VAR
2007# ------------------------------------
2008# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2009ac_fn_c_check_decl ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2013$as_echo_n "checking whether $2 is declared... " >&6; }
2014if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015  $as_echo_n "(cached) " >&6
2016else
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020int
2021main ()
2022{
2023#ifndef $2
2024  (void) $2;
2025#endif
2026
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032  eval "$3=yes"
2033else
2034  eval "$3=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043} # ac_fn_c_check_decl
2044cat >config.log <<_ACEOF
2045This file contains any messages produced by compilers while
2046running configure, to aid debugging if configure makes a mistake.
2047
2048It was created by libgpg-error $as_me 1.10, which was
2049generated by GNU Autoconf 2.64.  Invocation command line was
2050
2051  $ $0 $@
2052
2053_ACEOF
2054exec 5>>config.log
2055{
2056cat <<_ASUNAME
2057## --------- ##
2058## Platform. ##
2059## --------- ##
2060
2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069
2070/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2071/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2074/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2075/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2076/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077
2078_ASUNAME
2079
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085    $as_echo "PATH: $as_dir"
2086  done
2087IFS=$as_save_IFS
2088
2089} >&5
2090
2091cat >&5 <<_ACEOF
2092
2093
2094## ----------- ##
2095## Core tests. ##
2096## ----------- ##
2097
2098_ACEOF
2099
2100
2101# Keep a trace of the command line.
2102# Strip out --no-create and --no-recursion so they do not pile up.
2103# Strip out --silent because we don't want to record it for future runs.
2104# Also quote any args containing shell meta-characters.
2105# Make two passes to allow for proper duplicate-argument suppression.
2106ac_configure_args=
2107ac_configure_args0=
2108ac_configure_args1=
2109ac_must_keep_next=false
2110for ac_pass in 1 2
2111do
2112  for ac_arg
2113  do
2114    case $ac_arg in
2115    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117    | -silent | --silent | --silen | --sile | --sil)
2118      continue ;;
2119    *\'*)
2120      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121    esac
2122    case $ac_pass in
2123    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124    2)
2125      as_fn_append ac_configure_args1 " '$ac_arg'"
2126      if test $ac_must_keep_next = true; then
2127	ac_must_keep_next=false # Got value, back to normal.
2128      else
2129	case $ac_arg in
2130	  *=* | --config-cache | -C | -disable-* | --disable-* \
2131	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133	  | -with-* | --with-* | -without-* | --without-* | --x)
2134	    case "$ac_configure_args0 " in
2135	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136	    esac
2137	    ;;
2138	  -* ) ac_must_keep_next=true ;;
2139	esac
2140      fi
2141      as_fn_append ac_configure_args " '$ac_arg'"
2142      ;;
2143    esac
2144  done
2145done
2146{ ac_configure_args0=; unset ac_configure_args0;}
2147{ ac_configure_args1=; unset ac_configure_args1;}
2148
2149# When interrupted or exit'd, cleanup temporary files, and complete
2150# config.log.  We remove comments because anyway the quotes in there
2151# would cause problems or look ugly.
2152# WARNING: Use '\'' to represent an apostrophe within the trap.
2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154trap 'exit_status=$?
2155  # Save into config.log some information that might help in debugging.
2156  {
2157    echo
2158
2159    cat <<\_ASBOX
2160## ---------------- ##
2161## Cache variables. ##
2162## ---------------- ##
2163_ASBOX
2164    echo
2165    # The following way of writing the cache mishandles newlines in values,
2166(
2167  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168    eval ac_val=\$$ac_var
2169    case $ac_val in #(
2170    *${as_nl}*)
2171      case $ac_var in #(
2172      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174      esac
2175      case $ac_var in #(
2176      _ | IFS | as_nl) ;; #(
2177      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178      *) { eval $ac_var=; unset $ac_var;} ;;
2179      esac ;;
2180    esac
2181  done
2182  (set) 2>&1 |
2183    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184    *${as_nl}ac_space=\ *)
2185      sed -n \
2186	"s/'\''/'\''\\\\'\'''\''/g;
2187	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188      ;; #(
2189    *)
2190      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191      ;;
2192    esac |
2193    sort
2194)
2195    echo
2196
2197    cat <<\_ASBOX
2198## ----------------- ##
2199## Output variables. ##
2200## ----------------- ##
2201_ASBOX
2202    echo
2203    for ac_var in $ac_subst_vars
2204    do
2205      eval ac_val=\$$ac_var
2206      case $ac_val in
2207      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208      esac
2209      $as_echo "$ac_var='\''$ac_val'\''"
2210    done | sort
2211    echo
2212
2213    if test -n "$ac_subst_files"; then
2214      cat <<\_ASBOX
2215## ------------------- ##
2216## File substitutions. ##
2217## ------------------- ##
2218_ASBOX
2219      echo
2220      for ac_var in $ac_subst_files
2221      do
2222	eval ac_val=\$$ac_var
2223	case $ac_val in
2224	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225	esac
2226	$as_echo "$ac_var='\''$ac_val'\''"
2227      done | sort
2228      echo
2229    fi
2230
2231    if test -s confdefs.h; then
2232      cat <<\_ASBOX
2233## ----------- ##
2234## confdefs.h. ##
2235## ----------- ##
2236_ASBOX
2237      echo
2238      cat confdefs.h
2239      echo
2240    fi
2241    test "$ac_signal" != 0 &&
2242      $as_echo "$as_me: caught signal $ac_signal"
2243    $as_echo "$as_me: exit $exit_status"
2244  } >&5
2245  rm -f core *.core core.conftest.* &&
2246    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247    exit $exit_status
2248' 0
2249for ac_signal in 1 2 13 15; do
2250  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
2255rm -f -r conftest* confdefs.h
2256
2257$as_echo "/* confdefs.h */" > confdefs.h
2258
2259# Predefined preprocessor variables.
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_NAME "$PACKAGE_NAME"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_VERSION "$PACKAGE_VERSION"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_STRING "$PACKAGE_STRING"
2275_ACEOF
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_URL "$PACKAGE_URL"
2283_ACEOF
2284
2285
2286# Let the site file select an alternate cache file if it wants to.
2287# Prefer an explicitly selected file to automatically selected ones.
2288ac_site_file1=NONE
2289ac_site_file2=NONE
2290if test -n "$CONFIG_SITE"; then
2291  ac_site_file1=$CONFIG_SITE
2292elif test "x$prefix" != xNONE; then
2293  ac_site_file1=$prefix/share/config.site
2294  ac_site_file2=$prefix/etc/config.site
2295else
2296  ac_site_file1=$ac_default_prefix/share/config.site
2297  ac_site_file2=$ac_default_prefix/etc/config.site
2298fi
2299for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300do
2301  test "x$ac_site_file" = xNONE && continue
2302  if test -r "$ac_site_file"; then
2303    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305    sed 's/^/| /' "$ac_site_file" >&5
2306    . "$ac_site_file"
2307  fi
2308done
2309
2310if test -r "$cache_file"; then
2311  # Some versions of bash will fail to source /dev/null (special
2312  # files actually), so we avoid doing that.
2313  if test -f "$cache_file"; then
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315$as_echo "$as_me: loading cache $cache_file" >&6;}
2316    case $cache_file in
2317      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318      *)                      . "./$cache_file";;
2319    esac
2320  fi
2321else
2322  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323$as_echo "$as_me: creating cache $cache_file" >&6;}
2324  >$cache_file
2325fi
2326
2327gt_needs="$gt_needs "
2328# Check that the precious variables saved in the cache have kept the same
2329# value.
2330ac_cache_corrupted=false
2331for ac_var in $ac_precious_vars; do
2332  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333  eval ac_new_set=\$ac_env_${ac_var}_set
2334  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335  eval ac_new_val=\$ac_env_${ac_var}_value
2336  case $ac_old_set,$ac_new_set in
2337    set,)
2338      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340      ac_cache_corrupted=: ;;
2341    ,set)
2342      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344      ac_cache_corrupted=: ;;
2345    ,);;
2346    *)
2347      if test "x$ac_old_val" != "x$ac_new_val"; then
2348	# differences in whitespace do not lead to failure.
2349	ac_old_val_w=`echo x $ac_old_val`
2350	ac_new_val_w=`echo x $ac_new_val`
2351	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354	  ac_cache_corrupted=:
2355	else
2356	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358	  eval $ac_var=\$ac_old_val
2359	fi
2360	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2361$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2362	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2363$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2364      fi;;
2365  esac
2366  # Pass precious variables to config.status.
2367  if test "$ac_new_set" = set; then
2368    case $ac_new_val in
2369    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370    *) ac_arg=$ac_var=$ac_new_val ;;
2371    esac
2372    case " $ac_configure_args " in
2373      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2374      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375    esac
2376  fi
2377done
2378if $ac_cache_corrupted; then
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384fi
2385## -------------------- ##
2386## Main body of script. ##
2387## -------------------- ##
2388
2389ac_ext=c
2390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396# LT Version numbers, remember to change them just *before* a release.
2397#   (Code changed:			REVISION++)
2398#   (Interfaces added/removed/changed:	CURRENT++, REVISION=0)
2399#   (Interfaces added:			AGE++)
2400#   (Interfaces removed:		AGE=0)
2401# Note that added error codes don't constitute an interface change.
2402LIBGPG_ERROR_LT_CURRENT=8
2403LIBGPG_ERROR_LT_AGE=8
2404LIBGPG_ERROR_LT_REVISION=0
2405
2406
2407
2408
2409am__api_version='1.10'
2410
2411ac_aux_dir=
2412for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2413  for ac_t in install-sh install.sh shtool; do
2414    if test -f "$ac_dir/$ac_t"; then
2415      ac_aux_dir=$ac_dir
2416      ac_install_sh="$ac_aux_dir/$ac_t -c"
2417      break 2
2418    fi
2419  done
2420done
2421if test -z "$ac_aux_dir"; then
2422  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2423fi
2424
2425# These three variables are undocumented and unsupported,
2426# and are intended to be withdrawn in a future Autoconf release.
2427# They can cause serious problems if a builder's source tree is in a directory
2428# whose full name contains unusual characters.
2429ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2430ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2431ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2432
2433
2434# Find a good install program.  We prefer a C program (faster),
2435# so one script is as good as another.  But avoid the broken or
2436# incompatible versions:
2437# SysV /etc/install, /usr/sbin/install
2438# SunOS /usr/etc/install
2439# IRIX /sbin/install
2440# AIX /bin/install
2441# AmigaOS /C/install, which installs bootblocks on floppy discs
2442# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445# OS/2's system install, which has a completely different semantic
2446# ./install, which can be erroneously created by make from ./install.sh.
2447# Reject install programs that cannot install multiple files.
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2449$as_echo_n "checking for a BSD-compatible install... " >&6; }
2450if test -z "$INSTALL"; then
2451if test "${ac_cv_path_install+set}" = set; then :
2452  $as_echo_n "(cached) " >&6
2453else
2454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459    # Account for people who put trailing slashes in PATH elements.
2460case $as_dir/ in #((
2461  ./ | .// | /[cC]/* | \
2462  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2463  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2464  /usr/ucb/* ) ;;
2465  *)
2466    # OSF1 and SCO ODT 3.0 have their own names for install.
2467    # Don't use installbsd from OSF since it installs stuff as root
2468    # by default.
2469    for ac_prog in ginstall scoinst install; do
2470      for ac_exec_ext in '' $ac_executable_extensions; do
2471	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2472	  if test $ac_prog = install &&
2473	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474	    # AIX install.  It has an incompatible calling convention.
2475	    :
2476	  elif test $ac_prog = install &&
2477	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478	    # program-specific install script used by HP pwplus--don't use.
2479	    :
2480	  else
2481	    rm -rf conftest.one conftest.two conftest.dir
2482	    echo one > conftest.one
2483	    echo two > conftest.two
2484	    mkdir conftest.dir
2485	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2486	      test -s conftest.one && test -s conftest.two &&
2487	      test -s conftest.dir/conftest.one &&
2488	      test -s conftest.dir/conftest.two
2489	    then
2490	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491	      break 3
2492	    fi
2493	  fi
2494	fi
2495      done
2496    done
2497    ;;
2498esac
2499
2500  done
2501IFS=$as_save_IFS
2502
2503rm -rf conftest.one conftest.two conftest.dir
2504
2505fi
2506  if test "${ac_cv_path_install+set}" = set; then
2507    INSTALL=$ac_cv_path_install
2508  else
2509    # As a last resort, use the slow shell script.  Don't cache a
2510    # value for INSTALL within a source directory, because that will
2511    # break other packages using the cache if that directory is
2512    # removed, or if the value is a relative name.
2513    INSTALL=$ac_install_sh
2514  fi
2515fi
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2517$as_echo "$INSTALL" >&6; }
2518
2519# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2520# It thinks the first close brace ends the variable substitution.
2521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2522
2523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2524
2525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2526
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2528$as_echo_n "checking whether build environment is sane... " >&6; }
2529# Just in case
2530sleep 1
2531echo timestamp > conftest.file
2532# Do `set' in a subshell so we don't clobber the current shell's
2533# arguments.  Must try -L first in case configure is actually a
2534# symlink; some systems play weird games with the mod time of symlinks
2535# (eg FreeBSD returns the mod time of the symlink's containing
2536# directory).
2537if (
2538   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2539   if test "$*" = "X"; then
2540      # -L didn't work.
2541      set X `ls -t $srcdir/configure conftest.file`
2542   fi
2543   rm -f conftest.file
2544   if test "$*" != "X $srcdir/configure conftest.file" \
2545      && test "$*" != "X conftest.file $srcdir/configure"; then
2546
2547      # If neither matched, then we have a broken ls.  This can happen
2548      # if, for instance, CONFIG_SHELL is bash and it inherits a
2549      # broken ls alias from the environment.  This has actually
2550      # happened.  Such a system could not be considered "sane".
2551      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2552alias in your environment" "$LINENO" 5
2553   fi
2554
2555   test "$2" = conftest.file
2556   )
2557then
2558   # Ok.
2559   :
2560else
2561   as_fn_error "newly created file is older than distributed files!
2562Check your system clock" "$LINENO" 5
2563fi
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565$as_echo "yes" >&6; }
2566test "$program_prefix" != NONE &&
2567  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568# Use a double $ so make ignores it.
2569test "$program_suffix" != NONE &&
2570  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571# Double any \ or $.
2572# By default was `s,x,x', remove it if useless.
2573ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2575
2576# expand $ac_aux_dir to an absolute path
2577am_aux_dir=`cd $ac_aux_dir && pwd`
2578
2579test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2580# Use eval to expand $SHELL
2581if eval "$MISSING --run true"; then
2582  am_missing_run="$MISSING --run "
2583else
2584  am_missing_run=
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2586$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2587fi
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2590$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2591if test -z "$MKDIR_P"; then
2592  if test "${ac_cv_path_mkdir+set}" = set; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    for ac_prog in mkdir gmkdir; do
2601	 for ac_exec_ext in '' $ac_executable_extensions; do
2602	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2603	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2604	     'mkdir (GNU coreutils) '* | \
2605	     'mkdir (coreutils) '* | \
2606	     'mkdir (fileutils) '4.1*)
2607	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2608	       break 3;;
2609	   esac
2610	 done
2611       done
2612  done
2613IFS=$as_save_IFS
2614
2615fi
2616
2617  if test "${ac_cv_path_mkdir+set}" = set; then
2618    MKDIR_P="$ac_cv_path_mkdir -p"
2619  else
2620    # As a last resort, use the slow shell script.  Don't cache a
2621    # value for MKDIR_P within a source directory, because that will
2622    # break other packages using the cache if that directory is
2623    # removed, or if the value is a relative name.
2624    test -d ./--version && rmdir ./--version
2625    MKDIR_P="$ac_install_sh -d"
2626  fi
2627fi
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2629$as_echo "$MKDIR_P" >&6; }
2630
2631mkdir_p="$MKDIR_P"
2632case $mkdir_p in
2633  [\\/$]* | ?:[\\/]*) ;;
2634  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2635esac
2636
2637for ac_prog in gawk mawk nawk awk
2638do
2639  # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if test "${ac_cv_prog_AWK+set}" = set; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  if test -n "$AWK"; then
2647  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654    for ac_exec_ext in '' $ac_executable_extensions; do
2655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656    ac_cv_prog_AWK="$ac_prog"
2657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658    break 2
2659  fi
2660done
2661  done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666AWK=$ac_cv_prog_AWK
2667if test -n "$AWK"; then
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2669$as_echo "$AWK" >&6; }
2670else
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676  test -n "$AWK" && break
2677done
2678
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2680$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2681set x ${MAKE-make}
2682ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2683if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  cat >conftest.make <<\_ACEOF
2687SHELL = /bin/sh
2688all:
2689	@echo '@@@%%%=$(MAKE)=@@@%%%'
2690_ACEOF
2691# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2692case `${MAKE-make} -f conftest.make 2>/dev/null` in
2693  *@@@%%%=?*=@@@%%%*)
2694    eval ac_cv_prog_make_${ac_make}_set=yes;;
2695  *)
2696    eval ac_cv_prog_make_${ac_make}_set=no;;
2697esac
2698rm -f conftest.make
2699fi
2700if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702$as_echo "yes" >&6; }
2703  SET_MAKE=
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707  SET_MAKE="MAKE=${MAKE-make}"
2708fi
2709
2710rm -rf .tst 2>/dev/null
2711mkdir .tst 2>/dev/null
2712if test -d .tst; then
2713  am__leading_dot=.
2714else
2715  am__leading_dot=_
2716fi
2717rmdir .tst 2>/dev/null
2718
2719if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721  # is not polluted with repeated "-I."
2722  am__isrc=' -I$(srcdir)'
2723  # test to see if srcdir already configured
2724  if test -f $srcdir/config.status; then
2725    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726  fi
2727fi
2728
2729# test whether we have cygpath
2730if test -z "$CYGPATH_W"; then
2731  if (cygpath --version) >/dev/null 2>/dev/null; then
2732    CYGPATH_W='cygpath -w'
2733  else
2734    CYGPATH_W=echo
2735  fi
2736fi
2737
2738
2739# Define the identity of the package.
2740 PACKAGE='libgpg-error'
2741 VERSION='1.10'
2742
2743
2744cat >>confdefs.h <<_ACEOF
2745#define PACKAGE "$PACKAGE"
2746_ACEOF
2747
2748
2749cat >>confdefs.h <<_ACEOF
2750#define VERSION "$VERSION"
2751_ACEOF
2752
2753# Some tools Automake needs.
2754
2755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2770
2771# Installed binaries are usually stripped using `strip' when the user
2772# run `make install-strip'.  However `strip' might not be the right
2773# tool to use in cross-compilation environments, therefore Automake
2774# will honor the `STRIP' environment variable to overrule this program.
2775if test "$cross_compiling" != no; then
2776  if test -n "$ac_tool_prefix"; then
2777  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}strip; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_STRIP+set}" = set; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$STRIP"; then
2785  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804STRIP=$ac_cv_prog_STRIP
2805if test -n "$STRIP"; then
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807$as_echo "$STRIP" >&6; }
2808else
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814fi
2815if test -z "$ac_cv_prog_STRIP"; then
2816  ac_ct_STRIP=$STRIP
2817  # Extract the first word of "strip", so it can be a program name with args.
2818set dummy strip; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2822  $as_echo_n "(cached) " >&6
2823else
2824  if test -n "$ac_ct_STRIP"; then
2825  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830  IFS=$as_save_IFS
2831  test -z "$as_dir" && as_dir=.
2832    for ac_exec_ext in '' $ac_executable_extensions; do
2833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834    ac_cv_prog_ac_ct_STRIP="strip"
2835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836    break 2
2837  fi
2838done
2839  done
2840IFS=$as_save_IFS
2841
2842fi
2843fi
2844ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845if test -n "$ac_ct_STRIP"; then
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847$as_echo "$ac_ct_STRIP" >&6; }
2848else
2849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853  if test "x$ac_ct_STRIP" = x; then
2854    STRIP=":"
2855  else
2856    case $cross_compiling:$ac_tool_warned in
2857yes:)
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860ac_tool_warned=yes ;;
2861esac
2862    STRIP=$ac_ct_STRIP
2863  fi
2864else
2865  STRIP="$ac_cv_prog_STRIP"
2866fi
2867
2868fi
2869INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2870
2871# We need awk for the "check" target.  The system "awk" is bad on
2872# some platforms.
2873# Always define AMTAR for backward compatibility.
2874
2875AMTAR=${AMTAR-"${am_missing_run}tar"}
2876
2877am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2878
2879
2880
2881
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2884$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2885    # Check whether --enable-maintainer-mode was given.
2886if test "${enable_maintainer_mode+set}" = set; then :
2887  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2888else
2889  USE_MAINTAINER_MODE=no
2890fi
2891
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2893$as_echo "$USE_MAINTAINER_MODE" >&6; }
2894   if test $USE_MAINTAINER_MODE = yes; then
2895  MAINTAINER_MODE_TRUE=
2896  MAINTAINER_MODE_FALSE='#'
2897else
2898  MAINTAINER_MODE_TRUE='#'
2899  MAINTAINER_MODE_FALSE=
2900fi
2901
2902  MAINT=$MAINTAINER_MODE_TRUE
2903
2904
2905
2906ac_config_headers="$ac_config_headers config.h"
2907
2908
2909
2910# We need to know about the host architecture to avoid spurious
2911# warnings.
2912# Make sure we can run config.sub.
2913$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2914  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2915
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2917$as_echo_n "checking build system type... " >&6; }
2918if test "${ac_cv_build+set}" = set; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  ac_build_alias=$build_alias
2922test "x$ac_build_alias" = x &&
2923  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2924test "x$ac_build_alias" = x &&
2925  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2926ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2927  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2928
2929fi
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2931$as_echo "$ac_cv_build" >&6; }
2932case $ac_cv_build in
2933*-*-*) ;;
2934*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2935esac
2936build=$ac_cv_build
2937ac_save_IFS=$IFS; IFS='-'
2938set x $ac_cv_build
2939shift
2940build_cpu=$1
2941build_vendor=$2
2942shift; shift
2943# Remember, the first character of IFS is used to create $*,
2944# except with old shells:
2945build_os=$*
2946IFS=$ac_save_IFS
2947case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2948
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2951$as_echo_n "checking host system type... " >&6; }
2952if test "${ac_cv_host+set}" = set; then :
2953  $as_echo_n "(cached) " >&6
2954else
2955  if test "x$host_alias" = x; then
2956  ac_cv_host=$ac_cv_build
2957else
2958  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2959    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2960fi
2961
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2964$as_echo "$ac_cv_host" >&6; }
2965case $ac_cv_host in
2966*-*-*) ;;
2967*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2968esac
2969host=$ac_cv_host
2970ac_save_IFS=$IFS; IFS='-'
2971set x $ac_cv_host
2972shift
2973host_cpu=$1
2974host_vendor=$2
2975shift; shift
2976# Remember, the first character of IFS is used to create $*,
2977# except with old shells:
2978host_os=$*
2979IFS=$ac_save_IFS
2980case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2981
2982
2983
2984
2985
2986
2987	{ $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2988$as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2989	{ $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2990$as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2991	hostname=`hostname`
2992	if test "$hostname"; then
2993	   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
2994$as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2995	fi
2996
2997	date=`date +%Y%m%d-%H%M%S`
2998	if test "$?" != 0; then
2999	   date=`date`
3000	fi
3001	if test "$date"; then
3002	   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3003$as_echo "$as_me: autobuild timestamp... $date" >&6;}
3004	fi
3005
3006
3007# Checks for programs.
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013if test -n "$ac_tool_prefix"; then
3014  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
3018if test "${ac_cv_prog_CC+set}" = set; then :
3019  $as_echo_n "(cached) " >&6
3020else
3021  if test -n "$CC"; then
3022  ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027  IFS=$as_save_IFS
3028  test -z "$as_dir" && as_dir=.
3029    for ac_exec_ext in '' $ac_executable_extensions; do
3030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033    break 2
3034  fi
3035done
3036  done
3037IFS=$as_save_IFS
3038
3039fi
3040fi
3041CC=$ac_cv_prog_CC
3042if test -n "$CC"; then
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044$as_echo "$CC" >&6; }
3045else
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048fi
3049
3050
3051fi
3052if test -z "$ac_cv_prog_CC"; then
3053  ac_ct_CC=$CC
3054  # Extract the first word of "gcc", so it can be a program name with args.
3055set dummy gcc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$ac_ct_CC"; then
3062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071    ac_cv_prog_ac_ct_CC="gcc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082if test -n "$ac_ct_CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084$as_echo "$ac_ct_CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090  if test "x$ac_ct_CC" = x; then
3091    CC=""
3092  else
3093    case $cross_compiling:$ac_tool_warned in
3094yes:)
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097ac_tool_warned=yes ;;
3098esac
3099    CC=$ac_ct_CC
3100  fi
3101else
3102  CC="$ac_cv_prog_CC"
3103fi
3104
3105if test -z "$CC"; then
3106          if test -n "$ac_tool_prefix"; then
3107    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$CC"; then
3115  ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
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
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137$as_echo "$CC" >&6; }
3138else
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144  fi
3145fi
3146if test -z "$CC"; then
3147  # Extract the first word of "cc", so it can be a program name with args.
3148set dummy cc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_CC+set}" = set; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157  ac_prog_rejected=no
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161  IFS=$as_save_IFS
3162  test -z "$as_dir" && as_dir=.
3163    for ac_exec_ext in '' $ac_executable_extensions; do
3164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166       ac_prog_rejected=yes
3167       continue
3168     fi
3169    ac_cv_prog_CC="cc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177if test $ac_prog_rejected = yes; then
3178  # We found a bogon in the path, so make sure we never use it.
3179  set dummy $ac_cv_prog_CC
3180  shift
3181  if test $# != 0; then
3182    # We chose a different compiler from the bogus one.
3183    # However, it has the same basename, so the bogon will be chosen
3184    # first if we set CC to just the basename; use the full file name.
3185    shift
3186    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187  fi
3188fi
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194$as_echo "$CC" >&6; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201fi
3202if test -z "$CC"; then
3203  if test -n "$ac_tool_prefix"; then
3204  for ac_prog in cl.exe
3205  do
3206    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if test "${ac_cv_prog_CC+set}" = set; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if test -n "$CC"; then
3214  ac_cv_prog_CC="$CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_exec_ext in '' $ac_executable_extensions; do
3222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228  done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233CC=$ac_cv_prog_CC
3234if test -n "$CC"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236$as_echo "$CC" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243    test -n "$CC" && break
3244  done
3245fi
3246if test -z "$CC"; then
3247  ac_ct_CC=$CC
3248  for ac_prog in cl.exe
3249do
3250  # Extract the first word of "$ac_prog", so it can be a program name with args.
3251set dummy $ac_prog; ac_word=$2
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253$as_echo_n "checking for $ac_word... " >&6; }
3254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  if test -n "$ac_ct_CC"; then
3258  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265    for ac_exec_ext in '' $ac_executable_extensions; do
3266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267    ac_cv_prog_ac_ct_CC="$ac_prog"
3268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272  done
3273IFS=$as_save_IFS
3274
3275fi
3276fi
3277ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278if test -n "$ac_ct_CC"; then
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280$as_echo "$ac_ct_CC" >&6; }
3281else
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3284fi
3285
3286
3287  test -n "$ac_ct_CC" && break
3288done
3289
3290  if test "x$ac_ct_CC" = x; then
3291    CC=""
3292  else
3293    case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297ac_tool_warned=yes ;;
3298esac
3299    CC=$ac_ct_CC
3300  fi
3301fi
3302
3303fi
3304
3305
3306test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308as_fn_error "no acceptable C compiler found in \$PATH
3309See \`config.log' for more details." "$LINENO" 5; }
3310
3311# Provide some information about the compiler.
3312$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313set X $ac_compile
3314ac_compiler=$2
3315for ac_option in --version -v -V -qversion; do
3316  { { ac_try="$ac_compiler $ac_option >&5"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324  ac_status=$?
3325  if test -s conftest.err; then
3326    sed '10a\
3327... rest of stderr output deleted ...
3328         10q' conftest.err >conftest.er1
3329    cat conftest.er1 >&5
3330    rm -f conftest.er1 conftest.err
3331  fi
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }
3334done
3335
3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338#include <stdio.h>
3339int
3340main ()
3341{
3342FILE *f = fopen ("conftest.out", "w");
3343 return ferror (f) || fclose (f) != 0;
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349ac_clean_files_save=$ac_clean_files
3350ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3351# Try to create an executable without -o first, disregard a.out.
3352# It will help us diagnose broken compilers, and finding out an intuition
3353# of exeext.
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355$as_echo_n "checking for C compiler default output file name... " >&6; }
3356ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3357
3358# The possible output files:
3359ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3360
3361ac_rmfiles=
3362for ac_file in $ac_files
3363do
3364  case $ac_file in
3365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3367  esac
3368done
3369rm -f $ac_rmfiles
3370
3371if { { ac_try="$ac_link_default"
3372case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378  (eval "$ac_link_default") 2>&5
3379  ac_status=$?
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }; then :
3382  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3385# so that the user can short-circuit this test for compilers unknown to
3386# Autoconf.
3387for ac_file in $ac_files ''
3388do
3389  test -f "$ac_file" || continue
3390  case $ac_file in
3391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3392	;;
3393    [ab].out )
3394	# We found the default executable, but exeext='' is most
3395	# certainly right.
3396	break;;
3397    *.* )
3398	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3399	then :; else
3400	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401	fi
3402	# We set ac_cv_exeext here because the later test for it is not
3403	# safe: cross compilers may not add the suffix if given an `-o'
3404	# argument, so we may need to know it at that point already.
3405	# Even if this section looks crufty: it has the advantage of
3406	# actually working.
3407	break;;
3408    * )
3409	break;;
3410  esac
3411done
3412test "$ac_cv_exeext" = no && ac_cv_exeext=
3413
3414else
3415  ac_file=''
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418$as_echo "$ac_file" >&6; }
3419if test -z "$ac_file"; then :
3420  $as_echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425{ as_fn_set_status 77
3426as_fn_error "C compiler cannot create executables
3427See \`config.log' for more details." "$LINENO" 5; }; }
3428fi
3429ac_exeext=$ac_cv_exeext
3430
3431# Check that the compiler produces executables we can run.  If not, either
3432# the compiler is broken, or we cross compile.
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3434$as_echo_n "checking whether the C compiler works... " >&6; }
3435# If not cross compiling, check that we can run a simple program.
3436if test "$cross_compiling" != yes; then
3437  if { ac_try='./$ac_file'
3438  { { case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444  (eval "$ac_try") 2>&5
3445  ac_status=$?
3446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447  test $ac_status = 0; }; }; then
3448    cross_compiling=no
3449  else
3450    if test "$cross_compiling" = maybe; then
3451	cross_compiling=yes
3452    else
3453	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455as_fn_error "cannot run C compiled programs.
3456If you meant to cross compile, use \`--host'.
3457See \`config.log' for more details." "$LINENO" 5; }
3458    fi
3459  fi
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462$as_echo "yes" >&6; }
3463
3464rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3465ac_clean_files=$ac_clean_files_save
3466# Check that the compiler produces executables we can run.  If not, either
3467# the compiler is broken, or we cross compile.
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469$as_echo_n "checking whether we are cross compiling... " >&6; }
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471$as_echo "$cross_compiling" >&6; }
3472
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474$as_echo_n "checking for suffix of executables... " >&6; }
3475if { { ac_try="$ac_link"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482  (eval "$ac_link") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485  test $ac_status = 0; }; then :
3486  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3488# work properly (i.e., refer to `conftest.exe'), while it won't with
3489# `rm'.
3490for ac_file in conftest.exe conftest conftest.*; do
3491  test -f "$ac_file" || continue
3492  case $ac_file in
3493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495	  break;;
3496    * ) break;;
3497  esac
3498done
3499else
3500  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502as_fn_error "cannot compute suffix of executables: cannot compile and link
3503See \`config.log' for more details." "$LINENO" 5; }
3504fi
3505rm -f conftest$ac_cv_exeext
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507$as_echo "$ac_cv_exeext" >&6; }
3508
3509rm -f conftest.$ac_ext
3510EXEEXT=$ac_cv_exeext
3511ac_exeext=$EXEEXT
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3513$as_echo_n "checking for suffix of object files... " >&6; }
3514if test "${ac_cv_objext+set}" = set; then :
3515  $as_echo_n "(cached) " >&6
3516else
3517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519
3520int
3521main ()
3522{
3523
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528rm -f conftest.o conftest.obj
3529if { { ac_try="$ac_compile"
3530case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535$as_echo "$ac_try_echo"; } >&5
3536  (eval "$ac_compile") 2>&5
3537  ac_status=$?
3538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539  test $ac_status = 0; }; then :
3540  for ac_file in conftest.o conftest.obj conftest.*; do
3541  test -f "$ac_file" || continue;
3542  case $ac_file in
3543    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3544    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3545       break;;
3546  esac
3547done
3548else
3549  $as_echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554as_fn_error "cannot compute suffix of object files: cannot compile
3555See \`config.log' for more details." "$LINENO" 5; }
3556fi
3557rm -f conftest.$ac_cv_objext conftest.$ac_ext
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3560$as_echo "$ac_cv_objext" >&6; }
3561OBJEXT=$ac_cv_objext
3562ac_objext=$OBJEXT
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3564$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3565if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3566  $as_echo_n "(cached) " >&6
3567else
3568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570
3571int
3572main ()
3573{
3574#ifndef __GNUC__
3575       choke me
3576#endif
3577
3578  ;
3579  return 0;
3580}
3581_ACEOF
3582if ac_fn_c_try_compile "$LINENO"; then :
3583  ac_compiler_gnu=yes
3584else
3585  ac_compiler_gnu=no
3586fi
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588ac_cv_c_compiler_gnu=$ac_compiler_gnu
3589
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3592$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3593if test $ac_compiler_gnu = yes; then
3594  GCC=yes
3595else
3596  GCC=
3597fi
3598ac_test_CFLAGS=${CFLAGS+set}
3599ac_save_CFLAGS=$CFLAGS
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3601$as_echo_n "checking whether $CC accepts -g... " >&6; }
3602if test "${ac_cv_prog_cc_g+set}" = set; then :
3603  $as_echo_n "(cached) " >&6
3604else
3605  ac_save_c_werror_flag=$ac_c_werror_flag
3606   ac_c_werror_flag=yes
3607   ac_cv_prog_cc_g=no
3608   CFLAGS="-g"
3609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h.  */
3611
3612int
3613main ()
3614{
3615
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_compile "$LINENO"; then :
3621  ac_cv_prog_cc_g=yes
3622else
3623  CFLAGS=""
3624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626
3627int
3628main ()
3629{
3630
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636
3637else
3638  ac_c_werror_flag=$ac_save_c_werror_flag
3639	 CFLAGS="-g"
3640	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651if ac_fn_c_try_compile "$LINENO"; then :
3652  ac_cv_prog_cc_g=yes
3653fi
3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655fi
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659   ac_c_werror_flag=$ac_save_c_werror_flag
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3662$as_echo "$ac_cv_prog_cc_g" >&6; }
3663if test "$ac_test_CFLAGS" = set; then
3664  CFLAGS=$ac_save_CFLAGS
3665elif test $ac_cv_prog_cc_g = yes; then
3666  if test "$GCC" = yes; then
3667    CFLAGS="-g -O2"
3668  else
3669    CFLAGS="-g"
3670  fi
3671else
3672  if test "$GCC" = yes; then
3673    CFLAGS="-O2"
3674  else
3675    CFLAGS=
3676  fi
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3679$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3680if test "${ac_cv_prog_cc_c89+set}" = set; then :
3681  $as_echo_n "(cached) " >&6
3682else
3683  ac_cv_prog_cc_c89=no
3684ac_save_CC=$CC
3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687#include <stdarg.h>
3688#include <stdio.h>
3689#include <sys/types.h>
3690#include <sys/stat.h>
3691/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3692struct buf { int x; };
3693FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694static char *e (p, i)
3695     char **p;
3696     int i;
3697{
3698  return p[i];
3699}
3700static char *f (char * (*g) (char **, int), char **p, ...)
3701{
3702  char *s;
3703  va_list v;
3704  va_start (v,p);
3705  s = g (p, va_arg (v,int));
3706  va_end (v);
3707  return s;
3708}
3709
3710/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3711   function prototypes and stuff, but not '\xHH' hex character constants.
3712   These don't provoke an error unfortunately, instead are silently treated
3713   as 'x'.  The following induces an error, until -std is added to get
3714   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3715   array size at least.  It's necessary to write '\x00'==0 to get something
3716   that's true only with -std.  */
3717int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3718
3719/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3720   inside strings and character constants.  */
3721#define FOO(x) 'x'
3722int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3723
3724int test (int i, double x);
3725struct s1 {int (*f) (int a);};
3726struct s2 {int (*f) (double a);};
3727int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3728int argc;
3729char **argv;
3730int
3731main ()
3732{
3733return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3739	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3740do
3741  CC="$ac_save_CC $ac_arg"
3742  if ac_fn_c_try_compile "$LINENO"; then :
3743  ac_cv_prog_cc_c89=$ac_arg
3744fi
3745rm -f core conftest.err conftest.$ac_objext
3746  test "x$ac_cv_prog_cc_c89" != "xno" && break
3747done
3748rm -f conftest.$ac_ext
3749CC=$ac_save_CC
3750
3751fi
3752# AC_CACHE_VAL
3753case "x$ac_cv_prog_cc_c89" in
3754  x)
3755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3756$as_echo "none needed" >&6; } ;;
3757  xno)
3758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3759$as_echo "unsupported" >&6; } ;;
3760  *)
3761    CC="$CC $ac_cv_prog_cc_c89"
3762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3763$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3764esac
3765if test "x$ac_cv_prog_cc_c89" != xno; then :
3766
3767fi
3768
3769ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774DEPDIR="${am__leading_dot}deps"
3775
3776ac_config_commands="$ac_config_commands depfiles"
3777
3778
3779am_make=${MAKE-make}
3780cat > confinc << 'END'
3781am__doit:
3782	@echo done
3783.PHONY: am__doit
3784END
3785# If we don't find an include directive, just comment out the code.
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3787$as_echo_n "checking for style of include used by $am_make... " >&6; }
3788am__include="#"
3789am__quote=
3790_am_result=none
3791# First try GNU make style include.
3792echo "include confinc" > confmf
3793# We grep out `Entering directory' and `Leaving directory'
3794# messages which can occur if `w' ends up in MAKEFLAGS.
3795# In particular we don't look at `^make:' because GNU make might
3796# be invoked under some other name (usually "gmake"), in which
3797# case it prints its new name instead of `make'.
3798if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3799   am__include=include
3800   am__quote=
3801   _am_result=GNU
3802fi
3803# Now try BSD make style include.
3804if test "$am__include" = "#"; then
3805   echo '.include "confinc"' > confmf
3806   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3807      am__include=.include
3808      am__quote="\""
3809      _am_result=BSD
3810   fi
3811fi
3812
3813
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3815$as_echo "$_am_result" >&6; }
3816rm -f confinc confmf
3817
3818# Check whether --enable-dependency-tracking was given.
3819if test "${enable_dependency_tracking+set}" = set; then :
3820  enableval=$enable_dependency_tracking;
3821fi
3822
3823if test "x$enable_dependency_tracking" != xno; then
3824  am_depcomp="$ac_aux_dir/depcomp"
3825  AMDEPBACKSLASH='\'
3826fi
3827 if test "x$enable_dependency_tracking" != xno; then
3828  AMDEP_TRUE=
3829  AMDEP_FALSE='#'
3830else
3831  AMDEP_TRUE='#'
3832  AMDEP_FALSE=
3833fi
3834
3835
3836
3837depcc="$CC"   am_compiler_list=
3838
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840$as_echo_n "checking dependency style of $depcc... " >&6; }
3841if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845  # We make a subdir and do the tests there.  Otherwise we can end up
3846  # making bogus files that we don't know about and never remove.  For
3847  # instance it was reported that on HP-UX the gcc test will end up
3848  # making a dummy file named `D' -- because `-MD' means `put the output
3849  # in D'.
3850  mkdir conftest.dir
3851  # Copy depcomp to subdir because otherwise we won't find it if we're
3852  # using a relative directory.
3853  cp "$am_depcomp" conftest.dir
3854  cd conftest.dir
3855  # We will build objects and dependencies in a subdirectory because
3856  # it helps to detect inapplicable dependency modes.  For instance
3857  # both Tru64's cc and ICC support -MD to output dependencies as a
3858  # side effect of compilation, but ICC will put the dependencies in
3859  # the current directory while Tru64 will put them in the object
3860  # directory.
3861  mkdir sub
3862
3863  am_cv_CC_dependencies_compiler_type=none
3864  if test "$am_compiler_list" = ""; then
3865     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3866  fi
3867  for depmode in $am_compiler_list; do
3868    # Setup a source with many dependencies, because some compilers
3869    # like to wrap large dependency lists on column 80 (with \), and
3870    # we should not choose a depcomp mode which is confused by this.
3871    #
3872    # We need to recreate these files for each test, as the compiler may
3873    # overwrite some of them when testing with obscure command lines.
3874    # This happens at least with the AIX C compiler.
3875    : > sub/conftest.c
3876    for i in 1 2 3 4 5 6; do
3877      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3879      # Solaris 8's {/usr,}/bin/sh.
3880      touch sub/conftst$i.h
3881    done
3882    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3883
3884    case $depmode in
3885    nosideeffect)
3886      # after this tag, mechanisms are not by side-effect, so they'll
3887      # only be used when explicitly requested
3888      if test "x$enable_dependency_tracking" = xyes; then
3889	continue
3890      else
3891	break
3892      fi
3893      ;;
3894    none) break ;;
3895    esac
3896    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3897    # mode.  It turns out that the SunPro C++ compiler does not properly
3898    # handle `-M -o', and we need to detect this.
3899    if depmode=$depmode \
3900       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3901       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3902       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3903         >/dev/null 2>conftest.err &&
3904       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3905       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3906       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3907       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3908      # icc doesn't choke on unknown options, it will just issue warnings
3909      # or remarks (even with -Werror).  So we grep stderr for any message
3910      # that says an option was ignored or not supported.
3911      # When given -MP, icc 7.0 and 7.1 complain thusly:
3912      #   icc: Command line warning: ignoring option '-M'; no argument required
3913      # The diagnosis changed in icc 8.0:
3914      #   icc: Command line remark: option '-MP' not supported
3915      if (grep 'ignoring option' conftest.err ||
3916          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3917        am_cv_CC_dependencies_compiler_type=$depmode
3918        break
3919      fi
3920    fi
3921  done
3922
3923  cd ..
3924  rm -rf conftest.dir
3925else
3926  am_cv_CC_dependencies_compiler_type=none
3927fi
3928
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3931$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3932CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3933
3934 if
3935  test "x$enable_dependency_tracking" != xno \
3936  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3937  am__fastdepCC_TRUE=
3938  am__fastdepCC_FALSE='#'
3939else
3940  am__fastdepCC_TRUE='#'
3941  am__fastdepCC_FALSE=
3942fi
3943
3944
3945if test "x$CC" != xcc; then
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3947$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3948else
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3950$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3951fi
3952set dummy $CC; ac_cc=`$as_echo "$2" |
3953		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3954if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3955  $as_echo_n "(cached) " >&6
3956else
3957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959
3960int
3961main ()
3962{
3963
3964  ;
3965  return 0;
3966}
3967_ACEOF
3968# Make sure it works both with $CC and with simple cc.
3969# We do the test twice because some compilers refuse to overwrite an
3970# existing .o file with -o, though they will create one.
3971ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3972rm -f conftest2.*
3973if { { case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978$as_echo "$ac_try_echo"; } >&5
3979  (eval "$ac_try") 2>&5
3980  ac_status=$?
3981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982  test $ac_status = 0; } &&
3983   test -f conftest2.$ac_objext && { { case "(($ac_try" in
3984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985  *) ac_try_echo=$ac_try;;
3986esac
3987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988$as_echo "$ac_try_echo"; } >&5
3989  (eval "$ac_try") 2>&5
3990  ac_status=$?
3991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992  test $ac_status = 0; };
3993then
3994  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3995  if test "x$CC" != xcc; then
3996    # Test first that cc exists at all.
3997    if { ac_try='cc -c conftest.$ac_ext >&5'
3998  { { case "(($ac_try" in
3999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000  *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003$as_echo "$ac_try_echo"; } >&5
4004  (eval "$ac_try") 2>&5
4005  ac_status=$?
4006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007  test $ac_status = 0; }; }; then
4008      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4009      rm -f conftest2.*
4010      if { { case "(($ac_try" in
4011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012  *) ac_try_echo=$ac_try;;
4013esac
4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015$as_echo "$ac_try_echo"; } >&5
4016  (eval "$ac_try") 2>&5
4017  ac_status=$?
4018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019  test $ac_status = 0; } &&
4020	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025$as_echo "$ac_try_echo"; } >&5
4026  (eval "$ac_try") 2>&5
4027  ac_status=$?
4028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; };
4030      then
4031	# cc works too.
4032	:
4033      else
4034	# cc exists but doesn't like -o.
4035	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4036      fi
4037    fi
4038  fi
4039else
4040  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4041fi
4042rm -f core conftest*
4043
4044fi
4045if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047$as_echo "yes" >&6; }
4048else
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050$as_echo "no" >&6; }
4051
4052$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4053
4054fi
4055
4056# FIXME: we rely on the cache variable name because
4057# there is no other way.
4058set dummy $CC
4059am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4060eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4061if test "$am_t" != yes; then
4062   # Losing compiler, so override with the script.
4063   # FIXME: It is wrong to rewrite CC.
4064   # But if we don't then we get into trouble of one sort or another.
4065   # A longer-term fix would be to have automake use am__CC in this case,
4066   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4067   CC="$am_aux_dir/compile $CC"
4068fi
4069
4070
4071ac_ext=c
4072ac_cpp='$CPP $CPPFLAGS'
4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4077$as_echo_n "checking how to run the C preprocessor... " >&6; }
4078# On Suns, sometimes $CPP names a directory.
4079if test -n "$CPP" && test -d "$CPP"; then
4080  CPP=
4081fi
4082if test -z "$CPP"; then
4083  if test "${ac_cv_prog_CPP+set}" = set; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086      # Double quotes because CPP needs to be expanded
4087    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4088    do
4089      ac_preproc_ok=false
4090for ac_c_preproc_warn_flag in '' yes
4091do
4092  # Use a header file that comes with gcc, so configuring glibc
4093  # with a fresh cross-compiler works.
4094  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4095  # <limits.h> exists even on freestanding compilers.
4096  # On the NeXT, cc -E runs the code through the compiler's parser,
4097  # not just through cpp. "Syntax error" is here to catch this case.
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100#ifdef __STDC__
4101# include <limits.h>
4102#else
4103# include <assert.h>
4104#endif
4105		     Syntax error
4106_ACEOF
4107if ac_fn_c_try_cpp "$LINENO"; then :
4108
4109else
4110  # Broken: fails on valid input.
4111continue
4112fi
4113rm -f conftest.err conftest.$ac_ext
4114
4115  # OK, works on sane cases.  Now check whether nonexistent headers
4116  # can be detected and how.
4117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119#include <ac_nonexistent.h>
4120_ACEOF
4121if ac_fn_c_try_cpp "$LINENO"; then :
4122  # Broken: success on invalid input.
4123continue
4124else
4125  # Passes both tests.
4126ac_preproc_ok=:
4127break
4128fi
4129rm -f conftest.err conftest.$ac_ext
4130
4131done
4132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4133rm -f conftest.err conftest.$ac_ext
4134if $ac_preproc_ok; then :
4135  break
4136fi
4137
4138    done
4139    ac_cv_prog_CPP=$CPP
4140
4141fi
4142  CPP=$ac_cv_prog_CPP
4143else
4144  ac_cv_prog_CPP=$CPP
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4147$as_echo "$CPP" >&6; }
4148ac_preproc_ok=false
4149for ac_c_preproc_warn_flag in '' yes
4150do
4151  # Use a header file that comes with gcc, so configuring glibc
4152  # with a fresh cross-compiler works.
4153  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154  # <limits.h> exists even on freestanding compilers.
4155  # On the NeXT, cc -E runs the code through the compiler's parser,
4156  # not just through cpp. "Syntax error" is here to catch this case.
4157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159#ifdef __STDC__
4160# include <limits.h>
4161#else
4162# include <assert.h>
4163#endif
4164		     Syntax error
4165_ACEOF
4166if ac_fn_c_try_cpp "$LINENO"; then :
4167
4168else
4169  # Broken: fails on valid input.
4170continue
4171fi
4172rm -f conftest.err conftest.$ac_ext
4173
4174  # OK, works on sane cases.  Now check whether nonexistent headers
4175  # can be detected and how.
4176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178#include <ac_nonexistent.h>
4179_ACEOF
4180if ac_fn_c_try_cpp "$LINENO"; then :
4181  # Broken: success on invalid input.
4182continue
4183else
4184  # Passes both tests.
4185ac_preproc_ok=:
4186break
4187fi
4188rm -f conftest.err conftest.$ac_ext
4189
4190done
4191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192rm -f conftest.err conftest.$ac_ext
4193if $ac_preproc_ok; then :
4194
4195else
4196  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error "C preprocessor \"$CPP\" fails sanity check
4199See \`config.log' for more details." "$LINENO" 5; }
4200fi
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208for ac_prog in gawk mawk nawk awk
4209do
4210  # Extract the first word of "$ac_prog", so it can be a program name with args.
4211set dummy $ac_prog; ac_word=$2
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
4214if test "${ac_cv_prog_AWK+set}" = set; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -n "$AWK"; then
4218  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_exec_ext in '' $ac_executable_extensions; do
4226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227    ac_cv_prog_AWK="$ac_prog"
4228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232  done
4233IFS=$as_save_IFS
4234
4235fi
4236fi
4237AWK=$ac_cv_prog_AWK
4238if test -n "$AWK"; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4240$as_echo "$AWK" >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246
4247  test -n "$AWK" && break
4248done
4249
4250if test -n "$ac_tool_prefix"; then
4251  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4252set dummy ${ac_tool_prefix}ar; ac_word=$2
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254$as_echo_n "checking for $ac_word... " >&6; }
4255if test "${ac_cv_prog_AR+set}" = set; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  if test -n "$AR"; then
4259  ac_cv_prog_AR="$AR" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264  IFS=$as_save_IFS
4265  test -z "$as_dir" && as_dir=.
4266    for ac_exec_ext in '' $ac_executable_extensions; do
4267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268    ac_cv_prog_AR="${ac_tool_prefix}ar"
4269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270    break 2
4271  fi
4272done
4273  done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278AR=$ac_cv_prog_AR
4279if test -n "$AR"; then
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4281$as_echo "$AR" >&6; }
4282else
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285fi
4286
4287
4288fi
4289if test -z "$ac_cv_prog_AR"; then
4290  ac_ct_AR=$AR
4291  # Extract the first word of "ar", so it can be a program name with args.
4292set dummy ar; ac_word=$2
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294$as_echo_n "checking for $ac_word... " >&6; }
4295if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  if test -n "$ac_ct_AR"; then
4299  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_exec_ext in '' $ac_executable_extensions; do
4307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308    ac_cv_prog_ac_ct_AR="ar"
4309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310    break 2
4311  fi
4312done
4313  done
4314IFS=$as_save_IFS
4315
4316fi
4317fi
4318ac_ct_AR=$ac_cv_prog_ac_ct_AR
4319if test -n "$ac_ct_AR"; then
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4321$as_echo "$ac_ct_AR" >&6; }
4322else
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325fi
4326
4327  if test "x$ac_ct_AR" = x; then
4328    AR=":"
4329  else
4330    case $cross_compiling:$ac_tool_warned in
4331yes:)
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4334ac_tool_warned=yes ;;
4335esac
4336    AR=$ac_ct_AR
4337  fi
4338else
4339  AR="$ac_cv_prog_AR"
4340fi
4341
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4345$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4346if test "${ac_cv_path_GREP+set}" = set; then :
4347  $as_echo_n "(cached) " >&6
4348else
4349  if test -z "$GREP"; then
4350  ac_path_GREP_found=false
4351  # Loop through the user's path and test for each of PROGNAME-LIST
4352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354do
4355  IFS=$as_save_IFS
4356  test -z "$as_dir" && as_dir=.
4357    for ac_prog in grep ggrep; do
4358    for ac_exec_ext in '' $ac_executable_extensions; do
4359      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4360      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4361# Check for GNU ac_path_GREP and select it if it is found.
4362  # Check for GNU $ac_path_GREP
4363case `"$ac_path_GREP" --version 2>&1` in
4364*GNU*)
4365  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4366*)
4367  ac_count=0
4368  $as_echo_n 0123456789 >"conftest.in"
4369  while :
4370  do
4371    cat "conftest.in" "conftest.in" >"conftest.tmp"
4372    mv "conftest.tmp" "conftest.in"
4373    cp "conftest.in" "conftest.nl"
4374    $as_echo 'GREP' >> "conftest.nl"
4375    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377    as_fn_arith $ac_count + 1 && ac_count=$as_val
4378    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4379      # Best one so far, save it but keep looking for a better one
4380      ac_cv_path_GREP="$ac_path_GREP"
4381      ac_path_GREP_max=$ac_count
4382    fi
4383    # 10*(2^10) chars as input seems more than enough
4384    test $ac_count -gt 10 && break
4385  done
4386  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387esac
4388
4389      $ac_path_GREP_found && break 3
4390    done
4391  done
4392  done
4393IFS=$as_save_IFS
4394  if test -z "$ac_cv_path_GREP"; then
4395    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396  fi
4397else
4398  ac_cv_path_GREP=$GREP
4399fi
4400
4401fi
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4403$as_echo "$ac_cv_path_GREP" >&6; }
4404 GREP="$ac_cv_path_GREP"
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4408$as_echo_n "checking for egrep... " >&6; }
4409if test "${ac_cv_path_EGREP+set}" = set; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4413   then ac_cv_path_EGREP="$GREP -E"
4414   else
4415     if test -z "$EGREP"; then
4416  ac_path_EGREP_found=false
4417  # Loop through the user's path and test for each of PROGNAME-LIST
4418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4420do
4421  IFS=$as_save_IFS
4422  test -z "$as_dir" && as_dir=.
4423    for ac_prog in egrep; do
4424    for ac_exec_ext in '' $ac_executable_extensions; do
4425      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4426      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4427# Check for GNU ac_path_EGREP and select it if it is found.
4428  # Check for GNU $ac_path_EGREP
4429case `"$ac_path_EGREP" --version 2>&1` in
4430*GNU*)
4431  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4432*)
4433  ac_count=0
4434  $as_echo_n 0123456789 >"conftest.in"
4435  while :
4436  do
4437    cat "conftest.in" "conftest.in" >"conftest.tmp"
4438    mv "conftest.tmp" "conftest.in"
4439    cp "conftest.in" "conftest.nl"
4440    $as_echo 'EGREP' >> "conftest.nl"
4441    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443    as_fn_arith $ac_count + 1 && ac_count=$as_val
4444    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4445      # Best one so far, save it but keep looking for a better one
4446      ac_cv_path_EGREP="$ac_path_EGREP"
4447      ac_path_EGREP_max=$ac_count
4448    fi
4449    # 10*(2^10) chars as input seems more than enough
4450    test $ac_count -gt 10 && break
4451  done
4452  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453esac
4454
4455      $ac_path_EGREP_found && break 3
4456    done
4457  done
4458  done
4459IFS=$as_save_IFS
4460  if test -z "$ac_cv_path_EGREP"; then
4461    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4462  fi
4463else
4464  ac_cv_path_EGREP=$EGREP
4465fi
4466
4467   fi
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4470$as_echo "$ac_cv_path_EGREP" >&6; }
4471 EGREP="$ac_cv_path_EGREP"
4472
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4475$as_echo_n "checking for ANSI C header files... " >&6; }
4476if test "${ac_cv_header_stdc+set}" = set; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h.  */
4481#include <stdlib.h>
4482#include <stdarg.h>
4483#include <string.h>
4484#include <float.h>
4485
4486int
4487main ()
4488{
4489
4490  ;
4491  return 0;
4492}
4493_ACEOF
4494if ac_fn_c_try_compile "$LINENO"; then :
4495  ac_cv_header_stdc=yes
4496else
4497  ac_cv_header_stdc=no
4498fi
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500
4501if test $ac_cv_header_stdc = yes; then
4502  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505#include <string.h>
4506
4507_ACEOF
4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509  $EGREP "memchr" >/dev/null 2>&1; then :
4510
4511else
4512  ac_cv_header_stdc=no
4513fi
4514rm -f conftest*
4515
4516fi
4517
4518if test $ac_cv_header_stdc = yes; then
4519  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h.  */
4522#include <stdlib.h>
4523
4524_ACEOF
4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526  $EGREP "free" >/dev/null 2>&1; then :
4527
4528else
4529  ac_cv_header_stdc=no
4530fi
4531rm -f conftest*
4532
4533fi
4534
4535if test $ac_cv_header_stdc = yes; then
4536  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537  if test "$cross_compiling" = yes; then :
4538  :
4539else
4540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541/* end confdefs.h.  */
4542#include <ctype.h>
4543#include <stdlib.h>
4544#if ((' ' & 0x0FF) == 0x020)
4545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4547#else
4548# define ISLOWER(c) \
4549		   (('a' <= (c) && (c) <= 'i') \
4550		     || ('j' <= (c) && (c) <= 'r') \
4551		     || ('s' <= (c) && (c) <= 'z'))
4552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4553#endif
4554
4555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4556int
4557main ()
4558{
4559  int i;
4560  for (i = 0; i < 256; i++)
4561    if (XOR (islower (i), ISLOWER (i))
4562	|| toupper (i) != TOUPPER (i))
4563      return 2;
4564  return 0;
4565}
4566_ACEOF
4567if ac_fn_c_try_run "$LINENO"; then :
4568
4569else
4570  ac_cv_header_stdc=no
4571fi
4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4573  conftest.$ac_objext conftest.beam conftest.$ac_ext
4574fi
4575
4576fi
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4579$as_echo "$ac_cv_header_stdc" >&6; }
4580if test $ac_cv_header_stdc = yes; then
4581
4582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4583
4584fi
4585
4586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4588		  inttypes.h stdint.h unistd.h
4589do :
4590  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4592"
4593eval as_val=\$$as_ac_Header
4594   if test "x$as_val" = x""yes; then :
4595  cat >>confdefs.h <<_ACEOF
4596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597_ACEOF
4598
4599fi
4600
4601done
4602
4603
4604
4605  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4606if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4607  MINIX=yes
4608else
4609  MINIX=
4610fi
4611
4612
4613  if test "$MINIX" = yes; then
4614
4615$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4616
4617
4618$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4619
4620
4621$as_echo "#define _MINIX 1" >>confdefs.h
4622
4623  fi
4624
4625
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4627$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4628if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633
4634#	  define __EXTENSIONS__ 1
4635	  $ac_includes_default
4636int
4637main ()
4638{
4639
4640  ;
4641  return 0;
4642}
4643_ACEOF
4644if ac_fn_c_try_compile "$LINENO"; then :
4645  ac_cv_safe_to_define___extensions__=yes
4646else
4647  ac_cv_safe_to_define___extensions__=no
4648fi
4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650fi
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4652$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4653  test $ac_cv_safe_to_define___extensions__ = yes &&
4654    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4655
4656  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4657
4658  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4659
4660  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4661
4662  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4663
4664
4665
4666
4667
4668case `pwd` in
4669  *\ * | *\	*)
4670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4671$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4672esac
4673
4674
4675
4676macro_version='2.2.6'
4677macro_revision='1.3012'
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691ltmain="$ac_aux_dir/ltmain.sh"
4692
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4694$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4695if test "${ac_cv_path_SED+set}" = set; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4699     for ac_i in 1 2 3 4 5 6 7; do
4700       ac_script="$ac_script$as_nl$ac_script"
4701     done
4702     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4703     { ac_script=; unset ac_script;}
4704     if test -z "$SED"; then
4705  ac_path_SED_found=false
4706  # Loop through the user's path and test for each of PROGNAME-LIST
4707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710  IFS=$as_save_IFS
4711  test -z "$as_dir" && as_dir=.
4712    for ac_prog in sed gsed; do
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4715      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4716# Check for GNU ac_path_SED and select it if it is found.
4717  # Check for GNU $ac_path_SED
4718case `"$ac_path_SED" --version 2>&1` in
4719*GNU*)
4720  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4721*)
4722  ac_count=0
4723  $as_echo_n 0123456789 >"conftest.in"
4724  while :
4725  do
4726    cat "conftest.in" "conftest.in" >"conftest.tmp"
4727    mv "conftest.tmp" "conftest.in"
4728    cp "conftest.in" "conftest.nl"
4729    $as_echo '' >> "conftest.nl"
4730    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732    as_fn_arith $ac_count + 1 && ac_count=$as_val
4733    if test $ac_count -gt ${ac_path_SED_max-0}; then
4734      # Best one so far, save it but keep looking for a better one
4735      ac_cv_path_SED="$ac_path_SED"
4736      ac_path_SED_max=$ac_count
4737    fi
4738    # 10*(2^10) chars as input seems more than enough
4739    test $ac_count -gt 10 && break
4740  done
4741  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742esac
4743
4744      $ac_path_SED_found && break 3
4745    done
4746  done
4747  done
4748IFS=$as_save_IFS
4749  if test -z "$ac_cv_path_SED"; then
4750    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4751  fi
4752else
4753  ac_cv_path_SED=$SED
4754fi
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4758$as_echo "$ac_cv_path_SED" >&6; }
4759 SED="$ac_cv_path_SED"
4760  rm -f conftest.sed
4761
4762test -z "$SED" && SED=sed
4763Xsed="$SED -e 1s/^X//"
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4776$as_echo_n "checking for fgrep... " >&6; }
4777if test "${ac_cv_path_FGREP+set}" = set; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4781   then ac_cv_path_FGREP="$GREP -F"
4782   else
4783     if test -z "$FGREP"; then
4784  ac_path_FGREP_found=false
4785  # Loop through the user's path and test for each of PROGNAME-LIST
4786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788do
4789  IFS=$as_save_IFS
4790  test -z "$as_dir" && as_dir=.
4791    for ac_prog in fgrep; do
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4794      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4795# Check for GNU ac_path_FGREP and select it if it is found.
4796  # Check for GNU $ac_path_FGREP
4797case `"$ac_path_FGREP" --version 2>&1` in
4798*GNU*)
4799  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4800*)
4801  ac_count=0
4802  $as_echo_n 0123456789 >"conftest.in"
4803  while :
4804  do
4805    cat "conftest.in" "conftest.in" >"conftest.tmp"
4806    mv "conftest.tmp" "conftest.in"
4807    cp "conftest.in" "conftest.nl"
4808    $as_echo 'FGREP' >> "conftest.nl"
4809    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811    as_fn_arith $ac_count + 1 && ac_count=$as_val
4812    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4813      # Best one so far, save it but keep looking for a better one
4814      ac_cv_path_FGREP="$ac_path_FGREP"
4815      ac_path_FGREP_max=$ac_count
4816    fi
4817    # 10*(2^10) chars as input seems more than enough
4818    test $ac_count -gt 10 && break
4819  done
4820  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821esac
4822
4823      $ac_path_FGREP_found && break 3
4824    done
4825  done
4826  done
4827IFS=$as_save_IFS
4828  if test -z "$ac_cv_path_FGREP"; then
4829    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4830  fi
4831else
4832  ac_cv_path_FGREP=$FGREP
4833fi
4834
4835   fi
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4838$as_echo "$ac_cv_path_FGREP" >&6; }
4839 FGREP="$ac_cv_path_FGREP"
4840
4841
4842test -z "$GREP" && GREP=grep
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862# Check whether --with-gnu-ld was given.
4863if test "${with_gnu_ld+set}" = set; then :
4864  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4865else
4866  with_gnu_ld=no
4867fi
4868
4869ac_prog=ld
4870if test "$GCC" = yes; then
4871  # Check if gcc -print-prog-name=ld gives a path.
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4873$as_echo_n "checking for ld used by $CC... " >&6; }
4874  case $host in
4875  *-*-mingw*)
4876    # gcc leaves a trailing carriage return which upsets mingw
4877    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4878  *)
4879    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4880  esac
4881  case $ac_prog in
4882    # Accept absolute paths.
4883    [\\/]* | ?:[\\/]*)
4884      re_direlt='/[^/][^/]*/\.\./'
4885      # Canonicalize the pathname of ld
4886      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4887      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4888	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4889      done
4890      test -z "$LD" && LD="$ac_prog"
4891      ;;
4892  "")
4893    # If it fails, then pretend we aren't using GCC.
4894    ac_prog=ld
4895    ;;
4896  *)
4897    # If it is relative, then search for the first ld in PATH.
4898    with_gnu_ld=unknown
4899    ;;
4900  esac
4901elif test "$with_gnu_ld" = yes; then
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4903$as_echo_n "checking for GNU ld... " >&6; }
4904else
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4906$as_echo_n "checking for non-GNU ld... " >&6; }
4907fi
4908if test "${lt_cv_path_LD+set}" = set; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  if test -z "$LD"; then
4912  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4913  for ac_dir in $PATH; do
4914    IFS="$lt_save_ifs"
4915    test -z "$ac_dir" && ac_dir=.
4916    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4917      lt_cv_path_LD="$ac_dir/$ac_prog"
4918      # Check to see if the program is GNU ld.  I'd rather use --version,
4919      # but apparently some variants of GNU ld only accept -v.
4920      # Break only if it was the GNU/non-GNU ld that we prefer.
4921      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4922      *GNU* | *'with BFD'*)
4923	test "$with_gnu_ld" != no && break
4924	;;
4925      *)
4926	test "$with_gnu_ld" != yes && break
4927	;;
4928      esac
4929    fi
4930  done
4931  IFS="$lt_save_ifs"
4932else
4933  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4934fi
4935fi
4936
4937LD="$lt_cv_path_LD"
4938if test -n "$LD"; then
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4940$as_echo "$LD" >&6; }
4941else
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
4944fi
4945test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4947$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4948if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4952case `$LD -v 2>&1 </dev/null` in
4953*GNU* | *'with BFD'*)
4954  lt_cv_prog_gnu_ld=yes
4955  ;;
4956*)
4957  lt_cv_prog_gnu_ld=no
4958  ;;
4959esac
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4962$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4963with_gnu_ld=$lt_cv_prog_gnu_ld
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4974$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4975if test "${lt_cv_path_NM+set}" = set; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$NM"; then
4979  # Let the user override the test.
4980  lt_cv_path_NM="$NM"
4981else
4982  lt_nm_to_check="${ac_tool_prefix}nm"
4983  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4984    lt_nm_to_check="$lt_nm_to_check nm"
4985  fi
4986  for lt_tmp_nm in $lt_nm_to_check; do
4987    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4988    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4989      IFS="$lt_save_ifs"
4990      test -z "$ac_dir" && ac_dir=.
4991      tmp_nm="$ac_dir/$lt_tmp_nm"
4992      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4993	# Check to see if the nm accepts a BSD-compat flag.
4994	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4995	#   nm: unknown option "B" ignored
4996	# Tru64's nm complains that /dev/null is an invalid object file
4997	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4998	*/dev/null* | *'Invalid file or object type'*)
4999	  lt_cv_path_NM="$tmp_nm -B"
5000	  break
5001	  ;;
5002	*)
5003	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5004	  */dev/null*)
5005	    lt_cv_path_NM="$tmp_nm -p"
5006	    break
5007	    ;;
5008	  *)
5009	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5010	    continue # so that we can try to find one that supports BSD flags
5011	    ;;
5012	  esac
5013	  ;;
5014	esac
5015      fi
5016    done
5017    IFS="$lt_save_ifs"
5018  done
5019  : ${lt_cv_path_NM=no}
5020fi
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5023$as_echo "$lt_cv_path_NM" >&6; }
5024if test "$lt_cv_path_NM" != "no"; then
5025  NM="$lt_cv_path_NM"
5026else
5027  # Didn't find any BSD compatible name lister, look for dumpbin.
5028  if test -n "$ac_tool_prefix"; then
5029  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5030  do
5031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038  if test -n "$DUMPBIN"; then
5039  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5040else
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044  IFS=$as_save_IFS
5045  test -z "$as_dir" && as_dir=.
5046    for ac_exec_ext in '' $ac_executable_extensions; do
5047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050    break 2
5051  fi
5052done
5053  done
5054IFS=$as_save_IFS
5055
5056fi
5057fi
5058DUMPBIN=$ac_cv_prog_DUMPBIN
5059if test -n "$DUMPBIN"; then
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5061$as_echo "$DUMPBIN" >&6; }
5062else
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064$as_echo "no" >&6; }
5065fi
5066
5067
5068    test -n "$DUMPBIN" && break
5069  done
5070fi
5071if test -z "$DUMPBIN"; then
5072  ac_ct_DUMPBIN=$DUMPBIN
5073  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5074do
5075  # Extract the first word of "$ac_prog", so it can be a program name with args.
5076set dummy $ac_prog; ac_word=$2
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078$as_echo_n "checking for $ac_word... " >&6; }
5079if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  if test -n "$ac_ct_DUMPBIN"; then
5083  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088  IFS=$as_save_IFS
5089  test -z "$as_dir" && as_dir=.
5090    for ac_exec_ext in '' $ac_executable_extensions; do
5091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094    break 2
5095  fi
5096done
5097  done
5098IFS=$as_save_IFS
5099
5100fi
5101fi
5102ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5103if test -n "$ac_ct_DUMPBIN"; then
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5105$as_echo "$ac_ct_DUMPBIN" >&6; }
5106else
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110
5111
5112  test -n "$ac_ct_DUMPBIN" && break
5113done
5114
5115  if test "x$ac_ct_DUMPBIN" = x; then
5116    DUMPBIN=":"
5117  else
5118    case $cross_compiling:$ac_tool_warned in
5119yes:)
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122ac_tool_warned=yes ;;
5123esac
5124    DUMPBIN=$ac_ct_DUMPBIN
5125  fi
5126fi
5127
5128
5129  if test "$DUMPBIN" != ":"; then
5130    NM="$DUMPBIN"
5131  fi
5132fi
5133test -z "$NM" && NM=nm
5134
5135
5136
5137
5138
5139
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5141$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5142if test "${lt_cv_nm_interface+set}" = set; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  lt_cv_nm_interface="BSD nm"
5146  echo "int some_variable = 0;" > conftest.$ac_ext
5147  (eval echo "\"\$as_me:5147: $ac_compile\"" >&5)
5148  (eval "$ac_compile" 2>conftest.err)
5149  cat conftest.err >&5
5150  (eval echo "\"\$as_me:5150: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5151  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5152  cat conftest.err >&5
5153  (eval echo "\"\$as_me:5153: output\"" >&5)
5154  cat conftest.out >&5
5155  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5156    lt_cv_nm_interface="MS dumpbin"
5157  fi
5158  rm -f conftest*
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5161$as_echo "$lt_cv_nm_interface" >&6; }
5162
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5164$as_echo_n "checking whether ln -s works... " >&6; }
5165LN_S=$as_ln_s
5166if test "$LN_S" = "ln -s"; then
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168$as_echo "yes" >&6; }
5169else
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5171$as_echo "no, using $LN_S" >&6; }
5172fi
5173
5174# find the maximum length of command line arguments
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5176$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5177if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180    i=0
5181  teststring="ABCD"
5182
5183  case $build_os in
5184  msdosdjgpp*)
5185    # On DJGPP, this test can blow up pretty badly due to problems in libc
5186    # (any single argument exceeding 2000 bytes causes a buffer overrun
5187    # during glob expansion).  Even if it were fixed, the result of this
5188    # check would be larger than it should be.
5189    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5190    ;;
5191
5192  gnu*)
5193    # Under GNU Hurd, this test is not required because there is
5194    # no limit to the length of command line arguments.
5195    # Libtool will interpret -1 as no limit whatsoever
5196    lt_cv_sys_max_cmd_len=-1;
5197    ;;
5198
5199  cygwin* | mingw* | cegcc*)
5200    # On Win9x/ME, this test blows up -- it succeeds, but takes
5201    # about 5 minutes as the teststring grows exponentially.
5202    # Worse, since 9x/ME are not pre-emptively multitasking,
5203    # you end up with a "frozen" computer, even though with patience
5204    # the test eventually succeeds (with a max line length of 256k).
5205    # Instead, let's just punt: use the minimum linelength reported by
5206    # all of the supported platforms: 8192 (on NT/2K/XP).
5207    lt_cv_sys_max_cmd_len=8192;
5208    ;;
5209
5210  amigaos*)
5211    # On AmigaOS with pdksh, this test takes hours, literally.
5212    # So we just punt and use a minimum line length of 8192.
5213    lt_cv_sys_max_cmd_len=8192;
5214    ;;
5215
5216  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217    # This has been around since 386BSD, at least.  Likely further.
5218    if test -x /sbin/sysctl; then
5219      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220    elif test -x /usr/sbin/sysctl; then
5221      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5222    else
5223      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5224    fi
5225    # And add a safety zone
5226    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5228    ;;
5229
5230  interix*)
5231    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232    lt_cv_sys_max_cmd_len=196608
5233    ;;
5234
5235  osf*)
5236    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5237    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5238    # nice to cause kernel panics so lets avoid the loop below.
5239    # First set a reasonable default.
5240    lt_cv_sys_max_cmd_len=16384
5241    #
5242    if test -x /sbin/sysconfig; then
5243      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5244        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5245      esac
5246    fi
5247    ;;
5248  sco3.2v5*)
5249    lt_cv_sys_max_cmd_len=102400
5250    ;;
5251  sysv5* | sco5v6* | sysv4.2uw2*)
5252    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5253    if test -n "$kargmax"; then
5254      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5255    else
5256      lt_cv_sys_max_cmd_len=32768
5257    fi
5258    ;;
5259  *)
5260    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5261    if test -n "$lt_cv_sys_max_cmd_len"; then
5262      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5264    else
5265      # Make teststring a little bigger before we do anything with it.
5266      # a 1K string should be a reasonable start.
5267      for i in 1 2 3 4 5 6 7 8 ; do
5268        teststring=$teststring$teststring
5269      done
5270      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5271      # If test is not a shell built-in, we'll probably end up computing a
5272      # maximum length that is only half of the actual maximum length, but
5273      # we can't tell.
5274      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5275	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5276	      test $i != 17 # 1/2 MB should be enough
5277      do
5278        i=`expr $i + 1`
5279        teststring=$teststring$teststring
5280      done
5281      # Only check the string length outside the loop.
5282      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5283      teststring=
5284      # Add a significant safety factor because C++ compilers can tack on
5285      # massive amounts of additional arguments before passing them to the
5286      # linker.  It appears as though 1/2 is a usable value.
5287      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5288    fi
5289    ;;
5290  esac
5291
5292fi
5293
5294if test -n $lt_cv_sys_max_cmd_len ; then
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5296$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5297else
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5299$as_echo "none" >&6; }
5300fi
5301max_cmd_len=$lt_cv_sys_max_cmd_len
5302
5303
5304
5305
5306
5307
5308: ${CP="cp -f"}
5309: ${MV="mv -f"}
5310: ${RM="rm -f"}
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5313$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5314# Try some XSI features
5315xsi_shell=no
5316( _lt_dummy="a/b/c"
5317  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5318      = c,a/b,, \
5319    && eval 'test $(( 1 + 1 )) -eq 2 \
5320    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5321  && xsi_shell=yes
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5323$as_echo "$xsi_shell" >&6; }
5324
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5327$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5328lt_shell_append=no
5329( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5330    >/dev/null 2>&1 \
5331  && lt_shell_append=yes
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5333$as_echo "$lt_shell_append" >&6; }
5334
5335
5336if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5337  lt_unset=unset
5338else
5339  lt_unset=false
5340fi
5341
5342
5343
5344
5345
5346# test EBCDIC or ASCII
5347case `echo X|tr X '\101'` in
5348 A) # ASCII based system
5349    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5350  lt_SP2NL='tr \040 \012'
5351  lt_NL2SP='tr \015\012 \040\040'
5352  ;;
5353 *) # EBCDIC based system
5354  lt_SP2NL='tr \100 \n'
5355  lt_NL2SP='tr \r\n \100\100'
5356  ;;
5357esac
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5368$as_echo_n "checking for $LD option to reload object files... " >&6; }
5369if test "${lt_cv_ld_reload_flag+set}" = set; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  lt_cv_ld_reload_flag='-r'
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5375$as_echo "$lt_cv_ld_reload_flag" >&6; }
5376reload_flag=$lt_cv_ld_reload_flag
5377case $reload_flag in
5378"" | " "*) ;;
5379*) reload_flag=" $reload_flag" ;;
5380esac
5381reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382case $host_os in
5383  darwin*)
5384    if test "$GCC" = yes; then
5385      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5386    else
5387      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388    fi
5389    ;;
5390esac
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400if test -n "$ac_tool_prefix"; then
5401  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5402set dummy ${ac_tool_prefix}objdump; ac_word=$2
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  if test -n "$OBJDUMP"; then
5409  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414  IFS=$as_save_IFS
5415  test -z "$as_dir" && as_dir=.
5416    for ac_exec_ext in '' $ac_executable_extensions; do
5417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420    break 2
5421  fi
5422done
5423  done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428OBJDUMP=$ac_cv_prog_OBJDUMP
5429if test -n "$OBJDUMP"; then
5430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5431$as_echo "$OBJDUMP" >&6; }
5432else
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437
5438fi
5439if test -z "$ac_cv_prog_OBJDUMP"; then
5440  ac_ct_OBJDUMP=$OBJDUMP
5441  # Extract the first word of "objdump", so it can be a program name with args.
5442set dummy objdump; ac_word=$2
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  if test -n "$ac_ct_OBJDUMP"; then
5449  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454  IFS=$as_save_IFS
5455  test -z "$as_dir" && as_dir=.
5456    for ac_exec_ext in '' $ac_executable_extensions; do
5457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460    break 2
5461  fi
5462done
5463  done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5469if test -n "$ac_ct_OBJDUMP"; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5471$as_echo "$ac_ct_OBJDUMP" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477  if test "x$ac_ct_OBJDUMP" = x; then
5478    OBJDUMP="false"
5479  else
5480    case $cross_compiling:$ac_tool_warned in
5481yes:)
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484ac_tool_warned=yes ;;
5485esac
5486    OBJDUMP=$ac_ct_OBJDUMP
5487  fi
5488else
5489  OBJDUMP="$ac_cv_prog_OBJDUMP"
5490fi
5491
5492test -z "$OBJDUMP" && OBJDUMP=objdump
5493
5494
5495
5496
5497
5498
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5500$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5501if test "${lt_cv_deplibs_check_method+set}" = set; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  lt_cv_file_magic_cmd='$MAGIC_CMD'
5505lt_cv_file_magic_test_file=
5506lt_cv_deplibs_check_method='unknown'
5507# Need to set the preceding variable on all platforms that support
5508# interlibrary dependencies.
5509# 'none' -- dependencies not supported.
5510# `unknown' -- same as none, but documents that we really don't know.
5511# 'pass_all' -- all dependencies passed with no checks.
5512# 'test_compile' -- check by making test program.
5513# 'file_magic [[regex]]' -- check by looking for files in library path
5514# which responds to the $file_magic_cmd with a given extended regex.
5515# If you have `file' or equivalent on your system and you're not sure
5516# whether `pass_all' will *always* work, you probably want this one.
5517
5518case $host_os in
5519aix[4-9]*)
5520  lt_cv_deplibs_check_method=pass_all
5521  ;;
5522
5523beos*)
5524  lt_cv_deplibs_check_method=pass_all
5525  ;;
5526
5527bsdi[45]*)
5528  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5529  lt_cv_file_magic_cmd='/usr/bin/file -L'
5530  lt_cv_file_magic_test_file=/shlib/libc.so
5531  ;;
5532
5533cygwin*)
5534  # func_win32_libid is a shell function defined in ltmain.sh
5535  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536  lt_cv_file_magic_cmd='func_win32_libid'
5537  ;;
5538
5539mingw* | pw32*)
5540  # Base MSYS/MinGW do not provide the 'file' command needed by
5541  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5542  # unless we find 'file', for example because we are cross-compiling.
5543  if ( file / ) >/dev/null 2>&1; then
5544    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545    lt_cv_file_magic_cmd='func_win32_libid'
5546  else
5547    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5548    lt_cv_file_magic_cmd='$OBJDUMP -f'
5549  fi
5550  ;;
5551
5552cegcc)
5553  # use the weaker test based on 'objdump'. See mingw*.
5554  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5555  lt_cv_file_magic_cmd='$OBJDUMP -f'
5556  ;;
5557
5558darwin* | rhapsody*)
5559  lt_cv_deplibs_check_method=pass_all
5560  ;;
5561
5562freebsd* | dragonfly*)
5563  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5564    case $host_cpu in
5565    i*86 )
5566      # Not sure whether the presence of OpenBSD here was a mistake.
5567      # Let's accept both of them until this is cleared up.
5568      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569      lt_cv_file_magic_cmd=/usr/bin/file
5570      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5571      ;;
5572    esac
5573  else
5574    lt_cv_deplibs_check_method=pass_all
5575  fi
5576  ;;
5577
5578gnu*)
5579  lt_cv_deplibs_check_method=pass_all
5580  ;;
5581
5582hpux10.20* | hpux11*)
5583  lt_cv_file_magic_cmd=/usr/bin/file
5584  case $host_cpu in
5585  ia64*)
5586    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5588    ;;
5589  hppa*64*)
5590    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]'
5591    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5592    ;;
5593  *)
5594    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5595    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5596    ;;
5597  esac
5598  ;;
5599
5600interix[3-9]*)
5601  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5602  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5603  ;;
5604
5605irix5* | irix6* | nonstopux*)
5606  case $LD in
5607  *-32|*"-32 ") libmagic=32-bit;;
5608  *-n32|*"-n32 ") libmagic=N32;;
5609  *-64|*"-64 ") libmagic=64-bit;;
5610  *) libmagic=never-match;;
5611  esac
5612  lt_cv_deplibs_check_method=pass_all
5613  ;;
5614
5615# This must be Linux ELF.
5616linux* | k*bsd*-gnu)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619
5620netbsd* | netbsdelf*-gnu)
5621  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5622    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5623  else
5624    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5625  fi
5626  ;;
5627
5628newos6*)
5629  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5630  lt_cv_file_magic_cmd=/usr/bin/file
5631  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5632  ;;
5633
5634*nto* | *qnx*)
5635  lt_cv_deplibs_check_method=pass_all
5636  ;;
5637
5638openbsd*)
5639  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5640    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5641  else
5642    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643  fi
5644  ;;
5645
5646osf3* | osf4* | osf5*)
5647  lt_cv_deplibs_check_method=pass_all
5648  ;;
5649
5650rdos*)
5651  lt_cv_deplibs_check_method=pass_all
5652  ;;
5653
5654solaris*)
5655  lt_cv_deplibs_check_method=pass_all
5656  ;;
5657
5658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5659  lt_cv_deplibs_check_method=pass_all
5660  ;;
5661
5662sysv4 | sysv4.3*)
5663  case $host_vendor in
5664  motorola)
5665    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]'
5666    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5667    ;;
5668  ncr)
5669    lt_cv_deplibs_check_method=pass_all
5670    ;;
5671  sequent)
5672    lt_cv_file_magic_cmd='/bin/file'
5673    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5674    ;;
5675  sni)
5676    lt_cv_file_magic_cmd='/bin/file'
5677    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5678    lt_cv_file_magic_test_file=/lib/libc.so
5679    ;;
5680  siemens)
5681    lt_cv_deplibs_check_method=pass_all
5682    ;;
5683  pc)
5684    lt_cv_deplibs_check_method=pass_all
5685    ;;
5686  esac
5687  ;;
5688
5689tpf*)
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692esac
5693
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5696$as_echo "$lt_cv_deplibs_check_method" >&6; }
5697file_magic_cmd=$lt_cv_file_magic_cmd
5698deplibs_check_method=$lt_cv_deplibs_check_method
5699test -z "$deplibs_check_method" && deplibs_check_method=unknown
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712if test -n "$ac_tool_prefix"; then
5713  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714set dummy ${ac_tool_prefix}ar; ac_word=$2
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716$as_echo_n "checking for $ac_word... " >&6; }
5717if test "${ac_cv_prog_AR+set}" = set; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  if test -n "$AR"; then
5721  ac_cv_prog_AR="$AR" # Let the user override the test.
5722else
5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in $PATH
5725do
5726  IFS=$as_save_IFS
5727  test -z "$as_dir" && as_dir=.
5728    for ac_exec_ext in '' $ac_executable_extensions; do
5729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730    ac_cv_prog_AR="${ac_tool_prefix}ar"
5731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732    break 2
5733  fi
5734done
5735  done
5736IFS=$as_save_IFS
5737
5738fi
5739fi
5740AR=$ac_cv_prog_AR
5741if test -n "$AR"; then
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5743$as_echo "$AR" >&6; }
5744else
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746$as_echo "no" >&6; }
5747fi
5748
5749
5750fi
5751if test -z "$ac_cv_prog_AR"; then
5752  ac_ct_AR=$AR
5753  # Extract the first word of "ar", so it can be a program name with args.
5754set dummy ar; ac_word=$2
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756$as_echo_n "checking for $ac_word... " >&6; }
5757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  if test -n "$ac_ct_AR"; then
5761  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  test -z "$as_dir" && as_dir=.
5768    for ac_exec_ext in '' $ac_executable_extensions; do
5769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770    ac_cv_prog_ac_ct_AR="ar"
5771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772    break 2
5773  fi
5774done
5775  done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781if test -n "$ac_ct_AR"; then
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5783$as_echo "$ac_ct_AR" >&6; }
5784else
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786$as_echo "no" >&6; }
5787fi
5788
5789  if test "x$ac_ct_AR" = x; then
5790    AR="false"
5791  else
5792    case $cross_compiling:$ac_tool_warned in
5793yes:)
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796ac_tool_warned=yes ;;
5797esac
5798    AR=$ac_ct_AR
5799  fi
5800else
5801  AR="$ac_cv_prog_AR"
5802fi
5803
5804test -z "$AR" && AR=ar
5805test -z "$AR_FLAGS" && AR_FLAGS=cru
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817if test -n "$ac_tool_prefix"; then
5818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819set dummy ${ac_tool_prefix}strip; ac_word=$2
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
5822if test "${ac_cv_prog_STRIP+set}" = set; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  if test -n "$STRIP"; then
5826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831  IFS=$as_save_IFS
5832  test -z "$as_dir" && as_dir=.
5833    for ac_exec_ext in '' $ac_executable_extensions; do
5834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837    break 2
5838  fi
5839done
5840  done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
5845STRIP=$ac_cv_prog_STRIP
5846if test -n "$STRIP"; then
5847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5848$as_echo "$STRIP" >&6; }
5849else
5850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851$as_echo "no" >&6; }
5852fi
5853
5854
5855fi
5856if test -z "$ac_cv_prog_STRIP"; then
5857  ac_ct_STRIP=$STRIP
5858  # Extract the first word of "strip", so it can be a program name with args.
5859set dummy strip; ac_word=$2
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861$as_echo_n "checking for $ac_word... " >&6; }
5862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5863  $as_echo_n "(cached) " >&6
5864else
5865  if test -n "$ac_ct_STRIP"; then
5866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873    for ac_exec_ext in '' $ac_executable_extensions; do
5874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875    ac_cv_prog_ac_ct_STRIP="strip"
5876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880  done
5881IFS=$as_save_IFS
5882
5883fi
5884fi
5885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5886if test -n "$ac_ct_STRIP"; then
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5888$as_echo "$ac_ct_STRIP" >&6; }
5889else
5890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891$as_echo "no" >&6; }
5892fi
5893
5894  if test "x$ac_ct_STRIP" = x; then
5895    STRIP=":"
5896  else
5897    case $cross_compiling:$ac_tool_warned in
5898yes:)
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901ac_tool_warned=yes ;;
5902esac
5903    STRIP=$ac_ct_STRIP
5904  fi
5905else
5906  STRIP="$ac_cv_prog_STRIP"
5907fi
5908
5909test -z "$STRIP" && STRIP=:
5910
5911
5912
5913
5914
5915
5916if test -n "$ac_tool_prefix"; then
5917  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5918set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920$as_echo_n "checking for $ac_word... " >&6; }
5921if test "${ac_cv_prog_RANLIB+set}" = set; then :
5922  $as_echo_n "(cached) " >&6
5923else
5924  if test -n "$RANLIB"; then
5925  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5926else
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930  IFS=$as_save_IFS
5931  test -z "$as_dir" && as_dir=.
5932    for ac_exec_ext in '' $ac_executable_extensions; do
5933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936    break 2
5937  fi
5938done
5939  done
5940IFS=$as_save_IFS
5941
5942fi
5943fi
5944RANLIB=$ac_cv_prog_RANLIB
5945if test -n "$RANLIB"; then
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5947$as_echo "$RANLIB" >&6; }
5948else
5949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950$as_echo "no" >&6; }
5951fi
5952
5953
5954fi
5955if test -z "$ac_cv_prog_RANLIB"; then
5956  ac_ct_RANLIB=$RANLIB
5957  # Extract the first word of "ranlib", so it can be a program name with args.
5958set dummy ranlib; ac_word=$2
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960$as_echo_n "checking for $ac_word... " >&6; }
5961if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5962  $as_echo_n "(cached) " >&6
5963else
5964  if test -n "$ac_ct_RANLIB"; then
5965  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5966else
5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970  IFS=$as_save_IFS
5971  test -z "$as_dir" && as_dir=.
5972    for ac_exec_ext in '' $ac_executable_extensions; do
5973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974    ac_cv_prog_ac_ct_RANLIB="ranlib"
5975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976    break 2
5977  fi
5978done
5979  done
5980IFS=$as_save_IFS
5981
5982fi
5983fi
5984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5985if test -n "$ac_ct_RANLIB"; then
5986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5987$as_echo "$ac_ct_RANLIB" >&6; }
5988else
5989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990$as_echo "no" >&6; }
5991fi
5992
5993  if test "x$ac_ct_RANLIB" = x; then
5994    RANLIB=":"
5995  else
5996    case $cross_compiling:$ac_tool_warned in
5997yes:)
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000ac_tool_warned=yes ;;
6001esac
6002    RANLIB=$ac_ct_RANLIB
6003  fi
6004else
6005  RANLIB="$ac_cv_prog_RANLIB"
6006fi
6007
6008test -z "$RANLIB" && RANLIB=:
6009
6010
6011
6012
6013
6014
6015# Determine commands to create old-style static archives.
6016old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6017old_postinstall_cmds='chmod 644 $oldlib'
6018old_postuninstall_cmds=
6019
6020if test -n "$RANLIB"; then
6021  case $host_os in
6022  openbsd*)
6023    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6024    ;;
6025  *)
6026    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6027    ;;
6028  esac
6029  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6030fi
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065# If no C compiler was specified, use CC.
6066LTCC=${LTCC-"$CC"}
6067
6068# If no C compiler flags were specified, use CFLAGS.
6069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6070
6071# Allow CC to be a program name with arguments.
6072compiler=$CC
6073
6074
6075# Check for command to grab the raw symbol name followed by C symbol from nm.
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6079  $as_echo_n "(cached) " >&6
6080else
6081
6082# These are sane defaults that work on at least a few old systems.
6083# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6084
6085# Character class describing NM global symbol codes.
6086symcode='[BCDEGRST]'
6087
6088# Regexp to match symbols that can be accessed directly from C.
6089sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6090
6091# Define system-specific variables.
6092case $host_os in
6093aix*)
6094  symcode='[BCDT]'
6095  ;;
6096cygwin* | mingw* | pw32* | cegcc*)
6097  symcode='[ABCDGISTW]'
6098  ;;
6099hpux*)
6100  if test "$host_cpu" = ia64; then
6101    symcode='[ABCDEGRST]'
6102  fi
6103  ;;
6104irix* | nonstopux*)
6105  symcode='[BCDEGRST]'
6106  ;;
6107osf*)
6108  symcode='[BCDEGQRST]'
6109  ;;
6110solaris*)
6111  symcode='[BDRT]'
6112  ;;
6113sco3.2v5*)
6114  symcode='[DT]'
6115  ;;
6116sysv4.2uw2*)
6117  symcode='[DT]'
6118  ;;
6119sysv5* | sco5v6* | unixware* | OpenUNIX*)
6120  symcode='[ABDT]'
6121  ;;
6122sysv4)
6123  symcode='[DFNSTU]'
6124  ;;
6125esac
6126
6127# If we're using GNU nm, then use its standard symbol codes.
6128case `$NM -V 2>&1` in
6129*GNU* | *'with BFD'*)
6130  symcode='[ABCDGIRSTW]' ;;
6131esac
6132
6133# Transform an extracted symbol line into a proper C declaration.
6134# Some systems (esp. on ia64) link data and code symbols differently,
6135# so use this general approach.
6136lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6137
6138# Transform an extracted symbol line into symbol name and symbol address
6139lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6140lt_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'"
6141
6142# Handle CRLF in mingw tool chain
6143opt_cr=
6144case $build_os in
6145mingw*)
6146  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6147  ;;
6148esac
6149
6150# Try without a prefix underscore, then with it.
6151for ac_symprfx in "" "_"; do
6152
6153  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6154  symxfrm="\\1 $ac_symprfx\\2 \\2"
6155
6156  # Write the raw and C identifiers.
6157  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158    # Fake it for dumpbin and say T for any non-static function
6159    # and D for any global variable.
6160    # Also find C++ and __fastcall symbols from MSVC++,
6161    # which start with @ or ?.
6162    lt_cv_sys_global_symbol_pipe="$AWK '"\
6163"     {last_section=section; section=\$ 3};"\
6164"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165"     \$ 0!~/External *\|/{next};"\
6166"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6167"     {if(hide[section]) next};"\
6168"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6169"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6170"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6171"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6172"     ' prfx=^$ac_symprfx"
6173  else
6174    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6175  fi
6176
6177  # Check to see that the pipe works correctly.
6178  pipe_works=no
6179
6180  rm -f conftest*
6181  cat > conftest.$ac_ext <<_LT_EOF
6182#ifdef __cplusplus
6183extern "C" {
6184#endif
6185char nm_test_var;
6186void nm_test_func(void);
6187void nm_test_func(void){}
6188#ifdef __cplusplus
6189}
6190#endif
6191int main(){nm_test_var='a';nm_test_func();return(0);}
6192_LT_EOF
6193
6194  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195  (eval $ac_compile) 2>&5
6196  ac_status=$?
6197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198  test $ac_status = 0; }; then
6199    # Now try to grab the symbols.
6200    nlist=conftest.nm
6201    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6202  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6203  ac_status=$?
6204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205  test $ac_status = 0; } && test -s "$nlist"; then
6206      # Try sorting and uniquifying the output.
6207      if sort "$nlist" | uniq > "$nlist"T; then
6208	mv -f "$nlist"T "$nlist"
6209      else
6210	rm -f "$nlist"T
6211      fi
6212
6213      # Make sure that we snagged all the symbols we need.
6214      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6215	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6216	  cat <<_LT_EOF > conftest.$ac_ext
6217#ifdef __cplusplus
6218extern "C" {
6219#endif
6220
6221_LT_EOF
6222	  # Now generate the symbol file.
6223	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6224
6225	  cat <<_LT_EOF >> conftest.$ac_ext
6226
6227/* The mapping between symbol names and symbols.  */
6228const struct {
6229  const char *name;
6230  void       *address;
6231}
6232lt__PROGRAM__LTX_preloaded_symbols[] =
6233{
6234  { "@PROGRAM@", (void *) 0 },
6235_LT_EOF
6236	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6237	  cat <<\_LT_EOF >> conftest.$ac_ext
6238  {0, (void *) 0}
6239};
6240
6241/* This works around a problem in FreeBSD linker */
6242#ifdef FREEBSD_WORKAROUND
6243static const void *lt_preloaded_setup() {
6244  return lt__PROGRAM__LTX_preloaded_symbols;
6245}
6246#endif
6247
6248#ifdef __cplusplus
6249}
6250#endif
6251_LT_EOF
6252	  # Now try linking the two files.
6253	  mv conftest.$ac_objext conftstm.$ac_objext
6254	  lt_save_LIBS="$LIBS"
6255	  lt_save_CFLAGS="$CFLAGS"
6256	  LIBS="conftstm.$ac_objext"
6257	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6258	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6259  (eval $ac_link) 2>&5
6260  ac_status=$?
6261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6263	    pipe_works=yes
6264	  fi
6265	  LIBS="$lt_save_LIBS"
6266	  CFLAGS="$lt_save_CFLAGS"
6267	else
6268	  echo "cannot find nm_test_func in $nlist" >&5
6269	fi
6270      else
6271	echo "cannot find nm_test_var in $nlist" >&5
6272      fi
6273    else
6274      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6275    fi
6276  else
6277    echo "$progname: failed program was:" >&5
6278    cat conftest.$ac_ext >&5
6279  fi
6280  rm -rf conftest* conftst*
6281
6282  # Do not use the global_symbol_pipe unless it works.
6283  if test "$pipe_works" = yes; then
6284    break
6285  else
6286    lt_cv_sys_global_symbol_pipe=
6287  fi
6288done
6289
6290fi
6291
6292if test -z "$lt_cv_sys_global_symbol_pipe"; then
6293  lt_cv_sys_global_symbol_to_cdecl=
6294fi
6295if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6297$as_echo "failed" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6300$as_echo "ok" >&6; }
6301fi
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324# Check whether --enable-libtool-lock was given.
6325if test "${enable_libtool_lock+set}" = set; then :
6326  enableval=$enable_libtool_lock;
6327fi
6328
6329test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6330
6331# Some flags need to be propagated to the compiler or linker for good
6332# libtool support.
6333case $host in
6334ia64-*-hpux*)
6335  # Find out which ABI we are using.
6336  echo 'int i;' > conftest.$ac_ext
6337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338  (eval $ac_compile) 2>&5
6339  ac_status=$?
6340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341  test $ac_status = 0; }; then
6342    case `/usr/bin/file conftest.$ac_objext` in
6343      *ELF-32*)
6344	HPUX_IA64_MODE="32"
6345	;;
6346      *ELF-64*)
6347	HPUX_IA64_MODE="64"
6348	;;
6349    esac
6350  fi
6351  rm -rf conftest*
6352  ;;
6353*-*-irix6*)
6354  # Find out which ABI we are using.
6355  echo '#line 6355 "configure"' > conftest.$ac_ext
6356  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6357  (eval $ac_compile) 2>&5
6358  ac_status=$?
6359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360  test $ac_status = 0; }; then
6361    if test "$lt_cv_prog_gnu_ld" = yes; then
6362      case `/usr/bin/file conftest.$ac_objext` in
6363	*32-bit*)
6364	  LD="${LD-ld} -melf32bsmip"
6365	  ;;
6366	*N32*)
6367	  LD="${LD-ld} -melf32bmipn32"
6368	  ;;
6369	*64-bit*)
6370	  LD="${LD-ld} -melf64bmip"
6371	;;
6372      esac
6373    else
6374      case `/usr/bin/file conftest.$ac_objext` in
6375	*32-bit*)
6376	  LD="${LD-ld} -32"
6377	  ;;
6378	*N32*)
6379	  LD="${LD-ld} -n32"
6380	  ;;
6381	*64-bit*)
6382	  LD="${LD-ld} -64"
6383	  ;;
6384      esac
6385    fi
6386  fi
6387  rm -rf conftest*
6388  ;;
6389
6390x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6391s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6392  # Find out which ABI we are using.
6393  echo 'int i;' > conftest.$ac_ext
6394  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6395  (eval $ac_compile) 2>&5
6396  ac_status=$?
6397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398  test $ac_status = 0; }; then
6399    case `/usr/bin/file conftest.o` in
6400      *32-bit*)
6401	case $host in
6402	  x86_64-*kfreebsd*-gnu)
6403	    LD="${LD-ld} -m elf_i386_fbsd"
6404	    ;;
6405	  x86_64-*linux*)
6406	    LD="${LD-ld} -m elf_i386"
6407	    ;;
6408	  ppc64-*linux*|powerpc64-*linux*)
6409	    LD="${LD-ld} -m elf32ppclinux"
6410	    ;;
6411	  s390x-*linux*)
6412	    LD="${LD-ld} -m elf_s390"
6413	    ;;
6414	  sparc64-*linux*)
6415	    LD="${LD-ld} -m elf32_sparc"
6416	    ;;
6417	esac
6418	;;
6419      *64-bit*)
6420	case $host in
6421	  x86_64-*kfreebsd*-gnu)
6422	    LD="${LD-ld} -m elf_x86_64_fbsd"
6423	    ;;
6424	  x86_64-*linux*)
6425	    LD="${LD-ld} -m elf_x86_64"
6426	    ;;
6427	  ppc*-*linux*|powerpc*-*linux*)
6428	    LD="${LD-ld} -m elf64ppc"
6429	    ;;
6430	  s390*-*linux*|s390*-*tpf*)
6431	    LD="${LD-ld} -m elf64_s390"
6432	    ;;
6433	  sparc*-*linux*)
6434	    LD="${LD-ld} -m elf64_sparc"
6435	    ;;
6436	esac
6437	;;
6438    esac
6439  fi
6440  rm -rf conftest*
6441  ;;
6442
6443*-*-sco3.2v5*)
6444  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6445  SAVE_CFLAGS="$CFLAGS"
6446  CFLAGS="$CFLAGS -belf"
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6448$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6449if test "${lt_cv_cc_needs_belf+set}" = set; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  ac_ext=c
6453ac_cpp='$CPP $CPPFLAGS'
6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_link "$LINENO"; then :
6470  lt_cv_cc_needs_belf=yes
6471else
6472  lt_cv_cc_needs_belf=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext \
6475    conftest$ac_exeext conftest.$ac_ext
6476     ac_ext=c
6477ac_cpp='$CPP $CPPFLAGS'
6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6484$as_echo "$lt_cv_cc_needs_belf" >&6; }
6485  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6486    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6487    CFLAGS="$SAVE_CFLAGS"
6488  fi
6489  ;;
6490sparc*-*solaris*)
6491  # Find out which ABI we are using.
6492  echo 'int i;' > conftest.$ac_ext
6493  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494  (eval $ac_compile) 2>&5
6495  ac_status=$?
6496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497  test $ac_status = 0; }; then
6498    case `/usr/bin/file conftest.o` in
6499    *64-bit*)
6500      case $lt_cv_prog_gnu_ld in
6501      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6502      *)
6503	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6504	  LD="${LD-ld} -64"
6505	fi
6506	;;
6507      esac
6508      ;;
6509    esac
6510  fi
6511  rm -rf conftest*
6512  ;;
6513esac
6514
6515need_locks="$enable_libtool_lock"
6516
6517
6518  case $host_os in
6519    rhapsody* | darwin*)
6520    if test -n "$ac_tool_prefix"; then
6521  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  if test -n "$DSYMUTIL"; then
6529  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543  done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548DSYMUTIL=$ac_cv_prog_DSYMUTIL
6549if test -n "$DSYMUTIL"; then
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6551$as_echo "$DSYMUTIL" >&6; }
6552else
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556
6557
6558fi
6559if test -z "$ac_cv_prog_DSYMUTIL"; then
6560  ac_ct_DSYMUTIL=$DSYMUTIL
6561  # Extract the first word of "dsymutil", so it can be a program name with args.
6562set dummy dsymutil; ac_word=$2
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  if test -n "$ac_ct_DSYMUTIL"; then
6569  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576    for ac_exec_ext in '' $ac_executable_extensions; do
6577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583  done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6589if test -n "$ac_ct_DSYMUTIL"; then
6590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6591$as_echo "$ac_ct_DSYMUTIL" >&6; }
6592else
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597  if test "x$ac_ct_DSYMUTIL" = x; then
6598    DSYMUTIL=":"
6599  else
6600    case $cross_compiling:$ac_tool_warned in
6601yes:)
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604ac_tool_warned=yes ;;
6605esac
6606    DSYMUTIL=$ac_ct_DSYMUTIL
6607  fi
6608else
6609  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6610fi
6611
6612    if test -n "$ac_tool_prefix"; then
6613  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6614set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616$as_echo_n "checking for $ac_word... " >&6; }
6617if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  if test -n "$NMEDIT"; then
6621  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6622else
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626  IFS=$as_save_IFS
6627  test -z "$as_dir" && as_dir=.
6628    for ac_exec_ext in '' $ac_executable_extensions; do
6629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632    break 2
6633  fi
6634done
6635  done
6636IFS=$as_save_IFS
6637
6638fi
6639fi
6640NMEDIT=$ac_cv_prog_NMEDIT
6641if test -n "$NMEDIT"; then
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6643$as_echo "$NMEDIT" >&6; }
6644else
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646$as_echo "no" >&6; }
6647fi
6648
6649
6650fi
6651if test -z "$ac_cv_prog_NMEDIT"; then
6652  ac_ct_NMEDIT=$NMEDIT
6653  # Extract the first word of "nmedit", so it can be a program name with args.
6654set dummy nmedit; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6658  $as_echo_n "(cached) " >&6
6659else
6660  if test -n "$ac_ct_NMEDIT"; then
6661  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666  IFS=$as_save_IFS
6667  test -z "$as_dir" && as_dir=.
6668    for ac_exec_ext in '' $ac_executable_extensions; do
6669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672    break 2
6673  fi
6674done
6675  done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6681if test -n "$ac_ct_NMEDIT"; then
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6683$as_echo "$ac_ct_NMEDIT" >&6; }
6684else
6685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689  if test "x$ac_ct_NMEDIT" = x; then
6690    NMEDIT=":"
6691  else
6692    case $cross_compiling:$ac_tool_warned in
6693yes:)
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696ac_tool_warned=yes ;;
6697esac
6698    NMEDIT=$ac_ct_NMEDIT
6699  fi
6700else
6701  NMEDIT="$ac_cv_prog_NMEDIT"
6702fi
6703
6704    if test -n "$ac_tool_prefix"; then
6705  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6706set dummy ${ac_tool_prefix}lipo; ac_word=$2
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708$as_echo_n "checking for $ac_word... " >&6; }
6709if test "${ac_cv_prog_LIPO+set}" = set; then :
6710  $as_echo_n "(cached) " >&6
6711else
6712  if test -n "$LIPO"; then
6713  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720    for ac_exec_ext in '' $ac_executable_extensions; do
6721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724    break 2
6725  fi
6726done
6727  done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732LIPO=$ac_cv_prog_LIPO
6733if test -n "$LIPO"; then
6734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6735$as_echo "$LIPO" >&6; }
6736else
6737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738$as_echo "no" >&6; }
6739fi
6740
6741
6742fi
6743if test -z "$ac_cv_prog_LIPO"; then
6744  ac_ct_LIPO=$LIPO
6745  # Extract the first word of "lipo", so it can be a program name with args.
6746set dummy lipo; ac_word=$2
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  if test -n "$ac_ct_LIPO"; then
6753  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760    for ac_exec_ext in '' $ac_executable_extensions; do
6761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762    ac_cv_prog_ac_ct_LIPO="lipo"
6763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767  done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6773if test -n "$ac_ct_LIPO"; then
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6775$as_echo "$ac_ct_LIPO" >&6; }
6776else
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781  if test "x$ac_ct_LIPO" = x; then
6782    LIPO=":"
6783  else
6784    case $cross_compiling:$ac_tool_warned in
6785yes:)
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788ac_tool_warned=yes ;;
6789esac
6790    LIPO=$ac_ct_LIPO
6791  fi
6792else
6793  LIPO="$ac_cv_prog_LIPO"
6794fi
6795
6796    if test -n "$ac_tool_prefix"; then
6797  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}otool; ac_word=$2
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
6801if test "${ac_cv_prog_OTOOL+set}" = set; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  if test -n "$OTOOL"; then
6805  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810  IFS=$as_save_IFS
6811  test -z "$as_dir" && as_dir=.
6812    for ac_exec_ext in '' $ac_executable_extensions; do
6813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816    break 2
6817  fi
6818done
6819  done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824OTOOL=$ac_cv_prog_OTOOL
6825if test -n "$OTOOL"; then
6826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6827$as_echo "$OTOOL" >&6; }
6828else
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833
6834fi
6835if test -z "$ac_cv_prog_OTOOL"; then
6836  ac_ct_OTOOL=$OTOOL
6837  # Extract the first word of "otool", so it can be a program name with args.
6838set dummy otool; ac_word=$2
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
6841if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  if test -n "$ac_ct_OTOOL"; then
6845  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  test -z "$as_dir" && as_dir=.
6852    for ac_exec_ext in '' $ac_executable_extensions; do
6853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854    ac_cv_prog_ac_ct_OTOOL="otool"
6855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859  done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6865if test -n "$ac_ct_OTOOL"; then
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6867$as_echo "$ac_ct_OTOOL" >&6; }
6868else
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873  if test "x$ac_ct_OTOOL" = x; then
6874    OTOOL=":"
6875  else
6876    case $cross_compiling:$ac_tool_warned in
6877yes:)
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880ac_tool_warned=yes ;;
6881esac
6882    OTOOL=$ac_ct_OTOOL
6883  fi
6884else
6885  OTOOL="$ac_cv_prog_OTOOL"
6886fi
6887
6888    if test -n "$ac_tool_prefix"; then
6889  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6890set dummy ${ac_tool_prefix}otool64; ac_word=$2
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  if test -n "$OTOOL64"; then
6897  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902  IFS=$as_save_IFS
6903  test -z "$as_dir" && as_dir=.
6904    for ac_exec_ext in '' $ac_executable_extensions; do
6905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908    break 2
6909  fi
6910done
6911  done
6912IFS=$as_save_IFS
6913
6914fi
6915fi
6916OTOOL64=$ac_cv_prog_OTOOL64
6917if test -n "$OTOOL64"; then
6918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6919$as_echo "$OTOOL64" >&6; }
6920else
6921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
6923fi
6924
6925
6926fi
6927if test -z "$ac_cv_prog_OTOOL64"; then
6928  ac_ct_OTOOL64=$OTOOL64
6929  # Extract the first word of "otool64", so it can be a program name with args.
6930set dummy otool64; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  if test -n "$ac_ct_OTOOL64"; then
6937  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942  IFS=$as_save_IFS
6943  test -z "$as_dir" && as_dir=.
6944    for ac_exec_ext in '' $ac_executable_extensions; do
6945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946    ac_cv_prog_ac_ct_OTOOL64="otool64"
6947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948    break 2
6949  fi
6950done
6951  done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6957if test -n "$ac_ct_OTOOL64"; then
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6959$as_echo "$ac_ct_OTOOL64" >&6; }
6960else
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
6963fi
6964
6965  if test "x$ac_ct_OTOOL64" = x; then
6966    OTOOL64=":"
6967  else
6968    case $cross_compiling:$ac_tool_warned in
6969yes:)
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972ac_tool_warned=yes ;;
6973esac
6974    OTOOL64=$ac_ct_OTOOL64
6975  fi
6976else
6977  OTOOL64="$ac_cv_prog_OTOOL64"
6978fi
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7007$as_echo_n "checking for -single_module linker flag... " >&6; }
7008if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  lt_cv_apple_cc_single_mod=no
7012      if test -z "${LT_MULTI_MODULE}"; then
7013	# By default we will add the -single_module flag. You can override
7014	# by either setting the environment variable LT_MULTI_MODULE
7015	# non-empty at configure time, or by adding -multi_module to the
7016	# link flags.
7017	rm -rf libconftest.dylib*
7018	echo "int foo(void){return 1;}" > conftest.c
7019	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7020-dynamiclib -Wl,-single_module conftest.c" >&5
7021	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7022	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7023        _lt_result=$?
7024	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7025	  lt_cv_apple_cc_single_mod=yes
7026	else
7027	  cat conftest.err >&5
7028	fi
7029	rm -rf libconftest.dylib*
7030	rm -f conftest.*
7031      fi
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7034$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7036$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7037if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  lt_cv_ld_exported_symbols_list=no
7041      save_LDFLAGS=$LDFLAGS
7042      echo "_main" > conftest.sym
7043      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7044      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046
7047int
7048main ()
7049{
7050
7051  ;
7052  return 0;
7053}
7054_ACEOF
7055if ac_fn_c_try_link "$LINENO"; then :
7056  lt_cv_ld_exported_symbols_list=yes
7057else
7058  lt_cv_ld_exported_symbols_list=no
7059fi
7060rm -f core conftest.err conftest.$ac_objext \
7061    conftest$ac_exeext conftest.$ac_ext
7062	LDFLAGS="$save_LDFLAGS"
7063
7064fi
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7066$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7067    case $host_os in
7068    rhapsody* | darwin1.[012])
7069      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7070    darwin1.*)
7071      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072    darwin*) # darwin 5.x on
7073      # if running on 10.5 or later, the deployment target defaults
7074      # to the OS version, if on x86, and 10.4, the deployment
7075      # target defaults to 10.4. Don't you love it?
7076      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7077	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7078	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7079	10.[012]*)
7080	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7081	10.*)
7082	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7083      esac
7084    ;;
7085  esac
7086    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7087      _lt_dar_single_mod='$single_module'
7088    fi
7089    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7090      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7091    else
7092      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7093    fi
7094    if test "$DSYMUTIL" != ":"; then
7095      _lt_dsymutil='~$DSYMUTIL $lib || :'
7096    else
7097      _lt_dsymutil=
7098    fi
7099    ;;
7100  esac
7101
7102for ac_header in dlfcn.h
7103do :
7104  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7105"
7106if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7107  cat >>confdefs.h <<_ACEOF
7108#define HAVE_DLFCN_H 1
7109_ACEOF
7110
7111fi
7112
7113done
7114
7115
7116
7117# Set options
7118enable_win32_dll=yes
7119
7120case $host in
7121*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7122  if test -n "$ac_tool_prefix"; then
7123  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7124set dummy ${ac_tool_prefix}as; ac_word=$2
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126$as_echo_n "checking for $ac_word... " >&6; }
7127if test "${ac_cv_prog_AS+set}" = set; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  if test -n "$AS"; then
7131  ac_cv_prog_AS="$AS" # Let the user override the test.
7132else
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136  IFS=$as_save_IFS
7137  test -z "$as_dir" && as_dir=.
7138    for ac_exec_ext in '' $ac_executable_extensions; do
7139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140    ac_cv_prog_AS="${ac_tool_prefix}as"
7141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142    break 2
7143  fi
7144done
7145  done
7146IFS=$as_save_IFS
7147
7148fi
7149fi
7150AS=$ac_cv_prog_AS
7151if test -n "$AS"; then
7152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7153$as_echo "$AS" >&6; }
7154else
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156$as_echo "no" >&6; }
7157fi
7158
7159
7160fi
7161if test -z "$ac_cv_prog_AS"; then
7162  ac_ct_AS=$AS
7163  # Extract the first word of "as", so it can be a program name with args.
7164set dummy as; ac_word=$2
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166$as_echo_n "checking for $ac_word... " >&6; }
7167if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  if test -n "$ac_ct_AS"; then
7171  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7172else
7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176  IFS=$as_save_IFS
7177  test -z "$as_dir" && as_dir=.
7178    for ac_exec_ext in '' $ac_executable_extensions; do
7179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180    ac_cv_prog_ac_ct_AS="as"
7181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182    break 2
7183  fi
7184done
7185  done
7186IFS=$as_save_IFS
7187
7188fi
7189fi
7190ac_ct_AS=$ac_cv_prog_ac_ct_AS
7191if test -n "$ac_ct_AS"; then
7192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7193$as_echo "$ac_ct_AS" >&6; }
7194else
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196$as_echo "no" >&6; }
7197fi
7198
7199  if test "x$ac_ct_AS" = x; then
7200    AS="false"
7201  else
7202    case $cross_compiling:$ac_tool_warned in
7203yes:)
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206ac_tool_warned=yes ;;
7207esac
7208    AS=$ac_ct_AS
7209  fi
7210else
7211  AS="$ac_cv_prog_AS"
7212fi
7213
7214  if test -n "$ac_tool_prefix"; then
7215  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7216set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -n "$DLLTOOL"; then
7223  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230    for ac_exec_ext in '' $ac_executable_extensions; do
7231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237  done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242DLLTOOL=$ac_cv_prog_DLLTOOL
7243if test -n "$DLLTOOL"; then
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7245$as_echo "$DLLTOOL" >&6; }
7246else
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251
7252fi
7253if test -z "$ac_cv_prog_DLLTOOL"; then
7254  ac_ct_DLLTOOL=$DLLTOOL
7255  # Extract the first word of "dlltool", so it can be a program name with args.
7256set dummy dlltool; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
7259if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -n "$ac_ct_DLLTOOL"; then
7263  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270    for ac_exec_ext in '' $ac_executable_extensions; do
7271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277  done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7283if test -n "$ac_ct_DLLTOOL"; then
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7285$as_echo "$ac_ct_DLLTOOL" >&6; }
7286else
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291  if test "x$ac_ct_DLLTOOL" = x; then
7292    DLLTOOL="false"
7293  else
7294    case $cross_compiling:$ac_tool_warned in
7295yes:)
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298ac_tool_warned=yes ;;
7299esac
7300    DLLTOOL=$ac_ct_DLLTOOL
7301  fi
7302else
7303  DLLTOOL="$ac_cv_prog_DLLTOOL"
7304fi
7305
7306  if test -n "$ac_tool_prefix"; then
7307  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}objdump; ac_word=$2
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
7311if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  if test -n "$OBJDUMP"; then
7315  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322    for ac_exec_ext in '' $ac_executable_extensions; do
7323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329  done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334OBJDUMP=$ac_cv_prog_OBJDUMP
7335if test -n "$OBJDUMP"; then
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7337$as_echo "$OBJDUMP" >&6; }
7338else
7339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343
7344fi
7345if test -z "$ac_cv_prog_OBJDUMP"; then
7346  ac_ct_OBJDUMP=$OBJDUMP
7347  # Extract the first word of "objdump", so it can be a program name with args.
7348set dummy objdump; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  if test -n "$ac_ct_OBJDUMP"; then
7355  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7375if test -n "$ac_ct_OBJDUMP"; then
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7377$as_echo "$ac_ct_OBJDUMP" >&6; }
7378else
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383  if test "x$ac_ct_OBJDUMP" = x; then
7384    OBJDUMP="false"
7385  else
7386    case $cross_compiling:$ac_tool_warned in
7387yes:)
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390ac_tool_warned=yes ;;
7391esac
7392    OBJDUMP=$ac_ct_OBJDUMP
7393  fi
7394else
7395  OBJDUMP="$ac_cv_prog_OBJDUMP"
7396fi
7397
7398  ;;
7399esac
7400
7401test -z "$AS" && AS=as
7402
7403
7404
7405
7406
7407test -z "$DLLTOOL" && DLLTOOL=dlltool
7408
7409
7410
7411
7412
7413test -z "$OBJDUMP" && OBJDUMP=objdump
7414
7415
7416
7417
7418# Check whether --enable-static was given.
7419if test "${enable_static+set}" = set; then :
7420  enableval=$enable_static; p=${PACKAGE-default}
7421    case $enableval in
7422    yes) enable_static=yes ;;
7423    no) enable_static=no ;;
7424    *)
7425     enable_static=no
7426      # Look at the argument we got.  We use all the common list separators.
7427      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428      for pkg in $enableval; do
7429	IFS="$lt_save_ifs"
7430	if test "X$pkg" = "X$p"; then
7431	  enable_static=yes
7432	fi
7433      done
7434      IFS="$lt_save_ifs"
7435      ;;
7436    esac
7437else
7438  enable_static=no
7439fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450        enable_dlopen=no
7451
7452
7453
7454            # Check whether --enable-shared was given.
7455if test "${enable_shared+set}" = set; then :
7456  enableval=$enable_shared; p=${PACKAGE-default}
7457    case $enableval in
7458    yes) enable_shared=yes ;;
7459    no) enable_shared=no ;;
7460    *)
7461      enable_shared=no
7462      # Look at the argument we got.  We use all the common list separators.
7463      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7464      for pkg in $enableval; do
7465	IFS="$lt_save_ifs"
7466	if test "X$pkg" = "X$p"; then
7467	  enable_shared=yes
7468	fi
7469      done
7470      IFS="$lt_save_ifs"
7471      ;;
7472    esac
7473else
7474  enable_shared=yes
7475fi
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487# Check whether --with-pic was given.
7488if test "${with_pic+set}" = set; then :
7489  withval=$with_pic; pic_mode="$withval"
7490else
7491  pic_mode=default
7492fi
7493
7494
7495test -z "$pic_mode" && pic_mode=default
7496
7497
7498
7499
7500
7501
7502
7503  # Check whether --enable-fast-install was given.
7504if test "${enable_fast_install+set}" = set; then :
7505  enableval=$enable_fast_install; p=${PACKAGE-default}
7506    case $enableval in
7507    yes) enable_fast_install=yes ;;
7508    no) enable_fast_install=no ;;
7509    *)
7510      enable_fast_install=no
7511      # Look at the argument we got.  We use all the common list separators.
7512      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7513      for pkg in $enableval; do
7514	IFS="$lt_save_ifs"
7515	if test "X$pkg" = "X$p"; then
7516	  enable_fast_install=yes
7517	fi
7518      done
7519      IFS="$lt_save_ifs"
7520      ;;
7521    esac
7522else
7523  enable_fast_install=yes
7524fi
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536# This can be used to rebuild libtool when needed
7537LIBTOOL_DEPS="$ltmain"
7538
7539# Always use our own libtool.
7540LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566test -z "$LN_S" && LN_S="ln -s"
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581if test -n "${ZSH_VERSION+set}" ; then
7582   setopt NO_GLOB_SUBST
7583fi
7584
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7586$as_echo_n "checking for objdir... " >&6; }
7587if test "${lt_cv_objdir+set}" = set; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  rm -f .libs 2>/dev/null
7591mkdir .libs 2>/dev/null
7592if test -d .libs; then
7593  lt_cv_objdir=.libs
7594else
7595  # MS-DOS does not allow filenames that begin with a dot.
7596  lt_cv_objdir=_libs
7597fi
7598rmdir .libs 2>/dev/null
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7601$as_echo "$lt_cv_objdir" >&6; }
7602objdir=$lt_cv_objdir
7603
7604
7605
7606
7607
7608cat >>confdefs.h <<_ACEOF
7609#define LT_OBJDIR "$lt_cv_objdir/"
7610_ACEOF
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628case $host_os in
7629aix3*)
7630  # AIX sometimes has problems with the GCC collect2 program.  For some
7631  # reason, if we set the COLLECT_NAMES environment variable, the problems
7632  # vanish in a puff of smoke.
7633  if test "X${COLLECT_NAMES+set}" != Xset; then
7634    COLLECT_NAMES=
7635    export COLLECT_NAMES
7636  fi
7637  ;;
7638esac
7639
7640# Sed substitution that helps us do robust quoting.  It backslashifies
7641# metacharacters that are still active within double-quoted strings.
7642sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7643
7644# Same as above, but do not quote variable references.
7645double_quote_subst='s/\(["`\\]\)/\\\1/g'
7646
7647# Sed substitution to delay expansion of an escaped shell variable in a
7648# double_quote_subst'ed string.
7649delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7650
7651# Sed substitution to delay expansion of an escaped single quote.
7652delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7653
7654# Sed substitution to avoid accidental globbing in evaled expressions
7655no_glob_subst='s/\*/\\\*/g'
7656
7657# Global variables:
7658ofile=libtool
7659can_build_shared=yes
7660
7661# All known linkers require a `.a' archive for static linking (except MSVC,
7662# which needs '.lib').
7663libext=a
7664
7665with_gnu_ld="$lt_cv_prog_gnu_ld"
7666
7667old_CC="$CC"
7668old_CFLAGS="$CFLAGS"
7669
7670# Set sane defaults for various variables
7671test -z "$CC" && CC=cc
7672test -z "$LTCC" && LTCC=$CC
7673test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7674test -z "$LD" && LD=ld
7675test -z "$ac_objext" && ac_objext=o
7676
7677for cc_temp in $compiler""; do
7678  case $cc_temp in
7679    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681    \-*) ;;
7682    *) break;;
7683  esac
7684done
7685cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7686
7687
7688# Only perform the check for file, if the check method requires it
7689test -z "$MAGIC_CMD" && MAGIC_CMD=file
7690case $deplibs_check_method in
7691file_magic*)
7692  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7694$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7695if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  case $MAGIC_CMD in
7699[\\/*] |  ?:[\\/]*)
7700  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701  ;;
7702*)
7703  lt_save_MAGIC_CMD="$MAGIC_CMD"
7704  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706  for ac_dir in $ac_dummy; do
7707    IFS="$lt_save_ifs"
7708    test -z "$ac_dir" && ac_dir=.
7709    if test -f $ac_dir/${ac_tool_prefix}file; then
7710      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7711      if test -n "$file_magic_test_file"; then
7712	case $deplibs_check_method in
7713	"file_magic "*)
7714	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717	    $EGREP "$file_magic_regex" > /dev/null; then
7718	    :
7719	  else
7720	    cat <<_LT_EOF 1>&2
7721
7722*** Warning: the command libtool uses to detect shared libraries,
7723*** $file_magic_cmd, produces output that libtool cannot recognize.
7724*** The result is that libtool may fail to recognize shared libraries
7725*** as such.  This will affect the creation of libtool libraries that
7726*** depend on shared libraries, but programs linked with such libtool
7727*** libraries will work regardless of this problem.  Nevertheless, you
7728*** may want to report the problem to your system manager and/or to
7729*** bug-libtool@gnu.org
7730
7731_LT_EOF
7732	  fi ;;
7733	esac
7734      fi
7735      break
7736    fi
7737  done
7738  IFS="$lt_save_ifs"
7739  MAGIC_CMD="$lt_save_MAGIC_CMD"
7740  ;;
7741esac
7742fi
7743
7744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745if test -n "$MAGIC_CMD"; then
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7747$as_echo "$MAGIC_CMD" >&6; }
7748else
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751fi
7752
7753
7754
7755
7756
7757if test -z "$lt_cv_path_MAGIC_CMD"; then
7758  if test -n "$ac_tool_prefix"; then
7759    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7760$as_echo_n "checking for file... " >&6; }
7761if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7762  $as_echo_n "(cached) " >&6
7763else
7764  case $MAGIC_CMD in
7765[\\/*] |  ?:[\\/]*)
7766  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7767  ;;
7768*)
7769  lt_save_MAGIC_CMD="$MAGIC_CMD"
7770  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7771  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7772  for ac_dir in $ac_dummy; do
7773    IFS="$lt_save_ifs"
7774    test -z "$ac_dir" && ac_dir=.
7775    if test -f $ac_dir/file; then
7776      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7777      if test -n "$file_magic_test_file"; then
7778	case $deplibs_check_method in
7779	"file_magic "*)
7780	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7781	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7782	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7783	    $EGREP "$file_magic_regex" > /dev/null; then
7784	    :
7785	  else
7786	    cat <<_LT_EOF 1>&2
7787
7788*** Warning: the command libtool uses to detect shared libraries,
7789*** $file_magic_cmd, produces output that libtool cannot recognize.
7790*** The result is that libtool may fail to recognize shared libraries
7791*** as such.  This will affect the creation of libtool libraries that
7792*** depend on shared libraries, but programs linked with such libtool
7793*** libraries will work regardless of this problem.  Nevertheless, you
7794*** may want to report the problem to your system manager and/or to
7795*** bug-libtool@gnu.org
7796
7797_LT_EOF
7798	  fi ;;
7799	esac
7800      fi
7801      break
7802    fi
7803  done
7804  IFS="$lt_save_ifs"
7805  MAGIC_CMD="$lt_save_MAGIC_CMD"
7806  ;;
7807esac
7808fi
7809
7810MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7811if test -n "$MAGIC_CMD"; then
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7813$as_echo "$MAGIC_CMD" >&6; }
7814else
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
7817fi
7818
7819
7820  else
7821    MAGIC_CMD=:
7822  fi
7823fi
7824
7825  fi
7826  ;;
7827esac
7828
7829# Use C for the default configuration in the libtool script
7830
7831lt_save_CC="$CC"
7832ac_ext=c
7833ac_cpp='$CPP $CPPFLAGS'
7834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837
7838
7839# Source file extension for C test sources.
7840ac_ext=c
7841
7842# Object file extension for compiled C test sources.
7843objext=o
7844objext=$objext
7845
7846# Code to be used in simple compile tests
7847lt_simple_compile_test_code="int some_variable = 0;"
7848
7849# Code to be used in simple link tests
7850lt_simple_link_test_code='int main(){return(0);}'
7851
7852
7853
7854
7855
7856
7857
7858# If no C compiler was specified, use CC.
7859LTCC=${LTCC-"$CC"}
7860
7861# If no C compiler flags were specified, use CFLAGS.
7862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7863
7864# Allow CC to be a program name with arguments.
7865compiler=$CC
7866
7867# Save the default compiler, since it gets overwritten when the other
7868# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7869compiler_DEFAULT=$CC
7870
7871# save warnings/boilerplate of simple test code
7872ac_outfile=conftest.$ac_objext
7873echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7874eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875_lt_compiler_boilerplate=`cat conftest.err`
7876$RM conftest*
7877
7878ac_outfile=conftest.$ac_objext
7879echo "$lt_simple_link_test_code" >conftest.$ac_ext
7880eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881_lt_linker_boilerplate=`cat conftest.err`
7882$RM -r conftest*
7883
7884
7885## CAVEAT EMPTOR:
7886## There is no encapsulation within the following macros, do not change
7887## the running order or otherwise move them around unless you know exactly
7888## what you are doing...
7889if test -n "$compiler"; then
7890
7891lt_prog_compiler_no_builtin_flag=
7892
7893if test "$GCC" = yes; then
7894  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7895
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  lt_cv_prog_compiler_rtti_exceptions=no
7902   ac_outfile=conftest.$ac_objext
7903   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904   lt_compiler_flag="-fno-rtti -fno-exceptions"
7905   # Insert the option either (1) after the last *FLAGS variable, or
7906   # (2) before a word containing "conftest.", or (3) at the end.
7907   # Note that $ac_compile itself does not contain backslashes and begins
7908   # with a dollar sign (not a hyphen), so the echo should work correctly.
7909   # The option is referenced via a variable to avoid confusing sed.
7910   lt_compile=`echo "$ac_compile" | $SED \
7911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913   -e 's:$: $lt_compiler_flag:'`
7914   (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7915   (eval "$lt_compile" 2>conftest.err)
7916   ac_status=$?
7917   cat conftest.err >&5
7918   echo "$as_me:7918: \$? = $ac_status" >&5
7919   if (exit $ac_status) && test -s "$ac_outfile"; then
7920     # The compiler can only warn and ignore the option if not recognized
7921     # So say no if there are warnings other than the usual output.
7922     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7923     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925       lt_cv_prog_compiler_rtti_exceptions=yes
7926     fi
7927   fi
7928   $RM conftest*
7929
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7933
7934if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7935    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7936else
7937    :
7938fi
7939
7940fi
7941
7942
7943
7944
7945
7946
7947  lt_prog_compiler_wl=
7948lt_prog_compiler_pic=
7949lt_prog_compiler_static=
7950
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7952$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7953
7954  if test "$GCC" = yes; then
7955    lt_prog_compiler_wl='-Wl,'
7956    lt_prog_compiler_static='-static'
7957
7958    case $host_os in
7959      aix*)
7960      # All AIX code is PIC.
7961      if test "$host_cpu" = ia64; then
7962	# AIX 5 now supports IA64 processor
7963	lt_prog_compiler_static='-Bstatic'
7964      fi
7965      ;;
7966
7967    amigaos*)
7968      case $host_cpu in
7969      powerpc)
7970            # see comment about AmigaOS4 .so support
7971            lt_prog_compiler_pic='-fPIC'
7972        ;;
7973      m68k)
7974            # FIXME: we need at least 68020 code to build shared libraries, but
7975            # adding the `-m68020' flag to GCC prevents building anything better,
7976            # like `-m68040'.
7977            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7978        ;;
7979      esac
7980      ;;
7981
7982    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7983      # PIC is the default for these OSes.
7984      ;;
7985
7986    mingw* | cygwin* | pw32* | os2* | cegcc*)
7987      # This hack is so that the source file can tell whether it is being
7988      # built for inclusion in a dll (and should export symbols for example).
7989      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7990      # (--disable-auto-import) libraries
7991      lt_prog_compiler_pic='-DDLL_EXPORT'
7992      ;;
7993
7994    darwin* | rhapsody*)
7995      # PIC is the default on this platform
7996      # Common symbols not allowed in MH_DYLIB files
7997      lt_prog_compiler_pic='-fno-common'
7998      ;;
7999
8000    hpux*)
8001      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8002      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8003      # sets the default TLS model and affects inlining.
8004      case $host_cpu in
8005      hppa*64*)
8006	# +Z the default
8007	;;
8008      *)
8009	lt_prog_compiler_pic='-fPIC'
8010	;;
8011      esac
8012      ;;
8013
8014    interix[3-9]*)
8015      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8016      # Instead, we relocate shared libraries at runtime.
8017      ;;
8018
8019    msdosdjgpp*)
8020      # Just because we use GCC doesn't mean we suddenly get shared libraries
8021      # on systems that don't support them.
8022      lt_prog_compiler_can_build_shared=no
8023      enable_shared=no
8024      ;;
8025
8026    *nto* | *qnx*)
8027      # QNX uses GNU C++, but need to define -shared option too, otherwise
8028      # it will coredump.
8029      lt_prog_compiler_pic='-fPIC -shared'
8030      ;;
8031
8032    sysv4*MP*)
8033      if test -d /usr/nec; then
8034	lt_prog_compiler_pic=-Kconform_pic
8035      fi
8036      ;;
8037
8038    *)
8039      lt_prog_compiler_pic='-fPIC'
8040      ;;
8041    esac
8042  else
8043    # PORTME Check for flag to pass linker flags through the system compiler.
8044    case $host_os in
8045    aix*)
8046      lt_prog_compiler_wl='-Wl,'
8047      if test "$host_cpu" = ia64; then
8048	# AIX 5 now supports IA64 processor
8049	lt_prog_compiler_static='-Bstatic'
8050      else
8051	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8052      fi
8053      ;;
8054
8055    mingw* | cygwin* | pw32* | os2* | cegcc*)
8056      # This hack is so that the source file can tell whether it is being
8057      # built for inclusion in a dll (and should export symbols for example).
8058      lt_prog_compiler_pic='-DDLL_EXPORT'
8059      ;;
8060
8061    hpux9* | hpux10* | hpux11*)
8062      lt_prog_compiler_wl='-Wl,'
8063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064      # not for PA HP-UX.
8065      case $host_cpu in
8066      hppa*64*|ia64*)
8067	# +Z the default
8068	;;
8069      *)
8070	lt_prog_compiler_pic='+Z'
8071	;;
8072      esac
8073      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074      lt_prog_compiler_static='${wl}-a ${wl}archive'
8075      ;;
8076
8077    irix5* | irix6* | nonstopux*)
8078      lt_prog_compiler_wl='-Wl,'
8079      # PIC (with -KPIC) is the default.
8080      lt_prog_compiler_static='-non_shared'
8081      ;;
8082
8083    linux* | k*bsd*-gnu)
8084      case $cc_basename in
8085      # old Intel for x86_64 which still supported -KPIC.
8086      ecc*)
8087	lt_prog_compiler_wl='-Wl,'
8088	lt_prog_compiler_pic='-KPIC'
8089	lt_prog_compiler_static='-static'
8090        ;;
8091      # icc used to be incompatible with GCC.
8092      # ICC 10 doesn't accept -KPIC any more.
8093      icc* | ifort*)
8094	lt_prog_compiler_wl='-Wl,'
8095	lt_prog_compiler_pic='-fPIC'
8096	lt_prog_compiler_static='-static'
8097        ;;
8098      # Lahey Fortran 8.1.
8099      lf95*)
8100	lt_prog_compiler_wl='-Wl,'
8101	lt_prog_compiler_pic='--shared'
8102	lt_prog_compiler_static='--static'
8103	;;
8104      pgcc* | pgf77* | pgf90* | pgf95*)
8105        # Portland Group compilers (*not* the Pentium gcc compiler,
8106	# which looks to be a dead project)
8107	lt_prog_compiler_wl='-Wl,'
8108	lt_prog_compiler_pic='-fpic'
8109	lt_prog_compiler_static='-Bstatic'
8110        ;;
8111      ccc*)
8112        lt_prog_compiler_wl='-Wl,'
8113        # All Alpha code is PIC.
8114        lt_prog_compiler_static='-non_shared'
8115        ;;
8116      xl*)
8117	# IBM XL C 8.0/Fortran 10.1 on PPC
8118	lt_prog_compiler_wl='-Wl,'
8119	lt_prog_compiler_pic='-qpic'
8120	lt_prog_compiler_static='-qstaticlink'
8121	;;
8122      *)
8123	case `$CC -V 2>&1 | sed 5q` in
8124	*Sun\ C*)
8125	  # Sun C 5.9
8126	  lt_prog_compiler_pic='-KPIC'
8127	  lt_prog_compiler_static='-Bstatic'
8128	  lt_prog_compiler_wl='-Wl,'
8129	  ;;
8130	*Sun\ F*)
8131	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132	  lt_prog_compiler_pic='-KPIC'
8133	  lt_prog_compiler_static='-Bstatic'
8134	  lt_prog_compiler_wl=''
8135	  ;;
8136	esac
8137	;;
8138      esac
8139      ;;
8140
8141    newsos6)
8142      lt_prog_compiler_pic='-KPIC'
8143      lt_prog_compiler_static='-Bstatic'
8144      ;;
8145
8146    *nto* | *qnx*)
8147      # QNX uses GNU C++, but need to define -shared option too, otherwise
8148      # it will coredump.
8149      lt_prog_compiler_pic='-fPIC -shared'
8150      ;;
8151
8152    osf3* | osf4* | osf5*)
8153      lt_prog_compiler_wl='-Wl,'
8154      # All OSF/1 code is PIC.
8155      lt_prog_compiler_static='-non_shared'
8156      ;;
8157
8158    rdos*)
8159      lt_prog_compiler_static='-non_shared'
8160      ;;
8161
8162    solaris*)
8163      lt_prog_compiler_pic='-KPIC'
8164      lt_prog_compiler_static='-Bstatic'
8165      case $cc_basename in
8166      f77* | f90* | f95*)
8167	lt_prog_compiler_wl='-Qoption ld ';;
8168      *)
8169	lt_prog_compiler_wl='-Wl,';;
8170      esac
8171      ;;
8172
8173    sunos4*)
8174      lt_prog_compiler_wl='-Qoption ld '
8175      lt_prog_compiler_pic='-PIC'
8176      lt_prog_compiler_static='-Bstatic'
8177      ;;
8178
8179    sysv4 | sysv4.2uw2* | sysv4.3*)
8180      lt_prog_compiler_wl='-Wl,'
8181      lt_prog_compiler_pic='-KPIC'
8182      lt_prog_compiler_static='-Bstatic'
8183      ;;
8184
8185    sysv4*MP*)
8186      if test -d /usr/nec ;then
8187	lt_prog_compiler_pic='-Kconform_pic'
8188	lt_prog_compiler_static='-Bstatic'
8189      fi
8190      ;;
8191
8192    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8193      lt_prog_compiler_wl='-Wl,'
8194      lt_prog_compiler_pic='-KPIC'
8195      lt_prog_compiler_static='-Bstatic'
8196      ;;
8197
8198    unicos*)
8199      lt_prog_compiler_wl='-Wl,'
8200      lt_prog_compiler_can_build_shared=no
8201      ;;
8202
8203    uts4*)
8204      lt_prog_compiler_pic='-pic'
8205      lt_prog_compiler_static='-Bstatic'
8206      ;;
8207
8208    *)
8209      lt_prog_compiler_can_build_shared=no
8210      ;;
8211    esac
8212  fi
8213
8214case $host_os in
8215  # For platforms which do not support PIC, -DPIC is meaningless:
8216  *djgpp*)
8217    lt_prog_compiler_pic=
8218    ;;
8219  *)
8220    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8221    ;;
8222esac
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8224$as_echo "$lt_prog_compiler_pic" >&6; }
8225
8226
8227
8228
8229
8230
8231#
8232# Check to make sure the PIC flag actually works.
8233#
8234if test -n "$lt_prog_compiler_pic"; then
8235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8237if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  lt_cv_prog_compiler_pic_works=no
8241   ac_outfile=conftest.$ac_objext
8242   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244   # Insert the option either (1) after the last *FLAGS variable, or
8245   # (2) before a word containing "conftest.", or (3) at the end.
8246   # Note that $ac_compile itself does not contain backslashes and begins
8247   # with a dollar sign (not a hyphen), so the echo should work correctly.
8248   # The option is referenced via a variable to avoid confusing sed.
8249   lt_compile=`echo "$ac_compile" | $SED \
8250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252   -e 's:$: $lt_compiler_flag:'`
8253   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254   (eval "$lt_compile" 2>conftest.err)
8255   ac_status=$?
8256   cat conftest.err >&5
8257   echo "$as_me:8257: \$? = $ac_status" >&5
8258   if (exit $ac_status) && test -s "$ac_outfile"; then
8259     # The compiler can only warn and ignore the option if not recognized
8260     # So say no if there are warnings other than the usual output.
8261     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8262     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264       lt_cv_prog_compiler_pic_works=yes
8265     fi
8266   fi
8267   $RM conftest*
8268
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8271$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8272
8273if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274    case $lt_prog_compiler_pic in
8275     "" | " "*) ;;
8276     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8277     esac
8278else
8279    lt_prog_compiler_pic=
8280     lt_prog_compiler_can_build_shared=no
8281fi
8282
8283fi
8284
8285
8286
8287
8288
8289
8290#
8291# Check to make sure the static flag actually works.
8292#
8293wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8295$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8296if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  lt_cv_prog_compiler_static_works=no
8300   save_LDFLAGS="$LDFLAGS"
8301   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8302   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8303   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8304     # The linker can only warn and ignore the option if not recognized
8305     # So say no if there are warnings
8306     if test -s conftest.err; then
8307       # Append any errors to the config.log.
8308       cat conftest.err 1>&5
8309       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8310       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311       if diff conftest.exp conftest.er2 >/dev/null; then
8312         lt_cv_prog_compiler_static_works=yes
8313       fi
8314     else
8315       lt_cv_prog_compiler_static_works=yes
8316     fi
8317   fi
8318   $RM -r conftest*
8319   LDFLAGS="$save_LDFLAGS"
8320
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8323$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8324
8325if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8326    :
8327else
8328    lt_prog_compiler_static=
8329fi
8330
8331
8332
8333
8334
8335
8336
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  lt_cv_prog_compiler_c_o=no
8343   $RM -r conftest 2>/dev/null
8344   mkdir conftest
8345   cd conftest
8346   mkdir out
8347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349   lt_compiler_flag="-o out/conftest2.$ac_objext"
8350   # Insert the option either (1) after the last *FLAGS variable, or
8351   # (2) before a word containing "conftest.", or (3) at the end.
8352   # Note that $ac_compile itself does not contain backslashes and begins
8353   # with a dollar sign (not a hyphen), so the echo should work correctly.
8354   lt_compile=`echo "$ac_compile" | $SED \
8355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357   -e 's:$: $lt_compiler_flag:'`
8358   (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8359   (eval "$lt_compile" 2>out/conftest.err)
8360   ac_status=$?
8361   cat out/conftest.err >&5
8362   echo "$as_me:8362: \$? = $ac_status" >&5
8363   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364   then
8365     # The compiler can only warn and ignore the option if not recognized
8366     # So say no if there are warnings
8367     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8368     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370       lt_cv_prog_compiler_c_o=yes
8371     fi
8372   fi
8373   chmod u+w . 2>&5
8374   $RM conftest*
8375   # SGI C++ compiler will create directory out/ii_files/ for
8376   # template instantiation
8377   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378   $RM out/* && rmdir out
8379   cd ..
8380   $RM -r conftest
8381   $RM conftest*
8382
8383fi
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390
8391
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8393$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8394if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  lt_cv_prog_compiler_c_o=no
8398   $RM -r conftest 2>/dev/null
8399   mkdir conftest
8400   cd conftest
8401   mkdir out
8402   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8403
8404   lt_compiler_flag="-o out/conftest2.$ac_objext"
8405   # Insert the option either (1) after the last *FLAGS variable, or
8406   # (2) before a word containing "conftest.", or (3) at the end.
8407   # Note that $ac_compile itself does not contain backslashes and begins
8408   # with a dollar sign (not a hyphen), so the echo should work correctly.
8409   lt_compile=`echo "$ac_compile" | $SED \
8410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8412   -e 's:$: $lt_compiler_flag:'`
8413   (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
8414   (eval "$lt_compile" 2>out/conftest.err)
8415   ac_status=$?
8416   cat out/conftest.err >&5
8417   echo "$as_me:8417: \$? = $ac_status" >&5
8418   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8419   then
8420     # The compiler can only warn and ignore the option if not recognized
8421     # So say no if there are warnings
8422     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8423     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8424     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8425       lt_cv_prog_compiler_c_o=yes
8426     fi
8427   fi
8428   chmod u+w . 2>&5
8429   $RM conftest*
8430   # SGI C++ compiler will create directory out/ii_files/ for
8431   # template instantiation
8432   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8433   $RM out/* && rmdir out
8434   cd ..
8435   $RM -r conftest
8436   $RM conftest*
8437
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8440$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8441
8442
8443
8444
8445hard_links="nottested"
8446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447  # do not overwrite the value of need_locks provided by the user
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8449$as_echo_n "checking if we can lock with hard links... " >&6; }
8450  hard_links=yes
8451  $RM conftest*
8452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453  touch conftest.a
8454  ln conftest.a conftest.b 2>&5 || hard_links=no
8455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8457$as_echo "$hard_links" >&6; }
8458  if test "$hard_links" = no; then
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461    need_locks=warn
8462  fi
8463else
8464  need_locks=no
8465fi
8466
8467
8468
8469
8470
8471
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8473$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8474
8475  runpath_var=
8476  allow_undefined_flag=
8477  always_export_symbols=no
8478  archive_cmds=
8479  archive_expsym_cmds=
8480  compiler_needs_object=no
8481  enable_shared_with_static_runtimes=no
8482  export_dynamic_flag_spec=
8483  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8484  hardcode_automatic=no
8485  hardcode_direct=no
8486  hardcode_direct_absolute=no
8487  hardcode_libdir_flag_spec=
8488  hardcode_libdir_flag_spec_ld=
8489  hardcode_libdir_separator=
8490  hardcode_minus_L=no
8491  hardcode_shlibpath_var=unsupported
8492  inherit_rpath=no
8493  link_all_deplibs=unknown
8494  module_cmds=
8495  module_expsym_cmds=
8496  old_archive_from_new_cmds=
8497  old_archive_from_expsyms_cmds=
8498  thread_safe_flag_spec=
8499  whole_archive_flag_spec=
8500  # include_expsyms should be a list of space-separated symbols to be *always*
8501  # included in the symbol list
8502  include_expsyms=
8503  # exclude_expsyms can be an extended regexp of symbols to exclude
8504  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506  # as well as any symbol that contains `d'.
8507  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509  # platforms (ab)use it in PIC code, but their linkers get confused if
8510  # the symbol is explicitly referenced.  Since portable code cannot
8511  # rely on this symbol name, it's probably fine to never include it in
8512  # preloaded symbol tables.
8513  # Exclude shared library initialization/finalization symbols.
8514  extract_expsyms_cmds=
8515
8516  case $host_os in
8517  cygwin* | mingw* | pw32* | cegcc*)
8518    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519    # When not using gcc, we currently assume that we are using
8520    # Microsoft Visual C++.
8521    if test "$GCC" != yes; then
8522      with_gnu_ld=no
8523    fi
8524    ;;
8525  interix*)
8526    # we just hope/assume this is gcc and not c89 (= MSVC++)
8527    with_gnu_ld=yes
8528    ;;
8529  openbsd*)
8530    with_gnu_ld=no
8531    ;;
8532  esac
8533
8534  ld_shlibs=yes
8535  if test "$with_gnu_ld" = yes; then
8536    # If archive_cmds runs LD, not CC, wlarc should be empty
8537    wlarc='${wl}'
8538
8539    # Set some defaults for GNU ld with shared library support. These
8540    # are reset later if shared libraries are not supported. Putting them
8541    # here allows them to be overridden if necessary.
8542    runpath_var=LD_RUN_PATH
8543    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544    export_dynamic_flag_spec='${wl}--export-dynamic'
8545    # ancient GNU ld didn't support --whole-archive et. al.
8546    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8547      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8548    else
8549      whole_archive_flag_spec=
8550    fi
8551    supports_anon_versioning=no
8552    case `$LD -v 2>&1` in
8553      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8554      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8555      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8556      *\ 2.11.*) ;; # other 2.11 versions
8557      *) supports_anon_versioning=yes ;;
8558    esac
8559
8560    # See if GNU ld supports shared libraries.
8561    case $host_os in
8562    aix[3-9]*)
8563      # On AIX/PPC, the GNU linker is very broken
8564      if test "$host_cpu" != ia64; then
8565	ld_shlibs=no
8566	cat <<_LT_EOF 1>&2
8567
8568*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8569*** to be unable to reliably create shared libraries on AIX.
8570*** Therefore, libtool is disabling shared libraries support.  If you
8571*** really care for shared libraries, you may want to modify your PATH
8572*** so that a non-GNU linker is found, and then restart.
8573
8574_LT_EOF
8575      fi
8576      ;;
8577
8578    amigaos*)
8579      case $host_cpu in
8580      powerpc)
8581            # see comment about AmigaOS4 .so support
8582            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583            archive_expsym_cmds=''
8584        ;;
8585      m68k)
8586            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)'
8587            hardcode_libdir_flag_spec='-L$libdir'
8588            hardcode_minus_L=yes
8589        ;;
8590      esac
8591      ;;
8592
8593    beos*)
8594      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595	allow_undefined_flag=unsupported
8596	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8597	# support --undefined.  This deserves some investigation.  FIXME
8598	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599      else
8600	ld_shlibs=no
8601      fi
8602      ;;
8603
8604    cygwin* | mingw* | pw32* | cegcc*)
8605      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606      # as there is no search path for DLLs.
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      allow_undefined_flag=unsupported
8609      always_export_symbols=no
8610      enable_shared_with_static_runtimes=yes
8611      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8612
8613      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8614        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615	# If the export-symbols file already is a .def file (1st line
8616	# is EXPORTS), use it as is; otherwise, prepend...
8617	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618	  cp $export_symbols $output_objdir/$soname.def;
8619	else
8620	  echo EXPORTS > $output_objdir/$soname.def;
8621	  cat $export_symbols >> $output_objdir/$soname.def;
8622	fi~
8623	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624      else
8625	ld_shlibs=no
8626      fi
8627      ;;
8628
8629    interix[3-9]*)
8630      hardcode_direct=no
8631      hardcode_shlibpath_var=no
8632      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633      export_dynamic_flag_spec='${wl}-E'
8634      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635      # Instead, shared libraries are loaded at an image base (0x10000000 by
8636      # default) and relocated if they conflict, which is a slow very memory
8637      # consuming and fragmenting process.  To avoid this, we pick a random,
8638      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8640      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641      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'
8642      ;;
8643
8644    gnu* | linux* | tpf* | k*bsd*-gnu)
8645      tmp_diet=no
8646      if test "$host_os" = linux-dietlibc; then
8647	case $cc_basename in
8648	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8649	esac
8650      fi
8651      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652	 && test "$tmp_diet" = no
8653      then
8654	tmp_addflag=
8655	tmp_sharedflag='-shared'
8656	case $cc_basename,$host_cpu in
8657        pgcc*)				# Portland Group C compiler
8658	  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'
8659	  tmp_addflag=' $pic_flag'
8660	  ;;
8661	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8662	  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'
8663	  tmp_addflag=' $pic_flag -Mnomain' ;;
8664	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8665	  tmp_addflag=' -i_dynamic' ;;
8666	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8667	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8668	ifc* | ifort*)			# Intel Fortran compiler
8669	  tmp_addflag=' -nofor_main' ;;
8670	lf95*)				# Lahey Fortran 8.1
8671	  whole_archive_flag_spec=
8672	  tmp_sharedflag='--shared' ;;
8673	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8674	  tmp_sharedflag='-qmkshrobj'
8675	  tmp_addflag= ;;
8676	esac
8677	case `$CC -V 2>&1 | sed 5q` in
8678	*Sun\ C*)			# Sun C 5.9
8679	  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'
8680	  compiler_needs_object=yes
8681	  tmp_sharedflag='-G' ;;
8682	*Sun\ F*)			# Sun Fortran 8.3
8683	  tmp_sharedflag='-G' ;;
8684	esac
8685	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686
8687        if test "x$supports_anon_versioning" = xyes; then
8688          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8689	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8690	    echo "local: *; };" >> $output_objdir/$libname.ver~
8691	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8692        fi
8693
8694	case $cc_basename in
8695	xlf*)
8696	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8697	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8698	  hardcode_libdir_flag_spec=
8699	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8700	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8701	  if test "x$supports_anon_versioning" = xyes; then
8702	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704	      echo "local: *; };" >> $output_objdir/$libname.ver~
8705	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8706	  fi
8707	  ;;
8708	esac
8709      else
8710        ld_shlibs=no
8711      fi
8712      ;;
8713
8714    netbsd* | netbsdelf*-gnu)
8715      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8716	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8717	wlarc=
8718      else
8719	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721      fi
8722      ;;
8723
8724    solaris*)
8725      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8726	ld_shlibs=no
8727	cat <<_LT_EOF 1>&2
8728
8729*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8730*** create shared libraries on Solaris systems.  Therefore, libtool
8731*** is disabling shared libraries support.  We urge you to upgrade GNU
8732*** binutils to release 2.9.1 or newer.  Another option is to modify
8733*** your PATH or compiler configuration so that the native linker is
8734*** used, and then restart.
8735
8736_LT_EOF
8737      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740      else
8741	ld_shlibs=no
8742      fi
8743      ;;
8744
8745    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8746      case `$LD -v 2>&1` in
8747        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8748	ld_shlibs=no
8749	cat <<_LT_EOF 1>&2
8750
8751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8752*** reliably create shared libraries on SCO systems.  Therefore, libtool
8753*** is disabling shared libraries support.  We urge you to upgrade GNU
8754*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8755*** your PATH or compiler configuration so that the native linker is
8756*** used, and then restart.
8757
8758_LT_EOF
8759	;;
8760	*)
8761	  # For security reasons, it is highly recommended that you always
8762	  # use absolute paths for naming shared libraries, and exclude the
8763	  # DT_RUNPATH tag from executables and libraries.  But doing so
8764	  # requires that you compile everything twice, which is a pain.
8765	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769	  else
8770	    ld_shlibs=no
8771	  fi
8772	;;
8773      esac
8774      ;;
8775
8776    sunos4*)
8777      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778      wlarc=
8779      hardcode_direct=yes
8780      hardcode_shlibpath_var=no
8781      ;;
8782
8783    *)
8784      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8787      else
8788	ld_shlibs=no
8789      fi
8790      ;;
8791    esac
8792
8793    if test "$ld_shlibs" = no; then
8794      runpath_var=
8795      hardcode_libdir_flag_spec=
8796      export_dynamic_flag_spec=
8797      whole_archive_flag_spec=
8798    fi
8799  else
8800    # PORTME fill in a description of your system's linker (not GNU ld)
8801    case $host_os in
8802    aix3*)
8803      allow_undefined_flag=unsupported
8804      always_export_symbols=yes
8805      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'
8806      # Note: this linker hardcodes the directories in LIBPATH if there
8807      # are no directories specified by -L.
8808      hardcode_minus_L=yes
8809      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8810	# Neither direct hardcoding nor static linking is supported with a
8811	# broken collect2.
8812	hardcode_direct=unsupported
8813      fi
8814      ;;
8815
8816    aix[4-9]*)
8817      if test "$host_cpu" = ia64; then
8818	# On IA64, the linker does run time linking by default, so we don't
8819	# have to do anything special.
8820	aix_use_runtimelinking=no
8821	exp_sym_flag='-Bexport'
8822	no_entry_flag=""
8823      else
8824	# If we're using GNU nm, then we don't want the "-C" option.
8825	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8826	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8827	  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'
8828	else
8829	  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'
8830	fi
8831	aix_use_runtimelinking=no
8832
8833	# Test if we are trying to use run time linking or normal
8834	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8835	# need to do runtime linking.
8836	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8837	  for ld_flag in $LDFLAGS; do
8838	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8839	    aix_use_runtimelinking=yes
8840	    break
8841	  fi
8842	  done
8843	  ;;
8844	esac
8845
8846	exp_sym_flag='-bexport'
8847	no_entry_flag='-bnoentry'
8848      fi
8849
8850      # When large executables or shared objects are built, AIX ld can
8851      # have problems creating the table of contents.  If linking a library
8852      # or program results in "error TOC overflow" add -mminimal-toc to
8853      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8854      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8855
8856      archive_cmds=''
8857      hardcode_direct=yes
8858      hardcode_direct_absolute=yes
8859      hardcode_libdir_separator=':'
8860      link_all_deplibs=yes
8861      file_list_spec='${wl}-f,'
8862
8863      if test "$GCC" = yes; then
8864	case $host_os in aix4.[012]|aix4.[012].*)
8865	# We only want to do this on AIX 4.2 and lower, the check
8866	# below for broken collect2 doesn't work under 4.3+
8867	  collect2name=`${CC} -print-prog-name=collect2`
8868	  if test -f "$collect2name" &&
8869	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8870	  then
8871	  # We have reworked collect2
8872	  :
8873	  else
8874	  # We have old collect2
8875	  hardcode_direct=unsupported
8876	  # It fails to find uninstalled libraries when the uninstalled
8877	  # path is not listed in the libpath.  Setting hardcode_minus_L
8878	  # to unsupported forces relinking
8879	  hardcode_minus_L=yes
8880	  hardcode_libdir_flag_spec='-L$libdir'
8881	  hardcode_libdir_separator=
8882	  fi
8883	  ;;
8884	esac
8885	shared_flag='-shared'
8886	if test "$aix_use_runtimelinking" = yes; then
8887	  shared_flag="$shared_flag "'${wl}-G'
8888	fi
8889	link_all_deplibs=no
8890      else
8891	# not using gcc
8892	if test "$host_cpu" = ia64; then
8893	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8894	# chokes on -Wl,-G. The following line is correct:
8895	  shared_flag='-G'
8896	else
8897	  if test "$aix_use_runtimelinking" = yes; then
8898	    shared_flag='${wl}-G'
8899	  else
8900	    shared_flag='${wl}-bM:SRE'
8901	  fi
8902	fi
8903      fi
8904
8905      export_dynamic_flag_spec='${wl}-bexpall'
8906      # It seems that -bexpall does not export symbols beginning with
8907      # underscore (_), so it is better to generate a list of symbols to export.
8908      always_export_symbols=yes
8909      if test "$aix_use_runtimelinking" = yes; then
8910	# Warning - without using the other runtime loading flags (-brtl),
8911	# -berok will link without error, but may produce a broken library.
8912	allow_undefined_flag='-berok'
8913        # Determine the default libpath from the value encoded in an
8914        # empty executable.
8915        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917
8918int
8919main ()
8920{
8921
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926if ac_fn_c_try_link "$LINENO"; then :
8927
8928lt_aix_libpath_sed='
8929    /Import File Strings/,/^$/ {
8930	/^0/ {
8931	    s/^0  *\(.*\)$/\1/
8932	    p
8933	}
8934    }'
8935aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8936# Check for a 64-bit object if we didn't find anything.
8937if test -z "$aix_libpath"; then
8938  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939fi
8940fi
8941rm -f core conftest.err conftest.$ac_objext \
8942    conftest$ac_exeext conftest.$ac_ext
8943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944
8945        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946        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"
8947      else
8948	if test "$host_cpu" = ia64; then
8949	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8950	  allow_undefined_flag="-z nodefs"
8951	  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"
8952	else
8953	 # Determine the default libpath from the value encoded in an
8954	 # empty executable.
8955	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957
8958int
8959main ()
8960{
8961
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966if ac_fn_c_try_link "$LINENO"; then :
8967
8968lt_aix_libpath_sed='
8969    /Import File Strings/,/^$/ {
8970	/^0/ {
8971	    s/^0  *\(.*\)$/\1/
8972	    p
8973	}
8974    }'
8975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976# Check for a 64-bit object if we didn't find anything.
8977if test -z "$aix_libpath"; then
8978  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979fi
8980fi
8981rm -f core conftest.err conftest.$ac_objext \
8982    conftest$ac_exeext conftest.$ac_ext
8983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8984
8985	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986	  # Warning - without using the other run time loading flags,
8987	  # -berok will link without error, but may produce a broken library.
8988	  no_undefined_flag=' ${wl}-bernotok'
8989	  allow_undefined_flag=' ${wl}-berok'
8990	  # Exported symbols can be pulled into shared objects from archives
8991	  whole_archive_flag_spec='$convenience'
8992	  archive_cmds_need_lc=yes
8993	  # This is similar to how AIX traditionally builds its shared libraries.
8994	  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'
8995	fi
8996      fi
8997      ;;
8998
8999    amigaos*)
9000      case $host_cpu in
9001      powerpc)
9002            # see comment about AmigaOS4 .so support
9003            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004            archive_expsym_cmds=''
9005        ;;
9006      m68k)
9007            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)'
9008            hardcode_libdir_flag_spec='-L$libdir'
9009            hardcode_minus_L=yes
9010        ;;
9011      esac
9012      ;;
9013
9014    bsdi[45]*)
9015      export_dynamic_flag_spec=-rdynamic
9016      ;;
9017
9018    cygwin* | mingw* | pw32* | cegcc*)
9019      # When not using gcc, we currently assume that we are using
9020      # Microsoft Visual C++.
9021      # hardcode_libdir_flag_spec is actually meaningless, as there is
9022      # no search path for DLLs.
9023      hardcode_libdir_flag_spec=' '
9024      allow_undefined_flag=unsupported
9025      # Tell ltmain to make .lib files, not .a files.
9026      libext=lib
9027      # Tell ltmain to make .dll files, not .so files.
9028      shrext_cmds=".dll"
9029      # FIXME: Setting linknames here is a bad hack.
9030      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9031      # The linker will automatically build a .lib file if we build a DLL.
9032      old_archive_from_new_cmds='true'
9033      # FIXME: Should let the user specify the lib program.
9034      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9035      fix_srcfile_path='`cygpath -w "$srcfile"`'
9036      enable_shared_with_static_runtimes=yes
9037      ;;
9038
9039    darwin* | rhapsody*)
9040
9041
9042  archive_cmds_need_lc=no
9043  hardcode_direct=no
9044  hardcode_automatic=yes
9045  hardcode_shlibpath_var=unsupported
9046  whole_archive_flag_spec=''
9047  link_all_deplibs=yes
9048  allow_undefined_flag="$_lt_dar_allow_undefined"
9049  case $cc_basename in
9050     ifort*) _lt_dar_can_shared=yes ;;
9051     *) _lt_dar_can_shared=$GCC ;;
9052  esac
9053  if test "$_lt_dar_can_shared" = "yes"; then
9054    output_verbose_link_cmd=echo
9055    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9056    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9057    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}"
9058    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}"
9059
9060  else
9061  ld_shlibs=no
9062  fi
9063
9064      ;;
9065
9066    dgux*)
9067      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068      hardcode_libdir_flag_spec='-L$libdir'
9069      hardcode_shlibpath_var=no
9070      ;;
9071
9072    freebsd1*)
9073      ld_shlibs=no
9074      ;;
9075
9076    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077    # support.  Future versions do this automatically, but an explicit c++rt0.o
9078    # does not break anything, and helps significantly (at the cost of a little
9079    # extra space).
9080    freebsd2.2*)
9081      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082      hardcode_libdir_flag_spec='-R$libdir'
9083      hardcode_direct=yes
9084      hardcode_shlibpath_var=no
9085      ;;
9086
9087    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9088    freebsd2*)
9089      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9090      hardcode_direct=yes
9091      hardcode_minus_L=yes
9092      hardcode_shlibpath_var=no
9093      ;;
9094
9095    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9096    freebsd* | dragonfly*)
9097      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098      hardcode_libdir_flag_spec='-R$libdir'
9099      hardcode_direct=yes
9100      hardcode_shlibpath_var=no
9101      ;;
9102
9103    hpux9*)
9104      if test "$GCC" = yes; then
9105	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'
9106      else
9107	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'
9108      fi
9109      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110      hardcode_libdir_separator=:
9111      hardcode_direct=yes
9112
9113      # hardcode_minus_L: Not really in the search PATH,
9114      # but as the default location of the library.
9115      hardcode_minus_L=yes
9116      export_dynamic_flag_spec='${wl}-E'
9117      ;;
9118
9119    hpux10*)
9120      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9121	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122      else
9123	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9124      fi
9125      if test "$with_gnu_ld" = no; then
9126	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127	hardcode_libdir_flag_spec_ld='+b $libdir'
9128	hardcode_libdir_separator=:
9129	hardcode_direct=yes
9130	hardcode_direct_absolute=yes
9131	export_dynamic_flag_spec='${wl}-E'
9132	# hardcode_minus_L: Not really in the search PATH,
9133	# but as the default location of the library.
9134	hardcode_minus_L=yes
9135      fi
9136      ;;
9137
9138    hpux11*)
9139      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9140	case $host_cpu in
9141	hppa*64*)
9142	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9143	  ;;
9144	ia64*)
9145	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9146	  ;;
9147	*)
9148	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9149	  ;;
9150	esac
9151      else
9152	case $host_cpu in
9153	hppa*64*)
9154	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155	  ;;
9156	ia64*)
9157	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9158	  ;;
9159	*)
9160	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161	  ;;
9162	esac
9163      fi
9164      if test "$with_gnu_ld" = no; then
9165	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166	hardcode_libdir_separator=:
9167
9168	case $host_cpu in
9169	hppa*64*|ia64*)
9170	  hardcode_direct=no
9171	  hardcode_shlibpath_var=no
9172	  ;;
9173	*)
9174	  hardcode_direct=yes
9175	  hardcode_direct_absolute=yes
9176	  export_dynamic_flag_spec='${wl}-E'
9177
9178	  # hardcode_minus_L: Not really in the search PATH,
9179	  # but as the default location of the library.
9180	  hardcode_minus_L=yes
9181	  ;;
9182	esac
9183      fi
9184      ;;
9185
9186    irix5* | irix6* | nonstopux*)
9187      if test "$GCC" = yes; then
9188	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'
9189	# Try to use the -exported_symbol ld option, if it does not
9190	# work, assume that -exports_file does not work either and
9191	# implicitly export all symbols.
9192        save_LDFLAGS="$LDFLAGS"
9193        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9194        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195/* end confdefs.h.  */
9196int foo(void) {}
9197_ACEOF
9198if ac_fn_c_try_link "$LINENO"; then :
9199  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'
9200
9201fi
9202rm -f core conftest.err conftest.$ac_objext \
9203    conftest$ac_exeext conftest.$ac_ext
9204        LDFLAGS="$save_LDFLAGS"
9205      else
9206	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'
9207	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'
9208      fi
9209      archive_cmds_need_lc='no'
9210      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211      hardcode_libdir_separator=:
9212      inherit_rpath=yes
9213      link_all_deplibs=yes
9214      ;;
9215
9216    netbsd* | netbsdelf*-gnu)
9217      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9219      else
9220	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9221      fi
9222      hardcode_libdir_flag_spec='-R$libdir'
9223      hardcode_direct=yes
9224      hardcode_shlibpath_var=no
9225      ;;
9226
9227    newsos6)
9228      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9229      hardcode_direct=yes
9230      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231      hardcode_libdir_separator=:
9232      hardcode_shlibpath_var=no
9233      ;;
9234
9235    *nto* | *qnx*)
9236      ;;
9237
9238    openbsd*)
9239      if test -f /usr/libexec/ld.so; then
9240	hardcode_direct=yes
9241	hardcode_shlibpath_var=no
9242	hardcode_direct_absolute=yes
9243	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9245	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9246	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247	  export_dynamic_flag_spec='${wl}-E'
9248	else
9249	  case $host_os in
9250	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9251	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252	     hardcode_libdir_flag_spec='-R$libdir'
9253	     ;;
9254	   *)
9255	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9256	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257	     ;;
9258	  esac
9259	fi
9260      else
9261	ld_shlibs=no
9262      fi
9263      ;;
9264
9265    os2*)
9266      hardcode_libdir_flag_spec='-L$libdir'
9267      hardcode_minus_L=yes
9268      allow_undefined_flag=unsupported
9269      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'
9270      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9271      ;;
9272
9273    osf3*)
9274      if test "$GCC" = yes; then
9275	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276	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'
9277      else
9278	allow_undefined_flag=' -expect_unresolved \*'
9279	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'
9280      fi
9281      archive_cmds_need_lc='no'
9282      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283      hardcode_libdir_separator=:
9284      ;;
9285
9286    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9287      if test "$GCC" = yes; then
9288	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289	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'
9290	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291      else
9292	allow_undefined_flag=' -expect_unresolved \*'
9293	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'
9294	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~
9295	$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'
9296
9297	# Both c and cxx compiler support -rpath directly
9298	hardcode_libdir_flag_spec='-rpath $libdir'
9299      fi
9300      archive_cmds_need_lc='no'
9301      hardcode_libdir_separator=:
9302      ;;
9303
9304    solaris*)
9305      no_undefined_flag=' -z defs'
9306      if test "$GCC" = yes; then
9307	wlarc='${wl}'
9308	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9311      else
9312	case `$CC -V 2>&1` in
9313	*"Compilers 5.0"*)
9314	  wlarc=''
9315	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9318	  ;;
9319	*)
9320	  wlarc='${wl}'
9321	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9324	  ;;
9325	esac
9326      fi
9327      hardcode_libdir_flag_spec='-R$libdir'
9328      hardcode_shlibpath_var=no
9329      case $host_os in
9330      solaris2.[0-5] | solaris2.[0-5].*) ;;
9331      *)
9332	# The compiler driver will combine and reorder linker options,
9333	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9334	# but is careful enough not to reorder.
9335	# Supported since Solaris 2.6 (maybe 2.5.1?)
9336	if test "$GCC" = yes; then
9337	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9338	else
9339	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9340	fi
9341	;;
9342      esac
9343      link_all_deplibs=yes
9344      ;;
9345
9346    sunos4*)
9347      if test "x$host_vendor" = xsequent; then
9348	# Use $CC to link under sequent, because it throws in some extra .o
9349	# files that make .init and .fini sections work.
9350	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9351      else
9352	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9353      fi
9354      hardcode_libdir_flag_spec='-L$libdir'
9355      hardcode_direct=yes
9356      hardcode_minus_L=yes
9357      hardcode_shlibpath_var=no
9358      ;;
9359
9360    sysv4)
9361      case $host_vendor in
9362	sni)
9363	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364	  hardcode_direct=yes # is this really true???
9365	;;
9366	siemens)
9367	  ## LD is ld it makes a PLAMLIB
9368	  ## CC just makes a GrossModule.
9369	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370	  reload_cmds='$CC -r -o $output$reload_objs'
9371	  hardcode_direct=no
9372        ;;
9373	motorola)
9374	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9376	;;
9377      esac
9378      runpath_var='LD_RUN_PATH'
9379      hardcode_shlibpath_var=no
9380      ;;
9381
9382    sysv4.3*)
9383      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384      hardcode_shlibpath_var=no
9385      export_dynamic_flag_spec='-Bexport'
9386      ;;
9387
9388    sysv4*MP*)
9389      if test -d /usr/nec; then
9390	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391	hardcode_shlibpath_var=no
9392	runpath_var=LD_RUN_PATH
9393	hardcode_runpath_var=yes
9394	ld_shlibs=yes
9395      fi
9396      ;;
9397
9398    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9399      no_undefined_flag='${wl}-z,text'
9400      archive_cmds_need_lc=no
9401      hardcode_shlibpath_var=no
9402      runpath_var='LD_RUN_PATH'
9403
9404      if test "$GCC" = yes; then
9405	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407      else
9408	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410      fi
9411      ;;
9412
9413    sysv5* | sco3.2v5* | sco5v6*)
9414      # Note: We can NOT use -z defs as we might desire, because we do not
9415      # link with -lc, and that would cause any symbols used from libc to
9416      # always be unresolved, which means just about no library would
9417      # ever link correctly.  If we're not using GNU ld we use -z text
9418      # though, which does catch some bad symbols but isn't as heavy-handed
9419      # as -z defs.
9420      no_undefined_flag='${wl}-z,text'
9421      allow_undefined_flag='${wl}-z,nodefs'
9422      archive_cmds_need_lc=no
9423      hardcode_shlibpath_var=no
9424      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9425      hardcode_libdir_separator=':'
9426      link_all_deplibs=yes
9427      export_dynamic_flag_spec='${wl}-Bexport'
9428      runpath_var='LD_RUN_PATH'
9429
9430      if test "$GCC" = yes; then
9431	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433      else
9434	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436      fi
9437      ;;
9438
9439    uts4*)
9440      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441      hardcode_libdir_flag_spec='-L$libdir'
9442      hardcode_shlibpath_var=no
9443      ;;
9444
9445    *)
9446      ld_shlibs=no
9447      ;;
9448    esac
9449
9450    if test x$host_vendor = xsni; then
9451      case $host in
9452      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9453	export_dynamic_flag_spec='${wl}-Blargedynsym'
9454	;;
9455      esac
9456    fi
9457  fi
9458
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9460$as_echo "$ld_shlibs" >&6; }
9461test "$ld_shlibs" = no && can_build_shared=no
9462
9463with_gnu_ld=$with_gnu_ld
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479#
9480# Do we need to explicitly link libc?
9481#
9482case "x$archive_cmds_need_lc" in
9483x|xyes)
9484  # Assume -lc should be added
9485  archive_cmds_need_lc=yes
9486
9487  if test "$enable_shared" = yes && test "$GCC" = yes; then
9488    case $archive_cmds in
9489    *'~'*)
9490      # FIXME: we may have to deal with multi-command sequences.
9491      ;;
9492    '$CC '*)
9493      # Test whether the compiler implicitly links with -lc since on some
9494      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9495      # to ld, don't add -lc before -lgcc.
9496      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9497$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9498      $RM conftest*
9499      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9500
9501      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9502  (eval $ac_compile) 2>&5
9503  ac_status=$?
9504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9505  test $ac_status = 0; } 2>conftest.err; then
9506        soname=conftest
9507        lib=conftest
9508        libobjs=conftest.$ac_objext
9509        deplibs=
9510        wl=$lt_prog_compiler_wl
9511	pic_flag=$lt_prog_compiler_pic
9512        compiler_flags=-v
9513        linker_flags=-v
9514        verstring=
9515        output_objdir=.
9516        libname=conftest
9517        lt_save_allow_undefined_flag=$allow_undefined_flag
9518        allow_undefined_flag=
9519        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9520  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9521  ac_status=$?
9522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523  test $ac_status = 0; }
9524        then
9525	  archive_cmds_need_lc=no
9526        else
9527	  archive_cmds_need_lc=yes
9528        fi
9529        allow_undefined_flag=$lt_save_allow_undefined_flag
9530      else
9531        cat conftest.err 1>&5
9532      fi
9533      $RM conftest*
9534      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9535$as_echo "$archive_cmds_need_lc" >&6; }
9536      ;;
9537    esac
9538  fi
9539  ;;
9540esac
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9699$as_echo_n "checking dynamic linker characteristics... " >&6; }
9700
9701if test "$GCC" = yes; then
9702  case $host_os in
9703    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9704    *) lt_awk_arg="/^libraries:/" ;;
9705  esac
9706  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9707  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9708    # if the path contains ";" then we assume it to be the separator
9709    # otherwise default to the standard path separator (i.e. ":") - it is
9710    # assumed that no part of a normal pathname contains ";" but that should
9711    # okay in the real world where ";" in dirpaths is itself problematic.
9712    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9713  else
9714    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9715  fi
9716  # Ok, now we have the path, separated by spaces, we can step through it
9717  # and add multilib dir if necessary.
9718  lt_tmp_lt_search_path_spec=
9719  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9720  for lt_sys_path in $lt_search_path_spec; do
9721    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9722      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9723    else
9724      test -d "$lt_sys_path" && \
9725	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9726    fi
9727  done
9728  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9729BEGIN {RS=" "; FS="/|\n";} {
9730  lt_foo="";
9731  lt_count=0;
9732  for (lt_i = NF; lt_i > 0; lt_i--) {
9733    if ($lt_i != "" && $lt_i != ".") {
9734      if ($lt_i == "..") {
9735        lt_count++;
9736      } else {
9737        if (lt_count == 0) {
9738          lt_foo="/" $lt_i lt_foo;
9739        } else {
9740          lt_count--;
9741        }
9742      }
9743    }
9744  }
9745  if (lt_foo != "") { lt_freq[lt_foo]++; }
9746  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9747}'`
9748  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9749else
9750  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9751fi
9752library_names_spec=
9753libname_spec='lib$name'
9754soname_spec=
9755shrext_cmds=".so"
9756postinstall_cmds=
9757postuninstall_cmds=
9758finish_cmds=
9759finish_eval=
9760shlibpath_var=
9761shlibpath_overrides_runpath=unknown
9762version_type=none
9763dynamic_linker="$host_os ld.so"
9764sys_lib_dlsearch_path_spec="/lib /usr/lib"
9765need_lib_prefix=unknown
9766hardcode_into_libs=no
9767
9768# when you set need_version to no, make sure it does not cause -set_version
9769# flags to be left without arguments
9770need_version=unknown
9771
9772case $host_os in
9773aix3*)
9774  version_type=linux
9775  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9776  shlibpath_var=LIBPATH
9777
9778  # AIX 3 has no versioning support, so we append a major version to the name.
9779  soname_spec='${libname}${release}${shared_ext}$major'
9780  ;;
9781
9782aix[4-9]*)
9783  version_type=linux
9784  need_lib_prefix=no
9785  need_version=no
9786  hardcode_into_libs=yes
9787  if test "$host_cpu" = ia64; then
9788    # AIX 5 supports IA64
9789    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9790    shlibpath_var=LD_LIBRARY_PATH
9791  else
9792    # With GCC up to 2.95.x, collect2 would create an import file
9793    # for dependence libraries.  The import file would start with
9794    # the line `#! .'.  This would cause the generated library to
9795    # depend on `.', always an invalid library.  This was fixed in
9796    # development snapshots of GCC prior to 3.0.
9797    case $host_os in
9798      aix4 | aix4.[01] | aix4.[01].*)
9799      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9800	   echo ' yes '
9801	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9802	:
9803      else
9804	can_build_shared=no
9805      fi
9806      ;;
9807    esac
9808    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9809    # soname into executable. Probably we can add versioning support to
9810    # collect2, so additional links can be useful in future.
9811    if test "$aix_use_runtimelinking" = yes; then
9812      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9813      # instead of lib<name>.a to let people know that these are not
9814      # typical AIX shared libraries.
9815      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816    else
9817      # We preserve .a as extension for shared libraries through AIX4.2
9818      # and later when we are not doing run time linking.
9819      library_names_spec='${libname}${release}.a $libname.a'
9820      soname_spec='${libname}${release}${shared_ext}$major'
9821    fi
9822    shlibpath_var=LIBPATH
9823  fi
9824  ;;
9825
9826amigaos*)
9827  case $host_cpu in
9828  powerpc)
9829    # Since July 2007 AmigaOS4 officially supports .so libraries.
9830    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832    ;;
9833  m68k)
9834    library_names_spec='$libname.ixlibrary $libname.a'
9835    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836    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'
9837    ;;
9838  esac
9839  ;;
9840
9841beos*)
9842  library_names_spec='${libname}${shared_ext}'
9843  dynamic_linker="$host_os ld.so"
9844  shlibpath_var=LIBRARY_PATH
9845  ;;
9846
9847bsdi[45]*)
9848  version_type=linux
9849  need_version=no
9850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851  soname_spec='${libname}${release}${shared_ext}$major'
9852  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9853  shlibpath_var=LD_LIBRARY_PATH
9854  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9855  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9856  # the default ld.so.conf also contains /usr/contrib/lib and
9857  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9858  # libtool to hard-code these into programs
9859  ;;
9860
9861cygwin* | mingw* | pw32* | cegcc*)
9862  version_type=windows
9863  shrext_cmds=".dll"
9864  need_version=no
9865  need_lib_prefix=no
9866
9867  case $GCC,$host_os in
9868  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9869    library_names_spec='$libname.dll.a'
9870    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9871    postinstall_cmds='base_file=`basename \${file}`~
9872      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9873      dldir=$destdir/`dirname \$dlpath`~
9874      test -d \$dldir || mkdir -p \$dldir~
9875      $install_prog $dir/$dlname \$dldir/$dlname~
9876      chmod a+x \$dldir/$dlname~
9877      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9878        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9879      fi'
9880    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9881      dlpath=$dir/\$dldll~
9882       $RM \$dlpath'
9883    shlibpath_overrides_runpath=yes
9884
9885    case $host_os in
9886    cygwin*)
9887      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9888      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9890      ;;
9891    mingw* | cegcc*)
9892      # MinGW DLLs use traditional 'lib' prefix
9893      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9896        # It is most probably a Windows format PATH printed by
9897        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9898        # path with ; separators, and with drive letters. We can handle the
9899        # drive letters (cygwin fileutils understands them), so leave them,
9900        # especially as we might pass files found there to a mingw objdump,
9901        # which wouldn't understand a cygwinified path. Ahh.
9902        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9903      else
9904        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9905      fi
9906      ;;
9907    pw32*)
9908      # pw32 DLLs use 'pw' prefix rather than 'lib'
9909      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9910      ;;
9911    esac
9912    ;;
9913
9914  *)
9915    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9916    ;;
9917  esac
9918  dynamic_linker='Win32 ld.exe'
9919  # FIXME: first we should search . and the directory the executable is in
9920  shlibpath_var=PATH
9921  ;;
9922
9923darwin* | rhapsody*)
9924  dynamic_linker="$host_os dyld"
9925  version_type=darwin
9926  need_lib_prefix=no
9927  need_version=no
9928  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9929  soname_spec='${libname}${release}${major}$shared_ext'
9930  shlibpath_overrides_runpath=yes
9931  shlibpath_var=DYLD_LIBRARY_PATH
9932  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9933
9934  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9935  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9936  ;;
9937
9938dgux*)
9939  version_type=linux
9940  need_lib_prefix=no
9941  need_version=no
9942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9943  soname_spec='${libname}${release}${shared_ext}$major'
9944  shlibpath_var=LD_LIBRARY_PATH
9945  ;;
9946
9947freebsd1*)
9948  dynamic_linker=no
9949  ;;
9950
9951freebsd* | dragonfly*)
9952  # DragonFly does not have aout.  When/if they implement a new
9953  # versioning mechanism, adjust this.
9954  if test -x /usr/bin/objformat; then
9955    objformat=`/usr/bin/objformat`
9956  else
9957    case $host_os in
9958    freebsd[123]*) objformat=aout ;;
9959    *) objformat=elf ;;
9960    esac
9961  fi
9962  version_type=freebsd-$objformat
9963  case $version_type in
9964    freebsd-elf*)
9965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9966      need_version=no
9967      need_lib_prefix=no
9968      ;;
9969    freebsd-*)
9970      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9971      need_version=yes
9972      ;;
9973  esac
9974  shlibpath_var=LD_LIBRARY_PATH
9975  case $host_os in
9976  freebsd2*)
9977    shlibpath_overrides_runpath=yes
9978    ;;
9979  freebsd3.[01]* | freebsdelf3.[01]*)
9980    shlibpath_overrides_runpath=yes
9981    hardcode_into_libs=yes
9982    ;;
9983  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9984  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9985    shlibpath_overrides_runpath=no
9986    hardcode_into_libs=yes
9987    ;;
9988  *) # from 4.6 on, and DragonFly
9989    shlibpath_overrides_runpath=yes
9990    hardcode_into_libs=yes
9991    ;;
9992  esac
9993  ;;
9994
9995gnu*)
9996  version_type=linux
9997  need_lib_prefix=no
9998  need_version=no
9999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10000  soname_spec='${libname}${release}${shared_ext}$major'
10001  shlibpath_var=LD_LIBRARY_PATH
10002  hardcode_into_libs=yes
10003  ;;
10004
10005hpux9* | hpux10* | hpux11*)
10006  # Give a soname corresponding to the major version so that dld.sl refuses to
10007  # link against other versions.
10008  version_type=sunos
10009  need_lib_prefix=no
10010  need_version=no
10011  case $host_cpu in
10012  ia64*)
10013    shrext_cmds='.so'
10014    hardcode_into_libs=yes
10015    dynamic_linker="$host_os dld.so"
10016    shlibpath_var=LD_LIBRARY_PATH
10017    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019    soname_spec='${libname}${release}${shared_ext}$major'
10020    if test "X$HPUX_IA64_MODE" = X32; then
10021      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10022    else
10023      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10024    fi
10025    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10026    ;;
10027  hppa*64*)
10028    shrext_cmds='.sl'
10029    hardcode_into_libs=yes
10030    dynamic_linker="$host_os dld.sl"
10031    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10032    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034    soname_spec='${libname}${release}${shared_ext}$major'
10035    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10036    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10037    ;;
10038  *)
10039    shrext_cmds='.sl'
10040    dynamic_linker="$host_os dld.sl"
10041    shlibpath_var=SHLIB_PATH
10042    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10043    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044    soname_spec='${libname}${release}${shared_ext}$major'
10045    ;;
10046  esac
10047  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10048  postinstall_cmds='chmod 555 $lib'
10049  ;;
10050
10051interix[3-9]*)
10052  version_type=linux
10053  need_lib_prefix=no
10054  need_version=no
10055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10056  soname_spec='${libname}${release}${shared_ext}$major'
10057  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10058  shlibpath_var=LD_LIBRARY_PATH
10059  shlibpath_overrides_runpath=no
10060  hardcode_into_libs=yes
10061  ;;
10062
10063irix5* | irix6* | nonstopux*)
10064  case $host_os in
10065    nonstopux*) version_type=nonstopux ;;
10066    *)
10067	if test "$lt_cv_prog_gnu_ld" = yes; then
10068		version_type=linux
10069	else
10070		version_type=irix
10071	fi ;;
10072  esac
10073  need_lib_prefix=no
10074  need_version=no
10075  soname_spec='${libname}${release}${shared_ext}$major'
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10077  case $host_os in
10078  irix5* | nonstopux*)
10079    libsuff= shlibsuff=
10080    ;;
10081  *)
10082    case $LD in # libtool.m4 will add one of these switches to LD
10083    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10084      libsuff= shlibsuff= libmagic=32-bit;;
10085    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10086      libsuff=32 shlibsuff=N32 libmagic=N32;;
10087    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10088      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10089    *) libsuff= shlibsuff= libmagic=never-match;;
10090    esac
10091    ;;
10092  esac
10093  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10094  shlibpath_overrides_runpath=no
10095  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10096  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10097  hardcode_into_libs=yes
10098  ;;
10099
10100# No shared lib support for Linux oldld, aout, or coff.
10101linux*oldld* | linux*aout* | linux*coff*)
10102  dynamic_linker=no
10103  ;;
10104
10105# This must be Linux ELF.
10106linux* | k*bsd*-gnu)
10107  version_type=linux
10108  need_lib_prefix=no
10109  need_version=no
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111  soname_spec='${libname}${release}${shared_ext}$major'
10112  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10113  shlibpath_var=LD_LIBRARY_PATH
10114  shlibpath_overrides_runpath=no
10115  # Some binutils ld are patched to set DT_RUNPATH
10116  save_LDFLAGS=$LDFLAGS
10117  save_libdir=$libdir
10118  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122
10123int
10124main ()
10125{
10126
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then :
10132  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10133  shlibpath_overrides_runpath=yes
10134fi
10135fi
10136rm -f core conftest.err conftest.$ac_objext \
10137    conftest$ac_exeext conftest.$ac_ext
10138  LDFLAGS=$save_LDFLAGS
10139  libdir=$save_libdir
10140
10141  # This implies no fast_install, which is unacceptable.
10142  # Some rework will be needed to allow for fast_install
10143  # before this can be enabled.
10144  hardcode_into_libs=yes
10145
10146  # Append ld.so.conf contents to the search path
10147  if test -f /etc/ld.so.conf; then
10148    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' ' '`
10149    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10150  fi
10151
10152  # We used to test for /lib/ld.so.1 and disable shared libraries on
10153  # powerpc, because MkLinux only supported shared libraries with the
10154  # GNU dynamic linker.  Since this was broken with cross compilers,
10155  # most powerpc-linux boxes support dynamic linking these days and
10156  # people can always --disable-shared, the test was removed, and we
10157  # assume the GNU/Linux dynamic linker is in use.
10158  dynamic_linker='GNU/Linux ld.so'
10159  ;;
10160
10161netbsdelf*-gnu)
10162  version_type=linux
10163  need_lib_prefix=no
10164  need_version=no
10165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10166  soname_spec='${libname}${release}${shared_ext}$major'
10167  shlibpath_var=LD_LIBRARY_PATH
10168  shlibpath_overrides_runpath=no
10169  hardcode_into_libs=yes
10170  dynamic_linker='NetBSD ld.elf_so'
10171  ;;
10172
10173netbsd*)
10174  version_type=sunos
10175  need_lib_prefix=no
10176  need_version=no
10177  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10179    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10180    dynamic_linker='NetBSD (a.out) ld.so'
10181  else
10182    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183    soname_spec='${libname}${release}${shared_ext}$major'
10184    dynamic_linker='NetBSD ld.elf_so'
10185  fi
10186  shlibpath_var=LD_LIBRARY_PATH
10187  shlibpath_overrides_runpath=yes
10188  hardcode_into_libs=yes
10189  ;;
10190
10191newsos6)
10192  version_type=linux
10193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194  shlibpath_var=LD_LIBRARY_PATH
10195  shlibpath_overrides_runpath=yes
10196  ;;
10197
10198*nto* | *qnx*)
10199  version_type=qnx
10200  need_lib_prefix=no
10201  need_version=no
10202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203  soname_spec='${libname}${release}${shared_ext}$major'
10204  shlibpath_var=LD_LIBRARY_PATH
10205  shlibpath_overrides_runpath=no
10206  hardcode_into_libs=yes
10207  dynamic_linker='ldqnx.so'
10208  ;;
10209
10210openbsd*)
10211  version_type=sunos
10212  sys_lib_dlsearch_path_spec="/usr/lib"
10213  need_lib_prefix=no
10214  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10215  case $host_os in
10216    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10217    *)				need_version=no  ;;
10218  esac
10219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10221  shlibpath_var=LD_LIBRARY_PATH
10222  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10223    case $host_os in
10224      openbsd2.[89] | openbsd2.[89].*)
10225	shlibpath_overrides_runpath=no
10226	;;
10227      *)
10228	shlibpath_overrides_runpath=yes
10229	;;
10230      esac
10231  else
10232    shlibpath_overrides_runpath=yes
10233  fi
10234  ;;
10235
10236os2*)
10237  libname_spec='$name'
10238  shrext_cmds=".dll"
10239  need_lib_prefix=no
10240  library_names_spec='$libname${shared_ext} $libname.a'
10241  dynamic_linker='OS/2 ld.exe'
10242  shlibpath_var=LIBPATH
10243  ;;
10244
10245osf3* | osf4* | osf5*)
10246  version_type=osf
10247  need_lib_prefix=no
10248  need_version=no
10249  soname_spec='${libname}${release}${shared_ext}$major'
10250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251  shlibpath_var=LD_LIBRARY_PATH
10252  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10253  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10254  ;;
10255
10256rdos*)
10257  dynamic_linker=no
10258  ;;
10259
10260solaris*)
10261  version_type=linux
10262  need_lib_prefix=no
10263  need_version=no
10264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265  soname_spec='${libname}${release}${shared_ext}$major'
10266  shlibpath_var=LD_LIBRARY_PATH
10267  shlibpath_overrides_runpath=yes
10268  hardcode_into_libs=yes
10269  # ldd complains unless libraries are executable
10270  postinstall_cmds='chmod +x $lib'
10271  ;;
10272
10273sunos4*)
10274  version_type=sunos
10275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10277  shlibpath_var=LD_LIBRARY_PATH
10278  shlibpath_overrides_runpath=yes
10279  if test "$with_gnu_ld" = yes; then
10280    need_lib_prefix=no
10281  fi
10282  need_version=yes
10283  ;;
10284
10285sysv4 | sysv4.3*)
10286  version_type=linux
10287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288  soname_spec='${libname}${release}${shared_ext}$major'
10289  shlibpath_var=LD_LIBRARY_PATH
10290  case $host_vendor in
10291    sni)
10292      shlibpath_overrides_runpath=no
10293      need_lib_prefix=no
10294      runpath_var=LD_RUN_PATH
10295      ;;
10296    siemens)
10297      need_lib_prefix=no
10298      ;;
10299    motorola)
10300      need_lib_prefix=no
10301      need_version=no
10302      shlibpath_overrides_runpath=no
10303      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10304      ;;
10305  esac
10306  ;;
10307
10308sysv4*MP*)
10309  if test -d /usr/nec ;then
10310    version_type=linux
10311    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10312    soname_spec='$libname${shared_ext}.$major'
10313    shlibpath_var=LD_LIBRARY_PATH
10314  fi
10315  ;;
10316
10317sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10318  version_type=freebsd-elf
10319  need_lib_prefix=no
10320  need_version=no
10321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10322  soname_spec='${libname}${release}${shared_ext}$major'
10323  shlibpath_var=LD_LIBRARY_PATH
10324  shlibpath_overrides_runpath=yes
10325  hardcode_into_libs=yes
10326  if test "$with_gnu_ld" = yes; then
10327    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10328  else
10329    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10330    case $host_os in
10331      sco3.2v5*)
10332        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10333	;;
10334    esac
10335  fi
10336  sys_lib_dlsearch_path_spec='/usr/lib'
10337  ;;
10338
10339tpf*)
10340  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10341  version_type=linux
10342  need_lib_prefix=no
10343  need_version=no
10344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345  shlibpath_var=LD_LIBRARY_PATH
10346  shlibpath_overrides_runpath=no
10347  hardcode_into_libs=yes
10348  ;;
10349
10350uts4*)
10351  version_type=linux
10352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353  soname_spec='${libname}${release}${shared_ext}$major'
10354  shlibpath_var=LD_LIBRARY_PATH
10355  ;;
10356
10357*)
10358  dynamic_linker=no
10359  ;;
10360esac
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10362$as_echo "$dynamic_linker" >&6; }
10363test "$dynamic_linker" = no && can_build_shared=no
10364
10365variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10366if test "$GCC" = yes; then
10367  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10368fi
10369
10370if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10371  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10372fi
10373if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10374  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10375fi
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10464$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10465hardcode_action=
10466if test -n "$hardcode_libdir_flag_spec" ||
10467   test -n "$runpath_var" ||
10468   test "X$hardcode_automatic" = "Xyes" ; then
10469
10470  # We can hardcode non-existent directories.
10471  if test "$hardcode_direct" != no &&
10472     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10473     # have to relink, otherwise we might link with an installed library
10474     # when we should be linking with a yet-to-be-installed one
10475     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10476     test "$hardcode_minus_L" != no; then
10477    # Linking always hardcodes the temporary library directory.
10478    hardcode_action=relink
10479  else
10480    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10481    hardcode_action=immediate
10482  fi
10483else
10484  # We cannot hardcode anything, or else we can only hardcode existing
10485  # directories.
10486  hardcode_action=unsupported
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10489$as_echo "$hardcode_action" >&6; }
10490
10491if test "$hardcode_action" = relink ||
10492   test "$inherit_rpath" = yes; then
10493  # Fast installation is not supported
10494  enable_fast_install=no
10495elif test "$shlibpath_overrides_runpath" = yes ||
10496     test "$enable_shared" = no; then
10497  # Fast installation is not necessary
10498  enable_fast_install=needless
10499fi
10500
10501
10502
10503
10504
10505
10506  if test "x$enable_dlopen" != xyes; then
10507  enable_dlopen=unknown
10508  enable_dlopen_self=unknown
10509  enable_dlopen_self_static=unknown
10510else
10511  lt_cv_dlopen=no
10512  lt_cv_dlopen_libs=
10513
10514  case $host_os in
10515  beos*)
10516    lt_cv_dlopen="load_add_on"
10517    lt_cv_dlopen_libs=
10518    lt_cv_dlopen_self=yes
10519    ;;
10520
10521  mingw* | pw32* | cegcc*)
10522    lt_cv_dlopen="LoadLibrary"
10523    lt_cv_dlopen_libs=
10524    ;;
10525
10526  cygwin*)
10527    lt_cv_dlopen="dlopen"
10528    lt_cv_dlopen_libs=
10529    ;;
10530
10531  darwin*)
10532  # if libdl is installed we need to link against it
10533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10534$as_echo_n "checking for dlopen in -ldl... " >&6; }
10535if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10536  $as_echo_n "(cached) " >&6
10537else
10538  ac_check_lib_save_LIBS=$LIBS
10539LIBS="-ldl  $LIBS"
10540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h.  */
10542
10543/* Override any GCC internal prototype to avoid an error.
10544   Use char because int might match the return type of a GCC
10545   builtin and then its argument prototype would still apply.  */
10546#ifdef __cplusplus
10547extern "C"
10548#endif
10549char dlopen ();
10550int
10551main ()
10552{
10553return dlopen ();
10554  ;
10555  return 0;
10556}
10557_ACEOF
10558if ac_fn_c_try_link "$LINENO"; then :
10559  ac_cv_lib_dl_dlopen=yes
10560else
10561  ac_cv_lib_dl_dlopen=no
10562fi
10563rm -f core conftest.err conftest.$ac_objext \
10564    conftest$ac_exeext conftest.$ac_ext
10565LIBS=$ac_check_lib_save_LIBS
10566fi
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10568$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10569if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10570  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10571else
10572
10573    lt_cv_dlopen="dyld"
10574    lt_cv_dlopen_libs=
10575    lt_cv_dlopen_self=yes
10576
10577fi
10578
10579    ;;
10580
10581  *)
10582    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10583if test "x$ac_cv_func_shl_load" = x""yes; then :
10584  lt_cv_dlopen="shl_load"
10585else
10586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10587$as_echo_n "checking for shl_load in -ldld... " >&6; }
10588if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10589  $as_echo_n "(cached) " >&6
10590else
10591  ac_check_lib_save_LIBS=$LIBS
10592LIBS="-ldld  $LIBS"
10593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594/* end confdefs.h.  */
10595
10596/* Override any GCC internal prototype to avoid an error.
10597   Use char because int might match the return type of a GCC
10598   builtin and then its argument prototype would still apply.  */
10599#ifdef __cplusplus
10600extern "C"
10601#endif
10602char shl_load ();
10603int
10604main ()
10605{
10606return shl_load ();
10607  ;
10608  return 0;
10609}
10610_ACEOF
10611if ac_fn_c_try_link "$LINENO"; then :
10612  ac_cv_lib_dld_shl_load=yes
10613else
10614  ac_cv_lib_dld_shl_load=no
10615fi
10616rm -f core conftest.err conftest.$ac_objext \
10617    conftest$ac_exeext conftest.$ac_ext
10618LIBS=$ac_check_lib_save_LIBS
10619fi
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10621$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10622if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10623  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10624else
10625  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10626if test "x$ac_cv_func_dlopen" = x""yes; then :
10627  lt_cv_dlopen="dlopen"
10628else
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10630$as_echo_n "checking for dlopen in -ldl... " >&6; }
10631if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10632  $as_echo_n "(cached) " >&6
10633else
10634  ac_check_lib_save_LIBS=$LIBS
10635LIBS="-ldl  $LIBS"
10636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637/* end confdefs.h.  */
10638
10639/* Override any GCC internal prototype to avoid an error.
10640   Use char because int might match the return type of a GCC
10641   builtin and then its argument prototype would still apply.  */
10642#ifdef __cplusplus
10643extern "C"
10644#endif
10645char dlopen ();
10646int
10647main ()
10648{
10649return dlopen ();
10650  ;
10651  return 0;
10652}
10653_ACEOF
10654if ac_fn_c_try_link "$LINENO"; then :
10655  ac_cv_lib_dl_dlopen=yes
10656else
10657  ac_cv_lib_dl_dlopen=no
10658fi
10659rm -f core conftest.err conftest.$ac_objext \
10660    conftest$ac_exeext conftest.$ac_ext
10661LIBS=$ac_check_lib_save_LIBS
10662fi
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10664$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10665if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10666  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10667else
10668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10669$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10670if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10671  $as_echo_n "(cached) " >&6
10672else
10673  ac_check_lib_save_LIBS=$LIBS
10674LIBS="-lsvld  $LIBS"
10675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677
10678/* Override any GCC internal prototype to avoid an error.
10679   Use char because int might match the return type of a GCC
10680   builtin and then its argument prototype would still apply.  */
10681#ifdef __cplusplus
10682extern "C"
10683#endif
10684char dlopen ();
10685int
10686main ()
10687{
10688return dlopen ();
10689  ;
10690  return 0;
10691}
10692_ACEOF
10693if ac_fn_c_try_link "$LINENO"; then :
10694  ac_cv_lib_svld_dlopen=yes
10695else
10696  ac_cv_lib_svld_dlopen=no
10697fi
10698rm -f core conftest.err conftest.$ac_objext \
10699    conftest$ac_exeext conftest.$ac_ext
10700LIBS=$ac_check_lib_save_LIBS
10701fi
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10703$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10704if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10705  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10706else
10707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10708$as_echo_n "checking for dld_link in -ldld... " >&6; }
10709if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10710  $as_echo_n "(cached) " >&6
10711else
10712  ac_check_lib_save_LIBS=$LIBS
10713LIBS="-ldld  $LIBS"
10714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715/* end confdefs.h.  */
10716
10717/* Override any GCC internal prototype to avoid an error.
10718   Use char because int might match the return type of a GCC
10719   builtin and then its argument prototype would still apply.  */
10720#ifdef __cplusplus
10721extern "C"
10722#endif
10723char dld_link ();
10724int
10725main ()
10726{
10727return dld_link ();
10728  ;
10729  return 0;
10730}
10731_ACEOF
10732if ac_fn_c_try_link "$LINENO"; then :
10733  ac_cv_lib_dld_dld_link=yes
10734else
10735  ac_cv_lib_dld_dld_link=no
10736fi
10737rm -f core conftest.err conftest.$ac_objext \
10738    conftest$ac_exeext conftest.$ac_ext
10739LIBS=$ac_check_lib_save_LIBS
10740fi
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10742$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10743if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10744  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10745fi
10746
10747
10748fi
10749
10750
10751fi
10752
10753
10754fi
10755
10756
10757fi
10758
10759
10760fi
10761
10762    ;;
10763  esac
10764
10765  if test "x$lt_cv_dlopen" != xno; then
10766    enable_dlopen=yes
10767  else
10768    enable_dlopen=no
10769  fi
10770
10771  case $lt_cv_dlopen in
10772  dlopen)
10773    save_CPPFLAGS="$CPPFLAGS"
10774    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10775
10776    save_LDFLAGS="$LDFLAGS"
10777    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10778
10779    save_LIBS="$LIBS"
10780    LIBS="$lt_cv_dlopen_libs $LIBS"
10781
10782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10783$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10784if test "${lt_cv_dlopen_self+set}" = set; then :
10785  $as_echo_n "(cached) " >&6
10786else
10787  	  if test "$cross_compiling" = yes; then :
10788  lt_cv_dlopen_self=cross
10789else
10790  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10791  lt_status=$lt_dlunknown
10792  cat > conftest.$ac_ext <<_LT_EOF
10793#line 10793 "configure"
10794#include "confdefs.h"
10795
10796#if HAVE_DLFCN_H
10797#include <dlfcn.h>
10798#endif
10799
10800#include <stdio.h>
10801
10802#ifdef RTLD_GLOBAL
10803#  define LT_DLGLOBAL		RTLD_GLOBAL
10804#else
10805#  ifdef DL_GLOBAL
10806#    define LT_DLGLOBAL		DL_GLOBAL
10807#  else
10808#    define LT_DLGLOBAL		0
10809#  endif
10810#endif
10811
10812/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10813   find out it does not work in some platform. */
10814#ifndef LT_DLLAZY_OR_NOW
10815#  ifdef RTLD_LAZY
10816#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10817#  else
10818#    ifdef DL_LAZY
10819#      define LT_DLLAZY_OR_NOW		DL_LAZY
10820#    else
10821#      ifdef RTLD_NOW
10822#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10823#      else
10824#        ifdef DL_NOW
10825#          define LT_DLLAZY_OR_NOW	DL_NOW
10826#        else
10827#          define LT_DLLAZY_OR_NOW	0
10828#        endif
10829#      endif
10830#    endif
10831#  endif
10832#endif
10833
10834void fnord() { int i=42;}
10835int main ()
10836{
10837  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10838  int status = $lt_dlunknown;
10839
10840  if (self)
10841    {
10842      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10843      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10844      /* dlclose (self); */
10845    }
10846  else
10847    puts (dlerror ());
10848
10849  return status;
10850}
10851_LT_EOF
10852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10853  (eval $ac_link) 2>&5
10854  ac_status=$?
10855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10856  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10857    (./conftest; exit; ) >&5 2>/dev/null
10858    lt_status=$?
10859    case x$lt_status in
10860      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10861      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10862      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10863    esac
10864  else :
10865    # compilation failed
10866    lt_cv_dlopen_self=no
10867  fi
10868fi
10869rm -fr conftest*
10870
10871
10872fi
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10874$as_echo "$lt_cv_dlopen_self" >&6; }
10875
10876    if test "x$lt_cv_dlopen_self" = xyes; then
10877      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10878      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10879$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10880if test "${lt_cv_dlopen_self_static+set}" = set; then :
10881  $as_echo_n "(cached) " >&6
10882else
10883  	  if test "$cross_compiling" = yes; then :
10884  lt_cv_dlopen_self_static=cross
10885else
10886  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887  lt_status=$lt_dlunknown
10888  cat > conftest.$ac_ext <<_LT_EOF
10889#line 10889 "configure"
10890#include "confdefs.h"
10891
10892#if HAVE_DLFCN_H
10893#include <dlfcn.h>
10894#endif
10895
10896#include <stdio.h>
10897
10898#ifdef RTLD_GLOBAL
10899#  define LT_DLGLOBAL		RTLD_GLOBAL
10900#else
10901#  ifdef DL_GLOBAL
10902#    define LT_DLGLOBAL		DL_GLOBAL
10903#  else
10904#    define LT_DLGLOBAL		0
10905#  endif
10906#endif
10907
10908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909   find out it does not work in some platform. */
10910#ifndef LT_DLLAZY_OR_NOW
10911#  ifdef RTLD_LAZY
10912#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10913#  else
10914#    ifdef DL_LAZY
10915#      define LT_DLLAZY_OR_NOW		DL_LAZY
10916#    else
10917#      ifdef RTLD_NOW
10918#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10919#      else
10920#        ifdef DL_NOW
10921#          define LT_DLLAZY_OR_NOW	DL_NOW
10922#        else
10923#          define LT_DLLAZY_OR_NOW	0
10924#        endif
10925#      endif
10926#    endif
10927#  endif
10928#endif
10929
10930void fnord() { int i=42;}
10931int main ()
10932{
10933  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934  int status = $lt_dlunknown;
10935
10936  if (self)
10937    {
10938      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10939      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10940      /* dlclose (self); */
10941    }
10942  else
10943    puts (dlerror ());
10944
10945  return status;
10946}
10947_LT_EOF
10948  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10949  (eval $ac_link) 2>&5
10950  ac_status=$?
10951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10953    (./conftest; exit; ) >&5 2>/dev/null
10954    lt_status=$?
10955    case x$lt_status in
10956      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10957      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10958      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10959    esac
10960  else :
10961    # compilation failed
10962    lt_cv_dlopen_self_static=no
10963  fi
10964fi
10965rm -fr conftest*
10966
10967
10968fi
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10970$as_echo "$lt_cv_dlopen_self_static" >&6; }
10971    fi
10972
10973    CPPFLAGS="$save_CPPFLAGS"
10974    LDFLAGS="$save_LDFLAGS"
10975    LIBS="$save_LIBS"
10976    ;;
10977  esac
10978
10979  case $lt_cv_dlopen_self in
10980  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10981  *) enable_dlopen_self=unknown ;;
10982  esac
10983
10984  case $lt_cv_dlopen_self_static in
10985  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10986  *) enable_dlopen_self_static=unknown ;;
10987  esac
10988fi
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006striplib=
11007old_striplib=
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11009$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11010if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11011  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11012  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014$as_echo "yes" >&6; }
11015else
11016# FIXME - insert some real tests, host_os isn't really good enough
11017  case $host_os in
11018  darwin*)
11019    if test -n "$STRIP" ; then
11020      striplib="$STRIP -x"
11021      old_striplib="$STRIP -S"
11022      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023$as_echo "yes" >&6; }
11024    else
11025      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026$as_echo "no" >&6; }
11027    fi
11028    ;;
11029  *)
11030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031$as_echo "no" >&6; }
11032    ;;
11033  esac
11034fi
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047  # Report which library types will actually be built
11048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11049$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11051$as_echo "$can_build_shared" >&6; }
11052
11053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11054$as_echo_n "checking whether to build shared libraries... " >&6; }
11055  test "$can_build_shared" = "no" && enable_shared=no
11056
11057  # On AIX, shared libraries and static libraries use the same namespace, and
11058  # are all built from PIC.
11059  case $host_os in
11060  aix3*)
11061    test "$enable_shared" = yes && enable_static=no
11062    if test -n "$RANLIB"; then
11063      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11064      postinstall_cmds='$RANLIB $lib'
11065    fi
11066    ;;
11067
11068  aix[4-9]*)
11069    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11070      test "$enable_shared" = yes && enable_static=no
11071    fi
11072    ;;
11073  esac
11074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11075$as_echo "$enable_shared" >&6; }
11076
11077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11078$as_echo_n "checking whether to build static libraries... " >&6; }
11079  # Make sure either enable_shared or enable_static is yes.
11080  test "$enable_shared" = yes || enable_static=yes
11081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11082$as_echo "$enable_static" >&6; }
11083
11084
11085
11086
11087fi
11088ac_ext=c
11089ac_cpp='$CPP $CPPFLAGS'
11090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092ac_compiler_gnu=$ac_cv_c_compiler_gnu
11093
11094CC="$lt_save_CC"
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108        ac_config_commands="$ac_config_commands libtool"
11109
11110
11111
11112
11113# Only expand once:
11114
11115
11116if test -n "$ac_tool_prefix"; then
11117  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11118set dummy ${ac_tool_prefix}windres; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
11121if test "${ac_cv_prog_RC+set}" = set; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  if test -n "$RC"; then
11125  ac_cv_prog_RC="$RC" # Let the user override the test.
11126else
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130  IFS=$as_save_IFS
11131  test -z "$as_dir" && as_dir=.
11132    for ac_exec_ext in '' $ac_executable_extensions; do
11133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134    ac_cv_prog_RC="${ac_tool_prefix}windres"
11135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136    break 2
11137  fi
11138done
11139  done
11140IFS=$as_save_IFS
11141
11142fi
11143fi
11144RC=$ac_cv_prog_RC
11145if test -n "$RC"; then
11146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11147$as_echo "$RC" >&6; }
11148else
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151fi
11152
11153
11154fi
11155if test -z "$ac_cv_prog_RC"; then
11156  ac_ct_RC=$RC
11157  # Extract the first word of "windres", so it can be a program name with args.
11158set dummy windres; ac_word=$2
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
11161if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164  if test -n "$ac_ct_RC"; then
11165  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170  IFS=$as_save_IFS
11171  test -z "$as_dir" && as_dir=.
11172    for ac_exec_ext in '' $ac_executable_extensions; do
11173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174    ac_cv_prog_ac_ct_RC="windres"
11175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176    break 2
11177  fi
11178done
11179  done
11180IFS=$as_save_IFS
11181
11182fi
11183fi
11184ac_ct_RC=$ac_cv_prog_ac_ct_RC
11185if test -n "$ac_ct_RC"; then
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11187$as_echo "$ac_ct_RC" >&6; }
11188else
11189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
11191fi
11192
11193  if test "x$ac_ct_RC" = x; then
11194    RC=""
11195  else
11196    case $cross_compiling:$ac_tool_warned in
11197yes:)
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11200ac_tool_warned=yes ;;
11201esac
11202    RC=$ac_ct_RC
11203  fi
11204else
11205  RC="$ac_cv_prog_RC"
11206fi
11207
11208
11209
11210
11211# Source file extension for RC test sources.
11212ac_ext=rc
11213
11214# Object file extension for compiled RC test sources.
11215objext=o
11216objext_RC=$objext
11217
11218# Code to be used in simple compile tests
11219lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11220
11221# Code to be used in simple link tests
11222lt_simple_link_test_code="$lt_simple_compile_test_code"
11223
11224# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11225
11226
11227
11228
11229
11230
11231# If no C compiler was specified, use CC.
11232LTCC=${LTCC-"$CC"}
11233
11234# If no C compiler flags were specified, use CFLAGS.
11235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11236
11237# Allow CC to be a program name with arguments.
11238compiler=$CC
11239
11240
11241# save warnings/boilerplate of simple test code
11242ac_outfile=conftest.$ac_objext
11243echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11245_lt_compiler_boilerplate=`cat conftest.err`
11246$RM conftest*
11247
11248ac_outfile=conftest.$ac_objext
11249echo "$lt_simple_link_test_code" >conftest.$ac_ext
11250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11251_lt_linker_boilerplate=`cat conftest.err`
11252$RM -r conftest*
11253
11254
11255# Allow CC to be a program name with arguments.
11256lt_save_CC="$CC"
11257lt_save_GCC=$GCC
11258GCC=
11259CC=${RC-"windres"}
11260compiler=$CC
11261compiler_RC=$CC
11262for cc_temp in $compiler""; do
11263  case $cc_temp in
11264    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11265    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11266    \-*) ;;
11267    *) break;;
11268  esac
11269done
11270cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11271
11272lt_cv_prog_compiler_c_o_RC=yes
11273
11274if test -n "$compiler"; then
11275  :
11276
11277
11278
11279fi
11280
11281GCC=$lt_save_GCC
11282ac_ext=c
11283ac_cpp='$CPP $CPPFLAGS'
11284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11286ac_compiler_gnu=$ac_cv_c_compiler_gnu
11287
11288CC="$lt_save_CC"
11289
11290
11291
11292# We need to compile and run a program on the build machine.
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
11294$as_echo_n "checking for cc for build... " >&6; }
11295if test "$cross_compiling" = "yes"; then
11296  CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
11297else
11298  CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
11299fi
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
11301$as_echo "$CC_FOR_BUILD" >&6; }
11302
11303
11304
11305# Set some internal variables depending on the platform for later use.
11306have_w32_system=no
11307have_w32ce_system=no
11308case "${host}" in
11309    *-mingw32ce*)
11310        have_w32_system=yes
11311        have_w32ce_system=yes
11312        ;;
11313    *-mingw32*)
11314        have_w32_system=yes
11315        ;;
11316    *)
11317       ;;
11318esac
11319
11320
11321
11322
11323
11324# Note, that autogen.sh greps for the next line.
11325
11326
11327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11328$as_echo_n "checking whether NLS is requested... " >&6; }
11329    # Check whether --enable-nls was given.
11330if test "${enable_nls+set}" = set; then :
11331  enableval=$enable_nls; USE_NLS=$enableval
11332else
11333  USE_NLS=yes
11334fi
11335
11336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11337$as_echo "$USE_NLS" >&6; }
11338
11339
11340
11341
11342      GETTEXT_MACRO_VERSION=0.17
11343
11344
11345
11346
11347# Prepare PATH_SEPARATOR.
11348# The user is always right.
11349if test "${PATH_SEPARATOR+set}" != set; then
11350  echo "#! /bin/sh" >conf$$.sh
11351  echo  "exit 0"   >>conf$$.sh
11352  chmod +x conf$$.sh
11353  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11354    PATH_SEPARATOR=';'
11355  else
11356    PATH_SEPARATOR=:
11357  fi
11358  rm -f conf$$.sh
11359fi
11360
11361# Find out how to test for executable files. Don't use a zero-byte file,
11362# as systems may use methods other than mode bits to determine executability.
11363cat >conf$$.file <<_ASEOF
11364#! /bin/sh
11365exit 0
11366_ASEOF
11367chmod +x conf$$.file
11368if test -x conf$$.file >/dev/null 2>&1; then
11369  ac_executable_p="test -x"
11370else
11371  ac_executable_p="test -f"
11372fi
11373rm -f conf$$.file
11374
11375# Extract the first word of "msgfmt", so it can be a program name with args.
11376set dummy msgfmt; ac_word=$2
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if test "${ac_cv_path_MSGFMT+set}" = set; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  case "$MSGFMT" in
11383  [\\/]* | ?:[\\/]*)
11384    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11385    ;;
11386  *)
11387    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11388    for ac_dir in $PATH; do
11389      IFS="$ac_save_IFS"
11390      test -z "$ac_dir" && ac_dir=.
11391      for ac_exec_ext in '' $ac_executable_extensions; do
11392        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11393          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11394          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11395     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11396            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11397            break 2
11398          fi
11399        fi
11400      done
11401    done
11402    IFS="$ac_save_IFS"
11403  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11404    ;;
11405esac
11406fi
11407MSGFMT="$ac_cv_path_MSGFMT"
11408if test "$MSGFMT" != ":"; then
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11410$as_echo "$MSGFMT" >&6; }
11411else
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
11414fi
11415
11416  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11417set dummy gmsgfmt; ac_word=$2
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419$as_echo_n "checking for $ac_word... " >&6; }
11420if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11421  $as_echo_n "(cached) " >&6
11422else
11423  case $GMSGFMT in
11424  [\\/]* | ?:[\\/]*)
11425  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11426  ;;
11427  *)
11428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429for as_dir in $PATH
11430do
11431  IFS=$as_save_IFS
11432  test -z "$as_dir" && as_dir=.
11433    for ac_exec_ext in '' $ac_executable_extensions; do
11434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437    break 2
11438  fi
11439done
11440  done
11441IFS=$as_save_IFS
11442
11443  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11444  ;;
11445esac
11446fi
11447GMSGFMT=$ac_cv_path_GMSGFMT
11448if test -n "$GMSGFMT"; then
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11450$as_echo "$GMSGFMT" >&6; }
11451else
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454fi
11455
11456
11457
11458    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11459    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11460    *) MSGFMT_015=$MSGFMT ;;
11461  esac
11462
11463  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11464    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11465    *) GMSGFMT_015=$GMSGFMT ;;
11466  esac
11467
11468
11469
11470# Prepare PATH_SEPARATOR.
11471# The user is always right.
11472if test "${PATH_SEPARATOR+set}" != set; then
11473  echo "#! /bin/sh" >conf$$.sh
11474  echo  "exit 0"   >>conf$$.sh
11475  chmod +x conf$$.sh
11476  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11477    PATH_SEPARATOR=';'
11478  else
11479    PATH_SEPARATOR=:
11480  fi
11481  rm -f conf$$.sh
11482fi
11483
11484# Find out how to test for executable files. Don't use a zero-byte file,
11485# as systems may use methods other than mode bits to determine executability.
11486cat >conf$$.file <<_ASEOF
11487#! /bin/sh
11488exit 0
11489_ASEOF
11490chmod +x conf$$.file
11491if test -x conf$$.file >/dev/null 2>&1; then
11492  ac_executable_p="test -x"
11493else
11494  ac_executable_p="test -f"
11495fi
11496rm -f conf$$.file
11497
11498# Extract the first word of "xgettext", so it can be a program name with args.
11499set dummy xgettext; ac_word=$2
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501$as_echo_n "checking for $ac_word... " >&6; }
11502if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11503  $as_echo_n "(cached) " >&6
11504else
11505  case "$XGETTEXT" in
11506  [\\/]* | ?:[\\/]*)
11507    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11508    ;;
11509  *)
11510    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11511    for ac_dir in $PATH; do
11512      IFS="$ac_save_IFS"
11513      test -z "$ac_dir" && ac_dir=.
11514      for ac_exec_ext in '' $ac_executable_extensions; do
11515        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11516          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11517          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11518     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11519            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11520            break 2
11521          fi
11522        fi
11523      done
11524    done
11525    IFS="$ac_save_IFS"
11526  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11527    ;;
11528esac
11529fi
11530XGETTEXT="$ac_cv_path_XGETTEXT"
11531if test "$XGETTEXT" != ":"; then
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11533$as_echo "$XGETTEXT" >&6; }
11534else
11535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
11537fi
11538
11539    rm -f messages.po
11540
11541    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11542    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11543    *) XGETTEXT_015=$XGETTEXT ;;
11544  esac
11545
11546
11547
11548# Prepare PATH_SEPARATOR.
11549# The user is always right.
11550if test "${PATH_SEPARATOR+set}" != set; then
11551  echo "#! /bin/sh" >conf$$.sh
11552  echo  "exit 0"   >>conf$$.sh
11553  chmod +x conf$$.sh
11554  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11555    PATH_SEPARATOR=';'
11556  else
11557    PATH_SEPARATOR=:
11558  fi
11559  rm -f conf$$.sh
11560fi
11561
11562# Find out how to test for executable files. Don't use a zero-byte file,
11563# as systems may use methods other than mode bits to determine executability.
11564cat >conf$$.file <<_ASEOF
11565#! /bin/sh
11566exit 0
11567_ASEOF
11568chmod +x conf$$.file
11569if test -x conf$$.file >/dev/null 2>&1; then
11570  ac_executable_p="test -x"
11571else
11572  ac_executable_p="test -f"
11573fi
11574rm -f conf$$.file
11575
11576# Extract the first word of "msgmerge", so it can be a program name with args.
11577set dummy msgmerge; ac_word=$2
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
11580if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  case "$MSGMERGE" in
11584  [\\/]* | ?:[\\/]*)
11585    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11586    ;;
11587  *)
11588    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11589    for ac_dir in $PATH; do
11590      IFS="$ac_save_IFS"
11591      test -z "$ac_dir" && ac_dir=.
11592      for ac_exec_ext in '' $ac_executable_extensions; do
11593        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11594          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11595          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11596            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11597            break 2
11598          fi
11599        fi
11600      done
11601    done
11602    IFS="$ac_save_IFS"
11603  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11604    ;;
11605esac
11606fi
11607MSGMERGE="$ac_cv_path_MSGMERGE"
11608if test "$MSGMERGE" != ":"; then
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11610$as_echo "$MSGMERGE" >&6; }
11611else
11612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
11614fi
11615
11616
11617        test -n "$localedir" || localedir='${datadir}/locale'
11618
11619
11620    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11621
11622
11623  ac_config_commands="$ac_config_commands po-directories"
11624
11625
11626
11627      if test "X$prefix" = "XNONE"; then
11628    acl_final_prefix="$ac_default_prefix"
11629  else
11630    acl_final_prefix="$prefix"
11631  fi
11632  if test "X$exec_prefix" = "XNONE"; then
11633    acl_final_exec_prefix='${prefix}'
11634  else
11635    acl_final_exec_prefix="$exec_prefix"
11636  fi
11637  acl_save_prefix="$prefix"
11638  prefix="$acl_final_prefix"
11639  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11640  prefix="$acl_save_prefix"
11641
11642
11643# Check whether --with-gnu-ld was given.
11644if test "${with_gnu_ld+set}" = set; then :
11645  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11646else
11647  with_gnu_ld=no
11648fi
11649
11650# Prepare PATH_SEPARATOR.
11651# The user is always right.
11652if test "${PATH_SEPARATOR+set}" != set; then
11653  echo "#! /bin/sh" >conf$$.sh
11654  echo  "exit 0"   >>conf$$.sh
11655  chmod +x conf$$.sh
11656  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11657    PATH_SEPARATOR=';'
11658  else
11659    PATH_SEPARATOR=:
11660  fi
11661  rm -f conf$$.sh
11662fi
11663ac_prog=ld
11664if test "$GCC" = yes; then
11665  # Check if gcc -print-prog-name=ld gives a path.
11666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11667$as_echo_n "checking for ld used by GCC... " >&6; }
11668  case $host in
11669  *-*-mingw*)
11670    # gcc leaves a trailing carriage return which upsets mingw
11671    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11672  *)
11673    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11674  esac
11675  case $ac_prog in
11676    # Accept absolute paths.
11677    [\\/]* | [A-Za-z]:[\\/]*)
11678      re_direlt='/[^/][^/]*/\.\./'
11679      # Canonicalize the path of ld
11680      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11681      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11682	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11683      done
11684      test -z "$LD" && LD="$ac_prog"
11685      ;;
11686  "")
11687    # If it fails, then pretend we aren't using GCC.
11688    ac_prog=ld
11689    ;;
11690  *)
11691    # If it is relative, then search for the first ld in PATH.
11692    with_gnu_ld=unknown
11693    ;;
11694  esac
11695elif test "$with_gnu_ld" = yes; then
11696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11697$as_echo_n "checking for GNU ld... " >&6; }
11698else
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11700$as_echo_n "checking for non-GNU ld... " >&6; }
11701fi
11702if test "${acl_cv_path_LD+set}" = set; then :
11703  $as_echo_n "(cached) " >&6
11704else
11705  if test -z "$LD"; then
11706  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11707  for ac_dir in $PATH; do
11708    test -z "$ac_dir" && ac_dir=.
11709    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11710      acl_cv_path_LD="$ac_dir/$ac_prog"
11711      # Check to see if the program is GNU ld.  I'd rather use --version,
11712      # but apparently some GNU ld's only accept -v.
11713      # Break only if it was the GNU/non-GNU ld that we prefer.
11714      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11715      *GNU* | *'with BFD'*)
11716	test "$with_gnu_ld" != no && break ;;
11717      *)
11718	test "$with_gnu_ld" != yes && break ;;
11719      esac
11720    fi
11721  done
11722  IFS="$ac_save_ifs"
11723else
11724  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11725fi
11726fi
11727
11728LD="$acl_cv_path_LD"
11729if test -n "$LD"; then
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11731$as_echo "$LD" >&6; }
11732else
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
11735fi
11736test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11738$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11739if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11740  $as_echo_n "(cached) " >&6
11741else
11742  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11743case `$LD -v 2>&1 </dev/null` in
11744*GNU* | *'with BFD'*)
11745  acl_cv_prog_gnu_ld=yes ;;
11746*)
11747  acl_cv_prog_gnu_ld=no ;;
11748esac
11749fi
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11751$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11752with_gnu_ld=$acl_cv_prog_gnu_ld
11753
11754
11755
11756
11757                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11758$as_echo_n "checking for shared library run path origin... " >&6; }
11759if test "${acl_cv_rpath+set}" = set; then :
11760  $as_echo_n "(cached) " >&6
11761else
11762
11763    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11764    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11765    . ./conftest.sh
11766    rm -f ./conftest.sh
11767    acl_cv_rpath=done
11768
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11771$as_echo "$acl_cv_rpath" >&6; }
11772  wl="$acl_cv_wl"
11773  acl_libext="$acl_cv_libext"
11774  acl_shlibext="$acl_cv_shlibext"
11775  acl_libname_spec="$acl_cv_libname_spec"
11776  acl_library_names_spec="$acl_cv_library_names_spec"
11777  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11778  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11779  acl_hardcode_direct="$acl_cv_hardcode_direct"
11780  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11781    # Check whether --enable-rpath was given.
11782if test "${enable_rpath+set}" = set; then :
11783  enableval=$enable_rpath; :
11784else
11785  enable_rpath=yes
11786fi
11787
11788
11789
11790                  acl_libdirstem=lib
11791  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11792  if test -n "$searchpath"; then
11793    acl_save_IFS="${IFS= 	}"; IFS=":"
11794    for searchdir in $searchpath; do
11795      if test -d "$searchdir"; then
11796        case "$searchdir" in
11797          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11798          *) searchdir=`cd "$searchdir" && pwd`
11799             case "$searchdir" in
11800               */lib64 ) acl_libdirstem=lib64 ;;
11801             esac ;;
11802        esac
11803      fi
11804    done
11805    IFS="$acl_save_IFS"
11806  fi
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816    use_additional=yes
11817
11818  acl_save_prefix="$prefix"
11819  prefix="$acl_final_prefix"
11820  acl_save_exec_prefix="$exec_prefix"
11821  exec_prefix="$acl_final_exec_prefix"
11822
11823    eval additional_includedir=\"$includedir\"
11824    eval additional_libdir=\"$libdir\"
11825
11826  exec_prefix="$acl_save_exec_prefix"
11827  prefix="$acl_save_prefix"
11828
11829
11830# Check whether --with-libiconv-prefix was given.
11831if test "${with_libiconv_prefix+set}" = set; then :
11832  withval=$with_libiconv_prefix;
11833    if test "X$withval" = "Xno"; then
11834      use_additional=no
11835    else
11836      if test "X$withval" = "X"; then
11837
11838  acl_save_prefix="$prefix"
11839  prefix="$acl_final_prefix"
11840  acl_save_exec_prefix="$exec_prefix"
11841  exec_prefix="$acl_final_exec_prefix"
11842
11843          eval additional_includedir=\"$includedir\"
11844          eval additional_libdir=\"$libdir\"
11845
11846  exec_prefix="$acl_save_exec_prefix"
11847  prefix="$acl_save_prefix"
11848
11849      else
11850        additional_includedir="$withval/include"
11851        additional_libdir="$withval/$acl_libdirstem"
11852      fi
11853    fi
11854
11855fi
11856
11857      LIBICONV=
11858  LTLIBICONV=
11859  INCICONV=
11860  LIBICONV_PREFIX=
11861  rpathdirs=
11862  ltrpathdirs=
11863  names_already_handled=
11864  names_next_round='iconv '
11865  while test -n "$names_next_round"; do
11866    names_this_round="$names_next_round"
11867    names_next_round=
11868    for name in $names_this_round; do
11869      already_handled=
11870      for n in $names_already_handled; do
11871        if test "$n" = "$name"; then
11872          already_handled=yes
11873          break
11874        fi
11875      done
11876      if test -z "$already_handled"; then
11877        names_already_handled="$names_already_handled $name"
11878                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11879        eval value=\"\$HAVE_LIB$uppername\"
11880        if test -n "$value"; then
11881          if test "$value" = yes; then
11882            eval value=\"\$LIB$uppername\"
11883            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11884            eval value=\"\$LTLIB$uppername\"
11885            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11886          else
11887                                    :
11888          fi
11889        else
11890                              found_dir=
11891          found_la=
11892          found_so=
11893          found_a=
11894          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11895          if test -n "$acl_shlibext"; then
11896            shrext=".$acl_shlibext"             # typically: shrext=.so
11897          else
11898            shrext=
11899          fi
11900          if test $use_additional = yes; then
11901            dir="$additional_libdir"
11902                                    if test -n "$acl_shlibext"; then
11903              if test -f "$dir/$libname$shrext"; then
11904                found_dir="$dir"
11905                found_so="$dir/$libname$shrext"
11906              else
11907                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11908                  ver=`(cd "$dir" && \
11909                        for f in "$libname$shrext".*; do echo "$f"; done \
11910                        | sed -e "s,^$libname$shrext\\\\.,," \
11911                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11912                        | sed 1q ) 2>/dev/null`
11913                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11914                    found_dir="$dir"
11915                    found_so="$dir/$libname$shrext.$ver"
11916                  fi
11917                else
11918                  eval library_names=\"$acl_library_names_spec\"
11919                  for f in $library_names; do
11920                    if test -f "$dir/$f"; then
11921                      found_dir="$dir"
11922                      found_so="$dir/$f"
11923                      break
11924                    fi
11925                  done
11926                fi
11927              fi
11928            fi
11929                        if test "X$found_dir" = "X"; then
11930              if test -f "$dir/$libname.$acl_libext"; then
11931                found_dir="$dir"
11932                found_a="$dir/$libname.$acl_libext"
11933              fi
11934            fi
11935            if test "X$found_dir" != "X"; then
11936              if test -f "$dir/$libname.la"; then
11937                found_la="$dir/$libname.la"
11938              fi
11939            fi
11940          fi
11941          if test "X$found_dir" = "X"; then
11942            for x in $LDFLAGS $LTLIBICONV; do
11943
11944  acl_save_prefix="$prefix"
11945  prefix="$acl_final_prefix"
11946  acl_save_exec_prefix="$exec_prefix"
11947  exec_prefix="$acl_final_exec_prefix"
11948  eval x=\"$x\"
11949  exec_prefix="$acl_save_exec_prefix"
11950  prefix="$acl_save_prefix"
11951
11952              case "$x" in
11953                -L*)
11954                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11955                                    if test -n "$acl_shlibext"; then
11956                    if test -f "$dir/$libname$shrext"; then
11957                      found_dir="$dir"
11958                      found_so="$dir/$libname$shrext"
11959                    else
11960                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11961                        ver=`(cd "$dir" && \
11962                              for f in "$libname$shrext".*; do echo "$f"; done \
11963                              | sed -e "s,^$libname$shrext\\\\.,," \
11964                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11965                              | sed 1q ) 2>/dev/null`
11966                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11967                          found_dir="$dir"
11968                          found_so="$dir/$libname$shrext.$ver"
11969                        fi
11970                      else
11971                        eval library_names=\"$acl_library_names_spec\"
11972                        for f in $library_names; do
11973                          if test -f "$dir/$f"; then
11974                            found_dir="$dir"
11975                            found_so="$dir/$f"
11976                            break
11977                          fi
11978                        done
11979                      fi
11980                    fi
11981                  fi
11982                                    if test "X$found_dir" = "X"; then
11983                    if test -f "$dir/$libname.$acl_libext"; then
11984                      found_dir="$dir"
11985                      found_a="$dir/$libname.$acl_libext"
11986                    fi
11987                  fi
11988                  if test "X$found_dir" != "X"; then
11989                    if test -f "$dir/$libname.la"; then
11990                      found_la="$dir/$libname.la"
11991                    fi
11992                  fi
11993                  ;;
11994              esac
11995              if test "X$found_dir" != "X"; then
11996                break
11997              fi
11998            done
11999          fi
12000          if test "X$found_dir" != "X"; then
12001                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12002            if test "X$found_so" != "X"; then
12003                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12004                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12005              else
12006                                                                                haveit=
12007                for x in $ltrpathdirs; do
12008                  if test "X$x" = "X$found_dir"; then
12009                    haveit=yes
12010                    break
12011                  fi
12012                done
12013                if test -z "$haveit"; then
12014                  ltrpathdirs="$ltrpathdirs $found_dir"
12015                fi
12016                                if test "$acl_hardcode_direct" = yes; then
12017                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12018                else
12019                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12020                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12021                                                            haveit=
12022                    for x in $rpathdirs; do
12023                      if test "X$x" = "X$found_dir"; then
12024                        haveit=yes
12025                        break
12026                      fi
12027                    done
12028                    if test -z "$haveit"; then
12029                      rpathdirs="$rpathdirs $found_dir"
12030                    fi
12031                  else
12032                                                                                haveit=
12033                    for x in $LDFLAGS $LIBICONV; do
12034
12035  acl_save_prefix="$prefix"
12036  prefix="$acl_final_prefix"
12037  acl_save_exec_prefix="$exec_prefix"
12038  exec_prefix="$acl_final_exec_prefix"
12039  eval x=\"$x\"
12040  exec_prefix="$acl_save_exec_prefix"
12041  prefix="$acl_save_prefix"
12042
12043                      if test "X$x" = "X-L$found_dir"; then
12044                        haveit=yes
12045                        break
12046                      fi
12047                    done
12048                    if test -z "$haveit"; then
12049                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12050                    fi
12051                    if test "$acl_hardcode_minus_L" != no; then
12052                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12053                    else
12054                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12055                    fi
12056                  fi
12057                fi
12058              fi
12059            else
12060              if test "X$found_a" != "X"; then
12061                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12062              else
12063                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12064              fi
12065            fi
12066                        additional_includedir=
12067            case "$found_dir" in
12068              */$acl_libdirstem | */$acl_libdirstem/)
12069                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12070                LIBICONV_PREFIX="$basedir"
12071                additional_includedir="$basedir/include"
12072                ;;
12073            esac
12074            if test "X$additional_includedir" != "X"; then
12075                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12076                haveit=
12077                if test "X$additional_includedir" = "X/usr/local/include"; then
12078                  if test -n "$GCC"; then
12079                    case $host_os in
12080                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12081                    esac
12082                  fi
12083                fi
12084                if test -z "$haveit"; then
12085                  for x in $CPPFLAGS $INCICONV; do
12086
12087  acl_save_prefix="$prefix"
12088  prefix="$acl_final_prefix"
12089  acl_save_exec_prefix="$exec_prefix"
12090  exec_prefix="$acl_final_exec_prefix"
12091  eval x=\"$x\"
12092  exec_prefix="$acl_save_exec_prefix"
12093  prefix="$acl_save_prefix"
12094
12095                    if test "X$x" = "X-I$additional_includedir"; then
12096                      haveit=yes
12097                      break
12098                    fi
12099                  done
12100                  if test -z "$haveit"; then
12101                    if test -d "$additional_includedir"; then
12102                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12103                    fi
12104                  fi
12105                fi
12106              fi
12107            fi
12108                        if test -n "$found_la"; then
12109                                                        save_libdir="$libdir"
12110              case "$found_la" in
12111                */* | *\\*) . "$found_la" ;;
12112                *) . "./$found_la" ;;
12113              esac
12114              libdir="$save_libdir"
12115                            for dep in $dependency_libs; do
12116                case "$dep" in
12117                  -L*)
12118                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12119                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12120                      haveit=
12121                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12122                        if test -n "$GCC"; then
12123                          case $host_os in
12124                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12125                          esac
12126                        fi
12127                      fi
12128                      if test -z "$haveit"; then
12129                        haveit=
12130                        for x in $LDFLAGS $LIBICONV; do
12131
12132  acl_save_prefix="$prefix"
12133  prefix="$acl_final_prefix"
12134  acl_save_exec_prefix="$exec_prefix"
12135  exec_prefix="$acl_final_exec_prefix"
12136  eval x=\"$x\"
12137  exec_prefix="$acl_save_exec_prefix"
12138  prefix="$acl_save_prefix"
12139
12140                          if test "X$x" = "X-L$additional_libdir"; then
12141                            haveit=yes
12142                            break
12143                          fi
12144                        done
12145                        if test -z "$haveit"; then
12146                          if test -d "$additional_libdir"; then
12147                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12148                          fi
12149                        fi
12150                        haveit=
12151                        for x in $LDFLAGS $LTLIBICONV; do
12152
12153  acl_save_prefix="$prefix"
12154  prefix="$acl_final_prefix"
12155  acl_save_exec_prefix="$exec_prefix"
12156  exec_prefix="$acl_final_exec_prefix"
12157  eval x=\"$x\"
12158  exec_prefix="$acl_save_exec_prefix"
12159  prefix="$acl_save_prefix"
12160
12161                          if test "X$x" = "X-L$additional_libdir"; then
12162                            haveit=yes
12163                            break
12164                          fi
12165                        done
12166                        if test -z "$haveit"; then
12167                          if test -d "$additional_libdir"; then
12168                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12169                          fi
12170                        fi
12171                      fi
12172                    fi
12173                    ;;
12174                  -R*)
12175                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12176                    if test "$enable_rpath" != no; then
12177                                                                  haveit=
12178                      for x in $rpathdirs; do
12179                        if test "X$x" = "X$dir"; then
12180                          haveit=yes
12181                          break
12182                        fi
12183                      done
12184                      if test -z "$haveit"; then
12185                        rpathdirs="$rpathdirs $dir"
12186                      fi
12187                                                                  haveit=
12188                      for x in $ltrpathdirs; do
12189                        if test "X$x" = "X$dir"; then
12190                          haveit=yes
12191                          break
12192                        fi
12193                      done
12194                      if test -z "$haveit"; then
12195                        ltrpathdirs="$ltrpathdirs $dir"
12196                      fi
12197                    fi
12198                    ;;
12199                  -l*)
12200                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12201                    ;;
12202                  *.la)
12203                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12204                    ;;
12205                  *)
12206                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12207                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12208                    ;;
12209                esac
12210              done
12211            fi
12212          else
12213                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12214            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12215          fi
12216        fi
12217      fi
12218    done
12219  done
12220  if test "X$rpathdirs" != "X"; then
12221    if test -n "$acl_hardcode_libdir_separator"; then
12222                        alldirs=
12223      for found_dir in $rpathdirs; do
12224        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12225      done
12226            acl_save_libdir="$libdir"
12227      libdir="$alldirs"
12228      eval flag=\"$acl_hardcode_libdir_flag_spec\"
12229      libdir="$acl_save_libdir"
12230      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12231    else
12232            for found_dir in $rpathdirs; do
12233        acl_save_libdir="$libdir"
12234        libdir="$found_dir"
12235        eval flag=\"$acl_hardcode_libdir_flag_spec\"
12236        libdir="$acl_save_libdir"
12237        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12238      done
12239    fi
12240  fi
12241  if test "X$ltrpathdirs" != "X"; then
12242            for found_dir in $ltrpathdirs; do
12243      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12244    done
12245  fi
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12272$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12273if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  gt_save_LIBS="$LIBS"
12277     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h.  */
12280#include <CoreFoundation/CFPreferences.h>
12281int
12282main ()
12283{
12284CFPreferencesCopyAppValue(NULL, NULL)
12285  ;
12286  return 0;
12287}
12288_ACEOF
12289if ac_fn_c_try_link "$LINENO"; then :
12290  gt_cv_func_CFPreferencesCopyAppValue=yes
12291else
12292  gt_cv_func_CFPreferencesCopyAppValue=no
12293fi
12294rm -f core conftest.err conftest.$ac_objext \
12295    conftest$ac_exeext conftest.$ac_ext
12296     LIBS="$gt_save_LIBS"
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12299$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12300  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12301
12302$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12303
12304  fi
12305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12306$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12307if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12308  $as_echo_n "(cached) " >&6
12309else
12310  gt_save_LIBS="$LIBS"
12311     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313/* end confdefs.h.  */
12314#include <CoreFoundation/CFLocale.h>
12315int
12316main ()
12317{
12318CFLocaleCopyCurrent();
12319  ;
12320  return 0;
12321}
12322_ACEOF
12323if ac_fn_c_try_link "$LINENO"; then :
12324  gt_cv_func_CFLocaleCopyCurrent=yes
12325else
12326  gt_cv_func_CFLocaleCopyCurrent=no
12327fi
12328rm -f core conftest.err conftest.$ac_objext \
12329    conftest$ac_exeext conftest.$ac_ext
12330     LIBS="$gt_save_LIBS"
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12333$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12334  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12335
12336$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12337
12338  fi
12339  INTL_MACOSX_LIBS=
12340  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12341    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12342  fi
12343
12344
12345
12346
12347
12348
12349  LIBINTL=
12350  LTLIBINTL=
12351  POSUB=
12352
12353    case " $gt_needs " in
12354    *" need-formatstring-macros "*) gt_api_version=3 ;;
12355    *" need-ngettext "*) gt_api_version=2 ;;
12356    *) gt_api_version=1 ;;
12357  esac
12358  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12359  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12360
12361    if test "$USE_NLS" = "yes"; then
12362    gt_use_preinstalled_gnugettext=no
12363
12364
12365        if test $gt_api_version -ge 3; then
12366          gt_revision_test_code='
12367#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12368#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12369#endif
12370typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12371'
12372        else
12373          gt_revision_test_code=
12374        fi
12375        if test $gt_api_version -ge 2; then
12376          gt_expression_test_code=' + * ngettext ("", "", 0)'
12377        else
12378          gt_expression_test_code=
12379        fi
12380
12381        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12382$as_echo_n "checking for GNU gettext in libc... " >&6; }
12383if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
12384  $as_echo_n "(cached) " >&6
12385else
12386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387/* end confdefs.h.  */
12388#include <libintl.h>
12389$gt_revision_test_code
12390extern int _nl_msg_cat_cntr;
12391extern int *_nl_domain_bindings;
12392int
12393main ()
12394{
12395bindtextdomain ("", "");
12396return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12397  ;
12398  return 0;
12399}
12400_ACEOF
12401if ac_fn_c_try_link "$LINENO"; then :
12402  eval "$gt_func_gnugettext_libc=yes"
12403else
12404  eval "$gt_func_gnugettext_libc=no"
12405fi
12406rm -f core conftest.err conftest.$ac_objext \
12407    conftest$ac_exeext conftest.$ac_ext
12408fi
12409eval ac_res=\$$gt_func_gnugettext_libc
12410	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12411$as_echo "$ac_res" >&6; }
12412
12413        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12414
12415
12416
12417
12418
12419          am_save_CPPFLAGS="$CPPFLAGS"
12420
12421  for element in $INCICONV; do
12422    haveit=
12423    for x in $CPPFLAGS; do
12424
12425  acl_save_prefix="$prefix"
12426  prefix="$acl_final_prefix"
12427  acl_save_exec_prefix="$exec_prefix"
12428  exec_prefix="$acl_final_exec_prefix"
12429  eval x=\"$x\"
12430  exec_prefix="$acl_save_exec_prefix"
12431  prefix="$acl_save_prefix"
12432
12433      if test "X$x" = "X$element"; then
12434        haveit=yes
12435        break
12436      fi
12437    done
12438    if test -z "$haveit"; then
12439      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12440    fi
12441  done
12442
12443
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12445$as_echo_n "checking for iconv... " >&6; }
12446if test "${am_cv_func_iconv+set}" = set; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449
12450    am_cv_func_iconv="no, consider installing GNU libiconv"
12451    am_cv_lib_iconv=no
12452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453/* end confdefs.h.  */
12454#include <stdlib.h>
12455#include <iconv.h>
12456int
12457main ()
12458{
12459iconv_t cd = iconv_open("","");
12460       iconv(cd,NULL,NULL,NULL,NULL);
12461       iconv_close(cd);
12462  ;
12463  return 0;
12464}
12465_ACEOF
12466if ac_fn_c_try_link "$LINENO"; then :
12467  am_cv_func_iconv=yes
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470    conftest$ac_exeext conftest.$ac_ext
12471    if test "$am_cv_func_iconv" != yes; then
12472      am_save_LIBS="$LIBS"
12473      LIBS="$LIBS $LIBICONV"
12474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475/* end confdefs.h.  */
12476#include <stdlib.h>
12477#include <iconv.h>
12478int
12479main ()
12480{
12481iconv_t cd = iconv_open("","");
12482         iconv(cd,NULL,NULL,NULL,NULL);
12483         iconv_close(cd);
12484  ;
12485  return 0;
12486}
12487_ACEOF
12488if ac_fn_c_try_link "$LINENO"; then :
12489  am_cv_lib_iconv=yes
12490        am_cv_func_iconv=yes
12491fi
12492rm -f core conftest.err conftest.$ac_objext \
12493    conftest$ac_exeext conftest.$ac_ext
12494      LIBS="$am_save_LIBS"
12495    fi
12496
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12499$as_echo "$am_cv_func_iconv" >&6; }
12500  if test "$am_cv_func_iconv" = yes; then
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12502$as_echo_n "checking for working iconv... " >&6; }
12503if test "${am_cv_func_iconv_works+set}" = set; then :
12504  $as_echo_n "(cached) " >&6
12505else
12506
12507            am_save_LIBS="$LIBS"
12508      if test $am_cv_lib_iconv = yes; then
12509        LIBS="$LIBS $LIBICONV"
12510      fi
12511      if test "$cross_compiling" = yes; then :
12512  case "$host_os" in
12513           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12514           *)            am_cv_func_iconv_works="guessing yes" ;;
12515         esac
12516else
12517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518/* end confdefs.h.  */
12519
12520#include <iconv.h>
12521#include <string.h>
12522int main ()
12523{
12524  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12525     returns.  */
12526  {
12527    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12528    if (cd_utf8_to_88591 != (iconv_t)(-1))
12529      {
12530        static const char input[] = "\342\202\254"; /* EURO SIGN */
12531        char buf[10];
12532        const char *inptr = input;
12533        size_t inbytesleft = strlen (input);
12534        char *outptr = buf;
12535        size_t outbytesleft = sizeof (buf);
12536        size_t res = iconv (cd_utf8_to_88591,
12537                            (char **) &inptr, &inbytesleft,
12538                            &outptr, &outbytesleft);
12539        if (res == 0)
12540          return 1;
12541      }
12542  }
12543#if 0 /* This bug could be worked around by the caller.  */
12544  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12545  {
12546    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12547    if (cd_88591_to_utf8 != (iconv_t)(-1))
12548      {
12549        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12550        char buf[50];
12551        const char *inptr = input;
12552        size_t inbytesleft = strlen (input);
12553        char *outptr = buf;
12554        size_t outbytesleft = sizeof (buf);
12555        size_t res = iconv (cd_88591_to_utf8,
12556                            (char **) &inptr, &inbytesleft,
12557                            &outptr, &outbytesleft);
12558        if ((int)res > 0)
12559          return 1;
12560      }
12561  }
12562#endif
12563  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12564     provided.  */
12565  if (/* Try standardized names.  */
12566      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12567      /* Try IRIX, OSF/1 names.  */
12568      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12569      /* Try AIX names.  */
12570      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12571      /* Try HP-UX names.  */
12572      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12573    return 1;
12574  return 0;
12575}
12576_ACEOF
12577if ac_fn_c_try_run "$LINENO"; then :
12578  am_cv_func_iconv_works=yes
12579else
12580  am_cv_func_iconv_works=no
12581fi
12582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12583  conftest.$ac_objext conftest.beam conftest.$ac_ext
12584fi
12585
12586      LIBS="$am_save_LIBS"
12587
12588fi
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12590$as_echo "$am_cv_func_iconv_works" >&6; }
12591    case "$am_cv_func_iconv_works" in
12592      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12593      *)   am_func_iconv=yes ;;
12594    esac
12595  else
12596    am_func_iconv=no am_cv_lib_iconv=no
12597  fi
12598  if test "$am_func_iconv" = yes; then
12599
12600$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12601
12602  fi
12603  if test "$am_cv_lib_iconv" = yes; then
12604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12605$as_echo_n "checking how to link with libiconv... " >&6; }
12606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12607$as_echo "$LIBICONV" >&6; }
12608  else
12609            CPPFLAGS="$am_save_CPPFLAGS"
12610    LIBICONV=
12611    LTLIBICONV=
12612  fi
12613
12614
12615
12616
12617
12618
12619
12620
12621    use_additional=yes
12622
12623  acl_save_prefix="$prefix"
12624  prefix="$acl_final_prefix"
12625  acl_save_exec_prefix="$exec_prefix"
12626  exec_prefix="$acl_final_exec_prefix"
12627
12628    eval additional_includedir=\"$includedir\"
12629    eval additional_libdir=\"$libdir\"
12630
12631  exec_prefix="$acl_save_exec_prefix"
12632  prefix="$acl_save_prefix"
12633
12634
12635# Check whether --with-libintl-prefix was given.
12636if test "${with_libintl_prefix+set}" = set; then :
12637  withval=$with_libintl_prefix;
12638    if test "X$withval" = "Xno"; then
12639      use_additional=no
12640    else
12641      if test "X$withval" = "X"; then
12642
12643  acl_save_prefix="$prefix"
12644  prefix="$acl_final_prefix"
12645  acl_save_exec_prefix="$exec_prefix"
12646  exec_prefix="$acl_final_exec_prefix"
12647
12648          eval additional_includedir=\"$includedir\"
12649          eval additional_libdir=\"$libdir\"
12650
12651  exec_prefix="$acl_save_exec_prefix"
12652  prefix="$acl_save_prefix"
12653
12654      else
12655        additional_includedir="$withval/include"
12656        additional_libdir="$withval/$acl_libdirstem"
12657      fi
12658    fi
12659
12660fi
12661
12662      LIBINTL=
12663  LTLIBINTL=
12664  INCINTL=
12665  LIBINTL_PREFIX=
12666  rpathdirs=
12667  ltrpathdirs=
12668  names_already_handled=
12669  names_next_round='intl '
12670  while test -n "$names_next_round"; do
12671    names_this_round="$names_next_round"
12672    names_next_round=
12673    for name in $names_this_round; do
12674      already_handled=
12675      for n in $names_already_handled; do
12676        if test "$n" = "$name"; then
12677          already_handled=yes
12678          break
12679        fi
12680      done
12681      if test -z "$already_handled"; then
12682        names_already_handled="$names_already_handled $name"
12683                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12684        eval value=\"\$HAVE_LIB$uppername\"
12685        if test -n "$value"; then
12686          if test "$value" = yes; then
12687            eval value=\"\$LIB$uppername\"
12688            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12689            eval value=\"\$LTLIB$uppername\"
12690            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12691          else
12692                                    :
12693          fi
12694        else
12695                              found_dir=
12696          found_la=
12697          found_so=
12698          found_a=
12699          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12700          if test -n "$acl_shlibext"; then
12701            shrext=".$acl_shlibext"             # typically: shrext=.so
12702          else
12703            shrext=
12704          fi
12705          if test $use_additional = yes; then
12706            dir="$additional_libdir"
12707                                    if test -n "$acl_shlibext"; then
12708              if test -f "$dir/$libname$shrext"; then
12709                found_dir="$dir"
12710                found_so="$dir/$libname$shrext"
12711              else
12712                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12713                  ver=`(cd "$dir" && \
12714                        for f in "$libname$shrext".*; do echo "$f"; done \
12715                        | sed -e "s,^$libname$shrext\\\\.,," \
12716                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12717                        | sed 1q ) 2>/dev/null`
12718                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12719                    found_dir="$dir"
12720                    found_so="$dir/$libname$shrext.$ver"
12721                  fi
12722                else
12723                  eval library_names=\"$acl_library_names_spec\"
12724                  for f in $library_names; do
12725                    if test -f "$dir/$f"; then
12726                      found_dir="$dir"
12727                      found_so="$dir/$f"
12728                      break
12729                    fi
12730                  done
12731                fi
12732              fi
12733            fi
12734                        if test "X$found_dir" = "X"; then
12735              if test -f "$dir/$libname.$acl_libext"; then
12736                found_dir="$dir"
12737                found_a="$dir/$libname.$acl_libext"
12738              fi
12739            fi
12740            if test "X$found_dir" != "X"; then
12741              if test -f "$dir/$libname.la"; then
12742                found_la="$dir/$libname.la"
12743              fi
12744            fi
12745          fi
12746          if test "X$found_dir" = "X"; then
12747            for x in $LDFLAGS $LTLIBINTL; do
12748
12749  acl_save_prefix="$prefix"
12750  prefix="$acl_final_prefix"
12751  acl_save_exec_prefix="$exec_prefix"
12752  exec_prefix="$acl_final_exec_prefix"
12753  eval x=\"$x\"
12754  exec_prefix="$acl_save_exec_prefix"
12755  prefix="$acl_save_prefix"
12756
12757              case "$x" in
12758                -L*)
12759                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12760                                    if test -n "$acl_shlibext"; then
12761                    if test -f "$dir/$libname$shrext"; then
12762                      found_dir="$dir"
12763                      found_so="$dir/$libname$shrext"
12764                    else
12765                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12766                        ver=`(cd "$dir" && \
12767                              for f in "$libname$shrext".*; do echo "$f"; done \
12768                              | sed -e "s,^$libname$shrext\\\\.,," \
12769                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12770                              | sed 1q ) 2>/dev/null`
12771                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12772                          found_dir="$dir"
12773                          found_so="$dir/$libname$shrext.$ver"
12774                        fi
12775                      else
12776                        eval library_names=\"$acl_library_names_spec\"
12777                        for f in $library_names; do
12778                          if test -f "$dir/$f"; then
12779                            found_dir="$dir"
12780                            found_so="$dir/$f"
12781                            break
12782                          fi
12783                        done
12784                      fi
12785                    fi
12786                  fi
12787                                    if test "X$found_dir" = "X"; then
12788                    if test -f "$dir/$libname.$acl_libext"; then
12789                      found_dir="$dir"
12790                      found_a="$dir/$libname.$acl_libext"
12791                    fi
12792                  fi
12793                  if test "X$found_dir" != "X"; then
12794                    if test -f "$dir/$libname.la"; then
12795                      found_la="$dir/$libname.la"
12796                    fi
12797                  fi
12798                  ;;
12799              esac
12800              if test "X$found_dir" != "X"; then
12801                break
12802              fi
12803            done
12804          fi
12805          if test "X$found_dir" != "X"; then
12806                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12807            if test "X$found_so" != "X"; then
12808                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12809                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12810              else
12811                                                                                haveit=
12812                for x in $ltrpathdirs; do
12813                  if test "X$x" = "X$found_dir"; then
12814                    haveit=yes
12815                    break
12816                  fi
12817                done
12818                if test -z "$haveit"; then
12819                  ltrpathdirs="$ltrpathdirs $found_dir"
12820                fi
12821                                if test "$acl_hardcode_direct" = yes; then
12822                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12823                else
12824                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12825                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12826                                                            haveit=
12827                    for x in $rpathdirs; do
12828                      if test "X$x" = "X$found_dir"; then
12829                        haveit=yes
12830                        break
12831                      fi
12832                    done
12833                    if test -z "$haveit"; then
12834                      rpathdirs="$rpathdirs $found_dir"
12835                    fi
12836                  else
12837                                                                                haveit=
12838                    for x in $LDFLAGS $LIBINTL; do
12839
12840  acl_save_prefix="$prefix"
12841  prefix="$acl_final_prefix"
12842  acl_save_exec_prefix="$exec_prefix"
12843  exec_prefix="$acl_final_exec_prefix"
12844  eval x=\"$x\"
12845  exec_prefix="$acl_save_exec_prefix"
12846  prefix="$acl_save_prefix"
12847
12848                      if test "X$x" = "X-L$found_dir"; then
12849                        haveit=yes
12850                        break
12851                      fi
12852                    done
12853                    if test -z "$haveit"; then
12854                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12855                    fi
12856                    if test "$acl_hardcode_minus_L" != no; then
12857                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12858                    else
12859                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12860                    fi
12861                  fi
12862                fi
12863              fi
12864            else
12865              if test "X$found_a" != "X"; then
12866                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12867              else
12868                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12869              fi
12870            fi
12871                        additional_includedir=
12872            case "$found_dir" in
12873              */$acl_libdirstem | */$acl_libdirstem/)
12874                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12875                LIBINTL_PREFIX="$basedir"
12876                additional_includedir="$basedir/include"
12877                ;;
12878            esac
12879            if test "X$additional_includedir" != "X"; then
12880                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12881                haveit=
12882                if test "X$additional_includedir" = "X/usr/local/include"; then
12883                  if test -n "$GCC"; then
12884                    case $host_os in
12885                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12886                    esac
12887                  fi
12888                fi
12889                if test -z "$haveit"; then
12890                  for x in $CPPFLAGS $INCINTL; do
12891
12892  acl_save_prefix="$prefix"
12893  prefix="$acl_final_prefix"
12894  acl_save_exec_prefix="$exec_prefix"
12895  exec_prefix="$acl_final_exec_prefix"
12896  eval x=\"$x\"
12897  exec_prefix="$acl_save_exec_prefix"
12898  prefix="$acl_save_prefix"
12899
12900                    if test "X$x" = "X-I$additional_includedir"; then
12901                      haveit=yes
12902                      break
12903                    fi
12904                  done
12905                  if test -z "$haveit"; then
12906                    if test -d "$additional_includedir"; then
12907                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12908                    fi
12909                  fi
12910                fi
12911              fi
12912            fi
12913                        if test -n "$found_la"; then
12914                                                        save_libdir="$libdir"
12915              case "$found_la" in
12916                */* | *\\*) . "$found_la" ;;
12917                *) . "./$found_la" ;;
12918              esac
12919              libdir="$save_libdir"
12920                            for dep in $dependency_libs; do
12921                case "$dep" in
12922                  -L*)
12923                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12924                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12925                      haveit=
12926                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12927                        if test -n "$GCC"; then
12928                          case $host_os in
12929                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12930                          esac
12931                        fi
12932                      fi
12933                      if test -z "$haveit"; then
12934                        haveit=
12935                        for x in $LDFLAGS $LIBINTL; do
12936
12937  acl_save_prefix="$prefix"
12938  prefix="$acl_final_prefix"
12939  acl_save_exec_prefix="$exec_prefix"
12940  exec_prefix="$acl_final_exec_prefix"
12941  eval x=\"$x\"
12942  exec_prefix="$acl_save_exec_prefix"
12943  prefix="$acl_save_prefix"
12944
12945                          if test "X$x" = "X-L$additional_libdir"; then
12946                            haveit=yes
12947                            break
12948                          fi
12949                        done
12950                        if test -z "$haveit"; then
12951                          if test -d "$additional_libdir"; then
12952                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12953                          fi
12954                        fi
12955                        haveit=
12956                        for x in $LDFLAGS $LTLIBINTL; do
12957
12958  acl_save_prefix="$prefix"
12959  prefix="$acl_final_prefix"
12960  acl_save_exec_prefix="$exec_prefix"
12961  exec_prefix="$acl_final_exec_prefix"
12962  eval x=\"$x\"
12963  exec_prefix="$acl_save_exec_prefix"
12964  prefix="$acl_save_prefix"
12965
12966                          if test "X$x" = "X-L$additional_libdir"; then
12967                            haveit=yes
12968                            break
12969                          fi
12970                        done
12971                        if test -z "$haveit"; then
12972                          if test -d "$additional_libdir"; then
12973                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12974                          fi
12975                        fi
12976                      fi
12977                    fi
12978                    ;;
12979                  -R*)
12980                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12981                    if test "$enable_rpath" != no; then
12982                                                                  haveit=
12983                      for x in $rpathdirs; do
12984                        if test "X$x" = "X$dir"; then
12985                          haveit=yes
12986                          break
12987                        fi
12988                      done
12989                      if test -z "$haveit"; then
12990                        rpathdirs="$rpathdirs $dir"
12991                      fi
12992                                                                  haveit=
12993                      for x in $ltrpathdirs; do
12994                        if test "X$x" = "X$dir"; then
12995                          haveit=yes
12996                          break
12997                        fi
12998                      done
12999                      if test -z "$haveit"; then
13000                        ltrpathdirs="$ltrpathdirs $dir"
13001                      fi
13002                    fi
13003                    ;;
13004                  -l*)
13005                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13006                    ;;
13007                  *.la)
13008                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13009                    ;;
13010                  *)
13011                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13012                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13013                    ;;
13014                esac
13015              done
13016            fi
13017          else
13018                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13019            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13020          fi
13021        fi
13022      fi
13023    done
13024  done
13025  if test "X$rpathdirs" != "X"; then
13026    if test -n "$acl_hardcode_libdir_separator"; then
13027                        alldirs=
13028      for found_dir in $rpathdirs; do
13029        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13030      done
13031            acl_save_libdir="$libdir"
13032      libdir="$alldirs"
13033      eval flag=\"$acl_hardcode_libdir_flag_spec\"
13034      libdir="$acl_save_libdir"
13035      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13036    else
13037            for found_dir in $rpathdirs; do
13038        acl_save_libdir="$libdir"
13039        libdir="$found_dir"
13040        eval flag=\"$acl_hardcode_libdir_flag_spec\"
13041        libdir="$acl_save_libdir"
13042        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13043      done
13044    fi
13045  fi
13046  if test "X$ltrpathdirs" != "X"; then
13047            for found_dir in $ltrpathdirs; do
13048      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13049    done
13050  fi
13051
13052          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13053$as_echo_n "checking for GNU gettext in libintl... " >&6; }
13054if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
13055  $as_echo_n "(cached) " >&6
13056else
13057  gt_save_CPPFLAGS="$CPPFLAGS"
13058            CPPFLAGS="$CPPFLAGS $INCINTL"
13059            gt_save_LIBS="$LIBS"
13060            LIBS="$LIBS $LIBINTL"
13061                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h.  */
13063#include <libintl.h>
13064$gt_revision_test_code
13065extern int _nl_msg_cat_cntr;
13066extern
13067#ifdef __cplusplus
13068"C"
13069#endif
13070const char *_nl_expand_alias (const char *);
13071int
13072main ()
13073{
13074bindtextdomain ("", "");
13075return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13076  ;
13077  return 0;
13078}
13079_ACEOF
13080if ac_fn_c_try_link "$LINENO"; then :
13081  eval "$gt_func_gnugettext_libintl=yes"
13082else
13083  eval "$gt_func_gnugettext_libintl=no"
13084fi
13085rm -f core conftest.err conftest.$ac_objext \
13086    conftest$ac_exeext conftest.$ac_ext
13087                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13088              LIBS="$LIBS $LIBICONV"
13089              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090/* end confdefs.h.  */
13091#include <libintl.h>
13092$gt_revision_test_code
13093extern int _nl_msg_cat_cntr;
13094extern
13095#ifdef __cplusplus
13096"C"
13097#endif
13098const char *_nl_expand_alias (const char *);
13099int
13100main ()
13101{
13102bindtextdomain ("", "");
13103return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13104  ;
13105  return 0;
13106}
13107_ACEOF
13108if ac_fn_c_try_link "$LINENO"; then :
13109  LIBINTL="$LIBINTL $LIBICONV"
13110                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13111                eval "$gt_func_gnugettext_libintl=yes"
13112
13113fi
13114rm -f core conftest.err conftest.$ac_objext \
13115    conftest$ac_exeext conftest.$ac_ext
13116            fi
13117            CPPFLAGS="$gt_save_CPPFLAGS"
13118            LIBS="$gt_save_LIBS"
13119fi
13120eval ac_res=\$$gt_func_gnugettext_libintl
13121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13122$as_echo "$ac_res" >&6; }
13123        fi
13124
13125                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13126           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13127                && test "$PACKAGE" != gettext-runtime \
13128                && test "$PACKAGE" != gettext-tools; }; then
13129          gt_use_preinstalled_gnugettext=yes
13130        else
13131                    LIBINTL=
13132          LTLIBINTL=
13133          INCINTL=
13134        fi
13135
13136
13137
13138    if test -n "$INTL_MACOSX_LIBS"; then
13139      if test "$gt_use_preinstalled_gnugettext" = "yes" \
13140         || test "$nls_cv_use_gnu_gettext" = "yes"; then
13141                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13142        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13143      fi
13144    fi
13145
13146    if test "$gt_use_preinstalled_gnugettext" = "yes" \
13147       || test "$nls_cv_use_gnu_gettext" = "yes"; then
13148
13149$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13150
13151    else
13152      USE_NLS=no
13153    fi
13154  fi
13155
13156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13157$as_echo_n "checking whether to use NLS... " >&6; }
13158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13159$as_echo "$USE_NLS" >&6; }
13160  if test "$USE_NLS" = "yes"; then
13161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13162$as_echo_n "checking where the gettext function comes from... " >&6; }
13163    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13164      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13165        gt_source="external libintl"
13166      else
13167        gt_source="libc"
13168      fi
13169    else
13170      gt_source="included intl directory"
13171    fi
13172    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13173$as_echo "$gt_source" >&6; }
13174  fi
13175
13176  if test "$USE_NLS" = "yes"; then
13177
13178    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13179      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13180        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13181$as_echo_n "checking how to link with libintl... " >&6; }
13182        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13183$as_echo "$LIBINTL" >&6; }
13184
13185  for element in $INCINTL; do
13186    haveit=
13187    for x in $CPPFLAGS; do
13188
13189  acl_save_prefix="$prefix"
13190  prefix="$acl_final_prefix"
13191  acl_save_exec_prefix="$exec_prefix"
13192  exec_prefix="$acl_final_exec_prefix"
13193  eval x=\"$x\"
13194  exec_prefix="$acl_save_exec_prefix"
13195  prefix="$acl_save_prefix"
13196
13197      if test "X$x" = "X$element"; then
13198        haveit=yes
13199        break
13200      fi
13201    done
13202    if test -z "$haveit"; then
13203      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13204    fi
13205  done
13206
13207      fi
13208
13209
13210$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13211
13212
13213$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13214
13215    fi
13216
13217        POSUB=po
13218  fi
13219
13220
13221
13222    INTLLIBS="$LIBINTL"
13223
13224
13225
13226
13227
13228
13229
13230# Checks for header files.
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13232$as_echo_n "checking for ANSI C header files... " >&6; }
13233if test "${ac_cv_header_stdc+set}" = set; then :
13234  $as_echo_n "(cached) " >&6
13235else
13236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238#include <stdlib.h>
13239#include <stdarg.h>
13240#include <string.h>
13241#include <float.h>
13242
13243int
13244main ()
13245{
13246
13247  ;
13248  return 0;
13249}
13250_ACEOF
13251if ac_fn_c_try_compile "$LINENO"; then :
13252  ac_cv_header_stdc=yes
13253else
13254  ac_cv_header_stdc=no
13255fi
13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257
13258if test $ac_cv_header_stdc = yes; then
13259  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261/* end confdefs.h.  */
13262#include <string.h>
13263
13264_ACEOF
13265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13266  $EGREP "memchr" >/dev/null 2>&1; then :
13267
13268else
13269  ac_cv_header_stdc=no
13270fi
13271rm -f conftest*
13272
13273fi
13274
13275if test $ac_cv_header_stdc = yes; then
13276  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279#include <stdlib.h>
13280
13281_ACEOF
13282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283  $EGREP "free" >/dev/null 2>&1; then :
13284
13285else
13286  ac_cv_header_stdc=no
13287fi
13288rm -f conftest*
13289
13290fi
13291
13292if test $ac_cv_header_stdc = yes; then
13293  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13294  if test "$cross_compiling" = yes; then :
13295  :
13296else
13297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298/* end confdefs.h.  */
13299#include <ctype.h>
13300#include <stdlib.h>
13301#if ((' ' & 0x0FF) == 0x020)
13302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13304#else
13305# define ISLOWER(c) \
13306		   (('a' <= (c) && (c) <= 'i') \
13307		     || ('j' <= (c) && (c) <= 'r') \
13308		     || ('s' <= (c) && (c) <= 'z'))
13309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13310#endif
13311
13312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13313int
13314main ()
13315{
13316  int i;
13317  for (i = 0; i < 256; i++)
13318    if (XOR (islower (i), ISLOWER (i))
13319	|| toupper (i) != TOUPPER (i))
13320      return 2;
13321  return 0;
13322}
13323_ACEOF
13324if ac_fn_c_try_run "$LINENO"; then :
13325
13326else
13327  ac_cv_header_stdc=no
13328fi
13329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13330  conftest.$ac_objext conftest.beam conftest.$ac_ext
13331fi
13332
13333fi
13334fi
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13336$as_echo "$ac_cv_header_stdc" >&6; }
13337if test $ac_cv_header_stdc = yes; then
13338
13339$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13340
13341fi
13342
13343for ac_header in stdlib.h locale.h
13344do :
13345  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13347eval as_val=\$$as_ac_Header
13348   if test "x$as_val" = x""yes; then :
13349  cat >>confdefs.h <<_ACEOF
13350#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13351_ACEOF
13352
13353fi
13354
13355done
13356
13357ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13358if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
13359  ac_have_decl=1
13360else
13361  ac_have_decl=0
13362fi
13363
13364cat >>confdefs.h <<_ACEOF
13365#define HAVE_DECL_STRERROR_R $ac_have_decl
13366_ACEOF
13367
13368for ac_func in strerror_r
13369do :
13370  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13371if test "x$ac_cv_func_strerror_r" = x""yes; then :
13372  cat >>confdefs.h <<_ACEOF
13373#define HAVE_STRERROR_R 1
13374_ACEOF
13375
13376fi
13377done
13378
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13380$as_echo_n "checking whether strerror_r returns char *... " >&6; }
13381if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
13382  $as_echo_n "(cached) " >&6
13383else
13384
13385    ac_cv_func_strerror_r_char_p=no
13386    if test $ac_cv_have_decl_strerror_r = yes; then
13387      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388/* end confdefs.h.  */
13389$ac_includes_default
13390int
13391main ()
13392{
13393
13394	  char buf[100];
13395	  char x = *strerror_r (0, buf, sizeof buf);
13396	  char *p = strerror_r (0, buf, sizeof buf);
13397	  return !p || x;
13398
13399  ;
13400  return 0;
13401}
13402_ACEOF
13403if ac_fn_c_try_compile "$LINENO"; then :
13404  ac_cv_func_strerror_r_char_p=yes
13405fi
13406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407    else
13408      # strerror_r is not declared.  Choose between
13409      # systems that have relatively inaccessible declarations for the
13410      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13411      # former has a strerror_r that returns char*, while the latter
13412      # has a strerror_r that returns `int'.
13413      # This test should segfault on the DEC system.
13414      if test "$cross_compiling" = yes; then :
13415  :
13416else
13417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h.  */
13419$ac_includes_default
13420	extern char *strerror_r ();
13421int
13422main ()
13423{
13424char buf[100];
13425	  char x = *strerror_r (0, buf, sizeof buf);
13426	  return ! isalpha (x);
13427  ;
13428  return 0;
13429}
13430_ACEOF
13431if ac_fn_c_try_run "$LINENO"; then :
13432  ac_cv_func_strerror_r_char_p=yes
13433fi
13434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13435  conftest.$ac_objext conftest.beam conftest.$ac_ext
13436fi
13437
13438    fi
13439
13440fi
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13442$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13443if test $ac_cv_func_strerror_r_char_p = yes; then
13444
13445$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13446
13447fi
13448
13449case "${host_os}" in
13450     solaris*)
13451     # All versions of Solaris from 2.4 have a thread-safe strerror().
13452     # Since Solaris 10, in addition strerror_r() exists.
13453     ;;
13454     *)
13455     ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13456if test "x$ac_cv_func_strerror_r" = x""yes; then :
13457
13458else
13459  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
13460$as_echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
13461fi
13462
13463     ;;
13464esac
13465
13466# Checks for typedefs, structures, and compiler characteristics.
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13468$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13469if test "${ac_cv_c_const+set}" = set; then :
13470  $as_echo_n "(cached) " >&6
13471else
13472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h.  */
13474
13475int
13476main ()
13477{
13478/* FIXME: Include the comments suggested by Paul. */
13479#ifndef __cplusplus
13480  /* Ultrix mips cc rejects this.  */
13481  typedef int charset[2];
13482  const charset cs;
13483  /* SunOS 4.1.1 cc rejects this.  */
13484  char const *const *pcpcc;
13485  char **ppc;
13486  /* NEC SVR4.0.2 mips cc rejects this.  */
13487  struct point {int x, y;};
13488  static struct point const zero = {0,0};
13489  /* AIX XL C 1.02.0.0 rejects this.
13490     It does not let you subtract one const X* pointer from another in
13491     an arm of an if-expression whose if-part is not a constant
13492     expression */
13493  const char *g = "string";
13494  pcpcc = &g + (g ? g-g : 0);
13495  /* HPUX 7.0 cc rejects these. */
13496  ++pcpcc;
13497  ppc = (char**) pcpcc;
13498  pcpcc = (char const *const *) ppc;
13499  { /* SCO 3.2v4 cc rejects this.  */
13500    char *t;
13501    char const *s = 0 ? (char *) 0 : (char const *) 0;
13502
13503    *t++ = 0;
13504    if (s) return 0;
13505  }
13506  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13507    int x[] = {25, 17};
13508    const int *foo = &x[0];
13509    ++foo;
13510  }
13511  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13512    typedef const int *iptr;
13513    iptr p = 0;
13514    ++p;
13515  }
13516  { /* AIX XL C 1.02.0.0 rejects this saying
13517       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13518    struct s { int j; const int *ap[3]; };
13519    struct s *b; b->j = 5;
13520  }
13521  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13522    const int foo = 10;
13523    if (!foo) return 0;
13524  }
13525  return !cs[0] && !zero.x;
13526#endif
13527
13528  ;
13529  return 0;
13530}
13531_ACEOF
13532if ac_fn_c_try_compile "$LINENO"; then :
13533  ac_cv_c_const=yes
13534else
13535  ac_cv_c_const=no
13536fi
13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538fi
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13540$as_echo "$ac_cv_c_const" >&6; }
13541if test $ac_cv_c_const = no; then
13542
13543$as_echo "#define const /**/" >>confdefs.h
13544
13545fi
13546
13547
13548# Substitution used for gpg-error-config
13549GPG_ERROR_CONFIG_LIBS="-lgpg-error"
13550GPG_ERROR_CONFIG_CFLAGS=""
13551GPG_ERROR_CONFIG_ISUBDIRAFTER=""
13552
13553
13554
13555ac_config_files="$ac_config_files src/gpg-error-config"
13556
13557
13558
13559# Special defines for certain platforms
13560if test "$have_w32_system" = yes; then
13561
13562$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
13563
13564    if test "$have_w32ce_system" = yes; then
13565
13566$as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
13567
13568      GPG_ERROR_CONFIG_ISUBDIRAFTER="gpg-extra"
13569    fi
13570    BUILD_TIMESTAMP=`date --iso-8601=minutes`
13571        BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
13572        case "$VERSION" in
13573      *-svn*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
13574      *-cvs)  BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
13575      *-rc*)  BUILD_FILEVERSION="${BUILD_FILEVERSION}0,1" ;;
13576      *)      BUILD_FILEVERSION="${BUILD_FILEVERSION}0,2" ;;
13577    esac
13578fi
13579
13580
13581 if test "$have_w32_system" = yes; then
13582  HAVE_W32_SYSTEM_TRUE=
13583  HAVE_W32_SYSTEM_FALSE='#'
13584else
13585  HAVE_W32_SYSTEM_TRUE='#'
13586  HAVE_W32_SYSTEM_FALSE=
13587fi
13588
13589 if test "$have_w32ce_system" = yes; then
13590  HAVE_W32CE_SYSTEM_TRUE=
13591  HAVE_W32CE_SYSTEM_FALSE='#'
13592else
13593  HAVE_W32CE_SYSTEM_TRUE='#'
13594  HAVE_W32CE_SYSTEM_FALSE=
13595fi
13596
13597
13598
13599# Check whether --enable-languages was given.
13600if test "${enable_languages+set}" = set; then :
13601  enableval=$enable_languages;
13602fi
13603
13604 if test "x$enable_languages" != xno; then
13605  LANGUAGES_SOME_TRUE=
13606  LANGUAGES_SOME_FALSE='#'
13607else
13608  LANGUAGES_SOME_TRUE='#'
13609  LANGUAGES_SOME_FALSE=
13610fi
13611
13612
13613
13614# Substitution
13615ac_config_files="$ac_config_files Makefile"
13616
13617ac_config_files="$ac_config_files po/Makefile.in m4/Makefile"
13618
13619ac_config_files="$ac_config_files src/Makefile tests/Makefile"
13620
13621ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd"
13622
13623ac_config_files="$ac_config_files src/versioninfo.rc"
13624
13625
13626cat >confcache <<\_ACEOF
13627# This file is a shell script that caches the results of configure
13628# tests run on this system so they can be shared between configure
13629# scripts and configure runs, see configure's option --config-cache.
13630# It is not useful on other systems.  If it contains results you don't
13631# want to keep, you may remove or edit it.
13632#
13633# config.status only pays attention to the cache file if you give it
13634# the --recheck option to rerun configure.
13635#
13636# `ac_cv_env_foo' variables (set or unset) will be overridden when
13637# loading this file, other *unset* `ac_cv_foo' will be assigned the
13638# following values.
13639
13640_ACEOF
13641
13642# The following way of writing the cache mishandles newlines in values,
13643# but we know of no workaround that is simple, portable, and efficient.
13644# So, we kill variables containing newlines.
13645# Ultrix sh set writes to stderr and can't be redirected directly,
13646# and sets the high bit in the cache file unless we assign to the vars.
13647(
13648  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13649    eval ac_val=\$$ac_var
13650    case $ac_val in #(
13651    *${as_nl}*)
13652      case $ac_var in #(
13653      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13654$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13655      esac
13656      case $ac_var in #(
13657      _ | IFS | as_nl) ;; #(
13658      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13659      *) { eval $ac_var=; unset $ac_var;} ;;
13660      esac ;;
13661    esac
13662  done
13663
13664  (set) 2>&1 |
13665    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13666    *${as_nl}ac_space=\ *)
13667      # `set' does not quote correctly, so add quotes: double-quote
13668      # substitution turns \\\\ into \\, and sed turns \\ into \.
13669      sed -n \
13670	"s/'/'\\\\''/g;
13671	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13672      ;; #(
13673    *)
13674      # `set' quotes correctly as required by POSIX, so do not add quotes.
13675      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13676      ;;
13677    esac |
13678    sort
13679) |
13680  sed '
13681     /^ac_cv_env_/b end
13682     t clear
13683     :clear
13684     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13685     t end
13686     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13687     :end' >>confcache
13688if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13689  if test -w "$cache_file"; then
13690    test "x$cache_file" != "x/dev/null" &&
13691      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13692$as_echo "$as_me: updating cache $cache_file" >&6;}
13693    cat confcache >$cache_file
13694  else
13695    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13696$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13697  fi
13698fi
13699rm -f confcache
13700
13701test "x$prefix" = xNONE && prefix=$ac_default_prefix
13702# Let make expand exec_prefix.
13703test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13704
13705DEFS=-DHAVE_CONFIG_H
13706
13707ac_libobjs=
13708ac_ltlibobjs=
13709for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13710  # 1. Remove the extension, and $U if already installed.
13711  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13712  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13713  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13714  #    will be set to the directory where LIBOBJS objects are built.
13715  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13716  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13717done
13718LIBOBJS=$ac_libobjs
13719
13720LTLIBOBJS=$ac_ltlibobjs
13721
13722
13723if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13724  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13725Usually this means the macro was only invoked conditionally." "$LINENO" 5
13726fi
13727if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13728  as_fn_error "conditional \"AMDEP\" was never defined.
13729Usually this means the macro was only invoked conditionally." "$LINENO" 5
13730fi
13731if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13732  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13733Usually this means the macro was only invoked conditionally." "$LINENO" 5
13734fi
13735if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
13736  as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
13737Usually this means the macro was only invoked conditionally." "$LINENO" 5
13738fi
13739if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
13740  as_fn_error "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
13741Usually this means the macro was only invoked conditionally." "$LINENO" 5
13742fi
13743if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
13744  as_fn_error "conditional \"LANGUAGES_SOME\" was never defined.
13745Usually this means the macro was only invoked conditionally." "$LINENO" 5
13746fi
13747
13748: ${CONFIG_STATUS=./config.status}
13749ac_write_fail=0
13750ac_clean_files_save=$ac_clean_files
13751ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13753$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13754as_write_fail=0
13755cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13756#! $SHELL
13757# Generated by $as_me.
13758# Run this file to recreate the current configuration.
13759# Compiler output produced by configure, useful for debugging
13760# configure, is in config.log if it exists.
13761
13762debug=false
13763ac_cs_recheck=false
13764ac_cs_silent=false
13765
13766SHELL=\${CONFIG_SHELL-$SHELL}
13767export SHELL
13768_ASEOF
13769cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13770## -------------------- ##
13771## M4sh Initialization. ##
13772## -------------------- ##
13773
13774# Be more Bourne compatible
13775DUALCASE=1; export DUALCASE # for MKS sh
13776if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13777  emulate sh
13778  NULLCMD=:
13779  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13780  # is contrary to our usage.  Disable this feature.
13781  alias -g '${1+"$@"}'='"$@"'
13782  setopt NO_GLOB_SUBST
13783else
13784  case `(set -o) 2>/dev/null` in #(
13785  *posix*) :
13786    set -o posix ;; #(
13787  *) :
13788     ;;
13789esac
13790fi
13791
13792
13793as_nl='
13794'
13795export as_nl
13796# Printing a long string crashes Solaris 7 /usr/bin/printf.
13797as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13799as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13800# Prefer a ksh shell builtin over an external printf program on Solaris,
13801# but without wasting forks for bash or zsh.
13802if test -z "$BASH_VERSION$ZSH_VERSION" \
13803    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13804  as_echo='print -r --'
13805  as_echo_n='print -rn --'
13806elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13807  as_echo='printf %s\n'
13808  as_echo_n='printf %s'
13809else
13810  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13811    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13812    as_echo_n='/usr/ucb/echo -n'
13813  else
13814    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13815    as_echo_n_body='eval
13816      arg=$1;
13817      case $arg in #(
13818      *"$as_nl"*)
13819	expr "X$arg" : "X\\(.*\\)$as_nl";
13820	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13821      esac;
13822      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13823    '
13824    export as_echo_n_body
13825    as_echo_n='sh -c $as_echo_n_body as_echo'
13826  fi
13827  export as_echo_body
13828  as_echo='sh -c $as_echo_body as_echo'
13829fi
13830
13831# The user is always right.
13832if test "${PATH_SEPARATOR+set}" != set; then
13833  PATH_SEPARATOR=:
13834  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13835    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13836      PATH_SEPARATOR=';'
13837  }
13838fi
13839
13840
13841# IFS
13842# We need space, tab and new line, in precisely that order.  Quoting is
13843# there to prevent editors from complaining about space-tab.
13844# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13845# splitting by setting IFS to empty value.)
13846IFS=" ""	$as_nl"
13847
13848# Find who we are.  Look in the path if we contain no directory separator.
13849case $0 in #((
13850  *[\\/]* ) as_myself=$0 ;;
13851  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852for as_dir in $PATH
13853do
13854  IFS=$as_save_IFS
13855  test -z "$as_dir" && as_dir=.
13856    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13857  done
13858IFS=$as_save_IFS
13859
13860     ;;
13861esac
13862# We did not find ourselves, most probably we were run as `sh COMMAND'
13863# in which case we are not to be found in the path.
13864if test "x$as_myself" = x; then
13865  as_myself=$0
13866fi
13867if test ! -f "$as_myself"; then
13868  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13869  exit 1
13870fi
13871
13872# Unset variables that we do not need and which cause bugs (e.g. in
13873# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13874# suppresses any "Segmentation fault" message there.  '((' could
13875# trigger a bug in pdksh 5.2.14.
13876for as_var in BASH_ENV ENV MAIL MAILPATH
13877do eval test x\${$as_var+set} = xset \
13878  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13879done
13880PS1='$ '
13881PS2='> '
13882PS4='+ '
13883
13884# NLS nuisances.
13885LC_ALL=C
13886export LC_ALL
13887LANGUAGE=C
13888export LANGUAGE
13889
13890# CDPATH.
13891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13892
13893
13894# as_fn_error ERROR [LINENO LOG_FD]
13895# ---------------------------------
13896# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13897# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13898# script with status $?, using 1 if that was 0.
13899as_fn_error ()
13900{
13901  as_status=$?; test $as_status -eq 0 && as_status=1
13902  if test "$3"; then
13903    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13904    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13905  fi
13906  $as_echo "$as_me: error: $1" >&2
13907  as_fn_exit $as_status
13908} # as_fn_error
13909
13910
13911# as_fn_set_status STATUS
13912# -----------------------
13913# Set $? to STATUS, without forking.
13914as_fn_set_status ()
13915{
13916  return $1
13917} # as_fn_set_status
13918
13919# as_fn_exit STATUS
13920# -----------------
13921# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13922as_fn_exit ()
13923{
13924  set +e
13925  as_fn_set_status $1
13926  exit $1
13927} # as_fn_exit
13928
13929# as_fn_unset VAR
13930# ---------------
13931# Portably unset VAR.
13932as_fn_unset ()
13933{
13934  { eval $1=; unset $1;}
13935}
13936as_unset=as_fn_unset
13937# as_fn_append VAR VALUE
13938# ----------------------
13939# Append the text in VALUE to the end of the definition contained in VAR. Take
13940# advantage of any shell optimizations that allow amortized linear growth over
13941# repeated appends, instead of the typical quadratic growth present in naive
13942# implementations.
13943if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13944  eval 'as_fn_append ()
13945  {
13946    eval $1+=\$2
13947  }'
13948else
13949  as_fn_append ()
13950  {
13951    eval $1=\$$1\$2
13952  }
13953fi # as_fn_append
13954
13955# as_fn_arith ARG...
13956# ------------------
13957# Perform arithmetic evaluation on the ARGs, and store the result in the
13958# global $as_val. Take advantage of shells that can avoid forks. The arguments
13959# must be portable across $(()) and expr.
13960if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13961  eval 'as_fn_arith ()
13962  {
13963    as_val=$(( $* ))
13964  }'
13965else
13966  as_fn_arith ()
13967  {
13968    as_val=`expr "$@" || test $? -eq 1`
13969  }
13970fi # as_fn_arith
13971
13972
13973if expr a : '\(a\)' >/dev/null 2>&1 &&
13974   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13975  as_expr=expr
13976else
13977  as_expr=false
13978fi
13979
13980if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13981  as_basename=basename
13982else
13983  as_basename=false
13984fi
13985
13986if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13987  as_dirname=dirname
13988else
13989  as_dirname=false
13990fi
13991
13992as_me=`$as_basename -- "$0" ||
13993$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13994	 X"$0" : 'X\(//\)$' \| \
13995	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13996$as_echo X/"$0" |
13997    sed '/^.*\/\([^/][^/]*\)\/*$/{
13998	    s//\1/
13999	    q
14000	  }
14001	  /^X\/\(\/\/\)$/{
14002	    s//\1/
14003	    q
14004	  }
14005	  /^X\/\(\/\).*/{
14006	    s//\1/
14007	    q
14008	  }
14009	  s/.*/./; q'`
14010
14011# Avoid depending upon Character Ranges.
14012as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14014as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14015as_cr_digits='0123456789'
14016as_cr_alnum=$as_cr_Letters$as_cr_digits
14017
14018ECHO_C= ECHO_N= ECHO_T=
14019case `echo -n x` in #(((((
14020-n*)
14021  case `echo 'xy\c'` in
14022  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14023  xy)  ECHO_C='\c';;
14024  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14025       ECHO_T='	';;
14026  esac;;
14027*)
14028  ECHO_N='-n';;
14029esac
14030
14031rm -f conf$$ conf$$.exe conf$$.file
14032if test -d conf$$.dir; then
14033  rm -f conf$$.dir/conf$$.file
14034else
14035  rm -f conf$$.dir
14036  mkdir conf$$.dir 2>/dev/null
14037fi
14038if (echo >conf$$.file) 2>/dev/null; then
14039  if ln -s conf$$.file conf$$ 2>/dev/null; then
14040    as_ln_s='ln -s'
14041    # ... but there are two gotchas:
14042    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14043    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14044    # In both cases, we have to default to `cp -p'.
14045    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14046      as_ln_s='cp -p'
14047  elif ln conf$$.file conf$$ 2>/dev/null; then
14048    as_ln_s=ln
14049  else
14050    as_ln_s='cp -p'
14051  fi
14052else
14053  as_ln_s='cp -p'
14054fi
14055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14056rmdir conf$$.dir 2>/dev/null
14057
14058
14059# as_fn_mkdir_p
14060# -------------
14061# Create "$as_dir" as a directory, including parents if necessary.
14062as_fn_mkdir_p ()
14063{
14064
14065  case $as_dir in #(
14066  -*) as_dir=./$as_dir;;
14067  esac
14068  test -d "$as_dir" || eval $as_mkdir_p || {
14069    as_dirs=
14070    while :; do
14071      case $as_dir in #(
14072      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14073      *) as_qdir=$as_dir;;
14074      esac
14075      as_dirs="'$as_qdir' $as_dirs"
14076      as_dir=`$as_dirname -- "$as_dir" ||
14077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14078	 X"$as_dir" : 'X\(//\)[^/]' \| \
14079	 X"$as_dir" : 'X\(//\)$' \| \
14080	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14081$as_echo X"$as_dir" |
14082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14083	    s//\1/
14084	    q
14085	  }
14086	  /^X\(\/\/\)[^/].*/{
14087	    s//\1/
14088	    q
14089	  }
14090	  /^X\(\/\/\)$/{
14091	    s//\1/
14092	    q
14093	  }
14094	  /^X\(\/\).*/{
14095	    s//\1/
14096	    q
14097	  }
14098	  s/.*/./; q'`
14099      test -d "$as_dir" && break
14100    done
14101    test -z "$as_dirs" || eval "mkdir $as_dirs"
14102  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14103
14104
14105} # as_fn_mkdir_p
14106if mkdir -p . 2>/dev/null; then
14107  as_mkdir_p='mkdir -p "$as_dir"'
14108else
14109  test -d ./-p && rmdir ./-p
14110  as_mkdir_p=false
14111fi
14112
14113if test -x / >/dev/null 2>&1; then
14114  as_test_x='test -x'
14115else
14116  if ls -dL / >/dev/null 2>&1; then
14117    as_ls_L_option=L
14118  else
14119    as_ls_L_option=
14120  fi
14121  as_test_x='
14122    eval sh -c '\''
14123      if test -d "$1"; then
14124	test -d "$1/.";
14125      else
14126	case $1 in #(
14127	-*)set "./$1";;
14128	esac;
14129	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14130	???[sx]*):;;*)false;;esac;fi
14131    '\'' sh
14132  '
14133fi
14134as_executable_p=$as_test_x
14135
14136# Sed expression to map a string onto a valid CPP name.
14137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14138
14139# Sed expression to map a string onto a valid variable name.
14140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14141
14142
14143exec 6>&1
14144## ----------------------------------- ##
14145## Main body of $CONFIG_STATUS script. ##
14146## ----------------------------------- ##
14147_ASEOF
14148test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14149
14150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14151# Save the log message, to keep $0 and so on meaningful, and to
14152# report actual input values of CONFIG_FILES etc. instead of their
14153# values after options handling.
14154ac_log="
14155This file was extended by libgpg-error $as_me 1.10, which was
14156generated by GNU Autoconf 2.64.  Invocation command line was
14157
14158  CONFIG_FILES    = $CONFIG_FILES
14159  CONFIG_HEADERS  = $CONFIG_HEADERS
14160  CONFIG_LINKS    = $CONFIG_LINKS
14161  CONFIG_COMMANDS = $CONFIG_COMMANDS
14162  $ $0 $@
14163
14164on `(hostname || uname -n) 2>/dev/null | sed 1q`
14165"
14166
14167_ACEOF
14168
14169case $ac_config_files in *"
14170"*) set x $ac_config_files; shift; ac_config_files=$*;;
14171esac
14172
14173case $ac_config_headers in *"
14174"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14175esac
14176
14177
14178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179# Files that config.status was made for.
14180config_files="$ac_config_files"
14181config_headers="$ac_config_headers"
14182config_commands="$ac_config_commands"
14183
14184_ACEOF
14185
14186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14187ac_cs_usage="\
14188\`$as_me' instantiates files and other configuration actions
14189from templates according to the current configuration.  Unless the files
14190and actions are specified as TAGs, all are instantiated by default.
14191
14192Usage: $0 [OPTION]... [TAG]...
14193
14194  -h, --help       print this help, then exit
14195  -V, --version    print version number and configuration settings, then exit
14196  -q, --quiet, --silent
14197                   do not print progress messages
14198  -d, --debug      don't remove temporary files
14199      --recheck    update $as_me by reconfiguring in the same conditions
14200      --file=FILE[:TEMPLATE]
14201                   instantiate the configuration file FILE
14202      --header=FILE[:TEMPLATE]
14203                   instantiate the configuration header FILE
14204
14205Configuration files:
14206$config_files
14207
14208Configuration headers:
14209$config_headers
14210
14211Configuration commands:
14212$config_commands
14213
14214Report bugs to <bug-gnupg@gnupg.org>."
14215
14216_ACEOF
14217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14218ac_cs_version="\\
14219libgpg-error config.status 1.10
14220configured by $0, generated by GNU Autoconf 2.64,
14221  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14222
14223Copyright (C) 2009 Free Software Foundation, Inc.
14224This config.status script is free software; the Free Software Foundation
14225gives unlimited permission to copy, distribute and modify it."
14226
14227ac_pwd='$ac_pwd'
14228srcdir='$srcdir'
14229INSTALL='$INSTALL'
14230MKDIR_P='$MKDIR_P'
14231AWK='$AWK'
14232test -n "\$AWK" || AWK=awk
14233_ACEOF
14234
14235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14236# The default lists apply if the user does not specify any file.
14237ac_need_defaults=:
14238while test $# != 0
14239do
14240  case $1 in
14241  --*=*)
14242    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14243    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14244    ac_shift=:
14245    ;;
14246  *)
14247    ac_option=$1
14248    ac_optarg=$2
14249    ac_shift=shift
14250    ;;
14251  esac
14252
14253  case $ac_option in
14254  # Handling of the options.
14255  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14256    ac_cs_recheck=: ;;
14257  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14258    $as_echo "$ac_cs_version"; exit ;;
14259  --debug | --debu | --deb | --de | --d | -d )
14260    debug=: ;;
14261  --file | --fil | --fi | --f )
14262    $ac_shift
14263    case $ac_optarg in
14264    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14265    esac
14266    as_fn_append CONFIG_FILES " '$ac_optarg'"
14267    ac_need_defaults=false;;
14268  --header | --heade | --head | --hea )
14269    $ac_shift
14270    case $ac_optarg in
14271    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14272    esac
14273    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14274    ac_need_defaults=false;;
14275  --he | --h)
14276    # Conflict between --help and --header
14277    as_fn_error "ambiguous option: \`$1'
14278Try \`$0 --help' for more information.";;
14279  --help | --hel | -h )
14280    $as_echo "$ac_cs_usage"; exit ;;
14281  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14282  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14283    ac_cs_silent=: ;;
14284
14285  # This is an error.
14286  -*) as_fn_error "unrecognized option: \`$1'
14287Try \`$0 --help' for more information." ;;
14288
14289  *) as_fn_append ac_config_targets " $1"
14290     ac_need_defaults=false ;;
14291
14292  esac
14293  shift
14294done
14295
14296ac_configure_extra_args=
14297
14298if $ac_cs_silent; then
14299  exec 6>/dev/null
14300  ac_configure_extra_args="$ac_configure_extra_args --silent"
14301fi
14302
14303_ACEOF
14304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14305if \$ac_cs_recheck; then
14306  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14307  shift
14308  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14309  CONFIG_SHELL='$SHELL'
14310  export CONFIG_SHELL
14311  exec "\$@"
14312fi
14313
14314_ACEOF
14315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316exec 5>>config.log
14317{
14318  echo
14319  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14320## Running $as_me. ##
14321_ASBOX
14322  $as_echo "$ac_log"
14323} >&5
14324
14325_ACEOF
14326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14327#
14328# INIT-COMMANDS
14329#
14330AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14331
14332
14333# The HP-UX ksh and POSIX shell print the target directory to stdout
14334# if CDPATH is set.
14335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336
14337sed_quote_subst='$sed_quote_subst'
14338double_quote_subst='$double_quote_subst'
14339delay_variable_subst='$delay_variable_subst'
14340macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14341macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14342AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14343DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14344OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14345enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14346enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14347pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14348enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14349host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14350host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14351host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14352build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14353build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14354build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14355SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14356Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14357GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14358EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14359FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14360LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14361NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14362LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14363max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14364ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14365exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14366lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14367lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14368lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14369reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14370reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14371deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14372file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14373AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14374AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14375STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14376RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14377old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14378old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14379old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14380CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14381CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14382compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14383GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14384lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14385lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14386lt_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"`'
14387lt_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"`'
14388objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14389SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14390ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14391MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14392lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14393lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14394lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14395lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14396lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14397need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14398DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14399NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14400LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14401OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14402OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14403libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14404shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14405extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14406archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14407enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14408export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14409whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14410compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14411old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14412old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14413archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14414archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14415module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14416module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14417with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14418allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14419no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14420hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14421hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14422hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14423hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14424hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14425hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14426hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14427hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14428inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14429link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14430fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14431always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14432export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14433exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14434include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14435prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14436file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14437variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14438need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14439need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14440version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14441runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14442shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14443shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14444libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14445library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14446soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14447postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14448postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14449finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14450finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14451hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14452sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14453sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14454hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14455enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14456enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14457enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14458old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14459striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14460LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
14461old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14462compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
14463GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
14464lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
14465lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
14466lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
14467lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
14468lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
14469archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
14470enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
14471export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14472whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14473compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
14474old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14475old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14476archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14477archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14478module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14479module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14480with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
14481allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
14482no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
14483hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14484hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
14485hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
14486hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
14487hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
14488hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
14489hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
14490hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
14491inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
14492link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
14493fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
14494always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
14495export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14496exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
14497include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
14498prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
14499file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
14500hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
14501
14502LTCC='$LTCC'
14503LTCFLAGS='$LTCFLAGS'
14504compiler='$compiler_DEFAULT'
14505
14506# Quote evaled strings.
14507for var in SED \
14508GREP \
14509EGREP \
14510FGREP \
14511LD \
14512NM \
14513LN_S \
14514lt_SP2NL \
14515lt_NL2SP \
14516reload_flag \
14517deplibs_check_method \
14518file_magic_cmd \
14519AR \
14520AR_FLAGS \
14521STRIP \
14522RANLIB \
14523CC \
14524CFLAGS \
14525compiler \
14526lt_cv_sys_global_symbol_pipe \
14527lt_cv_sys_global_symbol_to_cdecl \
14528lt_cv_sys_global_symbol_to_c_name_address \
14529lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14530SHELL \
14531ECHO \
14532lt_prog_compiler_no_builtin_flag \
14533lt_prog_compiler_wl \
14534lt_prog_compiler_pic \
14535lt_prog_compiler_static \
14536lt_cv_prog_compiler_c_o \
14537need_locks \
14538DSYMUTIL \
14539NMEDIT \
14540LIPO \
14541OTOOL \
14542OTOOL64 \
14543shrext_cmds \
14544export_dynamic_flag_spec \
14545whole_archive_flag_spec \
14546compiler_needs_object \
14547with_gnu_ld \
14548allow_undefined_flag \
14549no_undefined_flag \
14550hardcode_libdir_flag_spec \
14551hardcode_libdir_flag_spec_ld \
14552hardcode_libdir_separator \
14553fix_srcfile_path \
14554exclude_expsyms \
14555include_expsyms \
14556file_list_spec \
14557variables_saved_for_relink \
14558libname_spec \
14559library_names_spec \
14560soname_spec \
14561finish_eval \
14562old_striplib \
14563striplib \
14564LD_RC \
14565compiler_RC \
14566lt_prog_compiler_no_builtin_flag_RC \
14567lt_prog_compiler_wl_RC \
14568lt_prog_compiler_pic_RC \
14569lt_prog_compiler_static_RC \
14570lt_cv_prog_compiler_c_o_RC \
14571export_dynamic_flag_spec_RC \
14572whole_archive_flag_spec_RC \
14573compiler_needs_object_RC \
14574with_gnu_ld_RC \
14575allow_undefined_flag_RC \
14576no_undefined_flag_RC \
14577hardcode_libdir_flag_spec_RC \
14578hardcode_libdir_flag_spec_ld_RC \
14579hardcode_libdir_separator_RC \
14580fix_srcfile_path_RC \
14581exclude_expsyms_RC \
14582include_expsyms_RC \
14583file_list_spec_RC; do
14584    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14585    *[\\\\\\\`\\"\\\$]*)
14586      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14587      ;;
14588    *)
14589      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14590      ;;
14591    esac
14592done
14593
14594# Double-quote double-evaled strings.
14595for var in reload_cmds \
14596old_postinstall_cmds \
14597old_postuninstall_cmds \
14598old_archive_cmds \
14599extract_expsyms_cmds \
14600old_archive_from_new_cmds \
14601old_archive_from_expsyms_cmds \
14602archive_cmds \
14603archive_expsym_cmds \
14604module_cmds \
14605module_expsym_cmds \
14606export_symbols_cmds \
14607prelink_cmds \
14608postinstall_cmds \
14609postuninstall_cmds \
14610finish_cmds \
14611sys_lib_search_path_spec \
14612sys_lib_dlsearch_path_spec \
14613old_archive_cmds_RC \
14614old_archive_from_new_cmds_RC \
14615old_archive_from_expsyms_cmds_RC \
14616archive_cmds_RC \
14617archive_expsym_cmds_RC \
14618module_cmds_RC \
14619module_expsym_cmds_RC \
14620export_symbols_cmds_RC \
14621prelink_cmds_RC; do
14622    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14623    *[\\\\\\\`\\"\\\$]*)
14624      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14625      ;;
14626    *)
14627      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14628      ;;
14629    esac
14630done
14631
14632# Fix-up fallback echo if it was mangled by the above quoting rules.
14633case \$lt_ECHO in
14634*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14635  ;;
14636esac
14637
14638ac_aux_dir='$ac_aux_dir'
14639xsi_shell='$xsi_shell'
14640lt_shell_append='$lt_shell_append'
14641
14642# See if we are running on zsh, and set the options which allow our
14643# commands through without removal of \ escapes INIT.
14644if test -n "\${ZSH_VERSION+set}" ; then
14645   setopt NO_GLOB_SUBST
14646fi
14647
14648
14649    PACKAGE='$PACKAGE'
14650    VERSION='$VERSION'
14651    TIMESTAMP='$TIMESTAMP'
14652    RM='$RM'
14653    ofile='$ofile'
14654
14655
14656
14657
14658
14659# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14660    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14661    # from automake < 1.5.
14662    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14663    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14664    LINGUAS="${LINGUAS-%UNSET%}"
14665
14666
14667_ACEOF
14668
14669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14670
14671# Handling of arguments.
14672for ac_config_target in $ac_config_targets
14673do
14674  case $ac_config_target in
14675    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14676    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14677    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14678    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14679    "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
14680    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14681    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14682    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14683    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14684    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14685    "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
14686    "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
14687    "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
14688    "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
14689
14690  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14691  esac
14692done
14693
14694
14695# If the user did not use the arguments to specify the items to instantiate,
14696# then the envvar interface is used.  Set only those that are not.
14697# We use the long form for the default assignment because of an extremely
14698# bizarre bug on SunOS 4.1.3.
14699if $ac_need_defaults; then
14700  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14701  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14702  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14703fi
14704
14705# Have a temporary directory for convenience.  Make it in the build tree
14706# simply because there is no reason against having it here, and in addition,
14707# creating and moving files from /tmp can sometimes cause problems.
14708# Hook for its removal unless debugging.
14709# Note that there is a small window in which the directory will not be cleaned:
14710# after its creation but before its name has been assigned to `$tmp'.
14711$debug ||
14712{
14713  tmp=
14714  trap 'exit_status=$?
14715  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14716' 0
14717  trap 'as_fn_exit 1' 1 2 13 15
14718}
14719# Create a (secure) tmp directory for tmp files.
14720
14721{
14722  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14723  test -n "$tmp" && test -d "$tmp"
14724}  ||
14725{
14726  tmp=./conf$$-$RANDOM
14727  (umask 077 && mkdir "$tmp")
14728} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14729
14730# Set up the scripts for CONFIG_FILES section.
14731# No need to generate them if there are no CONFIG_FILES.
14732# This happens for instance with `./config.status config.h'.
14733if test -n "$CONFIG_FILES"; then
14734
14735
14736ac_cr=`echo X | tr X '\015'`
14737# On cygwin, bash can eat \r inside `` if the user requested igncr.
14738# But we know of no other shell where ac_cr would be empty at this
14739# point, so we can use a bashism as a fallback.
14740if test "x$ac_cr" = x; then
14741  eval ac_cr=\$\'\\r\'
14742fi
14743ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14744if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14745  ac_cs_awk_cr='\r'
14746else
14747  ac_cs_awk_cr=$ac_cr
14748fi
14749
14750echo 'BEGIN {' >"$tmp/subs1.awk" &&
14751_ACEOF
14752
14753
14754{
14755  echo "cat >conf$$subs.awk <<_ACEOF" &&
14756  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14757  echo "_ACEOF"
14758} >conf$$subs.sh ||
14759  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14760ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14761ac_delim='%!_!# '
14762for ac_last_try in false false false false false :; do
14763  . ./conf$$subs.sh ||
14764    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14765
14766  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14767  if test $ac_delim_n = $ac_delim_num; then
14768    break
14769  elif $ac_last_try; then
14770    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14771  else
14772    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14773  fi
14774done
14775rm -f conf$$subs.sh
14776
14777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14778cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14779_ACEOF
14780sed -n '
14781h
14782s/^/S["/; s/!.*/"]=/
14783p
14784g
14785s/^[^!]*!//
14786:repl
14787t repl
14788s/'"$ac_delim"'$//
14789t delim
14790:nl
14791h
14792s/\(.\{148\}\).*/\1/
14793t more1
14794s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14795p
14796n
14797b repl
14798:more1
14799s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14800p
14801g
14802s/.\{148\}//
14803t nl
14804:delim
14805h
14806s/\(.\{148\}\).*/\1/
14807t more2
14808s/["\\]/\\&/g; s/^/"/; s/$/"/
14809p
14810b
14811:more2
14812s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14813p
14814g
14815s/.\{148\}//
14816t delim
14817' <conf$$subs.awk | sed '
14818/^[^""]/{
14819  N
14820  s/\n//
14821}
14822' >>$CONFIG_STATUS || ac_write_fail=1
14823rm -f conf$$subs.awk
14824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14825_ACAWK
14826cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14827  for (key in S) S_is_set[key] = 1
14828  FS = ""
14829
14830}
14831{
14832  line = $ 0
14833  nfields = split(line, field, "@")
14834  substed = 0
14835  len = length(field[1])
14836  for (i = 2; i < nfields; i++) {
14837    key = field[i]
14838    keylen = length(key)
14839    if (S_is_set[key]) {
14840      value = S[key]
14841      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14842      len += length(value) + length(field[++i])
14843      substed = 1
14844    } else
14845      len += 1 + keylen
14846  }
14847
14848  print line
14849}
14850
14851_ACAWK
14852_ACEOF
14853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14854if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14855  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14856else
14857  cat
14858fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14859  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14860_ACEOF
14861
14862# VPATH may cause trouble with some makes, so we remove $(srcdir),
14863# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14864# trailing colons and then remove the whole line if VPATH becomes empty
14865# (actually we leave an empty line to preserve line numbers).
14866if test "x$srcdir" = x.; then
14867  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14868s/:*\$(srcdir):*/:/
14869s/:*\${srcdir}:*/:/
14870s/:*@srcdir@:*/:/
14871s/^\([^=]*=[	 ]*\):*/\1/
14872s/:*$//
14873s/^[^=]*=[	 ]*$//
14874}'
14875fi
14876
14877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14878fi # test -n "$CONFIG_FILES"
14879
14880# Set up the scripts for CONFIG_HEADERS section.
14881# No need to generate them if there are no CONFIG_HEADERS.
14882# This happens for instance with `./config.status Makefile'.
14883if test -n "$CONFIG_HEADERS"; then
14884cat >"$tmp/defines.awk" <<\_ACAWK ||
14885BEGIN {
14886_ACEOF
14887
14888# Transform confdefs.h into an awk script `defines.awk', embedded as
14889# here-document in config.status, that substitutes the proper values into
14890# config.h.in to produce config.h.
14891
14892# Create a delimiter string that does not exist in confdefs.h, to ease
14893# handling of long lines.
14894ac_delim='%!_!# '
14895for ac_last_try in false false :; do
14896  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14897  if test -z "$ac_t"; then
14898    break
14899  elif $ac_last_try; then
14900    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14901  else
14902    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14903  fi
14904done
14905
14906# For the awk script, D is an array of macro values keyed by name,
14907# likewise P contains macro parameters if any.  Preserve backslash
14908# newline sequences.
14909
14910ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14911sed -n '
14912s/.\{148\}/&'"$ac_delim"'/g
14913t rset
14914:rset
14915s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14916t def
14917d
14918:def
14919s/\\$//
14920t bsnl
14921s/["\\]/\\&/g
14922s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14923D["\1"]=" \3"/p
14924s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14925d
14926:bsnl
14927s/["\\]/\\&/g
14928s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14929D["\1"]=" \3\\\\\\n"\\/p
14930t cont
14931s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14932t cont
14933d
14934:cont
14935n
14936s/.\{148\}/&'"$ac_delim"'/g
14937t clear
14938:clear
14939s/\\$//
14940t bsnlc
14941s/["\\]/\\&/g; s/^/"/; s/$/"/p
14942d
14943:bsnlc
14944s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14945b cont
14946' <confdefs.h | sed '
14947s/'"$ac_delim"'/"\\\
14948"/g' >>$CONFIG_STATUS || ac_write_fail=1
14949
14950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14951  for (key in D) D_is_set[key] = 1
14952  FS = ""
14953}
14954/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14955  line = \$ 0
14956  split(line, arg, " ")
14957  if (arg[1] == "#") {
14958    defundef = arg[2]
14959    mac1 = arg[3]
14960  } else {
14961    defundef = substr(arg[1], 2)
14962    mac1 = arg[2]
14963  }
14964  split(mac1, mac2, "(") #)
14965  macro = mac2[1]
14966  prefix = substr(line, 1, index(line, defundef) - 1)
14967  if (D_is_set[macro]) {
14968    # Preserve the white space surrounding the "#".
14969    print prefix "define", macro P[macro] D[macro]
14970    next
14971  } else {
14972    # Replace #undef with comments.  This is necessary, for example,
14973    # in the case of _POSIX_SOURCE, which is predefined and required
14974    # on some systems where configure will not decide to define it.
14975    if (defundef == "undef") {
14976      print "/*", prefix defundef, macro, "*/"
14977      next
14978    }
14979  }
14980}
14981{ print }
14982_ACAWK
14983_ACEOF
14984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14985  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14986fi # test -n "$CONFIG_HEADERS"
14987
14988
14989eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14990shift
14991for ac_tag
14992do
14993  case $ac_tag in
14994  :[FHLC]) ac_mode=$ac_tag; continue;;
14995  esac
14996  case $ac_mode$ac_tag in
14997  :[FHL]*:*);;
14998  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14999  :[FH]-) ac_tag=-:-;;
15000  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15001  esac
15002  ac_save_IFS=$IFS
15003  IFS=:
15004  set x $ac_tag
15005  IFS=$ac_save_IFS
15006  shift
15007  ac_file=$1
15008  shift
15009
15010  case $ac_mode in
15011  :L) ac_source=$1;;
15012  :[FH])
15013    ac_file_inputs=
15014    for ac_f
15015    do
15016      case $ac_f in
15017      -) ac_f="$tmp/stdin";;
15018      *) # Look for the file first in the build tree, then in the source tree
15019	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15020	 # because $ac_f cannot contain `:'.
15021	 test -f "$ac_f" ||
15022	   case $ac_f in
15023	   [\\/$]*) false;;
15024	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15025	   esac ||
15026	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15027      esac
15028      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15029      as_fn_append ac_file_inputs " '$ac_f'"
15030    done
15031
15032    # Let's still pretend it is `configure' which instantiates (i.e., don't
15033    # use $as_me), people would be surprised to read:
15034    #    /* config.h.  Generated by config.status.  */
15035    configure_input='Generated from '`
15036	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15037	`' by configure.'
15038    if test x"$ac_file" != x-; then
15039      configure_input="$ac_file.  $configure_input"
15040      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15041$as_echo "$as_me: creating $ac_file" >&6;}
15042    fi
15043    # Neutralize special characters interpreted by sed in replacement strings.
15044    case $configure_input in #(
15045    *\&* | *\|* | *\\* )
15046       ac_sed_conf_input=`$as_echo "$configure_input" |
15047       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15048    *) ac_sed_conf_input=$configure_input;;
15049    esac
15050
15051    case $ac_tag in
15052    *:-:* | *:-) cat >"$tmp/stdin" \
15053      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15054    esac
15055    ;;
15056  esac
15057
15058  ac_dir=`$as_dirname -- "$ac_file" ||
15059$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060	 X"$ac_file" : 'X\(//\)[^/]' \| \
15061	 X"$ac_file" : 'X\(//\)$' \| \
15062	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15063$as_echo X"$ac_file" |
15064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15065	    s//\1/
15066	    q
15067	  }
15068	  /^X\(\/\/\)[^/].*/{
15069	    s//\1/
15070	    q
15071	  }
15072	  /^X\(\/\/\)$/{
15073	    s//\1/
15074	    q
15075	  }
15076	  /^X\(\/\).*/{
15077	    s//\1/
15078	    q
15079	  }
15080	  s/.*/./; q'`
15081  as_dir="$ac_dir"; as_fn_mkdir_p
15082  ac_builddir=.
15083
15084case "$ac_dir" in
15085.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15086*)
15087  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15088  # A ".." for each directory in $ac_dir_suffix.
15089  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15090  case $ac_top_builddir_sub in
15091  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15092  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15093  esac ;;
15094esac
15095ac_abs_top_builddir=$ac_pwd
15096ac_abs_builddir=$ac_pwd$ac_dir_suffix
15097# for backward compatibility:
15098ac_top_builddir=$ac_top_build_prefix
15099
15100case $srcdir in
15101  .)  # We are building in place.
15102    ac_srcdir=.
15103    ac_top_srcdir=$ac_top_builddir_sub
15104    ac_abs_top_srcdir=$ac_pwd ;;
15105  [\\/]* | ?:[\\/]* )  # Absolute name.
15106    ac_srcdir=$srcdir$ac_dir_suffix;
15107    ac_top_srcdir=$srcdir
15108    ac_abs_top_srcdir=$srcdir ;;
15109  *) # Relative name.
15110    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15111    ac_top_srcdir=$ac_top_build_prefix$srcdir
15112    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15113esac
15114ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15115
15116
15117  case $ac_mode in
15118  :F)
15119  #
15120  # CONFIG_FILE
15121  #
15122
15123  case $INSTALL in
15124  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15125  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15126  esac
15127  ac_MKDIR_P=$MKDIR_P
15128  case $MKDIR_P in
15129  [\\/$]* | ?:[\\/]* ) ;;
15130  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15131  esac
15132_ACEOF
15133
15134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135# If the template does not know about datarootdir, expand it.
15136# FIXME: This hack should be removed a few years after 2.60.
15137ac_datarootdir_hack=; ac_datarootdir_seen=
15138ac_sed_dataroot='
15139/datarootdir/ {
15140  p
15141  q
15142}
15143/@datadir@/p
15144/@docdir@/p
15145/@infodir@/p
15146/@localedir@/p
15147/@mandir@/p'
15148case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15149*datarootdir*) ac_datarootdir_seen=yes;;
15150*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15151  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15152$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15153_ACEOF
15154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15155  ac_datarootdir_hack='
15156  s&@datadir@&$datadir&g
15157  s&@docdir@&$docdir&g
15158  s&@infodir@&$infodir&g
15159  s&@localedir@&$localedir&g
15160  s&@mandir@&$mandir&g
15161  s&\\\${datarootdir}&$datarootdir&g' ;;
15162esac
15163_ACEOF
15164
15165# Neutralize VPATH when `$srcdir' = `.'.
15166# Shell code in configure.ac might set extrasub.
15167# FIXME: do we really want to maintain this feature?
15168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15169ac_sed_extra="$ac_vpsub
15170$extrasub
15171_ACEOF
15172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173:t
15174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15175s|@configure_input@|$ac_sed_conf_input|;t t
15176s&@top_builddir@&$ac_top_builddir_sub&;t t
15177s&@top_build_prefix@&$ac_top_build_prefix&;t t
15178s&@srcdir@&$ac_srcdir&;t t
15179s&@abs_srcdir@&$ac_abs_srcdir&;t t
15180s&@top_srcdir@&$ac_top_srcdir&;t t
15181s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15182s&@builddir@&$ac_builddir&;t t
15183s&@abs_builddir@&$ac_abs_builddir&;t t
15184s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15185s&@INSTALL@&$ac_INSTALL&;t t
15186s&@MKDIR_P@&$ac_MKDIR_P&;t t
15187$ac_datarootdir_hack
15188"
15189eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15190  || as_fn_error "could not create $ac_file" "$LINENO" 5
15191
15192test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15193  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15194  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15195  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15196which seems to be undefined.  Please make sure it is defined." >&5
15197$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15198which seems to be undefined.  Please make sure it is defined." >&2;}
15199
15200  rm -f "$tmp/stdin"
15201  case $ac_file in
15202  -) cat "$tmp/out" && rm -f "$tmp/out";;
15203  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15204  esac \
15205  || as_fn_error "could not create $ac_file" "$LINENO" 5
15206 ;;
15207  :H)
15208  #
15209  # CONFIG_HEADER
15210  #
15211  if test x"$ac_file" != x-; then
15212    {
15213      $as_echo "/* $configure_input  */" \
15214      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15215    } >"$tmp/config.h" \
15216      || as_fn_error "could not create $ac_file" "$LINENO" 5
15217    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15218      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15219$as_echo "$as_me: $ac_file is unchanged" >&6;}
15220    else
15221      rm -f "$ac_file"
15222      mv "$tmp/config.h" "$ac_file" \
15223	|| as_fn_error "could not create $ac_file" "$LINENO" 5
15224    fi
15225  else
15226    $as_echo "/* $configure_input  */" \
15227      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15228      || as_fn_error "could not create -" "$LINENO" 5
15229  fi
15230# Compute "$ac_file"'s index in $config_headers.
15231_am_arg="$ac_file"
15232_am_stamp_count=1
15233for _am_header in $config_headers :; do
15234  case $_am_header in
15235    $_am_arg | $_am_arg:* )
15236      break ;;
15237    * )
15238      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15239  esac
15240done
15241echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15242$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15243	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15244	 X"$_am_arg" : 'X\(//\)$' \| \
15245	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15246$as_echo X"$_am_arg" |
15247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15248	    s//\1/
15249	    q
15250	  }
15251	  /^X\(\/\/\)[^/].*/{
15252	    s//\1/
15253	    q
15254	  }
15255	  /^X\(\/\/\)$/{
15256	    s//\1/
15257	    q
15258	  }
15259	  /^X\(\/\).*/{
15260	    s//\1/
15261	    q
15262	  }
15263	  s/.*/./; q'`/stamp-h$_am_stamp_count
15264 ;;
15265
15266  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15267$as_echo "$as_me: executing $ac_file commands" >&6;}
15268 ;;
15269  esac
15270
15271
15272  case $ac_file$ac_mode in
15273    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
15274# are listed without --file.  Let's play safe and only enable the eval
15275# if we detect the quoting.
15276case $CONFIG_FILES in
15277*\'*) eval set x "$CONFIG_FILES" ;;
15278*)   set x $CONFIG_FILES ;;
15279esac
15280shift
15281for mf
15282do
15283  # Strip MF so we end up with the name of the file.
15284  mf=`echo "$mf" | sed -e 's/:.*$//'`
15285  # Check whether this is an Automake generated Makefile or not.
15286  # We used to match only the files named `Makefile.in', but
15287  # some people rename them; so instead we look at the file content.
15288  # Grep'ing the first line is not enough: some people post-process
15289  # each Makefile.in and add a new line on top of each file to say so.
15290  # Grep'ing the whole file is not good either: AIX grep has a line
15291  # limit of 2048, but all sed's we know have understand at least 4000.
15292  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15293    dirpart=`$as_dirname -- "$mf" ||
15294$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15295	 X"$mf" : 'X\(//\)[^/]' \| \
15296	 X"$mf" : 'X\(//\)$' \| \
15297	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15298$as_echo X"$mf" |
15299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15300	    s//\1/
15301	    q
15302	  }
15303	  /^X\(\/\/\)[^/].*/{
15304	    s//\1/
15305	    q
15306	  }
15307	  /^X\(\/\/\)$/{
15308	    s//\1/
15309	    q
15310	  }
15311	  /^X\(\/\).*/{
15312	    s//\1/
15313	    q
15314	  }
15315	  s/.*/./; q'`
15316  else
15317    continue
15318  fi
15319  # Extract the definition of DEPDIR, am__include, and am__quote
15320  # from the Makefile without running `make'.
15321  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15322  test -z "$DEPDIR" && continue
15323  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15324  test -z "am__include" && continue
15325  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15326  # When using ansi2knr, U may be empty or an underscore; expand it
15327  U=`sed -n 's/^U = //p' < "$mf"`
15328  # Find all dependency output files, they are included files with
15329  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15330  # simplest approach to changing $(DEPDIR) to its actual value in the
15331  # expansion.
15332  for file in `sed -n "
15333    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15334       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15335    # Make sure the directory exists.
15336    test -f "$dirpart/$file" && continue
15337    fdir=`$as_dirname -- "$file" ||
15338$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15339	 X"$file" : 'X\(//\)[^/]' \| \
15340	 X"$file" : 'X\(//\)$' \| \
15341	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15342$as_echo X"$file" |
15343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15344	    s//\1/
15345	    q
15346	  }
15347	  /^X\(\/\/\)[^/].*/{
15348	    s//\1/
15349	    q
15350	  }
15351	  /^X\(\/\/\)$/{
15352	    s//\1/
15353	    q
15354	  }
15355	  /^X\(\/\).*/{
15356	    s//\1/
15357	    q
15358	  }
15359	  s/.*/./; q'`
15360    as_dir=$dirpart/$fdir; as_fn_mkdir_p
15361    # echo "creating $dirpart/$file"
15362    echo '# dummy' > "$dirpart/$file"
15363  done
15364done
15365 ;;
15366    "libtool":C)
15367
15368    # See if we are running on zsh, and set the options which allow our
15369    # commands through without removal of \ escapes.
15370    if test -n "${ZSH_VERSION+set}" ; then
15371      setopt NO_GLOB_SUBST
15372    fi
15373
15374    cfgfile="${ofile}T"
15375    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15376    $RM "$cfgfile"
15377
15378    cat <<_LT_EOF >> "$cfgfile"
15379#! $SHELL
15380
15381# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15382# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15383# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15384# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15385#
15386#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15387#                 2006, 2007, 2008 Free Software Foundation, Inc.
15388#   Written by Gordon Matzigkeit, 1996
15389#
15390#   This file is part of GNU Libtool.
15391#
15392# GNU Libtool is free software; you can redistribute it and/or
15393# modify it under the terms of the GNU General Public License as
15394# published by the Free Software Foundation; either version 2 of
15395# the License, or (at your option) any later version.
15396#
15397# As a special exception to the GNU General Public License,
15398# if you distribute this file as part of a program or library that
15399# is built using GNU Libtool, you may include this file under the
15400# same distribution terms that you use for the rest of that program.
15401#
15402# GNU Libtool is distributed in the hope that it will be useful,
15403# but WITHOUT ANY WARRANTY; without even the implied warranty of
15404# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15405# GNU General Public License for more details.
15406#
15407# You should have received a copy of the GNU General Public License
15408# along with GNU Libtool; see the file COPYING.  If not, a copy
15409# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15410# obtained by writing to the Free Software Foundation, Inc.,
15411# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15412
15413
15414# The names of the tagged configurations supported by this script.
15415available_tags="RC "
15416
15417# ### BEGIN LIBTOOL CONFIG
15418
15419# Which release of libtool.m4 was used?
15420macro_version=$macro_version
15421macro_revision=$macro_revision
15422
15423# Assembler program.
15424AS=$AS
15425
15426# DLL creation program.
15427DLLTOOL=$DLLTOOL
15428
15429# Object dumper program.
15430OBJDUMP=$OBJDUMP
15431
15432# Whether or not to build static libraries.
15433build_old_libs=$enable_static
15434
15435# Whether or not to build shared libraries.
15436build_libtool_libs=$enable_shared
15437
15438# What type of objects to build.
15439pic_mode=$pic_mode
15440
15441# Whether or not to optimize for fast installation.
15442fast_install=$enable_fast_install
15443
15444# The host system.
15445host_alias=$host_alias
15446host=$host
15447host_os=$host_os
15448
15449# The build system.
15450build_alias=$build_alias
15451build=$build
15452build_os=$build_os
15453
15454# A sed program that does not truncate output.
15455SED=$lt_SED
15456
15457# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15458Xsed="\$SED -e 1s/^X//"
15459
15460# A grep program that handles long lines.
15461GREP=$lt_GREP
15462
15463# An ERE matcher.
15464EGREP=$lt_EGREP
15465
15466# A literal string matcher.
15467FGREP=$lt_FGREP
15468
15469# A BSD- or MS-compatible name lister.
15470NM=$lt_NM
15471
15472# Whether we need soft or hard links.
15473LN_S=$lt_LN_S
15474
15475# What is the maximum length of a command?
15476max_cmd_len=$max_cmd_len
15477
15478# Object file suffix (normally "o").
15479objext=$ac_objext
15480
15481# Executable file suffix (normally "").
15482exeext=$exeext
15483
15484# whether the shell understands "unset".
15485lt_unset=$lt_unset
15486
15487# turn spaces into newlines.
15488SP2NL=$lt_lt_SP2NL
15489
15490# turn newlines into spaces.
15491NL2SP=$lt_lt_NL2SP
15492
15493# How to create reloadable object files.
15494reload_flag=$lt_reload_flag
15495reload_cmds=$lt_reload_cmds
15496
15497# Method to check whether dependent libraries are shared objects.
15498deplibs_check_method=$lt_deplibs_check_method
15499
15500# Command to use when deplibs_check_method == "file_magic".
15501file_magic_cmd=$lt_file_magic_cmd
15502
15503# The archiver.
15504AR=$lt_AR
15505AR_FLAGS=$lt_AR_FLAGS
15506
15507# A symbol stripping program.
15508STRIP=$lt_STRIP
15509
15510# Commands used to install an old-style archive.
15511RANLIB=$lt_RANLIB
15512old_postinstall_cmds=$lt_old_postinstall_cmds
15513old_postuninstall_cmds=$lt_old_postuninstall_cmds
15514
15515# A C compiler.
15516LTCC=$lt_CC
15517
15518# LTCC compiler flags.
15519LTCFLAGS=$lt_CFLAGS
15520
15521# Take the output of nm and produce a listing of raw symbols and C names.
15522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15523
15524# Transform the output of nm in a proper C declaration.
15525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15526
15527# Transform the output of nm in a C name address pair.
15528global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15529
15530# Transform the output of nm in a C name address pair when lib prefix is needed.
15531global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15532
15533# The name of the directory that contains temporary libtool files.
15534objdir=$objdir
15535
15536# Shell to use when invoking shell scripts.
15537SHELL=$lt_SHELL
15538
15539# An echo program that does not interpret backslashes.
15540ECHO=$lt_ECHO
15541
15542# Used to examine libraries when file_magic_cmd begins with "file".
15543MAGIC_CMD=$MAGIC_CMD
15544
15545# Must we lock files when doing compilation?
15546need_locks=$lt_need_locks
15547
15548# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15549DSYMUTIL=$lt_DSYMUTIL
15550
15551# Tool to change global to local symbols on Mac OS X.
15552NMEDIT=$lt_NMEDIT
15553
15554# Tool to manipulate fat objects and archives on Mac OS X.
15555LIPO=$lt_LIPO
15556
15557# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15558OTOOL=$lt_OTOOL
15559
15560# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15561OTOOL64=$lt_OTOOL64
15562
15563# Old archive suffix (normally "a").
15564libext=$libext
15565
15566# Shared library suffix (normally ".so").
15567shrext_cmds=$lt_shrext_cmds
15568
15569# The commands to extract the exported symbol list from a shared archive.
15570extract_expsyms_cmds=$lt_extract_expsyms_cmds
15571
15572# Variables whose values should be saved in libtool wrapper scripts and
15573# restored at link time.
15574variables_saved_for_relink=$lt_variables_saved_for_relink
15575
15576# Do we need the "lib" prefix for modules?
15577need_lib_prefix=$need_lib_prefix
15578
15579# Do we need a version for libraries?
15580need_version=$need_version
15581
15582# Library versioning type.
15583version_type=$version_type
15584
15585# Shared library runtime path variable.
15586runpath_var=$runpath_var
15587
15588# Shared library path variable.
15589shlibpath_var=$shlibpath_var
15590
15591# Is shlibpath searched before the hard-coded library search path?
15592shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15593
15594# Format of library name prefix.
15595libname_spec=$lt_libname_spec
15596
15597# List of archive names.  First name is the real one, the rest are links.
15598# The last name is the one that the linker finds with -lNAME
15599library_names_spec=$lt_library_names_spec
15600
15601# The coded name of the library, if different from the real name.
15602soname_spec=$lt_soname_spec
15603
15604# Command to use after installation of a shared archive.
15605postinstall_cmds=$lt_postinstall_cmds
15606
15607# Command to use after uninstallation of a shared archive.
15608postuninstall_cmds=$lt_postuninstall_cmds
15609
15610# Commands used to finish a libtool library installation in a directory.
15611finish_cmds=$lt_finish_cmds
15612
15613# As "finish_cmds", except a single script fragment to be evaled but
15614# not shown.
15615finish_eval=$lt_finish_eval
15616
15617# Whether we should hardcode library paths into libraries.
15618hardcode_into_libs=$hardcode_into_libs
15619
15620# Compile-time system search path for libraries.
15621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15622
15623# Run-time system search path for libraries.
15624sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15625
15626# Whether dlopen is supported.
15627dlopen_support=$enable_dlopen
15628
15629# Whether dlopen of programs is supported.
15630dlopen_self=$enable_dlopen_self
15631
15632# Whether dlopen of statically linked programs is supported.
15633dlopen_self_static=$enable_dlopen_self_static
15634
15635# Commands to strip libraries.
15636old_striplib=$lt_old_striplib
15637striplib=$lt_striplib
15638
15639
15640# The linker used to build libraries.
15641LD=$lt_LD
15642
15643# Commands used to build an old-style archive.
15644old_archive_cmds=$lt_old_archive_cmds
15645
15646# A language specific compiler.
15647CC=$lt_compiler
15648
15649# Is the compiler the GNU compiler?
15650with_gcc=$GCC
15651
15652# Compiler flag to turn off builtin functions.
15653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15654
15655# How to pass a linker flag through the compiler.
15656wl=$lt_lt_prog_compiler_wl
15657
15658# Additional compiler flags for building library objects.
15659pic_flag=$lt_lt_prog_compiler_pic
15660
15661# Compiler flag to prevent dynamic linking.
15662link_static_flag=$lt_lt_prog_compiler_static
15663
15664# Does compiler simultaneously support -c and -o options?
15665compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15666
15667# Whether or not to add -lc for building shared libraries.
15668build_libtool_need_lc=$archive_cmds_need_lc
15669
15670# Whether or not to disallow shared libs when runtime libs are static.
15671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15672
15673# Compiler flag to allow reflexive dlopens.
15674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15675
15676# Compiler flag to generate shared objects directly from archives.
15677whole_archive_flag_spec=$lt_whole_archive_flag_spec
15678
15679# Whether the compiler copes with passing no objects directly.
15680compiler_needs_object=$lt_compiler_needs_object
15681
15682# Create an old-style archive from a shared archive.
15683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15684
15685# Create a temporary old-style archive to link instead of a shared archive.
15686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15687
15688# Commands used to build a shared archive.
15689archive_cmds=$lt_archive_cmds
15690archive_expsym_cmds=$lt_archive_expsym_cmds
15691
15692# Commands used to build a loadable module if different from building
15693# a shared archive.
15694module_cmds=$lt_module_cmds
15695module_expsym_cmds=$lt_module_expsym_cmds
15696
15697# Whether we are building with GNU ld or not.
15698with_gnu_ld=$lt_with_gnu_ld
15699
15700# Flag that allows shared libraries with undefined symbols to be built.
15701allow_undefined_flag=$lt_allow_undefined_flag
15702
15703# Flag that enforces no undefined symbols.
15704no_undefined_flag=$lt_no_undefined_flag
15705
15706# Flag to hardcode \$libdir into a binary during linking.
15707# This must work even if \$libdir does not exist
15708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15709
15710# If ld is used when linking, flag to hardcode \$libdir into a binary
15711# during linking.  This must work even if \$libdir does not exist.
15712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15713
15714# Whether we need a single "-rpath" flag with a separated argument.
15715hardcode_libdir_separator=$lt_hardcode_libdir_separator
15716
15717# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15718# DIR into the resulting binary.
15719hardcode_direct=$hardcode_direct
15720
15721# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15722# DIR into the resulting binary and the resulting library dependency is
15723# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15724# library is relocated.
15725hardcode_direct_absolute=$hardcode_direct_absolute
15726
15727# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15728# into the resulting binary.
15729hardcode_minus_L=$hardcode_minus_L
15730
15731# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15732# into the resulting binary.
15733hardcode_shlibpath_var=$hardcode_shlibpath_var
15734
15735# Set to "yes" if building a shared library automatically hardcodes DIR
15736# into the library and all subsequent libraries and executables linked
15737# against it.
15738hardcode_automatic=$hardcode_automatic
15739
15740# Set to yes if linker adds runtime paths of dependent libraries
15741# to runtime path list.
15742inherit_rpath=$inherit_rpath
15743
15744# Whether libtool must link a program against all its dependency libraries.
15745link_all_deplibs=$link_all_deplibs
15746
15747# Fix the shell variable \$srcfile for the compiler.
15748fix_srcfile_path=$lt_fix_srcfile_path
15749
15750# Set to "yes" if exported symbols are required.
15751always_export_symbols=$always_export_symbols
15752
15753# The commands to list exported symbols.
15754export_symbols_cmds=$lt_export_symbols_cmds
15755
15756# Symbols that should not be listed in the preloaded symbols.
15757exclude_expsyms=$lt_exclude_expsyms
15758
15759# Symbols that must always be exported.
15760include_expsyms=$lt_include_expsyms
15761
15762# Commands necessary for linking programs (against libraries) with templates.
15763prelink_cmds=$lt_prelink_cmds
15764
15765# Specify filename containing input files.
15766file_list_spec=$lt_file_list_spec
15767
15768# How to hardcode a shared library path into an executable.
15769hardcode_action=$hardcode_action
15770
15771# ### END LIBTOOL CONFIG
15772
15773_LT_EOF
15774
15775  case $host_os in
15776  aix3*)
15777    cat <<\_LT_EOF >> "$cfgfile"
15778# AIX sometimes has problems with the GCC collect2 program.  For some
15779# reason, if we set the COLLECT_NAMES environment variable, the problems
15780# vanish in a puff of smoke.
15781if test "X${COLLECT_NAMES+set}" != Xset; then
15782  COLLECT_NAMES=
15783  export COLLECT_NAMES
15784fi
15785_LT_EOF
15786    ;;
15787  esac
15788
15789
15790ltmain="$ac_aux_dir/ltmain.sh"
15791
15792
15793  # We use sed instead of cat because bash on DJGPP gets confused if
15794  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15795  # text mode, it properly converts lines to CR/LF.  This bash problem
15796  # is reportedly fixed, but why not run on old versions too?
15797  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15798    || (rm -f "$cfgfile"; exit 1)
15799
15800  case $xsi_shell in
15801  yes)
15802    cat << \_LT_EOF >> "$cfgfile"
15803
15804# func_dirname file append nondir_replacement
15805# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15806# otherwise set result to NONDIR_REPLACEMENT.
15807func_dirname ()
15808{
15809  case ${1} in
15810    */*) func_dirname_result="${1%/*}${2}" ;;
15811    *  ) func_dirname_result="${3}" ;;
15812  esac
15813}
15814
15815# func_basename file
15816func_basename ()
15817{
15818  func_basename_result="${1##*/}"
15819}
15820
15821# func_dirname_and_basename file append nondir_replacement
15822# perform func_basename and func_dirname in a single function
15823# call:
15824#   dirname:  Compute the dirname of FILE.  If nonempty,
15825#             add APPEND to the result, otherwise set result
15826#             to NONDIR_REPLACEMENT.
15827#             value returned in "$func_dirname_result"
15828#   basename: Compute filename of FILE.
15829#             value retuned in "$func_basename_result"
15830# Implementation must be kept synchronized with func_dirname
15831# and func_basename. For efficiency, we do not delegate to
15832# those functions but instead duplicate the functionality here.
15833func_dirname_and_basename ()
15834{
15835  case ${1} in
15836    */*) func_dirname_result="${1%/*}${2}" ;;
15837    *  ) func_dirname_result="${3}" ;;
15838  esac
15839  func_basename_result="${1##*/}"
15840}
15841
15842# func_stripname prefix suffix name
15843# strip PREFIX and SUFFIX off of NAME.
15844# PREFIX and SUFFIX must not contain globbing or regex special
15845# characters, hashes, percent signs, but SUFFIX may contain a leading
15846# dot (in which case that matches only a dot).
15847func_stripname ()
15848{
15849  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15850  # positional parameters, so assign one to ordinary parameter first.
15851  func_stripname_result=${3}
15852  func_stripname_result=${func_stripname_result#"${1}"}
15853  func_stripname_result=${func_stripname_result%"${2}"}
15854}
15855
15856# func_opt_split
15857func_opt_split ()
15858{
15859  func_opt_split_opt=${1%%=*}
15860  func_opt_split_arg=${1#*=}
15861}
15862
15863# func_lo2o object
15864func_lo2o ()
15865{
15866  case ${1} in
15867    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15868    *)    func_lo2o_result=${1} ;;
15869  esac
15870}
15871
15872# func_xform libobj-or-source
15873func_xform ()
15874{
15875  func_xform_result=${1%.*}.lo
15876}
15877
15878# func_arith arithmetic-term...
15879func_arith ()
15880{
15881  func_arith_result=$(( $* ))
15882}
15883
15884# func_len string
15885# STRING may not start with a hyphen.
15886func_len ()
15887{
15888  func_len_result=${#1}
15889}
15890
15891_LT_EOF
15892    ;;
15893  *) # Bourne compatible functions.
15894    cat << \_LT_EOF >> "$cfgfile"
15895
15896# func_dirname file append nondir_replacement
15897# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15898# otherwise set result to NONDIR_REPLACEMENT.
15899func_dirname ()
15900{
15901  # Extract subdirectory from the argument.
15902  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15903  if test "X$func_dirname_result" = "X${1}"; then
15904    func_dirname_result="${3}"
15905  else
15906    func_dirname_result="$func_dirname_result${2}"
15907  fi
15908}
15909
15910# func_basename file
15911func_basename ()
15912{
15913  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15914}
15915
15916
15917# func_stripname prefix suffix name
15918# strip PREFIX and SUFFIX off of NAME.
15919# PREFIX and SUFFIX must not contain globbing or regex special
15920# characters, hashes, percent signs, but SUFFIX may contain a leading
15921# dot (in which case that matches only a dot).
15922# func_strip_suffix prefix name
15923func_stripname ()
15924{
15925  case ${2} in
15926    .*) func_stripname_result=`$ECHO "X${3}" \
15927           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15928    *)  func_stripname_result=`$ECHO "X${3}" \
15929           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15930  esac
15931}
15932
15933# sed scripts:
15934my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15935my_sed_long_arg='1s/^-[^=]*=//'
15936
15937# func_opt_split
15938func_opt_split ()
15939{
15940  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15941  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15942}
15943
15944# func_lo2o object
15945func_lo2o ()
15946{
15947  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15948}
15949
15950# func_xform libobj-or-source
15951func_xform ()
15952{
15953  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15954}
15955
15956# func_arith arithmetic-term...
15957func_arith ()
15958{
15959  func_arith_result=`expr "$@"`
15960}
15961
15962# func_len string
15963# STRING may not start with a hyphen.
15964func_len ()
15965{
15966  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15967}
15968
15969_LT_EOF
15970esac
15971
15972case $lt_shell_append in
15973  yes)
15974    cat << \_LT_EOF >> "$cfgfile"
15975
15976# func_append var value
15977# Append VALUE to the end of shell variable VAR.
15978func_append ()
15979{
15980  eval "$1+=\$2"
15981}
15982_LT_EOF
15983    ;;
15984  *)
15985    cat << \_LT_EOF >> "$cfgfile"
15986
15987# func_append var value
15988# Append VALUE to the end of shell variable VAR.
15989func_append ()
15990{
15991  eval "$1=\$$1\$2"
15992}
15993
15994_LT_EOF
15995    ;;
15996  esac
15997
15998
15999  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16000    || (rm -f "$cfgfile"; exit 1)
16001
16002  mv -f "$cfgfile" "$ofile" ||
16003    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16004  chmod +x "$ofile"
16005
16006
16007    cat <<_LT_EOF >> "$ofile"
16008
16009# ### BEGIN LIBTOOL TAG CONFIG: RC
16010
16011# The linker used to build libraries.
16012LD=$lt_LD_RC
16013
16014# Commands used to build an old-style archive.
16015old_archive_cmds=$lt_old_archive_cmds_RC
16016
16017# A language specific compiler.
16018CC=$lt_compiler_RC
16019
16020# Is the compiler the GNU compiler?
16021with_gcc=$GCC_RC
16022
16023# Compiler flag to turn off builtin functions.
16024no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16025
16026# How to pass a linker flag through the compiler.
16027wl=$lt_lt_prog_compiler_wl_RC
16028
16029# Additional compiler flags for building library objects.
16030pic_flag=$lt_lt_prog_compiler_pic_RC
16031
16032# Compiler flag to prevent dynamic linking.
16033link_static_flag=$lt_lt_prog_compiler_static_RC
16034
16035# Does compiler simultaneously support -c and -o options?
16036compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16037
16038# Whether or not to add -lc for building shared libraries.
16039build_libtool_need_lc=$archive_cmds_need_lc_RC
16040
16041# Whether or not to disallow shared libs when runtime libs are static.
16042allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
16043
16044# Compiler flag to allow reflexive dlopens.
16045export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16046
16047# Compiler flag to generate shared objects directly from archives.
16048whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16049
16050# Whether the compiler copes with passing no objects directly.
16051compiler_needs_object=$lt_compiler_needs_object_RC
16052
16053# Create an old-style archive from a shared archive.
16054old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16055
16056# Create a temporary old-style archive to link instead of a shared archive.
16057old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16058
16059# Commands used to build a shared archive.
16060archive_cmds=$lt_archive_cmds_RC
16061archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16062
16063# Commands used to build a loadable module if different from building
16064# a shared archive.
16065module_cmds=$lt_module_cmds_RC
16066module_expsym_cmds=$lt_module_expsym_cmds_RC
16067
16068# Whether we are building with GNU ld or not.
16069with_gnu_ld=$lt_with_gnu_ld_RC
16070
16071# Flag that allows shared libraries with undefined symbols to be built.
16072allow_undefined_flag=$lt_allow_undefined_flag_RC
16073
16074# Flag that enforces no undefined symbols.
16075no_undefined_flag=$lt_no_undefined_flag_RC
16076
16077# Flag to hardcode \$libdir into a binary during linking.
16078# This must work even if \$libdir does not exist
16079hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16080
16081# If ld is used when linking, flag to hardcode \$libdir into a binary
16082# during linking.  This must work even if \$libdir does not exist.
16083hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
16084
16085# Whether we need a single "-rpath" flag with a separated argument.
16086hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16087
16088# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16089# DIR into the resulting binary.
16090hardcode_direct=$hardcode_direct_RC
16091
16092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16093# DIR into the resulting binary and the resulting library dependency is
16094# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16095# library is relocated.
16096hardcode_direct_absolute=$hardcode_direct_absolute_RC
16097
16098# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16099# into the resulting binary.
16100hardcode_minus_L=$hardcode_minus_L_RC
16101
16102# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16103# into the resulting binary.
16104hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16105
16106# Set to "yes" if building a shared library automatically hardcodes DIR
16107# into the library and all subsequent libraries and executables linked
16108# against it.
16109hardcode_automatic=$hardcode_automatic_RC
16110
16111# Set to yes if linker adds runtime paths of dependent libraries
16112# to runtime path list.
16113inherit_rpath=$inherit_rpath_RC
16114
16115# Whether libtool must link a program against all its dependency libraries.
16116link_all_deplibs=$link_all_deplibs_RC
16117
16118# Fix the shell variable \$srcfile for the compiler.
16119fix_srcfile_path=$lt_fix_srcfile_path_RC
16120
16121# Set to "yes" if exported symbols are required.
16122always_export_symbols=$always_export_symbols_RC
16123
16124# The commands to list exported symbols.
16125export_symbols_cmds=$lt_export_symbols_cmds_RC
16126
16127# Symbols that should not be listed in the preloaded symbols.
16128exclude_expsyms=$lt_exclude_expsyms_RC
16129
16130# Symbols that must always be exported.
16131include_expsyms=$lt_include_expsyms_RC
16132
16133# Commands necessary for linking programs (against libraries) with templates.
16134prelink_cmds=$lt_prelink_cmds_RC
16135
16136# Specify filename containing input files.
16137file_list_spec=$lt_file_list_spec_RC
16138
16139# How to hardcode a shared library path into an executable.
16140hardcode_action=$hardcode_action_RC
16141
16142# ### END LIBTOOL TAG CONFIG: RC
16143_LT_EOF
16144
16145 ;;
16146    "po-directories":C)
16147    for ac_file in $CONFIG_FILES; do
16148      # Support "outfile[:infile[:infile...]]"
16149      case "$ac_file" in
16150        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16151      esac
16152      # PO directories have a Makefile.in generated from Makefile.in.in.
16153      case "$ac_file" in */Makefile.in)
16154        # Adjust a relative srcdir.
16155        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16156        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16157        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16158        # In autoconf-2.13 it is called $ac_given_srcdir.
16159        # In autoconf-2.50 it is called $srcdir.
16160        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16161        case "$ac_given_srcdir" in
16162          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16163          /*) top_srcdir="$ac_given_srcdir" ;;
16164          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16165        esac
16166        # Treat a directory as a PO directory if and only if it has a
16167        # POTFILES.in file. This allows packages to have multiple PO
16168        # directories under different names or in different locations.
16169        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16170          rm -f "$ac_dir/POTFILES"
16171          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16172          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16173          POMAKEFILEDEPS="POTFILES.in"
16174          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16175          # on $ac_dir but don't depend on user-specified configuration
16176          # parameters.
16177          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16178            # The LINGUAS file contains the set of available languages.
16179            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16180              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16181            fi
16182            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16183            # Hide the ALL_LINGUAS assigment from automake < 1.5.
16184            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16185            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16186          else
16187            # The set of available languages was given in configure.in.
16188            # Hide the ALL_LINGUAS assigment from automake < 1.5.
16189            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16190          fi
16191          # Compute POFILES
16192          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16193          # Compute UPDATEPOFILES
16194          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16195          # Compute DUMMYPOFILES
16196          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16197          # Compute GMOFILES
16198          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16199          case "$ac_given_srcdir" in
16200            .) srcdirpre= ;;
16201            *) srcdirpre='$(srcdir)/' ;;
16202          esac
16203          POFILES=
16204          UPDATEPOFILES=
16205          DUMMYPOFILES=
16206          GMOFILES=
16207          for lang in $ALL_LINGUAS; do
16208            POFILES="$POFILES $srcdirpre$lang.po"
16209            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16210            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16211            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16212          done
16213          # CATALOGS depends on both $ac_dir and the user's LINGUAS
16214          # environment variable.
16215          INST_LINGUAS=
16216          if test -n "$ALL_LINGUAS"; then
16217            for presentlang in $ALL_LINGUAS; do
16218              useit=no
16219              if test "%UNSET%" != "$LINGUAS"; then
16220                desiredlanguages="$LINGUAS"
16221              else
16222                desiredlanguages="$ALL_LINGUAS"
16223              fi
16224              for desiredlang in $desiredlanguages; do
16225                # Use the presentlang catalog if desiredlang is
16226                #   a. equal to presentlang, or
16227                #   b. a variant of presentlang (because in this case,
16228                #      presentlang can be used as a fallback for messages
16229                #      which are not translated in the desiredlang catalog).
16230                case "$desiredlang" in
16231                  "$presentlang"*) useit=yes;;
16232                esac
16233              done
16234              if test $useit = yes; then
16235                INST_LINGUAS="$INST_LINGUAS $presentlang"
16236              fi
16237            done
16238          fi
16239          CATALOGS=
16240          if test -n "$INST_LINGUAS"; then
16241            for lang in $INST_LINGUAS; do
16242              CATALOGS="$CATALOGS $lang.gmo"
16243            done
16244          fi
16245          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16246          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16247          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16248            if test -f "$f"; then
16249              case "$f" in
16250                *.orig | *.bak | *~) ;;
16251                *) cat "$f" >> "$ac_dir/Makefile" ;;
16252              esac
16253            fi
16254          done
16255        fi
16256        ;;
16257      esac
16258    done ;;
16259    "src/gpg-error-config":F) chmod +x src/gpg-error-config ;;
16260
16261  esac
16262done # for ac_tag
16263
16264
16265as_fn_exit 0
16266_ACEOF
16267ac_clean_files=$ac_clean_files_save
16268
16269test $ac_write_fail = 0 ||
16270  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16271
16272
16273# configure is writing to config.log, and then calls config.status.
16274# config.status does its own redirection, appending to config.log.
16275# Unfortunately, on DOS this fails, as config.log is still kept open
16276# by configure, so config.status won't be able to write to it; its
16277# output is simply discarded.  So we exec the FD to /dev/null,
16278# effectively closing config.log, so it can be properly (re)opened and
16279# appended to by config.status.  When coming back to configure, we
16280# need to make the FD available again.
16281if test "$no_create" != yes; then
16282  ac_cs_success=:
16283  ac_config_status_args=
16284  test "$silent" = yes &&
16285    ac_config_status_args="$ac_config_status_args --quiet"
16286  exec 5>/dev/null
16287  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16288  exec 5>>config.log
16289  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16290  # would make configure fail if this is the last instruction.
16291  $ac_cs_success || as_fn_exit $?
16292fi
16293if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16294  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16295$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16296fi
16297
16298
16299echo "
16300        Libgpg-error v${VERSION} has been configured as follows:
16301
16302        Platform:  $host
16303
16304"
16305